@nuxt/hints 0.0.0 → 1.0.0-alpha.2

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 (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +122 -0
  3. package/dist/client/200.html +1 -0
  4. package/dist/client/404.html +1 -0
  5. package/dist/client/_nuxt/2EtD6e53.js +1 -0
  6. package/dist/client/_nuxt/2GP93Pxi.js +1 -0
  7. package/dist/client/_nuxt/3e1v2bzS.js +1 -0
  8. package/dist/client/_nuxt/5i3qLPDT.js +1 -0
  9. package/dist/client/_nuxt/B0m2ddpp.js +1 -0
  10. package/dist/client/_nuxt/B1dDrJ26.js +1 -0
  11. package/dist/client/_nuxt/B6aJPvgy.js +1 -0
  12. package/dist/client/_nuxt/B7mTdjB0.js +1 -0
  13. package/dist/client/_nuxt/BEDo0Tqx.js +1 -0
  14. package/dist/client/_nuxt/BGJmEYvX.js +1 -0
  15. package/dist/client/_nuxt/BHrmToEH.js +1 -0
  16. package/dist/client/_nuxt/BIGW1oBm.js +1 -0
  17. package/dist/client/_nuxt/BLmx8bSh.js +1 -0
  18. package/dist/client/_nuxt/BLtJtn59.js +1 -0
  19. package/dist/client/_nuxt/BPQ3VLAy.js +1 -0
  20. package/dist/client/_nuxt/BXkSAIEj.js +1 -0
  21. package/dist/client/_nuxt/BfHTSMKl.js +1 -0
  22. package/dist/client/_nuxt/BfjtVDDH.js +1 -0
  23. package/dist/client/_nuxt/BgDCqdQA.js +1 -0
  24. package/dist/client/_nuxt/Bkuqu6BP.js +1 -0
  25. package/dist/client/_nuxt/Bp3cYrEr.js +1 -0
  26. package/dist/client/_nuxt/Br6cN0cg.js +1 -0
  27. package/dist/client/_nuxt/BthQWCQV.js +1 -0
  28. package/dist/client/_nuxt/Buea-lGh.js +1 -0
  29. package/dist/client/_nuxt/Bw305WKR.js +1 -0
  30. package/dist/client/_nuxt/BzJJZx-M.js +1 -0
  31. package/dist/client/_nuxt/C-Jbm3Hp.js +1 -0
  32. package/dist/client/_nuxt/C39BiMTA.js +1 -0
  33. package/dist/client/_nuxt/C8M2exoo.js +1 -0
  34. package/dist/client/_nuxt/C9dUb6Cb.js +1 -0
  35. package/dist/client/_nuxt/C9oPPf7i.js +1 -0
  36. package/dist/client/_nuxt/C9tS-k6U.js +1 -0
  37. package/dist/client/_nuxt/CDVJQ6XC.js +1 -0
  38. package/dist/client/_nuxt/CEG3Q07z.js +1 -0
  39. package/dist/client/_nuxt/CFHQjOhq.js +1 -0
  40. package/dist/client/_nuxt/CG6Dc4jp.js +1 -0
  41. package/dist/client/_nuxt/CGQlbfJh.js +6 -0
  42. package/dist/client/_nuxt/CH1njM8p.js +1 -0
  43. package/dist/client/_nuxt/CJC4nrSc.js +1 -0
  44. package/dist/client/_nuxt/CMFEf1DS.js +1 -0
  45. package/dist/client/_nuxt/COt5Ahok.js +1 -0
  46. package/dist/client/_nuxt/CS3Unz2-.js +1 -0
  47. package/dist/client/_nuxt/CTRr51gU.js +1 -0
  48. package/dist/client/_nuxt/CVO1_9PV.js +1 -0
  49. package/dist/client/_nuxt/CVdnzihN.js +1 -0
  50. package/dist/client/_nuxt/CXZktZb0.js +1 -0
  51. package/dist/client/_nuxt/CXtECtnM.js +1 -0
  52. package/dist/client/_nuxt/CYsAdtH9.js +1 -0
  53. package/dist/client/_nuxt/CafNBF8u.js +1 -0
  54. package/dist/client/_nuxt/CbfX1IO0.js +1 -0
  55. package/dist/client/_nuxt/CfQXZHmo.js +1 -0
  56. package/dist/client/_nuxt/CgjmDhmW.js +1 -0
  57. package/dist/client/_nuxt/Cj5Yp3dK.js +1 -0
  58. package/dist/client/_nuxt/CkXjmgJE.js +1 -0
  59. package/dist/client/_nuxt/Cl0AqbOI.js +1 -0
  60. package/dist/client/_nuxt/Cm3UrAx6.js +1 -0
  61. package/dist/client/_nuxt/CmIQRyeF.js +1 -0
  62. package/dist/client/_nuxt/Cmh6b_Ma.js +1 -0
  63. package/dist/client/_nuxt/CnK8MTSM.js +1 -0
  64. package/dist/client/_nuxt/CnnebwVN.js +1 -0
  65. package/dist/client/_nuxt/Cp-IABpG.js +1 -0
  66. package/dist/client/_nuxt/Csfq5Kiy.js +1 -0
  67. package/dist/client/_nuxt/CufHLc7y.js +1 -0
  68. package/dist/client/_nuxt/Cuk6v7N8.js +1 -0
  69. package/dist/client/_nuxt/Cv9koXgw.js +1 -0
  70. package/dist/client/_nuxt/Cvjx9yec.js +1 -0
  71. package/dist/client/_nuxt/Cw07ACep.js +1 -0
  72. package/dist/client/_nuxt/CxbxFI8M.js +1 -0
  73. package/dist/client/_nuxt/CyktbL80.js +1 -0
  74. package/dist/client/_nuxt/CylS5w8V.js +1 -0
  75. package/dist/client/_nuxt/D-2ljcwZ.js +1 -0
  76. package/dist/client/_nuxt/D0r3Knsf.js +1 -0
  77. package/dist/client/_nuxt/D4h5O-jR.js +1 -0
  78. package/dist/client/_nuxt/D5KoaKCx.js +1 -0
  79. package/dist/client/_nuxt/D7VJQ_DO.js +1 -0
  80. package/dist/client/_nuxt/D7oLnXFd.js +1 -0
  81. package/dist/client/_nuxt/D87Tk5Gz.js +1 -0
  82. package/dist/client/_nuxt/DAi9KRSo.js +1 -0
  83. package/dist/client/_nuxt/DDBovgxi.js +1 -0
  84. package/dist/client/_nuxt/DFWUc33u.js +1 -0
  85. package/dist/client/_nuxt/DGP4VlC8.js +1 -0
  86. package/dist/client/_nuxt/DGztddWO.js +1 -0
  87. package/dist/client/_nuxt/DH5Ifo-i.js +1 -0
  88. package/dist/client/_nuxt/DH652Aoo.js +6 -0
  89. package/dist/client/_nuxt/DHJKELXO.js +1 -0
  90. package/dist/client/_nuxt/DJJ7OUMB.js +1 -0
  91. package/dist/client/_nuxt/DNMeEaky.js +1 -0
  92. package/dist/client/_nuxt/DPfMkruS.js +1 -0
  93. package/dist/client/_nuxt/DQyhUUbL.js +1 -0
  94. package/dist/client/_nuxt/DRw_LuNl.js +1 -0
  95. package/dist/client/_nuxt/DU1UobuO.js +1 -0
  96. package/dist/client/_nuxt/DU4nAREn.js +9 -0
  97. package/dist/client/_nuxt/DUszq2jm.js +1 -0
  98. package/dist/client/_nuxt/DVMEJ2y_.js +1 -0
  99. package/dist/client/_nuxt/DWedfzmr.js +1 -0
  100. package/dist/client/_nuxt/DXbdFlpD.js +1 -0
  101. package/dist/client/_nuxt/DZxFcAj9.js +1 -0
  102. package/dist/client/_nuxt/DcaNXYhu.js +1 -0
  103. package/dist/client/_nuxt/Ddv68eIx.js +1 -0
  104. package/dist/client/_nuxt/Des-eS-w.js +1 -0
  105. package/dist/client/_nuxt/DiinP2Uv.js +1 -0
  106. package/dist/client/_nuxt/DnULxvSX.js +1 -0
  107. package/dist/client/_nuxt/Do-INFgi.js +1 -0
  108. package/dist/client/_nuxt/DqwNpetd.js +1 -0
  109. package/dist/client/_nuxt/Dx-B1_4e.js +1 -0
  110. package/dist/client/_nuxt/DxNHbxmM.js +1 -0
  111. package/dist/client/_nuxt/DxSwrfjg.js +1 -0
  112. package/dist/client/_nuxt/E3gJ1_iC.js +1 -0
  113. package/dist/client/_nuxt/GsRaNv29.js +1 -0
  114. package/dist/client/_nuxt/L9t79GZl.js +1 -0
  115. package/dist/client/_nuxt/MKoRwnMq.js +1 -0
  116. package/dist/client/_nuxt/MzD3tlZU.js +1 -0
  117. package/dist/client/_nuxt/NleAzG8P.js +1 -0
  118. package/dist/client/_nuxt/PoHY5YXO.js +1 -0
  119. package/dist/client/_nuxt/TsXTqZ29.js +1 -0
  120. package/dist/client/_nuxt/Xqf5ue2O.js +1 -0
  121. package/dist/client/_nuxt/Yzrsuije.js +1 -0
  122. package/dist/client/_nuxt/bN70gL4F.js +1 -0
  123. package/dist/client/_nuxt/builds/latest.json +1 -0
  124. package/dist/client/_nuxt/builds/meta/13453bb2-1adb-44c7-ac19-ec44784e7219.json +1 -0
  125. package/dist/client/_nuxt/eOWES_5F.js +1 -0
  126. package/dist/client/_nuxt/entry.CqH3PPiL.css +1 -0
  127. package/dist/client/_nuxt/error-404.CrTd3IxL.css +1 -0
  128. package/dist/client/_nuxt/error-500.evxQRSU6.css +1 -0
  129. package/dist/client/_nuxt/fuZLfV_i.js +1 -0
  130. package/dist/client/_nuxt/g9-lgVsj.js +1 -0
  131. package/dist/client/_nuxt/hJgmCMqR.js +1 -0
  132. package/dist/client/_nuxt/hegEt444.js +1 -0
  133. package/dist/client/_nuxt/hydration.B5wxUWyr.css +1 -0
  134. package/dist/client/_nuxt/m17aaUwq.js +1 -0
  135. package/dist/client/_nuxt/nO2mFgKf.js +1 -0
  136. package/dist/client/_nuxt/qj2RPQZX.js +1 -0
  137. package/dist/client/_nuxt/rlWm2Bc0.js +1 -0
  138. package/dist/client/_nuxt/sLvN_949.js +1 -0
  139. package/dist/client/_nuxt/tqtdBwhO.js +1 -0
  140. package/dist/client/_nuxt/umNIi3wV.js +21 -0
  141. package/dist/client/_nuxt/wDzz0qaB.js +1 -0
  142. package/dist/client/_nuxt/z9IIGYC-.js +1 -0
  143. package/dist/client/hydration/index.html +1 -0
  144. package/dist/client/index.html +1 -0
  145. package/dist/client/third-party-scripts/index.html +1 -0
  146. package/dist/client/web-vitals/index.html +1 -0
  147. package/dist/module.d.mts +9 -0
  148. package/dist/module.json +9 -0
  149. package/dist/module.mjs +115 -0
  150. package/dist/runtime/core/components/nuxt-island.d.ts +137 -0
  151. package/dist/runtime/core/components/nuxt-island.js +14 -0
  152. package/dist/runtime/core/plugins/vue-tracer-state.client.d.ts +2 -0
  153. package/dist/runtime/core/plugins/vue-tracer-state.client.js +7 -0
  154. package/dist/runtime/hydration/composables.d.ts +5 -0
  155. package/dist/runtime/hydration/composables.js +46 -0
  156. package/dist/runtime/hydration/plugin.client.d.ts +2 -0
  157. package/dist/runtime/hydration/plugin.client.js +11 -0
  158. package/dist/runtime/third-party-scripts/nitro.plugin.d.ts +2 -0
  159. package/dist/runtime/third-party-scripts/nitro.plugin.js +48 -0
  160. package/dist/runtime/third-party-scripts/plugin.client.d.ts +2 -0
  161. package/dist/runtime/third-party-scripts/plugin.client.js +88 -0
  162. package/dist/runtime/types.d.ts +48 -0
  163. package/dist/runtime/web-vitals/plugin.client.d.ts +13 -0
  164. package/dist/runtime/web-vitals/plugin.client.js +137 -0
  165. package/dist/runtime/web-vitals/utils.d.ts +35 -0
  166. package/dist/runtime/web-vitals/utils.js +13 -0
  167. package/dist/types.d.mts +3 -0
  168. package/package.json +61 -2
  169. /package/dist/{.gitkeep → client/_nuxt/third-party-scripts.tn0RQdqM.css} +0 -0
@@ -0,0 +1,21 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./DxSwrfjg.js","./Cp-IABpG.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./DNMeEaky.js","./DGP4VlC8.js","./BGJmEYvX.js","./CylS5w8V.js","./BLtJtn59.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./C9oPPf7i.js","./g9-lgVsj.js","./CmIQRyeF.js","./m17aaUwq.js","./Buea-lGh.js","./CufHLc7y.js","./Yzrsuije.js","./CYsAdtH9.js","./fuZLfV_i.js","./CXZktZb0.js","./Br6cN0cg.js","./CgjmDhmW.js","./B6aJPvgy.js","./DiinP2Uv.js","./CMFEf1DS.js","./B1dDrJ26.js","./TsXTqZ29.js","./Cvjx9yec.js","./Xqf5ue2O.js","./BLmx8bSh.js","./DDBovgxi.js","./Cm3UrAx6.js","./D7VJQ_DO.js","./tqtdBwhO.js","./CEG3Q07z.js","./BEDo0Tqx.js"])))=>i.map(i=>d[i]);
2
+ import{_ as In}from"./rlWm2Bc0.js";import xn from"./DH652Aoo.js";import{_ as On}from"./nO2mFgKf.js";import{_ as Nn,a as Dn}from"./DJJ7OUMB.js";import{n as f,g as $t,j as J,p as Mn,q as Bn,k as Ut,o as oe,w as re,a as U,t as Be,m as M,b as W,d as Gn,_ as Vn,c as Ge,F as jn,s as $n}from"./CGQlbfJh.js";import{u as Un}from"./DU4nAREn.js";import"./CJC4nrSc.js";let T=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Hn(n){return ot(n)}function ot(n){return Array.isArray(n)?Wn(n):n instanceof RegExp?n:typeof n=="object"?Fn(n):n}function Wn(n){let e=[];for(let t=0,r=n.length;t<r;t++)e[t]=ot(n[t]);return e}function Fn(n){let e={};for(let t in n)e[t]=ot(n[t]);return e}function Ht(n,...e){return e.forEach(t=>{for(let r in t)n[r]=t[r]}),n}function Wt(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Wt(n.substring(0,n.length-1)):n.substr(~e+1)}var Ve=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,pe=class{static hasCaptures(n){return n===null?!1:(Ve.lastIndex=0,Ve.test(n))}static replaceCaptures(n,e,t){return n.replace(Ve,(r,i,o,a)=>{let l=t[parseInt(i||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return r})}};function Ft(n,e){return n<e?-1:n>e?1:0}function zt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let i=0;i<t;i++){let o=Ft(n[i],e[i]);if(o!==0)return o}return 0}return t-r}function _t(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function qt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Kt=class{constructor(n){this.fn=n}cache=new Map;get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},be=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(Kn(n),e)}static createFromParsedTheme(n,e){return Yn(n,e)}_cachedMatchRoot=new Kt(n=>this._root.match(n));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(i=>zn(n.parent,i.parentScopes));return r?new Jt(r.fontStyle,r.foreground,r.background):null}},je=class ye{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ye(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ye(t,e[r]);return t}push(e){return new ye(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function zn(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],i=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],i=!0}for(;n&&!qn(n.scopeName,r);){if(i)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function qn(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Kn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let h=a.settings.fontStyle.split(" ");for(let m=0,d=h.length;m<d;m++)switch(h[m]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof a.settings.foreground=="string"&&_t(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&_t(a.settings.background)&&(u=a.settings.background);for(let h=0,m=l.length;h<m;h++){let p=l[h].trim().split(" "),S=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),t[r++]=new Jn(S,y,i,s,c,u)}}return t}var Jn=class{constructor(n,e,t,r,i,o){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=i,this.background=o}},x=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(x||{});function Yn(n,e){n.sort((s,c)=>{let u=Ft(s.scope,c.scope);return u!==0||(u=zt(s.parentScopes,c.parentScopes),u!==0)?u:s.index-c.index});let t=0,r="#000000",i="#ffffff";for(;n.length>=1&&n[0].scope==="";){let s=n.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(r=s.foreground),s.background!==null&&(i=s.background)}let o=new Xn(e),a=new Jt(t,o.getId(r),o.getId(i)),l=new Zn(new qe(0,null,-1,0,0),[]);for(let s=0,c=n.length;s<c;s++){let u=n[s];l.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new be(o,a,l)}var Xn=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Qn=Object.freeze([]),qe=class Yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,i,o){this.scopeDepth=e,this.parentScopes=t||Qn,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,i=e.length;r<i;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},Zn=class Ke{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=t.parentScopes.length);){const o=t.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ke._cmpBySpecificity),t}insert(e,t,r,i,o,a){if(t===""){this._doInsertHere(e,r,i,o,a);return}let l=t.indexOf("."),s,c;l===-1?(s=t,c=""):(s=t.substring(0,l),c=t.substring(l+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new Ke(this._mainRule.clone(),qe.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(e+1,c,r,i,o,a)}_doInsertHere(e,t,r,i,o){if(t===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(zt(s.parentScopes,t)===0){s.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new qe(e,t,r,i,o))}},Z=class B{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=B.getLanguageId(e),r=B.getTokenType(e),i=B.getFontStyle(e),o=B.getForeground(e),a=B.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:i,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,i,o,a,l){let s=B.getLanguageId(e),c=B.getTokenType(e),u=B.containsBalancedBrackets(e)?1:0,h=B.getFontStyle(e),m=B.getForeground(e),d=B.getBackground(e);return t!==0&&(s=t),r!==8&&(c=r),i!==null&&(u=i?1:0),o!==-1&&(h=o),a!==0&&(m=a),l!==0&&(d=l),(s<<0|c<<8|u<<10|h<<11|m<<15|d<<24)>>>0}};function Se(n,e){const t=[],r=er(n);let i=r.next();for(;i!==null;){let s=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=a();if(t.push({matcher:c,priority:s}),i!==",")break;i=r.next()}return t;function o(){if(i==="-"){i=r.next();const s=o();return c=>!!s&&!s(c)}if(i==="("){i=r.next();const s=l();return i===")"&&(i=r.next()),s}if(yt(i)){const s=[];do s.push(i),i=r.next();while(yt(i));return c=>e(s,c)}return null}function a(){const s=[];let c=o();for(;c;)s.push(c),c=o();return u=>s.every(h=>h(u))}function l(){const s=[];let c=a();for(;c&&(s.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=a()}return u=>s.some(h=>h(u))}}function yt(n){return!!n&&!!n.match(/[\w\.:]+/)}function er(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Xt(n){typeof n.dispose=="function"&&n.dispose()}var le=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},tr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},nr=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},rr=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new le(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const n=this.Q;this.Q=[];const e=new nr;for(const t of n)ir(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof le){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function ir(n,e,t,r){const i=t.lookup(n.scopeName);if(!i){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);n instanceof le?ve({baseGrammar:o,selfGrammar:i},r):Je(n.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const a=t.injections(n.scopeName);if(a)for(const l of a)r.add(new le(l))}function Je(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];we([r],e,t)}}function ve(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&we(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&we(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function we(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const i=r.repository?Ht({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&we(r.patterns,{...e,repository:i},t);const o=r.include;if(!o)continue;const a=Qt(o);switch(a.kind){case 0:ve({...e,selfGrammar:e.baseGrammar},t);break;case 1:ve(e,t);break;case 2:Je(a.ruleName,{...e,repository:i},t);break;case 3:case 4:const l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};a.kind===4?Je(a.ruleName,s,t):ve(s,t)}else a.kind===4?t.add(new tr(a.scopeName,a.ruleName)):t.add(new le(a.scopeName));break}}}var or=class{kind=0},sr=class{kind=1},ar=class{constructor(n){this.ruleName=n}kind=2},lr=class{constructor(n){this.scopeName=n}kind=3},cr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}kind=4};function Qt(n){if(n==="$base")return new or;if(n==="$self")return new sr;const e=n.indexOf("#");if(e===-1)return new lr(n);if(e===0)return new ar(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new cr(t,r)}}var ur=/\\(\d+)/,vt=/\\(\d+)/g,hr=-1,Zt=-2;var de=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=pe.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=pe.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Wt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:pe.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:pe.replaceCaptures(this._contentName,n,e)}},dr=class extends de{retokenizeCapturedWithRuleId;constructor(n,e,t,r,i){super(n,e,t,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},mr=class extends de{_match;captures;_cachedCompiledPatterns;constructor(n,e,t,r,i){super(n,e,t,null),this._match=new ce(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ue,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},bt=class extends de{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,i){super(n,e,t,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ue,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ye=class extends de{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,i,o,a,l,s,c){super(n,e,t,r),this._begin=new ce(i,this.id),this.beginCaptures=o,this._end=new ce(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ue;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ce=class extends de{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(n,e,t,r,i,o,a,l,s){super(n,e,t,r),this._begin=new ce(i,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new ce(a,Zt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ue;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ue,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},en=class I{static createCaptureRule(e,t,r,i,o){return e.registerRule(a=>new dr(t,a,r,i,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new mr(e.$vscodeTextmateLocation,e.id,e.name,e.match,I._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=Ht({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new bt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,I._compilePatterns(o,t,r))}return e.while?new Ce(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,I._compileCaptures(e.whileCaptures||e.captures,t,r),I._compilePatterns(e.patterns,t,r)):new Ye(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,I._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,I._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let i=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=I.getCompiledRuleId(e[a],t,r)),i[l]=I.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return i}static _compilePatterns(e,t,r){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const c=Qt(l.include);switch(c.kind){case 0:case 1:s=I.getCompiledRuleId(r[l.include],t,r);break;case 2:let u=r[c.ruleName];u&&(s=I.getCompiledRuleId(u,t,r));break;case 3:case 4:const h=c.scopeName,m=c.kind===4?c.ruleName:null,d=t.getExternalGrammar(h,r);if(d)if(m){let p=d.repository[m];p&&(s=I.getCompiledRuleId(p,t,d.repository))}else s=I.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else s=I.getCompiledRuleId(l,t,r);if(s!==-1){const c=t.getRule(s);let u=!1;if((c instanceof bt||c instanceof Ye||c instanceof Ce)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},ce=class tn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const r=e.length;let i=0,o=[],a=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(o.push(e.substring(i,l)),o.push("$(?!\\n)(?<!\\n)"),i=l+2):(c==="A"||c==="G")&&(a=!0),l++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=ur.test(this.source):this.hasBackReferences=!1}clone(){return new tn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(i=>e.substring(i.start,i.end));return vt.lastIndex=0,this.source.replace(vt,(i,o)=>qt(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],i=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,r[o]=l,i[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="￿",t[o+1]="￿",r[o+1]="A",i[o+1]="A"):s==="G"?(e[o+1]="￿",t[o+1]="G",r[o+1]="￿",i[o+1]="G"):(e[o+1]=s,t[o+1]=s,r[o+1]=s,i[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ue=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new St(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(i=>i.resolveAnchors(e,t));return new St(n,r,this._items.map(i=>i.ruleId))}},St=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
3
+ `)}findNextMatchSync(n,e,t){const r=this.scanner.findNextMatchSync(n,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},$e=class{constructor(n,e){this.languageId=n,this.tokenType=e}},pr=class Xe{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new $e(e,8),this._embeddedLanguagesMatcher=new fr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Xe._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new $e(0,0);_getBasicScopeAttributes=new Kt(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new $e(t,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Xe.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},fr=class{values;scopesRegExp;constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>qt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},wt=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function nn(n,e,t,r,i,o,a,l){const s=e.content.length;let c=!1,u=-1;if(a){const d=gr(n,e,t,r,i,o);i=d.stack,r=d.linePos,t=d.isFirstLine,u=d.anchorPosition}const h=Date.now();for(;!c;){if(l!==0&&Date.now()-h>l)return new wt(i,!0);m()}return new wt(i,!1);function m(){const d=_r(n,e,t,r,i,u);if(!d){o.produce(i,s),c=!0;return}const p=d.captureIndices,S=d.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(S===hr){const v=i.getRule(n);o.produce(i,p[0].start),i=i.withContentNameScopesList(i.nameScopesList),se(n,e,t,i,o,v.endCaptures,p),o.produce(i,p[0].end);const g=i;if(i=i.parent,u=g.getAnchorPos(),!y&&g.getEnterPos()===r){i=g,o.produce(i,s),c=!0;return}}else{const v=n.getRule(S);o.produce(i,p[0].start);const g=i,b=v.getName(e.content,p),E=i.contentNameScopesList.pushAttributed(b,n);if(i=i.push(S,r,u,p[0].end===s,null,E,E),v instanceof Ye){const C=v;se(n,e,t,i,o,C.beginCaptures,p),o.produce(i,p[0].end),u=p[0].end;const O=C.getContentName(e.content,p),G=E.pushAttributed(O,n);if(i=i.withContentNameScopesList(G),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(e.content,p))),!y&&g.hasSameRuleAs(i)){i=i.pop(),o.produce(i,s),c=!0;return}}else if(v instanceof Ce){const C=v;se(n,e,t,i,o,C.beginCaptures,p),o.produce(i,p[0].end),u=p[0].end;const O=C.getContentName(e.content,p),G=E.pushAttributed(O,n);if(i=i.withContentNameScopesList(G),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(e.content,p))),!y&&g.hasSameRuleAs(i)){i=i.pop(),o.produce(i,s),c=!0;return}}else if(se(n,e,t,i,o,v.captures,p),o.produce(i,p[0].end),i=i.pop(),!y){i=i.safePop(),o.produce(i,s),c=!0;return}}p[0].end>r&&(r=p[0].end,t=!1)}}function gr(n,e,t,r,i,o){let a=i.beginRuleCapturedEOL?0:-1;const l=[];for(let s=i;s;s=s.pop()){const c=s.getRule(n);c instanceof Ce&&l.push({rule:c,stack:s})}for(let s=l.pop();s;s=l.pop()){const{ruleScanner:c,findOptions:u}=br(s.rule,n,s.stack.endRule,t,r===a),h=c.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==Zt){i=s.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(s.stack,h.captureIndices[0].start),se(n,e,t,s.stack,o,s.rule.whileCaptures,h.captureIndices),o.produce(s.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,t=!1))}else{i=s.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:t}}function _r(n,e,t,r,i,o){const a=yr(n,e,t,r,i,o),l=n.getInjections();if(l.length===0)return a;const s=vr(l,n,e,t,r,i,o);if(!s)return a;if(!a)return s;const c=a.captureIndices[0].start,u=s.captureIndices[0].start;return u<c||s.priorityMatch&&u===c?s:a}function yr(n,e,t,r,i,o){const a=i.getRule(n),{ruleScanner:l,findOptions:s}=rn(a,n,i.endRule,t,r===o),c=l.findNextMatchSync(e,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function vr(n,e,t,r,i,o,a){let l=Number.MAX_VALUE,s=null,c,u=0;const h=o.contentNameScopesList.getScopeNames();for(let m=0,d=n.length;m<d;m++){const p=n[m];if(!p.matcher(h))continue;const S=e.getRule(p.ruleId),{ruleScanner:y,findOptions:v}=rn(S,e,null,r,i===a),g=y.findNextMatchSync(t,i,v);if(!g)continue;const b=g.captureIndices[0].start;if(!(b>=l)&&(l=b,s=g.captureIndices,c=g.ruleId,u=p.priority,l===i))break}return s?{priorityMatch:u===-1,captureIndices:s,matchedRuleId:c}:null}function rn(n,e,t,r,i){return{ruleScanner:n.compileAG(e,t,r,i),findOptions:0}}function br(n,e,t,r,i){return{ruleScanner:n.compileWhileAG(e,t,r,i),findOptions:0}}function se(n,e,t,r,i,o,a){if(o.length===0)return;const l=e.content,s=Math.min(o.length,a.length),c=[],u=a[0].end;for(let h=0;h<s;h++){const m=o[h];if(m===null)continue;const d=a[h];if(d.length===0)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),m.retokenizeCapturedWithRuleId){const S=m.getName(l,a),y=r.contentNameScopesList.pushAttributed(S,n),v=m.getContentName(l,a),g=y.pushAttributed(v,n),b=r.push(m.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,g),E=n.createOnigString(l.substring(0,d.end));nn(n,E,t&&d.start===0,d.start,b,i,!1,0),Xt(E);continue}const p=m.getName(l,a);if(p!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,n);c.push(new Sr(y,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Sr=class{scopes;endPos;constructor(n,e){this.scopes=n,this.endPos=e}};function wr(n,e,t,r,i,o,a,l){return new Er(n,e,t,r,i,o,a,l)}function Ct(n,e,t,r,i){const o=Se(e,Ee),a=en.getCompiledRuleId(t,r,i.repository);for(const l of o)n.push({debugSelector:e,matcher:l.matcher,ruleId:a,grammar:i,priority:l.priority})}function Ee(n,e){if(e.length<n.length)return!1;let t=0;return n.every(r=>{for(let i=t;i<e.length;i++)if(Cr(e[i],r))return t=i+1,!0;return!1})}function Cr(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var Er=class{constructor(n,e,t,r,i,o,a,l){if(this._rootScopeName=n,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new pr(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Et(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const s of Object.keys(i)){const c=Se(s,Ee);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const i=r.injections;if(i)for(let a in i)Ct(e,a,i[a],this,r);const o=this._grammarRepository.injections(t);o&&o.forEach(a=>{const l=this.getExternalGrammar(a);if(l){const s=l.injectionSelector;s&&Ct(e,s,l,this,l)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=Et(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=en.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Qe.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Z.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),m=this.getRule(this._rootId).getName(null,null);let d;m?d=ae.createRootAndLookUpScopeName(m,h,this):d=ae.createRoot("unknown",h),e=new Qe(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,e.reset();n=n+`
4
+ `;const o=this.createOnigString(n),a=o.content.length,l=new Rr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),s=nn(this,o,i,0,e,l,!0,r);return Xt(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function Et(n,e){return n=Hn(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var ae=class V{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,i=e?.scopePath??null;for(const o of t)i=je.push(i,o.scopeNames),r=new V(r,i,o.encodedTokenAttributes);return r}static createRoot(e,t){return new V(null,new je(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const i=r.getMetadataForScope(e),o=new je(null,e),a=r.themeProvider.themeMatch(o),l=V.mergeAttributes(t,i,a);return new V(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let i=-1,o=0,a=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,a=r.backgroundId),Z.set(e,t.languageId,t.tokenType,null,i,o,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const r=e.split(/ /g);let i=this;for(const o of r)i=V._pushAttributed(i,o,t);return i}static _pushAttributed(e,t,r){const i=r.getMetadataForScope(t),o=e.scopePath.push(t),a=r.themeProvider.themeMatch(o),l=V.mergeAttributes(e.tokenAttributes,i,a);return new V(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},Qe=class F{constructor(e,t,r,i,o,a,l,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new F(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:F._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ae.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){F._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,i,o,a,l){return new F(this,e,t,r,i,o,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new F(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const r=ae.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new F(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,ae.fromExtension(r,t.contentNameScopesList))}},kr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(n,e){this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Se(t,Ee).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Se(t,Ee).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},Rr=class{constructor(n,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=n?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=n?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(r=Z.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=Z.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const t=n?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)t[r]=this._binaryTokens[r];return t}},Tr=class{constructor(n,e){this._onigLib=e,this._theme=n}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,r,i){if(!this._grammars.has(n)){let o=this._rawGrammars.get(n);if(!o)return null;this._grammars.set(n,wr(n,o,e,t,r,i,this,this._onigLib))}return this._grammars.get(n)}},Lr=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Tr(be.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(be.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new kr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,i,o){const a=new rr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(l=>this._loadSingleGrammar(l.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,t=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,i,o)}},Ze=Qe.NULL;const Pr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class me{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}}me.prototype.normal={};me.prototype.property={};me.prototype.space=void 0;function on(n,e){const t={},r={};for(const i of n)Object.assign(t,i.property),Object.assign(r,i.normal);return new me(t,r,e)}function et(n){return n.toLowerCase()}class N{constructor(e,t){this.attribute=t,this.property=e}}N.prototype.attribute="";N.prototype.booleanish=!1;N.prototype.boolean=!1;N.prototype.commaOrSpaceSeparated=!1;N.prototype.commaSeparated=!1;N.prototype.defined=!1;N.prototype.mustUseProperty=!1;N.prototype.number=!1;N.prototype.overloadedBoolean=!1;N.prototype.property="";N.prototype.spaceSeparated=!1;N.prototype.space=void 0;let Ar=0;const w=q(),R=q(),tt=q(),_=q(),k=q(),X=q(),D=q();function q(){return 2**++Ar}const nt=Object.freeze(Object.defineProperty({__proto__:null,boolean:w,booleanish:R,commaOrSpaceSeparated:D,commaSeparated:X,number:_,overloadedBoolean:tt,spaceSeparated:k},Symbol.toStringTag,{value:"Module"})),Ue=Object.keys(nt);class st extends N{constructor(e,t,r,i){let o=-1;if(super(e,t),kt(this,"space",i),typeof r=="number")for(;++o<Ue.length;){const a=Ue[o];kt(this,Ue[o],(r&nt[a])===nt[a])}}}st.prototype.defined=!0;function kt(n,e,t){t&&(n[e]=t)}function ee(n){const e={},t={};for(const[r,i]of Object.entries(n.properties)){const o=new st(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,t[et(r)]=r,t[et(o.attribute)]=r}return new me(e,t,n.space)}const sn=ee({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:R,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:k,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:_,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:k,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:R,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function an(n,e){return e in n?n[e]:e}function ln(n,e){return an(n,e.toLowerCase())}const Ir=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:w,allowPaymentRequest:w,allowUserMedia:w,alt:null,as:null,async:w,autoCapitalize:null,autoComplete:k,autoFocus:w,autoPlay:w,blocking:k,capture:null,charSet:null,checked:w,cite:null,className:k,cols:_,colSpan:null,content:null,contentEditable:R,controls:w,controlsList:k,coords:_|X,crossOrigin:null,data:null,dateTime:null,decoding:null,default:w,defer:w,dir:null,dirName:null,disabled:w,download:tt,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:w,formTarget:null,headers:k,height:_,hidden:tt,high:_,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:w,inputMode:null,integrity:null,is:null,isMap:w,itemId:null,itemProp:k,itemRef:k,itemScope:w,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:w,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:w,muted:w,name:null,nonce:null,noModule:w,noValidate:w,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:w,optimum:_,pattern:null,ping:k,placeholder:null,playsInline:w,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:w,referrerPolicy:null,rel:k,required:w,reversed:w,rows:_,rowSpan:_,sandbox:k,scope:null,scoped:w,seamless:w,selected:w,shadowRootClonable:w,shadowRootDelegatesFocus:w,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:w,useMap:null,value:R,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:w,declare:w,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:w,noHref:w,noShade:w,noWrap:w,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:w,disableRemotePlayback:w,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:ln}),xr=ee({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:D,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:w,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:X,g2:X,glyphName:X,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:an}),cn=ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()}}),un=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ln}),hn=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()}}),Or=/[A-Z]/g,Rt=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Dr(n,e){const t=et(e);let r=e,i=N;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Nr.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Rt,Br);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Rt.test(o)){let a=o.replace(Or,Mr);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=st}return new i(r,e)}function Mr(n){return"-"+n.toLowerCase()}function Br(n){return n.charAt(1).toUpperCase()}const Gr=on([sn,Ir,cn,un,hn],"html"),dn=on([sn,xr,cn,un,hn],"svg"),Tt={}.hasOwnProperty;function Vr(n,e){const t=e||{};function r(i,...o){let a=r.invalid;const l=r.handlers;if(i&&Tt.call(i,n)){const s=String(i[n]);a=Tt.call(l,s)?l[s]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const jr=/["&'<>`]/g,$r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Hr=/[|\\{}()[\]^$+*?.]/g,Lt=new WeakMap;function Wr(n,e){if(n=n.replace(e.subset?Fr(e.subset):jr,r),e.subset||e.escapeOnly)return n;return n.replace($r,t).replace(Ur,r);function t(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function r(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function Fr(n){let e=Lt.get(n);return e||(e=zr(n),Lt.set(n,e)),e}function zr(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(Hr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const qr=/[\dA-Fa-f]/;function Kr(n,e,t){const r="&#x"+n.toString(16).toUpperCase();return t&&e&&!qr.test(String.fromCharCode(e))?r:r+";"}const Jr=/\d/;function Yr(n,e,t){const r="&#"+String(n);return t&&e&&!Jr.test(String.fromCharCode(e))?r:r+";"}const Xr=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],He={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qr=["cent","copy","divide","gt","lt","not","para","times"],mn={}.hasOwnProperty,rt={};let fe;for(fe in He)mn.call(He,fe)&&(rt[He[fe]]=fe);const Zr=/[^\dA-Za-z]/;function ei(n,e,t,r){const i=String.fromCharCode(n);if(mn.call(rt,i)){const o=rt[i],a="&"+o;return t&&Xr.includes(o)&&!Qr.includes(o)&&(!r||e&&e!==61&&Zr.test(String.fromCharCode(e)))?a:a+";"}return""}function ti(n,e,t){let r=Kr(n,e,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=ei(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=Yr(n,e,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function Q(n,e){return Wr(n,Object.assign({format:ti},e))}const ni=/^>|^->|<!--|-->|--!>|<!-$/g,ri=[">"],ii=["<",">"];function oi(n,e,t,r){return r.settings.bogusComments?"<?"+Q(n.value,Object.assign({},r.settings.characterReferences,{subset:ri}))+">":"<!--"+n.value.replace(ni,i)+"-->";function i(o){return Q(o,Object.assign({},r.settings.characterReferences,{subset:ii}))}}function si(n,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Pt(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(e);for(;i!==-1;)r++,i=t.indexOf(e,i+e.length);return r}function ai(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function li(n){return n.join(" ").trim()}const ci=/[ \t\n\f\r]/g;function at(n){return typeof n=="object"?n.type==="text"?At(n.value):!1:At(n)}function At(n){return n.replace(ci,"")===""}const P=fn(1),pn=fn(-1),ui=[];function fn(n){return e;function e(t,r,i){const o=t?t.children:ui;let a=(r||0)+n,l=o[a];if(!i)for(;l&&at(l);)a+=n,l=o[a];return l}}const hi={}.hasOwnProperty;function gn(n){return e;function e(t,r,i){return hi.call(n,t.tagName)&&n[t.tagName](t,r,i)}}const lt=gn({body:mi,caption:We,colgroup:We,dd:_i,dt:gi,head:We,html:di,li:fi,optgroup:yi,option:vi,p:pi,rp:It,rt:It,tbody:Si,td:xt,tfoot:wi,th:xt,thead:bi,tr:Ci});function We(n,e,t){const r=P(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&at(r.value.charAt(0)))}function di(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function mi(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function pi(n,e,t){const r=P(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function fi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="li"}function gi(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function _i(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function It(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function yi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function vi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function bi(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Si(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function wi(n,e,t){return!P(t,e)}function Ci(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function xt(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ei=gn({body:Ti,colgroup:Li,head:Ri,html:ki,tbody:Pi});function ki(n){const e=P(n,-1);return!e||e.type!=="comment"}function Ri(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function Ti(n){const e=P(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&at(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Li(n,e,t){const r=pn(t,e),i=P(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&lt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Pi(n,e,t){const r=pn(t,e),i=P(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&lt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ge={name:[[`
5
+ \f\r &/=>`.split(""),`
6
+ \f\r "&'/=>\``.split("")],[`\0
7
+ \f\r "&'/<=>`.split(""),`\0
8
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
9
+ \f\r &>`.split(""),`\0
10
+ \f\r "&'<=>\``.split("")],[`\0
11
+ \f\r "&'<=>\``.split(""),`\0
12
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ai(n,e,t,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(n.tagName.toLowerCase());const l=[];let s;i.space==="html"&&n.tagName==="svg"&&(r.schema=dn);const c=Ii(r,n.properties),u=r.all(i.space==="html"&&n.tagName==="template"?n.content:n);return r.schema=i,u&&(a=!1),(c||!o||!Ei(n,e,t))&&(l.push("<",n.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!a&&(!o||!lt(n,e,t))&&l.push("</"+n.tagName+">"),l.join("")}function Ii(n,e){const t=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=xi(n,i,e[i]);o&&t.push(o)}}for(;++r<t.length;){const o=n.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&o!=='"'&&o!=="'"&&(t[r]+=" ")}return t.join("")}function xi(n,e,t){const r=Dr(n.schema,e),i=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,o=n.settings.allowDangerousCharacters?0:1;let a=n.quote,l;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const s=Q(r.attribute,Object.assign({},n.settings.characterReferences,{subset:ge.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?ai:li)(t,{padLeft:!n.settings.tightCommaSeparatedLists}):String(t),n.settings.collapseEmptyAttributes&&!t)?s:(n.settings.preferUnquoted&&(l=Q(t,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:ge.unquoted[i][o]}))),l!==t&&(n.settings.quoteSmart&&Pt(t,a)>Pt(t,n.alternative)&&(a=n.alternative),l=a+Q(t,Object.assign({},n.settings.characterReferences,{subset:(a==="'"?ge.single:ge.double)[i][o],attribute:!0}))+a),s+(l&&"="+l))}const Oi=["<","&"];function _n(n,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:Q(n.value,Object.assign({},r.settings.characterReferences,{subset:Oi}))}function Ni(n,e,t,r){return r.settings.allowDangerousHtml?n.value:_n(n,e,t,r)}function Di(n,e,t,r){return r.all(n)}const Mi=Vr("type",{invalid:Bi,unknown:Gi,handlers:{comment:oi,doctype:si,element:Ai,raw:Ni,root:Di,text:_n}});function Bi(n){throw new Error("Expected node, not `"+n+"`")}function Gi(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Vi={},ji={},$i=[];function Ui(n,e){const t=e||Vi,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Hi,all:Wi,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Pr,characterReferences:t.characterReferences||ji,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?dn:Gr,quote:r,alternative:i}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function Hi(n,e,t){return Mi(n,e,t,this)}function Wi(n){const e=[],t=n&&n.children||$i;let r=-1;for(;++r<t.length;)e[r]=this.one(t[r],r,n);return e.join("")}function ke(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},r=typeof n=="string"?n:n.name;for(const[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?t[i]=o:i===r&&Object.assign(t,o);return t}function H(n,e){return n&&(e?.[n?.toLowerCase()]||n)}function Fi(n){return Array.isArray(n)?n:[n]}async function yn(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function ct(n){return!n||["plaintext","txt","text","plain"].includes(n)}function vn(n){return n==="ansi"||ct(n)}function ut(n){return n==="none"}function bn(n){return ut(n)}function Sn(n,e){if(!e)return n;n.properties||={},n.properties.class||=[],typeof n.properties.class=="string"&&(n.properties.class=n.properties.class.split(/\s+/g)),Array.isArray(n.properties.class)||(n.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const r of t)r&&!n.properties.class.includes(r)&&n.properties.class.push(r);return n}function Ie(n,e=!1){const t=n.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<t.length;o+=2){const a=e?t[o]+(t[o+1]||""):t[o];i.push([a,r]),r+=t[o].length,r+=t[o+1]?.length||0}return i}function zi(n){const e=Ie(n,!0).map(([i])=>i);function t(i){if(i===n.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(const l of e){if(o<l.length)break;o-=l.length,a++}return{line:a,character:o}}function r(i,o){let a=0;for(let l=0;l<i;l++)a+=e[l].length;return a+=o,a}return{lines:e,indexToPos:t,posToIndex:r}}function qi(n,e,t){const r=new Set;for(const o of n.matchAll(/lang=["']([\w-]+)["']/g))r.add(o[1]);for(const o of n.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(o[1]);for(const o of n.matchAll(/\\begin\{([\w-]+)\}/g))r.add(o[1]);if(!t)return Array.from(r);const i=t.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const ht="light-dark()",Ki=["color","background-color"];function Ji(n,e){let t=0;const r=[];for(const i of e)i>t&&r.push({...n,content:n.content.slice(t,i),offset:n.offset+t}),t=i;return t<n.content.length&&r.push({...n,content:n.content.slice(t),offset:n.offset+t}),r}function Yi(n,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return t.length?n.map(r=>r.flatMap(i=>{const o=t.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,l)=>a-l);return o.length?Ji(i,o):i})):n}function Xi(n,e,t,r,i="css-vars"){const o={content:n.content,explanation:n.explanation,offset:n.offset},a=e.map(u=>Re(n.variants[u])),l=new Set(a.flatMap(u=>Object.keys(u))),s={},c=(u,h)=>{const m=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return t+e[u]+(h==="color"?"":m)};return a.forEach((u,h)=>{for(const m of l){const d=u[m]||"inherit";if(h===0&&r&&Ki.includes(m))if(r===ht&&a.length>1){const p=e.findIndex(g=>g==="light"),S=e.findIndex(g=>g==="dark");if(p===-1||S===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=a[p][m]||"inherit",v=a[S][m]||"inherit";s[m]=`light-dark(${y}, ${v})`,i==="css-vars"&&(s[c(h,m)]=d)}else s[m]=d;else i==="css-vars"&&(s[c(h,m)]=d)}}),o.htmlStyle=s,o}function Re(n){const e={};if(n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle){n.fontStyle&x.Italic&&(e["font-style"]="italic"),n.fontStyle&x.Bold&&(e["font-weight"]="bold");const t=[];n.fontStyle&x.Underline&&t.push("underline"),n.fontStyle&x.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function it(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}const wn=new WeakMap;function xe(n,e){wn.set(n,e)}function he(n){return wn.get(n)}class te{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new te(Object.fromEntries(Fi(t).map(r=>[r,Ze])),e)}constructor(...e){if(e.length===2){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,i]=e;this.lang=r,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Qi(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Qi(n){const e=[],t=new Set;function r(i){if(t.has(i))return;t.add(i);const o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(n),e}function Zi(n,e){if(!(n instanceof te))throw new T("Invalid grammar state");return n.getInternalStack(e)}function eo(){const n=new WeakMap;function e(t){if(!n.has(t.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>t.source.length)throw new T(`Invalid decoration offset: ${a}. Code length: ${t.source.length}`);return{...i.indexToPos(a),offset:a}}else{const l=i.lines[a.line];if(l===void 0)throw new T(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let s=a.character;if(s<0&&(s=l.length+s),s<0||s>l.length)throw new T(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${l.length}`);return{...a,character:s,offset:i.posToIndex(a.line,s)}}};const i=zi(t.source),o=(t.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));to(o),n.set(t.meta,{decorations:o,converter:i,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const i=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Yi(t,i)},code(t){if(!this.options.decorations?.length)return;const r=e(this),i=Array.from(t.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==r.converter.lines.length)throw new T(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,h,m,d){const p=i[u];let S="",y=-1,v=-1;if(h===0&&(y=0),m===0&&(v=0),m===Number.POSITIVE_INFINITY&&(v=p.children.length),y===-1||v===-1)for(let b=0;b<p.children.length;b++)S+=Cn(p.children[b]),y===-1&&S.length===h&&(y=b+1),v===-1&&S.length===m&&(v=b+1);if(y===-1)throw new T(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(v===-1)throw new T(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const g=p.children.slice(y,v);if(!d.alwaysWrap&&g.length===p.children.length)l(p,d,"line");else if(!d.alwaysWrap&&g.length===1&&g[0].type==="element")l(g[0],d,"token");else{const b={type:"element",tagName:"span",properties:{},children:g};l(b,d,"wrapper"),p.children.splice(y,g.length,b)}}function a(u,h){i[u]=l(i[u],h,"line")}function l(u,h,m){const d=h.properties||{},p=h.transform||(S=>S);return u.tagName=h.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},h.properties?.class&&Sn(u,h.properties.class),u=p(u,m)||u,u}const s=[],c=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(const u of c){const{start:h,end:m}=u;if(h.line===m.line)o(h.line,h.character,m.character,u);else if(h.line<m.line){o(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let d=h.line+1;d<m.line;d++)s.unshift(()=>a(d,u));o(m.line,0,m.character,u)}}s.forEach(u=>u())}}}function to(n){for(let e=0;e<n.length;e++){const t=n[e];if(t.start.offset>t.end.offset)throw new T(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;r<n.length;r++){const i=n[r],o=t.start.offset<=i.start.offset&&i.start.offset<t.end.offset,a=t.start.offset<i.end.offset&&i.end.offset<=t.end.offset,l=i.start.offset<=t.start.offset&&t.start.offset<i.end.offset,s=i.start.offset<t.end.offset&&t.end.offset<=i.end.offset;if(o||a||l||s){if(o&&a||l&&s||l&&t.start.offset===t.end.offset||a&&i.start.offset===i.end.offset)continue;throw new T(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Cn(n){return n.type==="text"?n.value:n.type==="element"?n.children.map(Cn).join(""):""}const no=[eo()];function Te(n){const e=ro(n.transformers||[]);return[...e.pre,...e.normal,...e.post,...no]}function ro(n){const e=[],t=[],r=[];for(const i of n)switch(i.enforce){case"pre":e.push(i);break;case"post":t.push(i);break;default:r.push(i)}return{pre:e,post:t,normal:r}}var z=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Fe={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function io(n,e){const t=n.indexOf("\x1B",e);if(t!==-1&&n[t+1]==="["){const r=n.indexOf("m",t);if(r!==-1)return{sequence:n.substring(t+2,r).split(";"),startPosition:t,position:r+1}}return{position:n.length}}function Ot(n){const e=n.shift();if(e==="2"){const t=n.splice(0,3).map(r=>Number.parseInt(r));return t.length!==3||t.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=n.shift();if(t)return{type:"table",index:Number(t)}}}function oo(n){const e=[];for(;n.length>0;){const t=n.shift();if(!t)continue;const r=Number.parseInt(t);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)Fe[r]&&e.push({type:"setDecoration",value:Fe[r]});else if(r<=29){const i=Fe[r-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:z[r-30]}});else if(r===38){const i=Ot(n);i&&e.push({type:"setForegroundColor",value:i})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:z[r-40]}});else if(r===48){const i=Ot(n);i&&e.push({type:"setBackgroundColor",value:i})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:z[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:z[r-100+8]}})}return e}function so(){let n=null,e=null,t=new Set;return{parse(r){const i=[];let o=0;do{const a=io(r,o),l=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(l.length>0&&i.push({value:l,foreground:n,background:e,decorations:new Set(t)}),a.sequence){const s=oo(a.sequence);for(const c of s)c.type==="resetAll"?(n=null,e=null,t.clear()):c.type==="resetForegroundColor"?n=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&t.delete(c.value);for(const c of s)c.type==="setForegroundColor"?n=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&t.add(c.value)}o=a.position}while(o<r.length);return i}}}var ao={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function lo(n=ao){function e(l){return n[l]}function t(l){return`#${l.map(s=>Math.max(0,Math.min(s,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<z.length;c++)r.push(e(z[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(t([l[c],l[u],l[h]]));let s=8;for(let c=0;c<24;c++,s+=10)r.push(t([s,s,s]));return r}function o(l){return i()[l]}function a(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return o(l.index)}}return{value:a}}const co={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function uo(n,e,t){const r=ke(n,t),i=Ie(e),o=Object.fromEntries(z.map(s=>{const c=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`,u=n.colors?.[c];return[s,u||co[s]]})),a=lo(o),l=so();return i.map(s=>l.parse(s[0]).map(c=>{let u,h;c.decorations.has("reverse")?(u=c.background?a.value(c.background):n.bg,h=c.foreground?a.value(c.foreground):n.fg):(u=c.foreground?a.value(c.foreground):n.fg,h=c.background?a.value(c.background):void 0),u=H(u,r),h=H(h,r),c.decorations.has("dim")&&(u=ho(u));let m=x.None;return c.decorations.has("bold")&&(m|=x.Bold),c.decorations.has("italic")&&(m|=x.Italic),c.decorations.has("underline")&&(m|=x.Underline),c.decorations.has("strikethrough")&&(m|=x.Strikethrough),{content:c.value,offset:s[1],color:u,bgColor:h,fontStyle:m}}))}function ho(n){const e=n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function dt(n,e,t={}){const{lang:r="text",theme:i=n.getLoadedThemes()[0]}=t;if(ct(r)||ut(i))return Ie(e).map(s=>[{content:s[0],offset:s[1]}]);const{theme:o,colorMap:a}=n.setTheme(i);if(r==="ansi")return uo(o,e,t);const l=n.getLanguage(r);if(t.grammarState){if(t.grammarState.lang!==l.name)throw new T(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${l.name}"`);if(!t.grammarState.themes.includes(o.name))throw new T(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return po(e,l,o,a,t)}function mo(...n){if(n.length===2)return he(n[1]);const[e,t,r={}]=n,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(ct(i)||ut(o))throw new T("Plain language does not have grammar state");if(i==="ansi")throw new T("ANSI language does not have grammar state");const{theme:a,colorMap:l}=e.setTheme(o),s=e.getLanguage(i);return new te(Le(t,s,a,l,r).stateStack,s.name,a.name)}function po(n,e,t,r,i){const o=Le(n,e,t,r,i),a=new te(Le(n,e,t,r,i).stateStack,e.name,t.name);return xe(o.tokens,a),o.tokens}function Le(n,e,t,r,i){const o=ke(t,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500}=i,s=Ie(n);let c=i.grammarState?Zi(i.grammarState,t.name)??Ze:i.grammarContextCode!=null?Le(i.grammarContextCode,e,t,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ze,u=[];const h=[];for(let m=0,d=s.length;m<d;m++){const[p,S]=s[m];if(p===""){u=[],h.push([]);continue}if(a>0&&p.length>=a){u=[],h.push([{content:p,offset:S,color:"",fontStyle:0}]);continue}let y,v,g;i.includeExplanation&&(y=e.tokenizeLine(p,c,l),v=y.tokens,g=0);const b=e.tokenizeLine2(p,c,l),E=b.tokens.length/2;for(let C=0;C<E;C++){const O=b.tokens[2*C],G=C+1<E?b.tokens[2*C+2]:p.length;if(O===G)continue;const ne=b.tokens[2*C+1],Pn=H(r[Z.getForeground(ne)],o),An=Z.getFontStyle(ne),De={content:p.substring(O,G),offset:S+O,color:Pn,fontStyle:An};if(i.includeExplanation){const ft=[];if(i.includeExplanation!=="scopeName")for(const $ of t.settings){let K;switch(typeof $.scope){case"string":K=$.scope.split(/,/).map(Me=>Me.trim());break;case"object":K=$.scope;break;default:continue}ft.push({settings:$,selectors:K.map(Me=>Me.split(/ /))})}De.explanation=[];let gt=0;for(;O+gt<G;){const $=v[g],K=p.substring($.startIndex,$.endIndex);gt+=K.length,De.explanation.push({content:K,scopes:i.includeExplanation==="scopeName"?fo($.scopes):go(ft,$.scopes)}),g+=1}}u.push(De)}h.push(u),u=[],c=b.ruleStack}return{tokens:h,stateStack:c}}function fo(n){return n.map(e=>({scopeName:e}))}function go(n,e){const t=[];for(let r=0,i=e.length;r<i;r++){const o=e[r];t[r]={scopeName:o,themeMatches:yo(n,o,e.slice(0,r))}}return t}function Nt(n,e){return n===e||e.substring(0,n.length)===n&&e[n.length]==="."}function _o(n,e,t){if(!Nt(n[n.length-1],e))return!1;let r=n.length-2,i=t.length-1;for(;r>=0&&i>=0;)Nt(n[r],t[i])&&(r-=1),i-=1;return r===-1}function yo(n,e,t){const r=[];for(const{selectors:i,settings:o}of n)for(const a of i)if(_o(a,e,t)){r.push(o);break}return r}function En(n,e,t){const r=Object.entries(t.themes).filter(s=>s[1]).map(s=>({color:s[0],theme:s[1]})),i=r.map(s=>{const c=dt(n,e,{...t,theme:s.theme}),u=he(c),h=typeof s.theme=="string"?s.theme:s.theme.name;return{tokens:c,state:u,theme:h}}),o=vo(...i.map(s=>s.tokens)),a=o[0].map((s,c)=>s.map((u,h)=>{const m={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in t&&t.includeExplanation&&(m.explanation=u.explanation),o.forEach((d,p)=>{const{content:S,explanation:y,offset:v,...g}=d[c][h];m.variants[r[p].color]=g}),m})),l=i[0].state?new te(Object.fromEntries(i.map(s=>[s.theme,s.state?.getInternalStack(s.theme)])),i[0].state.lang):void 0;return l&&xe(a,l),a}function vo(...n){const e=n.map(()=>[]),t=n.length;for(let r=0;r<n[0].length;r++){const i=n.map(s=>s[r]),o=e.map(()=>[]);e.forEach((s,c)=>s.push(o[c]));const a=i.map(()=>0),l=i.map(s=>s[0]);for(;l.every(s=>s);){const s=Math.min(...l.map(c=>c.content.length));for(let c=0;c<t;c++){const u=l[c];u.content.length===s?(o[c].push(u),a[c]+=1,l[c]=i[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,s)}),l[c]={...u,content:u.content.slice(s),offset:u.offset+s})}}}return e}function Pe(n,e,t){let r,i,o,a,l,s;if("themes"in t){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=t,m=Object.entries(t.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,g)=>v.color===c?-1:g.color===c?1:0);if(m.length===0)throw new T("`themes` option must not be empty");const d=En(n,e,t);if(s=he(d),c&&ht!==c&&!m.find(v=>v.color===c))throw new T(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=m.map(v=>n.getTheme(v.theme)),S=m.map(v=>v.color);o=d.map(v=>v.map(g=>Xi(g,S,u,c,h))),s&&xe(o,s);const y=m.map(v=>ke(v.theme,t));i=Dt(m,p,y,u,c,"fg",h),r=Dt(m,p,y,u,c,"bg",h),a=`shiki-themes ${p.map(v=>v.name).join(" ")}`,l=c?void 0:[i,r].join(";")}else if("theme"in t){const c=ke(t.theme,t);o=dt(n,e,t);const u=n.getTheme(t.theme);r=H(u.bg,c),i=H(u.fg,c),a=u.name,s=he(o)}else throw new T("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:a,rootStyle:l,grammarState:s}}function Dt(n,e,t,r,i,o,a){return n.map((l,s)=>{const c=H(e[s][o],t[s])||"inherit",u=`${r+l.color}${o==="bg"?"-bg":""}:${c}`;if(s===0&&i){if(i===ht&&n.length>1){const h=n.findIndex(S=>S.color==="light"),m=n.findIndex(S=>S.color==="dark");if(h===-1||m===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=H(e[h][o],t[h])||"inherit",p=H(e[m][o],t[m])||"inherit";return`light-dark(${d}, ${p});${u}`}return c}return a==="css-vars"?u:null}).filter(l=>!!l).join(";")}function Ae(n,e,t,r={meta:{},options:t,codeToHast:(i,o)=>Ae(n,i,o),codeToTokens:(i,o)=>Pe(n,i,o)}){let i=e;for(const p of Te(t))i=p.preprocess?.call(r,i,t)||i;let{tokens:o,fg:a,bg:l,themeName:s,rootStyle:c,grammarState:u}=Pe(n,i,t);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:m=!1}=t;h===!0?o=So(o):h==="never"&&(o=wo(o)),m&&(o=Co(o));const d={...r,get source(){return i}};for(const p of Te(t))o=p.tokens?.call(d,o)||o;return bo(o,{...t,fg:a,bg:l,themeName:s,rootStyle:c},d,u)}function bo(n,e,t,r=he(n)){const i=Te(e),o=[],a={type:"root",children:[]},{structure:l="classic",tabindex:s="0"}=e;let c={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...s!==!1&&s!=null?{tabindex:s.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const h=[],m={...t,structure:l,addClassToHast:Sn,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return a},get pre(){return c},get code(){return u},get lines(){return h}};if(n.forEach((p,S)=>{S&&(l==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
13
+ `}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const g of p){let b={type:"element",tagName:"span",properties:{...g.htmlAttrs},children:[{type:"text",value:g.content}]};const E=it(g.htmlStyle||Re(g));E&&(b.properties.style=E);for(const C of i)b=C?.span?.call(m,b,S+1,v,y,g)||b;l==="inline"?a.children.push(b):l==="classic"&&y.children.push(b),v+=g.content.length}if(l==="classic"){for(const g of i)y=g?.line?.call(m,y,S+1)||y;h.push(y),o.push(y)}}),l==="classic"){for(const p of i)u=p?.code?.call(m,u)||u;c.children.push(u);for(const p of i)c=p?.pre?.call(m,c)||c;a.children.push(c)}let d=a;for(const p of i)d=p?.root?.call(m,d)||d;return r&&xe(d,r),d}function So(n){return n.map(e=>{const t=[];let r="",i=0;return e.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&x.Underline||o.fontStyle&x.Strikethrough));s&&o.content.match(/^\s+$/)&&e[a+1]?(i||(i=o.offset),r+=o.content):r?(s?t.push({...o,offset:i,content:r+o.content}):t.push({content:r,offset:i},o),i=0,r=""):t.push(o)}),t})}function wo(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,i,o,a]=r;if(!i&&!a)return t;const l=[{...t,offset:t.offset+i.length,content:o}];return i&&l.unshift({content:i,offset:t.offset}),a&&l.push({content:a,offset:t.offset+i.length+o.length}),l}))}function Co(n){return n.map(e=>{const t=[];for(const r of e){if(t.length===0){t.push({...r});continue}const i=t[t.length-1],o=it(i.htmlStyle||Re(i)),a=it(r.htmlStyle||Re(r)),l=i.fontStyle&&(i.fontStyle&x.Underline||i.fontStyle&x.Strikethrough),s=r.fontStyle&&(r.fontStyle&x.Underline||r.fontStyle&x.Strikethrough);!l&&!s&&o===a?i.content+=r.content:t.push({...r})}return t})}const Eo=Ui;function ko(n,e,t){const r={meta:{},options:t,codeToHast:(o,a)=>Ae(n,o,a),codeToTokens:(o,a)=>Pe(n,o,a)};let i=Eo(Ae(n,e,t,r));for(const o of Te(t))i=o.postprocess?.call(r,i,t)||i;return i}const Mt={light:"#333333",dark:"#bbbbbb"},Bt={light:"#fffffe",dark:"#1e1e1e"},Gt="__shiki_resolved";function mt(n){if(n?.[Gt])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:r}=e;if(!t||!r){const l=e.settings?e.settings.find(s=>!s.name&&!s.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(t=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?Mt.light:Mt.dark),t||(t=e.type==="light"?Bt.light:Bt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function a(l){if(o.has(l))return o.get(l);i+=1;const s=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${s}`]?a(l):(o.set(l,s),s)}e.settings=e.settings.map(l=>{const s=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!s&&!c)return l;const u={...l,settings:{...l.settings}};if(s){const h=a(l.settings.foreground);e.colorReplacements[h]=l.settings.foreground,u.settings.foreground=h}if(c){const h=a(l.settings.background);e.colorReplacements[h]=l.settings.background,u.settings.background=h}return u});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const s=a(e.colors[l]);e.colorReplacements[s]=e.colors[l],e.colors[l]=s}return Object.defineProperty(e,Gt,{enumerable:!1,writable:!1,value:!0}),e}async function kn(n){return Array.from(new Set((await Promise.all(n.filter(e=>!vn(e)).map(async e=>await yn(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function Rn(n){return(await Promise.all(n.map(async t=>bn(t)?null:mt(await yn(t))))).filter(t=>!!t)}let Ro=3;function To(n,e=3){e>Ro||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let Y=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class Lo extends Lr{constructor(e,t,r,i={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=mt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=be.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new Y(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,t.size)for(const o of t)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const t=Array.from(this._langGraph.entries()),r=t.filter(([i,o])=>!o);if(r.length){const i=t.filter(([o,a])=>a&&a.embeddedLangs?.some(l=>r.map(([s])=>s).includes(l))).filter(o=>!r.includes(o));throw new Y(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of t)this._resolver.addLanguage(o);for(const[i,o]of t)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class Po{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let i=1;i<=t.length;i++){const o=t.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let ie=0;function Ao(n){ie+=1,n.warnings!==!1&&ie>=10&&ie%10===0&&console.warn(`[Shiki] ${ie} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new Y("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),r=(n.themes||[]).flat(1).map(mt),i=new Po(n.engine,t),o=new Lo(i,r,t,n.langAlias);let a;function l(g){y();const b=o.getGrammar(typeof g=="string"?g:g.name);if(!b)throw new Y(`Language \`${g}\` not found, you may need to load it first`);return b}function s(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const b=o.getTheme(g);if(!b)throw new Y(`Theme \`${g}\` not found, you may need to load it first`);return b}function c(g){y();const b=s(g);a!==g&&(o.setTheme(b),a=g);const E=o.getColorMap();return{theme:b,colorMap:E}}function u(){return y(),o.getLoadedThemes()}function h(){return y(),o.getLoadedLanguages()}function m(...g){y(),o.loadLanguages(g.flat(1))}async function d(...g){return m(await kn(g))}function p(...g){y();for(const b of g.flat(1))o.loadTheme(b)}async function S(...g){return y(),p(await Rn(g))}function y(){if(e)throw new Y("Shiki instance has been disposed")}function v(){e||(e=!0,o.dispose(),ie-=1)}return{setTheme:c,getTheme:s,getLanguage:l,getLoadedThemes:u,getLoadedLanguages:h,loadLanguage:d,loadLanguageSync:m,loadTheme:S,loadThemeSync:p,dispose:v,[Symbol.dispose]:v}}async function Io(n){n.engine||To("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([Rn(n.themes||[]),kn(n.langs||[]),n.engine]);return Ao({...n,themes:e,langs:t,engine:r})}async function xo(n){const e=await Io(n);return{getLastGrammarState:(...t)=>mo(e,...t),codeToTokensBase:(t,r)=>dt(e,t,r),codeToTokensWithThemes:(t,r)=>En(e,t,r),codeToTokens:(t,r)=>Pe(e,t,r),codeToHast:(t,r)=>Ae(e,t,r),codeToHtml:(t,r)=>ko(e,t,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Oo(n){const e=n.langs,t=n.themes,r=n.engine;async function i(o){function a(h){if(typeof h=="string"){if(vn(h))return[];h=o.langAlias?.[h]||h;const m=e[h];if(!m)throw new T(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return m}return h}function l(h){if(bn(h))return"none";if(typeof h=="string"){const m=t[h];if(!m)throw new T(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return m}return h}const s=(o.themes??[]).map(h=>l(h)),c=(o.langs??[]).map(h=>a(h)),u=await xo({engine:o.engine??r(),...o,themes:s,langs:c});return{...u,loadLanguage(...h){return u.loadLanguage(...h.map(a))},loadTheme(...h){return u.loadTheme(...h.map(l))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return i}function No(n){let e;async function t(r={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{e=n({...r,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return t}function Do(n,e){const t=No(n);async function r(i,o){const a=await t({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),l=await e?.guessEmbeddedLanguages?.(i,o.lang,a);return l&&await a.loadLanguage(...l),a}return{getSingletonHighlighter(i){return t(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await t({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Mo=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>f(()=>import("./C-Jbm3Hp.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>f(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>f(()=>import("./Cv9koXgw.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>f(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>f(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>f(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>f(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>f(()=>import("./eOWES_5F.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>f(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>f(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>f(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>f(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>f(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>f(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>f(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>f(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>f(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>f(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>f(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>f(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>f(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>f(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>f(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>f(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>f(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>f(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>f(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>f(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>f(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>f(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>f(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>f(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>f(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>f(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>f(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>f(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>f(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>f(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>f(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>f(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>f(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>f(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>f(()=>import("./PoHY5YXO.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>f(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>f(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>f(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>f(()=>import("./BHrmToEH.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>f(()=>import("./CnK8MTSM.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>f(()=>import("./NleAzG8P.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>f(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>f(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>f(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>f(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>f(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>f(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>f(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>f(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>f(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>f(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>f(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],Bo=Object.fromEntries(Mo.map(n=>[n.id,n.import]));class pt extends Error{constructor(e){super(e),this.name="ShikiError"}}function Go(){return 2147483648}function Vo(){return typeof performance<"u"?performance.now():Date.now()}const jo=(n,e)=>n+(e-n%e)%e;async function $o(n){let e,t;const r={};function i(d){t=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function o(d,p,S){r.HEAPU8.copyWithin(d,p,p+S)}function a(d){try{return e.grow(d-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function l(d){const p=r.HEAPU8.length;d=d>>>0;const S=Go();if(d>S)return!1;for(let y=1;y<=4;y*=2){let v=p*(1+.2/y);v=Math.min(v,d+100663296);const g=Math.min(S,jo(Math.max(d,v),65536));if(a(g))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,p,S=1024){const y=p+S;let v=p;for(;d[v]&&!(v>=y);)++v;if(v-p>16&&d.buffer&&s)return s.decode(d.subarray(p,v));let g="";for(;p<v;){let b=d[p++];if(!(b&128)){g+=String.fromCharCode(b);continue}const E=d[p++]&63;if((b&224)===192){g+=String.fromCharCode((b&31)<<6|E);continue}const C=d[p++]&63;if((b&240)===224?b=(b&15)<<12|E<<6|C:b=(b&7)<<18|E<<12|C<<6|d[p++]&63,b<65536)g+=String.fromCharCode(b);else{const O=b-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function u(d,p){return d?c(r.HEAPU8,d,p):""}const h={emscripten_get_now:Vo,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function m(){const p=await n({env:h,wasi_snapshot_preview1:h});e=p.memory,i(e.buffer),Object.assign(r,p),r.UTF8ToString=u}return await m(),r}var Uo=Object.defineProperty,Ho=(n,e,t)=>e in n?Uo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>Ho(n,typeof e!="symbol"?e+"":e,t);let A=null;function Wo(n){throw new pt(n.UTF8ToString(n.getLastOnigError()))}class Oe{constructor(e){L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16Value"),L(this,"utf8Value"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16");const t=e.length,r=Oe._utf8ByteLength(e),i=r!==t,o=i?new Uint32Array(t+1):null;i&&(o[t]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=t);const l=new Uint8Array(r);let s=0;for(let c=0;c<t;c++){const u=e.charCodeAt(c);let h=u,m=!1;if(u>=55296&&u<=56319&&c+1<t){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(h=(u-55296<<10)+65536|d-56320,m=!0)}i&&(o[c]=s,m&&(o[c+1]=s),h<=127?a[s+0]=c:h<=2047?(a[s+0]=c,a[s+1]=c):h<=65535?(a[s+0]=c,a[s+1]=c,a[s+2]=c):(a[s+0]=c,a[s+1]=c,a[s+2]=c,a[s+3]=c)),h<=127?l[s++]=h:h<=2047?(l[s++]=192|(h&1984)>>>6,l[s++]=128|(h&63)>>>0):h<=65535?(l[s++]=224|(h&61440)>>>12,l[s++]=128|(h&4032)>>>6,l[s++]=128|(h&63)>>>0):(l[s++]=240|(h&1835008)>>>18,l[s++]=128|(h&258048)>>>12,l[s++]=128|(h&4032)>>>6,l[s++]=128|(h&63)>>>0),m&&c++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,i=e.length;r<i;r++){const o=e.charCodeAt(r);let a=o,l=!1;if(o>=55296&&o<=56319&&r+1<i){const s=e.charCodeAt(r+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const Ne=class j{constructor(e){if(L(this,"id",++j.LAST_ID),L(this,"_onigBinding"),L(this,"content"),L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16"),L(this,"ptr"),!A)throw new pt("Must invoke loadWasm first.");this._onigBinding=A,this.content=e;const t=new Oe(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!j._sharedPtrInUse?(j._sharedPtr||(j._sharedPtr=A.omalloc(1e4)),j._sharedPtrInUse=!0,A.HEAPU8.set(t.utf8Value,j._sharedPtr),this.ptr=j._sharedPtr):this.ptr=t.createString(A)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===j._sharedPtr?j._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};L(Ne,"LAST_ID",0);L(Ne,"_sharedPtr",0);L(Ne,"_sharedPtrInUse",!1);let Tn=Ne;class Fo{constructor(e){if(L(this,"_onigBinding"),L(this,"_ptr"),!A)throw new pt("Must invoke loadWasm first.");const t=[],r=[];for(let l=0,s=e.length;l<s;l++){const c=new Oe(e[l]);t[l]=c.createString(A),r[l]=c.utf8Length}const i=A.omalloc(4*e.length);A.HEAPU32.set(t,i/4);const o=A.omalloc(4*e.length);A.HEAPU32.set(r,o/4);const a=A.createOnigScanner(i,o,e.length);for(let l=0,s=e.length;l<s;l++)A.ofree(t[l]);A.ofree(o),A.ofree(i),a===0&&Wo(A),this._onigBinding=A,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new Tn(e);const o=this._findNextMatchSync(e,t,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,r,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const c=l[s++],u=l[s++],h=[];for(let m=0;m<u;m++){const d=e.convertUtf8OffsetToUtf16(l[s++]),p=e.convertUtf8OffsetToUtf16(l[s++]);h[m]={start:d,end:p,length:p-d}}return{index:c,captureIndices:h}}}function zo(n){return typeof n.instantiator=="function"}function qo(n){return typeof n.default=="function"}function Ko(n){return typeof n.data<"u"}function Jo(n){return typeof Response<"u"&&n instanceof Response}function Yo(n){return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&Buffer.isBuffer?.(n)||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let _e;function Xo(n){if(_e)return _e;async function e(){A=await $o(async t=>{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),zo(r)?r=await r.instantiator(t):qo(r)?r=await r.default(t):(Ko(r)&&(r=r.data),Jo(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Qo(r)(t):r=await Zo(r)(t):Yo(r)?r=await ze(r)(t):r instanceof WebAssembly.Module?r=await ze(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await ze(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return _e=e(),_e}function ze(n){return e=>WebAssembly.instantiate(n,e)}function Qo(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Zo(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function es(n){return n&&await Xo(n),{createScanner(e){return new Fo(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Tn(e)}}}const Ln=[{id:"angular-html",name:"Angular HTML",import:(()=>f(()=>import("./DxNHbxmM.js").then(n=>n.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>f(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"astro",name:"Astro",import:(()=>f(()=>import("./DxSwrfjg.js"),__vite__mapDeps([6,7,2,8,3,9,10]),import.meta.url))},{id:"blade",name:"Blade",import:(()=>f(()=>import("./DNMeEaky.js"),__vite__mapDeps([11,12,1,2,3,13,14,15,7]),import.meta.url))},{id:"c",name:"C",import:(()=>f(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>f(()=>import("./CxbxFI8M.js"),__vite__mapDeps([16,2]),import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>f(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([17,18,19,20,15]),import.meta.url))},{id:"css",name:"CSS",import:(()=>f(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>f(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>f(()=>import("./DZxFcAj9.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>f(()=>import("./C9oPPf7i.js"),__vite__mapDeps([21,2,8,22,10]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>f(()=>import("./CmIQRyeF.js"),__vite__mapDeps([23,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>f(()=>import("./m17aaUwq.js"),__vite__mapDeps([24,1,2,3,25]),import.meta.url))},{id:"html",name:"HTML",import:(()=>f(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>f(()=>import("./DGP4VlC8.js"),__vite__mapDeps([12,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>f(()=>import("./CufHLc7y.js"),__vite__mapDeps([26,27,7,13,14,21,2,8,22,10]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>f(()=>import("./CYsAdtH9.js"),__vite__mapDeps([28,21,2,8,22,10,13,14,29]),import.meta.url))},{id:"imba",name:"Imba",import:(()=>f(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>f(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>f(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>f(()=>import("./CXZktZb0.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>f(()=>import("./Br6cN0cg.js"),__vite__mapDeps([31,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>f(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>f(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>f(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>f(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>f(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>f(()=>import("./CgjmDhmW.js"),__vite__mapDeps([32,17,18,19,20,15,33,2,34]),import.meta.url))},{id:"less",name:"Less",import:(()=>f(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>f(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>f(()=>import("./CMFEf1DS.js"),__vite__mapDeps([35,3,36,5,8]),import.meta.url))},{id:"mdc",name:"MDC",import:(()=>f(()=>import("./TsXTqZ29.js"),__vite__mapDeps([37,38,25,12,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>f(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"php",name:"PHP",import:(()=>f(()=>import("./Xqf5ue2O.js"),__vite__mapDeps([39,1,2,3,13,14,15,7]),import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>f(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>f(()=>import("./BLmx8bSh.js"),__vite__mapDeps([40,2,3,1]),import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>f(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>f(()=>import("./DiinP2Uv.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>f(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"sass",name:"Sass",import:(()=>f(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>f(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>f(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>f(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>f(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>f(()=>import("./DDBovgxi.js"),__vite__mapDeps([41,2,8,3,9]),import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>f(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([42,8,3,2,19,20,1,15,13,14]),import.meta.url))},{id:"tsx",name:"TSX",import:(()=>f(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>f(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>f(()=>import("./D7VJQ_DO.js"),__vite__mapDeps([43,3,2,8,7,12,1]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>f(()=>import("./tqtdBwhO.js"),__vite__mapDeps([44,43,3,2,8,7,12,1]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>f(()=>import("./CEG3Q07z.js"),__vite__mapDeps([45,3,5,36,46,9,43,2,8,7,12,1]),import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>f(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>f(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>f(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>f(()=>import("./BGJmEYvX.js"),__vite__mapDeps([13,14]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>f(()=>import("./Buea-lGh.js"),[],import.meta.url))}],ts=Object.fromEntries(Ln.map(n=>[n.id,n.import])),ns=Object.fromEntries(Ln.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),rs={...ts,...ns},is=Oo({langs:rs,themes:Bo,engine:()=>es(f(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:os}=Do(is,{guessEmbeddedLanguages:qi});class ss{diff(e,t,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const o=this.castInput(e,r),a=this.castInput(t,r),l=this.removeEmpty(this.tokenize(o,r)),s=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(l,s,r,i)}diffWithOptionsObj(e,t,r,i){var o;const a=g=>{if(g=this.postProcess(g,r),i){setTimeout(function(){i(g)},0);return}else return g},l=t.length,s=e.length;let c=1,u=l+s;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));const h=(o=r.timeout)!==null&&o!==void 0?o:1/0,m=Date.now()+h,d=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&p+1>=l)return a(this.buildValues(d[0].lastComponent,t,e));let S=-1/0,y=1/0;const v=()=>{for(let g=Math.max(S,-c);g<=Math.min(y,c);g+=2){let b;const E=d[g-1],C=d[g+1];E&&(d[g-1]=void 0);let O=!1;if(C){const ne=C.oldPos-g;O=C&&0<=ne&&ne<l}const G=E&&E.oldPos+1<s;if(!O&&!G){d[g]=void 0;continue}if(!G||O&&E.oldPos<C.oldPos?b=this.addToPath(C,!0,!1,0,r):b=this.addToPath(E,!1,!0,1,r),p=this.extractCommon(b,t,e,g,r),b.oldPos+1>=s&&p+1>=l)return a(this.buildValues(b.lastComponent,t,e))||!0;d[g]=b,b.oldPos+1>=s&&(y=Math.min(y,g-1)),p+1>=l&&(S=Math.max(S,g+1))}c++};if(i)(function g(){setTimeout(function(){if(c>u||Date.now()>m)return i(void 0);v()||g()},0)})();else for(;c<=u&&Date.now()<=m;){const g=v();if(g)return g}}addToPath(e,t,r,i,o){const a=e.lastComponent;return a&&!o.oneChangePerToken&&a.added===t&&a.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:a.count+1,added:t,removed:r,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:t,removed:r,previousComponent:a}}}extractCommon(e,t,r,i,o){const a=t.length,l=r.length;let s=e.oldPos,c=s-i,u=0;for(;c+1<a&&s+1<l&&this.equals(r[s+1],t[c+1],o);)c++,s++,u++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const i=[];let o;for(;e;)i.push(e),o=e.previousComponent,delete e.previousComponent,e=o;i.reverse();const a=i.length;let l=0,s=0,c=0;for(;l<a;l++){const u=i[l];if(u.removed)u.value=this.join(r.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let h=t.slice(s,s+u.count);h=h.map(function(m,d){const p=r[c+d];return p.length>m.length?p:m}),u.value=this.join(h)}else u.value=this.join(t.slice(s,s+u.count));s+=u.count,u.added||(c+=u.count)}}return i}}class as extends ss{constructor(){super(...arguments),this.tokenize=us}equals(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
14
+ `))&&(e=e.trim()),(!r.newlineIsToken||!t.includes(`
15
+ `))&&(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(`
16
+ `)&&(e=e.slice(0,-1)),t.endsWith(`
17
+ `)&&(t=t.slice(0,-1))),super.equals(e,t,r)}}const ls=new as;function cs(n,e,t){return ls.diff(n,e,t)}function us(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
18
+ `));const t=[],r=n.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){const o=r[i];i%2&&!e.newlineIsToken?t[t.length-1]+=o:t.push(o)}return t}const hs=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function ds(n,e,t){const r=[];for(const i of n){if(t==="v3"){const l=i.children.flatMap((s,c)=>{if(s.type!=="element")return s;const u=s.children[0];if(u.type!=="text")return s;const h=c===i.children.length-1;if(!jt(u.value,h))return s;const d=u.value.split(/(\s+\/\/)/);if(d.length<=1)return s;let p=[d[0]];for(let S=1;S<d.length;S+=2)p.push(d[S]+(d[S+1]||""));return p=p.filter(Boolean),p.length<=1?s:p.map(S=>({...s,children:[{type:"text",value:S}]}))});l.length!==i.children.length&&(i.children=l)}const o=i.children;let a=o.length-1;t==="v1"?a=0:e&&(a=o.length-2);for(let l=Math.max(a,0);l<o.length;l++){const s=o[l];if(s.type!=="element")continue;const c=s.children.at(0);if(c?.type!=="text")continue;const u=l===o.length-1,h=jt(c.value,u);if(h)if(e&&!u&&l!==0){const m=Vt(o[l-1],"{")&&Vt(o[l+1],"}");r.push({info:h,line:i,token:s,isLineCommentOnly:o.length===3&&s.children.length===1,isJsxStyle:m})}else r.push({info:h,line:i,token:s,isLineCommentOnly:o.length===1&&s.children.length===1,isJsxStyle:!1})}}return r}function Vt(n,e){if(n.type!=="element")return!1;const t=n.children[0];return t.type!=="text"?!1:t.value.trim()===e}function jt(n,e){let t=n.trimStart();const r=n.length-t.length;t=t.trimEnd();const i=n.length-t.length-r;for(const[o,a]of hs){if(a&&!e)continue;const l=o.exec(t);if(l)return[" ".repeat(r)+l[1],l[2],l[3]?l[3]+" ".repeat(i):void 0]}}function ms(n){const e=n.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return e&&e[1].trim().length===0?n.slice(0,e.index):n}function ps(n,e,t,r){return r==null&&(r="v3"),{name:n,code(i){const o=i.children.filter(c=>c.type==="element"),a=[];i.data??={};const l=i.data;l._shiki_notation??=ds(o,["jsx","tsx"].includes(this.options.lang),r);const s=l._shiki_notation;for(const c of s){if(c.info[1].length===0)continue;let u=o.indexOf(c.line);c.isLineCommentOnly&&r!=="v1"&&u++;let h=!1;if(c.info[1]=c.info[1].replace(e,(...d)=>t.call(this,d,c.line,c.token,o,u)?(h=!0,""):d[0]),!h)continue;r==="v1"&&(c.info[1]=ms(c.info[1]));const m=c.info[1].trim().length===0;if(m&&(c.info[1]=""),m&&c.isLineCommentOnly)a.push(c.line);else if(m&&c.isJsxStyle)c.line.children.splice(c.line.children.indexOf(c.token)-1,3);else if(m)c.line.children.splice(c.line.children.indexOf(c.token),1);else{const d=c.token.children[0];d.type==="text"&&(d.value=c.info.join(""))}}for(const c of a){const u=i.children.indexOf(c),h=i.children[u+1];let m=1;h?.type==="text"&&h?.value===`
19
+ `&&(m=2),i.children.splice(u,m)}}}}function fs(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gs(n={},e="@shikijs/transformers:notation-map"){const{classMap:t={},classActivePre:r=void 0}=n;return ps(e,new RegExp(`\\s*\\[!code (${Object.keys(t).map(fs).join("|")})(:\\d+)?\\]`),function([i,o,a=":1"],l,s,c,u){const h=Number.parseInt(a.slice(1),10);for(let m=u;m<Math.min(u+h,c.length);m++)this.addClassToHast(c[m],t[o]);return r&&this.addClassToHast(this.pre,r),!0},n.matchAlgorithm)}function _s(n={}){const{classLineAdd:e="diff add",classLineRemove:t="diff remove",classActivePre:r="has-diff"}=n;return gs({classMap:{"++":e,"--":t},classActivePre:r,matchAlgorithm:n.matchAlgorithm},"@shikijs/transformers:notation-diff")}const ys={class:"flex items-start justify-between gap-3"},vs={class:"min-w-0"},bs={class:"text-sm font-semibold"},Ss={class:"text-xs text-neutral-500 truncate"},ws={class:"mt-1 flex flex-wrap gap-2 text-[11px]"},Cs={class:"shrink-0 flex items-center gap-2"},Es=["innerHTML"],ks=$t({__name:"HydrationIssue",props:{issue:{}},setup(n){const e=n,t=J(()=>e.issue.instance.type.name??e.issue.instance.type.__name??"AnonymousComponent"),r=J(()=>e.issue.instance.type.__file),i=J(()=>e.issue.instance.vnode.el?.tagName?.toLowerCase()||"unknown"),o=J(()=>e.issue.instance.vnode.el),{highlightElement:a,inspectElementInEditor:l,clearHighlight:s}=Un(),c=Mn("");async function u(S,y){const v=cs(S,y,{stripTrailingCr:!0,ignoreNewlineAtEof:!0});c.value=await os(h(v),{theme:"github-dark",lang:"html",transformers:[_s()]})}function h(S){return S.map(y=>y.added?`// [!code ++]
20
+ ${y.value}`:y.removed?`// [!code --]
21
+ ${y.value} `:y.value).join("")}const m=J(()=>e.issue.htmlPreHydration??""),d=J(()=>e.issue.htmlPostHydration??"");Bn([m,d],([S,y])=>{u(S,y)},{immediate:!0});function p(S){navigator.clipboard?.writeText(S).catch(()=>{})}return(S,y)=>{const v=In,g=xn,b=On,E=Nn;return oe(),Ut(E,{"p-4":"",relative:""},{default:re(()=>[U("div",ys,[U("div",vs,[U("div",bs,Be(M(t)),1),U("div",Ss,Be(M(r)),1),U("div",ws,[W(v,{size:"small",title:"Root element tag where mismatch was detected."},{default:re(()=>[Gn(" root: "+Be(M(i)),1)]),_:1})])]),U("div",Cs,[W(b,{size:"small",quaternary:"",title:"Open in editor",onMouseover:y[0]||(y[0]=C=>M(a)(M(o))),onMouseleave:y[1]||(y[1]=C=>M(s)()),onClick:y[2]||(y[2]=C=>M(l)(M(o)))},{default:re(()=>[W(g,{name:"material-symbols:file-open-outline",class:"text-lg"})]),_:1}),W(b,{size:"small",quaternary:"",onClick:y[3]||(y[3]=C=>p(M(m)))},{default:re(()=>[W(g,{name:"material-symbols:content-copy-outline",class:"text-lg"}),y[5]||(y[5]=U("span",{class:"ml-1"},"Copy pre",-1))]),_:1}),W(b,{size:"small",quaternary:"",onClick:y[4]||(y[4]=C=>p(M(d)))},{default:re(()=>[W(g,{name:"material-symbols:content-copy-outline",class:"text-lg"}),y[6]||(y[6]=U("span",{class:"ml-1"},"Copy post",-1))]),_:1})])]),U("div",{class:"w-full mt-3 overflow-auto rounded-lg",innerHTML:M(c)},null,8,Es)]),_:1})}}}),Rs=Object.assign(Vn(ks,[["__scopeId","data-v-a61f8c06"]]),{__name:"HydrationIssue"}),Ts={grid:"","gap-4":"","p-4":""},Ls={key:1,class:"text-neutral-500 dark:text-neutral-400"},Vs=$t({__name:"hydration",setup(n){const{hydration:e}=Dn();return(t,r)=>{const i=Rs;return oe(),Ge("div",Ts,[M(e).length?(oe(!0),Ge(jn,{key:0},$n(M(e),o=>(oe(),Ut(i,{issue:o},null,8,["issue"]))),256)):(oe(),Ge("div",Ls," No hydration issues found "))])}}});export{Vs as default};