comp-hub 0.28.2 → 0.28.4

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 (131) hide show
  1. package/README.md +132 -132
  2. package/bin/cli.js +54 -54
  3. package/bin/lib/commands.js +173 -173
  4. package/bin/lib/constants.js +22 -22
  5. package/bin/lib/http.js +62 -62
  6. package/bin/lib/startup.js +183 -183
  7. package/bin/lib/utils.js +112 -112
  8. package/dist/index.js +17 -17
  9. package/dist/website/container/assets/index-CVxgDysj.js +14 -0
  10. package/dist/website/container/assets/index-h6S5dyy4.css +1 -0
  11. package/dist/website/container/index.html +32 -32
  12. package/dist/website/container/js/vue2-sfc-loader.js +260 -260
  13. package/dist/website/container/js/vue3-sfc-loader.js +289 -289
  14. package/dist/website/item/assets/index-CGgDhzaN.js +39 -0
  15. package/dist/website/item/assets/index-lq3uP4DP.css +1 -0
  16. package/dist/website/item/index.html +30 -30
  17. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js +1 -0
  18. package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js} +1 -1
  19. package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-CW16Y3Jx.js → BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js} +1 -1
  20. package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-Bvp_ZzUC.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-gAGMSPxq.js} +1 -1
  21. package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js} +1 -1
  22. package/dist/website/main/assets/{LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js → LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js} +1 -1
  23. package/dist/website/main/assets/{PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js → PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js} +1 -1
  24. package/dist/website/main/assets/{cloud-upload-BRjLuSi4.js → cloud-upload-Cdco6849.js} +1 -1
  25. package/dist/website/main/assets/{core-B1GcTOER.js → core-CcVTMiBP.js} +1 -1
  26. package/dist/website/main/assets/{el-table-column-8qfe8CVK.js → el-table-column-CGzXlVpD.js} +1 -1
  27. package/dist/website/main/assets/{home-rounded-8qNxvN2I.js → home-rounded-BhKYWFxg.js} +1 -1
  28. package/dist/website/main/assets/{index-BbWYQKfr.css → index-B-RD5UzD.css} +1 -1
  29. package/dist/website/main/assets/index-BGAeKS26.js +2 -0
  30. package/dist/website/main/assets/index-BUoUeU3q.js +1 -0
  31. package/dist/website/main/assets/index-BXRWapP9.js +1 -0
  32. package/dist/website/main/assets/index-Bb4dzB_t.js +1 -0
  33. package/dist/website/main/assets/index-BbVoROfE.js +1 -0
  34. package/dist/website/main/assets/index-BjMNHNZQ.js +1 -0
  35. package/dist/website/main/assets/{index-0Y9kW7YJ.js → index-BoIy-5_p.js} +1 -1
  36. package/dist/website/main/assets/index-C1KlLhF1.js +1 -0
  37. package/dist/website/main/assets/index-CEizeGti.js +1 -0
  38. package/dist/website/main/assets/index-CKuqpXAR.js +1 -0
  39. package/dist/website/main/assets/{index-DoTR7Juh.css → index-CNqahi2L.css} +1 -1
  40. package/dist/website/main/assets/index-CP6sOfKF.css +1 -0
  41. package/dist/website/main/assets/index-Cacmn-le.js +1 -0
  42. package/dist/website/main/assets/index-Car8xTN1.js +1 -0
  43. package/dist/website/main/assets/{index-BbT8J87U.js → index-Cd1GqG9-.js} +14 -14
  44. package/dist/website/main/assets/index-Cdv-VxRL.js +2 -0
  45. package/dist/website/main/assets/{index-DxyEzkir.css → index-Cl0SK7oa.css} +1 -1
  46. package/dist/website/main/assets/index-CmSN0r9I.css +1 -0
  47. package/dist/website/main/assets/{index-DAzjyaU7.js → index-D26LViqE.js} +1 -1
  48. package/dist/website/main/assets/index-D4vHIupw.js +1 -0
  49. package/dist/website/main/assets/index-D62zqHYv.js +1 -0
  50. package/dist/website/main/assets/{index-D14ffQA8.js → index-DGh9vJu4.js} +1 -1
  51. package/dist/website/main/assets/index-DJ4AvgpT.css +1 -0
  52. package/dist/website/main/assets/{index-DZjtRMOp.js → index-DKb_LuTB.js} +2 -2
  53. package/dist/website/main/assets/index-DNWHN_5F.js +1 -0
  54. package/dist/website/main/assets/index-D_mLoa5V.js +1 -0
  55. package/dist/website/main/assets/{index-CYFm50TZ.js → index-DcbQ_ahf.js} +1 -1
  56. package/dist/website/main/assets/index-Dp1XrCJD.js +1 -0
  57. package/dist/website/main/assets/index-DroKXXhR.js +1 -0
  58. package/dist/website/main/assets/index-JcGCRZej.js +1 -0
  59. package/dist/website/main/assets/{index-B0VzfFN6.js → index-RTrUAzmO.js} +1 -1
  60. package/dist/website/main/assets/index-VFwGpUE-.css +1 -0
  61. package/dist/website/main/assets/{index-BrvU6RCl.js → index-WPdppQti.js} +1 -1
  62. package/dist/website/main/assets/index-XEEaWsyW.js +1 -0
  63. package/dist/website/main/assets/{index-D0mMVLUA.js → index-eyM0Chsl.js} +1 -1
  64. package/dist/website/main/assets/index-gswaBdwW.js +4 -0
  65. package/dist/website/main/assets/index-tCnrZXQC.js +1 -0
  66. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-0kHDvgX-.js +2 -0
  67. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CK2dnh4X.js +1 -0
  68. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BNtjpWNo.js → index.vue_vue_type_script_setup_true_lang-CVJdloX3.js} +1 -1
  69. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-DX9EV5b8.js → index.vue_vue_type_script_setup_true_lang-CgaIiyg6.js} +1 -1
  70. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BcOOhzBa.js → index.vue_vue_type_script_setup_true_lang-DhkIAGmf.js} +1 -1
  71. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-ZQHD5QfX.js → index.vue_vue_type_script_setup_true_lang-Q7u6DEB4.js} +1 -1
  72. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-_M-s3_Ie.js +1 -0
  73. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-CDQojDH9.js → index.vue_vue_type_style_index_0_lang-CIN0y80j.js} +1 -1
  74. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-BrQNRrgu.js → index.vue_vue_type_style_index_0_lang-DTKsCZO_.js} +1 -1
  75. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-Dao6jw6s.js → index.vue_vue_type_style_index_0_lang-iFwx3NZQ.js} +1 -1
  76. package/dist/website/main/assets/{kid-star-Cr1NlTdT.js → kid-star-DD-9HSxX.js} +1 -1
  77. package/dist/website/main/assets/{md5-DzJRYP5-.js → md5-ohq5q_Pj.js} +1 -1
  78. package/dist/website/main/assets/{settings-BFJXTJ9K.js → settings-f8ZwrSyv.js} +1 -1
  79. package/dist/website/main/assets/{supervised-user-circle-Bnx5icEm.js → supervised-user-circle-C6l0wkza.js} +1 -1
  80. package/dist/website/main/assets/{sync-saved-locally-rounded-DtyOT0dw.js → sync-saved-locally-rounded-Cgz-NvDy.js} +1 -1
  81. package/dist/website/main/assets/{terminal-D72IJB2N.js → terminal-DIdElzFh.js} +1 -1
  82. package/dist/website/main/assets/{useCacheOssStore-DApHt9lQ.js → useCacheOssStore-OAoLDVbw.js} +1 -1
  83. package/dist/website/main/assets/useCompEditStore-CA87jjE-.js +368 -0
  84. package/dist/website/main/assets/useCompEditStore-CiX1ghqX.css +1 -0
  85. package/dist/website/main/assets/{useCompMetaLocalStore-eE-CBcE9.js → useCompMetaLocalStore-BKTMp_k8.js} +1 -1
  86. package/dist/website/main/assets/{useKeyword-BLg7A4PR.js → useKeyword-CmJvOYMB.js} +1 -1
  87. package/dist/website/main/assets/{useMessage-Cx6Ix45S.js → useMessage-DRWIT9X-.js} +1 -1
  88. package/dist/website/main/assets/{useTeamHeaders-Cc060CP0.js → useTeamHeaders-DxHN7-t0.js} +1 -1
  89. package/dist/website/main/assets/useVscodeOpen-PzIPfNxl.js +1 -0
  90. package/dist/website/main/assets/vendor-core-BKehvho7.js +3 -0
  91. package/dist/website/main/assets/{vendor-ui-DXwyveTF.js → vendor-ui-CGT0cG1n.js} +2 -2
  92. package/dist/website/main/index.html +6 -5
  93. package/package.json +45 -45
  94. package/dist/website/container/assets/index-7l-rYyHX.css +0 -1
  95. package/dist/website/container/assets/index-QLp4vG1I.js +0 -14
  96. package/dist/website/item/assets/index-Dbdwi_To.js +0 -40
  97. package/dist/website/item/assets/index-Dt7E5e5b.css +0 -1
  98. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-C2LcEFL4.js +0 -1
  99. package/dist/website/main/assets/index-BbWodQCE.js +0 -1
  100. package/dist/website/main/assets/index-BjHkHge5.js +0 -1
  101. package/dist/website/main/assets/index-BmKipP5M.js +0 -1
  102. package/dist/website/main/assets/index-BtOXjKjQ.js +0 -2
  103. package/dist/website/main/assets/index-C0K8T0Xx.js +0 -1
  104. package/dist/website/main/assets/index-C1sEhRir.js +0 -1
  105. package/dist/website/main/assets/index-CDnNjG3p.css +0 -1
  106. package/dist/website/main/assets/index-CIC11BH9.js +0 -2
  107. package/dist/website/main/assets/index-CIsQpojO.js +0 -1
  108. package/dist/website/main/assets/index-CduGhjwk.js +0 -1
  109. package/dist/website/main/assets/index-ColU6pai.js +0 -1
  110. package/dist/website/main/assets/index-Cr00Cnja.js +0 -1
  111. package/dist/website/main/assets/index-CzTcYkCn.css +0 -1
  112. package/dist/website/main/assets/index-D-uwf4yo.css +0 -1
  113. package/dist/website/main/assets/index-DF7kFkvq.js +0 -1
  114. package/dist/website/main/assets/index-DFTKmQf7.js +0 -4
  115. package/dist/website/main/assets/index-DIAvnYXs.js +0 -1
  116. package/dist/website/main/assets/index-DLG3xPU-.js +0 -1
  117. package/dist/website/main/assets/index-DMimQ8qZ.js +0 -1
  118. package/dist/website/main/assets/index-DSgvaoRk.js +0 -1
  119. package/dist/website/main/assets/index-DbhO-url.js +0 -1
  120. package/dist/website/main/assets/index-DqvpfDy3.js +0 -1
  121. package/dist/website/main/assets/index-FFTkVbVX.css +0 -1
  122. package/dist/website/main/assets/index-gm-0wl9c.js +0 -1
  123. package/dist/website/main/assets/index-tfdENYSZ.js +0 -1
  124. package/dist/website/main/assets/index-wQUKmtT3.js +0 -1
  125. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Bin3s9j1.js +0 -1
  126. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CVSKP8Ny.js +0 -1
  127. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-D96-vCRS.js +0 -2
  128. package/dist/website/main/assets/useCompEditStore-DWHXDEWk.js +0 -307
  129. package/dist/website/main/assets/useCompEditStore-DqsRNPtJ.css +0 -1
  130. package/dist/website/main/assets/useVscodeOpen-DCcaXYnx.js +0 -1
  131. package/dist/website/main/assets/vendor-core-CzvSW5ae.js +0 -3
@@ -0,0 +1,368 @@
1
+ import{am as Cv,a7 as K2,a3 as Ji,aD as G2,aF as bv,ac as Pl,f as kl,Z as X2,_ as Mc,U as ms,a0 as Tv,a5 as vv,e as vi,y as qo,g as Fv,x as Il,A as Bl,J as Nl,o as wv,p as Sv,R as Pv,P as kv,D as Iv,l as Bv}from"./vendor-ui-CGT0cG1n.js";import{j as an,a as os,I as Nv,u as Pe,V as Rc,e as Po,M as ko,n as dl,q as hi,K as _v,z as Lv,i as Ov,p as Vp}from"./index-Cd1GqG9-.js";/* empty css *//* empty css */import{v as Mt,ab as ke,l as ft,Z as _h,i as He,q as gt,ap as Ke,F as _s,ah as di,$ as oo,g as Ue,ai as jc,az as $v,j as Ze,aO as ge,c as Mv,ax as me,X as Y2,r as Te,aB as Lh,aA as Qt,aM as Mr,k as dr,aP as Rv,aK as jv,W as Oh,af as yr,Y as Jn,aF as xi,aj as $h,aR as Q2,H as xr,aN as Uv,aD as qv,ac as Vv,K as zv,al as Hv,y as Wv,ad as Jv,w as Kv}from"./vendor-core-BKehvho7.js";import{c as Z2,p as Gv}from"./index-DcbQ_ahf.js";import{_ as eg}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import{v as fl}from"./v4-EwEgHOG0.js";import{c as Xv,b as Yv,d as Qv,I as zp,a as ty,e as Zv}from"./useMessage-DRWIT9X-.js";import{u as tg,_ as rg,a as eF}from"./index.vue_vue_type_style_index_0_lang-CIN0y80j.js";import{_ as sg}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{_ as tF}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as rF}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import{_ as sF}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";function iF(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const n=Object.getOwnPropertyDescriptor(s,i);n&&Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const nF={class:"loading-text"},aF={class:"loading-dots"},oF=Mt({__name:"Loading",props:{text:{default:"加载中"},fullscreen:{type:Boolean,default:!1}},setup(t){const e=t,r=Ue(()=>`${e.text} `);return(s,i)=>(ke(),ft("div",{class:_h(["loading-wrapper",{"loading-inline":!t.fullscreen}])},[He("span",nF,[gt(Ke(r.value),1),He("span",aF,[(ke(),ft(_s,null,di(3,n=>He("span",{key:n,class:"loading-dot",style:oo({animationDelay:`${(n-1)*.3}s`})},".",4)),64))])])],2))}}),uF=an(oF,[["__scopeId","data-v-7069e81b"]]),lF=Mt({__name:"BaseBadge",props:{isDot:{type:Boolean,default:!1},offset:{type:Array,default:()=>[5,-5]}},setup(t){const e=t,r=Ue(()=>({"--offsetX":`${e.offset[0]}px`,"--offsetY":`${e.offset[1]}px`}));return(s,i)=>(ke(),ft("div",{class:_h(["inline relative",{dot:t.isDot}]),style:oo(r.value)},[jc(s.$slots,"default",{},void 0,!0)],6))}}),pF=an(lF,[["__scopeId","data-v-f99513fd"]]),cF={key:1,class:"grid-container"},hF=Mt({__name:"GridContainer",props:{itemMinWidth:{type:Number,default:300},gap:{type:Number,default:20},useTransition:{type:Boolean,default:!0}},setup(t){$v(i=>({v56c8ef5c:s.value,v1930c0b1:r.value}));const e=t,r=Ue(()=>e.gap+"px"),s=Ue(()=>e.itemMinWidth+"px");return(i,n)=>t.useTransition?(ke(),Ze(Mv,{key:0,class:"grid-container",name:"list",tag:"div"},{default:ge(()=>[jc(i.$slots,"default",{},void 0,!0)]),_:3})):(ke(),ft("div",cF,[jc(i.$slots,"default",{},void 0,!0)]))}}),dF=an(hF,[["__scopeId","data-v-25e40c3e"]]);var fF=Object.create,Mh=Object.defineProperty,mF=Object.getOwnPropertyDescriptor,yF=Object.getOwnPropertyNames,DF=Object.getPrototypeOf,gF=Object.prototype.hasOwnProperty,xF=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Rh=(t,e)=>{for(var r in e)Mh(t,r,{get:e[r],enumerable:!0})},EF=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of yF(e))!gF.call(t,i)&&i!==r&&Mh(t,i,{get:()=>e[i],enumerable:!(s=mF(e,i))||s.enumerable});return t},AF=(t,e,r)=>(r=t!=null?fF(DF(t)):{},EF(Mh(r,"default",{value:t,enumerable:!0}),t)),CF=xF((t,e)=>{var r,s,i,n,o,l,c,f,h,d,D,y,g,x,C,b,E,v,F;g=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,C=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,D=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,F=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,x=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,s=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,o=/[^<>{}]+/y,v=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,d=RegExp(f.source),e.exports=function*(T,{jsx:w=!1}={}){var P,k,N,_,L,I,M,K,$,z,re,te,ue,X;for({length:I}=T,_=0,L="",X=[{tag:"JS"}],P=[],re=0,te=!1;_<I;){switch(K=X[X.length-1],K.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(T[_]==="/"&&(v.test(L)||l.test(L))&&(g.lastIndex=_,M=g.exec(T))){_=g.lastIndex,L=M[0],te=!0,yield{type:"RegularExpressionLiteral",value:M[0],closed:M[1]!==void 0&&M[1]!=="\\"};continue}if(y.lastIndex=_,M=y.exec(T)){switch(ue=M[0],$=y.lastIndex,z=ue,ue){case"(":L==="?NonExpressionParenKeyword"&&X.push({tag:"JSNonExpressionParen",nesting:re}),re++,te=!1;break;case")":re--,te=!0,K.tag==="JSNonExpressionParen"&&re===K.nesting&&(X.pop(),z="?NonExpressionParenEnd",te=!1);break;case"{":y.lastIndex=0,N=!E.test(L)&&(v.test(L)||l.test(L)),P.push(N),te=!1;break;case"}":switch(K.tag){case"InterpolationInTemplate":if(P.length===K.nesting){b.lastIndex=_,M=b.exec(T),_=b.lastIndex,L=M[0],M[1]==="${"?(L="?InterpolationInTemplate",te=!1,yield{type:"TemplateMiddle",value:M[0]}):(X.pop(),te=!0,yield{type:"TemplateTail",value:M[0],closed:M[1]==="`"});continue}break;case"InterpolationInJSX":if(P.length===K.nesting){X.pop(),_+=1,L="}",yield{type:"JSXPunctuator",value:"}"};continue}}te=P.pop(),z=te?"?ExpressionBraceEnd":"}";break;case"]":te=!0;break;case"++":case"--":z=te?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(w&&(v.test(L)||l.test(L))){X.push({tag:"JSXTag"}),_+=1,L="<",yield{type:"JSXPunctuator",value:ue};continue}te=!1;break;default:te=!1}_=$,L=z,yield{type:"Punctuator",value:ue};continue}if(r.lastIndex=_,M=r.exec(T)){switch(_=r.lastIndex,z=M[0],M[0]){case"for":case"if":case"while":case"with":L!=="."&&L!=="?."&&(z="?NonExpressionParenKeyword")}L=z,te=!l.test(M[0]),yield{type:M[1]==="#"?"PrivateIdentifier":"IdentifierName",value:M[0]};continue}if(C.lastIndex=_,M=C.exec(T)){_=C.lastIndex,L=M[0],te=!0,yield{type:"StringLiteral",value:M[0],closed:M[2]!==void 0};continue}if(D.lastIndex=_,M=D.exec(T)){_=D.lastIndex,L=M[0],te=!0,yield{type:"NumericLiteral",value:M[0]};continue}if(b.lastIndex=_,M=b.exec(T)){_=b.lastIndex,L=M[0],M[1]==="${"?(L="?InterpolationInTemplate",X.push({tag:"InterpolationInTemplate",nesting:P.length}),te=!1,yield{type:"TemplateHead",value:M[0]}):(te=!0,yield{type:"NoSubstitutionTemplate",value:M[0],closed:M[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=_,M=i.exec(T)){switch(_=i.lastIndex,z=M[0],M[0]){case"<":X.push({tag:"JSXTag"});break;case">":X.pop(),L==="/"||K.tag==="JSXTagEnd"?(z="?JSX",te=!0):X.push({tag:"JSXChildren"});break;case"{":X.push({tag:"InterpolationInJSX",nesting:P.length}),z="?InterpolationInJSX",te=!1;break;case"/":L==="<"&&(X.pop(),X[X.length-1].tag==="JSXChildren"&&X.pop(),X.push({tag:"JSXTagEnd"}))}L=z,yield{type:"JSXPunctuator",value:M[0]};continue}if(s.lastIndex=_,M=s.exec(T)){_=s.lastIndex,L=M[0],yield{type:"JSXIdentifier",value:M[0]};continue}if(n.lastIndex=_,M=n.exec(T)){_=n.lastIndex,L=M[0],yield{type:"JSXString",value:M[0],closed:M[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=_,M=o.exec(T)){_=o.lastIndex,L=M[0],yield{type:"JSXText",value:M[0]};continue}switch(T[_]){case"<":X.push({tag:"JSXTag"}),_++,L="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":X.push({tag:"InterpolationInJSX",nesting:P.length}),_++,L="?InterpolationInJSX",te=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(F.lastIndex=_,M=F.exec(T)){_=F.lastIndex,yield{type:"WhiteSpace",value:M[0]};continue}if(f.lastIndex=_,M=f.exec(T)){_=f.lastIndex,te=!1,c.test(L)&&(L="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:M[0]};continue}if(h.lastIndex=_,M=h.exec(T)){_=h.lastIndex,d.test(M[0])&&(te=!1,c.test(L)&&(L="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:M[0],closed:M[1]!==void 0};continue}if(x.lastIndex=_,M=x.exec(T)){_=x.lastIndex,te=!1,yield{type:"SingleLineComment",value:M[0]};continue}k=String.fromCodePoint(T.codePointAt(_)),_+=k.length,L=k,te=!1,yield{type:K.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:k}}}}),bF={};Rh(bF,{__debug:()=>h3,check:()=>p3,doc:()=>Qg,format:()=>as,formatWithCursor:()=>r0,getSupportInfo:()=>c3,util:()=>Zg,version:()=>$P});var Vo=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),TF=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},vF=Vo("replaceAll",function(){if(typeof this=="string")return TF}),_l=vF,FF=class{diff(e,r,s={}){let i;typeof s=="function"?(i=s,s={}):"callback"in s&&(i=s.callback);let n=this.castInput(e,s),o=this.castInput(r,s),l=this.removeEmpty(this.tokenize(n,s)),c=this.removeEmpty(this.tokenize(o,s));return this.diffWithOptionsObj(l,c,s,i)}diffWithOptionsObj(e,r,s,i){var n;let o=E=>{if(E=this.postProcess(E,s),i){setTimeout(function(){i(E)},0);return}else return E},l=r.length,c=e.length,f=1,h=l+c;s.maxEditLength!=null&&(h=Math.min(h,s.maxEditLength));let d=(n=s.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+d,y=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(y[0],r,e,0,s);if(y[0].oldPos+1>=c&&g+1>=l)return o(this.buildValues(y[0].lastComponent,r,e));let x=-1/0,C=1/0,b=()=>{for(let E=Math.max(x,-f);E<=Math.min(C,f);E+=2){let v,F=y[E-1],T=y[E+1];F&&(y[E-1]=void 0);let w=!1;if(T){let k=T.oldPos-E;w=T&&0<=k&&k<l}let P=F&&F.oldPos+1<c;if(!w&&!P){y[E]=void 0;continue}if(!P||w&&F.oldPos<T.oldPos?v=this.addToPath(T,!0,!1,0,s):v=this.addToPath(F,!1,!0,1,s),g=this.extractCommon(v,r,e,E,s),v.oldPos+1>=c&&g+1>=l)return o(this.buildValues(v.lastComponent,r,e))||!0;y[E]=v,v.oldPos+1>=c&&(C=Math.min(C,E-1)),g+1>=l&&(x=Math.max(x,E+1))}f++};if(i)(function E(){setTimeout(function(){if(f>h||Date.now()>D)return i(void 0);b()||E()},0)})();else for(;f<=h&&Date.now()<=D;){let E=b();if(E)return E}}addToPath(e,r,s,i,n){let o=e.lastComponent;return o&&!n.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}}extractCommon(e,r,s,i,n){let o=r.length,l=s.length,c=e.oldPos,f=c-i,h=0;for(;f+1<o&&c+1<l&&this.equals(s[c+1],r[f+1],n);)f++,c++,h++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return h&&!n.oneChangePerToken&&(e.lastComponent={count:h,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,f}equals(e,r,s){return s.comparator?s.comparator(e,r):e===r||!!s.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){let r=[];for(let s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,s){let i=[],n;for(;e;)i.push(e),n=e.previousComponent,delete e.previousComponent,e=n;i.reverse();let o=i.length,l=0,c=0,f=0;for(;l<o;l++){let h=i[l];if(h.removed)h.value=this.join(s.slice(f,f+h.count)),f+=h.count;else{if(!h.added&&this.useLongestToken){let d=r.slice(c,c+h.count);d=d.map(function(D,y){let g=s[f+y];return g.length>D.length?g:D}),h.value=this.join(d)}else h.value=this.join(r.slice(c,c+h.count));c+=h.count,h.added||(f+=h.count)}}return i}},wF=class extends FF{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},SF=new wF;function PF(t,e,r){return SF.diff(t,e,r)}var kF=()=>{},IF=kF,ig="cr",ng="crlf",BF="lf",NF=BF,jh="\r",ag=`\r
2
+ `,Ll=`
3
+ `,_F=Ll;function LF(t){let e=t.indexOf(jh);return e!==-1?t.charAt(e+1)===Ll?ng:ig:NF}function Uh(t){return t===ig?jh:t===ng?ag:_F}var OF=new Map([[Ll,/\n/gu],[jh,/\r/gu],[ag,/\r\n/gu]]);function og(t,e){let r=OF.get(e);return t.match(r)?.length??0}var $F=/\r\n?/gu;function MF(t){return _l(0,t,$F,Ll)}function RF(t){return this[t<0?this.length+t:t]}var jF=Vo("at",function(){if(Array.isArray(this)||typeof this=="string")return RF}),Ot=jF,on="string",Rs="array",Fi="cursor",Hs="indent",Ws="align",Js="trim",Er="group",xs="fill",wr="if-break",Ks="indent-if-break",Gs="line-suffix",Xs="line-suffix-boundary",Ht="line",Es="label",Ur="break-parent",ug=new Set([Fi,Hs,Ws,Js,Er,xs,wr,Ks,Gs,Xs,Ht,Es,Ur]);function UF(t){let e=t.length;for(;e>0&&(t[e-1]==="\r"||t[e-1]===`
4
+ `);)e--;return e<t.length?t.slice(0,e):t}function qF(t){if(typeof t=="string")return on;if(Array.isArray(t))return Rs;if(!t)return;let{type:e}=t;if(ug.has(e))return e}var un=qF,VF=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function zF(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
5
+ Expected it to be 'string' or 'object'.`;if(un(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=VF([...ug].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
6
+ Expected it to be ${s}.`}var HF=class extends Error{name="InvalidDocError";constructor(e){super(zF(e)),this.doc=e}},Kn=HF,ry={};function WF(t,e,r,s){let i=[t];for(;i.length>0;){let n=i.pop();if(n===ry){r(i.pop());continue}r&&i.push(n,ry);let o=un(n);if(!o)throw new Kn(n);if(e?.(n)!==!1)switch(o){case Rs:case xs:{let l=o===Rs?n:n.parts;for(let c=l.length,f=c-1;f>=0;--f)i.push(l[f]);break}case wr:i.push(n.flatContents,n.breakContents);break;case Er:if(s&&n.expandedStates)for(let l=n.expandedStates.length,c=l-1;c>=0;--c)i.push(n.expandedStates[c]);else i.push(n.contents);break;case Ws:case Hs:case Ks:case Es:case Gs:i.push(n.contents);break;case on:case Fi:case Js:case Xs:case Ht:case Ur:break;default:throw new Kn(n)}}}var qh=WF;function Ol(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(n){if(r.has(n))return r.get(n);let o=i(n);return r.set(n,o),o}function i(n){switch(un(n)){case Rs:return e(n.map(s));case xs:return e({...n,parts:n.parts.map(s)});case wr:return e({...n,breakContents:s(n.breakContents),flatContents:s(n.flatContents)});case Er:{let{expandedStates:o,contents:l}=n;return o?(o=o.map(s),l=o[0]):l=s(l),e({...n,contents:l,expandedStates:o})}case Ws:case Hs:case Ks:case Es:case Gs:return e({...n,contents:s(n.contents)});case on:case Fi:case Js:case Xs:case Ht:case Ur:return e(n);default:throw new Kn(n)}}}function Vh(t,e,r){let s=r,i=!1;function n(o){if(i)return!1;let l=e(o);l!==void 0&&(i=!0,s=l)}return qh(t,n),s}function JF(t){if(t.type===Er&&t.break||t.type===Ht&&t.hard||t.type===Ur)return!0}function KF(t){return Vh(t,JF,!1)}function sy(t){if(t.length>0){let e=Ot(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function GF(t){let e=new Set,r=[];function s(n){if(n.type===Ur&&sy(r),n.type===Er){if(r.push(n),e.has(n))return!1;e.add(n)}}function i(n){n.type===Er&&r.pop().break&&sy(r)}qh(t,s,i,!0)}function XF(t){return t.type===Ht&&!t.hard?t.soft?"":" ":t.type===wr?t.flatContents:t}function YF(t){return Ol(t,XF)}function iy(t){for(t=[...t];t.length>=2&&Ot(0,t,-2).type===Ht&&Ot(0,t,-1).type===Ur;)t.length-=2;if(t.length>0){let e=uo(Ot(0,t,-1));t[t.length-1]=e}return t}function uo(t){switch(un(t)){case Hs:case Ks:case Er:case Gs:case Es:{let e=uo(t.contents);return{...t,contents:e}}case wr:return{...t,breakContents:uo(t.breakContents),flatContents:uo(t.flatContents)};case xs:return{...t,parts:iy(t.parts)};case Rs:return iy(t);case on:return UF(t);case Ws:case Fi:case Js:case Xs:case Ht:case Ur:break;default:throw new Kn(t)}return t}function lg(t){return uo(ZF(t))}function QF(t){switch(un(t)){case xs:if(t.parts.every(e=>e===""))return"";break;case Er:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Er&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case Ws:case Hs:case Ks:case Gs:if(!t.contents)return"";break;case wr:if(!t.flatContents&&!t.breakContents)return"";break;case Rs:{let e=[];for(let r of t){if(!r)continue;let[s,...i]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof Ot(0,e,-1)=="string"?e[e.length-1]+=s:e.push(s),e.push(...i)}return e.length===0?"":e.length===1?e[0]:e}case on:case Fi:case Js:case Xs:case Ht:case Es:case Ur:break;default:throw new Kn(t)}return t}function ZF(t){return Ol(t,e=>QF(e))}function ew(t,e=yg){return Ol(t,r=>typeof r=="string"?dg(e,r.split(`
7
+ `)):r)}function tw(t){if(t.type===Ht)return!0}function rw(t){return Vh(t,tw,!1)}function Yu(t,e){return t.type===Es?{...t,contents:e(t.contents)}:e(t)}var sw=IF;function ml(t){return{type:Hs,contents:t}}function Gn(t,e){return{type:Ws,contents:e,n:t}}function iw(t){return Gn(Number.NEGATIVE_INFINITY,t)}function pg(t){return Gn({type:"root"},t)}function nw(t){return Gn(-1,t)}function cg(t,e,r){let s=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)s=ml(s);s=Gn(e%r,s),s=Gn(Number.NEGATIVE_INFINITY,s)}return s}var $l={type:Ur},Ki={type:Fi};function aw(t){return{type:xs,parts:t}}function hg(t,e={}){return sw(e.expandedStates),{type:Er,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function ow(t,e){return hg(t[0],{...e,expandedStates:t})}function uw(t,e="",r={}){return{type:wr,breakContents:t,flatContents:e,groupId:r.groupId}}function lw(t,e){return{type:Ks,contents:t,groupId:e.groupId,negate:e.negate}}function dg(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function pw(t,e){return t?{type:Es,label:t,contents:e}:e}var fg={type:Ht},cw={type:Ht,soft:!0},zh={type:Ht,hard:!0},$s=[zh,$l],mg={type:Ht,hard:!0,literal:!0},yg=[mg,$l];function Uc(t){return{type:Gs,contents:t}}var hw={type:Xs},dw={type:Js};function Bs(t){if(!t)return"";if(Array.isArray(t)){let e=[];for(let r of t)if(Array.isArray(r))e.push(...Bs(r));else{let s=Bs(r);s!==""&&e.push(s)}return e}return t.type===wr?{...t,breakContents:Bs(t.breakContents),flatContents:Bs(t.flatContents)}:t.type===Er?{...t,contents:Bs(t.contents),expandedStates:t.expandedStates?.map(Bs)}:t.type===xs?{type:"fill",parts:t.parts.map(Bs)}:t.contents?{...t,contents:Bs(t.contents)}:t}function fw(t){let e=Object.create(null),r=new Set;return s(Bs(t));function s(n,o,l){if(typeof n=="string")return JSON.stringify(n);if(Array.isArray(n)){let c=n.map(s).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(n.type===Ht){let c=l?.[o+1]?.type===Ur;return n.literal?c?"literalline":"literallineWithoutBreakParent":n.hard?c?"hardline":"hardlineWithoutBreakParent":n.soft?"softline":"line"}if(n.type===Ur)return l?.[o-1]?.type===Ht&&l[o-1].hard?void 0:"breakParent";if(n.type===Js)return"trim";if(n.type===Hs)return"indent("+s(n.contents)+")";if(n.type===Ws)return n.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+s(n.contents)+")":n.n<0?"dedent("+s(n.contents)+")":n.n.type==="root"?"markAsRoot("+s(n.contents)+")":"align("+JSON.stringify(n.n)+", "+s(n.contents)+")";if(n.type===wr)return"ifBreak("+s(n.breakContents)+(n.flatContents?", "+s(n.flatContents):"")+(n.groupId?(n.flatContents?"":', ""')+`, { groupId: ${i(n.groupId)} }`:"")+")";if(n.type===Ks){let c=[];n.negate&&c.push("negate: true"),n.groupId&&c.push(`groupId: ${i(n.groupId)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${s(n.contents)}${f})`}if(n.type===Er){let c=[];n.break&&n.break!=="propagated"&&c.push("shouldBreak: true"),n.id&&c.push(`id: ${i(n.id)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return n.expandedStates?`conditionalGroup([${n.expandedStates.map(h=>s(h)).join(",")}]${f})`:`group(${s(n.contents)}${f})`}if(n.type===xs)return`fill([${n.parts.map(c=>s(c)).join(", ")}])`;if(n.type===Gs)return"lineSuffix("+s(n.contents)+")";if(n.type===Xs)return"lineSuffixBoundary";if(n.type===Es)return`label(${JSON.stringify(n.label)}, ${s(n.contents)})`;if(n.type===Fi)return"cursor";throw new Error("Unknown doc type "+n.type)}function i(n){if(typeof n!="symbol")return JSON.stringify(String(n));if(n in e)return e[n];let o=n.description||"symbol";for(let l=0;;l++){let c=o+(l>0?` #${l}`:"");if(!r.has(c))return r.add(c),e[n]=`Symbol.for(${JSON.stringify(c)})`}}}var mw=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function yw(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function Dw(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var gw="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",xw=/[^\x20-\x7F]/u,Ew=new Set(gw);function Aw(t){if(!t)return 0;if(!xw.test(t))return t.length;t=t.replace(mw(),r=>Ew.has(r)?" ":" ");let e=0;for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=yw(s)||Dw(s)?2:1)}return e}var Hh=Aw,Cw={type:0},bw={type:1},Dg={value:"",length:0,queue:[],get root(){return Dg}};function gg(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",n=0,o=0,l=0;for(let g of s)switch(g.type){case 0:h(),r.useTabs?c(1):f(r.tabWidth);break;case 3:{let{string:x}=g;h(),i+=x,n+=x.length;break}case 2:{let{width:x}=g;o+=1,l+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:i,length:n,queue:s};function c(g){i+=" ".repeat(g),n+=r.tabWidth*g}function f(g){i+=" ".repeat(g),n+=g}function h(){r.useTabs?d():D()}function d(){o>0&&c(o),y()}function D(){l>0&&f(l),y()}function y(){o=0,l=0}}function Tw(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=bw:s={type:2,width:e}:s={type:3,string:e},gg(t,s,r)}function vw(t,e){return gg(t,Cw,e)}function Fw(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function xg(t){let e=Fw(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var pr=Symbol("MODE_BREAK"),ss=Symbol("MODE_FLAT"),qc=Symbol("DOC_FILL_PRINTED_LENGTH");function Pu(t,e,r,s,i,n){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,l=!1,c=[t],f="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:h,doc:d}=c.pop(),D=un(d);switch(D){case on:d&&(l&&(f+=" ",r-=1,l=!1),f+=d,r-=Hh(d));break;case Rs:case xs:{let y=D===Rs?d:d.parts,g=d[qc]??0;for(let x=y.length-1;x>=g;x--)c.push({mode:h,doc:y[x]});break}case Hs:case Ws:case Ks:case Es:c.push({mode:h,doc:d.contents});break;case Js:{let{text:y,count:g}=xg(f);f=y,r+=g;break}case Er:{if(n&&d.break)return!1;let y=d.break?pr:h,g=d.expandedStates&&y===pr?Ot(0,d.expandedStates,-1):d.contents;c.push({mode:y,doc:g});break}case wr:{let y=(d.groupId?i[d.groupId]||ss:h)===pr?d.breakContents:d.flatContents;y&&c.push({mode:h,doc:y});break}case Ht:if(h===pr||d.hard)return!0;d.soft||(l=!0);break;case Gs:s=!0;break;case Xs:if(s)return!1;break}}return!1}function Ml(t,e){let r=Object.create(null),s=e.printWidth,i=Uh(e.endOfLine),n=0,o=[{indent:Dg,mode:pr,doc:t}],l="",c=!1,f=[],h=[],d=[],D=[],y=0;for(GF(t);o.length>0;){let{indent:E,mode:v,doc:F}=o.pop();switch(un(F)){case on:{let T=i!==`
8
+ `?_l(0,F,`
9
+ `,i):F;T&&(l+=T,o.length>0&&(n+=Hh(T)));break}case Rs:for(let T=F.length-1;T>=0;T--)o.push({indent:E,mode:v,doc:F[T]});break;case Fi:if(h.length>=2)throw new Error("There are too many 'cursor' in doc.");h.push(y+l.length);break;case Hs:o.push({indent:vw(E,e),mode:v,doc:F.contents});break;case Ws:o.push({indent:Tw(E,F.n,e),mode:v,doc:F.contents});break;case Js:b();break;case Er:switch(v){case ss:if(!c){o.push({indent:E,mode:F.break?pr:ss,doc:F.contents});break}case pr:{c=!1;let T={indent:E,mode:ss,doc:F.contents},w=s-n,P=f.length>0;if(!F.break&&Pu(T,o,w,P,r))o.push(T);else if(F.expandedStates){let k=Ot(0,F.expandedStates,-1);if(F.break){o.push({indent:E,mode:pr,doc:k});break}else for(let N=1;N<F.expandedStates.length+1;N++)if(N>=F.expandedStates.length){o.push({indent:E,mode:pr,doc:k});break}else{let _=F.expandedStates[N],L={indent:E,mode:ss,doc:_};if(Pu(L,o,w,P,r)){o.push(L);break}}}else o.push({indent:E,mode:pr,doc:F.contents});break}}F.id&&(r[F.id]=Ot(0,o,-1).mode);break;case xs:{let T=s-n,w=F[qc]??0,{parts:P}=F,k=P.length-w;if(k===0)break;let N=P[w+0],_=P[w+1],L={indent:E,mode:ss,doc:N},I={indent:E,mode:pr,doc:N},M=Pu(L,[],T,f.length>0,r,!0);if(k===1){M?o.push(L):o.push(I);break}let K={indent:E,mode:ss,doc:_},$={indent:E,mode:pr,doc:_};if(k===2){M?o.push(K,L):o.push($,I);break}let z=P[w+2],re={indent:E,mode:v,doc:{...F,[qc]:w+2}},te=Pu({indent:E,mode:ss,doc:[N,_,z]},[],T,f.length>0,r,!0);o.push(re),te?o.push(K,L):M?o.push($,L):o.push($,I);break}case wr:case Ks:{let T=F.groupId?r[F.groupId]:v;if(T===pr){let w=F.type===wr?F.breakContents:F.negate?F.contents:ml(F.contents);w&&o.push({indent:E,mode:v,doc:w})}if(T===ss){let w=F.type===wr?F.flatContents:F.negate?ml(F.contents):F.contents;w&&o.push({indent:E,mode:v,doc:w})}break}case Gs:f.push({indent:E,mode:v,doc:F.contents});break;case Xs:f.length>0&&o.push({indent:E,mode:v,doc:zh});break;case Ht:switch(v){case ss:if(F.hard)c=!0;else{F.soft||(l+=" ",n+=1);break}case pr:if(f.length>0){o.push({indent:E,mode:v,doc:F},...f.reverse()),f.length=0;break}F.literal?(l+=i,n=0,E.root&&(E.root.value&&(l+=E.root.value),n=E.root.length)):(b(),l+=i+E.value,n=E.length);break}break;case Es:o.push({indent:E,mode:v,doc:F.contents});break;case Ur:break;default:throw new Kn(F)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let g=d.join("")+l,x=[...D,...h];if(x.length!==2)return{formatted:g};let C=x[0];return{formatted:g,cursorNodeStart:C,cursorNodeText:g.slice(C,Ot(0,x,-1))};function b(){let{text:E,count:v}=xg(l);E&&(d.push(E),y+=E.length),l="",n-=v,h.length>0&&(D.push(...h.map(F=>Math.min(F,y))),h.length=0)}}function ww(t,e,r=0){let s=0;for(let i=r;i<t.length;++i)t[i]===" "?s=s+e-s%e:s++;return s}var Wh=ww,Sw=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return Ot(0,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:Ot(0,this.stack,-2)}get node(){return Ot(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,r=Ot(0,e,-3);return Array.isArray(r)?r:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:r}=this;return e!==null&&r===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:r}=e;return r>1?Ot(0,e,-2):null}getValue(){return Ot(0,this.stack,-1)}getNode(e=0){let r=this.#e(e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:r}=this;for(let s=r.length-1;s>=0;s-=2)if(!Array.isArray(r[s])&&--e<0)return s;return-1}call(e,...r){let{stack:s}=this,{length:i}=s,n=Ot(0,s,-1);for(let o of r)n=n?.[o],s.push(o,n);try{return e(this)}finally{s.length=i}}callParent(e,r=0){let s=this.#e(r+1),i=this.stack.splice(s+1);try{return e(this)}finally{this.stack.push(...i)}}each(e,...r){let{stack:s}=this,{length:i}=s,n=Ot(0,s,-1);for(let o of r)n=n[o],s.push(o,n);try{for(let o=0;o<n.length;++o)s.push(o,n[o]),e(this,o,n),s.length-=2}finally{s.length=i}}map(e,...r){let s=[];return this.each((i,n,o)=>{s[n]=e(i,n,o)},...r),s}match(...e){let r=this.stack.length-1,s=null,i=this.stack[r--];for(let n of e){if(i===void 0)return!1;let o=null;if(typeof s=="number"&&(o=s,s=this.stack[r--],i=this.stack[r--]),n&&!n(i,s,o))return!1;s=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(e){for(let r of this.#t())if(e(r))return r}hasAncestor(e){for(let r of this.#t())if(e(r))return!0;return!1}*#t(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let s=e[r];Array.isArray(s)||(yield s)}}},Pw=Sw;function kw(t){return t!==null&&typeof t=="object"}var Jh=kw;function zo(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:n}=e,o=r;for(;o>=0&&o<n;){let l=e.charAt(o);if(t instanceof RegExp){if(!t.test(l))return o}else if(!t.includes(l))return o;i?o--:o++}return o===-1||o===n?o:!1}}var Iw=zo(/\s/u),Ei=zo(" "),Eg=zo(",; "),Ag=zo(/[^\n\r]/u),ny=t=>t===`
10
+ `||t==="\r"||t==="\u2028"||t==="\u2029";function Bw(t,e,r){let s=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&i===`
11
+ `)return e-2;if(ny(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
12
+ `)return e+2;if(ny(i))return e+1}return e}var Zi=Bw;function Nw(t,e,r={}){let s=Ei(t,r.backwards?e-1:e,r),i=Zi(t,s,r);return s!==i}var mi=Nw;function _w(t){return Array.isArray(t)&&t.length>0}var Lw=_w;function*Rl(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,i=n=>Jh(n)&&s(n);for(let n of r(t)){let o=t[n];if(Array.isArray(o))for(let l of o)i(l)&&(yield l);else i(o)&&(yield o)}}function*Ow(t,e){let r=[t];for(let s=0;s<r.length;s++){let i=r[s];for(let n of Rl(i,e))yield n,r.push(n)}}function $w(t,e){return Rl(t,e).next().done}function Cg(t,e,r){let{cache:s}=r;if(s.has(t))return s.get(t);let{filter:i}=r;if(!i)return[];let n,o=(r.getChildren?.(t,r)??[...Rl(t,{getVisitorKeys:r.getVisitorKeys})]).flatMap(f=>(n??(n=[t,...e]),i(f,n)?[f]:Cg(f,n,r))),{locStart:l,locEnd:c}=r;return o.sort((f,h)=>l(f)-l(h)||c(f)-c(h)),s.set(t,o),o}var bg=Cg;function Mw(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function Kh(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=Mw(t)}function lo(t,e){e.leading=!0,e.trailing=!1,Kh(t,e)}function zi(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Kh(t,e)}function po(t,e){e.leading=!1,e.trailing=!0,Kh(t,e)}var Tg=new WeakMap;function vg(t,e,r,s,i=[]){let{locStart:n,locEnd:o}=r,l=n(e),c=o(e),f=bg(t,i,{cache:Tg,locStart:n,locEnd:o,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),h,d,D=0,y=f.length;for(;D<y;){let g=D+y>>1,x=f[g],C=n(x),b=o(x);if(C<=l&&c<=b)return vg(x,e,r,x,[x,...i]);if(b<=l){h=x,D=g+1;continue}if(c<=C){d=x,y=g;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:g}=s,x=Wp(g,e,r);h&&Wp(g,h,r)!==x&&(h=null),d&&Wp(g,d,r)!==x&&(d=null)}return{enclosingNode:s,precedingNode:h,followingNode:d}}var Hp=()=>!1;function Rw(t,e){let{comments:r}=t;if(delete t.comments,!Lw(r)||!e.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:n={}},originalText:o}=e,{ownLine:l=Hp,endOfLine:c=Hp,remaining:f=Hp}=n,h=r.map((d,D)=>({...vg(t,d,e),comment:d,text:o,options:e,ast:t,isLastComment:r.length-1===D}));for(let[d,D]of h.entries()){let{comment:y,precedingNode:g,enclosingNode:x,followingNode:C,text:b,options:E,ast:v,isLastComment:F}=D,T;if(i?T=[D]:(y.enclosingNode=x,y.precedingNode=g,y.followingNode=C,T=[y,b,E,v,F]),jw(b,E,h,d))y.placement="ownLine",l(...T)||(C?lo(C,y):g?po(g,y):zi(x||v,y));else if(Uw(b,E,h,d))y.placement="endOfLine",c(...T)||(g?po(g,y):C?lo(C,y):zi(x||v,y));else if(y.placement="remaining",!f(...T))if(g&&C){let w=s.length;w>0&&s[w-1].followingNode!==C&&ay(s,E),s.push(D)}else g?po(g,y):C?lo(C,y):zi(x||v,y)}if(ay(s,e),!i)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var Fg=t=>!/[\S\n\u2028\u2029]/u.test(t);function jw(t,e,r,s){let{comment:i,precedingNode:n}=r[s],{locStart:o,locEnd:l}=e,c=o(i);if(n)for(let f=s-1;f>=0;f--){let{comment:h,precedingNode:d}=r[f];if(d!==n||!Fg(t.slice(l(h),c)))break;c=o(h)}return mi(t,c,{backwards:!0})}function Uw(t,e,r,s){let{comment:i,followingNode:n}=r[s],{locStart:o,locEnd:l}=e,c=l(i);if(n)for(let f=s+1;f<r.length;f++){let{comment:h,followingNode:d}=r[f];if(d!==n||!Fg(t.slice(c,o(h))))break;c=l(h)}return mi(t,c)}function ay(t,e){let r=t.length;if(r===0)return;let{precedingNode:s,followingNode:i}=t[0],n=e.locStart(i),o;for(o=r;o>0;--o){let{comment:l,precedingNode:c,followingNode:f}=t[o-1],h=e.originalText.slice(e.locEnd(l),n);if(e.printer.isGap?.(h,e)??/^[\s(]*$/u.test(h))n=e.locStart(l);else break}for(let[l,{comment:c}]of t.entries())l<o?po(s,c):lo(i,c);for(let l of[s,i])l.comments&&l.comments.length>1&&l.comments.sort((c,f)=>e.locStart(c)-e.locStart(f));t.length=0}function Wp(t,e,r){let s=r.locStart(e)-1;for(let i=1;i<t.length;++i)if(s<r.locStart(t[i]))return i-1;return 0}function qw(t,e){let r=e-1;r=Ei(t,r,{backwards:!0}),r=Zi(t,r,{backwards:!0}),r=Ei(t,r,{backwards:!0});let s=Zi(t,r,{backwards:!0});return r!==s}var Gh=qw;function wg(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function Vw(t,e){let r=t.node,s=[wg(t,e)],{printer:i,originalText:n,locStart:o,locEnd:l}=e;if(i.isBlockComment?.(r)){let f=mi(n,l(r))?mi(n,o(r),{backwards:!0})?$s:fg:" ";s.push(f)}else s.push($s);let c=Zi(n,Ei(n,l(r)));return c!==!1&&mi(n,c)&&s.push($s),s}function zw(t,e,r){let s=t.node,i=wg(t,e),{printer:n,originalText:o,locStart:l}=e,c=n.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||mi(o,l(s),{backwards:!0})){let f=Gh(o,l(s));return{doc:Uc([$s,f?$s:"",i]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[Uc([" ",i]),$l],isBlock:c,hasLineSuffix:!0}:{doc:[" ",i],isBlock:c,hasLineSuffix:!1}}function Hw(t,e){let r=t.node;if(!r)return{};let s=e[Symbol.for("printedComments")];if((r.comments||[]).filter(l=>!s.has(l)).length===0)return{leading:"",trailing:""};let i=[],n=[],o;return t.each(()=>{let l=t.node;if(s?.has(l))return;let{leading:c,trailing:f}=l;c?i.push(Vw(t,e)):f&&(o=zw(t,e,o),n.push(o.doc))},"comments"),{leading:i,trailing:n}}function Ww(t,e,r){let{leading:s,trailing:i}=Hw(t,r);return!s&&!i?e:Yu(e,n=>[s,n,i])}function Jw(t){let{[Symbol.for("comments")]:e,[Symbol.for("printedComments")]:r}=t;for(let s of e){if(!s.printed&&!r.has(s))throw new Error('Comment "'+s.value.trim()+'" was not printed. Please report this error!');delete s.printed}}var Sg=class extends Error{name="ConfigError"},oy=class extends Error{name="UndefinedParserError"},Kw={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
13
+ (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
14
+ The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
15
+ The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Pg({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(i=>i.languages??[]),s=[];for(let i of Xw(Object.assign({},...t.map(({options:n})=>n),Kw)))!e&&i.deprecated||(Array.isArray(i.choices)&&(e||(i.choices=i.choices.filter(n=>!n.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...Gw(i.choices,r,t)])),i.pluginDefaults=Object.fromEntries(t.filter(n=>n.defaultOptions?.[i.name]!==void 0).map(n=>[n.name,n.defaultOptions[i.name]])),s.push(i));return{languages:r,options:s}}function*Gw(t,e,r){let s=new Set(t.map(i=>i.value));for(let i of e)if(i.parsers){for(let n of i.parsers)if(!s.has(n)){s.add(n);let o=r.find(c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,n)),l=i.name;o?.name&&(l+=` (plugin: ${o.name})`),yield{value:n,description:l}}}}function Xw(t){let e=[];for(let[r,s]of Object.entries(t)){let i={name:r,...s};Array.isArray(i.default)&&(i.default=Ot(0,i.default,-1).value),e.push(i)}return e}var Yw=Array.prototype.toReversed??function(){return[...this].reverse()},Qw=Vo("toReversed",function(){if(Array.isArray(this))return Yw}),Zw=Qw;function eS(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var tS=eS();function kg(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function rS(t){return t=kg(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function sS(t){t=kg(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function iS(t){return tS?sS(t):rS(t)}var nS=t=>String(t).split(/[/\\]/u).pop(),aS=t=>String(t).startsWith("file:");function uy(t,e){if(!e)return;let r=nS(e).toLowerCase();return t.find(({filenames:s})=>s?.some(i=>i.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(i=>r.endsWith(i)))}function oS(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var uS=void 0;function ly(t,e){if(e){if(aS(e))try{e=iS(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function lS(t,e){let r=Zw(0,t.plugins).flatMap(s=>s.languages??[]);return(oS(r,e.language)??uy(r,e.physicalFile)??uy(r,e.file)??ly(r,e.physicalFile)??ly(r,e.file)??uS?.(r,e.physicalFile))?.parsers[0]}var Ig=lS,Un={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(r=>Un.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${Un.key(r)}: ${Un.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>Un.value({[t]:e})},Xh=new Proxy(String,{get:()=>Xh}),cs=Xh,Bg=()=>Xh,pS=(t,e,{descriptor:r})=>{let s=[`${cs.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&s.push(`we now treat it as ${cs.blue(typeof e=="string"?r.key(e):r.pair(e))}`),s.join("; ")+"."},Ng=Symbol.for("vnopts.VALUE_NOT_EXIST"),Qu=Symbol.for("vnopts.VALUE_UNCHANGED"),py=" ".repeat(2),cS=(t,e,r)=>{let{text:s,list:i}=r.normalizeExpectedResult(r.schemas[t].expected(r)),n=[];return s&&n.push(cy(t,e,s,r.descriptor)),i&&n.push([cy(t,e,i.title,r.descriptor)].concat(i.values.map(o=>_g(o,r.loggerPrintWidth))).join(`
16
+ `)),Lg(n,r.loggerPrintWidth)};function cy(t,e,r,s){return[`Invalid ${cs.red(s.key(t))} value.`,`Expected ${cs.blue(r)},`,`but received ${e===Ng?cs.gray("nothing"):cs.red(s.value(e))}.`].join(" ")}function _g({text:t,list:e},r){let s=[];return t&&s.push(`- ${cs.blue(t)}`),e&&s.push([`- ${cs.blue(e.title)}:`].concat(e.values.map(i=>_g(i,r-py.length).replace(/^|\n/g,`$&${py}`))).join(`
17
+ `)),Lg(s,r)}function Lg(t,e){if(t.length===1)return t[0];let[r,s]=t,[i,n]=t.map(o=>o.split(`
18
+ `,1)[0].length);return i>e&&i>n?s:r}var Sn=[],Jp=[];function Kp(t,e,r){if(t===e)return 0;let s=r?.maxDistance,i=t;t.length>e.length&&(t=e,e=i);let n=t.length,o=e.length;for(;n>0&&t.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let l=0;for(;l<n&&t.charCodeAt(l)===e.charCodeAt(l);)l++;if(n-=l,o-=l,s!==void 0&&o-n>s)return s;if(n===0)return s!==void 0&&o>s?s:o;let c,f,h,d,D=0,y=0;for(;D<n;)Jp[D]=t.charCodeAt(l+D),Sn[D]=++D;for(;y<o;){for(c=e.charCodeAt(l+y),h=y++,f=y,D=0;D<n;D++)d=c===Jp[D]?h:h+1,h=Sn[D],f=Sn[D]=h>f?d>f?f+1:d:d>h?h+1:d;if(s!==void 0){let g=f;for(D=0;D<n;D++)Sn[D]<g&&(g=Sn[D]);if(g>s)return s}}return Sn.length=n,Jp.length=n,s!==void 0&&f>s?s:f}function hS(t,e,r){if(!Array.isArray(e)||e.length===0)return;let s=r?.maxDistance,i=t.length;for(let c of e)if(c===t)return c;let n,o=Number.POSITIVE_INFINITY,l=new Set;for(let c of e){if(l.has(c))continue;l.add(c);let f=Math.abs(c.length-i);if(f>=o||f>s)continue;let h=Number.isFinite(o)?Math.min(o,s):s,d=h===void 0?Kp(t,c):Kp(t,c,{maxDistance:h});if(d>s)continue;let D=d;if(h!==void 0&&d===h&&h===s&&(D=Kp(t,c)),D<o&&(o=D,n=c,o===0))break}if(!(o>s))return n}var Og=(t,e,{descriptor:r,logger:s,schemas:i})=>{let n=[`Ignored unknown option ${cs.yellow(r.pair({key:t,value:e}))}.`],o=hS(t,Object.keys(i),{maxDistance:3});o&&n.push(`Did you mean ${cs.blue(r.key(o))}?`),s.warn(n.join(" "))},dS=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function fS(t,e){let r=new t(e),s=Object.create(r);for(let i of dS)i in e&&(s[i]=mS(e[i],r,wi.prototype[i].length));return s}var wi=class{static create(e){return fS(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,s){return e}preprocess(e,r){return e}postprocess(e,r){return Qu}};function mS(t,e,r){return typeof t=="function"?(...s)=>t(...s.slice(0,r-1),e,...s.slice(r-1)):()=>t}var yS=class extends wi{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}},DS=class extends wi{expected(){return"anything"}validate(){return!0}},gS=class extends wi{constructor({valueSchema:e,name:r=e.name,...s}){super({...s,name:r}),this._valueSchema=e}expected(e){let{text:r,list:s}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:s&&{title:"an array of the following values",values:[{list:s}]}}}validate(e,r){if(!Array.isArray(e))return!1;let s=[];for(let i of e){let n=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);n!==!0&&s.push(n.value)}return s.length===0?!0:{value:s}}deprecated(e,r){let s=[];for(let i of e){let n=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);n!==!1&&s.push(...n.map(({value:o})=>({value:[o]})))}return s}forward(e,r){let s=[];for(let i of e){let n=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);s.push(...n.map(hy))}return s}redirect(e,r){let s=[],i=[];for(let n of e){let o=r.normalizeRedirectResult(this._valueSchema.redirect(n,r),n);"remain"in o&&s.push(o.remain),i.push(...o.redirect.map(hy))}return s.length===0?{redirect:i}:{redirect:i,remain:s}}overlap(e,r){return e.concat(r)}};function hy({from:t,to:e}){return{from:[t],to:e}}var xS=class extends wi{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function ES(t,e){let r=Object.create(null);for(let s of t){let i=s[e];if(r[i])throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);r[i]=s}return r}function AS(t,e){let r=new Map;for(let s of t){let i=s[e];if(r.has(i))throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);r.set(i,s)}return r}function CS(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function bS(t,e){let r=[],s=[];for(let i of t)e(i)?r.push(i):s.push(i);return[r,s]}function TS(t){return t===Math.floor(t)}function vS(t,e){if(t===e)return 0;let r=typeof t,s=typeof e,i=["undefined","object","boolean","number","string"];return r!==s?i.indexOf(r)-i.indexOf(s):r!=="string"?Number(t)-Number(e):t.localeCompare(e)}function FS(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function dy(t){return t===void 0?{}:t}function $g(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return wS((e||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:e,list:{title:r.title,values:r.values.map($g)}}:{text:e}}function fy(t,e){return t===!0?!0:t===!1?{value:e}:t}function my(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function yy(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function Vc(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>yy(r,e)):[yy(t,e)]}function Dy(t,e){let r=Vc(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return r.length===0?{remain:e,redirect:r}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:r}:{redirect:r}}function wS(t,e){if(!t)throw new Error(e)}var SS=class extends wi{constructor(e){super(e),this._choices=AS(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(vS).map(e.value),s=r.slice(0,-2),i=r.slice(-2);return{text:s.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}},PS=class extends wi{expected(){return"a number"}validate(e,r){return typeof e=="number"}},kS=class extends PS{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&TS(e)}},gy=class extends wi{expected(){return"a string"}validate(e){return typeof e=="string"}},IS=Un,BS=Og,NS=cS,_S=pS,LS=class{constructor(e,r){let{logger:s=console,loggerPrintWidth:i=80,descriptor:n=IS,unknown:o=BS,invalid:l=NS,deprecated:c=_S,missing:f=()=>!1,required:h=()=>!1,preprocess:d=y=>y,postprocess:D=()=>Qu}=r||{};this._utils={descriptor:n,logger:s||{warn:()=>{}},loggerPrintWidth:i,schemas:ES(e,"name"),normalizeDefaultResult:dy,normalizeExpectedResult:$g,normalizeDeprecatedResult:my,normalizeForwardResult:Vc,normalizeRedirectResult:Dy,normalizeValidateResult:fy},this._unknownHandler=o,this._invalidHandler=FS(l),this._deprecatedHandler=c,this._identifyMissing=(y,g)=>!(y in g)||f(y,g),this._identifyRequired=h,this._preprocess=d,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=CS()}normalize(e){let r={},s=[this._preprocess(e,this._utils)],i=()=>{for(;s.length!==0;){let n=s.shift(),o=this._applyNormalization(n,r);s.push(...o)}};i();for(let n of Object.keys(this._utils.schemas)){let o=this._utils.schemas[n];if(!(n in r)){let l=dy(o.default(this._utils));"value"in l&&s.push({[n]:l.value})}}i();for(let n of Object.keys(this._utils.schemas)){if(!(n in r))continue;let o=this._utils.schemas[n],l=r[n],c=o.postprocess(l,this._utils);c!==Qu&&(this._applyValidation(c,n,o),r[n]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let s=[],{knownKeys:i,unknownKeys:n}=this._partitionOptionKeys(e);for(let o of i){let l=this._utils.schemas[o],c=l.preprocess(e[o],this._utils);this._applyValidation(c,o,l);let f=({from:D,to:y})=>{s.push(typeof y=="string"?{[y]:D}:{[y.key]:y.value})},h=({value:D,redirectTo:y})=>{let g=my(l.deprecated(D,this._utils),c,!0);if(g!==!1)if(g===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:x}of g){let C={key:o,value:x};if(!this._hasDeprecationWarned(C)){let b=typeof y=="string"?{key:y,value:x}:y;this._utils.logger.warn(this._deprecatedHandler(C,b,this._utils))}}};Vc(l.forward(c,this._utils),c).forEach(f);let d=Dy(l.redirect(c,this._utils),c);if(d.redirect.forEach(f),"remain"in d){let D=d.remain;r[o]=o in r?l.overlap(r[o],D,this._utils):D,h({value:D})}for(let{from:D,to:y}of d.redirect)h({value:D,redirectTo:y})}for(let o of n){let l=e[o];this._applyUnknownHandler(o,l,r,(c,f)=>{s.push({[c]:f})})}return s}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,Ng,this._utils)}_partitionOptionKeys(e){let[r,s]=bS(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return{knownKeys:r,unknownKeys:s}}_applyValidation(e,r,s){let i=fy(s.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(e,r,s,i){let n=this._unknownHandler(e,r,this._utils);if(n)for(let o of Object.keys(n)){if(this._identifyMissing(o,n))continue;let l=n[o];o in this._utils.schemas?i(o,l):s[o]=l}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==Qu){if(r.delete)for(let s of r.delete)delete e[s];if(r.override){let{knownKeys:s,unknownKeys:i}=this._partitionOptionKeys(r.override);for(let n of s){let o=r.override[n];this._applyValidation(o,n,this._utils.schemas[n]),e[n]=o}for(let n of i){let o=r.override[n];this._applyUnknownHandler(n,o,e,(l,c)=>{let f=this._utils.schemas[l];this._applyValidation(c,l,f),e[l]=c})}}}}},Gp;function OS(t,e,{logger:r=!1,isCLI:s=!1,passThrough:i=!1,FlagSchema:n,descriptor:o}={}){if(s){if(!n)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=Un;let l=i?Array.isArray(i)?(D,y)=>i.includes(D)?{[D]:y}:void 0:(D,y)=>({[D]:y}):(D,y,g)=>{let{_:x,...C}=g.schemas;return Og(D,y,{...g,schemas:C})},c=$S(e,{isCLI:s,FlagSchema:n}),f=new LS(c,{logger:r,unknown:l,descriptor:o}),h=r!==!1;h&&Gp&&(f._hasDeprecationWarned=Gp);let d=f.normalize(t);return h&&(Gp=f._hasDeprecationWarned),d}function $S(t,{isCLI:e,FlagSchema:r}){let s=[];e&&s.push(DS.create({name:"_"}));for(let i of t)s.push(MS(i,{isCLI:e,optionInfos:t,FlagSchema:r})),i.alias&&e&&s.push(yS.create({name:i.alias,sourceName:i.name}));return s}function MS(t,{isCLI:e,optionInfos:r,FlagSchema:s}){let{name:i}=t,n={name:i},o,l={};switch(t.type){case"int":o=kS,e&&(n.preprocess=Number);break;case"string":o=gy;break;case"choice":o=SS,n.choices=t.choices.map(c=>c?.redirect?{...c,redirect:{to:{key:t.name,value:c.redirect}}}:c);break;case"boolean":o=xS;break;case"flag":o=s,n.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":o=gy;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?n.validate=(c,f,h)=>t.exception(c)||f.validate(c,h):n.validate=(c,f,h)=>c===void 0||f.validate(c,h),t.redirect&&(l.redirect=c=>c?{to:typeof t.redirect=="string"?t.redirect:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(l.deprecated=!0),e&&!t.array){let c=n.preprocess||(f=>f);n.preprocess=(f,h,d)=>h.preprocess(c(Array.isArray(f)?Ot(0,f,-1):f),d)}return t.array?gS.create({...e?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...l,valueSchema:o.create(n)}):o.create({...n,...l})}var RS=OS,jS=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},US=Vo("findLast",function(){if(Array.isArray(this))return jS}),Mg=US,qS=Symbol.for("PRETTIER_IS_FRONT_MATTER"),VS=[];function zS(t){return!!t?.[qS]}var Yh=zS,Rg=new Set(["yaml","toml"]),jg=({node:t})=>Yh(t)&&Rg.has(t.language);async function HS(t,e,r,s){let{node:i}=r,{language:n}=i;if(!Rg.has(n))return;let o=i.value.trim(),l;if(o){let c=n==="yaml"?n:Ig(s,{language:n});if(!c)return;l=o?await t(o,{parser:c}):""}else l=o;return pg([i.startDelimiter,i.explicitLanguage??"",$s,l,l?$s:"",i.endDelimiter])}function WS(t,e){return jg({node:t})&&(delete e.end,delete e.raw,delete e.value),e}var JS=WS;function KS({node:t}){return t.raw}var GS=KS,Ug=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),XS=t=>Object.keys(t).filter(e=>!Ug.has(e));function YS(t,e){let r=t?s=>t(s,Ug):XS;return e?new Proxy(r,{apply:(s,i,n)=>Yh(n[0])?VS:Reflect.apply(s,i,n)}):r}var xy=YS;function qg(t,e){if(!e)throw new Error("parserName is required.");let r=Mg(0,t,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,e));if(r)return r;let s=`Couldn't resolve parser "${e}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new Sg(s)}function QS(t,e){if(!e)throw new Error("astFormat is required.");let r=Mg(0,t,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,e));if(r)return r;let s=`Couldn't find plugin for AST format "${e}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new Sg(s)}function Qh({plugins:t,parser:e}){let r=qg(t,e);return Vg(r,e)}function Vg(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}async function ZS(t,e){let r=t.printers[e],s=typeof r=="function"?await r():r;return eP(s)}var Xp=new WeakMap;function eP(t){if(Xp.has(t))return Xp.get(t);let{features:e,getVisitorKeys:r,embed:s,massageAstNode:i,print:n,...o}=t;e=iP(e);let l=e.experimental_frontMatterSupport;r=xy(r,l.massageAstNode||l.embed||l.print);let c=i;i&&l.massageAstNode&&(c=new Proxy(i,{apply(D,y,g){return JS(...g),Reflect.apply(D,y,g)}}));let f=s;if(s){let D;f=new Proxy(s,{get(y,g,x){return g==="getVisitorKeys"?(D??(D=s.getVisitorKeys?xy(s.getVisitorKeys,l.massageAstNode||l.embed):r),D):Reflect.get(y,g,x)},apply:(y,g,x)=>l.embed&&jg(...x)?HS:Reflect.apply(y,g,x)})}let h=n;l.print&&(h=new Proxy(n,{apply(D,y,g){let[x]=g;return Yh(x.node)?GS(x):Reflect.apply(D,y,g)}}));let d={features:e,getVisitorKeys:r,embed:f,massageAstNode:c,print:h,...o};return Xp.set(t,d),d}var tP=["clean","embed","print"],rP=Object.fromEntries(tP.map(t=>[t,!1]));function sP(t){return{...rP,...t}}function iP(t){return{experimental_avoidAstMutation:!1,...t,experimental_frontMatterSupport:sP(t?.experimental_frontMatterSupport)}}var Ey={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function nP(t,e={}){let r={...t};if(!r.parser)if(r.filepath){if(r.parser=Ig(r,{physicalFile:r.filepath}),!r.parser)throw new oy(`No parser could be inferred for file "${r.filepath}".`)}else throw new oy("No parser and no file path given, couldn't infer a parser.");let s=Pg({plugins:t.plugins,showDeprecated:!0}).options,i={...Ey,...Object.fromEntries(s.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},n=qg(r.plugins,r.parser),o=await Vg(n,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let l=n.printers?.[o.astFormat]?n:QS(r.plugins,o.astFormat),c=await ZS(l,o.astFormat);r.printer=c,r.getVisitorKeys=c.getVisitorKeys;let f=l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter(([,d])=>d!==void 0)):{},h={...i,...f};for(let[d,D]of Object.entries(h))(r[d]===null||r[d]===void 0)&&(r[d]=D);return r.parser==="json"&&(r.trailingComma="none"),RS(r,s,{passThrough:Object.keys(Ey),...e})}var na=nP;AF(CF());var Zh={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};new Set(Zh.keyword);new Set(Zh.strict);new Set(Zh.strictBind);var ku=(t,e)=>r=>t(e(r));function zg(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:ku(ku(t.white,t.bgRed),t.bold),gutter:t.gray,marker:ku(t.red,t.bold),message:ku(t.red,t.bold),reset:t.reset}}zg(Bg());zg(Bg());function aP(){return new Proxy({},{get:()=>t=>t})}var Ay=/\r\n|[\n\r\u2028\u2029]/;function oP(t,e,r){let s=Object.assign({column:0,line:-1},t.start),i=Object.assign({},s,t.end),{linesAbove:n=2,linesBelow:o=3}=r||{},l=s.line,c=s.column,f=i.line,h=i.column,d=Math.max(l-(n+1),0),D=Math.min(e.length,f+o);l===-1&&(d=0),f===-1&&(D=e.length);let y=f-l,g={};if(y)for(let x=0;x<=y;x++){let C=x+l;if(!c)g[C]=!0;else if(x===0){let b=e[C-1].length;g[C]=[c,b-c+1]}else if(x===y)g[C]=[0,h];else{let b=e[C-x].length;g[C]=[0,b]}}else c===h?c?g[l]=[c,0]:g[l]=!0:g[l]=[c,h-c];return{start:d,end:D,markerLines:g}}function uP(t,e,r={}){let s=aP(),i=t.split(Ay),{start:n,end:o,markerLines:l}=oP(e,i,r),c=e.start&&typeof e.start.column=="number",f=String(o).length,h=t.split(Ay,o).slice(n,o).map((d,D)=>{let y=n+1+D,g=` ${` ${y}`.slice(-f)} |`,x=l[y],C=!l[y+1];if(x){let b="";if(Array.isArray(x)){let E=d.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),v=x[1]||1;b=[`
19
+ `,s.gutter(g.replace(/\d/g," "))," ",E,s.marker("^").repeat(v)].join(""),C&&r.message&&(b+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(g),d.length>0?` ${d}`:"",b].join("")}else return` ${s.gutter(g)}${d.length>0?` ${d}`:""}`}).join(`
20
+ `);return r.message&&!c&&(h=`${" ".repeat(f+1)}${r.message}
21
+ ${h}`),h}async function lP(t,e){let r=await Qh(e),s=r.preprocess?await r.preprocess(t,e):t;e.originalText=s;let i;try{i=await r.parse(s,e,e)}catch(n){pP(n,t)}return{text:s,ast:i}}function pP(t,e){let{loc:r}=t;if(r){let s=uP(e,r,{});throw t.message+=`
22
+ `+s,t.codeFrame=s,t}throw t}var Ho=lP;async function cP(t,e,r,s,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:n}=r,{embed:o}=n;if(!o)return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:l}=n,{getVisitorKeys:c}=o,f=[];D();let h=t.stack;for(let{print:y,node:g,pathStack:x}of f)try{t.stack=x;let C=await y(d,e,t,r);C&&i.set(g,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}t.stack=h;function d(y,g){return hP(y,g,r,s)}function D(){let{node:y}=t;if(y===null||typeof y!="object"||l?.(t))return;for(let x of c(y))Array.isArray(y[x])?t.each(D,x):t.call(D,x);let g=o(t,r);if(g){if(typeof g=="function"){f.push({print:g,node:y,pathStack:[...t.stack]});return}i.set(y,g)}}}async function hP(t,e,r,s){let i=await na({...r,...e,parentParser:r.parser,originalText:t,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:n}=await Ho(t,i),o=await s(n,i);return lg(o)}function dP(t,e,r,s){let{originalText:i,[Symbol.for("comments")]:n,locStart:o,locEnd:l,[Symbol.for("printedComments")]:c}=e,{node:f}=t,h=o(f),d=l(f);for(let y of n)o(y)>=h&&l(y)<=d&&c.add(y);let{printPrettierIgnored:D}=e.printer;return D?D(t,e,r,s):i.slice(h,d)}var fP=dP;async function jl(t,e){({ast:t}=await Hg(t,e));let r=new Map,s=new Pw(t),i=new Map;await cP(s,o,e,jl,i);let n=await Cy(s,e,o,void 0,i);if(Jw(e),e.cursorOffset>=0){if(e.nodeAfterCursor&&!e.nodeBeforeCursor)return[Ki,n];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return[n,Ki]}return n;function o(c,f){return c===void 0||c===s?l(f):Array.isArray(c)?s.call(()=>l(f),...c):s.call(()=>l(f),c)}function l(c){let f=s.node;if(f==null)return"";let h=Jh(f)&&c===void 0;if(h&&r.has(f))return r.get(f);let d=Cy(s,e,o,c,i);return h&&r.set(f,d),d}}function Cy(t,e,r,s,i){let{node:n}=t,{printer:o}=e,l;switch(o.hasPrettierIgnore?.(t)?l=fP(t,e,r,s):i.has(n)?l=i.get(n):l=o.print(t,e,r,s),n){case e.cursorNode:l=Yu(l,c=>[Ki,c,Ki]);break;case e.nodeBeforeCursor:l=Yu(l,c=>[c,Ki]);break;case e.nodeAfterCursor:l=Yu(l,c=>[Ki,c]);break}return o.printComment&&!o.willPrintOwnComments?.(t,e)&&(l=Ww(t,l,e)),l}async function Hg(t,e){let r=t.comments??[];e[Symbol.for("comments")]=r,e[Symbol.for("printedComments")]=new Set,Rw(t,e);let{printer:{preprocess:s}}=e;return t=s?await s(t,e):t,{ast:t,comments:r}}function mP(t,e){let{cursorOffset:r,locStart:s,locEnd:i,getVisitorKeys:n}=e,o=y=>s(y)<=r&&i(y)>=r,l=t,c=[t];for(let y of Ow(t,{getVisitorKeys:n,filter:o}))c.push(y),l=y;if($w(l,{getVisitorKeys:n}))return{cursorNode:l};let f,h,d=-1,D=Number.POSITIVE_INFINITY;for(;c.length>0&&(f===void 0||h===void 0);){l=c.pop();let y=f!==void 0,g=h!==void 0;for(let x of Rl(l,{getVisitorKeys:n})){if(!y){let C=i(x);C<=r&&C>d&&(f=x,d=C)}if(!g){let C=s(x);C>=r&&C<D&&(h=x,D=C)}}}return{nodeBeforeCursor:f,nodeAfterCursor:h}}var Wg=mP;function yP(t,e){let{printer:r}=e,s=r.massageAstNode;if(!s)return t;let{getVisitorKeys:i}=r,{ignoredProperties:n}=s;return o(t);function o(l,c){if(!Jh(l))return l;if(Array.isArray(l))return l.map(D=>o(D,c)).filter(Boolean);let f={},h=new Set(i(l));for(let D in l)!Object.prototype.hasOwnProperty.call(l,D)||n?.has(D)||(h.has(D)?f[D]=o(l[D],l):f[D]=l[D]);let d=s(l,f,c);if(d!==null)return d??f}}var DP=yP,gP=Array.prototype.findLastIndex??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return e}return-1},xP=Vo("findLastIndex",function(){if(Array.isArray(this))return gP}),EP=xP,AP=({parser:t})=>t==="json"||t==="json5"||t==="jsonc"||t==="json-stringify";function CP(t,e){return e=new Set(e),t.find(r=>Jg.has(r.type)&&e.has(r))}function by(t){let e=EP(0,t,r=>r.type!=="Program"&&r.type!=="File");return e===-1?t:t.slice(0,e+1)}function bP(t,e,{locStart:r,locEnd:s}){let[i,...n]=t,[o,...l]=e;if(i===o)return[i,o];let c=r(i);for(let h of by(l))if(r(h)>=c)o=h;else break;let f=s(o);for(let h of by(n)){if(s(h)<=f)i=h;else break;if(i===o)break}return[i,o]}function zc(t,e,r,s,i=[],n){let{locStart:o,locEnd:l}=r,c=o(t),f=l(t);if(e>f||e<c||n==="rangeEnd"&&e===c||n==="rangeStart"&&e===f)return;let h=[t,...i],d=bg(t,h,{cache:Tg,locStart:o,locEnd:l,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let D of d){let y=zc(D,e,r,s,h,n);if(y)return y}if(s(t,i[0]))return h}function TP(t,e){return e!=="DeclareExportDeclaration"&&t!=="TypeParameterDeclaration"&&(t==="Directive"||t==="TypeAlias"||t==="TSExportAssignment"||t.startsWith("Declare")||t.startsWith("TSDeclare")||t.endsWith("Statement")||t.endsWith("Declaration"))}var Jg=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),vP=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Ty(t,e,r){if(!e)return!1;switch(t.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return TP(e.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Jg.has(e.type);case"graphql":return vP.has(e.kind);case"vue":return e.tag!=="root"}return!1}function FP(t,e,r){let{rangeStart:s,rangeEnd:i,locStart:n,locEnd:o}=e,l=t.slice(s,i).search(/\S/u),c=l===-1;if(!c)for(s+=l;i>s&&!/\S/u.test(t[i-1]);--i);let f=zc(r,s,e,(y,g)=>Ty(e,y,g),[],"rangeStart");if(!f)return;let h=c?f:zc(r,i,e,y=>Ty(e,y),[],"rangeEnd");if(!h)return;let d,D;if(AP(e)){let y=CP(f,h);d=y,D=y}else[d,D]=bP(f,h,e);return[Math.min(n(d),n(D)),Math.max(o(d),o(D))]}var Kg="\uFEFF",vy=Symbol("cursor");async function Gg(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:i}=await Ho(t,e);e.cursorOffset>=0&&(e={...e,...Wg(s,e)});let n=await jl(s,e);r>0&&(n=cg([$s,n],r,e.tabWidth));let o=Ml(n,e);if(r>0){let c=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(c),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>c.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=c+Uh(e.endOfLine)}let l=e[Symbol.for("comments")];if(e.cursorOffset>=0){let c,f,h,d;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&o.cursorNodeText)if(h=o.cursorNodeStart,d=o.cursorNodeText,e.cursorNode)c=e.locStart(e.cursorNode),f=i.slice(c,e.locEnd(e.cursorNode));else{if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");c=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let b=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):i.length;f=i.slice(c,b)}else c=0,f=i,h=0,d=o.formatted;let D=e.cursorOffset-c;if(f===d)return{formatted:o.formatted,cursorOffset:h+D,comments:l};let y=f.split("");y.splice(D,0,vy);let g=d.split(""),x=PF(y,g),C=h;for(let b of x)if(b.removed){if(b.value.includes(vy))break}else C+=b.count;return{formatted:o.formatted,cursorOffset:C,comments:l}}return{formatted:o.formatted,cursorOffset:-1,comments:l}}async function wP(t,e){let{ast:r,text:s}=await Ho(t,e),[i,n]=FP(s,e,r)??[0,0],o=s.slice(i,n),l=Math.min(i,s.lastIndexOf(`
23
+ `,i)+1),c=s.slice(l,i).match(/^\s*/u)[0],f=Wh(c,e.tabWidth),h=await Gg(o,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>i&&e.cursorOffset<=n?e.cursorOffset-i:-1,endOfLine:"lf"},f),d=h.formatted.trimEnd(),{cursorOffset:D}=e;D>n?D+=d.length-o.length:h.cursorOffset>=0&&(D=h.cursorOffset+i);let y=s.slice(0,i)+d+s.slice(n);if(e.endOfLine!=="lf"){let g=Uh(e.endOfLine);D>=0&&g===`\r
24
+ `&&(D+=og(y.slice(0,D),`
25
+ `)),y=_l(0,y,`
26
+ `,g)}return{formatted:y,cursorOffset:D,comments:h.comments}}function Yp(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Fy(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:i}=e;return r=Yp(t,r,-1),s=Yp(t,s,0),i=Yp(t,i,t.length),{...e,cursorOffset:r,rangeStart:s,rangeEnd:i}}function Xg(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:i,endOfLine:n}=Fy(t,e),o=t.charAt(0)===Kg;if(o&&(t=t.slice(1),r--,s--,i--),n==="auto"&&(n=LF(t)),t.includes("\r")){let l=c=>og(t.slice(0,Math.max(c,0)),`\r
27
+ `);r-=l(r),s-=l(s),i-=l(i),t=MF(t)}return{hasBOM:o,text:t,options:Fy(t,{...e,cursorOffset:r,rangeStart:s,rangeEnd:i,endOfLine:n})}}async function wy(t,e){let r=await Qh(e);return!r.hasPragma||r.hasPragma(t)}async function SP(t,e){return(await Qh(e)).hasIgnorePragma?.(t)}async function Yg(t,e){let{hasBOM:r,text:s,options:i}=Xg(t,await na(e));if(i.rangeStart>=i.rangeEnd&&s!==""||i.requirePragma&&!await wy(s,i)||i.checkIgnorePragma&&await SP(s,i))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let n;return i.rangeStart>0||i.rangeEnd<s.length?n=await wP(s,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await wy(s,i)&&(s=i.printer.insertPragma(s)),n=await Gg(s,i)),r&&(n.formatted=Kg+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n}async function PP(t,e,r){let{text:s,options:i}=Xg(t,await na(e)),n=await Ho(s,i);return r&&(r.preprocessForPrint&&(n.ast=await Hg(n.ast,i)),r.massage&&(n.ast=DP(n.ast,i))),n}async function kP(t,e){e=await na(e);let r=await jl(t,e);return Ml(r,e)}async function IP(t,e){let r=fw(t),{formatted:s}=await Yg(r,{...e,parser:"__js_expression"});return s}async function BP(t,e){e=await na(e);let{ast:r}=await Ho(t,e);return e.cursorOffset>=0&&(e={...e,...Wg(r,e)}),jl(r,e)}async function NP(t,e){return Ml(t,await na(e))}var Qg={};Rh(Qg,{builders:()=>_P,printer:()=>LP,utils:()=>OP});var _P={join:dg,line:fg,softline:cw,hardline:$s,literalline:yg,group:hg,conditionalGroup:ow,fill:aw,lineSuffix:Uc,lineSuffixBoundary:hw,cursor:Ki,breakParent:$l,ifBreak:uw,trim:dw,indent:ml,indentIfBreak:lw,align:Gn,addAlignmentToDoc:cg,markAsRoot:pg,dedentToRoot:iw,dedent:nw,hardlineWithoutBreakParent:zh,literallineWithoutBreakParent:mg,label:pw,concat:t=>t},LP={printDocToString:Ml},OP={willBreak:KF,traverseDoc:qh,findInDoc:Vh,mapDoc:Ol,removeLines:YF,stripTrailingHardline:lg,replaceEndOfLine:ew,canBreak:rw},$P="3.8.3",Zg={};Rh(Zg,{addDanglingComment:()=>zi,addLeadingComment:()=>lo,addTrailingComment:()=>po,getAlignmentSize:()=>Wh,getIndentSize:()=>VP,getMaxContinuousCount:()=>WP,getNextNonSpaceNonCommentCharacter:()=>KP,getNextNonSpaceNonCommentCharacterIndex:()=>i3,getPreferredQuote:()=>QP,getStringWidth:()=>Hh,hasNewline:()=>mi,hasNewlineInRange:()=>e3,hasSpaces:()=>r3,isNextLineEmpty:()=>l3,isNextLineEmptyAfterIndex:()=>sd,isPreviousLineEmpty:()=>a3,makeString:()=>u3,skip:()=>zo,skipEverythingButNewLine:()=>Ag,skipInlineComment:()=>ed,skipNewline:()=>Zi,skipSpaces:()=>Ei,skipToLineEnd:()=>Eg,skipTrailingComment:()=>td,skipWhitespace:()=>Iw});function MP(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var ed=MP;function RP(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Ag(t,e):e}var td=RP;function jP(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Ei(t,s),s=ed(t,s),s=td(t,s),s=Zi(t,s);return s}var rd=jP;function UP(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Eg(t,s),s=ed(t,s),s=Ei(t,s);return s=td(t,s),s=Zi(t,s),s!==!1&&mi(t,s)}var sd=UP;function qP(t,e){let r=t.lastIndexOf(`
28
+ `);return r===-1?0:Wh(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var VP=qP;function zP(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function HP(t,e){let r=t.matchAll(new RegExp(`(?:${zP(e)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((s,[i])=>Math.max(s,i.length),0)/e.length}var WP=HP;function JP(t,e){let r=rd(t,e);return r===!1?"":t.charAt(r)}var KP=JP,e0=Object.freeze({character:"'",codePoint:39}),t0=Object.freeze({character:'"',codePoint:34}),GP=Object.freeze({preferred:e0,alternate:t0}),XP=Object.freeze({preferred:t0,alternate:e0});function YP(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?GP:XP,{length:i}=t,n=0,o=0;for(let l=0;l<i;l++){let c=t.charCodeAt(l);c===r.codePoint?n++:c===s.codePoint&&o++}return(n>o?s:r).character}var QP=YP;function ZP(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
29
+ `)return!0;return!1}var e3=ZP;function t3(t,e,r={}){return Ei(t,r.backwards?e-1:e,r)!==e}var r3=t3;function s3(t,e,r){return rd(t,r(e))}function i3(t,e){return arguments.length===2||typeof e=="number"?rd(t,e):s3(...arguments)}function n3(t,e,r){return Gh(t,r(e))}function a3(t,e){return arguments.length===2||typeof e=="number"?Gh(t,e):n3(...arguments)}function o3(t,e,r){return sd(t,r(e))}function u3(t,e,r){let s=e==='"'?"'":'"',i=_l(0,t,/\\(.)|(["'])/gsu,(n,o,l)=>o===s?o:l===e?"\\"+l:l||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return e+i+e}function l3(t,e){return arguments.length===2||typeof e=="number"?sd(t,e):o3(...arguments)}function Wi(t,e=1){return async(...r)=>{let s=r[e]??{},i=s.plugins??[];return r[e]={...s,plugins:Array.isArray(i)?i:Object.values(i)},t(...r)}}var r0=Wi(Yg);async function as(t,e){let{formatted:r}=await r0(t,{...e,cursorOffset:-1});return r}async function p3(t,e){return await as(t,e)===t}var c3=Wi(Pg,0),h3={parse:Wi(PP),formatAST:Wi(kP),formatDoc:Wi(IP),printToDoc:Wi(BP),printDocToString:Wi(NP)},d3=Object.defineProperty,id=(t,e)=>{for(var r in e)d3(t,r,{get:e[r],enumerable:!0})},s0={};id(s0,{parsers:()=>R0});var i0={};id(i0,{__babel_estree:()=>iB,__js_expression:()=>Zy,__ts_expression:()=>eD,__vue_event_binding:()=>Yy,__vue_expression:()=>Zy,__vue_ts_event_binding:()=>Qy,__vue_ts_expression:()=>eD,babel:()=>Yy,"babel-flow":()=>L0,"babel-ts":()=>Qy});function f3(t,e){if(t==null)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.indexOf(s)!==-1)continue;r[s]=t[s]}return r}var yi=class{line;column;index;constructor(e,r,s){this.line=e,this.column=r,this.index=s}},yl=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function Or(t,e){let{line:r,column:s,index:i}=t;return new yi(r,s+e,i+e)}var Sy="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",m3={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Sy},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Sy}},Py={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Zu=t=>t.type==="UpdateExpression"?Py.UpdateExpression[`${t.prefix}`]:Py[t.type],y3={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
30
+ - Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
31
+ - Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Zu(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Zu(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Zu(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},D3={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},g3={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},x3=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),E3=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Zu({type:t})}; please wrap it in parentheses.`},{}),A3=["message"];function ky(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function C3({toMessage:t,code:e,reasonCode:r,syntaxPlugin:s}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function n(o,l){let c=new SyntaxError;return c.code=e,c.reasonCode=r,c.loc=o,c.pos=o.index,c.syntaxPlugin=s,i&&(c.missingPlugin=l.missingPlugin),ky(c,"clone",function(f={}){let{line:h,column:d,index:D}=f.loc??o;return n(new yi(h,d,D),Object.assign({},l,f.details))}),ky(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){let f=`${t(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),c}}function us(t,e){if(Array.isArray(t))return s=>us(s,t[0]);let r={};for(let s of Object.keys(t)){let i=t[s],n=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:o}=n,l=f3(n,A3),c=typeof o=="string"?()=>o:o;r[s]=C3(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:c},e?{syntaxPlugin:e}:{},l))}return r}var H=Object.assign({},us(m3),us(y3),us(D3),us(g3),us`pipelineOperator`(E3));function b3(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function T3(t){let e=b3();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))t[r]!=null&&(e[r]=t[r]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if(t.startColumn==null||t.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:v3}=Object,Iy=(t,e)=>{t&&v3(t,e,{enumerable:!1,value:t[e]})};function Oa(t){return Iy(t.loc.start,"index"),Iy(t.loc.end,"index"),t}var F3=t=>class extends t{parse(){let e=Oa(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(Oa)),e}parseRegExpLiteral({pattern:e,flags:r}){let s=null;try{s=new RegExp(e,r)}catch{}let i=this.estreeParseLiteral(s);return i.regex={pattern:e,flags:r},i}parseBigIntLiteral(e){let r;try{r=BigInt(e)}catch{r=null}let s=this.estreeParseLiteral(r);return s.bigint=String(s.value||e),s}parseDecimalLiteral(e){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||e),r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,r){let s=this.startNodeAtNode(e);return s.expression=e,this.finishNodeAt(s,"ChainExpression",r)}directiveToStmt(e){let r=e.value;delete e.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let s=this.castNodeTo(e,"ExpressionStatement");return s.expression=r,s.directive=r.extra.rawValue,delete r.extra,s}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:r,end:s,loc:i,range:n,raw:o,value:l}=e,c=Object.create(e.constructor.prototype);return c.type="Literal",c.start=r,c.end=s,c.loc=i,c.range=n,c.raw=o,c.value=l,c}initFunction(e,r){super.initFunction(e,r),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!e.expression.extra?.parenthesized}parseBlockBody(e,r,s,i,n){super.parseBlockBody(e,r,s,i,n);let o=e.directives.map(l=>this.directiveToStmt(l));e.body=o.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let r=super.getPrivateNameSV(e);return delete e.id,e.name=r,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return e.type==="PrivateIdentifier"}getPrivateNameSV(e){return e.name}parseLiteral(e,r){let s=super.parseLiteral(e,r);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(e,r,s=!1){super.parseFunctionBody(e,r,s),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,r,s,i,n,o,l=!1){let c=this.startNode();c.kind=e.kind,c=super.parseMethod(c,r,s,i,n,o,l),delete c.kind;let{typeParameters:f}=e;f&&(delete e.typeParameters,c.typeParameters=f,this.resetStartLocationFromNode(c,f));let h=this.castNodeTo(c,this.hasPlugin("typescript")&&!c.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return e.value=h,o==="ClassPrivateMethod"&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):o==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let r=super.parseClassProperty(...e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...e){let r=super.parseClassPrivateProperty(...e);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(e){let r=super.parseClassAccessorProperty(e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(e,r,s,i){let n=super.parseObjectProperty(e,r,s,i);return n&&(n.kind="init",this.castNodeTo(n,"Property")),n}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,r,s,i){return e==="Property"?"value":super.isValidLVal(e,r,s,i)}isAssignable(e,r){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,r):super.isAssignable(e,r)}toAssignable(e,r=!1){if(e!=null&&this.isObjectProperty(e)){let{key:s,value:i}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(i,r)}else super.toAssignable(e,r)}toAssignableObjectExpressionProp(e,r,s){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(H.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(H.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,r,s)}finishCallExpression(e,r){let s=super.finishCallExpression(e,r);return s.callee.type==="Import"?(this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=s.arguments[1]??null,delete s.arguments,delete s.callee):s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1,s}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,r){let s=this.state.lastTokStartLoc,i=super.parseExport(e,r);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{let{declaration:n}=i;n?.type==="ClassDeclaration"&&n.decorators?.length>0&&n.start===i.start&&this.resetStartLocation(i,s)}break}return i}stopParseSubscript(e,r){let s=super.stopParseSubscript(e,r);return r.optionalChainMember?this.estreeParseChainExpression(s,e.loc.end):s}parseMember(e,r,s,i,n){let o=super.parseMember(e,r,s,i,n);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,r){let s=super.castNodeTo(e,r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(e){let r=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,r,s){return Oa(super.finishNodeAt(e,r,s))}finishNode(e,r){let s=super.finishNode(e,r);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(e,r){super.resetStartLocation(e,r),Oa(e)}resetEndLocation(e,r=this.state.lastTokEndLoc){super.resetEndLocation(e,r),Oa(e)}},Iu=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},pt={brace:new Iu("{"),j_oTag:new Iu("<tag"),j_cTag:new Iu("</tag"),j_expr:new Iu("<tag>...</tag>",!0)},ze=!0,be=!0,Qp=!0,$a=!0,si=!0,w3=!0,n0=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,r={}){this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},nd=new Map;function et(t,e={}){e.keyword=t;let r=Be(t,e);return nd.set(t,r),r}function er(t,e){return Be(t,{beforeExpr:ze,binop:e})}var co=-1,ad=[],od=[],ud=[],ld=[],pd=[],cd=[];function Be(t,e={}){return++co,od.push(t),ud.push(e.binop??-1),ld.push(e.beforeExpr??!1),pd.push(e.startsExpr??!1),cd.push(e.prefix??!1),ad.push(new n0(t,e)),co}function Je(t,e={}){return++co,nd.set(t,co),od.push(t),ud.push(e.binop??-1),ld.push(e.beforeExpr??!1),pd.push(e.startsExpr??!1),cd.push(e.prefix??!1),ad.push(new n0("name",e)),co}var S3={bracketL:Be("[",{beforeExpr:ze,startsExpr:be}),bracketHashL:Be("#[",{beforeExpr:ze,startsExpr:be}),bracketBarL:Be("[|",{beforeExpr:ze,startsExpr:be}),bracketR:Be("]"),bracketBarR:Be("|]"),braceL:Be("{",{beforeExpr:ze,startsExpr:be}),braceBarL:Be("{|",{beforeExpr:ze,startsExpr:be}),braceHashL:Be("#{",{beforeExpr:ze,startsExpr:be}),braceR:Be("}"),braceBarR:Be("|}"),parenL:Be("(",{beforeExpr:ze,startsExpr:be}),parenR:Be(")"),comma:Be(",",{beforeExpr:ze}),semi:Be(";",{beforeExpr:ze}),colon:Be(":",{beforeExpr:ze}),doubleColon:Be("::",{beforeExpr:ze}),dot:Be("."),question:Be("?",{beforeExpr:ze}),questionDot:Be("?."),arrow:Be("=>",{beforeExpr:ze}),template:Be("template"),ellipsis:Be("...",{beforeExpr:ze}),backQuote:Be("`",{startsExpr:be}),dollarBraceL:Be("${",{beforeExpr:ze,startsExpr:be}),templateTail:Be("...`",{startsExpr:be}),templateNonTail:Be("...${",{beforeExpr:ze,startsExpr:be}),at:Be("@"),hash:Be("#",{startsExpr:be}),interpreterDirective:Be("#!..."),eq:Be("=",{beforeExpr:ze,isAssign:$a}),assign:Be("_=",{beforeExpr:ze,isAssign:$a}),slashAssign:Be("_=",{beforeExpr:ze,isAssign:$a}),xorAssign:Be("_=",{beforeExpr:ze,isAssign:$a}),moduloAssign:Be("_=",{beforeExpr:ze,isAssign:$a}),incDec:Be("++/--",{prefix:si,postfix:w3,startsExpr:be}),bang:Be("!",{beforeExpr:ze,prefix:si,startsExpr:be}),tilde:Be("~",{beforeExpr:ze,prefix:si,startsExpr:be}),doubleCaret:Be("^^",{startsExpr:be}),doubleAt:Be("@@",{startsExpr:be}),pipeline:er("|>",0),nullishCoalescing:er("??",1),logicalOR:er("||",1),logicalAND:er("&&",2),bitwiseOR:er("|",3),bitwiseXOR:er("^",4),bitwiseAND:er("&",5),equality:er("==/!=/===/!==",6),lt:er("</>/<=/>=",7),gt:er("</>/<=/>=",7),relational:er("</>/<=/>=",7),bitShift:er("<</>>/>>>",8),bitShiftL:er("<</>>/>>>",8),bitShiftR:er("<</>>/>>>",8),plusMin:Be("+/-",{beforeExpr:ze,binop:9,prefix:si,startsExpr:be}),modulo:Be("%",{binop:10,startsExpr:be}),star:Be("*",{binop:10}),slash:er("/",10),exponent:Be("**",{beforeExpr:ze,binop:11,rightAssociative:!0}),_in:et("in",{beforeExpr:ze,binop:7}),_instanceof:et("instanceof",{beforeExpr:ze,binop:7}),_break:et("break"),_case:et("case",{beforeExpr:ze}),_catch:et("catch"),_continue:et("continue"),_debugger:et("debugger"),_default:et("default",{beforeExpr:ze}),_else:et("else",{beforeExpr:ze}),_finally:et("finally"),_function:et("function",{startsExpr:be}),_if:et("if"),_return:et("return",{beforeExpr:ze}),_switch:et("switch"),_throw:et("throw",{beforeExpr:ze,prefix:si,startsExpr:be}),_try:et("try"),_var:et("var"),_const:et("const"),_with:et("with"),_new:et("new",{beforeExpr:ze,startsExpr:be}),_this:et("this",{startsExpr:be}),_super:et("super",{startsExpr:be}),_class:et("class",{startsExpr:be}),_extends:et("extends",{beforeExpr:ze}),_export:et("export"),_import:et("import",{startsExpr:be}),_null:et("null",{startsExpr:be}),_true:et("true",{startsExpr:be}),_false:et("false",{startsExpr:be}),_typeof:et("typeof",{beforeExpr:ze,prefix:si,startsExpr:be}),_void:et("void",{beforeExpr:ze,prefix:si,startsExpr:be}),_delete:et("delete",{beforeExpr:ze,prefix:si,startsExpr:be}),_do:et("do",{isLoop:Qp,beforeExpr:ze}),_for:et("for",{isLoop:Qp}),_while:et("while",{isLoop:Qp}),_as:Je("as",{startsExpr:be}),_assert:Je("assert",{startsExpr:be}),_async:Je("async",{startsExpr:be}),_await:Je("await",{startsExpr:be}),_defer:Je("defer",{startsExpr:be}),_from:Je("from",{startsExpr:be}),_get:Je("get",{startsExpr:be}),_let:Je("let",{startsExpr:be}),_meta:Je("meta",{startsExpr:be}),_of:Je("of",{startsExpr:be}),_sent:Je("sent",{startsExpr:be}),_set:Je("set",{startsExpr:be}),_source:Je("source",{startsExpr:be}),_static:Je("static",{startsExpr:be}),_using:Je("using",{startsExpr:be}),_yield:Je("yield",{startsExpr:be}),_asserts:Je("asserts",{startsExpr:be}),_checks:Je("checks",{startsExpr:be}),_exports:Je("exports",{startsExpr:be}),_global:Je("global",{startsExpr:be}),_implements:Je("implements",{startsExpr:be}),_intrinsic:Je("intrinsic",{startsExpr:be}),_infer:Je("infer",{startsExpr:be}),_is:Je("is",{startsExpr:be}),_mixins:Je("mixins",{startsExpr:be}),_proto:Je("proto",{startsExpr:be}),_require:Je("require",{startsExpr:be}),_satisfies:Je("satisfies",{startsExpr:be}),_keyof:Je("keyof",{startsExpr:be}),_readonly:Je("readonly",{startsExpr:be}),_unique:Je("unique",{startsExpr:be}),_abstract:Je("abstract",{startsExpr:be}),_declare:Je("declare",{startsExpr:be}),_enum:Je("enum",{startsExpr:be}),_module:Je("module",{startsExpr:be}),_namespace:Je("namespace",{startsExpr:be}),_interface:Je("interface",{startsExpr:be}),_type:Je("type",{startsExpr:be}),_opaque:Je("opaque",{startsExpr:be}),name:Be("name",{startsExpr:be}),placeholder:Be("%%",{startsExpr:be}),string:Be("string",{startsExpr:be}),num:Be("num",{startsExpr:be}),bigint:Be("bigint",{startsExpr:be}),decimal:Be("decimal",{startsExpr:be}),regexp:Be("regexp",{startsExpr:be}),privateName:Be("#name",{startsExpr:be}),eof:Be("eof"),jsxName:Be("jsxName"),jsxText:Be("jsxText",{beforeExpr:ze}),jsxTagStart:Be("jsxTagStart",{startsExpr:be}),jsxTagEnd:Be("jsxTagEnd")};function it(t){return t>=93&&t<=133}function P3(t){return t<=92}function Jr(t){return t>=58&&t<=133}function a0(t){return t>=58&&t<=137}function k3(t){return ld[t]}function so(t){return pd[t]}function I3(t){return t>=29&&t<=33}function By(t){return t>=129&&t<=131}function B3(t){return t>=90&&t<=92}function hd(t){return t>=58&&t<=92}function N3(t){return t>=39&&t<=59}function _3(t){return t===34}function L3(t){return cd[t]}function O3(t){return t>=121&&t<=123}function $3(t){return t>=124&&t<=130}function Di(t){return od[t]}function el(t){return ud[t]}function M3(t){return t===57}function Hc(t){return t>=24&&t<=25}function o0(t){return ad[t]}var dd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u0="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",R3=new RegExp("["+dd+"]"),j3=new RegExp("["+dd+u0+"]");dd=u0=null;var l0=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],U3=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Wc(t,e){let r=65536;for(let s=0,i=e.length;s<i;s+=2){if(r+=e[s],r>t)return!1;if(r+=e[s+1],r>=t)return!0}return!1}function ls(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&R3.test(String.fromCharCode(t)):Wc(t,l0)}function Xi(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&j3.test(String.fromCharCode(t)):Wc(t,l0)||Wc(t,U3)}var fd={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},q3=new Set(fd.keyword),V3=new Set(fd.strict),z3=new Set(fd.strictBind);function p0(t,e){return e&&t==="await"||t==="enum"}function c0(t,e){return p0(t,e)||V3.has(t)}function h0(t){return z3.has(t)}function d0(t,e){return c0(t,e)||h0(t)}function H3(t){return q3.has(t)}function W3(t,e,r){return t===64&&e===64&&ls(r)}var J3=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function K3(t){return J3.has(t)}var md=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},yd=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,r){this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new md(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,s){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,e,r,s);let n=i.names.get(e)||0;r&16?n=n|4:(i.firstLexicalName||(i.firstLexicalName=e),n=n|2),i.names.set(e,n),r&8&&this.maybeExportDefined(i,e)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(i=this.scopeStack[n],this.checkRedeclarationInScope(i,e,r,s),i.names.set(e,(i.names.get(e)||0)|1),this.maybeExportDefined(i,e),!(i.flags&1667));--n);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,s,i){this.isRedeclaredInScope(e,r,s)&&this.parser.raise(H.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(e,r,s){if(!(s&1))return!1;if(s&8)return e.names.has(r);let i=e.names.get(r)||0;return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(e)&&(i&1)>0:(i&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(i&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},G3=class extends md{declareFunctions=new Set},X3=class extends yd{createScope(e){return new G3(e)}declareName(e,r,s){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,e,r,s),this.maybeExportDefined(i,e),i.declareFunctions.add(e);return}super.declareName(e,r,s)}isRedeclaredInScope(e,r,s){if(super.isRedeclaredInScope(e,r,s))return!0;if(s&2048&&!e.declareFunctions.has(r)){let i=e.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Y3=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Le=us`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Q3(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Ny(t){return t.importKind==="type"||t.importKind==="typeof"}var Z3={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function ek(t,e){let r=[],s=[];for(let i=0;i<t.length;i++)(e(t[i],i,t)?r:s).push(t[i]);return[r,s]}var tk=/\*?\s*@((?:no)?flow)\b/,rk=t=>class extends t{flowPragma=void 0;getScopeHandler(){return X3}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,r){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,r)}addComment(e){if(this.flowPragma===void 0){let r=tk.exec(e.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(e||14);let s=this.flowParseType();return this.state.inType=r,s}flowParsePredicate(){let e=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Le.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,s=null;return this.match(54)?(this.state.inType=e,s=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=e,this.match(54)&&(s=this.flowParsePredicate())),[r,s]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let r=e.id=this.parseIdentifier(),s=this.startNode(),i=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return s.params=n.params,s.rest=n.rest,s.this=n._this,this.expect(11),[s.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,r){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(r&&this.raise(Le.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,r);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let r=e.body=this.startNode(),s=r.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Le.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,Le.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let i=null,n=!1;return s.forEach(o=>{Q3(o)?(i==="CommonJS"&&this.raise(Le.AmbiguousDeclareModuleKind,o),i="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(Le.DuplicateDeclareModuleExports,o),i==="ES"&&this.raise(Le.AmbiguousDeclareModuleKind,o),i="CommonJS",n=!0)}),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let s=this.state.value;throw this.raise(Le.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:Z3[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let r=this.flowParseTypeAlias(e);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(e){this.next();let r=this.flowParseOpaqueType(e,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,r){if(e.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(e.id.name,r?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(Le.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,s){Y3.has(e)&&this.raise(s?Le.AssignReservedType:Le.UnexpectedReservedType,r,{reservedType:e})}flowParseRestrictedIdentifier(e,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,r){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,r||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let r=this.state.startLoc,s=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return s.name=n.name,s.variance=i,s.bound=n.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):e&&this.raise(Le.MissingTypeParamDefault,r),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let i=this.flowParseTypeParameter(s);r.params.push(i),i.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==pt.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),r=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=r,!this.state.inType&&this.curContext()===pt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),r=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,r,s){return e.static=r,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=s,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,r){return e.static=r,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,r){let s=this.startNode();return e.static=r,e.value=this.flowParseObjectTypeMethodish(s),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:r,allowSpread:s,allowProto:i,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,f,h=!1;for(r&&this.match(6)?(this.expect(6),c=9,f=!0):(this.expect(5),c=8,f=!1),l.exact=f;!this.match(c);){let D=!1,y=null,g=null,x=this.startNode();if(i&&this.isContextual(118)){let b=this.lookahead();b.type!==14&&b.type!==17&&(this.next(),y=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let b=this.lookahead();b.type!==14&&b.type!==17&&(this.next(),D=!0)}let C=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(C&&this.unexpected(C.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,D))):l.indexers.push(this.flowParseObjectTypeIndexer(x,D,C));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),C&&this.unexpected(C.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(x,D));else{let b="init";if(this.isContextual(99)||this.isContextual(104)){let v=this.lookahead();a0(v.type)&&(b=this.state.value,this.next())}let E=this.flowParseObjectTypeProperty(x,D,y,C,b,s,n??!f);E===null?(h=!0,g=this.state.lastTokStartLoc):l.properties.push(E)}this.flowObjectTypeSemicolon(),g&&!this.match(8)&&!this.match(9)&&this.raise(Le.UnexpectedExplicitInexactInObject,g)}this.expect(c),s&&(l.inexact=h);let d=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(e,r,s,i,n,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(Le.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Le.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(Le.InexactVariance,i),null):(o||this.raise(Le.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),i&&this.raise(Le.SpreadVariance,i),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=s!=null,e.kind=n;let c=!1;return this.match(47)||this.match(10)?(e.method=!0,s!=null&&this.unexpected(s),i&&this.unexpected(i.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(Le.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=c,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let r=e.kind==="get"?0:1,s=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?Le.GetterMayNotHaveThisParam:Le.SetterMayNotHaveThisParam,e.value.this),s!==r&&this.raise(e.kind==="get"?H.BadGetterArity:H.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(H.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,r){e??(e=this.state.startLoc);let s=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let i=this.startNodeAt(e);i.qualification=s,i.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(i,"QualifiedTypeIdentifier")}return s}flowParseGenericType(e,r){let s=this.startNodeAt(e);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(e,r),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let r=null,s=!1,i=null,n=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!e&&this.raise(Le.ThisParamMustBeFirst,n),r=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(Le.ThisParamMayNotBeOptional,n)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),n.name=r,n.optional=s,n.typeAnnotation=i,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let r=this.startNodeAt(e.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=e,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let r=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:e,rest:r,_this:s}}flowIdentToTypeAnnotation(e,r,s){switch(s.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(e,s)}}flowParsePrimaryType(){let e=this.state.startLoc,r=this.startNode(),s,i,n=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,i=this.flowParseTupleType(),this.state.noAnonFunctionType=o,i;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(it(this.state.type)||this.match(78)){let c=this.lookahead().type;n=c!==17&&c!==14}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),i;this.eat(12)}return i?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(Le.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(hd(this.state.type)){let l=Di(this.state.type);return this.next(),super.createIdentifier(r,l)}else if(it(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,r=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let i=this.startNodeAt(e),n=this.eat(18);s=s||n,this.expect(0),!n&&this.match(3)?(i.elementType=r,this.next(),r=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=r,i.indexType=this.flowParseType(),this.expect(3),s?(i.optional=n,r=this.finishNode(i,"OptionalIndexedAccessType")):r=this.finishNode(i,"IndexedAccessType"))}return r}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let r=this.startNodeAt(e.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(e)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let r=this.flowParseAnonFunctionWithoutParens();for(e.types=[r];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?r:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let r=this.flowParseIntersectionType();for(e.types=[r];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?r:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=e,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let r=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,r,s=!1){if(r){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,s));return}super.parseFunctionBody(e,!1,s)}parseFunctionBodyAndFinish(e,r,s=!1){if(this.match(14)){let i=this.startNode();[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,r,s)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(Jr(s.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let r=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(e,r,s){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||it(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(it(this.state.type)){if(r.name==="interface")return this.flowParseInterface(e);if(r.name==="type")return this.flowParseTypeAlias(e);if(r.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,r,s)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||By(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||By(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,r,s){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(s),e}this.expect(17);let i=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(r),{consequent:l,failed:c}=this.tryParseConditionalConsequent(),[f,h]=this.getArrowLikeExpressions(l);if(c||h.length>0){let d=[...n];if(h.length>0){this.state=i,this.state.noArrowAt=d;for(let D=0;D<h.length;D++)d.push(h[D].start);({consequent:l,failed:c}=this.tryParseConditionalConsequent()),[f,h]=this.getArrowLikeExpressions(l)}c&&f.length>1&&this.raise(Le.AmbiguousConditionalArrow,i.startLoc),c&&f.length===1&&(this.state=i,d.push(f[0].start),this.state.noArrowAt=d,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:r}}getArrowLikeExpressions(e,r){let s=[e],i=[];for(;s.length!==0;){let n=s.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):i.push(n),s.push(n.body)):n.type==="ConditionalExpression"&&(s.push(n.consequent),s.push(n.alternate))}return r?(i.forEach(n=>this.finishArrowValidation(n)),[i,[]]):ek(i,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,r){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=r(),this.state.noArrowParamsConversionAt.pop()):s=r(),s}parseParenItem(e,r){let s=super.parseParenItem(e,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(r);return i.expression=s,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return s}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){e.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:r}=this.state,s=super.maybeParseExportNamespaceSpecifier(e);return s&&e.exportKind==="type"&&this.unexpected(r),s}parseClassId(e,r,s){super.parseClassId(e,r,s),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,r,s){let{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,r))return;r.declare=!0}super.parseClassMember(e,r,s),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Le.DeclareClassElement,i):r.value&&this.raise(Le.DeclareClassFieldInitializer,r.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),r="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(H.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(e){let r=this.input.charCodeAt(this.state.pos+1);e===123&&r===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?r===46?this.finishOp(18,2):this.finishOp(17,1):W3(e,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,r){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,r):super.isAssignable(e,r)}toAssignable(e,r=!1){!r&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,r)}toAssignableList(e,r,s){for(let i=0;i<e.length;i++){let n=e[i];n?.type==="TypeCastExpression"&&(e[i]=this.typeCastToParameter(n))}super.toAssignableList(e,r,s)}toReferencedList(e,r){for(let s=0;s<e.length;s++){let i=e[s];i&&i.type==="TypeCastExpression"&&!i.extra?.parenthesized&&(e.length>1||!r)&&this.raise(Le.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,r,s){let i=super.parseArrayLike(e,r,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,r,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,r,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,r,s,i,n,o){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,r,s,i,n,o),r.params&&n){let l=r.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Le.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&n&&r.value.params){let l=r.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Le.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(e,r,s,i){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,r,s,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=e.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,r.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let r=this.getObjectOrClassMethodParams(e);if(r.length>0){let s=r[0];this.isThisParam(s)&&e.kind==="get"?this.raise(Le.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(Le.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,s,i,n,o,l){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(e,r,s,i,n,o,l);return c&&((f.value||f).typeParameters=c),f}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(Le.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Le.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Le.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Le.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,r){let s=super.parseMaybeDefault(e,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(Le.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Le.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,r,s){r.local=Ny(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,s))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!e&&this.isContextual(87)}applyImportPhase(e,r,s,i){if(super.applyImportPhase(e,r,s,i),r){if(!s&&this.match(65))return;e.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),e.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(e,r,s,i,n){let o=e.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let h=this.parseIdentifier(!0);l!==null&&!Jr(this.state.type)?(e.imported=h,e.importKind=l,e.local=this.cloneIdentifier(h)):(e.imported=o,e.importKind=null,e.local=this.parseIdentifier())}else{if(l!==null&&Jr(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=l;else{if(r)throw this.raise(H.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(c=!0,e.local=this.cloneIdentifier(e.imported))}let f=Ny(e);return s&&f&&this.raise(Le.ImportTypeShorthandOnlyInPureImport,e),(s||f)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),c&&!s&&!f&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,r){let s=e.kind;s!=="get"&&s!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(e,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,r){let s=null,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!i.error)return i.node;let{context:n}=this.state,o=n[n.length-1];(o===pt.j_oTag||o===pt.j_expr)&&n.pop()}if(i?.error||this.match(47)){s=s||this.state.clone();let n,o=this.tryParse(c=>{n=this.flowParseTypeParameterDeclaration();let f=this.forwardNoArrowParamsConversionAt(n,()=>{let d=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(d,n),d});f.extra?.parenthesized&&c();let h=this.maybeUnwrapTypeCastExpression(f);return h.type!=="ArrowFunctionExpression"&&c(),h.typeParameters=n,this.resetStartLocationFromNode(h,n),f},s),l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Le.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),o.node;l=o.node}if(i?.node)return this.state=i.failState,i.node;if(l)return this.state=o.failState,l;throw i?.thrown?i.error:o.thrown?o.error:this.raise(Le.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,r)}parseArrow(e){if(this.match(14)){let r=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(r.thrown)return null;r.error&&(this.state=r.failState),e.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:super.setArrowFunctionParameters(e,r)}checkParams(e,r,s,i=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let n=0;n<e.params.length;n++)this.isThisParam(e.params[n])&&n>0&&this.raise(Le.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,r,s,i)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,r,s){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let i=this.startNodeAt(r);i.callee=e,i.arguments=super.parseCallExpressionArguments(),e=this.finishNode(i,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let i=this.state.clone(),n=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(r)||l(),i);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,r,s),i);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,r,s)}parseSubscript(e,r,s,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,s)return i.stop=!0,e;this.next();let n=this.startNodeAt(r);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),n.arguments=this.parseCallExpressionArguments(),n.optional=!0,this.finishCallExpression(n,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(r);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,i.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,r,s,i)}parseNewCallee(e){super.parseNewCallee(e);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=r}parseAsyncArrowWithTypeParameters(e){let r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,r){let s=super.parseTopLevel(e,r);return this.state.hasFlowComment&&this.raise(Le.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Le.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(e+r));)r++;let s=this.input.charCodeAt(r+e),i=this.input.charCodeAt(r+e+1);return s===58&&i===58?r+2:this.input.slice(r+e,r+e+12)==="flow-include"?r+12:s===58&&i!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(H.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:r,memberName:s}){this.raise(Le.EnumBooleanMemberNotInitialized,e,{memberName:s,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Le.EnumInvalidMemberInitializerSymbolType:Le.EnumInvalidMemberInitializerPrimaryType:Le.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(Le.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(Le.EnumStringMemberInconsistentlyInitialized,e,r)}flowEnumMemberInit(){let e=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}case 134:{let s=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,r=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:r,init:s}}flowEnumCheckExplicitTypeMismatch(e,r,s){let{explicitType:i}=r;i!==null&&i!==s&&this.flowEnumErrorInvalidMemberInitializer(e,r)}flowEnumMembers({enumName:e,explicitType:r}){let s=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(Le.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:e}),s.has(f)&&this.raise(Le.EnumDuplicateMemberName,l,{memberName:f,enumName:e}),s.add(f);let h={enumName:e,explicitType:r,memberName:f};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,h,"boolean"),o.init=c.value,i.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,h,"number"),o.init=c.value,i.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,h,"string"),o.init=c.value,i.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,h);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,h);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,h);break;default:i.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:n}}flowEnumStringMembers(e,r,{enumName:s}){if(e.length===0)return r;if(r.length===0)return e;if(r.length>e.length){for(let i of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:s});return r}else{for(let i of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:s});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!it(this.state.type))throw this.raise(Le.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Le.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){let s=r.name,i=r.loc.start,n=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:n});switch(e.hasUnknownMembers=l,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let c=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let f=o.booleanMembers.length,h=o.numberMembers.length,d=o.stringMembers.length,D=o.defaultedMembers.length;if(!f&&!h&&!d&&!D)return c();if(!f&&!h)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!h&&!d&&f>=D){for(let y of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:s,memberName:y.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!f&&!d&&h>=D){for(let y of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:s,memberName:y.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(Le.EnumInconsistentMemberValues,i,{enumName:s}),c()}}}flowParseEnumDeclaration(e){let r=this.parseIdentifier();return e.id=r,e.body=this.flowEnumBody(this.startNode(),r),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let r=this.input.charCodeAt(e+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},sk=/\r\n|[\r\n\u2028\u2029]/,Bu=new RegExp(sk.source,"g");function Vn(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function _y(t,e,r){for(let s=e;s<r;s++)if(Vn(t.charCodeAt(s)))return!0;return!1}var Zp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ec=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function ik(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ks=us`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ii(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function qn(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return qn(t.object)+"."+qn(t.property);throw new Error("Node had unexpected type: "+t.type)}var nk=t=>class extends t{jsxReadToken(){let e="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ks.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}e+=this.input.slice(r,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(ks.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"&rbrace;":"&gt;"});default:Vn(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let r=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=e?`
32
+ `:`\r
33
+ `):s=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(e){let r="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(H.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===e)break;i===38?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos):Vn(i)?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}r+=this.input.slice(s,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let s=this.readInt(r,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let r=0,s=!1;for(;r++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){this.input.slice(e,this.state.pos);let i;++this.state.pos}}return this.state.pos=e,"&"}jsxReadWord(){let e,r=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Xi(e)||e===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:hd(this.state.type)?e.name=Di(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let s=this.startNodeAt(e);return s.namespace=r,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let s=this.startNodeAt(e);s.object=r,s.property=this.jsxParseIdentifier(),r=this.finishNode(s,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(pt.brace),this.next(),e=this.jsxParseExpressionContainer(e,pt.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(ks.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ks.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(pt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,r){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();s.type==="SequenceExpression"&&!s.extra?.parenthesized&&this.raise(ks.UnexpectedSequenceExpression,s.expressions[1]),e.expression=s}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(pt.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(pt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){let r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return e.attributes=r,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e){let r=this.startNodeAt(e),s=[],i=this.jsxParseOpeningElementAt(e),n=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}s.push(this.jsxParseElementAt(e));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(pt.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,pt.j_expr));break}default:this.unexpected()}ii(i)&&!ii(n)&&n!==null?this.raise(ks.MissingClosingTagFragment,n):!ii(i)&&ii(n)?this.raise(ks.MissingClosingTagElement,n,{openingTagName:qn(i.name)}):!ii(i)&&!ii(n)&&qn(n.name)!==qn(i.name)&&this.raise(ks.MissingClosingTagElement,n,{openingTagName:qn(i.name)})}if(ii(i)?(r.openingFragment=i,r.closingFragment=n):(r.openingElement=i,r.closingElement=n),r.children=s,this.match(47))throw this.raise(ks.UnwrappedAdjacentJSXElements,this.state.startLoc);return ii(i)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:r}=this.state;r[r.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let r=this.curContext();if(r===pt.j_expr){this.jsxReadToken();return}if(r===pt.j_oTag||r===pt.j_cTag){if(ls(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&r===pt.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:r,type:s}=this.state;if(s===56&&e===143)r.splice(-2,2,pt.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)r.push(pt.j_oTag);else if(s===144){let i=r[r.length-1];i===pt.j_oTag&&e===56||i===pt.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===pt.j_expr):(this.setContext(pt.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=k3(s)}},ak=class extends md{tsNames=new Map},ok=class extends yd{importsStack=[];createScope(e){return this.importsStack.push(new Set),new ak(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,r){let s=this.importsStack.length;if(this.importsStack[s-1].has(e))return!0;if(!r&&s>1){for(let i=0;i<s-1;i++)if(this.importsStack[i].has(e))return!0}return!1}declareName(e,r,s){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(H.VarRedeclaration,s,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let i=this.currentScope(),n=i.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(i,e),i.tsNames.set(e,n|16);return}super.declareName(e,r,s),r&2&&(r&1||(this.checkRedeclarationInScope(i,e,r,s),this.maybeExportDefined(i,e)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&i.tsNames.set(e,n)}isRedeclaredInScope(e,r,s){let i=e.tsNames.get(r);if((i&2)>0){if(s&256){let n=!!(s&512),o=(i&4)>0;return n!==o}return!0}return s&128&&(i&8)>0?e.names.get(r)&2?!!(s&1):!1:s&2&&(i&1)>0?!0:super.isRedeclaredInScope(e,r,s)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let s=this.scopeStack.length;for(let i=s-1;i>=0;i--){let n=this.scopeStack[i].tsNames.get(r);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},uk=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function tl(t,e){return(t?2:0)|(e?1:0)}var lk=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,s]=e;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let n of Object.keys(s))if(i?.[n]!==s[n])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function f0(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function pk(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function zn(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function Ri(t,e,r){let s=null,i=e.length;for(;s===null&&i>0;)s=e[--i];s===null||s.start>r.start?zn(t,r.comments):f0(s,r.comments)}var ck=class extends lk{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,s=r.length;if(s===0)return;let i=s-1,n=r[i];n.start===e.end&&(n.leadingNode=e,i--);let{start:o}=e;for(;i>=0;i--){let l=r[i],c=l.end;if(c>o)l.containingNode=e,this.finalizeComment(l),r.splice(i,1);else{c===o&&(l.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&f0(e.leadingNode,r),e.trailingNode!==null&&pk(e.trailingNode,r);else{let s=e.containingNode,i=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ri(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":Ri(s,s.arguments,e);break;case"ImportExpression":Ri(s,[s.source,s.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ri(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ri(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ri(s,s.specifiers,e);break;case"TSEnumDeclaration":zn(s,r);break;case"TSEnumBody":Ri(s,s.members,e);break;default:zn(s,r)}else zn(s,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:s}=r;if(s===0)return;let i=r[s-1];i.leadingNode===e&&(i.leadingNode=null)}takeSurroundingComments(e,r,s){let{commentStack:i}=this.state,n=i.length;if(n===0)return;let o=n-1;for(;o>=0;o--){let l=i[o],c=l.end;if(l.start===s)l.leadingNode=e;else if(c===r)l.trailingNode=e;else if(c<r)break}}},hk=class m0{flags=1024;get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:r,startIndex:s,startLine:i,startColumn:n}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=s,this.curLine=i,this.lineStart=-n,this.startLoc=this.endLoc=new yi(i,n,s)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[pt.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new yi(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new m0;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},dk=function(t){return t>=48&&t<=57},Ly={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Nu={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Oy(t,e,r,s,i,n){let o=r,l=s,c=i,f="",h=null,d=r,{length:D}=e;for(;;){if(r>=D){n.unterminated(o,l,c),f+=e.slice(d,r);break}let y=e.charCodeAt(r);if(fk(t,y,e,r)){f+=e.slice(d,r);break}if(y===92){f+=e.slice(d,r);let g=mk(e,r,s,i,t==="template",n);g.ch===null&&!h?h={pos:r,lineStart:s,curLine:i}:f+=g.ch,{pos:r,lineStart:s,curLine:i}=g,d=r}else y===8232||y===8233?(++r,++i,s=r):y===10||y===13?t==="template"?(f+=e.slice(d,r)+`
34
+ `,++r,y===13&&e.charCodeAt(r)===10&&++r,++i,d=s=r):n.unterminated(o,l,c):++r}return{pos:r,str:f,firstInvalidLoc:h,lineStart:s,curLine:i}}function fk(t,e,r,s){return t==="template"?e===96||e===36&&r.charCodeAt(s+1)===123:e===(t==="double"?34:39)}function mk(t,e,r,s,i,n){let o=!i;e++;let l=f=>({pos:e,ch:f,lineStart:r,curLine:s}),c=t.charCodeAt(e++);switch(c){case 110:return l(`
35
+ `);case 114:return l("\r");case 120:{let f;return{code:f,pos:e}=Jc(t,e,r,s,2,!1,o,n),l(f===null?null:String.fromCharCode(f))}case 117:{let f;return{code:f,pos:e}=D0(t,e,r,s,o,n),l(f===null?null:String.fromCodePoint(f))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++s;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);n.strictNumericEscape(e-1,r,s);default:if(c>=48&&c<=55){let f=e-1,h=/^[0-7]+/.exec(t.slice(f,e+2))[0],d=parseInt(h,8);d>255&&(h=h.slice(0,-1),d=parseInt(h,8)),e+=h.length-1;let D=t.charCodeAt(e);if(h!=="0"||D===56||D===57){if(i)return l(null);n.strictNumericEscape(f,r,s)}return l(String.fromCharCode(d))}return l(String.fromCharCode(c))}}function Jc(t,e,r,s,i,n,o,l){let c=e,f;return{n:f,pos:e}=y0(t,e,r,s,16,i,n,!1,l,!o),f===null&&(o?l.invalidEscapeSequence(c,r,s):e=c-1),{code:f,pos:e}}function y0(t,e,r,s,i,n,o,l,c,f){let h=e,d=i===16?Ly.hex:Ly.decBinOct,D=i===16?Nu.hex:i===10?Nu.dec:i===8?Nu.oct:Nu.bin,y=!1,g=0;for(let x=0,C=n??1/0;x<C;++x){let b=t.charCodeAt(e),E;if(b===95&&l!=="bail"){let v=t.charCodeAt(e-1),F=t.charCodeAt(e+1);if(l){if(Number.isNaN(F)||!D(F)||d.has(v)||d.has(F)){if(f)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,s)}}else{if(f)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,s)}++e;continue}if(b>=97?E=b-97+10:b>=65?E=b-65+10:dk(b)?E=b-48:E=1/0,E>=i){if(E<=9&&f)return{n:null,pos:e};if(E<=9&&c.invalidDigit(e,r,s,i))E=0;else if(o)E=0,y=!0;else break}++e,g=g*i+E}return e===h||n!=null&&e-h!==n||y?{n:null,pos:e}:{n:g,pos:e}}function D0(t,e,r,s,i,n){let o=t.charCodeAt(e),l;if(o===123){if(++e,{code:l,pos:e}=Jc(t,e,r,s,t.indexOf("}",e)-e,!0,i,n),++e,l!==null&&l>1114111)if(i)n.invalidCodePoint(e,r,s);else return{code:null,pos:e}}else({code:l,pos:e}=Jc(t,e,r,s,4,!1,i,n));return{code:l,pos:e}}function Ma(t,e,r){return new yi(r,t-e,t)}var yk=new Set([103,109,115,105,121,117,100,118]),Dk=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new yl(e.startLoc,e.endLoc)}},gk=class extends ck{isLookahead;tokens=[];constructor(e,r){super(),this.state=new hk,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Dk(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Zp.lastIndex=e,Zp.test(this.input)?Zp.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ec.lastIndex=e,ec.test(this.input)?ec.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let s=this.input.charCodeAt(e);(s&64512)===56320&&(r=65536+((r&1023)<<10)+(s&1023))}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,s])=>this.raise(r,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(e,s+2);if(i===-1)throw this.raise(H.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Bu.lastIndex=s+2;Bu.test(this.input)&&Bu.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Bu.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(s+2,i),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(i+e.length),loc:new yl(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(e){let r=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Vn(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+e,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new yl(s,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),r?.push(i));break}case 47:{let i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),r?.push(i));break}default:break e}break;default:if(ik(s))++this.state.pos;else if(s===45&&!this.inModule&&this.optionFlags&8192){let i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(e===0||this.state.lineStart>e)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(s===60&&!this.inModule&&this.optionFlags&8192){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let s=this.state.pos,i={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(s),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(s)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(H.UnexpectedDigitAfterHash,this.state.curPosition());ls(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!Vn(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let s=this.input.slice(r+2,this.state.pos);return this.finishToken(28,s),!0}readToken_mult_modulo(e){let r=e===42?55:54,s=1,i=this.input.charCodeAt(this.state.pos+1);e===42&&i===42&&(s++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(s++,r=e===37?33:30),this.finishOp(r,s)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124&&r===62){this.finishOp(39,2);return}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let s=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+s)===61){this.finishOp(30,s+1);return}this.finishOp(52,s);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ls(e)){this.readWord(e);return}}throw this.raise(H.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let s=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,s)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,s,i,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(H.UnterminatedRegExp,Or(e,1));let f=this.input.charCodeAt(n);if(Vn(f))throw this.raise(H.UnterminatedRegExp,Or(e,1));if(s)s=!1;else{if(f===91)i=!0;else if(f===93&&i)i=!1;else if(f===47&&!i)break;s=f===92}}let o=this.input.slice(r,n);++n;let l="",c=()=>Or(e,n+2-r);for(;n<this.length;){let f=this.codePointAtPos(n),h=String.fromCharCode(f);if(yk.has(f))f===118?l.includes("u")&&this.raise(H.IncompatibleRegExpUVFlags,c()):f===117&&l.includes("v")&&this.raise(H.IncompatibleRegExpUVFlags,c()),l.includes(h)&&this.raise(H.DuplicateRegExpFlags,c());else if(Xi(f)||f===92)this.raise(H.MalformedRegExpFlags,c());else break;++n,l+=h}this.state.pos=n,this.finishToken(138,{pattern:o,flags:l})}readInt(e,r,s=!1,i=!0){let{n,pos:o}=y0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,s,i,this.errorHandlers_readInt,!1);return this.state.pos=o,n}readRadixNumber(e){let r=this.state.pos,s=this.state.curPosition(),i=!1;this.state.pos+=2;let n=this.readInt(e);n==null&&this.raise(H.InvalidDigit,Or(s,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,i=!0;else if(o===109)throw this.raise(H.InvalidDecimal,s);if(ls(this.codePointAtPos(this.state.pos)))throw this.raise(H.NumberIdentifier,this.state.curPosition());if(i){let l=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,l);return}this.finishToken(135,n)}readNumber(e){let r=this.state.pos,s=this.state.curPosition(),i=!1,n=!1,o=!1;!e&&this.readInt(10)===null&&this.raise(H.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let d=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(H.StrictOctalLiteral,s),!this.state.strict){let D=d.indexOf("_");D>0&&this.raise(H.ZeroDigitNumericSeparator,Or(s,D))}o=l&&!/[89]/.test(d)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(H.InvalidOrMissingExponent,s),i=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(H.InvalidBigIntLiteral,s),++this.state.pos,n=!0),ls(this.codePointAtPos(this.state.pos)))throw this.raise(H.NumberIdentifier,this.state.curPosition());let f=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,f);return}let h=o?parseInt(f,8):parseFloat(f);this.finishToken(135,h)}readCodePoint(e){let{code:r,pos:s}=D0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=s,r}readString(e){let{str:r,pos:s,curLine:i,lineStart:n}=Oy(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=n,this.state.curLine=i,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:s,pos:i,curLine:n,lineStart:o}=Oy("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=n,s&&(this.state.firstInvalidTemplateEscapePos=new yi(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),this.input.codePointAt(i)===96?this.finishToken(24,s?null:e+r+"`"):(this.state.pos++,this.finishToken(25,s?null:e+r+"${"))}recordStrictModeErrors(e,r){let s=r.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(e,r):this.state.strictErrors.set(s,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",s=this.state.pos,i=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(Xi(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);let o=this.state.curPosition(),l=this.state.pos===s?ls:Xi;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(H.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(l(c)||this.raise(H.EscapedCharNotAnIdentifier,o),r+=String.fromCodePoint(c)),i=this.state.pos}else break}return r+this.input.slice(i,this.state.pos)}readWord(e){let r=this.readWord1(e),s=nd.get(r);s!==void 0?this.finishToken(s,Di(s)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;hd(e)&&this.state.containsEsc&&this.raise(H.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Di(e)})}raise(e,r,s={}){let i=r instanceof yi?r:r.loc.start,n=e(i,s);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,r,s={}){let i=r instanceof yi?r:r.loc.start,n=i.index,o=this.state.errors;for(let l=o.length-1;l>=0;l--){let c=o[l];if(c.loc.index===n)return o[l]=e(i,s);if(c.loc.index<n)break}return this.raise(e,r,s)}updateContext(e){}unexpected(e,r){throw this.raise(H.UnexpectedToken,e??this.state.startLoc,{expected:r?Di(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(H.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(H.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,s,i)=>{this.raise(e,Ma(r,s,i))}}errorHandlers_readInt={invalidDigit:(e,r,s,i)=>this.optionFlags&2048?(this.raise(H.InvalidDigit,Ma(e,r,s),{radix:i}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(H.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(H.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(H.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(H.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,r,s)=>{this.recordStrictModeErrors(H.StrictNumericEscape,Ma(e,r,s))},unterminated:(e,r,s)=>{throw this.raise(H.UnterminatedString,Ma(e-1,r,s))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(H.StrictNumericEscape),unterminated:(e,r,s)=>{throw this.raise(H.UnterminatedTemplate,Ma(e,r,s))}})},xk=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},Ek=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new xk)}exit(){let e=this.stack.pop(),r=this.current();for(let[s,i]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(s)||r.undefinedPrivateNames.set(s,i):this.parser.raise(H.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(e,r,s){let{privateNames:i,loneAccessors:n,undefinedPrivateNames:o}=this.current(),l=i.has(e);if(r&3){let c=l&&n.get(e);if(c){let f=c&4,h=r&4,d=c&3,D=r&3;l=d===D||f!==h,l||n.delete(e)}else l||n.set(e,r)}l&&this.parser.raise(H.PrivateNameRedeclaration,s,{identifierName:e}),i.add(e),o.delete(e)}usePrivateName(e,r){let s;for(s of this.stack)if(s.privateNames.has(e))return;s?s.undefinedPrivateNames.set(e,r):this.parser.raise(H.InvalidPrivateFieldResolution,r,{identifierName:e})}},Ul=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},g0=class extends Ul{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,r){let s=r.index;this.declarationErrors.set(s,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Ak=class{parser;stack=[new Ul];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let s=r.loc.start,{stack:i}=this,n=i.length-1,o=i[n];for(;!o.isCertainlyParameterDeclaration();){if(o.canBeArrowParameterDeclaration())o.recordDeclarationError(e,s);else return;o=i[--n]}this.parser.raise(e,s)}recordArrowParameterBindingError(e,r){let{stack:s}=this,i=s[s.length-1],n=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,s=r.length-1,i=r[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(H.AwaitBindingIdentifier,e),i=r[--s]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([s,i])=>{this.parser.raise(s,i);let n=e.length-2,o=e[n];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(i.index),o=e[--n]})}};function Ck(){return new Ul(3)}function bk(){return new g0(1)}function Tk(){return new g0(2)}function x0(){return new Ul}var vk=class extends gk{addExtra(e,r,s,i=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),i?n[r]=s:Object.defineProperty(n,r,{enumerable:i,value:s})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let s=this.input.charCodeAt(e+r.length);return!(Xi(s)||(s&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return _y(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return _y(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(H.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let s={node:null};try{let i=e((n=null)=>{throw s.node=n,s});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:i,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let n=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:n};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:n};throw i}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:n,optionalParametersLoc:o,voidPatternLoc:l}=e,c=!!s||!!i||!!o||!!n||!!l;if(!r)return c;s!=null&&this.raise(H.InvalidCoverInitializedName,s),i!=null&&this.raise(H.DuplicateProto,i),n!=null&&this.raise(H.UnexpectedPrivateField,n),o!=null&&this.unexpected(o),l!=null&&this.raise(H.InvalidCoverDiscardElement,l)}isLiteralPropertyName(){return a0(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=e;let n=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);let l=this.prodParam;this.prodParam=new uk;let c=this.classScope;this.classScope=new Ek(this);let f=this.expressionScope;return this.expressionScope=new Ak(this),()=>{this.state.labels=r,this.exportedIdentifiers=s,this.inModule=i,this.scope=n,this.prodParam=l,this.classScope=c,this.expressionScope=f}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let s=r?514:1;this.optionFlags&4&&(s|=512),this.optionFlags&16&&(s|=48),this.scope.enter(s)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},rl=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Kc=class{constructor(e,r,s){this.start=r,this.end=0,this.loc=new yl(s),e?.optionFlags&128&&(this.range=[r,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},$y=Kc.prototype,Fk=class extends vk{startNode(){let e=this.state.startLoc;return new Kc(this,e.index,e)}startNodeAt(e){return new Kc(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,s){return e.type=r,e.end=s.index,e.loc.end=s,this.optionFlags&128&&(e.range[1]=s.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:s,end:i,loc:n,range:o,name:l}=e,c=Object.create($y);return c.type=r,c.start=s,c.end=i,c.loc=n,c.range=o,c.name=l,e.extra&&(c.extra=e.extra),c}cloneStringLiteral(e){let{type:r,start:s,end:i,loc:n,range:o,extra:l}=e,c=Object.create($y);return c.type=r,c.start=s,c.end=i,c.loc=n,c.range=o,c.extra=l,c.value=e.value,c}},Gc=t=>t.type==="ParenthesizedExpression"?Gc(t.expression):t,wk=class extends Fk{toAssignable(e,r=!1){let s;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(s=Gc(e),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(H.InvalidParenthesizedAssignment,e):s.type!=="CallExpression"&&s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(H.InvalidParenthesizedAssignment,e):this.raise(H.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let i=0,n=e.properties.length,o=n-1;i<n;i++){let l=e.properties[i],c=i===o;this.toAssignableObjectExpressionProp(l,c,r),c&&l.type==="RestElement"&&e.extra?.trailingCommaLoc&&this.raise(H.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:i,value:n}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(n,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(H.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(H.VoidPatternInitializer,e.left),this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(e,r,s){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?H.PatternHasAccessor:H.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let i=e.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,s),r||this.raise(H.RestTrailingComma,e)}else this.toAssignable(e,s)}toAssignableList(e,r,s){let i=e.length-1;for(let n=0;n<=i;n++){let o=e[n];o&&(this.toAssignableListItem(e,n,s),o.type==="RestElement"&&(n<i?this.raise(H.RestTrailingComma,o):r&&this.raise(H.RestTrailingComma,r)))}}toAssignableListItem(e,r,s){let i=e[r];if(i.type==="SpreadElement"){this.castNodeTo(i,"RestElement");let n=i.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,s)}else this.toAssignable(i,s)}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let s=e.properties.length-1;return e.properties.every((i,n)=>i.type!=="ObjectMethod"&&(n===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let s of e)s?.type==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(H.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,r,s){let i=s&1,n=[],o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),i&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){let l=this.parseRestBinding();if(s&2&&(l=this.parseFunctionParamType(l)),n.push(l),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let l=[];if(s&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(H.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)l.push(this.parseDecorator());n.push(this.parseBindingElement(s,l))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(H.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,r,!1,!1,!0,!1)}parseBindingElement(e,r){let s=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(s),r.length&&(s.decorators=r,this.resetStartLocationFromNode(s,r[0])),this.parseMaybeDefault(s.loc.start,s)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let s=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(H.VoidPatternInitializer,r),s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(e,r,s,i){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,s=64,i=!1,n=!1,o=!1,l=!1){let c=e.type;if(this.isObjectMethod(e))return;let f=this.isOptionalMemberExpression(e);if(f||c==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(H.InvalidLhsOptionalChaining,e,{ancestor:r})),s!==64&&this.raise(H.InvalidPropertyBindingPattern,e);return}if(c==="Identifier"){this.checkIdentifier(e,s,n);let{name:C}=e;i&&(i.has(C)?this.raise(H.ParamDupe,e):i.add(C));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(H.VoidPatternCatchClauseParam,e);let h=Gc(e);l||(l=h.type==="CallExpression"&&(h.callee.type==="Import"||h.callee.type==="Super"));let d=this.isValidLVal(c,l,!(o||e.extra?.parenthesized)&&r.type==="AssignmentExpression",s);if(d===!0)return;if(d===!1){let C=s===64?H.InvalidLhs:H.InvalidLhsBinding;this.raise(C,e,{ancestor:r});return}let D,y;typeof d=="string"?(D=d,y=c==="ParenthesizedExpression"):[D,y]=d;let g=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,x=e[D];if(Array.isArray(x))for(let C of x)C&&this.checkLVal(C,g,s,i,n,y,!0);else x&&this.checkLVal(x,g,s,i,n,y,l)}checkIdentifier(e,r,s=!1){this.state.strict&&(s?d0(e.name,this.inModule):h0(e.name))&&(r===64?this.raise(H.StrictEvalArguments,e,{referenceName:e.name}):this.raise(H.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(H.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(H.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?H.RestTrailingComma:H.ElementAfterRest,this.state.startLoc),!0):!1}},tc=/in(?:stanceof)?|as|satisfies/y;function Sk(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function My(t){if(!t)throw new Error("Assert fail")}var Se=us`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function Pk(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Ry(t){return t==="private"||t==="public"||t==="protected"}function kk(t){return t==="in"||t==="out"}function Xc(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&Xc(t.object);case"TSInstantiationExpression":return Xc(t.expression);default:return!1}}var Ik=t=>class extends t{getScopeHandler(){return ok}tsIsIdentifier(){return it(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,r,s){if(!it(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(s&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:r,stopOnStartOfClassStaticBlock:s,errorTemplate:i=Se.InvalidModifierOnTypeMember},n){let o=(c,f,h,d)=>{f===h&&n[d]&&this.raise(Se.InvalidModifiersOrder,c,{orderedModifiers:[h,d]})},l=(c,f,h,d)=>{(n[h]&&f===d||n[d]&&f===h)&&this.raise(Se.IncompatibleModifiers,c,{modifiers:[h,d]})};for(;;){let{startLoc:c}=this.state,f=this.tsParseModifier(e.concat(r??[]),s,n.static);if(!f)break;Ry(f)?n.accessibility?this.raise(Se.DuplicateAccessibilityModifier,c,{modifier:f}):(o(c,f,f,"override"),o(c,f,f,"static"),o(c,f,f,"readonly"),n.accessibility=f):kk(f)?(n[f]&&this.raise(Se.DuplicateModifier,c,{modifier:f}),n[f]=!0,o(c,f,"in","out")):(Object.prototype.hasOwnProperty.call(n,f)?this.raise(Se.DuplicateModifier,c,{modifier:f}):(o(c,f,"static","readonly"),o(c,f,"static","override"),o(c,f,"override","readonly"),o(c,f,"abstract","override"),l(c,f,"declare","override"),l(c,f,"static","abstract")),n[f]=!0),r?.includes(f)&&this.raise(i,c,{modifier:f})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,r){let s=[];for(;!this.tsIsListTerminator(e);)s.push(r());return s}tsParseDelimitedList(e,r,s){return Sk(this.tsParseDelimitedListWorker(e,r,!0,s))}tsParseDelimitedListWorker(e,r,s,i){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let l=r();if(l==null)return;if(n.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;s&&this.expect(12);return}return i&&(i.value=o),n}tsParseBracketedList(e,r,s,i,n){i||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,r,n);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.tsParseLiteralTypeNode():(this.raise(Se.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=this.tsParseNonConditionalType()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let s=this.state.type;it(s)||s===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=r,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let r;if(e&1&&this.match(78))if(e&2)r=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),r=this.finishNode(s,"ThisExpression")}else r=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let s=this.startNodeAtNode(r);s.left=r,s.right=this.parseIdentifier(!!(e&1)),r=this.finishNode(s,"TSQualifiedName")}return r}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let r=this.startNodeAtNode(e);return r.parameterName=e,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Se.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Se.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Se.InvalidModifierOnTypeParameter});tsParseTypeParameter(e){let r=this.startNode();return e(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,s),r.params.length===0&&this.raise(Se.EmptyTypeParameters,r),s.value!==-1&&this.addExtra(r,"trailingComma",s.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(e,r){let s=e===19,i="params",n="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[i]=this.tsParseBindingListForSignature(),s?r[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(r[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let r of e){let{type:s}=r;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(Se.UnsupportedSignatureParameterKind,r,{type:s})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),it(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),e.parameters=[r];let s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,r){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){r&&this.raise(Se.ReadonlyForMethodSignature,e);let s=e;s.kind&&this.match(47)&&this.raise(Se.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let i="params",n="returnType";if(s.kind==="get")s[i].length>0&&(this.raise(H.BadGetterArity,this.state.curPosition()),this.isThisParam(s[i][0])&&this.raise(Se.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[i].length!==1)this.raise(H.BadSetterArity,this.state.curPosition());else{let o=s[i][0];this.isThisParam(o)&&this.raise(Se.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(Se.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(Se.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[n]&&this.raise(Se.SetAccessorCannotHaveReturnType,s[n])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=e;r&&(s.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(s.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return e.elementTypes.forEach(s=>{let{type:i}=s;r&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&s.optional)&&this.raise(Se.OptionalTypeBeforeRequired,s),r||(r=i==="TSNamedTupleMember"&&s.optional||i==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e=this.state.startLoc,r=this.eat(21),{startLoc:s}=this.state,i,n,o,l,c=Jr(this.state.type)?this.lookaheadCharCode():null;if(c===58)i=!0,o=!1,n=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(c===63){o=!0;let f=this.state.value,h=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,n=this.createIdentifier(this.startNodeAt(s),f),this.expect(17),this.expect(14),l=this.tsParseType()):(i=!1,l=h,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),i=this.eat(14);if(i){let f;n?(f=this.startNodeAt(s),f.optional=o,f.label=n,f.elementType=l,this.eat(17)&&(f.optional=!0,this.raise(Se.TupleOptionalAfterType,this.state.lastTokStartLoc))):(f=this.startNodeAt(s),f.optional=o,this.raise(Se.InvalidTupleMemberLabel,l),f.label=l,f.elementType=this.tsParseType()),l=this.finishNode(f,"TSNamedTupleMember")}else if(o){let f=this.startNodeAt(s);f.typeAnnotation=l,l=this.finishNode(f,"TSOptionalType")}if(r){let f=this.startNodeAt(e);f.typeAnnotation=l,l=this.finishNode(f,"TSRestType")}return l}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,r){let s=this.startNode();return e==="TSConstructorType"&&(s.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{let e=this.state.startLoc,r=this.parseTemplateElement(!1),s=[r];if(r.tail){let i=this.startNodeAt(e),n=this.startNodeAt(e);return n.expressions=[],n.quasis=s,i.literal=this.finishNode(n,"TemplateLiteral"),this.finishNode(i,"TSLiteralType")}else{let i=[];for(;!r.tail;)i.push(this.tsParseType()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(!1));let n=this.startNodeAt(e);return n.types=i,n.quasis=s,this.finishNode(n,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let e=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(it(e)||e===88||e===84){let r=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":Pk(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(e);s.elementType=r,this.expect(3),r=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(e);s.objectType=r,s.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(s,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let e=this.startNode(),r=this.state.value;return this.next(),e.operator=r,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Se.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return O3(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,r,s){let i=this.startNode(),n=this.eat(s),o=[];do o.push(r());while(this.eat(s));return o.length===1&&!n?o[0]:(i.types=o,this.finishNode(i,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(it(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,r=e.length;try{return this.parseObjectLike(8,!0),e.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,r=e.length;try{return super.parseBindingList(3,93,1),e.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let r=this.startNode();this.expect(e);let s=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),r.typeAnnotation=l,this.finishNode(r,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return i?(s.parameterName=this.parseIdentifier(),s.asserts=i,s.typeAnnotation=null,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=n,s.typeAnnotation=o,s.asserts=i,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!it(this.state.type)&&!this.match(78)?!1:(e&&this.raise(H.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,r=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){My(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let r=this.startNodeAtNode(e);return r.checkType=e,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Se.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let r=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let i=super.parseExprSubscripts();Xc(i)||this.raise(Se.InvalidHeritageClauseType,i.loc.start,{token:e});let n=e==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(i.type==="TSInstantiationExpression")return i.type=n,i;let o=this.startNodeAtNode(i);return o.expression=i,(this.match(47)||this.match(51))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,n)}});return s.length||this.raise(Se.EmptyHeritageClauseType,r,{token:e}),s}tsParseInterfaceDeclaration(e,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(e.declare=!0),it(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Se.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==pt.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}tsInType(e){let r=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,r={}){return r.const&&(e.const=!0),r.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,r=!1){return e.id=this.tsParseEntityName(1),e.id.type==="Identifier"&&this.checkIdentifier(e.id,1024),this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,r,s){e.id=r||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let i=this.tsParseModuleReference();return e.importKind==="type"&&i.type!=="TSExternalModuleReference"&&this.raise(Se.ImportAliasHasImportType,i),e.moduleReference=i,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let r=this.state.clone(),s=e();return this.state=r,s}tsTryParseAndCatch(e){let r=this.tryParse(s=>e()||s());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(e){let r=this.state.clone(),s=e();if(s!==void 0&&s!==!1)return s;this.state=r}tsTryParseDeclare(e){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Se.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Se.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(e,{declare:!0});if(s)return s}default:if(it(r))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,r,s,i){switch(r){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||it(this.state.type)))return this.tsParseAbstractDeclaration(e,i);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(it(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(s)&&it(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(s)&&it(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let i=this.startNodeAt(e);return i.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(i),i.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),i});if(this.state.maybeInArrowParameters=r,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(Se.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===pt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return $3(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,r){let s=r.length?r[0].loc.start:this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);let n=i.accessibility,o=i.override,l=i.readonly;!(e&4)&&(n||l||o)&&this.raise(Se.UnexpectedParameterModifier,s);let c=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(c);let f=this.parseMaybeDefault(c.loc.start,c);if(n||l||o){let h=this.startNodeAt(s);return r.length&&(h.decorators=r),n&&(h.accessibility=n),l&&(h.readonly=l),o&&(h.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(Se.UnsupportedParameterPropertyKind,h),h.parameter=f,this.finishNode(h,"TSParameterProperty")}return r.length&&(c.decorators=r),f}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let r of e.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(Se.PatternIsOptional,r)}setArrowFunctionParameters(e,r,s){super.setArrowFunctionParameters(e,r,s),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,r,s=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let i=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,i):i==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Se.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,i,s):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,r,s))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(Se.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(e,r){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,r,s){let i=super.parseArrayLike(e,r,s);return i.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,r,s,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(r);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return i.stop=!0,e;i.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(e)){let d=this.tsTryParseGenericAsyncArrowFunction(r);if(d)return i.stop=!0,d}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Hc(this.state.type)){let d=super.parseTaggedTemplateExpression(e,r,i);return d.typeArguments=c,d}if(!s&&this.eat(10)){let d=this.startNodeAt(r);return d.callee=e,d.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeArguments=c,i.optionalChainMember&&(d.optional=n),this.finishCallExpression(d,i.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&so(f)&&!this.hasPrecedingLineBreak())return;let h=this.startNodeAt(r);return h.expression=e,h.typeArguments=c,this.finishNode(h,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Se.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(e,i))),l}return super.parseSubscript(e,r,s,i)}parseNewCallee(e){super.parseNewCallee(e);let{callee:r}=e;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(e.typeArguments=r.typeArguments,e.callee=r.expression)}parseExprOp(e,r,s){let i;if(el(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let n=this.startNodeAt(r);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(H.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,r,s)}return super.parseExprOp(e,r,s)}checkReservedWord(e,r,s,i){this.state.isAmbientContext||super.checkReservedWord(e,r,s,i)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Se.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return e?r===123||r===42:r!==61}return!e&&this.isContextual(87)}applyImportPhase(e,r,s,i){super.applyImportPhase(e,r,s,i),r?e.exportKind=s==="type"?"type":"value":e.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let r;if(it(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,s);r=super.parseImportSpecifiersAndAfter(e,s)}else r=super.parseImport(e);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Se.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(e,r){if(this.match(83)){let s=this.startNode();this.next();let i=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(s,!1):s.importKind="value";let n=this.tsParseImportEqualsDeclaration(s,i,!0);return e.attributes=[],e.declaration=n,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}else if(this.eat(29)){let s=e;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=e;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(e,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,r,s=!1){let{isAmbientContext:i}=this.state,n=super.parseVarStatement(e,r,s||i);if(!i)return n;if(!e.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(Se.UsingDeclarationInAmbientContext,e,r),n;for(let{id:o,init:l}of n.declarations)l&&(r==="var"||r==="let"||o.typeAnnotation?this.raise(Se.InitializerNotAllowedInAmbientContext,l):Nk(l,this.hasPlugin("estree"))||this.raise(Se.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return n}parseStatementContent(e,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,i=this.startNode();this.next();let n=s===125?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,r);return n?(s===125&&(n.declare=!0),n):(i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(e,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,r){return r.some(s=>Ry(s)?e.accessibility===s:!!e[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,r,s){let i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Se.InvalidModifierOnTypeParameterPositions},r);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,i)&&this.raise(Se.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,r)):this.parseClassMemberWithIsStatic(e,r,s,!!r.static)};r.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,r,s,i){let n=this.tsTryParseIndexSignature(r);if(n){e.body.push(n),r.abstract&&this.raise(Se.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(Se.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(Se.IndexSignatureHasDeclare,r),r.override&&this.raise(Se.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(Se.NonAbstractClassHasAbstractMethod,r),r.override&&(s.hadSuperClass||this.raise(Se.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(e,r,s,i)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Se.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Se.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,r,s){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let i=this.lookaheadCharCode();if(i===44||i===61||i===58||i===41)return this.setOptionalParametersError(s),e}return super.parseConditional(e,r,s)}parseParenItem(e,r){let s=super.parseParenItem(e,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let r=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Se.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let i=it(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return i?((i.type==="TSInterfaceDeclaration"||i.type==="TSTypeAliasDeclaration"||s)&&(e.exportKind="type"),s&&i.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(i,r),i.declare=!0),i):null}parseClassId(e,r,s,i){if((!r||s)&&this.isContextual(113))return;super.parseClassId(e,r,s,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(e.typeAnnotation=r)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Se.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:r}=e;this.raise(Se.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!e.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Se.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Se.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Se.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,r,s,i,n,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&n&&this.raise(Se.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:f}=r;c&&(f==="get"||f==="set")&&this.raise(Se.DeclareAccessor,r,{kind:f}),l&&(r.typeParameters=l),super.pushClassMethod(e,r,s,i,n,o)}pushClassPrivateMethod(e,r,s,i){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(r.typeParameters=n),super.pushClassPrivateMethod(e,r,s,i)}declareClassPrivateMethodInScope(e,r){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&e.value.body==null||super.declareClassPrivateMethodInScope(e,r))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,r,s,i,n,o,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(e.typeParameters=c),super.parseObjPropValue(e,r,s,i,n,o,l)}parseFunctionParams(e,r){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(e.typeParameters=s),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(e.id.typeAnnotation=s,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,r)}parseMaybeAssign(e,r){let s,i,n;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!i.error)return i.node;let{context:c}=this.state,f=c[c.length-1];(f===pt.j_oTag||f===pt.j_expr)&&c.pop()}if(!i?.error&&!this.match(47))return super.parseMaybeAssign(e,r);(!s||s===this.state)&&(s=this.state.clone());let o,l=this.tryParse(c=>{o=this.tsParseTypeParameters(this.tsParseConstModifier);let f=super.parseMaybeAssign(e,r);if((f.type!=="ArrowFunctionExpression"||f.extra?.parenthesized)&&c(),o?.params.length!==0&&this.resetStartLocationFromNode(f,o),f.typeParameters=o,this.hasPlugin("jsx")&&f.typeParameters.params.length===1&&!f.typeParameters.extra?.trailingComma){let h=f.typeParameters.params[0];h.constraint||this.raise(Se.SingleTypeParameterWithoutTrailingComma,Or(h.loc.end,1),{typeParameterName:h.name.name})}return f},s);if(!l.error&&!l.aborted)return o&&this.reportReservedArrowTypeParam(o),l.node;if(!i&&(My(!this.hasPlugin("jsx")),n=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!n.error))return n.node;if(i?.node)return this.state=i.failState,i.node;if(l.node)return this.state=l.failState,o&&this.reportReservedArrowTypeParam(o),l.node;if(n?.node)return this.state=n.failState,n.node;throw i?.error||l.error||n?.error}reportReservedArrowTypeParam(e){e.params.length===1&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Se.ReservedArrowTypeParam,e)}parseMaybeUnary(e,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,r)}parseArrow(e){if(this.match(14)){let r=this.tryParse(s=>{let i=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),i});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),e.returnType=r.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,r){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(e,r)}}toAssignable(e,r=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(Se.UnexpectedTypeCastInParameter,e):this.raise(Se.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,r);break;case"AssignmentExpression":!r&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,r)}}toAssignableParenthesizedExpression(e,r){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,r);break;default:super.toAssignable(e,r)}}checkToRestConversion(e,r){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,r)}}isValidLVal(e,r,s,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!s)&&["expression",!0];default:return super.isValidLVal(e,r,s,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,r){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e,r);return i.typeArguments=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,r)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,r){let s=super.parseMaybeDefault(e,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(Se.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,r,s){let i=e[r];i.type==="TSTypeCastExpression"&&(e[r]=this.typeCastToParameter(i)),super.toAssignableListItem(e,r,s)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(e.typeArguments=r)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let r=super.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e)[0];return s&&this.isThisParam(s)?r+1:r}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:r,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=r,this.state.strict=s}}parseClass(e,r,s){let i=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,r,s)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(e,r){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Se.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,r,s,i,n,o,l){let c=super.parseMethod(e,r,s,i,n,o,l);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:f}=c;this.raise(Se.AbstractMethodHasImplementation,c,{methodName:f.type==="Identifier"&&!c.computed?f.name:`[${this.input.slice(this.offsetToSourcePos(f.start),this.offsetToSourcePos(f.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,r,s,i){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!1,s),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,r,s,i))}parseImportSpecifier(e,r,s,i,n){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!0,s),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,r,s,i,s?4098:4096))}parseTypeOnlyImportExportSpecifier(e,r,s){let i=r?"imported":"local",n=r?"local":"exported",o=e[i],l,c=!1,f=!0,h=o.loc.start;if(this.isContextual(93)){let D=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();Jr(this.state.type)?(c=!0,o=D,l=r?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=y,f=!1)}else Jr(this.state.type)?(f=!1,l=r?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=D)}else Jr(this.state.type)&&(c=!0,r?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&s&&this.raise(r?Se.TypeModifierIsUsedInTypeImports:Se.TypeModifierIsUsedInTypeExports,h),e[i]=o,e[n]=l;let d=r?"importKind":"exportKind";e[d]=c?"type":"value",f&&this.eatContextual(93)&&(e[n]=r?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=this.cloneIdentifier(e[i])),r&&this.checkIdentifier(e[n],c?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":e.directive??(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??(e.decorators=[]),e.optional??(e.optional=!1),e.typeAnnotation??(e.typeAnnotation=void 0);return;case"TSParameterProperty":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??(e.declare=!1),e.returnType??(e.returnType=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"Property":e.optional??(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":e.optional??(e.optional=!1);case"TSIndexSignature":e.accessibility??(e.accessibility=void 0),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??(e.declare=!1),e.definite??(e.definite=!1),e.readonly??(e.readonly=!1),e.typeAnnotation??(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.optional??(e.optional=!1);return;case"ClassExpression":e.id??(e.id=null);case"ClassDeclaration":e.abstract??(e.abstract=!1),e.declare??(e.declare=!1),e.decorators??(e.decorators=[]),e.implements??(e.implements=[]),e.superTypeArguments??(e.superTypeArguments=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??(e.declare=!1);return;case"VariableDeclarator":e.definite??(e.definite=!1);return;case"TSEnumDeclaration":e.const??(e.const=!1),e.declare??(e.declare=!1);return;case"TSEnumMember":e.computed??(e.computed=!1);return;case"TSImportType":e.qualifier??(e.qualifier=null),e.options??(e.options=null),e.typeArguments??(e.typeArguments=null);return;case"TSInterfaceDeclaration":e.declare??(e.declare=!1),e.extends??(e.extends=[]);return;case"TSMappedType":e.optional??(e.optional=!1),e.readonly??(e.readonly=void 0);return;case"TSModuleDeclaration":e.declare??(e.declare=!1),e.global??(e.global=e.kind==="global");return;case"TSTypeParameter":e.const??(e.const=!1),e.in??(e.in=!1),e.out??(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,r){if(ls(e)){if(tc.lastIndex=r,tc.test(this.input)){let s=this.codePointAtPos(tc.lastIndex);if(!Xi(s)&&s!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)||r===34||r===39}};function Bk(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:A0(t.object)}function Nk(t,e){let{type:r}=t;if(t.extra?.parenthesized)return!1;if(e){if(r==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(E0(t,e)||_k(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||Bk(t))}function E0(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function _k(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:s}=t;if(r==="-"&&E0(s,e))return!0}return!1}function A0(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:A0(t.object)}var jy=us`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Lk=t=>class extends t{parsePlaceholder(e){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,e)}}finishPlaceholder(e,r){let s=e;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=r,s}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,r,s,i){e!==void 0&&super.checkReservedWord(e,r,s,i)}cloneIdentifier(e){let r=super.cloneIdentifier(e);return r.type==="Placeholder"&&(r.expectedNode=e.expectedNode),r}cloneStringLiteral(e){return e.type==="Placeholder"?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,r,s,i){return e==="Placeholder"||super.isValidLVal(e,r,s,i)}toAssignable(e,r){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,r)}chStartsBindingIdentifier(e,r){if(super.chStartsBindingIdentifier(e,r))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(e,r){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,r)}parseExpressionStatement(e,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(e,r);if(this.match(14)){let i=e;return i.label=this.finishPlaceholder(r,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}this.semicolon();let s=e;return s.name=r.name,this.finishPlaceholder(s,"Statement")}parseBlock(e,r,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,r,s)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,r,s){let i=r?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))e.id=o;else{if(s||!r)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,i);throw this.raise(jy.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,s);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e,r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(e,r);let i=e;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=s,i.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(i,r)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Di(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,r){return e.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(e,r)}checkExport(e){let{specifiers:r}=e;r?.length&&(e.specifiers=r.filter(s=>s.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=r}parseImport(e){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let s=this.startNodeAtNode(r);return s.local=r,e.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(jy.UnexpectedSpace,this.state.lastTokEndLoc)}},Ok=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,r=this.startNode();if(this.next(),it(this.state.type)){let s=this.parseIdentifierName(),i=this.createIdentifier(r,s);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},Uy=["fsharp","hack"],qy=["^^","@@","^","%","#"];function $k(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=t.get("decorators").decoratorsBeforeExport;if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=t.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){let e=t.get("pipelineOperator").proposal;if(!Uy.includes(e)){let r=Uy.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(e==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=t.get("pipelineOperator").topicToken;if(!qy.includes(r)){let s=qy.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}}}if(t.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(t.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(t.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(t.has("optionalChainingAssign")&&t.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(t.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var C0={estree:F3,jsx:nk,flow:rk,typescript:Ik,v8intrinsic:Ok,placeholders:Lk},Mk=Object.keys(C0),Rk=class extends wk{checkProto(e,r,s,i){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return s;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(H.RecordNoProto,n),!0):(s&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=n.loc.start):this.raise(H.DuplicateProto,n)),!0):s}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(H.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(H.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,s=this.parseMaybeAssign(e);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,r){let s=this.state.startLoc,i=this.isContextual(108);if(i&&this.prodParam.hasYield){this.next();let c=this.parseYield(s);return r&&(c=r.call(this,c,s)),c}let n;e?n=!1:(e=new rl,n=!0);let{type:o}=this.state;(o===10||it(o))&&(this.state.potentialArrowAt=this.state.start);let l=this.parseMaybeConditional(e);if(r&&(l=r.call(this,l,s)),I3(this.state.type)){let c=this.startNodeAt(s),f=this.state.value;if(c.operator=f,this.match(29)){this.toAssignable(l,!0),c.left=l;let h=s.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=h&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=h&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=h&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=h&&(e.voidPatternLoc=null)}else c.left=l;return this.next(),c.right=this.parseMaybeAssign(),this.checkLVal(l,this.finishNode(c,"AssignmentExpression"),void 0,void 0,void 0,void 0,f==="||="||f==="&&="||f==="??="),c}else n&&this.checkExpressionErrors(e,!0);if(i){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?so(c):so(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(H.YieldNotInGeneratorFunction,s),this.parseYield(s)}return l}parseMaybeConditional(e){let r=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(e);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,r,e)}parseConditional(e,r,s){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,r,-1)}parseExprOp(e,r,s){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(s>=el(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(H.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let i=this.state.type;if(N3(i)&&(this.prodParam.hasIn||!this.match(58))){let n=el(i);if(n>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let o=this.startNodeAt(r);o.left=e,o.operator=this.state.value;let l=i===41||i===42,c=i===40;c&&(n=el(42)),this.next(),o.right=this.parseExprOpRightExpr(i,n);let f=this.finishNode(o,l||c?"LogicalExpression":"BinaryExpression"),h=this.state.type;if(c&&(h===41||h===42)||l&&h===40)throw this.raise(H.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(f,r,s)}}return e}parseExprOpRightExpr(e,r){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,M3(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return x3.has(r.type)&&!r.extra?.parenthesized&&this.raise(H.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(H.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(H.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let c=this.parseAwait(s);return r||this.checkExponentialAfterUnary(c),c}let n=this.match(34),o=this.startNode();if(L3(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let c=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&c){let f=o.argument;f.type==="Identifier"?this.raise(H.StrictDelete,o):this.hasPropertyAsPrivateName(f)&&this.raise(H.DeletePrivateField,o)}if(!n)return r||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}let l=this.parseUpdate(o,n,e);if(i){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?so(c):so(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(H.AwaitNotInAsyncContext,s),this.parseAwait(s)}return l}parseUpdate(e,r,s){if(r){let o=e;return this.checkLVal(o.argument,this.finishNode(o,"UpdateExpression")),e}let i=this.state.startLoc,n=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return n;for(;_3(this.state.type)&&!this.canInsertSemicolon();){let o=this.startNodeAt(i);o.operator=this.state.value,o.prefix=!1,o.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(o,"UpdateExpression"))}return n}parseExprSubscripts(e){let r=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(e);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,r)}parseSubscripts(e,r,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return e}parseSubscript(e,r,s,i){let{type:n}=this.state;if(!s&&n===15)return this.parseBind(e,r,s,i);if(Hc(n))return this.parseTaggedTemplateExpression(e,r,i);let o=!1;if(n===18){if(s&&(this.raise(H.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,i);i.optionalChainMember=o=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,i,o);{let l=this.eat(0);return l||o||this.eat(16)?this.parseMember(e,r,i,l,o):this.stopParseSubscript(e,i)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,s,i,n){let o=this.startNodeAt(r);return o.object=e,o.computed=i,i?(o.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(H.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),s.optionalChainMember?(o.optional=n,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,r,s,i){let n=this.startNodeAt(r);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,s)}parseCoverCallAndAsyncArrowHead(e,r,s,i){let n=this.state.maybeInArrowParameters,o=null;this.state.maybeInArrowParameters=!0,this.next();let l=this.startNodeAt(r);l.callee=e;let{maybeAsyncArrow:c,optionalChainMember:f}=s;c&&(this.expressionScope.enter(Tk()),o=new rl),f&&(l.optional=i),i?l.arguments=this.parseCallExpressionArguments():l.arguments=this.parseCallExpressionArguments(e.type!=="Super",l,o);let h=this.finishCallExpression(l,f);return c&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),h=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),h)):(c&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(h)),this.state.maybeInArrowParameters=n,h}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,s){let i=this.startNodeAt(r);return i.tag=e,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(H.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(H.ImportCallArity,e);else for(let s of e.arguments)s.type==="SpreadElement"&&this.raise(H.ImportCallSpreadArgument,s);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,s){let i=[],n=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(11,!1,s,e))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&zn(e,r.innerComments),r.callee.trailingComments&&zn(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(H.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(H.UnsupportedBind,n)}case 139:return this.raise(H.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw ls(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(it(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,o=this.state.containsEsc,l=this.parseIdentifier();if(!o&&l.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===68)return this.resetPreviousNodeTrailingComments(l),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(l));if(it(c))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)):l;if(c===90)return this.resetPreviousNodeTrailingComments(l),this.parseDo(this.startNodeAtNode(l),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1)):l}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Or(this.state.endLoc,-1),this.parseTopicReference(s);throw this.unexpected()}parseTopicReference(e){let r=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,s,e,i)}finishTopicReference(e,r,s,i){if(this.testTopicReferenceConfiguration(s,r,i))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(H.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(H.PipeTopicUnconfiguredToken,r,{token:Di(i)})}testTopicReferenceConfiguration(e,r,s){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Di(s)}]);case"smart":return s===27;default:throw this.raise(H.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(tl(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(H.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let s=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=s,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(H.SuperNotAllowed,e):this.scope.allowSuper||this.raise(H.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(H.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Or(this.state.startLoc,1)),s=this.state.value;return this.next(),e.id=this.createIdentifier(r,s),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,s){e.meta=r;let i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==s||i)&&this.raise(H.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:s}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(H.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,s){return this.addExtra(s,"rawValue",e),this.addExtra(s,"raw",this.input.slice(this.offsetToSourcePos(s.start),this.state.end)),s.value=e,this.next(),this.finishNode(s,r)}parseLiteral(e,r){let s=this.startNode();return this.parseLiteralAtNode(e,r,s)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){{let r;try{r=BigInt(e)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,s;this.next(),this.expressionScope.enter(bk());let i=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,l=[],c=new rl,f=!0,h,d;for(;!this.match(11);){if(f)f=!1;else if(this.expect(12,c.optionalParametersLoc===null?null:c.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let g=this.state.startLoc;if(h=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),g)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,c,this.parseParenItem))}let D=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=n;let y=this.startNodeAt(r);return e&&this.shouldParseArrow(l)&&(y=this.parseArrow(y))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(y,l,!1),y):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),h&&this.unexpected(h),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(l,!0),l.length>1?(s=this.startNodeAt(o),s.expressions=l,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,D)):s=l[0],this.wrapParenthesis(r,s))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let s=this.startNodeAt(e);return s.expression=r,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let s=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(H.UnexpectedNewTarget,s),s}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),s=this.parseNoCallExpr();e.callee=s,r&&(s.type==="Import"||s.type==="ImportExpression")&&this.raise(H.ImportCallNotNewExpression,s)}parseTemplateElement(e){let{start:r,startLoc:s,end:i,value:n}=this.state,o=r+1,l=this.startNodeAt(Or(s,1));n===null&&(e||this.raise(H.InvalidEscapeSequenceTemplate,Or(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),f=c?-1:-2,h=i+f;l.value={raw:this.input.slice(o,h).replace(/\r\n?/g,`
36
+ `),cooked:n===null?null:n.slice(1,f)},l.tail=c,this.next();let d=this.finishNode(l,"TemplateElement");return this.resetEndLocation(d,Or(this.state.lastTokEndLoc,f)),d}parseTemplate(e){let r=this.startNode(),s=this.parseTemplateElement(e),i=[s],n=[];for(;!s.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(e));return r.expressions=n,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,s,i){s&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=!1,l=!0,c=this.startNode();for(c.properties=[],this.next();!this.match(e);){if(l)l=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(c);break}let h;r?h=this.parseBindingProperty():(h=this.parsePropertyDefinition(i),o=this.checkProto(h,s,o,i)),s&&!this.isObjectProperty(h)&&h.type!=="SpreadElement"&&this.raise(H.InvalidRecordProperty,h),c.properties.push(h)}this.next(),this.state.inFSharpPipelineDirectBody=n;let f="ObjectExpression";return r?f="ObjectPattern":s&&(f="RecordExpression"),this.finishNode(c,f)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(H.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let s=this.startNode(),i=!1,n=!1,o;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(s.decorators=r,r=[]),s.method=!1,e&&(o=this.state.startLoc);let l=this.eat(55);this.parsePropertyNamePrefixOperator(s);let c=this.state.containsEsc;if(this.parsePropertyName(s,e),!l&&!c&&this.maybeAsyncOrAccessorProp(s)){let{key:f}=s,h=f.name;h==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(f),l=this.eat(55),this.parsePropertyName(s)),(h==="get"||h==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(f),s.kind=h,this.match(55)&&(l=!0,this.raise(H.AccessorIsGenerator,this.state.curPosition(),{kind:h}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,o,l,i,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let r=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==r&&this.raise(e.kind==="get"?H.BadGetterArity:H.BadSetterArity,e),e.kind==="set"&&s[s.length-1]?.type==="RestElement"&&this.raise(H.BadSetterRestParameter,e)}parseObjectMethod(e,r,s,i,n){if(n){let o=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(o),o}if(s||r||this.match(10))return i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,s,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,s,i){if(e.shorthand=!1,this.eat(14))return e.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,i),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),s)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=n):this.raise(H.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,r,s,i,n,o,l){let c=this.parseObjectMethod(e,s,i,n,o)||this.parseObjectProperty(e,r,n,l);return c||this.unexpected(),c}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,n;if(Jr(s))n=this.parseIdentifier(!0);else switch(s){case 135:n=this.parseNumericLiteral(i);break;case 134:n=this.parseStringLiteral(i);break;case 136:n=this.parseBigIntLiteral(i);break;case 139:{let o=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=o):this.raise(H.UnexpectedPrivateField,o),n=this.parsePrivateName();break}default:this.unexpected()}e.key=n,s!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,s,i,n,o,l=!1){this.initFunction(e,s),e.generator=r,this.scope.enter(530|(l?576:0)|(n?32:0)),this.prodParam.enter(tl(s,e.generator)),this.parseFunctionParams(e,i);let c=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),c}parseArrayLike(e,r,s){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!r,s,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,s,i){this.scope.enter(518);let n=tl(s,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,s);let o=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,s){this.toAssignableList(r,s,!1),e.params=r}parseFunctionBodyAndFinish(e,r,s=!1){return this.parseFunctionBody(e,!1,s),this.finishNode(e,r)}parseFunctionBody(e,r,s=!1){let i=r&&!this.match(5);if(this.expressionScope.enter(x0()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let n=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,l=>{let c=!this.isSimpleParamList(e.params);l&&c&&this.raise(H.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let f=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!s&&!c,r,f),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,f)}),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,s=e.length;r<s;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,s,i=!0){let n=!r&&new Set,o={type:"FormalParameters"};for(let l of e.params)this.checkLVal(l,o,5,n,i)}parseExprList(e,r,s,i){let n=[],o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(e,r,s))}return n}parseExprListItem(e,r,s,i){let n;if(this.match(12))r||this.raise(H.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let o=this.state.startLoc;n=this.parseParenItem(this.parseSpread(s),o)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(H.UnexpectedArgumentPlaceholder,this.state.startLoc);let o=this.startNode();this.next(),n=this.finishNode(o,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,s,this.parseParenItem);return n}parseIdentifier(e){let r=this.startNode(),s=this.parseIdentifierName(e);return this.createIdentifier(r,s)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}createIdentifierAt(e,r,s){return e.name=r,e.loc.identifierName=r,this.finishNodeAt(e,"Identifier",s)}parseIdentifierName(e){let r,{startLoc:s,type:i}=this.state;Jr(i)?r=this.state.value:this.unexpected();let n=P3(i);return e?n&&this.replaceToken(132):this.checkReservedWord(r,s,n,!1),this.next(),r}checkReservedWord(e,r,s,i){if(!(e.length>10||!K3(e))){if(s&&H3(e)){this.raise(H.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?i?d0:c0:p0)(e,this.inModule)){this.raise(H.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(H.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(H.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(H.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(H.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(H.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(H.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Hc(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(H.YieldInParameter,r);let s=!1,i=null;if(!this.hasPrecedingLineBreak())switch(s=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!s)break;default:i=this.parseMaybeAssign()}return r.delegate=s,r.argument=i,this.finishNode(r,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(H.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(H.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let s=this.startNodeAt(r);return s.callee=e,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),s.expression=e,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(H.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(H.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{s()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,s){if(r!=null&&this.match(88)){let i=this.lookaheadCharCode();if(i===44||i===(e===3?93:e===8?125:41)||i===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,s)}parsePropertyNamePrefixOperator(e){}},rc={kind:1},jk={kind:2},Uk=/[\uD800-\uDFFF]/u,sc=/in(?:stanceof)?/y;function qk(t,e,r){for(let s=0;s<t.length;s++){let i=t[s],{type:n}=i;typeof n=="number"&&(i.type=o0(n))}return t}var Vk=class extends Rk{parseTopLevel(e,r){return e.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=qk(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,r,s){if(e.sourceType=s,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,o]of Array.from(this.scope.undefinedExports))this.raise(H.ModuleExportUndefined,o,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===140?i=this.finishNode(e,"Program"):i=this.finishNodeAt(e,"Program",Or(this.state.startLoc,-1)),i}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),s=this.castNodeTo(e.expression,"DirectiveLiteral"),i=s.value,n=this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end)),o=s.value=n.slice(1,-1);return this.addExtra(s,"raw",n),this.addExtra(s,"rawValue",o),this.addExtra(s,"expressionValue",i),r.value=s,delete e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let s=this.lookaheadCharCodeSince(e+2);if(s!==61&&s!==58&&s!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(ls(e)){if(sc.lastIndex=r,sc.test(this.input)){let s=this.codePointAtPos(sc.lastIndex);if(!Xi(s)&&s!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let s=this.state.type,i=this.startNode(),n=!!(e&2),o=!!(e&4),l=e&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return o||this.raise(this.state.strict?H.StrictFunction:this.options.annexB?H.SloppyFunctionAnnexB:H.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!n&&o);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(H.AwaitUsingNotInAsyncContext,i):this.raise(H.UnexpectedLexicalDeclaration,i):this.raise(H.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(H.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(H.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let h=this.nextTokenStart(),d=this.codePointAtPos(h);if(d!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,h)&&d!==123))break}case 75:n||this.raise(H.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let h=this.state.value;return this.parseVarStatement(i,h)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let h=this.lookaheadCharCode();if(h===40||h===46)break}case 82:{!(this.optionFlags&8)&&!l&&this.raise(H.UnexpectedImportExport,this.state.startLoc),this.next();let h;return s===83?h=this.parseImport(i):h=this.parseExport(i,r),this.assertModuleNodeAllowed(h),h}default:if(this.isAsyncFunction())return n||this.raise(H.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!n&&o)}let c=this.state.value,f=this.parseExpression();return it(s)&&f.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,c,f,e):this.parseExpressionStatement(i,f,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(H.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,s){return e&&(r.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(H.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),s&&this.resetStartLocationFromNode(s,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(H.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(H.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(s,i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==s&&this.raise(H.DecoratorArgumentsOutsideParentheses,n)}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=s,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(s,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let s=this.startNodeAt(r);return s.callee=e,s.arguments=this.parseCallExpressionArguments(),this.toReferencedList(s.arguments),this.finishNode(s,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let s;for(s=0;s<this.state.labels.length;++s){let i=this.state.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind===1)||e.label&&r))break}if(s===this.state.labels.length){let i=r?"BreakStatement":"ContinueStatement";this.raise(H.IllegalBreakContinue,e,{type:i})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(rc),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(rc);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let s=this.isContextual(100);{let c=this.isAwaitUsing(),f=c||this.isForUsing(),h=s&&this.hasFollowingBindingAtom()||f;if(this.match(74)||this.match(75)||h){let d=this.startNode(),D;c?(D="await using",this.recordAwaitIfAllowed()||this.raise(H.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):D=this.state.value,this.next(),this.parseVar(d,!0,D);let y=this.finishNode(d,"VariableDeclaration"),g=this.match(58);return g&&f&&this.raise(H.ForInUsing,y),(g||this.isContextual(102))&&y.declarations.length===1?this.parseForIn(e,y,r):(r!==null&&this.unexpected(r),this.parseFor(e,y))}}let i=this.isContextual(95),n=new rl,o=this.parseExpression(!0,n),l=this.isContextual(102);if(l&&(s&&this.raise(H.ForOfLet,o),r===null&&i&&o.type==="Identifier"&&this.raise(H.ForOfAsync,o)),l||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(o,!0);let c=l?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{type:c}),this.parseForIn(e,o,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(e,o)}parseFunctionStatement(e,r,s){return this.next(),this.parseFunction(e,1|(s?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(H.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(jk),this.scope.enter(256);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);s&&this.finishNode(s,"SwitchCase"),r.push(s=this.startNode()),s.consequent=[],this.next(),n?s.test=this.parseExpression():(i&&this.raise(H.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(H.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(H.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,s=!1){return this.next(),this.parseVar(e,!1,r,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(rc),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(H.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,s,i){for(let o of this.state.labels)o.name===r&&this.raise(H.LabelRedeclaration,s,{labelName:r});let n=B3(this.state.type)?1:this.match(71)?2:null;for(let o=this.state.labels.length-1;o>=0;o--){let l=this.state.labels[o];if(l.statementStart===e.start)l.statementStart=this.sourceToOffsetPos(this.state.start),l.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,s){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,s){let i=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,e,!1,8,s),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,s,i,n){let o=e.body=[],l=e.directives=[];this.parseBlockOrModuleBlockBody(o,r?l:void 0,s,i,n)}parseBlockOrModuleBlockBody(e,r,s,i,n){let o=this.state.strict,l=!1,c=!1;for(;!this.match(i);){let f=s?this.parseModuleItem():this.parseStatementListItem();if(r&&!c){if(this.isValidDirective(f)){let h=this.stmtToDirective(f);r.push(h),!l&&h.value.value==="use strict"&&(l=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}e.push(f)}n?.call(this,l),o||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):e.await=s!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(H.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(H.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,r,s,i=!1){let n=e.declarations=[];for(e.kind=s;;){let o=this.startNode();if(this.parseVarId(o,s),o.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,o.init===null&&!i&&(o.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(H.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(H.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),n.push(this.finishNode(o,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let s=this.parseBindingAtom();r==="using"||r==="await using"?(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(H.UsingDeclarationHasBindingPattern,s.loc.start):s.type==="VoidPattern"&&this.raise(H.UnexpectedVoidPattern,s.loc.start),this.checkLVal(s,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=s}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let s=r&2,i=!!(r&1),n=i&&!(r&4),o=!!(r&8);this.initFunction(e,o),this.match(55)&&(s&&this.raise(H.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(n));let l=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(tl(o,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=l,e}parseFunctionId(e){return e||it(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(Ck()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,r,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,s),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:e},i=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(H.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let o=this.startNode();i.length&&(o.decorators=i,this.resetStartLocationFromNode(o,i[0]),i=[]),this.parseClassMember(n,o,s),o.kind==="constructor"&&o.decorators&&o.decorators.length>0&&this.raise(H.DecoratorConstructor,o)}}),this.state.strict=r,this.next(),i.length)throw this.raise(H.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,r){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=s,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(e,r,s){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,s,i)}parseClassMemberWithIsStatic(e,r,s,i){let n=r,o=r,l=r,c=r,f=r,h=n,d=n;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){h.kind="method";let b=this.match(139);if(this.parseClassElementName(h),this.parsePostMemberNameModifiers(h),b){this.pushClassPrivateMethod(e,o,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(H.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let D=!this.state.containsEsc&&it(this.state.type),y=this.parseClassElementName(r),g=D?y.name:null,x=this.isPrivateName(y),C=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(h.kind="method",x){this.pushClassPrivateMethod(e,o,!1,!1);return}let b=this.isNonstaticConstructor(n),E=!1;b&&(n.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(H.DuplicateConstructor,y),b&&this.hasPlugin("typescript")&&r.override&&this.raise(H.OverrideOnConstructor,y),s.hadConstructor=!0,E=s.hadSuperClass),this.pushClassMethod(e,n,!1,!1,b,E)}else if(this.isClassProperty())x?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,l);else if(g==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(y);let b=this.eat(55);d.optional&&this.unexpected(C),h.kind="method";let E=this.match(139);this.parseClassElementName(h),this.parsePostMemberNameModifiers(d),E?this.pushClassPrivateMethod(e,o,b,!0):(this.isNonstaticConstructor(n)&&this.raise(H.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,b,!0,!1,!1))}else if((g==="get"||g==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(y),h.kind=g;let b=this.match(139);this.parseClassElementName(n),b?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(H.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(g==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(y);let b=this.match(139);this.parseClassElementName(l),this.pushClassAccessorProperty(e,f,b)}else this.isLineTerminator()?x?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,l):this.unexpected()}parseClassElementName(e){let{type:r,value:s}=this.state;if((r===132||r===134)&&e.static&&s==="prototype"&&this.raise(H.StaticPrototype,this.state.startLoc),r===139){s==="constructor"&&this.raise(H.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return e.key=i,i}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=r.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(H.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(H.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let s=this.parseClassPrivateProperty(r);e.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(e,r,s){!s&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(H.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);e.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(e,r,s,i,n,o){e.body.push(this.parseMethod(r,s,i,n,o,"ClassMethod",!0))}pushClassPrivateMethod(e,r,s,i){let n=this.parseMethod(r,s,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let o=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,o)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(x0()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,s,i=8331){if(it(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,i);else if(s||!r)e.id=null;else throw this.raise(H.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let s=this.parseMaybeImportPhase(e,!0),i=this.maybeParseExportDefaultSpecifier(e,s),n=!i||this.eat(12),o=n&&this.eatExportStar(e),l=o&&this.maybeParseExportNamespaceSpecifier(e),c=n&&(!l||this.eat(12)),f=i||o;if(o&&!l){if(i&&this.unexpected(),r)throw this.raise(H.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let h=this.maybeParseExportNamedSpecifiers(e);i&&n&&!o&&!h&&this.unexpected(null,5),l&&c&&this.unexpected(null,98);let d;if(f||h){if(d=!1,r)throw this.raise(H.UnsupportedDecoratorExport,e);this.parseExportFrom(e,f)}else d=this.maybeParseExportDeclaration(e);if(f||h||d){let D=e;if(this.checkExport(D,!0,!1,!!D.source),D.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,D.declaration,D);else if(r)throw this.raise(H.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(D,"ExportNamedDeclaration")}if(this.eat(65)){let D=e,y=this.parseExportDefaultExpression();if(D.declaration=y,y.type==="ClassDeclaration")this.maybeTakeDecorators(r,y,D);else if(r)throw this.raise(H.UnsupportedDecoratorExport,e);return this.checkExport(D,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(D,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let s=r||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,e.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers??(e.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let r=e;r.specifiers||(r.specifiers=[]);let s=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(s)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(H.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(H.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(it(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let i=this.nextTokenStart(),n=this.input.charCodeAt(i);if(n===123||this.chStartsBindingIdentifier(n,i)&&!this.input.startsWith("from",i))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),s=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||it(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(H.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(H.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(H.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,s,i){if(r){if(s){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let n=e.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!n.extra?.parenthesized&&this.raise(H.ExportDefaultFromAsIdentifier,n)}}else if(e.specifiers?.length)for(let n of e.specifiers){let{exported:o}=n,l=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(n,l),!i&&n.local){let{local:c}=n;c.type!=="Identifier"?this.raise(H.ExportBindingIsString,n,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(e.declaration){let n=e.declaration;if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){let{id:o}=n;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(e,o.name)}else if(n.type==="VariableDeclaration")for(let o of n.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(H.DuplicateDefaultExport,e):this.raise(H.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),n=this.match(134),o=this.startNode();o.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(o,n,e,i))}return r}parseExportSpecifier(e,r,s,i){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=Uk.exec(e.value);return r&&this.raise(H.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:s})=>s.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,s=r.length===1?r[0].type:null;e.phase==="source"?s!=="ImportDefaultSpecifier"&&this.raise(H.SourcePhaseImportRequiresDefault,r[0].loc.start):e.phase==="defer"?s!=="ImportNamespaceSpecifier"&&this.raise(H.DeferImportRequiresNamespace,r[0].loc.start):e.module&&(s!=="ImportDefaultSpecifier"&&this.raise(H.ImportReflectionNotBinding,r[0].loc.start),e.assertions?.length>0&&this.raise(H.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let s=r.find(i=>{let n;if(i.type==="ExportSpecifier"?n=i.local:i.type==="ImportSpecifier"&&(n=i.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});s!==void 0&&this.raise(H.ImportJSONBindingNotDefault,s.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,r,s,i){r||(this.hasPlugin("importReflection")&&(e.module=!1),s==="source"?(this.expectPlugin("sourcePhaseImports",i),e.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",i),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let s=this.startNode(),i=this.parseIdentifierName(!0),{type:n}=this.state;return(Jr(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(e,r,i,s.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(s,i))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return it(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),i=s&&this.maybeParseStarImportSpecifier(e);return s&&!i&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,s){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,s))}finishImportSpecifier(e,r,s=8201){return this.checkLVal(e.local,{type:r},s),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(H.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(134)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(H.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(H.ModuleAttributeDifferentFromType,s.key),r.has(s.key.name)&&this.raise(H.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),r.add(s.key.name),this.expect(14),!this.match(134))throw this.raise(H.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(H.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let s=this.startNodeAtNode(r);return s.local=r,e.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(Jr(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(H.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(134),n=this.isContextual(130);s.imported=this.parseModuleExportName();let o=this.parseImportSpecifier(s,i,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,r,s,i,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:o}=e;if(r)throw this.raise(H.ImportBindingIsString,e,{importName:o.value});this.checkReservedWord(o.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(o))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},b0=class extends Vk{constructor(e,r,s){let i=T3(e);super(i,r),this.options=i,this.initializeScopes(),this.plugins=s,this.filename=i.sourceFilename,this.startIndex=i.startIndex;let n=0;i.allowAwaitOutsideFunction&&(n|=1),i.allowReturnOutsideFunction&&(n|=2),i.allowImportExportEverywhere&&(n|=8),i.allowSuperOutsideMethod&&(n|=16),i.allowUndeclaredExports&&(n|=64),i.allowNewTargetOutsideFunction&&(n|=4),i.allowYieldOutsideFunction&&(n|=32),i.ranges&&(n|=128),i.tokens&&(n|=256),i.createImportExpressions&&(n|=512),i.createParenthesizedExpressions&&(n|=1024),i.errorRecovery&&(n|=2048),i.attachComment&&(n|=4096),i.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return yd}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();this.nextToken(),e.errors=null;let s=this.parseTopLevel(e,r);return s.errors=this.state.errors,s.comments.length=this.state.commentsLen,s}};function T0(t,e){if(e?.sourceType==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=io(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",io(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",io(e,t).parse()}catch{}throw r}}else return io(e,t).parse()}function v0(t,e){let r=io(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function zk(t){let e={};for(let r of Object.keys(t))e[r]=o0(t[r]);return e}zk(S3);function io(t,e){let r=b0,s=new Map;if(t?.plugins){for(let i of t.plugins){let n,o;typeof i=="string"?n=i:[n,o]=i,s.has(n)||s.set(n,o||{})}$k(s),r=Hk(s)}return new r(t,e,s)}var Vy=new Map;function Hk(t){let e=[];for(let i of Mk)t.has(i)&&e.push(i);let r=e.join("|"),s=Vy.get(r);if(!s){s=b0;for(let i of e)s=C0[i](s);Vy.set(r,s)}return s}function F0(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:n}=e,o=r;for(;o>=0&&o<n;){let l=e.charAt(o);if(t instanceof RegExp){if(!t.test(l))return o}else if(!t.includes(l))return o;i?o--:o++}return o===-1||o===n?o:!1}}var Wk=F0(" "),Jk=F0(/[^\n\r]/u);function Kk(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var Gk=Kk,zy=t=>t===`
37
+ `||t==="\r"||t==="\u2028"||t==="\u2029";function Xk(t,e,r){let s=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&i===`
38
+ `)return e-2;if(zy(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
39
+ `)return e+2;if(zy(i))return e+1}return e}var Yk=Xk;function Qk(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Jk(t,e):e}var Zk=Qk;function eI(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Wk(t,s),s=Gk(t,s),s=Zk(t,s),s=Yk(t,s);return s}var tI=eI;function rI(t){let e=[];for(let r of t)try{return r()}catch(s){e.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function sI(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
40
+ `);return e===-1?t:t.slice(0,e)}var w0=sI,Dd=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),iI=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},nI=Dd("findLast",function(){if(Array.isArray(this))return iI}),aI=nI;function oI(t){return this[t<0?this.length+t:t]}var uI=Dd("at",function(){if(Array.isArray(this)||typeof this=="string")return oI}),lI=uI;function Ms(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(Ms(r),e):e}function ps(t){return t.range?.[1]??t.end}function pI(t){let e=new Set(t);return r=>e.has(r?.type)}var gd=pI,cI=gd(["Block","CommentBlock","MultiLine"]),xd=cI,hI=gd(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),dI=hI,ic=new WeakMap;function fI(t){return ic.has(t)||ic.set(t,xd(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),ic.get(t)}var mI=fI;function yI(t){if(!xd(t))return!1;let e=`*${t.value}*`.split(`
41
+ `);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var nc=new WeakMap;function DI(t){return nc.has(t)||nc.set(t,yI(t)),nc.get(t)}var Hy=DI;function gI(t){if(t.length<2)return;let e;for(let r=t.length-1;r>=0;r--){let s=t[r];if(e&&ps(s)===Ms(e)&&Hy(s)&&Hy(e)&&(t.splice(r+1,1),s.value+="*//*"+e.value,s.range=[Ms(s),ps(e)]),!dI(s)&&!xd(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}var xI=gI;function EI(t){return t!==null&&typeof t=="object"}var AI=EI,Ra=null;function ho(t){if(Ra!==null&&typeof Ra.property){let e=Ra;return Ra=ho.prototype=null,e}return Ra=ho.prototype=t??Object.create(null),new ho}var CI=10;for(let t=0;t<=CI;t++)ho();function bI(t){return ho(t)}function TI(t,e="type"){bI(t);function r(s){let i=s[e],n=t[i];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return n}return r}var vI=TI,q=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],FI={AccessorProperty:q[0],AnyTypeAnnotation:q[1],ArgumentPlaceholder:q[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:q[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:q[3],AsExpression:q[4],AssignmentExpression:q[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:q[6],BigIntLiteral:q[1],BigIntLiteralTypeAnnotation:q[1],BigIntTypeAnnotation:q[1],BinaryExpression:q[5],BindExpression:["object","callee"],BlockStatement:q[7],BooleanLiteral:q[1],BooleanLiteralTypeAnnotation:q[1],BooleanTypeAnnotation:q[1],BreakStatement:q[8],CallExpression:q[9],CatchClause:["param","body"],ChainExpression:q[3],ClassAccessorProperty:q[0],ClassBody:q[10],ClassDeclaration:q[11],ClassExpression:q[11],ClassImplements:q[12],ClassMethod:q[13],ClassPrivateMethod:q[13],ClassPrivateProperty:q[14],ClassProperty:q[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:q[15],ConditionalExpression:q[16],ConditionalTypeAnnotation:q[17],ContinueStatement:q[8],DebuggerStatement:q[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:q[18],DeclareEnum:q[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:q[20],DeclareFunction:["id","predicate"],DeclareHook:q[21],DeclareInterface:q[22],DeclareModule:q[19],DeclareModuleExports:q[23],DeclareNamespace:q[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:q[24],DeclareVariable:q[21],Decorator:q[3],Directive:q[18],DirectiveLiteral:q[1],DoExpression:q[10],DoWhileStatement:q[25],EmptyStatement:q[1],EmptyTypeAnnotation:q[1],EnumBigIntBody:q[26],EnumBigIntMember:q[27],EnumBooleanBody:q[26],EnumBooleanMember:q[27],EnumDeclaration:q[19],EnumDefaultedMember:q[21],EnumNumberBody:q[26],EnumNumberMember:q[27],EnumStringBody:q[26],EnumStringMember:q[27],EnumSymbolBody:q[26],ExistsTypeAnnotation:q[1],ExperimentalRestProperty:q[6],ExperimentalSpreadProperty:q[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:q[28],ExportNamedDeclaration:q[20],ExportNamespaceSpecifier:q[28],ExportSpecifier:["local","exported"],ExpressionStatement:q[3],File:["program"],ForInStatement:q[29],ForOfStatement:q[29],ForStatement:["init","test","update","body"],FunctionDeclaration:q[30],FunctionExpression:q[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:q[15],GenericTypeAnnotation:q[12],HookDeclaration:q[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:q[16],ImportAttribute:q[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:q[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:q[33],ImportSpecifier:["imported","local"],IndexedAccessType:q[34],InferredPredicate:q[1],InferTypeAnnotation:q[35],InterfaceDeclaration:q[22],InterfaceExtends:q[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:q[1],IntersectionTypeAnnotation:q[36],JsExpressionRoot:q[37],JsonRoot:q[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:q[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:q[1],JSXExpressionContainer:q[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:q[1],JSXMemberExpression:q[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:q[1],JSXSpreadAttribute:q[6],JSXSpreadChild:q[3],JSXText:q[1],KeyofTypeAnnotation:q[6],LabeledStatement:["label","body"],Literal:q[1],LogicalExpression:q[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:q[21],MatchExpression:q[39],MatchExpressionCase:q[40],MatchIdentifierPattern:q[21],MatchLiteralPattern:q[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:q[6],MatchStatement:q[39],MatchStatementCase:q[40],MatchUnaryPattern:q[6],MatchWildcardPattern:q[1],MemberExpression:q[38],MetaProperty:["meta","property"],MethodDefinition:q[42],MixedTypeAnnotation:q[1],ModuleExpression:q[10],NeverTypeAnnotation:q[1],NewExpression:q[9],NGChainedExpression:q[43],NGEmptyExpression:q[1],NGMicrosyntax:q[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:q[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:q[32],NGPipeExpression:["left","right","arguments"],NGRoot:q[37],NullableTypeAnnotation:q[23],NullLiteral:q[1],NullLiteralTypeAnnotation:q[1],NumberLiteralTypeAnnotation:q[1],NumberTypeAnnotation:q[1],NumericLiteral:q[1],ObjectExpression:["properties"],ObjectMethod:q[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:q[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:q[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:q[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:q[9],OptionalIndexedAccessType:q[34],OptionalMemberExpression:q[38],ParenthesizedExpression:q[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:q[1],PipelineTopicExpression:q[3],Placeholder:q[1],PrivateIdentifier:q[1],PrivateName:q[21],Program:q[7],Property:q[32],PropertyDefinition:q[14],QualifiedTypeIdentifier:q[44],QualifiedTypeofIdentifier:q[44],RegExpLiteral:q[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:q[6],SatisfiesExpression:q[4],SequenceExpression:q[43],SpreadElement:q[6],StaticBlock:q[10],StringLiteral:q[1],StringLiteralTypeAnnotation:q[1],StringTypeAnnotation:q[1],Super:q[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:q[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:q[1],TemplateLiteral:["quasis","expressions"],ThisExpression:q[1],ThisTypeAnnotation:q[1],ThrowStatement:q[6],TopicReference:q[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:q[45],TSAbstractKeyword:q[1],TSAbstractMethodDefinition:q[32],TSAbstractPropertyDefinition:q[45],TSAnyKeyword:q[1],TSArrayType:q[2],TSAsExpression:q[4],TSAsyncKeyword:q[1],TSBigIntKeyword:q[1],TSBooleanKeyword:q[1],TSCallSignatureDeclaration:q[46],TSClassImplements:q[47],TSConditionalType:q[17],TSConstructorType:q[46],TSConstructSignatureDeclaration:q[46],TSDeclareFunction:q[31],TSDeclareKeyword:q[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:q[26],TSEnumDeclaration:q[19],TSEnumMember:["id","initializer"],TSExportAssignment:q[3],TSExportKeyword:q[1],TSExternalModuleReference:q[3],TSFunctionType:q[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:q[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:q[35],TSInstantiationExpression:q[47],TSInterfaceBody:q[10],TSInterfaceDeclaration:q[22],TSInterfaceHeritage:q[47],TSIntersectionType:q[36],TSIntrinsicKeyword:q[1],TSJSDocAllType:q[1],TSJSDocNonNullableType:q[23],TSJSDocNullableType:q[23],TSJSDocUnknownType:q[1],TSLiteralType:q[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:q[10],TSModuleDeclaration:q[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:q[21],TSNeverKeyword:q[1],TSNonNullExpression:q[3],TSNullKeyword:q[1],TSNumberKeyword:q[1],TSObjectKeyword:q[1],TSOptionalType:q[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:q[23],TSPrivateKeyword:q[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:q[1],TSPublicKeyword:q[1],TSQualifiedName:q[5],TSReadonlyKeyword:q[1],TSRestType:q[23],TSSatisfiesExpression:q[4],TSStaticKeyword:q[1],TSStringKeyword:q[1],TSSymbolKeyword:q[1],TSTemplateLiteralType:["quasis","types"],TSThisType:q[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:q[23],TSTypeAssertion:q[4],TSTypeLiteral:q[26],TSTypeOperator:q[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:q[48],TSTypeParameterInstantiation:q[48],TSTypePredicate:q[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:q[1],TSUnionType:q[36],TSUnknownKeyword:q[1],TSVoidKeyword:q[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:q[24],TypeAnnotation:q[23],TypeCastExpression:q[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:q[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:q[48],TypeParameterInstantiation:q[48],TypePredicate:q[49],UnaryExpression:q[6],UndefinedTypeAnnotation:q[1],UnionTypeAnnotation:q[36],UnknownTypeAnnotation:q[1],UpdateExpression:q[6],V8IntrinsicIdentifier:q[1],VariableDeclaration:["declarations"],VariableDeclarator:q[27],Variance:q[1],VoidPattern:q[1],VoidTypeAnnotation:q[1],WhileStatement:q[25],WithStatement:["object","body"],YieldExpression:q[6]},wI=vI(FI),SI=wI;function sl(t,e){if(!AI(t))return t;if(Array.isArray(t)){for(let s=0;s<t.length;s++)t[s]=sl(t[s],e);return t}if(e.onEnter){let s=e.onEnter(t)??t;if(s!==t)return sl(s,e);t=s}let r=SI(t);for(let s=0;s<r.length;s++)t[r[s]]=sl(t[r[s]],e);return e.onLeave&&(t=e.onLeave(t)||t),t}var PI=sl;gd(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function kI(t,e){let{parser:r,text:s}=e,{comments:i}=t,n=r==="oxc"&&e.oxcAstType==="ts";xI(i);let o=t.type==="File"?t.program:t;o.interpreter&&(i.unshift(o.interpreter),delete o.interpreter),n&&t.hashbang&&(i.unshift(t.hashbang),delete t.hashbang),t.type==="Program"&&(t.range=[0,s.length]);let l;return t=PI(t,{onEnter(c){switch(c.type){case"ParenthesizedExpression":{let{expression:f}=c,h=Ms(c);if(f.type==="TypeCastExpression")return f.range=[h,ps(c)],f;let d=!1;if(!n){if(!l){l=[];for(let y of i)mI(y)&&l.push(ps(y))}let D=aI(0,l,y=>y<=h);d=D&&s.slice(D,h).trim().length===0}return d?void 0:(f.extra={...f.extra,parenthesized:!0},f)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||n){let f=Ms(c)+1,h=ps(c)-(c.tail?1:2);c.range=[f,h]}break;case"VariableDeclaration":{let f=lI(0,c.declarations,-1);f?.init&&s[ps(f)]!==";"&&(c.range=[Ms(c),ps(f)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":t.extra={...t.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":r==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(S0(c))return Yc(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),t}function S0(t){return t.type==="LogicalExpression"&&t.right.type==="LogicalExpression"&&t.operator===t.right.operator}function Yc(t){return S0(t)?Yc({type:"LogicalExpression",operator:t.operator,left:Yc({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[Ms(t.left),ps(t.right.left)]}),right:t.right.right,range:[Ms(t),ps(t)]}):t}var II=kI;function BI(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var P0=BI,Wy="Unexpected parseExpression() input: ";function NI(t){let{message:e,loc:r,reasonCode:s}=t;if(!r)return t;let{line:i,column:n}=r,o=t;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",o=void 0);let l=` (${i}:${n})`;return e.endsWith(l)&&(e=e.slice(0,-l.length)),e.startsWith(Wy)&&(e=e.slice(Wy.length)),P0(e,{loc:{start:{line:i,column:n+1}},cause:o})}var k0=NI,_I=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},LI=Dd("replaceAll",function(){if(typeof this=="string")return _I}),_u=LI,OI=/\*\/$/,$I=/^\/\*\*?/,MI=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,RI=/(^|\s+)\/\/([^\n\r]*)/g,Jy=/^(\r?\n)+/,jI=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Ky=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,UI=/(\r?\n|^) *\* ?/g,qI=[];function VI(t){let e=t.match(MI);return e?e[0].trimStart():""}function zI(t){t=_u(0,t.replace($I,"").replace(OI,""),UI,"$1");let e="";for(;e!==t;)e=t,t=_u(0,t,jI,`
42
+ $1 $2
43
+ `);t=t.replace(Jy,"").trimEnd();let r=Object.create(null),s=_u(0,t,Ky,"").replace(Jy,"").trimEnd(),i;for(;i=Ky.exec(t);){let n=_u(0,i[2],RI,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let o=r[i[1]];r[i[1]]=[...qI,...Array.isArray(o)?o:[o],n]}else r[i[1]]=n}return{comments:s,pragmas:r}}var HI=["noformat","noprettier"],WI=["format","prettier"];function I0(t){let e=w0(t);e&&(t=t.slice(e.length+1));let r=VI(t),{pragmas:s,comments:i}=zI(r);return{shebang:e,text:t,pragmas:s,comments:i}}function JI(t){let{pragmas:e}=I0(t);return WI.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function KI(t){let{pragmas:e}=I0(t);return HI.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function GI(t){return t=typeof t=="function"?{parse:t}:t,{astFormat:"estree",hasPragma:JI,hasIgnorePragma:KI,locStart:Ms,locEnd:ps,...t}}var Wo=GI,Ed="module",B0="commonjs";function XI(t){if(typeof t=="string"){if(t=t.toLowerCase(),/\.(?:mjs|mts)$/iu.test(t))return Ed;if(/\.(?:cjs|cts)$/iu.test(t))return B0}}function YI(t,e){let{type:r="JsExpressionRoot",rootMarker:s,text:i}=e,{tokens:n,comments:o}=t;return delete t.tokens,delete t.comments,{tokens:n,comments:o,type:r,node:t,range:[0,i.length],rootMarker:s}}var N0=YI,aa=t=>Wo(rB(t)),QI={sourceType:Ed,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},Gy="v8intrinsic",Xy=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],js=(t,e=QI)=>({...e,plugins:[...e.plugins,...t]}),ZI=/@(?:no)?flow\b/u;function eB(t,e){if(e?.endsWith(".js.flow"))return!0;let r=w0(t);r&&(t=t.slice(r.length));let s=tI(t,0);return s!==!1&&(t=t.slice(0,s)),ZI.test(t)}function tB(t,e,r){let s=t(e,r),i=s.errors.find(n=>!sB.has(n.reasonCode));if(i)throw i;return s}function rB({isExpression:t=!1,optionsCombinations:e}){return(r,s={})=>{let{filepath:i}=s;if(typeof i!="string"&&(i=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&eB(r,i))return s.parser="babel-flow",L0.parse(r,s);let n=e,o=s.__babelSourceType??XI(i);o&&o!==Ed&&(n=n.map(h=>({...h,sourceType:o,...o===B0?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let l=/%[A-Z]/u.test(r);r.includes("|>")?n=(l?[...Xy,Gy]:Xy).flatMap(h=>n.map(d=>js([h],d))):l&&(n=n.map(h=>js([Gy],h)));let c=t?v0:T0,f;try{f=rI(n.map(h=>()=>tB(c,r,h)))}catch({errors:[h]}){throw k0(h)}return t&&(f=N0(f,{text:r,rootMarker:s.rootMarker})),II(f,{text:r})}}var sB=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),_0=[js(["jsx"])],Yy=aa({optionsCombinations:_0}),Qy=aa({optionsCombinations:[js(["jsx","typescript"]),js(["typescript"])]}),Zy=aa({isExpression:!0,optionsCombinations:[js(["jsx"])]}),eD=aa({isExpression:!0,optionsCombinations:[js(["typescript"])]}),L0=aa({optionsCombinations:[js(["jsx",["flow",{all:!0}],"flowComments"])]}),iB=aa({optionsCombinations:_0.map(t=>js(["estree"],t))}),O0={};id(O0,{json:()=>oB,"json-stringify":()=>pB,json5:()=>uB,jsonc:()=>lB});function nB(t){return Array.isArray(t)&&t.length>0}var $0=nB,M0={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function aB(t){let e=T0(t,M0),{program:r}=e;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return e}function ql(t,e={}){let{allowComments:r=!0,allowEmpty:s=!1}=e,i;try{i=v0(t,M0)}catch(n){if(s&&n.code==="BABEL_PARSER_SYNTAX_ERROR"&&n.reasonCode==="ParseExpressionEmptyInput")try{i=aB(t)}catch{}if(!i)throw k0(n)}if(!r&&$0(i.comments))throw li(i.comments[0],"Comment");return i=N0(i,{type:"JsonRoot",text:t}),i.node.type==="File"?delete i.node:Nn(i.node),i}function li(t,e){let[r,s]=[t.loc.start,t.loc.end].map(({line:i,column:n})=>({line:i,column:n+1}));return P0(`${e} is not allowed in JSON.`,{loc:{start:r,end:s}})}function Nn(t){switch(t.type){case"ArrayExpression":for(let e of t.elements)e!==null&&Nn(e);return;case"ObjectExpression":for(let e of t.properties)Nn(e);return;case"ObjectProperty":if(t.computed)throw li(t.key,"Computed key");if(t.shorthand)throw li(t.key,"Shorthand property");t.key.type!=="Identifier"&&Nn(t.key),Nn(t.value);return;case"UnaryExpression":{let{operator:e,argument:r}=t;if(e!=="+"&&e!=="-")throw li(t,`Operator '${t.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw li(r,`Operator '${e}' before '${r.type}'`)}case"Identifier":if(t.name!=="Infinity"&&t.name!=="NaN"&&t.name!=="undefined")throw li(t,`Identifier '${t.name}'`);return;case"TemplateLiteral":if($0(t.expressions))throw li(t.expressions[0],"'TemplateLiteral' with expression");for(let e of t.quasis)Nn(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw li(t,`'${t.type}'`)}}var oB=Wo({parse:t=>ql(t),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),uB=Wo(t=>ql(t)),lB=Wo(t=>ql(t,{allowEmpty:!0})),pB=Wo({parse:t=>ql(t,{allowComments:!1}),astFormat:"estree-json"}),R0={...i0,...O0};const ac=Object.freeze(Object.defineProperty({__proto__:null,default:s0,parsers:R0},Symbol.toStringTag,{value:"Module"}));var cB=Object.defineProperty,Ad=(t,e)=>{for(var r in e)cB(t,r,{get:e[r],enumerable:!0})},j0={};Ad(j0,{languages:()=>Xx,options:()=>Kx,printers:()=>Gx});var hB=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],U0={};Ad(U0,{canAttachComment:()=>NN,embed:()=>T4,features:()=>i5,getVisitorKeys:()=>K0,handleComments:()=>f8,hasPrettierIgnore:()=>Kd,insertPragma:()=>M4,isBlockComment:()=>Zr,isGap:()=>y8,massageAstNode:()=>wN,print:()=>PD,printComment:()=>q4,printPrettierIgnored:()=>PD,willPrintOwnComments:()=>x8});var Cd=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),dB=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},fB=Cd("replaceAll",function(){if(typeof this=="string")return dB}),Rt=fB;function mB(t){return this[t<0?this.length+t:t]}var yB=Cd("at",function(){if(Array.isArray(this)||typeof this=="string")return mB}),rt=yB;function DB(t){return t!==null&&typeof t=="object"}var q0=DB;function*gB(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,i=n=>q0(n)&&s(n);for(let n of r(t)){let o=t[n];if(Array.isArray(o))for(let l of o)i(l)&&(yield l);else i(o)&&(yield o)}}function*xB(t,e){let r=[t];for(let s=0;s<r.length;s++){let i=r[s];for(let n of gB(i,e))yield n,r.push(n)}}function EB(t,{getVisitorKeys:e,predicate:r}){for(let s of xB(t,{getVisitorKeys:e}))if(r(s))return!0;return!1}var AB=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function CB(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function bB(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var TB="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",vB=/[^\x20-\x7F]/u,FB=new Set(TB);function wB(t){if(!t)return 0;if(!vB.test(t))return t.length;t=t.replace(AB(),r=>FB.has(r)?" ":" ");let e=0;for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=CB(s)||bB(s)?2:1)}return e}var Xn=wB;function bd(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:n}=e,o=r;for(;o>=0&&o<n;){let l=e.charAt(o);if(t instanceof RegExp){if(!t.test(l))return o}else if(!t.includes(l))return o;i?o--:o++}return o===-1||o===n?o:!1}}var Yn=bd(" "),SB=bd(",; "),PB=bd(/[^\n\r]/u),tD=t=>t===`
44
+ `||t==="\r"||t==="\u2028"||t==="\u2029";function kB(t,e,r){let s=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&i===`
45
+ `)return e-2;if(tD(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
46
+ `)return e+2;if(tD(i))return e+1}return e}var Qn=kB;function IB(t,e,r={}){let s=Yn(t,r.backwards?e-1:e,r),i=Qn(t,s,r);return s!==i}var Dr=IB;function BB(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var Td=BB;function NB(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?PB(t,e):e}var vd=NB;function _B(t,e){let r=null,s=e;for(;s!==r;)r=s,s=SB(t,s),s=Td(t,s),s=Yn(t,s);return s=vd(t,s),s=Qn(t,s),s!==!1&&Dr(t,s)}var Fd=_B;function LB(t){return Array.isArray(t)&&t.length>0}var dt=LB,OB=()=>{},$B=OB,V0=Object.freeze({character:"'",codePoint:39}),z0=Object.freeze({character:'"',codePoint:34}),MB=Object.freeze({preferred:V0,alternate:z0}),RB=Object.freeze({preferred:z0,alternate:V0});function jB(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?MB:RB,{length:i}=t,n=0,o=0;for(let l=0;l<i;l++){let c=t.charCodeAt(l);c===r.codePoint?n++:c===s.codePoint&&o++}return(n>o?s:r).character}var H0=jB,UB=/\\(["'\\])|(["'])/gu;function qB(t,e){let r=e==='"'?"'":'"',s=Rt(0,t,UB,(i,n,o)=>n?n===r?r:i:o===e?"\\"+o:o);return e+s+e}var VB=qB;function zB(t,e){let r=t.slice(1,-1),s=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":H0(r,e.singleQuote);return t.charAt(0)===s?t:VB(r,s)}var Zn=zB,W0=t=>Number.isInteger(t)&&t>=0;function We(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(We(r),e):e}function Ve(t){return t.range?.[1]??t.end}function Vl(t,e){let r=We(t);return W0(r)&&r===We(e)}function HB(t,e){let r=Ve(t);return W0(r)&&r===Ve(e)}function WB(t,e){return Vl(t,e)&&HB(t,e)}var ja=null;function fo(t){if(ja!==null&&typeof ja.property){let e=ja;return ja=fo.prototype=null,e}return ja=fo.prototype=t??Object.create(null),new fo}var JB=10;for(let t=0;t<=JB;t++)fo();function KB(t){return fo(t)}function GB(t,e="type"){KB(t);function r(s){let i=s[e],n=t[i];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return n}return r}var J0=GB,V=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],XB={AccessorProperty:V[0],AnyTypeAnnotation:V[1],ArgumentPlaceholder:V[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:V[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:V[3],AsExpression:V[4],AssignmentExpression:V[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:V[6],BigIntLiteral:V[1],BigIntLiteralTypeAnnotation:V[1],BigIntTypeAnnotation:V[1],BinaryExpression:V[5],BindExpression:["object","callee"],BlockStatement:V[7],BooleanLiteral:V[1],BooleanLiteralTypeAnnotation:V[1],BooleanTypeAnnotation:V[1],BreakStatement:V[8],CallExpression:V[9],CatchClause:["param","body"],ChainExpression:V[3],ClassAccessorProperty:V[0],ClassBody:V[10],ClassDeclaration:V[11],ClassExpression:V[11],ClassImplements:V[12],ClassMethod:V[13],ClassPrivateMethod:V[13],ClassPrivateProperty:V[14],ClassProperty:V[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:V[15],ConditionalExpression:V[16],ConditionalTypeAnnotation:V[17],ContinueStatement:V[8],DebuggerStatement:V[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:V[18],DeclareEnum:V[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:V[20],DeclareFunction:["id","predicate"],DeclareHook:V[21],DeclareInterface:V[22],DeclareModule:V[19],DeclareModuleExports:V[23],DeclareNamespace:V[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:V[24],DeclareVariable:V[21],Decorator:V[3],Directive:V[18],DirectiveLiteral:V[1],DoExpression:V[10],DoWhileStatement:V[25],EmptyStatement:V[1],EmptyTypeAnnotation:V[1],EnumBigIntBody:V[26],EnumBigIntMember:V[27],EnumBooleanBody:V[26],EnumBooleanMember:V[27],EnumDeclaration:V[19],EnumDefaultedMember:V[21],EnumNumberBody:V[26],EnumNumberMember:V[27],EnumStringBody:V[26],EnumStringMember:V[27],EnumSymbolBody:V[26],ExistsTypeAnnotation:V[1],ExperimentalRestProperty:V[6],ExperimentalSpreadProperty:V[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:V[28],ExportNamedDeclaration:V[20],ExportNamespaceSpecifier:V[28],ExportSpecifier:["local","exported"],ExpressionStatement:V[3],File:["program"],ForInStatement:V[29],ForOfStatement:V[29],ForStatement:["init","test","update","body"],FunctionDeclaration:V[30],FunctionExpression:V[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:V[15],GenericTypeAnnotation:V[12],HookDeclaration:V[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:V[16],ImportAttribute:V[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:V[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:V[33],ImportSpecifier:["imported","local"],IndexedAccessType:V[34],InferredPredicate:V[1],InferTypeAnnotation:V[35],InterfaceDeclaration:V[22],InterfaceExtends:V[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:V[1],IntersectionTypeAnnotation:V[36],JsExpressionRoot:V[37],JsonRoot:V[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:V[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:V[1],JSXExpressionContainer:V[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:V[1],JSXMemberExpression:V[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:V[1],JSXSpreadAttribute:V[6],JSXSpreadChild:V[3],JSXText:V[1],KeyofTypeAnnotation:V[6],LabeledStatement:["label","body"],Literal:V[1],LogicalExpression:V[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:V[21],MatchExpression:V[39],MatchExpressionCase:V[40],MatchIdentifierPattern:V[21],MatchLiteralPattern:V[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:V[6],MatchStatement:V[39],MatchStatementCase:V[40],MatchUnaryPattern:V[6],MatchWildcardPattern:V[1],MemberExpression:V[38],MetaProperty:["meta","property"],MethodDefinition:V[42],MixedTypeAnnotation:V[1],ModuleExpression:V[10],NeverTypeAnnotation:V[1],NewExpression:V[9],NGChainedExpression:V[43],NGEmptyExpression:V[1],NGMicrosyntax:V[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:V[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:V[32],NGPipeExpression:["left","right","arguments"],NGRoot:V[37],NullableTypeAnnotation:V[23],NullLiteral:V[1],NullLiteralTypeAnnotation:V[1],NumberLiteralTypeAnnotation:V[1],NumberTypeAnnotation:V[1],NumericLiteral:V[1],ObjectExpression:["properties"],ObjectMethod:V[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:V[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:V[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:V[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:V[9],OptionalIndexedAccessType:V[34],OptionalMemberExpression:V[38],ParenthesizedExpression:V[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:V[1],PipelineTopicExpression:V[3],Placeholder:V[1],PrivateIdentifier:V[1],PrivateName:V[21],Program:V[7],Property:V[32],PropertyDefinition:V[14],QualifiedTypeIdentifier:V[44],QualifiedTypeofIdentifier:V[44],RegExpLiteral:V[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:V[6],SatisfiesExpression:V[4],SequenceExpression:V[43],SpreadElement:V[6],StaticBlock:V[10],StringLiteral:V[1],StringLiteralTypeAnnotation:V[1],StringTypeAnnotation:V[1],Super:V[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:V[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:V[1],TemplateLiteral:["quasis","expressions"],ThisExpression:V[1],ThisTypeAnnotation:V[1],ThrowStatement:V[6],TopicReference:V[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:V[45],TSAbstractKeyword:V[1],TSAbstractMethodDefinition:V[32],TSAbstractPropertyDefinition:V[45],TSAnyKeyword:V[1],TSArrayType:V[2],TSAsExpression:V[4],TSAsyncKeyword:V[1],TSBigIntKeyword:V[1],TSBooleanKeyword:V[1],TSCallSignatureDeclaration:V[46],TSClassImplements:V[47],TSConditionalType:V[17],TSConstructorType:V[46],TSConstructSignatureDeclaration:V[46],TSDeclareFunction:V[31],TSDeclareKeyword:V[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:V[26],TSEnumDeclaration:V[19],TSEnumMember:["id","initializer"],TSExportAssignment:V[3],TSExportKeyword:V[1],TSExternalModuleReference:V[3],TSFunctionType:V[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:V[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:V[35],TSInstantiationExpression:V[47],TSInterfaceBody:V[10],TSInterfaceDeclaration:V[22],TSInterfaceHeritage:V[47],TSIntersectionType:V[36],TSIntrinsicKeyword:V[1],TSJSDocAllType:V[1],TSJSDocNonNullableType:V[23],TSJSDocNullableType:V[23],TSJSDocUnknownType:V[1],TSLiteralType:V[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:V[10],TSModuleDeclaration:V[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:V[21],TSNeverKeyword:V[1],TSNonNullExpression:V[3],TSNullKeyword:V[1],TSNumberKeyword:V[1],TSObjectKeyword:V[1],TSOptionalType:V[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:V[23],TSPrivateKeyword:V[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:V[1],TSPublicKeyword:V[1],TSQualifiedName:V[5],TSReadonlyKeyword:V[1],TSRestType:V[23],TSSatisfiesExpression:V[4],TSStaticKeyword:V[1],TSStringKeyword:V[1],TSSymbolKeyword:V[1],TSTemplateLiteralType:["quasis","types"],TSThisType:V[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:V[23],TSTypeAssertion:V[4],TSTypeLiteral:V[26],TSTypeOperator:V[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:V[48],TSTypeParameterInstantiation:V[48],TSTypePredicate:V[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:V[1],TSUnionType:V[36],TSUnknownKeyword:V[1],TSVoidKeyword:V[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:V[24],TypeAnnotation:V[23],TypeCastExpression:V[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:V[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:V[48],TypeParameterInstantiation:V[48],TypePredicate:V[49],UnaryExpression:V[6],UndefinedTypeAnnotation:V[1],UnionTypeAnnotation:V[36],UnknownTypeAnnotation:V[1],UpdateExpression:V[6],V8IntrinsicIdentifier:V[1],VariableDeclaration:["declarations"],VariableDeclarator:V[27],Variance:V[1],VoidPattern:V[1],VoidTypeAnnotation:V[1],WhileStatement:V[25],WithStatement:["object","body"],YieldExpression:V[6]},YB=J0(XB),K0=YB;function QB(t){let e=new Set(t);return r=>e.has(r?.type)}var $e=QB;function ZB(t){return t.extra?.raw??t.raw}var gr=ZB,eN=$e(["Block","CommentBlock","MultiLine"]),Zr=eN,tN=$e(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),G0=tN,rN=$e(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Jo=rN;function sN(t,e){let r=e.split(".");for(let s=r.length-1;s>=0;s--){let i=r[s];if(s===0)return t.type==="Identifier"&&t.name===i;if(s===1&&t.type==="MetaProperty"&&t.property.type==="Identifier"&&t.property.name===i){t=t.meta;continue}if(t.type==="MemberExpression"&&!t.optional&&!t.computed&&t.property.type==="Identifier"&&t.property.name===i){t=t.object;continue}return!1}}function iN(t,e){return e.some(r=>sN(t,r))}var wd=iN;function nN({type:t}){return t.startsWith("TS")&&t.endsWith("Keyword")}var X0=nN;function aN({node:t,parent:e}){return t?.type!=="EmptyStatement"?!1:e.type==="IfStatement"?e.consequent===t||e.alternate===t:e.type==="DoWhileStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="ForStatement"||e.type==="LabeledStatement"||e.type==="WithStatement"||e.type==="WhileStatement"?e.body===t:!1}var Sd=aN;function Qc(t,e){return e(t)||EB(t,{getVisitorKeys:K0,predicate:e})}function Pd(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||tt(t)||ht(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||Kr(t)||t.type==="TSNonNullExpression"||t.type==="ChainExpression"}function oN(t){return t.expressions?t.expressions[0]:t.left??t.test??t.callee??t.object??t.tag??t.argument??t.expression}function Y0(t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var uN=$e(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Wt=$e(["ArrayExpression"]),Xr=$e(["ObjectExpression"]);function lN(t){return t.type==="LogicalExpression"&&t.operator==="??"}function ys(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function pN(t){return t.type==="BooleanLiteral"||t.type==="Literal"&&typeof t.value=="boolean"}function Q0(t){return t.type==="UnaryExpression"&&(t.operator==="+"||t.operator==="-")&&ys(t.argument)}function Ut(t){return!!(t&&(t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"))}function Z0(t){return t.type==="RegExpLiteral"||t.type==="Literal"&&!!t.regex}var kd=$e(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),cN=$e(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Ai=$e(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Io=$e(["FunctionExpression","ArrowFunctionExpression"]);function hN(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"}function oc(t){return tt(t)&&t.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(t.callee.name)}var jt=$e(["JSXElement","JSXFragment"]);function Ko(t){return t.method&&t.kind==="init"||t.kind==="get"||t.kind==="set"}function e1(t){return(t.type==="ObjectTypeProperty"||t.type==="ObjectTypeInternalSlot")&&!t.static&&!t.method&&t.kind!=="get"&&t.kind!=="set"&&t.value.type==="FunctionTypeAnnotation"}function dN(t){return(t.type==="TypeAnnotation"||t.type==="TSTypeAnnotation")&&t.typeAnnotation.type==="FunctionTypeAnnotation"&&!t.static&&!Vl(t,t.typeAnnotation)}var Us=$e(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function _n(t){return ht(t)||t.type==="BindExpression"&&!!t.object}var fN=$e(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Id(t){return X0(t)||G0(t)||fN(t)||t.type==="GenericTypeAnnotation"&&!t.typeParameters||t.type==="TSTypeReference"&&!t.typeArguments}function mN(t){return t.type==="Identifier"&&(t.name==="beforeEach"||t.name==="beforeAll"||t.name==="afterEach"||t.name==="afterAll")}var yN=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function DN(t){return wd(t,yN)}function zl(t,e){if(t?.type!=="CallExpression"||t.optional)return!1;let r=Ir(t);if(r.length===1){if(oc(t)&&zl(e))return Io(r[0]);if(mN(t.callee))return oc(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Ut(r[0]))&&DN(t.callee))return r[2]&&!ys(r[2])?!1:(r.length===2?Io(r[1]):hN(r[1])&&Yt(r[1]).length<=1)||oc(r[1]);return!1}var t1=t=>e=>(e?.type==="ChainExpression"&&(e=e.expression),t(e)),tt=t1($e(["CallExpression","OptionalCallExpression"])),ht=t1($e(["MemberExpression","OptionalMemberExpression"]));function rD(t,e=5){return r1(t,e)<=e}function r1(t,e){let r=0;for(let s in t){let i=t[s];if(q0(i)&&typeof i.type=="string"&&(r++,r+=r1(i,e-r)),r>e)return r}return r}var gN=.25;function Bd(t,e){let{printWidth:r}=e;if(Ee(t))return!1;let s=r*gN;if(t.type==="ThisExpression"||t.type==="Identifier"&&t.name.length<=s||Q0(t)&&!Ee(t.argument))return!0;let i=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return i?i.length<=s:Ut(t)?Zn(gr(t),e).length<=s:t.type==="TemplateLiteral"?t.expressions.length===0&&t.quasis[0].value.raw.length<=s&&!t.quasis[0].value.raw.includes(`
47
+ `):t.type==="UnaryExpression"?Bd(t.argument,{printWidth:r}):t.type==="CallExpression"&&t.arguments.length===0&&t.callee.type==="Identifier"?t.callee.name.length<=s-2:kd(t)}function Gr(t,e){return jt(e)?Hl(e):Ee(e,Fe.Leading,r=>Dr(t,Ve(r)))}function sD(t){return t.quasis.some(e=>e.value.raw.includes(`
48
+ `))}function s1(t,e){return(t.type==="TemplateLiteral"&&sD(t)||t.type==="TaggedTemplateExpression"&&sD(t.quasi))&&!Dr(e,We(t),{backwards:!0})}function i1(t){if(!Ee(t))return!1;let e=rt(0,Yi(t,Fe.Dangling),-1);return e&&!Zr(e)}function xN(t){if(t.length<=1)return!1;let e=0;for(let r of t)if(Io(r)){if(e+=1,e>1)return!0}else if(tt(r)){for(let s of Ir(r))if(Io(s))return!0}return!1}function n1(t){let{node:e,parent:r,key:s}=t;return s==="callee"&&tt(e)&&tt(r)&&r.arguments.length>0&&e.arguments.length>r.arguments.length}var EN=new Set(["!","-","+","~"]);function Wr(t,e=2){if(e<=0)return!1;if(t.type==="ChainExpression"||t.type==="TSNonNullExpression")return Wr(t.expression,e);let r=s=>Wr(s,e-1);if(Z0(t))return Xn(t.pattern??t.regex.pattern)<=5;if(kd(t)||cN(t)||t.type==="ArgumentPlaceholder")return!0;if(t.type==="TemplateLiteral")return t.quasis.every(s=>!s.value.raw.includes(`
49
+ `))&&t.expressions.every(r);if(Xr(t))return t.properties.every(s=>!s.computed&&(s.shorthand||s.value&&r(s.value)));if(Wt(t))return t.elements.every(s=>s===null||r(s));if(ta(t)){if(t.type==="ImportExpression"||Wr(t.callee,e)){let s=Ir(t);return s.length<=e&&s.every(r)}return!1}return ht(t)?Wr(t.object,e)&&Wr(t.property,e):t.type==="UnaryExpression"&&EN.has(t.operator)||t.type==="UpdateExpression"?Wr(t.argument,e):!1}function As(t,e="es5"){return t.trailingComma==="es5"&&e==="es5"||t.trailingComma==="all"&&(e==="all"||e==="es5")}function tr(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return tr(t.left,e);case"MemberExpression":case"OptionalMemberExpression":return tr(t.object,e);case"TaggedTemplateExpression":return t.tag.type==="FunctionExpression"?!1:tr(t.tag,e);case"CallExpression":case"OptionalCallExpression":return t.callee.type==="FunctionExpression"?!1:tr(t.callee,e);case"ConditionalExpression":return tr(t.test,e);case"UpdateExpression":return!t.prefix&&tr(t.argument,e);case"BindExpression":return t.object&&tr(t.object,e);case"SequenceExpression":return tr(t.expressions[0],e);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return tr(t.expression,e);default:return e(t)}}var iD={"==":!0,"!=":!0,"===":!0,"!==":!0},Lu={"*":!0,"/":!0,"%":!0},Zc={">>":!0,">>>":!0,"<<":!0};function Nd(t,e){return!(Dl(e)!==Dl(t)||t==="**"||iD[t]&&iD[e]||e==="%"&&Lu[t]||t==="%"&&Lu[e]||e!==t&&Lu[e]&&Lu[t]||Zc[t]&&Zc[e])}var AN=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((t,e)=>t.map(r=>[r,e])));function Dl(t){return AN.get(t)}function CN(t){return!!Zc[t]||t==="|"||t==="^"||t==="&"}function bN(t){if(t.rest)return!0;let e=Yt(t);return rt(0,e,-1)?.type==="RestElement"}var uc=new WeakMap;function Yt(t){if(uc.has(t))return uc.get(t);let e=[];return t.this&&e.push(t.this),e.push(...t.params),t.rest&&e.push(t.rest),uc.set(t,e),e}function TN(t,e){let{node:r}=t,s=0,i=()=>e(t,s++);r.this&&t.call(i,"this"),t.each(i,"params"),r.rest&&t.call(i,"rest")}var lc=new WeakMap;function Ir(t){if(lc.has(t))return lc.get(t);if(t.type==="ChainExpression")return Ir(t.expression);let e;return t.type==="ImportExpression"||t.type==="TSImportType"?(e=[t.source],t.options&&e.push(t.options)):t.type==="TSExternalModuleReference"?e=[t.expression]:e=t.arguments,lc.set(t,e),e}function gl(t,e){let{node:r}=t;if(r.type==="ChainExpression")return t.call(()=>gl(t,e),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(t.call(()=>e(t,0),"source"),r.options&&t.call(()=>e(t,1),"options")):r.type==="TSExternalModuleReference"?t.call(()=>e(t,0),"expression"):t.each(e,"arguments")}function nD(t,e){let r=[];if(t.type==="ChainExpression"&&(t=t.expression,r.push("expression")),t.type==="ImportExpression"||t.type==="TSImportType"){if(e===0||e===(t.options?-2:-1))return[...r,"source"];if(t.options&&(e===1||e===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(t.type==="TSExternalModuleReference"){if(e===0||e===-1)return[...r,"expression"]}else if(e<0&&(e=t.arguments.length+e),e>=0&&e<t.arguments.length)return[...r,"arguments",e];throw new RangeError("Invalid argument index")}function ea(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function Hl(t){return t?.prettierIgnore||Ee(t,Fe.PrettierIgnore)}var Fe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},a1=(t,e)=>{if(typeof t=="function"&&(e=t,t=0),t||e)return(r,s,i)=>!(t&Fe.Leading&&!r.leading||t&Fe.Trailing&&!r.trailing||t&Fe.Dangling&&(r.leading||r.trailing)||t&Fe.Block&&!Zr(r)||t&Fe.Line&&!Jo(r)||t&Fe.First&&s!==0||t&Fe.Last&&s!==i.length-1||t&Fe.PrettierIgnore&&!ea(r)||e&&!e(r))};function Ee(t,e,r){if(!dt(t?.comments))return!1;let s=a1(e,r);return s?t.comments.some(s):!0}function Yi(t,e,r){if(!Array.isArray(t?.comments))return[];let s=a1(e,r);return s?t.comments.filter(s):t.comments}var Cs=(t,{originalText:e})=>Fd(e,Ve(t));function ta(t){return tt(t)||t.type==="NewExpression"||t.type==="ImportExpression"}function Si(t){return t&&(t.type==="ObjectProperty"||t.type==="Property"&&!Ko(t))}var Kr=$e(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ds=$e(["TSUnionType","UnionTypeAnnotation"]),Go=$e(["TSIntersectionType","IntersectionTypeAnnotation"]),Ci=$e(["TSConditionalType","ConditionalTypeAnnotation"]),vN=t=>t?.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const",eh=$e(["TSTypeAliasDeclaration","TypeAlias"]);function o1({key:t,parent:e}){return!(t==="types"&&Ds(e)||t==="types"&&Go(e))}var FN=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Pn=t=>{for(let e of t.quasis)delete e.value};function u1(t,e,r){if(t.type==="Program"&&delete e.sourceType,(t.type==="BigIntLiteral"||t.type==="Literal")&&t.bigint&&(e.bigint=t.bigint.toLowerCase()),t.type==="EmptyStatement"&&!Sd({node:t,parent:r})||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if((t.type==="Property"||t.type==="ObjectProperty"||t.type==="MethodDefinition"||t.type==="ClassProperty"||t.type==="ClassMethod"||t.type==="PropertyDefinition"||t.type==="TSDeclareMethod"||t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty"||t.type==="ImportAttribute")&&t.key&&!t.computed){let{key:i}=t;Ut(i)||ys(i)?e.key=String(i.value):i.type==="Identifier"&&(e.key=i.name)}if(t.type==="JSXElement"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:n}of e.children)i==="JSXExpressionContainer"&&n.type==="TemplateLiteral"&&Pn(n);t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&Pn(e.value.expression),t.type==="JSXAttribute"&&t.value?.type==="Literal"&&/["']|&quot;|&apos;/u.test(t.value.value)&&(e.value.value=Rt(0,t.value.value,/["']|&quot;|&apos;/gu,'"'));let s=t.expression||t.callee;if(t.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let i=t.expression.arguments[0].properties;for(let[n,o]of e.expression.arguments[0].properties.entries())switch(i[n].key.name){case"styles":Wt(o.value)&&Pn(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Pn(o.value);break}}t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"||t.tag.name==="css"||t.tag.name==="md"||t.tag.name==="markdown"||t.tag.name==="html")||t.tag.type==="CallExpression")&&Pn(e.quasi),t.type==="TemplateLiteral"&&Pn(e),t.type==="ChainExpression"&&t.expression.type==="TSNonNullExpression"&&(e.type="TSNonNullExpression",e.expression.type="ChainExpression")}u1.ignoredProperties=FN;var wN=u1,SN=$e(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),PN=(t,[e])=>e?.type==="ComponentParameter"&&e.shorthand&&e.name===t&&e.local!==e.name||e?.type==="MatchObjectPatternProperty"&&e.shorthand&&e.key===t&&e.value!==e.key||e?.type==="ObjectProperty"&&e.shorthand&&e.key===t&&e.value!==e.key||e?.type==="Property"&&e.shorthand&&e.key===t&&!Ko(e)&&e.value!==e.key,kN=(t,[e])=>!!(t.type==="FunctionExpression"&&e.type==="MethodDefinition"&&e.value===t&&Yt(t).length===0&&!t.returnType&&!dt(t.typeParameters)&&t.body),aD=(t,[e])=>e?.typeAnnotation===t&&vN(e),IN=(t,[e,...r])=>aD(t,[e])||e?.typeName===t&&aD(e,r);function BN(t,e){return SN(t)||PN(t,e)||kN(t,e)?!1:t.type==="EmptyStatement"?Sd({node:t,parent:e[0]}):!(IN(t,e)||t.type==="TSTypeAnnotation"&&e[0].type==="TSPropertySignature")}var NN=BN;function _N(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function _d(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=_N(t)}function Ft(t,e){e.leading=!0,e.trailing=!1,_d(t,e)}function Sr(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),_d(t,e)}function Dt(t,e){e.leading=!1,e.trailing=!0,_d(t,e)}function LN(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Yn(t,s),s=Td(t,s),s=vd(t,s),s=Qn(t,s);return s}var oa=LN;function ON(t,e){let r=oa(t,e);return r===!1?"":t.charAt(r)}var Yr=ON;function $N(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
50
+ `)return!0;return!1}var Pr=$N,pc=new WeakMap;function MN(t){return pc.has(t)||pc.set(t,Zr(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),pc.get(t)}var l1=MN,Ld=(t,e)=>Jo(t)||!Pr(e,We(t),Ve(t));function RN(t){return[g1,c1,m1,XN,VN,Od,$d,p1,h1,t8,QN,ZN,Rd,D1,r8,d1,y1,Md,zN,l8,x1,jd].some(e=>e(t))}function jN(t){return[qN,m1,c1,D1,Od,$d,p1,h1,y1,YN,e8,Rd,n8,Md,o8,u8,p8,x1,h8,c8,jd].some(e=>e(t))}function UN(t){return[g1,Od,$d,GN,d1,Rd,KN,JN,Md,a8,jd].some(e=>e(t))}function ln(t,e){let r=(t.body||t.properties).find(({type:s})=>s!=="EmptyStatement");r?Ft(r,e):Sr(t,e)}function th(t,e){t.type==="BlockStatement"?ln(t,e):Ft(t,e)}function qN({comment:t,followingNode:e}){return e&&l1(t)?(Ft(e,t),!0):!1}function Od({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){if(r?.type!=="IfStatement"||!s)return!1;if(Yr(i,Ve(t))===")")return Dt(e,t),!0;if(s.type==="BlockStatement"&&s===r.consequent&&We(t)>=Ve(e)&&Ve(t)<=We(s))return Ft(s,t),!0;if(e===r.consequent&&s===r.alternate){let n=oa(i,Ve(r.consequent));if(s.type==="BlockStatement"&&We(t)>=n&&Ve(t)<=We(s))return Ft(s,t),!0;if(We(t)<n||r.alternate.type==="BlockStatement")return e.type==="BlockStatement"||Ld(t,i)&&!Pr(i,We(e),We(t))?(Dt(e,t),!0):(Sr(r,t),!0)}return s.type==="BlockStatement"?(ln(s,t),!0):s.type==="IfStatement"?(th(s.consequent,t),!0):r.consequent===s?(Ft(s,t),!0):!1}function $d({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return r?.type!=="WhileStatement"||!s?!1:Yr(i,Ve(t))===")"?(Dt(e,t),!0):s.type==="BlockStatement"?(ln(s,t),!0):r.body===s?(Ft(s,t),!0):!1}function p1({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!s?!1:r.type==="CatchClause"&&e?(Dt(e,t),!0):s.type==="BlockStatement"?(ln(s,t),!0):s.type==="TryStatement"?(th(s.finalizer,t),!0):s.type==="CatchClause"?(th(s.body,t),!0):!1}function VN({comment:t,enclosingNode:e,followingNode:r}){return ht(e)&&r?.type==="Identifier"?(Ft(e,t),!0):!1}function zN({comment:t,enclosingNode:e,followingNode:r,options:s}){return!s.experimentalTernaries||!(e?.type==="ConditionalExpression"||Ci(e))?!1:r?.type==="ConditionalExpression"||Ci(r)?(Sr(e,t),!0):!1}function c1({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i,options:n}){let o=e&&!Pr(i,Ve(e),We(t));return(!e||!o)&&(r?.type==="ConditionalExpression"||Ci(r))&&s?n.experimentalTernaries&&r.alternate===s&&!(Zr(t)&&!Pr(n.originalText,We(t),Ve(t)))?(Sr(r,t),!0):(Ft(s,t),!0):!1}var HN=$e(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function h1({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){if(HN(r)){if(dt(r.decorators)&&s?.type!=="Decorator")return Dt(rt(0,r.decorators,-1),t),!0;if(r.body&&s===r.body)return ln(r.body,t),!0;if(s){if(r.superClass&&s===r.superClass&&e&&(e===r.id||e===r.typeParameters))return Dt(e,t),!0;for(let i of["implements","extends","mixins"])if(r[i]&&s===r[i][0])return e&&(e===r.id||e===r.typeParameters||e===r.superClass)?Dt(e,t):Sr(r,t,i),!0}}return!1}var WN=$e(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function d1({comment:t,precedingNode:e,enclosingNode:r,text:s}){return r&&e&&Yr(s,Ve(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&e.type==="Identifier"&&r.key===e&&Yr(s,Ve(e))!==":"||e?.type==="Decorator"&&WN(r)&&(Jo(t)||t.placement==="ownLine")?(Dt(e,t),!0):!1}var f1=$e(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function JN({comment:t,precedingNode:e,enclosingNode:r,text:s}){return Yr(s,Ve(t))!=="("?!1:e&&f1(r)?(Dt(e,t),!0):!1}function KN({comment:t,enclosingNode:e,text:r}){if(e?.type!=="ArrowFunctionExpression")return!1;let s=oa(r,Ve(t));return s!==!1&&r.slice(s,s+2)==="=>"?(Sr(e,t),!0):!1}function GN({comment:t,enclosingNode:e,text:r}){return Yr(r,Ve(t))!==")"?!1:e&&(E1(e)&&Yt(e).length===0||ta(e)&&Ir(e).length===0)?(Sr(e,t),!0):(e?.type==="MethodDefinition"||e?.type==="TSAbstractMethodDefinition")&&Yt(e.value).length===0?(Sr(e.value,t),!0):!1}function XN({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return e?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&s?.type!=="ComponentTypeParameter"||(e?.type==="ComponentParameter"||e?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&Yr(i,Ve(t))===")"?(Dt(e,t),!0):!1}function m1({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return e?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&s?.type!=="FunctionTypeParam"||(e?.type==="Identifier"||e?.type==="AssignmentPattern"||e?.type==="ObjectPattern"||e?.type==="ArrayPattern"||e?.type==="RestElement"||e?.type==="TSParameterProperty")&&E1(r)&&Yr(i,Ve(t))===")"?(Dt(e,t),!0):!Zr(t)&&s?.type==="BlockStatement"&&f1(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===s&&oa(i,Ve(t))===We(s)?(ln(s,t),!0):!1}function y1({comment:t,enclosingNode:e}){return e?.type==="LabeledStatement"?(Ft(e,t),!0):!1}function Md({comment:t,enclosingNode:e}){return(e?.type==="ContinueStatement"||e?.type==="BreakStatement")&&!e.label?(Dt(e,t),!0):!1}function YN({comment:t,precedingNode:e,enclosingNode:r}){return tt(r)&&e&&r.callee===e&&r.arguments.length>0?(Ft(r.arguments[0],t),!0):!1}function QN({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return Ds(r)?(ea(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(Dt(e,t),!0):!1):(Ds(s)&&ea(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ZN({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r&&r.type==="MatchOrPattern"?(ea(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(Dt(e,t),!0):!1):(s&&s.type==="MatchOrPattern"&&ea(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function e8({comment:t,enclosingNode:e}){return Si(e)?(Ft(e,t),!0):!1}function Rd({comment:t,enclosingNode:e,ast:r,isLastComment:s}){return r?.body?.length===0?(s?Sr(r,t):Ft(r,t),!0):e?.type==="Program"&&e.body.length===0&&!dt(e.directives)?(s?Sr(e,t):Ft(e,t),!0):!1}function t8({comment:t,enclosingNode:e,followingNode:r}){return(e?.type==="ForInStatement"||e?.type==="ForOfStatement")&&r!==e.body?(Ft(e,t),!0):!1}function D1({comment:t,precedingNode:e,enclosingNode:r,text:s}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Ft(r,t),!0;let i=e?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",n=e?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(i||n)&&Dr(s,Ve(t))?(Dt(e,t),!0):!1}function r8({comment:t,enclosingNode:e}){return e?.type==="AssignmentPattern"?(Ft(e,t),!0):!1}var s8=$e(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),i8=$e(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function n8({comment:t,enclosingNode:e,followingNode:r}){return s8(e)&&r&&(i8(r)||Zr(t))?(Ft(r,t),!0):!1}function a8({comment:t,enclosingNode:e,precedingNode:r,followingNode:s,text:i}){return!s&&(e?.type==="TSMethodSignature"||e?.type==="TSDeclareFunction"||e?.type==="TSAbstractMethodDefinition")&&(!r||r!==e.returnType)&&Yr(i,Ve(t))===";"?(Dt(e,t),!0):!1}function g1({comment:t,enclosingNode:e,followingNode:r}){if(ea(t)&&e?.type==="TSMappedType"&&r===e.key)return e.prettierIgnore=!0,t.unignore=!0,!0}function x1({comment:t,precedingNode:e,enclosingNode:r}){if(r?.type==="TSMappedType"&&!e)return Sr(r,t),!0}function o8({comment:t,enclosingNode:e,followingNode:r}){return!e||e.type!=="SwitchCase"||e.test||!r||r!==e.consequent[0]?!1:(r.type==="BlockStatement"&&Jo(t)?ln(r,t):Sr(e,t),!0)}function u8({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return Ds(e)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!s||Go(r))?(Dt(rt(0,e.types,-1),t),!0):!1}function l8({comment:t,enclosingNode:e,precedingNode:r,followingNode:s}){if((e?.type==="ObjectPattern"||e?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return r?Dt(r,t):Sr(e,t),!0}function p8({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return!s&&r?.type==="UnaryExpression"&&(e?.type==="LogicalExpression"||e?.type==="BinaryExpression")&&Pr(i,We(r.argument),We(e.right))&&Ld(t,i)&&!Pr(i,We(e.right),We(t))?(Dt(e.right,t),!0):!1}function c8({enclosingNode:t,followingNode:e,comment:r}){if(t&&(t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty")&&(Ds(e)||Go(e)))return Ft(e,r),!0}function jd({enclosingNode:t,precedingNode:e,followingNode:r,comment:s,text:i}){if(Kr(t)&&e===t.expression&&!Ld(s,i))return r?Ft(r,s):Dt(t,s),!0}function h8({comment:t,enclosingNode:e,followingNode:r,precedingNode:s}){return e&&r&&s&&e.type==="ArrowFunctionExpression"&&e.returnType===s&&(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation")?(Ft(r,t),!0):!1}var E1=$e(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),d8={endOfLine:jN,ownLine:RN,remaining:UN},f8=d8;function m8(t,{parser:e}){if(e==="flow"||e==="hermes"||e==="babel-flow")return t=Rt(0,t,/[\s(]/gu,""),t===""||t==="/*"||t==="/*::"}var y8=m8,D8=$e(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function g8(t){let{key:e,parent:r}=t;if(e==="types"&&Ds(r)||e==="argument"&&r.type==="JSXSpreadAttribute"||e==="expression"&&r.type==="JSXSpreadChild"||e==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(e==="id"||e==="typeParameters")&&D8(r)||e==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:s}=t;return Hl(s)?!1:Ds(s)?o1(t):!!jt(s)}var x8=g8,pn="string",qs="array",ua="cursor",cn="indent",hn="align",dn="trim",qr="group",Pi="fill",ds="if-break",fn="indent-if-break",mn="line-suffix",ki="line-suffix-boundary",Ar="line",Ys="label",Qs="break-parent",A1=new Set([ua,cn,hn,dn,qr,Pi,ds,fn,mn,ki,Ar,Ys,Qs]);function E8(t){if(typeof t=="string")return pn;if(Array.isArray(t))return qs;if(!t)return;let{type:e}=t;if(A1.has(e))return e}var Ii=E8,A8=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function C8(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
51
+ Expected it to be 'string' or 'object'.`;if(Ii(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=A8([...A1].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
52
+ Expected it to be ${s}.`}var b8=class extends Error{name="InvalidDocError";constructor(e){super(C8(e)),this.doc=e}},Bo=b8,oD={};function T8(t,e,r,s){let i=[t];for(;i.length>0;){let n=i.pop();if(n===oD){r(i.pop());continue}r&&i.push(n,oD);let o=Ii(n);if(!o)throw new Bo(n);if(e?.(n)!==!1)switch(o){case qs:case Pi:{let l=o===qs?n:n.parts;for(let c=l.length,f=c-1;f>=0;--f)i.push(l[f]);break}case ds:i.push(n.flatContents,n.breakContents);break;case qr:if(s&&n.expandedStates)for(let l=n.expandedStates.length,c=l-1;c>=0;--c)i.push(n.expandedStates[c]);else i.push(n.contents);break;case hn:case cn:case fn:case Ys:case mn:i.push(n.contents);break;case pn:case ua:case dn:case ki:case Ar:case Qs:break;default:throw new Bo(n)}}}var Ud=T8;function la(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(n){if(r.has(n))return r.get(n);let o=i(n);return r.set(n,o),o}function i(n){switch(Ii(n)){case qs:return e(n.map(s));case Pi:return e({...n,parts:n.parts.map(s)});case ds:return e({...n,breakContents:s(n.breakContents),flatContents:s(n.flatContents)});case qr:{let{expandedStates:o,contents:l}=n;return o?(o=o.map(s),l=o[0]):l=s(l),e({...n,contents:l,expandedStates:o})}case hn:case cn:case fn:case Ys:case mn:return e({...n,contents:s(n.contents)});case pn:case ua:case dn:case ki:case Ar:case Qs:return e(n);default:throw new Bo(n)}}}function C1(t,e,r){let s=r,i=!1;function n(o){if(i)return!1;let l=e(o);l!==void 0&&(i=!0,s=l)}return Ud(t,n),s}function v8(t){if(t.type===qr&&t.break||t.type===Ar&&t.hard||t.type===Qs)return!0}function sr(t){return C1(t,v8,!1)}function uD(t){if(t.length>0){let e=rt(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function F8(t){let e=new Set,r=[];function s(n){if(n.type===Qs&&uD(r),n.type===qr){if(r.push(n),e.has(n))return!1;e.add(n)}}function i(n){n.type===qr&&r.pop().break&&uD(r)}Ud(t,s,i,!0)}function w8(t){return t.type===Ar&&!t.hard?t.soft?"":" ":t.type===ds?t.flatContents:t}function xl(t){return la(t,w8)}function S8(t){switch(Ii(t)){case Pi:if(t.parts.every(e=>e===""))return"";break;case qr:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===qr&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case hn:case cn:case fn:case mn:if(!t.contents)return"";break;case ds:if(!t.flatContents&&!t.breakContents)return"";break;case qs:{let e=[];for(let r of t){if(!r)continue;let[s,...i]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof rt(0,e,-1)=="string"?e[e.length-1]+=s:e.push(s),e.push(...i)}return e.length===0?"":e.length===1?e[0]:e}case pn:case ua:case dn:case ki:case Ar:case Ys:case Qs:break;default:throw new Bo(t)}return t}function qd(t){return la(t,e=>S8(e))}function en(t,e=F1){return la(t,r=>typeof r=="string"?Ye(e,r.split(`
53
+ `)):r)}function P8(t){if(t.type===Ar)return!0}function k8(t){return C1(t,P8,!1)}function rh(t,e){return t.type===Ys?{...t,contents:e(t.contents)}:e(t)}function I8(t){let e=!0;return Ud(t,r=>{switch(Ii(r)){case pn:if(r==="")break;case dn:case ki:case Ar:case Qs:return e=!1,!1}}),e}var B8=$B;function pe(t){return{type:cn,contents:t}}function Qr(t,e){return{type:hn,contents:e,n:t}}function N8(t){return Qr(Number.NEGATIVE_INFINITY,t)}function b1(t){return Qr(-1,t)}function _8(t,e,r){let s=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)s=pe(s);s=Qr(e%r,s),s=Qr(Number.NEGATIVE_INFINITY,s)}return s}var Vs={type:Qs},Ou={type:ua};function T1(t){return{type:Pi,parts:t}}function ee(t,e={}){return B8(e.expandedStates),{type:qr,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Gi(t,e){return ee(t[0],{...e,expandedStates:t})}function Oe(t,e="",r={}){return{type:ds,breakContents:t,flatContents:e,groupId:r.groupId}}function No(t,e){return{type:fn,contents:t,groupId:e.groupId,negate:e.negate}}function Ye(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function Xo(t,e){return t?{type:Ys,label:t,contents:e}:e}var Ce={type:Ar},oe={type:Ar,soft:!0},v1={type:Ar,hard:!0},he=[v1,Vs],L8={type:Ar,hard:!0,literal:!0},F1=[L8,Vs];function lD(t){return{type:mn,contents:t}}var gs={type:ki},O8="cr",$8="crlf",M8="\r",R8=`\r
54
+ `,j8=`
55
+ `,U8=j8;function q8(t){return t===O8?M8:t===$8?R8:U8}var V8={type:0},z8={type:1},w1={value:"",length:0,queue:[],get root(){return w1}};function S1(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",n=0,o=0,l=0;for(let g of s)switch(g.type){case 0:h(),r.useTabs?c(1):f(r.tabWidth);break;case 3:{let{string:x}=g;h(),i+=x,n+=x.length;break}case 2:{let{width:x}=g;o+=1,l+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:i,length:n,queue:s};function c(g){i+=" ".repeat(g),n+=r.tabWidth*g}function f(g){i+=" ".repeat(g),n+=g}function h(){r.useTabs?d():D()}function d(){o>0&&c(o),y()}function D(){l>0&&f(l),y()}function y(){o=0,l=0}}function H8(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=z8:s={type:2,width:e}:s={type:3,string:e},S1(t,s,r)}function W8(t,e){return S1(t,V8,e)}function J8(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function P1(t){let e=J8(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var cr=Symbol("MODE_BREAK"),is=Symbol("MODE_FLAT"),sh=Symbol("DOC_FILL_PRINTED_LENGTH");function $u(t,e,r,s,i,n){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,l=!1,c=[t],f="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:h,doc:d}=c.pop(),D=Ii(d);switch(D){case pn:d&&(l&&(f+=" ",r-=1,l=!1),f+=d,r-=Xn(d));break;case qs:case Pi:{let y=D===qs?d:d.parts,g=d[sh]??0;for(let x=y.length-1;x>=g;x--)c.push({mode:h,doc:y[x]});break}case cn:case hn:case fn:case Ys:c.push({mode:h,doc:d.contents});break;case dn:{let{text:y,count:g}=P1(f);f=y,r+=g;break}case qr:{if(n&&d.break)return!1;let y=d.break?cr:h,g=d.expandedStates&&y===cr?rt(0,d.expandedStates,-1):d.contents;c.push({mode:y,doc:g});break}case ds:{let y=(d.groupId?i[d.groupId]||is:h)===cr?d.breakContents:d.flatContents;y&&c.push({mode:h,doc:y});break}case Ar:if(h===cr||d.hard)return!0;d.soft||(l=!0);break;case mn:s=!0;break;case ki:if(s)return!1;break}}return!1}function k1(t,e){let r=Object.create(null),s=e.printWidth,i=q8(e.endOfLine),n=0,o=[{indent:w1,mode:cr,doc:t}],l="",c=!1,f=[],h=[],d=[],D=[],y=0;for(F8(t);o.length>0;){let{indent:E,mode:v,doc:F}=o.pop();switch(Ii(F)){case pn:{let T=i!==`
56
+ `?Rt(0,F,`
57
+ `,i):F;T&&(l+=T,o.length>0&&(n+=Xn(T)));break}case qs:for(let T=F.length-1;T>=0;T--)o.push({indent:E,mode:v,doc:F[T]});break;case ua:if(h.length>=2)throw new Error("There are too many 'cursor' in doc.");h.push(y+l.length);break;case cn:o.push({indent:W8(E,e),mode:v,doc:F.contents});break;case hn:o.push({indent:H8(E,F.n,e),mode:v,doc:F.contents});break;case dn:b();break;case qr:switch(v){case is:if(!c){o.push({indent:E,mode:F.break?cr:is,doc:F.contents});break}case cr:{c=!1;let T={indent:E,mode:is,doc:F.contents},w=s-n,P=f.length>0;if(!F.break&&$u(T,o,w,P,r))o.push(T);else if(F.expandedStates){let k=rt(0,F.expandedStates,-1);if(F.break){o.push({indent:E,mode:cr,doc:k});break}else for(let N=1;N<F.expandedStates.length+1;N++)if(N>=F.expandedStates.length){o.push({indent:E,mode:cr,doc:k});break}else{let _=F.expandedStates[N],L={indent:E,mode:is,doc:_};if($u(L,o,w,P,r)){o.push(L);break}}}else o.push({indent:E,mode:cr,doc:F.contents});break}}F.id&&(r[F.id]=rt(0,o,-1).mode);break;case Pi:{let T=s-n,w=F[sh]??0,{parts:P}=F,k=P.length-w;if(k===0)break;let N=P[w+0],_=P[w+1],L={indent:E,mode:is,doc:N},I={indent:E,mode:cr,doc:N},M=$u(L,[],T,f.length>0,r,!0);if(k===1){M?o.push(L):o.push(I);break}let K={indent:E,mode:is,doc:_},$={indent:E,mode:cr,doc:_};if(k===2){M?o.push(K,L):o.push($,I);break}let z=P[w+2],re={indent:E,mode:v,doc:{...F,[sh]:w+2}},te=$u({indent:E,mode:is,doc:[N,_,z]},[],T,f.length>0,r,!0);o.push(re),te?o.push(K,L):M?o.push($,L):o.push($,I);break}case ds:case fn:{let T=F.groupId?r[F.groupId]:v;if(T===cr){let w=F.type===ds?F.breakContents:F.negate?F.contents:pe(F.contents);w&&o.push({indent:E,mode:v,doc:w})}if(T===is){let w=F.type===ds?F.flatContents:F.negate?pe(F.contents):F.contents;w&&o.push({indent:E,mode:v,doc:w})}break}case mn:f.push({indent:E,mode:v,doc:F.contents});break;case ki:f.length>0&&o.push({indent:E,mode:v,doc:v1});break;case Ar:switch(v){case is:if(F.hard)c=!0;else{F.soft||(l+=" ",n+=1);break}case cr:if(f.length>0){o.push({indent:E,mode:v,doc:F},...f.reverse()),f.length=0;break}F.literal?(l+=i,n=0,E.root&&(E.root.value&&(l+=E.root.value),n=E.root.length)):(b(),l+=i+E.value,n=E.length);break}break;case Ys:o.push({indent:E,mode:v,doc:F.contents});break;case Qs:break;default:throw new Bo(F)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let g=d.join("")+l,x=[...D,...h];if(x.length!==2)return{formatted:g};let C=x[0];return{formatted:g,cursorNodeStart:C,cursorNodeText:g.slice(C,rt(0,x,-1))};function b(){let{text:E,count:v}=P1(l);E&&(d.push(E),y+=E.length),l="",n-=v,h.length>0&&(D.push(...h.map(F=>Math.min(F,y))),h.length=0)}}function K8(t,e,r=0){let s=0;for(let i=r;i<t.length;++i)t[i]===" "?s=s+e-s%e:s++;return s}var G8=K8;function X8(t,e){let r=t.lastIndexOf(`
58
+ `);return r===-1?0:G8(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var Y8=X8;function I1(t,e,r){let{node:s}=t;if(s.type==="TemplateLiteral"&&t4(t)){let c=Z8(t,e,r);if(c)return c}let i="expressions";s.type==="TSTemplateLiteralType"&&(i="types");let n=[],o=t.map(r,i);n.push(gs,"`");let l=0;return t.each(({index:c,node:f})=>{if(n.push(r()),f.tail)return;let{tabWidth:h}=e,d=f.value.raw,D=d.includes(`
59
+ `)?Y8(d,h):l;l=D;let y=o[c],g=s[i][c],x=Pr(e.originalText,Ve(f),We(s.quasis[c+1]));if(!x){let b=k1(y,{...e,printWidth:Number.POSITIVE_INFINITY}).formatted;b.includes(`
60
+ `)?x=!0:y=b}x&&(Ee(g)||g.type==="Identifier"||ht(g)||g.type==="ConditionalExpression"||g.type==="SequenceExpression"||Kr(g)||Us(g))&&(y=[pe([oe,y]),oe]);let C=D===0&&d.endsWith(`
61
+ `)?Qr(Number.NEGATIVE_INFINITY,y):_8(y,D,h);n.push(ee(["${",C,gs,"}"]))},"quasis"),n.push("`"),n}function Q8(t,e,r){let s=r("quasi"),{node:i}=t,n="",o=Yi(i.quasi,Fe.Leading)[0];return o&&(Pr(e.originalText,Ve(i.typeArguments??i.tag),We(o))?n=oe:n=" "),Xo(s.label&&{tagged:!0,...s.label},[r("tag"),r("typeArguments"),n,gs,s])}function Z8(t,e,r){let{node:s}=t,i=s.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(n=>n.length>0)){e.__inJestEach=!0;let n=t.map(r,"expressions");e.__inJestEach=!1;let o=n.map(d=>"${"+k1(d,{...e,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),l=[{hasLineBreak:!1,cells:[]}];for(let d=1;d<s.quasis.length;d++){let D=rt(0,l,-1),y=o[d-1];D.cells.push(y),y.includes(`
62
+ `)&&(D.hasLineBreak=!0),s.quasis[d].value.raw.includes(`
63
+ `)&&l.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...l.map(d=>d.cells.length)),f=Array.from({length:c}).fill(0),h=[{cells:i},...l.filter(d=>d.cells.length>0)];for(let{cells:d}of h.filter(D=>!D.hasLineBreak))for(let[D,y]of d.entries())f[D]=Math.max(f[D],Xn(y));return[gs,"`",pe([he,Ye(he,h.map(d=>Ye(" | ",d.cells.map((D,y)=>d.hasLineBreak?D:D+" ".repeat(f[y]-Xn(D))))))]),he,"`"]}}function e4(t,e){let{node:r}=t,s=e();return Ee(r)&&(s=ee([pe([oe,s]),oe])),["${",s,gs,"}"]}function Vd(t,e){return t.map(()=>e4(t,e),"expressions")}function B1(t,e){return la(t,r=>typeof r=="string"?e?Rt(0,r,/(\\*)`/gu,"$1$1\\`"):N1(r):r)}function N1(t){return Rt(0,t,/([\\`]|\$\{)/gu,"\\$1")}function t4({node:t,parent:e}){let r=/^[fx]?(?:describe|it|test)$/u;return e.type==="TaggedTemplateExpression"&&e.quasi===t&&e.tag.type==="MemberExpression"&&e.tag.property.type==="Identifier"&&e.tag.property.name==="each"&&(e.tag.object.type==="Identifier"&&r.test(e.tag.object.name)||e.tag.object.type==="MemberExpression"&&e.tag.object.property.type==="Identifier"&&(e.tag.object.property.name==="only"||e.tag.object.property.name==="skip")&&e.tag.object.object.type==="Identifier"&&r.test(e.tag.object.object.name))}var ih=[(t,e)=>t.type==="ObjectExpression"&&e==="properties",(t,e)=>t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component"&&e==="arguments",(t,e)=>t.type==="Decorator"&&e==="expression"];function r4(t){let e=s=>s.type==="TemplateLiteral",r=(s,i)=>Si(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&i==="value";return t.match(e,(s,i)=>Wt(s)&&i==="elements",r,...ih)||t.match(e,r,...ih)}function s4(t){return t.match(e=>e.type==="TemplateLiteral",(e,r)=>Si(e)&&!e.computed&&e.key.type==="Identifier"&&e.key.name==="template"&&r==="value",...ih)}function cc(t,e){return Ee(t,Fe.Block|Fe.Leading,({value:r})=>r===` ${e} `)}function _1({node:t,parent:e},r){return cc(t,r)||i4(e)&&cc(e,r)||e.type==="ExpressionStatement"&&cc(e,r)}function i4(t){return t.type==="AsConstExpression"||t.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const"}async function n4(t,e,r){let{node:s}=r,i="";for(let[c,f]of s.quasis.entries()){let{raw:h}=f.value;c>0&&(i+="@prettier-placeholder-"+(c-1)+"-id"),i+=h}let n=await t(i,{parser:"scss"}),o=Vd(r,e),l=a4(n,o);if(!l)throw new Error("Couldn't insert all the expressions");return["`",pe([he,l]),oe,"`"]}function a4(t,e){if(!dt(e))return t;let r=0,s=la(qd(t),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((n,o)=>o%2===0?en(n):(r++,e[n])));return e.length===r?s:null}function o4(t){return t.match(void 0,(e,r)=>r==="quasi"&&e.type==="TaggedTemplateExpression"&&wd(e.tag,["css","css.global","css.resolve"]))||t.match(void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer",(e,r)=>r==="children"&&e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.type==="JSXIdentifier"&&s.name.name==="jsx"))}function Mu(t){return t.type==="Identifier"&&t.name==="styled"}function pD(t){return/^[A-Z]/u.test(t.object.name)&&t.property.name==="extend"}function u4({parent:t}){if(!t||t.type!=="TaggedTemplateExpression")return!1;let e=t.tag.type==="ParenthesizedExpression"?t.tag.expression:t.tag;switch(e.type){case"MemberExpression":return Mu(e.object)||pD(e);case"CallExpression":return Mu(e.callee)||e.callee.type==="MemberExpression"&&(e.callee.object.type==="MemberExpression"&&(Mu(e.callee.object.object)||pD(e.callee.object))||e.callee.object.type==="CallExpression"&&Mu(e.callee.object.callee));case"Identifier":return e.name==="css";default:return!1}}function l4({parent:t,grandparent:e}){return e?.type==="JSXAttribute"&&t.type==="JSXExpressionContainer"&&e.name.type==="JSXIdentifier"&&e.name.name==="css"}var p4=t=>o4(t)||u4(t)||l4(t)||r4(t);async function c4(t,e,r){let{node:s}=r,i=s.quasis.length,n=Vd(r,e),o=[];for(let l=0;l<i;l++){let c=s.quasis[l],f=l===0,h=l===i-1,d=c.value.cooked,D=d.split(`
64
+ `),y=D.length,g=n[l],x=y>2&&D[0].trim()===""&&D[1].trim()==="",C=y>2&&D[y-1].trim()===""&&D[y-2].trim()==="",b=D.every(v=>/^\s*(?:#[^\n\r]*)?$/u.test(v));if(!h&&/#[^\n\r]*$/u.test(D[y-1]))return null;let E=null;b?E=h4(D):E=await t(d,{parser:"graphql"}),E?(E=B1(E,!1),!f&&x&&o.push(""),o.push(E),!h&&C&&o.push("")):!f&&!h&&x&&o.push(""),g&&o.push(g)}return["`",pe([he,Ye(he,o)]),he,"`"]}function h4(t){let e=[],r=!1,s=t.map(i=>i.trim());for(let[i,n]of s.entries())n!==""&&(s[i-1]===""&&r?e.push([he,n]):e.push(n),r=!0);return e.length===0?null:Ye(he,e)}function d4({node:t,parent:e}){return _1({node:t,parent:e},"GraphQL")||e&&(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"&&e.tag.object.name==="graphql"&&e.tag.property.name==="experimental"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"))||e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="graphql")}var hc=0;async function L1(t,e,r,s,i){let{node:n}=s,o=hc;hc=hc+1>>>0;let l=b=>`PRETTIER_HTML_PLACEHOLDER_${b}_${o}_IN_JS`,c=n.quasis.map((b,E,v)=>E===v.length-1?b.value.cooked:b.value.cooked+l(E)).join(""),f=Vd(s,r),h=new RegExp(l("(\\d+)"),"gu"),d=0,D=await e(c,{parser:t,__onHtmlRoot(b){d=b.children.length}}),y=la(D,b=>{if(typeof b!="string")return b;let E=[],v=b.split(h);for(let F=0;F<v.length;F++){let T=v[F];if(F%2===0){T&&(T=N1(T),i.__embeddedInHtml&&(T=Rt(0,T,/<\/(?=script\b)/giu,"<\\/")),E.push(T));continue}let w=Number(T);E.push(f[w])}return E}),g=/^\s/u.test(c)?" ":"",x=/\s$/u.test(c)?" ":"",C=i.htmlWhitespaceSensitivity==="ignore"?he:g&&x?Ce:null;return C?ee(["`",pe([C,ee(y)]),C,"`"]):Xo({hug:!1},ee(["`",g,d>1?pe(ee(y)):ee(y),x,"`"]))}function f4(t){return _1(t,"HTML")||t.match(e=>e.type==="TemplateLiteral",(e,r)=>e.type==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="html"&&r==="quasi")}var m4=L1.bind(void 0,"html"),y4=L1.bind(void 0,"angular");async function D4(t,e,r){let{node:s}=r,i=Rt(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(c,f)=>"\\".repeat(f.length/2)+"`"),n=g4(i),o=n!=="";o&&(i=Rt(0,i,new RegExp(`^${n}`,"gmu"),""));let l=B1(await t(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?pe([oe,l]):[F1,N8(l)],oe,"`"]}function g4(t){let e=t.match(/^([^\S\n]*)\S/mu);return e===null?"":e[1]}function x4({node:t,parent:e}){return e?.type==="TaggedTemplateExpression"&&t.quasis.length===1&&e.tag.type==="Identifier"&&(e.tag.name==="md"||e.tag.name==="markdown")}var E4=[{test:p4,print:n4},{test:d4,print:c4},{test:f4,print:m4},{test:s4,print:y4},{test:x4,print:D4}].map(({test:t,print:e})=>({test:t,print:C4(e)}));function A4(t){let{node:e}=t;if(e.type!=="TemplateLiteral"||b4(e))return;let r=E4.find(({test:s})=>s(t));if(r)return e.quasis.length===1&&e.quasis[0].value.raw.trim()===""?"``":r.print}function C4(t){return async(...e)=>{let r=await t(...e);return r&&Xo({embed:!0,...r.label},r)}}function b4({quasis:t}){return t.some(({value:{cooked:e}})=>e===null)}var T4=A4,v4=/\*\/$/,F4=/^\/\*\*?/,O1=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,w4=/(^|\s+)\/\/([^\n\r]*)/g,cD=/^(\r?\n)+/,S4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,hD=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,P4=/(\r?\n|^) *\* ?/g,$1=[];function k4(t){let e=t.match(O1);return e?e[0].trimStart():""}function I4(t){let e=t.match(O1)?.[0];return e==null?t:t.slice(e.length)}function B4(t){t=Rt(0,t.replace(F4,"").replace(v4,""),P4,"$1");let e="";for(;e!==t;)e=t,t=Rt(0,t,S4,`
65
+ $1 $2
66
+ `);t=t.replace(cD,"").trimEnd();let r=Object.create(null),s=Rt(0,t,hD,"").replace(cD,"").trimEnd(),i;for(;i=hD.exec(t);){let n=Rt(0,i[2],w4,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let o=r[i[1]];r[i[1]]=[...$1,...Array.isArray(o)?o:[o],n]}else r[i[1]]=n}return{comments:s,pragmas:r}}function N4({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(n=>dD(n,e[n])).map(n=>` * ${n}
67
+ `).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let n=e[r[0]];return`/** ${dD(r[0],n)[0]} */`}}let i=t.split(`
68
+ `).map(n=>` * ${n}`).join(`
69
+ `)+`
70
+ `;return`/**
71
+ `+(t?i:"")+(t&&r.length>0?` *
72
+ `:"")+s+" */"}function dD(t,e){return[...$1,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var _4="format";function L4(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
73
+ `);return e===-1?t:t.slice(0,e)}var O4=L4;function $4(t){let e=O4(t);e&&(t=t.slice(e.length+1));let r=k4(t),{pragmas:s,comments:i}=B4(r);return{shebang:e,text:t,pragmas:s,comments:i}}function M4(t){let{shebang:e,text:r,pragmas:s,comments:i}=$4(t),n=I4(r),o=N4({pragmas:{[_4]:"",...s},comments:i.trimStart()});return(e?`${e}
74
+ `:"")+o+(n.startsWith(`
75
+ `)?`
76
+ `:`
77
+
78
+ `)+n}function R4(t){if(!Zr(t))return!1;let e=`*${t.value}*`.split(`
79
+ `);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var dc=new WeakMap;function j4(t){return dc.has(t)||dc.set(t,R4(t)),dc.get(t)}var U4=j4;function q4(t,e){let r=t.node;if(Jo(r))return e.originalText.slice(We(r),Ve(r)).trimEnd();if(U4(r))return V4(r);if(Zr(r))return["/*",en(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function V4(t){let e=t.value.split(`
80
+ `);return["/*",Ye(he,e.map((r,s)=>s===0?r.trimEnd():" "+(s<e.length-1?r.trim():r.trimStart()))),"*/"]}function nh(t,e){if(t.isRoot)return!1;let{node:r,key:s,parent:i}=t;if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&J4(r)&&no(t))return!0;if(z4(r))return!1;if(r.type==="Identifier"){if(r.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||s==="left"&&(r.name==="async"&&!i.await||r.name==="let")&&i.type==="ForOfStatement")return!0;if(r.name==="let"){let n=t.findAncestor(o=>o.type==="ForOfStatement")?.left;if(n&&tr(n,o=>o===r))return!0}if(s==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let n=t.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),o=n?n.type==="ExpressionStatement"?n.expression:n.type==="ForStatement"?n.init:n.left:void 0;if(o&&tr(o,l=>l===r))return!0}if(s==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let n=t.findAncestor(o=>!Kr(o));if(n!==i&&n.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let n=t.findAncestor(o=>o.type==="ExpressionStatement")?.expression;if(n&&tr(n,o=>o===r))return!0}if(r.type==="ObjectExpression"){let n=t.findAncestor(o=>o.type==="ArrowFunctionExpression")?.body;if(n&&n.type!=="SequenceExpression"&&n.type!=="AssignmentExpression"&&tr(n,o=>o===r))return!0}switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(s==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&dt(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return M1(t,e)||r.type==="SequenceExpression";case"Decorator":if(s==="expression"&&!G4(r))return!0;break;case"TypeAnnotation":if(t.match(void 0,void 0,(n,o)=>o==="returnType"&&n.type==="ArrowFunctionExpression")&&W4(r))return!0;break;case"BinaryExpression":if(s==="left"&&(i.operator==="in"||i.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(s==="init"&&t.match(void 0,void 0,(n,o)=>o==="declarations"&&n.type==="VariableDeclaration",(n,o)=>o==="left"&&n.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"BinaryExpression":return s==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&H4(t))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let n=t.grandparent;if(n.type==="BinaryExpression"&&n.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Kr(r);case"ConditionalExpression":return Kr(r)||lN(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return s==="callee";case"ClassExpression":case"ClassDeclaration":return s==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"AssignmentExpression":case"AssignmentPattern":return s==="left"&&(r.type==="TSTypeAssertion"||Kr(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:n,type:o}=r;if(!n&&o!=="TSTypeAssertion")return!0;let l=Dl(n),c=i.operator,f=Dl(c);return!!(f>l||s==="right"&&f===l||f===l&&!Nd(c,n)||f<l&&n==="%"&&(c==="+"||c==="-")||CN(c))}default:return!1}case"SequenceExpression":return i.type!=="ForStatement";case"YieldExpression":if(i.type==="AwaitExpression"||i.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return s==="test";case"BinaryExpression":return!(!r.argument&&i.operator==="|>");default:return!1}case"TSFunctionType":if(t.match(n=>n.type==="TSFunctionType",(n,o)=>o==="typeAnnotation"&&n.type==="TSTypeAnnotation",(n,o)=>o==="returnType"&&n.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&Ci(r)&&i.type===r.type||s==="checkType"&&Ci(i))return!0;if(s==="extendsType"&&i.type==="TSConditionalType"){let{typeAnnotation:n}=r.returnType||r.typeAnnotation;if(n.type==="TSTypePredicate"&&n.typeAnnotation&&(n=n.typeAnnotation.typeAnnotation),n.type==="TSInferType"&&n.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Ds(i)||Go(i))return!0;case"TSInferType":if(r.type==="TSInferType"){if(i.type==="TSRestType")return!1;if(s==="types"&&(i.type==="TSUnionType"||i.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||s==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&t.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return s==="objectType"&&i.type==="TSIndexedAccessType"||s==="elementType"&&i.type==="TSArrayType";case"TypeOperator":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||s==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||i.type==="TypeOperator";case"TypeofTypeAnnotation":return s==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||s==="elementType"&&i.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="TypeOperator"||i.type==="KeyofTypeAnnotation"||i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||s==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||s==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(t.match(void 0,(o,l)=>l==="typeAnnotation"&&o.type==="TypeAnnotation",(o,l)=>l==="returnType"&&o.type==="ArrowFunctionExpression")||t.match(void 0,(o,l)=>l==="typeAnnotation"&&o.type==="TypePredicate",(o,l)=>l==="typeAnnotation"&&o.type==="TypeAnnotation",(o,l)=>l==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;let n=i.type==="NullableTypeAnnotation"?t.grandparent:i;return n.type==="UnionTypeAnnotation"||n.type==="IntersectionTypeAnnotation"||n.type==="ArrayTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType")||s==="checkType"&&i.type==="ConditionalTypeAnnotation"||s==="extendsType"&&i.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||n.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&Yt(r).some(o=>o.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return s==="objectType"&&i.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&typeof i.directive!="string"){let n=t.grandparent;return n.type==="Program"||n.type==="BlockStatement"}return s==="object"&&ht(i)&&ys(r);case"AssignmentExpression":return!((s==="init"||s==="update")&&i.type==="ForStatement"||s==="expression"&&r.left.type!=="ObjectPattern"&&i.type==="ExpressionStatement"||s==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||s==="expressions"&&i.type==="SequenceExpression"&&t.match(void 0,void 0,(n,o)=>(o==="init"||o==="update")&&n.type==="ForStatement")||s==="value"&&i.type==="Property"&&t.match(void 0,void 0,(n,o)=>o==="properties"&&n.type==="ObjectPattern")||i.type==="NGChainedExpression"||s==="node"&&i.type==="JsExpressionRoot");case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return e.experimentalTernaries?!1:s==="test";case"MemberExpression":case"OptionalMemberExpression":return s==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return s==="expression";case"ConditionalExpression":return s==="test";default:return!1}case"ClassExpression":return i.type==="NewExpression"?s==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(K4(t))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(s==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let n=r;for(;n;)switch(n.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":n=n.object;break;case"TaggedTemplateExpression":n=n.tag;break;case"TSNonNullExpression":n=n.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||s==="object"&&ht(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!r.extra?.parenthesized||Wt(i)||s==="arguments"&&tt(i)||s==="right"&&i.type==="NGPipeExpression"||s==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return s==="callee"||s==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||!Wt(i)&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!tt(i)&&!Si(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return s==="object"&&ht(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var z4=$e(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function H4(t){let e=0,{node:r}=t;for(;r;){let s=t.getParentNode(e++);if(s?.type==="ForStatement"&&s.init===r)return!0;r=s}return!1}function W4(t){return Qc(t,e=>e.type==="ObjectTypeAnnotation"&&Qc(e,r=>r.type==="FunctionTypeAnnotation"))}function J4(t){return Xr(t)}function no(t){let{parent:e,key:r}=t;switch(e.type){case"NGPipeExpression":if(r==="arguments"&&t.isLast)return t.callParent(no);break;case"ObjectProperty":if(r==="value")return t.callParent(()=>t.key==="properties"&&t.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return t.callParent(no);break;case"ConditionalExpression":if(r==="alternate")return t.callParent(no);break;case"UnaryExpression":if(e.prefix)return t.callParent(no);break}return!1}function M1(t,e){let{node:r,parent:s}=t;return r.type==="FunctionExpression"||r.type==="ClassExpression"?s.type==="ExportDefaultDeclaration"||!nh(t,e):!Pd(r)||s.type!=="ExportDefaultDeclaration"&&nh(t,e)?!1:t.call(()=>M1(t,e),...Y0(r))}function K4(t){return!!(t.match(void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&(e.type==="CallExpression"||e.type==="NewExpression"))||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression")||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression")&&(t.match(void 0,void 0,(e,r)=>r==="callee"&&(e.type==="CallExpression"&&!e.optional||e.type==="NewExpression")||r==="object"&&e.type==="MemberExpression"&&!e.optional)||t.match(void 0,void 0,(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression"))||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression"))}function ah(t){return t.type==="Identifier"?!0:ht(t)?!t.computed&&!t.optional&&t.property.type==="Identifier"&&ah(t.object):!1}function G4(t){return t.type==="ChainExpression"&&(t=t.expression),ah(t)||tt(t)&&!t.optional&&ah(t.callee)}var Bi=nh;function X4(t,e){let r=e-1;r=Yn(t,r,{backwards:!0}),r=Qn(t,r,{backwards:!0}),r=Yn(t,r,{backwards:!0});let s=Qn(t,r,{backwards:!0});return r!==s}var Y4=X4,Q4=()=>!0;function zd(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function Z4(t,e){let r=t.node,s=[zd(t,e)],{printer:i,originalText:n,locStart:o,locEnd:l}=e;if(i.isBlockComment?.(r)){let f=Dr(n,l(r))?Dr(n,o(r),{backwards:!0})?he:Ce:" ";s.push(f)}else s.push(he);let c=Qn(n,Yn(n,l(r)));return c!==!1&&Dr(n,c)&&s.push(he),s}function e6(t,e,r){let s=t.node,i=zd(t,e),{printer:n,originalText:o,locStart:l}=e,c=n.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||Dr(o,l(s),{backwards:!0})){let f=Y4(o,l(s));return{doc:lD([he,f?he:"",i]),isBlock:c,hasLineSuffix:!0}}return!c||r?.hasLineSuffix?{doc:[lD([" ",i]),Vs],isBlock:c,hasLineSuffix:!0}:{doc:[" ",i],isBlock:c,hasLineSuffix:!1}}function ct(t,e,r={}){let{node:s}=t;if(!dt(s?.comments))return"";let{indent:i=!1,marker:n,filter:o=Q4}=r,l=[];if(t.each(({node:f})=>{f.leading||f.trailing||f.marker!==n||!o(f)||l.push(zd(t,e))},"comments"),l.length===0)return"";let c=Ye(he,l);return i?pe([he,c]):c}function Wl(t,e){let r=t.node;if(!r)return{};let s=e[Symbol.for("printedComments")];if((r.comments||[]).filter(l=>!s.has(l)).length===0)return{leading:"",trailing:""};let i=[],n=[],o;return t.each(()=>{let l=t.node;if(s?.has(l))return;let{leading:c,trailing:f}=l;c?i.push(Z4(t,e)):f&&(o=e6(t,e,o),n.push(o.doc))},"comments"),{leading:i,trailing:n}}function Rr(t,e,r){let{leading:s,trailing:i}=Wl(t,r);return!s&&!i?e:rh(e,n=>[s,n,i])}var El=class extends Error{name="ArgExpansionBailout"};function yn(t,e,r,s,i){let n=t.node,o=Yt(n),l=i&&n.typeParameters?r("typeParameters"):"";if(o.length===0)return[l,"(",ct(t,e,{filter:y=>Yr(e.originalText,Ve(y))===")"}),")"];let{parent:c}=t,f=zl(c),h=R1(n),d=[];if(TN(t,(y,g)=>{let x=g===o.length-1;x&&n.rest&&d.push("..."),d.push(r()),!x&&(d.push(","),f||h?d.push(" "):Cs(o[g],e)?d.push(he,he):d.push(Ce))}),s&&!r6(t)){if(sr(l)||sr(d))throw new El;return ee([xl(l),"(",xl(d),")"])}let D=o.every(y=>!dt(y.decorators));return h&&D?[l,"(",...d,")"]:f?[l,"(",...d,")"]:(e1(c)||dN(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===n)&&o.length===1&&o[0].name===null&&n.this!==o[0]&&o[0].typeAnnotation&&n.typeParameters===null&&Id(o[0].typeAnnotation)&&!n.rest?e.arrowParens==="always"||n.type==="HookTypeAnnotation"?["(",...d,")"]:d:[l,"(",pe([oe,...d]),Oe(!bN(n)&&As(e,"all")&&t.root.type!=="NGRoot"?",":""),oe,")"]}function R1(t){if(!t)return!1;let e=Yt(t);if(e.length!==1)return!1;let[r]=e;return!Ee(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ai(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ai(r.typeAnnotation)&&r!==t.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Xr(r.right)&&r.right.properties.length===0||Wt(r.right)&&r.right.elements.length===0))}function t6(t){let e;return t.returnType?(e=t.returnType,e.typeAnnotation&&(e=e.typeAnnotation)):t.typeAnnotation&&(e=t.typeAnnotation),e}function pa(t,e){let r=t6(t);if(!r)return!1;let s=t.typeParameters?.params;if(s){if(s.length>1)return!1;if(s.length===1){let i=s[0];if(i.constraint||i.default)return!1}}return Yt(t).length===1&&(Ai(r)||sr(e))}function r6(t){return t.match(e=>e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement",(e,r)=>{if(e.type==="CallExpression"&&r==="arguments"&&e.arguments.length===1&&e.callee.type==="CallExpression"){let s=e.callee.callee;return s.type==="Identifier"||s.type==="MemberExpression"&&!s.computed&&s.object.type==="Identifier"&&s.property.type==="Identifier"}return!1},(e,r)=>e.type==="VariableDeclarator"&&r==="init"||e.type==="ExportDefaultDeclaration"&&r==="declaration"||e.type==="TSExportAssignment"&&r==="expression"||e.type==="AssignmentExpression"&&r==="right"&&e.left.type==="MemberExpression"&&e.left.object.type==="Identifier"&&e.left.object.name==="module"&&e.left.property.type==="Identifier"&&e.left.property.name==="exports",e=>e.type!=="VariableDeclaration"||e.kind==="const"&&e.declarations.length===1)}function s6(t){let e=Yt(t);return e.length>1&&e.some(r=>r.type==="TSParameterProperty")}function mo(t,e){return(e==="params"||e==="this"||e==="rest")&&R1(t)}function ir(t){let{node:e}=t;return!e.optional||e.type==="Identifier"&&e===t.parent.key?"":tt(e)||ht(e)&&e.computed||e.type==="OptionalIndexedAccessType"?"?.":"?"}function j1(t){return t.node.definite||t.match(void 0,(e,r)=>r==="id"&&e.type==="VariableDeclarator"&&e.definite)?"!":""}var i6=$e(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function kr(t){let{node:e}=t;return e.declare||i6(e)&&t.parent.type!=="DeclareExportDeclaration"?"declare ":""}var n6=$e(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Jl({node:t}){return t.abstract||n6(t)?"abstract ":""}function ni(t,e,r){return t.type==="EmptyStatement"?Ee(t,Fe.Leading)?[" ",e]:e:t.type==="BlockStatement"||r?[" ",e]:pe([Ce,e])}function Kl(t){return t.accessibility?t.accessibility+" ":""}var a6=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,o6=t=>a6.test(t),u6=o6;function l6(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ra=l6,p6=0;function U1(t,e,r){let{node:s,parent:i,grandparent:n,key:o}=t,l=o!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),c=s.operator==="|>"&&t.root.extra?.__isUsingHackPipeline,f=oh(t,e,r,!1,l);if(l)return f;if(c)return ee(f);if(o==="callee"&&(tt(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||ht(i)&&!i.computed)return ee([pe([oe,...f]),oe]);let h=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"||s.operator!=="|"&&i.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&e.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&n.type==="NGMicrosyntax"&&n.body.length===1)||s===i.body&&i.type==="ArrowFunctionExpression"||s!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&n.type!=="ReturnStatement"&&n.type!=="ThrowStatement"&&!tt(n)&&n.type!=="NewExpression"||i.type==="TemplateLiteral"||h6(t),d=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Si(i),D=Us(s.left)&&Nd(s.operator,s.left.operator);if(h||_o(s)&&!D||!_o(s)&&d)return ee(f);if(f.length===0)return"";let y=jt(s.right),g=f.findIndex(F=>typeof F!="string"&&!Array.isArray(F)&&F.type===qr),x=f.slice(0,g===-1?1:g+1),C=f.slice(x.length,y?-1:void 0),b=Symbol("logicalChain-"+ ++p6),E=ee([...x,pe(C)],{id:b});if(!y)return E;let v=rt(0,f,-1);return ee([E,No(v,{groupId:b})])}function oh(t,e,r,s,i){let{node:n}=t;if(!Us(n))return[ee(r())];let o=[];Nd(n.operator,n.left.operator)?o=t.call(()=>oh(t,e,r,!0,i),"left"):o.push(ee(r("left")));let l=_o(n),c=n.right.type==="ChainExpression"?n.right.expression:n.right,f=(n.operator==="|>"||n.type==="NGPipeExpression"||c6(t,e))&&!Gr(e.originalText,c),h=!Ee(c,Fe.Leading,l1)&&Gr(e.originalText,c),d=n.type==="NGPipeExpression"?"|":n.operator,D=n.type==="NGPipeExpression"&&n.arguments.length>0?ee(pe([oe,": ",Ye([Ce,": "],t.map(()=>Qr(2,ee(r())),"arguments"))])):"",y;if(l)y=[d,Gr(e.originalText,c)?pe([Ce,r("right"),D]):[" ",r("right"),D]];else{let C=d==="|>"&&t.root.extra?.__isUsingHackPipeline?t.call(()=>oh(t,e,r,!0,i),"right"):r("right");if(e.experimentalOperatorPosition==="start"){let b="";if(h)switch(Ii(C)){case qs:b=C.splice(0,1)[0];break;case Ys:b=C.contents.splice(0,1)[0];break}y=[Ce,b,d," ",C,D]}else y=[f?Ce:"",d,f?" ":Ce,C,D]}let{parent:g}=t,x=Ee(n.left,Fe.Trailing|Fe.Line);if((x||!(i&&n.type==="LogicalExpression")&&g.type!==n.type&&n.left.type!==n.type&&n.right.type!==n.type)&&(y=ee(y,{shouldBreak:x})),e.experimentalOperatorPosition==="start"?o.push(l||h?" ":"",y):o.push(f?"":" ",y),s&&Ee(n)){let C=qd(Rr(t,o,e));return C.type===Pi?C.parts:Array.isArray(C)?C:[C]}return o}function _o(t){return t.type!=="LogicalExpression"?!1:!!(Xr(t.right)&&t.right.properties.length>0||Wt(t.right)&&t.right.elements.length>0||jt(t.right))}var fD=t=>t.type==="BinaryExpression"&&t.operator==="|";function c6(t,e){return(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&fD(t.node)&&!t.hasAncestor(r=>!fD(r)&&r.type!=="JsExpressionRoot")}function h6(t){if(t.key!=="arguments")return!1;let{parent:e}=t;if(!(tt(e)&&!e.optional&&e.arguments.length===1))return!1;let{callee:r}=e;return r.type==="Identifier"&&r.name==="Boolean"}function q1(t,e,r){let{node:s}=t,{parent:i}=t,n=i.type!=="TypeParameterInstantiation"&&(!Ci(i)||!e.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&t.grandparent.this!==i)&&!((eh(i)||i.type==="VariableDeclarator")&&Gr(e.originalText,s))&&!(eh(i)&&Ee(i.id,Fe.Trailing|Fe.Line)),o=V1(s),l=t.map(()=>{let y=r();return o||(y=Qr(2,y)),Rr(t,y,e)},"types"),c="",f="";if(o1(t)&&({leading:c,trailing:f}=Wl(t,e)),o)return[c,Ye(" | ",l),f];let h=n&&!Gr(e.originalText,s),d=[Oe([h?Ce:"","| "]),Ye([Ce,"| "],l)];if(Bi(t,e))return[c,ee([pe(d),oe]),f];let D=[c,ee(d)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[ee([pe([Oe(["(",oe]),D]),oe,Oe(")")]),f]:[ee(n?pe(D):D),f]}var d6=$e(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),f6=$e(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function V1(t){let{types:e}=t;if(e.some(s=>Ee(s)))return!1;let r=e.find(s=>f6(s));return r?e.every(s=>s===r||d6(s)):!1}function m6(t){return Id(t)||Ai(t)?!0:Ds(t)?V1(t):!1}var y6=new WeakSet;function zt(t,e,r="typeAnnotation"){let{node:{[r]:s}}=t;if(!s)return"";let i=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let n=t.call(z1,r);(n==="=>"||n===":"&&Ee(s,Fe.Leading))&&(i=!0),y6.add(s)}return i?[" ",e(r)]:e(r)}var z1=t=>t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>(r==="returnType"||r==="typeAnnotation")&&(e.type==="TSFunctionType"||e.type==="TSConstructorType"))?"=>":t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>r==="typeAnnotation"&&(e.type==="TSJSDocNullableType"||e.type==="TSJSDocNonNullableType"||e.type==="TSTypePredicate"))||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareFunction")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareHook")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="bound"&&e.type==="TypeParameter"&&e.usesExtendsBound)?"":":";function H1(t,e,r){let s=z1(t);return s?[s," ",r("typeAnnotation")]:r("typeAnnotation")}function D6(t,e,r,s){let{node:i}=t,n=i.inexact?"...":"";return Ee(i,Fe.Dangling)?ee([r,n,ct(t,e,{indent:!0}),oe,s]):[r,n,s]}function Hd(t,e,r){let{node:s}=t,i=[],n="[",o="]",l=s.type==="TupleTypeAnnotation"&&s.types?"types":s.type==="TSTupleType"||s.type==="TupleTypeAnnotation"?"elementTypes":"elements",c=s[l];if(c.length===0)i.push(D6(t,e,n,o));else{let f=rt(0,c,-1),h=f?.type!=="RestElement"&&!s.inexact,d=f===null,D=Symbol("array"),y=!e.__inJestEach&&c.length>1&&c.every((C,b,E)=>{let v=C?.type;if(!Wt(C)&&!Xr(C))return!1;let F=E[b+1];if(F&&v!==F.type)return!1;let T=Wt(C)?"elements":"properties";return C[T]&&C[T].length>1}),g=W1(s,e),x=h?d?",":As(e)?g?Oe(",","",{groupId:D}):Oe(","):"":"";i.push(ee([n,pe([oe,g?x6(t,e,r,x):[g6(t,e,r,l,s.inexact),x],ct(t,e)]),oe,o],{shouldBreak:y,id:D}))}return i.push(ir(t),zt(t,r)),i}function W1(t,e){return Wt(t)&&t.elements.length>0&&t.elements.every(r=>r&&(ys(r)||Q0(r)&&!Ee(r.argument))&&!Ee(r,Fe.Trailing|Fe.Line,s=>!Dr(e.originalText,We(s),{backwards:!0})))}function J1({node:t},{originalText:e}){let r=Ve(t);if(r===We(t))return!1;let{length:s}=e;for(;r<s&&e[r]!==",";)r=Td(e,vd(e,r+1));return Fd(e,r)}function g6(t,e,r,s,i){let n=[];return t.each(({node:o,isLast:l})=>{n.push(o?ee(r()):""),(!l||i)&&n.push([",",Ce,o&&J1(t,e)?oe:""])},s),i&&n.push("..."),n}function x6(t,e,r,s){let i=[];return t.each(({isLast:n,next:o})=>{i.push([r(),n?s:","]),n||i.push(J1(t,e)?[he,he]:Ee(o,Fe.Leading|Fe.Line)?he:Ce)},"elements"),T1(i)}function E6(t,e,r){let{node:s}=t,i=Ir(s);if(i.length===0)return["(",ct(t,e),")"];let n=i.length-1;if(b6(i)){let d=["("];return gl(t,(D,y)=>{d.push(r()),y!==n&&d.push(", ")}),d.push(")"),d}let o=!1,l=[];gl(t,({node:d},D)=>{let y=r();D===n||(Cs(d,e)?(o=!0,y=[y,",",he,he]):y=[y,",",Ce]),l.push(y)});let c=!e.parser.startsWith("__ng_")&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"&&As(e,"all")?",":"";function f(){return ee(["(",pe([Ce,...l]),c,Ce,")"],{shouldBreak:!0})}if(o||t.parent.type!=="Decorator"&&xN(i))return f();if(C6(i)){let d=l.slice(1);if(d.some(sr))return f();let D;try{D=r(nD(s,0),{expandFirstArg:!0})}catch(y){if(y instanceof El)return f();throw y}return sr(D)?[Vs,Gi([["(",ee(D,{shouldBreak:!0}),", ",...d,")"],f()])]:Gi([["(",D,", ",...d,")"],["(",ee(D,{shouldBreak:!0}),", ",...d,")"],f()])}if(A6(i,l,e)){let d=l.slice(0,-1);if(d.some(sr))return f();let D;try{D=r(nD(s,-1),{expandLastArg:!0})}catch(y){if(y instanceof El)return f();throw y}return sr(D)?[Vs,Gi([["(",...d,ee(D,{shouldBreak:!0}),")"],f()])]:Gi([["(",...d,D,")"],["(",...d,ee(D,{shouldBreak:!0}),")"],f()])}let h=["(",pe([oe,...l]),Oe(c),oe,")"];return n1(t)?h:ee(h,{shouldBreak:l.some(sr)||o})}function yo(t,e=!1){return Xr(t)&&(t.properties.length>0||Ee(t))||Wt(t)&&(t.elements.length>0||Ee(t))||t.type==="TSTypeAssertion"&&yo(t.expression)||Kr(t)&&yo(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||T6(t.body))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&yo(t.body,!0)||Xr(t.body)||Wt(t.body)||!e&&(tt(t.body)||t.body.type==="ConditionalExpression")||jt(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression"}function A6(t,e,r){let s=rt(0,t,-1);if(t.length===1){let n=rt(0,e,-1);if(n.label?.embed&&n.label?.hug!==!1)return!0}let i=rt(0,t,-2);return!Ee(s,Fe.Leading)&&!Ee(s,Fe.Trailing)&&yo(s)&&(!i||i.type!==s.type)&&(t.length!==2||i.type!=="ArrowFunctionExpression"||!Wt(s))&&!(t.length>1&&W1(s,r))}function C6(t){if(t.length!==2)return!1;let[e,r]=t;return e.type==="ModuleExpression"&&v6(r)?!0:!Ee(e)&&(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&K1(r)&&!yo(r)}function K1(t){if(t.type==="ParenthesizedExpression")return K1(t.expression);if(Kr(t)||t.type==="TypeCastExpression"){let{typeAnnotation:e}=t;if(e.type==="TypeAnnotation"&&(e=e.typeAnnotation),e.type==="TSArrayType"&&(e=e.elementType,e.type==="TSArrayType"&&(e=e.elementType)),e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference"){let r=e.type==="GenericTypeAnnotation"?e.typeParameters:e.typeArguments;r?.params.length===1&&(e=r.params[0])}return Id(e)&&Wr(t.expression,1)}return ta(t)&&Ir(t).length>1?!1:Us(t)?Wr(t.left,1)&&Wr(t.right,1):Z0(t)||Wr(t)}function b6(t){return t.length===2?mD(t,0):t.length===3?t[0].type==="Identifier"&&mD(t,1):!1}function mD(t,e){let r=t[e],s=t[e+1];return r.type==="ArrowFunctionExpression"&&Yt(r).length===0&&r.body.type==="BlockStatement"&&s.type==="ArrayExpression"&&!t.some(i=>Ee(i))}function T6(t){return t.type==="BlockStatement"&&(t.body.some(e=>e.type!=="EmptyStatement")||Ee(t,Fe.Dangling))}function v6(t){if(!(t.type==="ObjectExpression"&&t.properties.length===1))return!1;let[e]=t.properties;return Si(e)?!e.computed&&(e.key.type==="Identifier"&&e.key.name==="type"||Ut(e.key)&&e.key.value==="type")&&Ut(e.value)&&e.value.value==="module":!1}var uh=E6;function F6(t,e,r){return[r("object"),ee(pe([oe,G1(t,e,r)]))]}function G1(t,e,r){return["::",r("callee")]}var w6=t=>((t.type==="ChainExpression"||t.type==="TSNonNullExpression")&&(t=t.expression),tt(t)&&Ir(t).length>0);function S6(t){let{node:e,ancestors:r}=t;for(let s of r){if(!(ht(s)&&s.object===e||s.type==="TSNonNullExpression"&&s.expression===e))return s.type==="NewExpression"&&s.callee===e;e=s}return!1}function P6(t,e,r){let s=r("object"),i=X1(t,e,r),{node:n}=t,o=t.findAncestor(f=>!(ht(f)||f.type==="TSNonNullExpression")),l=t.findAncestor(f=>!(f.type==="ChainExpression"||f.type==="TSNonNullExpression")),c=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||S6(t)||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&!ht(l)||(l.type==="AssignmentExpression"||l.type==="VariableDeclarator")&&(w6(n.object)||s.label?.memberChain);return Xo(s.label,[s,c?i:ee(pe([oe,i]))])}function X1(t,e,r){let s=r("property"),{node:i}=t,n=ir(t);return i.computed?!i.property||ys(i.property)?[n,"[",s,"]"]:ee([n,"[",pe([oe,s]),oe,"]"]):[n,".",s]}function Y1(t,e,r){if(t.node.type==="ChainExpression")return t.call(()=>Y1(t,e,r),"expression");let s=(t.parent.type==="ChainExpression"?t.grandparent:t.parent).type==="ExpressionStatement",i=[];function n(M){let{originalText:K}=e,$=oa(K,Ve(M));return K.charAt($)===")"?$!==!1&&Fd(K,$+1):Cs(M,e)}function o(){let{node:M}=t;if(M.type==="ChainExpression")return t.call(o,"expression");if(tt(M)&&(_n(M.callee)||tt(M.callee))){let K=n(M);i.unshift({node:M,hasTrailingEmptyLine:K,printed:[Rr(t,[ir(t),r("typeArguments"),uh(t,e,r)],e),K?he:""]}),t.call(o,"callee")}else _n(M)?(i.unshift({node:M,needsParens:Bi(t,e),printed:Rr(t,ht(M)?X1(t,e,r):G1(t,e,r),e)}),t.call(o,"object")):M.type==="TSNonNullExpression"?(i.unshift({node:M,printed:Rr(t,"!",e)}),t.call(o,"expression")):i.unshift({node:M,printed:r()})}let{node:l}=t;i.unshift({node:l,printed:[ir(t),r("typeArguments"),uh(t,e,r)]}),l.callee&&t.call(o,"callee");let c=[],f=[i[0]],h=1;for(;h<i.length&&(i[h].node.type==="TSNonNullExpression"||tt(i[h].node)||ht(i[h].node)&&i[h].node.computed&&ys(i[h].node.property));++h)f.push(i[h]);if(!tt(i[0].node))for(;h+1<i.length&&_n(i[h].node)&&_n(i[h+1].node);++h)f.push(i[h]);c.push(f),f=[];let d=!1;for(;h<i.length;++h){if(d&&_n(i[h].node)){if(i[h].node.computed&&ys(i[h].node.property)){f.push(i[h]);continue}c.push(f),f=[],d=!1}(tt(i[h].node)||i[h].node.type==="ImportExpression")&&(d=!0),f.push(i[h]),Ee(i[h].node,Fe.Trailing)&&(c.push(f),f=[],d=!1)}f.length>0&&c.push(f);function D(M){return/^[A-Z]|^[$_]+$/u.test(M)}function y(M){return M.length<=e.tabWidth}function g(M){let K=M[1][0]?.node.computed;if(M[0].length===1){let z=M[0][0].node;return z.type==="ThisExpression"||z.type==="Identifier"&&(D(z.name)||s&&y(z.name)||K)}let $=rt(0,M[0],-1).node;return ht($)&&$.property.type==="Identifier"&&(D($.property.name)||K)}let x=c.length>=2&&!Ee(c[1][0].node)&&g(c);function C(M){let K=M.map($=>$.printed);return M.length>0&&rt(0,M,-1).needsParens?["(",...K,")"]:K}function b(M){return M.length===0?"":pe([he,Ye(he,M.map(C))])}let E=c.map(C),v=E,F=x?3:2,T=c.flat(),w=T.slice(1,-1).some(M=>Ee(M.node,Fe.Leading))||T.slice(0,-1).some(M=>Ee(M.node,Fe.Trailing))||c[F]&&Ee(c[F][0].node,Fe.Leading);if(c.length<=F&&!w&&!c.some(M=>rt(0,M,-1).hasTrailingEmptyLine))return n1(t)?v:ee(v);let P=rt(0,c[x?1:0],-1).node,k=!tt(P)&&n(P),N=[C(c[0]),x?c.slice(1,2).map(C):"",k?he:"",b(c.slice(x?2:1))],_=i.map(({node:M})=>M).filter(tt);function L(){let M=rt(0,rt(0,c,-1),-1).node,K=rt(0,E,-1);return tt(M)&&sr(K)&&_.slice(0,-1).some($=>$.arguments.some(Io))}let I;return w||_.length>2&&_.some(M=>!M.arguments.every(K=>Wr(K)))||E.slice(0,-1).some(sr)||L()?I=ee(N):I=[sr(v)||k?Vs:"",Gi([v,N])],Xo({memberChain:!0},I)}var k6=Y1;function Al(t,e,r){let{node:s}=t,i=s.type==="NewExpression",n=ir(t),o=Ir(s),l=s.type!=="TSImportType"&&s.typeArguments?r("typeArguments"):"",c=o.length===1&&s1(o[0],e.originalText);if(c||B6(t)||N6(t)||zl(s,t.parent)){let d=[];if(gl(t,()=>{d.push(r())}),!(c&&d[0].label?.embed))return[i?"new ":"",yD(t,r),n,l,"(",Ye(", ",d),")"]}let f=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!f&&!i&&_n(s.callee)&&!t.call(()=>Bi(t,e),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return k6(t,e,r);let h=[i?"new ":"",yD(t,r),n,l,uh(t,e,r)];return f||tt(s.callee)?ee(h):h}function yD(t,e){let{node:r}=t;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":e("callee")}var I6=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function B6(t){let{node:e}=t;if(!(e.type==="ImportExpression"||e.type==="TSImportType"||e.type==="TSExternalModuleReference"||e.type==="CallExpression"&&!e.optional&&wd(e.callee,I6)))return!1;let r=Ir(e);return r.length===1&&Ut(r[0])&&!Ee(r[0])}function N6(t){let{node:e}=t;if(e.type!=="CallExpression"||e.optional||e.callee.type!=="Identifier")return!1;let r=Ir(e);return e.callee.name==="require"?(r.length===1&&Ut(r[0])||r.length>1)&&!Ee(r[0]):e.callee.name==="define"&&t.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Ut(r[0])&&r[1].type==="ArrayExpression":!1}function Yo(t,e,r,s,i,n){let o=O6(t,e,r,s,n),l=n?r(n,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return ee([ee(s),i,ee(pe([Ce,l]))]);case"never-break-after-operator":return ee([ee(s),i," ",l]);case"fluid":{let c=Symbol("assignment");return ee([ee(s),i,ee(pe(Ce),{id:c}),gs,No(l,{groupId:c})])}case"break-lhs":return ee([s,i," ",ee(l)]);case"chain":return[ee(s),i,Ce,l];case"chain-tail":return[ee(s),i,pe([Ce,l])];case"chain-tail-arrow-chain":return[ee(s),i,l];case"only-left":return s}}function _6(t,e,r){let{node:s}=t;return Yo(t,e,r,r("left"),[" ",s.operator],"right")}function L6(t,e,r){return Yo(t,e,r,r("id")," =","init")}function O6(t,e,r,s,i){let{node:n}=t,o=n[i];if(!o)return"only-left";let l=!il(o);if(t.match(il,Q1,h=>!l||h.type!=="ExpressionStatement"&&h.type!=="VariableDeclaration"))return l?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!l&&il(o.right)||Gr(e.originalText,o))return"break-after-operator";if(n.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||e.parser==="json5"||e.parser==="jsonc"||e.parser==="json")return"never-break-after-operator";let c=k8(s);if(M6(n)||U6(n)||Z1(n)&&c)return"break-lhs";let f=q6(n,s,e);return t.call(()=>$6(t,e,r,f),i)?"break-after-operator":R6(n)?"break-lhs":!c&&(f||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||pN(o)||ys(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function $6(t,e,r,s){let i=t.node;if(Us(i)&&!_o(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!e.experimentalTernaries&&!H6(i))break;return!0;case"ConditionalExpression":{if(!e.experimentalTernaries){let{test:f}=i;return Us(f)&&!_o(f)}let{consequent:l,alternate:c}=i;return l.type==="ConditionalExpression"||c.type==="ConditionalExpression"}case"ClassExpression":return dt(i.decorators)}if(s)return!1;let n=i,o=[];for(;;)if(n.type==="UnaryExpression"||n.type==="AwaitExpression"||n.type==="YieldExpression"&&n.argument!==null)n=n.argument,o.push("argument");else if(n.type==="TSNonNullExpression")n=n.expression,o.push("expression");else break;return!!(Ut(n)||t.call(()=>ex(t,e,r),...o))}function M6(t){if(Q1(t)){let e=t.left||t.id;return e.type==="ObjectPattern"&&e.properties.length>2&&e.properties.some(r=>Si(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function il(t){return t.type==="AssignmentExpression"}function Q1(t){return il(t)||t.type==="VariableDeclarator"}function R6(t){let e=j6(t);if(dt(e)){let r=t.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(e.length>1&&e.some(s=>s[r]||s.default))return!0}return!1}function j6(t){if(eh(t))return t.typeParameters?.params}function U6(t){if(t.type!=="VariableDeclarator")return!1;let{typeAnnotation:e}=t.id;if(!e||!e.typeAnnotation)return!1;let r=DD(e.typeAnnotation);return dt(r)&&r.length>1&&r.some(s=>dt(DD(s))||s.type==="TSConditionalType")}function Z1(t){return t.type==="VariableDeclarator"&&t.init?.type==="ArrowFunctionExpression"}function DD(t){let e;switch(t.type){case"GenericTypeAnnotation":e=t.typeParameters;break;case"TSTypeReference":e=t.typeArguments;break}return e?.params}function ex(t,e,r,s=!1){let{node:i}=t,n=()=>ex(t,e,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return t.call(n,"expression");if(tt(i)){if(Al(t,e,r).label?.memberChain)return!1;let o=Ir(i);return!(o.length===0||o.length===1&&Bd(o[0],e))||V6(i,r)?!1:t.call(n,"callee")}return ht(i)?t.call(n,"object"):s&&(i.type==="Identifier"||i.type==="ThisExpression")}function q6(t,e,r){return Si(t)?(e=qd(e),typeof e=="string"&&Xn(e)<r.tabWidth+3):!1}function V6(t,e){let r=z6(t);if(dt(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(Ds(i)||Go(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let s=t.typeParameters?"typeParameters":"typeArguments";if(sr(e(s)))return!0}return!1}function z6(t){return(t.typeParameters??t.typeArguments)?.params}function gD(t){switch(t.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!t.typeParameters;case"TSTypeReference":return!!t.typeArguments;default:return!1}}function H6(t){return gD(t.checkType)||gD(t.extendsType)}var nl=new WeakMap;function tx(t){return/^(?:\d+|\d+\.\d+)$/u.test(t)}function xD(t,e){return e.parser==="json"||e.parser==="jsonc"||!Ut(t.key)||Zn(gr(t.key),e).slice(1,-1)!==t.key.value?!1:!!(u6(t.key.value)&&!(e.parser==="babel-ts"&&t.type==="ClassProperty"||(e.parser==="typescript"||e.parser==="oxc-ts")&&t.type==="PropertyDefinition")||tx(t.key.value)&&String(Number(t.key.value))===t.key.value&&t.type!=="ImportAttribute"&&(e.parser==="babel"||e.parser==="acorn"||e.parser==="oxc"||e.parser==="espree"||e.parser==="meriyah"||e.parser==="__babel_estree"))}function W6(t,e){let{key:r}=t.node;return(r.type==="Identifier"||ys(r)&&tx(ra(gr(r)))&&String(r.value)===ra(gr(r))&&!(e.parser==="typescript"||e.parser==="babel-ts"||e.parser==="oxc-ts"))&&(e.parser==="json"||e.parser==="jsonc"||e.quoteProps==="consistent"&&nl.get(t.parent))}function Qo(t,e,r){let{node:s}=t;if(s.computed)return["[",r("key"),"]"];let{parent:i}=t,{key:n}=s;if(e.quoteProps==="consistent"&&!nl.has(i)){let o=t.siblings.some(l=>!l.computed&&Ut(l.key)&&!xD(l,e));nl.set(i,o)}if(W6(t,e)){let o=Zn(JSON.stringify(n.type==="Identifier"?n.name:n.value.toString()),e);return t.call(()=>Rr(t,o,e),"key")}return xD(s,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!nl.get(i))?t.call(()=>Rr(t,/^\d/u.test(n.value)?ra(n.value):n.value,e),"key"):r("key")}function fc(t,e,r){let{node:s}=t;return s.shorthand?r("value"):Yo(t,e,r,Qo(t,e,r),":","value")}var J6=({node:t,key:e,parent:r})=>e==="value"&&t.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Ko(r));function rx(t,e,r,s){if(J6(t))return Wd(t,e,r);let{node:i}=t,n=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&s?.expandLastArg){let{parent:h}=t;tt(h)&&(Ir(h).length>1||Yt(i).every(d=>d.type==="Identifier"&&!d.typeAnnotation))&&(n=!0)}let o=[kr(t),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],l=yn(t,e,r,n),c=Gl(t,r),f=pa(i,c);return o.push(r("typeParameters"),ee([f?ee(l):l,c]),i.body?" ":"",r("body")),e.semi&&(i.declare||!i.body)&&o.push(";"),o}function lh(t,e,r){let{node:s}=t,{kind:i}=s,n=s.value||s,o=[];return!i||i==="init"||i==="method"||i==="constructor"?n.async&&o.push("async "):o.push(i," "),n.generator&&o.push("*"),o.push(Qo(t,e,r),s.optional?"?":"",s===n?Wd(t,e,r):r("value")),o}function Wd(t,e,r){let{node:s}=t,i=yn(t,e,r),n=Gl(t,r),o=s6(s),l=pa(s,n),c=[r("typeParameters"),ee([o?ee(i,{shouldBreak:!0}):l?ee(i):i,n])];return s.body?c.push(" ",r("body")):c.push(e.semi?";":""),c}function K6(t){let e=Yt(t);return e.length===1&&!t.typeParameters&&!Ee(t,Fe.Dangling)&&e[0].type==="Identifier"&&!e[0].typeAnnotation&&!Ee(e[0])&&!e[0].optional&&!t.predicate&&!t.returnType}function sx(t,e){if(e.arrowParens==="always")return!1;if(e.arrowParens==="avoid"){let{node:r}=t;return K6(r)}return!1}function Gl(t,e){let{node:r}=t,s=[zt(t,e,"returnType")];return r.predicate&&s.push(e("predicate")),s}function ix(t,e,r){let{node:s}=t,i=[];if(s.argument){let l=r("argument");Y6(e,s.argument)?l=["(",pe([he,l]),he,")"]:(Us(s.argument)||e.experimentalTernaries&&s.argument.type==="ConditionalExpression"&&(s.argument.consequent.type==="ConditionalExpression"||s.argument.alternate.type==="ConditionalExpression"))&&(l=ee([Oe("("),pe([oe,l]),oe,Oe(")")])),i.push(" ",l)}let n=Ee(s,Fe.Dangling),o=e.semi&&n&&Ee(s,Fe.Last|Fe.Line);return o&&i.push(";"),n&&i.push(" ",ct(t,e)),!o&&e.semi&&i.push(";"),i}function G6(t,e,r){return["return",ix(t,e,r)]}function X6(t,e,r){return["throw",ix(t,e,r)]}function Y6(t,e){if(Gr(t.originalText,e)||Ee(e,Fe.Leading,r=>Pr(t.originalText,We(r),Ve(r)))&&!jt(e))return!0;if(Pd(e)){let r=e,s;for(;s=oN(r);)if(r=s,Gr(t.originalText,r))return!0}return!1}function Q6(t,e){if(e.semi||ax(t,e)||ux(t,e)||ox(t,e))return!1;let{node:r,key:s,parent:i}=t;return!!(r.type==="ExpressionStatement"&&(s==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||s==="consequent"&&i.type==="SwitchCase")&&t.call(()=>nx(t,e),"expression"))}function nx(t,e){let{node:r}=t;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!sx(t,e))return!0;break;case"UnaryExpression":{let{prefix:s,operator:i}=r;if(s&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(jt(r))return!0}return Bi(t,e)?!0:Pd(r)?t.call(()=>nx(t,e),...Y0(r)):!1}var Jd=({node:t,parent:e})=>t.type==="ExpressionStatement"&&e.type==="Program"&&e.body.length===1&&(Array.isArray(e.directives)&&e.directives.length===0||!e.directives);function ax(t,e){return(e.parentParser==="markdown"||e.parentParser==="mdx")&&Jd(t)&&jt(t.node.expression)}function ox(t,e){return e.__isHtmlInlineEventHandler&&Jd(t)}function ux(t,e){return(e.parser==="__vue_event_binding"||e.parser==="__vue_ts_event_binding")&&Jd(t)}var Z6=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},ca=Z6;function e9(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var t9=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,s=0;for(let i=0;i<e.length&&r.has(e.charAt(i));i++)s++;return s}getTrailingWhitespaceCount(e){let r=this.#e,s=0;for(let i=e.length-1;i>=0&&r.has(e.charAt(i));i--)s++;return s}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(rt(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let s=`[${e9([...this.#e].join(""))}]+`,i=new RegExp(r?`(${s})`:s,"u");return e.split(i)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>r.has(s))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>!r.has(s))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,s=>r.has(s))}#t(e){let r=Number.POSITIVE_INFINITY;for(let s of e.split(`
81
+ `)){if(s.length===0)continue;let i=this.getLeadingWhitespaceCount(s);if(i===0)return 0;s.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
82
+ `).map(s=>s.slice(r)).join(`
83
+ `)}},r9=t9,al=new r9(`
84
+ \r `),mc=t=>t===""||t===Ce||t===he||t===oe;function s9(t,e,r){let{node:s}=t;if(s.type==="JSXElement"&&x9(s))return[r("openingElement"),r("closingElement")];let i=s.type==="JSXElement"?r("openingElement"):r("openingFragment"),n=s.type==="JSXElement"?r("closingElement"):r("closingFragment");if(s.children.length===1&&s.children[0].type==="JSXExpressionContainer"&&(s.children[0].expression.type==="TemplateLiteral"||s.children[0].expression.type==="TaggedTemplateExpression"))return[i,...t.map(r,"children"),n];s.children=s.children.map(v=>E9(v)?{type:"JSXText",value:" ",raw:" "}:v);let o=s.children.some(jt),l=s.children.filter(v=>v.type==="JSXExpressionContainer").length>1,c=s.type==="JSXElement"&&s.openingElement.attributes.length>1,f=sr(i)||o||c||l,h=t.parent.rootMarker==="mdx",d=e.singleQuote?"{' '}":'{" "}',D=h?Ce:Oe([d,oe]," "),y=s.openingElement?.name?.name==="fbt",g=i9(t,e,r,D,y),x=s.children.some(v=>Lo(v));for(let v=g.length-2;v>=0;v--){let F=g[v]===""&&g[v+1]==="",T=g[v]===he&&g[v+1]===""&&g[v+2]===he,w=(g[v]===oe||g[v]===he)&&g[v+1]===""&&g[v+2]===D,P=g[v]===D&&g[v+1]===""&&(g[v+2]===oe||g[v+2]===he),k=g[v]===D&&g[v+1]===""&&g[v+2]===D,N=g[v]===oe&&g[v+1]===""&&g[v+2]===he||g[v]===he&&g[v+1]===""&&g[v+2]===oe;T&&x||F||w||k||N?g.splice(v,2):P&&g.splice(v+1,2)}for(;g.length>0&&mc(rt(0,g,-1));)g.pop();for(;g.length>1&&mc(g[0])&&mc(g[1]);)g.shift(),g.shift();let C=[""];for(let[v,F]of g.entries()){if(F===D){if(v===1&&I8(g[v-1])){if(g.length===2){C.push([C.pop(),d]);continue}C.push([d,he],"");continue}else if(v===g.length-1){C.push([C.pop(),d]);continue}else if(g[v-1]===""&&g[v-2]===he){C.push([C.pop(),d]);continue}}v%2===0?C.push([C.pop(),F]):C.push(F,""),sr(F)&&(f=!0)}let b=x?T1(C):ee(C,{shouldBreak:!0});if(e.cursorNode?.type==="JSXText"&&s.children.includes(e.cursorNode)?b=[Ou,b,Ou]:e.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(e.nodeBeforeCursor)?b=[Ou,b]:e.nodeAfterCursor?.type==="JSXText"&&s.children.includes(e.nodeAfterCursor)&&(b=[b,Ou]),h)return b;let E=ee([i,pe([he,b]),he,n]);return f?E:Gi([ee([i,...g,n]),E])}function i9(t,e,r,s,i){let n="",o=[n];function l(f){n=f,o.push([o.pop(),f])}function c(f){f!==""&&(n=f,o.push(f,""))}return t.each(({node:f,next:h})=>{if(f.type==="JSXText"){let d=gr(f);if(Lo(f)){let D=al.split(d,!0);D[0]===""&&(D.shift(),/\n/u.test(D[0])?c(AD(i,D[1],f,h)):c(s),D.shift());let y;if(rt(0,D,-1)===""&&(D.pop(),y=D.pop()),D.length===0)return;for(let[g,x]of D.entries())g%2===1?c(Ce):l(x);y!==void 0?/\n/u.test(y)?c(AD(i,n,f,h)):c(s):c(ED(i,n,f,h))}else/\n/u.test(d)?d.match(/\n/gu).length>1&&c(he):c(s)}else{let d=r();if(l(d),h&&Lo(h)){let D=al.trim(gr(h)),[y]=al.split(D);c(ED(i,y,f,h))}else c(he)}},"children"),o}function ED(t,e,r,s){return t?"":r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?e.length===1?oe:he:oe}function AD(t,e,r,s){return t?he:e.length===1?r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?he:oe:he}var n9=$e(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function a9(t,e,r){let{parent:s}=t;if(n9(s))return e;let i=o9(t),n=Bi(t,r);return ee([n?"":Oe("("),pe([oe,e]),oe,n?"":Oe(")")],{shouldBreak:i})}function o9(t){return t.match(void 0,(e,r)=>r==="body"&&e.type==="ArrowFunctionExpression",(e,r)=>r==="arguments"&&tt(e))&&(t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer")||t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer"))}function u9(t,e,r){let{node:s}=t,i=[r("name")];if(s.value){let n;if(Ut(s.value)){let o=gr(s.value),l=Rt(0,Rt(0,o.slice(1,-1),"&apos;","'"),"&quot;",'"'),c=H0(l,e.jsxSingleQuote);l=c==='"'?Rt(0,l,'"',"&quot;"):Rt(0,l,"'","&apos;"),n=t.call(()=>Rr(t,en(c+l+c),e),"value")}else n=r("value");i.push("=",n)}return i}function l9(t,e,r){let{node:s}=t,i=(n,o)=>n.type==="JSXEmptyExpression"||!Ee(n)&&(Wt(n)||Xr(n)||n.type==="ArrowFunctionExpression"||n.type==="AwaitExpression"&&(i(n.argument,n)||n.argument.type==="JSXElement")||tt(n)||n.type==="ChainExpression"&&tt(n.expression)||n.type==="FunctionExpression"||n.type==="TemplateLiteral"||n.type==="TaggedTemplateExpression"||n.type==="DoExpression"||jt(o)&&(n.type==="ConditionalExpression"||Us(n)));return i(s.expression,t.parent)?ee(["{",r("expression"),gs,"}"]):ee(["{",pe([oe,r("expression")]),oe,gs,"}"])}function p9(t,e,r){let{node:s}=t,i=Ee(s.name)||Ee(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!i)return["<",r("name"),r("typeArguments")," />"];if(s.attributes?.length===1&&Ut(s.attributes[0].value)&&!s.attributes[0].value.value.includes(`
85
+ `)&&!i&&!Ee(s.attributes[0]))return ee(["<",r("name"),r("typeArguments")," ",...t.map(r,"attributes"),s.selfClosing?" />":">"]);let n=s.attributes?.some(l=>Ut(l.value)&&l.value.value.includes(`
86
+ `)),o=e.singleAttributePerLine&&s.attributes.length>1?he:Ce;return ee(["<",r("name"),r("typeArguments"),pe(t.map(()=>[o,r()],"attributes")),...c9(s,e,i)],{shouldBreak:n})}function c9(t,e,r){return t.selfClosing?[Ce,"/>"]:h9(t,e,r)?[">"]:[oe,">"]}function h9(t,e,r){let s=t.attributes.length>0&&Ee(rt(0,t.attributes,-1),Fe.Trailing);return t.attributes.length===0&&!r||(e.bracketSameLine||e.jsxBracketSameLine)&&(!r||t.attributes.length>0)&&!s}function d9(t,e,r){let{node:s}=t,i=["</"],n=r("name");return Ee(s.name,Fe.Leading|Fe.Line)?i.push(pe([he,n]),he):Ee(s.name,Fe.Leading|Fe.Block)?i.push(" ",n):i.push(n),i.push(">"),i}function f9(t,e){let{node:r}=t,s=Ee(r),i=Ee(r,Fe.Line),n=r.type==="JSXOpeningFragment";return[n?"<":"</",pe([i?he:s&&!n?" ":"",ct(t,e)]),i?he:"",">"]}function m9(t,e,r){let s=Rr(t,s9(t,e,r),e);return a9(t,s,e)}function y9(t,e){let{node:r}=t,s=Ee(r,Fe.Line);return[ct(t,e,{indent:s}),s?he:""]}function D9(t,e,r){let{node:s}=t;return["{",t.call(({node:i})=>{let n=["...",r()];return Ee(i)?[pe([oe,Rr(t,n,e)]),oe]:n},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function g9(t,e,r){let{node:s}=t;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return u9(t,e,r);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return Ye(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return Ye(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return D9(t,e,r);case"JSXExpressionContainer":return l9(t,e,r);case"JSXFragment":case"JSXElement":return m9(t,e,r);case"JSXOpeningElement":return p9(t,e,r);case"JSXClosingElement":return d9(t,e,r);case"JSXOpeningFragment":case"JSXClosingFragment":return f9(t,e);case"JSXEmptyExpression":return y9(t,e);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new ca(s,"JSX")}}function x9(t){if(t.children.length===0)return!0;if(t.children.length>1)return!1;let e=t.children[0];return e.type==="JSXText"&&!Lo(e)}function Lo(t){return t.type==="JSXText"&&(al.hasNonWhitespaceCharacter(gr(t))||!/\n/u.test(gr(t)))}function E9(t){return t.type==="JSXExpressionContainer"&&Ut(t.expression)&&t.expression.value===" "&&!Ee(t.expression)}function A9(t){let{node:e,parent:r}=t;if(!jt(e)||!jt(r))return!1;let{index:s,siblings:i}=t,n;for(let o=s;o>0;o--){let l=i[o-1];if(!(l.type==="JSXText"&&!Lo(l))){n=l;break}}return n?.type==="JSXExpressionContainer"&&n.expression.type==="JSXEmptyExpression"&&Hl(n.expression)}function C9(t){return Hl(t.node)||A9(t)}var Kd=C9;function b9(t,e,r){let{node:s}=t;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return r("node");case"NGPipeExpression":return U1(t,e,r);case"NGChainedExpression":return ee(Ye([";",Ce],t.map(()=>F9(t)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return t.map(()=>[t.isFirst?"":CD(t)?" ":[";",Ce],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(s.name)?s.name:JSON.stringify(s.name);case"NGMicrosyntaxExpression":return[r("expression"),s.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:n}=t,o=CD(t)||T9(t)||(i===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||i===2&&(s.key.name==="else"&&n.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&n.body[i-1].key.name==="then"||s.key.name==="track"))&&n.body[0].type==="NGMicrosyntaxExpression";return[r("key"),o?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),s.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new ca(s,"Angular")}}function CD({node:t,index:e}){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1}function T9(t){let{node:e}=t;return t.parent.body[1].key.name==="of"&&e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="track"&&e.key.type==="NGMicrosyntaxKey"}var v9=$e(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function F9({node:t}){return Qc(t,v9)}function lx(t,e,r){let{node:s}=t;return ee([Ye(Ce,t.map(r,"decorators")),px(s,e)?he:Ce])}function w9(t,e,r){return cx(t.node)?[Ye(he,t.map(r,"declaration","decorators")),he]:""}function S9(t,e,r){let{node:s,parent:i}=t,{decorators:n}=s;if(!dt(n)||cx(i)||Kd(t))return"";let o=s.type==="ClassExpression"||s.type==="ClassDeclaration"||px(s,e);return[t.key==="declaration"&&uN(i)?he:o?Vs:"",Ye(Ce,t.map(r,"decorators")),Ce]}function px(t,e){return t.decorators.some(r=>Dr(e.originalText,Ve(r)))}function cx(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;let e=t.declaration?.decorators;return dt(e)&&Vl(t,e[0])}var yc=new WeakMap;function hx(t){return yc.has(t)||yc.set(t,t.type==="ConditionalExpression"&&!tr(t,e=>e.type==="ObjectExpression")),yc.get(t)}var P9=t=>t.type==="SequenceExpression";function k9(t,e,r,s={}){let i=[],n,o=[],l=!1,c=!s.expandLastArg&&t.node.body.type==="ArrowFunctionExpression",f;(function b(){let{node:E}=t,v=I9(t,e,r,s);if(i.length===0)i.push(v);else{let{leading:F,trailing:T}=Wl(t,e);i.push([F,v]),o.unshift(T)}c&&(l||(l=E.returnType&&Yt(E).length>0||E.typeParameters||Yt(E).some(F=>F.type!=="Identifier"))),!c||E.body.type!=="ArrowFunctionExpression"?(n=r("body",s),f=E.body):t.call(b,"body")})();let h=!Gr(e.originalText,f)&&(P9(f)||B9(f,n,e)||!l&&hx(f)),d=t.key==="callee"&&ta(t.parent),D=Symbol("arrow-chain"),y=N9(t,s,{signatureDocs:i,shouldBreak:l}),g=!1,x=!1,C=!1;return c&&(d||s.assignmentLayout)&&(x=!0,C=!Ee(t.node,Fe.Leading&Fe.Line),g=s.assignmentLayout==="chain-tail-arrow-chain"||d&&!h),n=_9(t,e,s,{bodyDoc:n,bodyComments:o,functionBody:f,shouldPutBodyOnSameLine:h}),ee([ee(x?pe([C?oe:"",y]):y,{shouldBreak:g,id:D})," =>",c?No(n,{groupId:D}):ee(n),c&&d?Oe(oe,"",{groupId:D}):""])}function I9(t,e,r,s){let{node:i}=t,n=[];if(i.async&&n.push("async "),sx(t,e))n.push(r(["params",0]));else{let l=s.expandLastArg||s.expandFirstArg,c=Gl(t,r);if(l){if(sr(c))throw new El;c=ee(xl(c))}n.push(ee([yn(t,e,r,l,!0),c]))}let o=ct(t,e,{filter(l){let c=oa(e.originalText,Ve(l));return c!==!1&&e.originalText.slice(c,c+2)==="=>"}});return o&&n.push(" ",o),n}function B9(t,e,r){return Wt(t)||Xr(t)||t.type==="ArrowFunctionExpression"||t.type==="DoExpression"||t.type==="BlockStatement"||jt(t)||e.label?.hug!==!1&&(e.label?.embed||s1(t,r.originalText))}function N9(t,e,{signatureDocs:r,shouldBreak:s}){if(r.length===1)return r[0];let{parent:i,key:n}=t;return n!=="callee"&&ta(i)||Us(i)?ee([r[0]," =>",pe([Ce,Ye([" =>",Ce],r.slice(1))])],{shouldBreak:s}):n==="callee"&&ta(i)||e.assignmentLayout?ee(Ye([" =>",Ce],r),{shouldBreak:s}):ee(pe(Ye([" =>",Ce],r)),{shouldBreak:s})}function _9(t,e,r,{bodyDoc:s,bodyComments:i,functionBody:n,shouldPutBodyOnSameLine:o}){let{node:l,parent:c}=t,f=r.expandLastArg&&As(e,"all")?Oe(","):"",h=(r.expandLastArg||c.type==="JSXExpressionContainer")&&!Ee(l)?oe:"";return o&&hx(n)?[" ",ee([Oe("","("),pe([oe,s]),Oe("",")"),f,h]),i]:o?[" ",s,i]:[pe([Ce,s,i]),f,h]}var L9=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},O9=Cd("findLast",function(){if(Array.isArray(this))return L9}),$9=O9;function ph(t,e,r,s){let{node:i}=t,n=[],o=$9(0,i[s],l=>l.type!=="EmptyStatement");return t.each(({node:l})=>{l.type!=="EmptyStatement"&&(n.push(r()),l!==o&&(n.push(he),Cs(l,e)&&n.push(he)))},s),n}function dx(t,e,r){let s=M9(t,e,r),{node:i,parent:n}=t;if(i.type==="Program"&&n?.type!=="ModuleExpression")return s?[s,he]:"";let o=[];if(i.type==="StaticBlock"&&o.push("static "),o.push("{"),s)o.push(pe([he,s]),he);else{let l=t.grandparent;n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression"||n.type==="FunctionDeclaration"||n.type==="ComponentDeclaration"||n.type==="HookDeclaration"||n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="ForStatement"||n.type==="WhileStatement"||n.type==="DoWhileStatement"||n.type==="DoExpression"||n.type==="ModuleExpression"||n.type==="CatchClause"&&!l.finalizer||n.type==="TSModuleDeclaration"||n.type==="MatchStatementCase"||i.type==="StaticBlock"||o.push(he)}return o.push("}"),o}function M9(t,e,r){let{node:s}=t,i=dt(s.directives),n=s.body.some(c=>c.type!=="EmptyStatement"),o=Ee(s,Fe.Dangling);if(!i&&!n&&!o)return"";let l=[];return i&&(l.push(ph(t,e,r,"directives")),(n||o)&&(l.push(he),Cs(rt(0,s.directives,-1),e)&&l.push(he))),n&&l.push(ph(t,e,r,"body")),o&&l.push(ct(t,e)),l}function R9(t){let e=new WeakMap;return function(r){return e.has(r)||e.set(r,Symbol(t)),e.get(r)}}var j9=R9;function Gd(t,e,r){let{node:s}=t,i=[],n=s.type==="ObjectTypeAnnotation",o=!fx(t),l=o?Ce:he,c=Ee(s,Fe.Dangling),[f,h]=n&&s.exact?["{|","|}"]:"{}",d;if(U9(t,({node:D,next:y,isLast:g})=>{if(d??(d=D),i.push(r()),o&&n){let{parent:x}=t;x.inexact||!g?i.push(","):As(e)&&i.push(Oe(","))}!o&&(q9({node:D,next:y},e)||yx({node:D,next:y},e))&&i.push(";"),g||(i.push(l),Cs(D,e)&&i.push(he))}),c&&i.push(ct(t,e)),s.type==="ObjectTypeAnnotation"&&s.inexact){let D;Ee(s,Fe.Dangling)?D=[Ee(s,Fe.Line)||Dr(e.originalText,Ve(rt(0,Yi(s),-1)))?he:Ce,"..."]:D=[d?Ce:"","..."],i.push(D)}if(o){let D=c||e.objectWrap==="preserve"&&d&&Pr(e.originalText,We(s),We(d)),y;if(i.length===0)y=f+h;else{let g=e.bracketSpacing?Ce:oe;y=[f,pe([g,...i]),g,h]}return t.match(void 0,(g,x)=>x==="typeAnnotation",(g,x)=>x==="typeAnnotation",mo)||t.match(void 0,(g,x)=>g.type==="FunctionTypeParam"&&x==="typeAnnotation",mo)?y:ee(y,{shouldBreak:D})}return[f,i.length>0?[pe([he,i]),he]:"",h]}function fx(t){let{node:e}=t;if(e.type==="ObjectTypeAnnotation"){let{key:r,parent:s}=t;return r==="body"&&(s.type==="InterfaceDeclaration"||s.type==="DeclareInterface"||s.type==="DeclareClass")}return e.type==="ClassBody"||e.type==="TSInterfaceBody"}function U9(t,e){let{node:r}=t;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){t.each(e,"body");return}if(r.type==="TSTypeLiteral"){t.each(e,"members");return}if(r.type==="ObjectTypeAnnotation"){let s=["properties","indexers","callProperties","internalSlots"].flatMap(i=>t.map(({node:n,index:o})=>({node:n,loc:We(n),selector:[i,o]}),i)).sort((i,n)=>i.loc-n.loc);for(let[i,{node:n,selector:o}]of s.entries())t.call(()=>e({node:n,next:s[i+1]?.node,isLast:i===s.length-1}),...o)}}function Ls(t,e){let{parent:r}=t;return t.callParent(fx)?e.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?t.isLast?e.semi?Oe(";"):"":e.semi||yx({node:t.node,next:t.next},e)?";":Oe("",";"):""}var bD=$e(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),mx=t=>{if(t.computed||t.typeAnnotation)return!1;let{type:e,name:r}=t.key;return e==="Identifier"&&(r==="static"||r==="get"||r==="set")};function q9({node:t,next:e},r){if(r.semi||!bD(t))return!1;if(!t.value&&mx(t))return!0;if(!e||e.static||e.accessibility||e.readonly)return!1;if(!e.computed){let s=e.key?.name;if(s==="in"||s==="instanceof")return!0}if(bD(e)&&e.variance&&!e.static&&!e.declare)return!0;switch(e.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((e.value?e.value.async:e.async)||e.kind==="get"||e.kind==="set")return!1;let s=e.value?e.value.generator:e.generator;return!!(e.computed||s)}case"TSIndexSignature":return!0}return!1}var V9=$e(["TSPropertySignature"]);function yx({node:t,next:e},r){return r.semi||!V9(t)?!1:mx(t)?!0:e?e.type==="TSCallSignatureDeclaration":!1}var z9=j9("heritageGroup"),H9=$e(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Xd(t,e,r){let{node:s}=t,i=H9(s),n=[kr(t),Jl(t),i?"interface":"class"],o=gx(t),l=[],c=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&l.push(" ");for(let h of["id","typeParameters"])if(s[h]){let{leading:d,trailing:D}=t.call(()=>Wl(t,e),h);l.push(d,r(h),pe(D))}}if(s.superClass){let h=[K9(t,e,r),r(s.superTypeArguments?"superTypeArguments":"superTypeParameters")],d=t.call(()=>["extends ",Rr(t,h,e)],"superClass");o?c.push(Ce,ee(d)):c.push(" ",d)}else c.push(gc(t,e,r,"extends"));c.push(gc(t,e,r,"mixins"),gc(t,e,r,"implements"));let f;return o?(f=z9(s),n.push(ee([...l,pe(c)],{id:f}))):n.push(...l,...c),!i&&o&&W9(s.body)?n.push(Oe(he," ",{groupId:f})):n.push(" "),n.push(r("body")),n}function W9(t){return t.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(e=>dt(t[e])):dt(t.body)}function Dx(t){let e=t.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(t[r])&&(e+=t[r].length),e>1)return!0;return e>1}function J9(t){let{node:e}=t;if(Ee(e.id,Fe.Trailing)||Ee(e.typeParameters,Fe.Trailing)||Ee(e.superClass)||Dx(e))return!0;if(e.superClass)return t.parent.type==="AssignmentExpression"?!1:!(e.superTypeArguments??e.superTypeParameters)&&ht(e.superClass);let r=e.extends?.[0]??e.mixins?.[0]??e.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&ht(r.expression)&&!r.typeArguments:!1}var Dc=new WeakMap;function gx(t){let{node:e}=t;return Dc.has(e)||Dc.set(e,J9(t)),Dc.get(e)}function gc(t,e,r,s){let{node:i}=t;if(!dt(i[s]))return"";let n=ct(t,e,{marker:s}),o=Ye([",",Ce],t.map(r,s));if(!Dx(i)){let l=[`${s} `,n,o];return gx(t)?[Ce,ee(l)]:[" ",l]}return[Ce,n,n&&he,s,ee(pe([Ce,o]))]}function K9(t,e,r){let s=r("superClass"),{parent:i}=t;return i.type==="AssignmentExpression"?ee(Oe(["(",pe([oe,s]),oe,")"],s)):s}function xx(t,e,r){let{node:s}=t,i=[];return dt(s.decorators)&&i.push(lx(t,e,r)),i.push(Kl(s)),s.static&&i.push("static "),i.push(Jl(t)),s.override&&i.push("override "),i.push(lh(t,e,r)),i}function Ex(t,e,r){let{node:s}=t,i=[];dt(s.decorators)&&i.push(lx(t,e,r)),i.push(kr(t),Kl(s)),s.static&&i.push("static "),i.push(Jl(t)),s.override&&i.push("override "),s.readonly&&i.push("readonly "),s.variance&&i.push(r("variance")),(s.type==="ClassAccessorProperty"||s.type==="AccessorProperty"||s.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(Qo(t,e,r),ir(t),j1(t),zt(t,r));let n=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[Yo(t,e,r,i," =",n?void 0:"value"),e.semi?";":""]}var G9=$e(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Ax(t){return G9(t)?Ax(t.expression):t}var X9=$e(["FunctionExpression","ArrowFunctionExpression"]);function Y9(t){return t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"&&t.name!=="undefined"}function Q9(t,e){if(ux(t,e)){let r=Ax(t.node.expression);return X9(r)||Y9(r)}return!(!e.semi||ax(t,e)||ox(t,e))}function Z9(t,e,r){return[r("expression"),Q9(t,e)?";":""]}function e_(t,e,r){if(e.__isVueBindings||e.__isVueForBindingLeft){let s=t.map(r,"program","body",0,"params");if(s.length===1)return s[0];let i=Ye([",",Ce],s);return e.__isVueForBindingLeft?["(",pe([oe,ee(i)]),oe,")"]:i}if(e.__isEmbeddedTypescriptGenericParameters){let s=t.map(r,"program","body",0,"typeParameters","params");return Ye([",",Ce],s)}}function t_(t,e){let{node:r}=t;switch(r.type){case"RegExpLiteral":return TD(r);case"BigIntLiteral":return ch(r.extra.raw);case"NumericLiteral":return ra(r.extra.raw);case"StringLiteral":return en(Zn(r.extra.raw,e));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return vD(r.extra.raw,e);case"Literal":{if(r.regex)return TD(r.regex);if(r.bigint)return ch(r.raw);let{value:s}=r;return typeof s=="number"?ra(r.raw):typeof s=="string"?r_(t)?vD(r.raw,e):en(Zn(r.raw,e)):String(s)}}}function r_(t){if(t.key!=="expression")return;let{parent:e}=t;return e.type==="ExpressionStatement"&&typeof e.directive=="string"}function ch(t){return t.toLowerCase()}function TD({pattern:t,flags:e}){return e=[...e].sort().join(""),`/${t}/${e}`}var s_="use strict";function vD(t,e){let r=t.slice(1,-1);if(r===s_||!(r.includes('"')||r.includes("'"))){let s=e.singleQuote?"'":'"';return s+r+s}return t}function i_(t,e,r){let s=t.originalText.slice(e,r);for(let i of t[Symbol.for("comments")]){let n=We(i);if(n>r)break;let o=Ve(i);if(o<e)continue;let l=n-e,c=o-e;s=s.slice(0,l)+Rt(0,s.slice(l,c),/[^\n]/gu," ")+s.slice(c)}return s}var Xl=i_,Cx=$e(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),n_=$e(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Yd(t,e,r){let{node:s,parent:i}=t,n=n_(s),o=s.type==="TSEnumBody"||n,l=Cx(s),c=n&&s.hasUnknownMembers,f=o?"members":l?"attributes":"properties",h=s[f],d=o||s.type==="ObjectPattern"&&i.type!=="FunctionDeclaration"&&i.type!=="FunctionExpression"&&i.type!=="ArrowFunctionExpression"&&i.type!=="ObjectMethod"&&i.type!=="ClassMethod"&&i.type!=="ClassPrivateMethod"&&i.type!=="AssignmentPattern"&&i.type!=="CatchClause"&&s.properties.some(C=>C.value&&(C.value.type==="ObjectPattern"||C.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&e.objectWrap==="preserve"&&h.length>0&&a_(s,h[0],e),D=[],y=t.map(({node:C})=>{let b=[...D,ee(r())];return D=[",",Ce],Cs(C,e)&&D.push(he),b},f);if(c){let C;if(Ee(s,Fe.Dangling)){let b=Ee(s,Fe.Line);C=[ct(t,e),b||Dr(e.originalText,Ve(rt(0,Yi(s),-1)))?he:Ce,"..."]}else C=["..."];y.push([...D,...C])}let g=!(c||rt(0,h,-1)?.type==="RestElement"),x;if(y.length===0){if(!Ee(s,Fe.Dangling))return["{}",zt(t,r)];x=ee(["{",ct(t,e,{indent:!0}),oe,"}",ir(t),zt(t,r)])}else{let C=e.bracketSpacing?Ce:oe;x=["{",pe([C,...y]),Oe(g&&As(e)?",":""),C,"}",ir(t),zt(t,r)]}return t.match(C=>C.type==="ObjectPattern"&&!dt(C.decorators),mo)||Ai(s)&&(t.match(void 0,(C,b)=>b==="typeAnnotation",(C,b)=>b==="typeAnnotation",mo)||t.match(void 0,(C,b)=>C.type==="FunctionTypeParam"&&b==="typeAnnotation",mo))||!d&&t.match(C=>C.type==="ObjectPattern",C=>C.type==="AssignmentExpression"||C.type==="VariableDeclarator")?x:ee(x,{shouldBreak:d})}function a_(t,e,r){let s=r.originalText,i=We(t),n=We(e);if(Cx(t)){let o=We(t),l=Xl(r,o,n);i=o+l.lastIndexOf("{")}return Pr(s,i,n)}function o_(t,e,r){let{node:s}=t;return["import",s.phase?` ${s.phase}`:"",vx(s),wx(t,e,r),Fx(t,e,r),Px(t,e,r),e.semi?";":""]}var bx=t=>t.type==="ExportDefaultDeclaration"||t.type==="DeclareExportDeclaration"&&t.default;function Tx(t,e,r){let{node:s}=t,i=[w9(t,e,r),kr(t),"export",bx(s)?" default":""],{declaration:n,exported:o}=s;return Ee(s,Fe.Dangling)&&(i.push(" ",ct(t,e)),i1(s)&&i.push(he)),n?i.push(" ",r("declaration")):(i.push(p_(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(i.push(" *"),o&&i.push(" as ",r("exported"))):i.push(wx(t,e,r)),i.push(Fx(t,e,r),Px(t,e,r))),i.push(l_(s,e)),i}var u_=$e(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function l_(t,e){return e.semi&&(!t.declaration||bx(t)&&!u_(t.declaration))?";":""}function Qd(t,e=!0){return t&&t!=="value"?`${e?" ":""}${t}${e?"":" "}`:""}function vx(t,e){return Qd(t.importKind,e)}function p_(t){return Qd(t.exportKind)}function Fx(t,e,r){let{node:s}=t;return s.source?[Sx(s,e)?" from":""," ",r("source")]:""}function wx(t,e,r){let{node:s}=t;if(!Sx(s,e))return"";let i=[" "];if(dt(s.specifiers)){let n=[],o=[];t.each(()=>{let l=t.node.type;if(l==="ExportNamespaceSpecifier"||l==="ExportDefaultSpecifier"||l==="ImportNamespaceSpecifier"||l==="ImportDefaultSpecifier")n.push(r());else if(l==="ExportSpecifier"||l==="ImportSpecifier")o.push(r());else throw new ca(s,"specifier")},"specifiers"),i.push(Ye(", ",n)),o.length>0&&(n.length>0&&i.push(", "),o.length>1||n.length>0||s.specifiers.some(l=>Ee(l))?i.push(ee(["{",pe([e.bracketSpacing?Ce:oe,Ye([",",Ce],o)]),Oe(As(e)?",":""),e.bracketSpacing?Ce:oe,"}"])):i.push(["{",e.bracketSpacing?" ":"",...o,e.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function Sx(t,e){return t.type!=="ImportDeclaration"||dt(t.specifiers)||t.importKind==="type"?!0:Xl(e,We(t),We(t.source)).trimEnd().endsWith("from")}function c_(t,e){if(t.extra?.deprecatedAssertSyntax)return"assert";let r=Xl(e,Ve(t.source),t.attributes?.[0]?We(t.attributes[0]):Ve(t)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||dt(t.attributes)?"with":void 0}var h_=t=>{let{attributes:e}=t;if(e.length!==1)return!1;let[r]=e,{type:s,key:i,value:n}=r;return s==="ImportAttribute"&&(i.type==="Identifier"&&i.name==="type"||Ut(i)&&i.value==="type")&&Ut(n)&&!Ee(r)&&!Ee(i)&&!Ee(n)};function Px(t,e,r){let{node:s}=t;if(!s.source)return"";let i=c_(s,e);if(!i)return"";let n=Yd(t,e,r);return h_(s)&&(n=xl(n)),[` ${i} `,n]}function d_(t,e,r){let{node:s}=t,{type:i}=s,n=i.startsWith("Import"),o=n?"imported":"local",l=n?"local":"exported",c=s[o],f=s[l],h="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?h="*":c&&(h=r(o)),f&&!f_(s)&&(d=r(l)),[Qd(i==="ImportSpecifier"?s.importKind:s.exportKind,!1),h,h&&d?" as ":"",d]}function f_(t){if(t.type!=="ImportSpecifier"&&t.type!=="ExportSpecifier")return!1;let{local:e,[t.type==="ImportSpecifier"?"imported":"exported"]:r}=t;return e.type!==r.type||!WB(e,r)?!1:Ut(e)?e.value===r.value&&gr(e)===gr(r):e.type==="Identifier"?e.name===r.name:!1}function hh(t,e){return["...",e("argument"),zt(t,e)]}function m_(t){let e=[t];for(let r=0;r<e.length;r++){let s=e[r];for(let i of["test","consequent","alternate"]){let n=s[i];if(jt(n))return!0;n.type==="ConditionalExpression"&&e.push(n)}}return!1}function y_(t,e,r){let{node:s}=t,i=s.type==="ConditionalExpression",n=i?"alternate":"falseType",{parent:o}=t,l=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return o.type===s.type&&o[n]===s?Qr(2,l):l}var D_=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function g_(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let i=0;!r;i++){let n=t.getParentNode(i);if(n.type==="ChainExpression"&&n.expression===s||tt(n)&&n.callee===s||ht(n)&&n.object===s||n.type==="TSNonNullExpression"&&n.expression===s){s=n;continue}n.type==="NewExpression"&&n.callee===s||Kr(n)&&n.expression===s?(r=t.getParentNode(i+1),s=n):r=n}return s===e?!1:r[D_.get(r.type)]===s}function x_(t,e,r){let{node:s}=t,i=s.type==="ConditionalExpression",n=i?"consequent":"trueType",o=i?"alternate":"falseType",l=i?["test"]:["checkType","extendsType"],c=s[n],f=s[o],h=[],d=!1,{parent:D}=t,y=D.type===s.type&&l.some(k=>D[k]===s),g=D.type===s.type&&!y,x,C,b=0;do C=x||s,x=t.getParentNode(b),b++;while(x&&x.type===s.type&&l.every(k=>x[k]!==C));let E=x||D,v=C;if(i&&(jt(s[l[0]])||jt(c)||jt(f)||m_(v))){d=!0,g=!0;let k=_=>[Oe("("),pe([oe,_]),oe,Oe(")")],N=_=>_.type==="NullLiteral"||_.type==="Literal"&&_.value===null||_.type==="Identifier"&&_.name==="undefined";h.push(" ? ",N(c)?r(n):k(r(n))," : ",f.type===s.type||N(f)?r(o):k(r(o)))}else{let k=_=>e.useTabs?pe(r(_)):Qr(2,r(_)),N=[Ce,"? ",c.type===s.type?Oe("","("):"",k(n),c.type===s.type?Oe("",")"):"",Ce,": ",k(o)];h.push(D.type!==s.type||D[o]===s||y?N:e.useTabs?b1(pe(N)):Qr(Math.max(0,e.tabWidth-2),N))}let F=k=>D===E?ee(k):k,T=!d&&(ht(D)||D.type==="NGPipeExpression"&&D.left===s)&&!D.computed,w=g_(t),P=F([y_(t,e,r),g?h:pe(h),i&&T&&!w?oe:""]);return y||w?ee([pe([oe,P]),oe]):P}function E_(t,e){return(ht(e)||e.type==="NGPipeExpression"&&e.left===t)&&!e.computed}function A_(t,e,r,s){return[...t.map(i=>Yi(i)),Yi(e),Yi(r)].flat().some(i=>Zr(i)&&Pr(s.originalText,We(i),Ve(i)))}var C_=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function b_(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let i=0;!r;i++){let n=t.getParentNode(i);if(n.type==="ChainExpression"&&n.expression===s||tt(n)&&n.callee===s||ht(n)&&n.object===s||n.type==="TSNonNullExpression"&&n.expression===s){s=n;continue}n.type==="NewExpression"&&n.callee===s||Kr(n)&&n.expression===s?(r=t.getParentNode(i+1),s=n):r=n}return s===e?!1:r[C_.get(r.type)]===s}var xc=t=>[Oe("("),pe([oe,t]),oe,Oe(")")];function Zd(t,e,r,s){if(!e.experimentalTernaries)return x_(t,e,r);let{node:i}=t,n=i.type==="ConditionalExpression",o=Ci(i),l=n?"consequent":"trueType",c=n?"alternate":"falseType",f=n?["test"]:["checkType","extendsType"],h=i[l],d=i[c],D=f.map(Ie=>i[Ie]),{parent:y}=t,g=y.type===i.type,x=g&&f.some(Ie=>y[Ie]===i),C=g&&y[c]===i,b=h.type===i.type,E=d.type===i.type,v=E||C,F=e.tabWidth>2||e.useTabs,T,w,P=0;do w=T||i,T=t.getParentNode(P),P++;while(T&&T.type===i.type&&f.every(Ie=>T[Ie]!==w));let k=T||y,N=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(y.type==="AssignmentExpression"||y.type==="VariableDeclarator"||y.type==="ClassProperty"||y.type==="PropertyDefinition"||y.type==="ClassPrivateProperty"||y.type==="ObjectProperty"||y.type==="Property"),_=(y.type==="ReturnStatement"||y.type==="ThrowStatement")&&!(b||E),L=n&&k.type==="JSXExpressionContainer"&&t.grandparent.type!=="JSXAttribute",I=b_(t),M=E_(i,y),K=o&&Bi(t,e),$=F?e.useTabs?" ":" ".repeat(e.tabWidth-1):"",z=A_(D,h,d,e)||b||E,re=!v&&!g&&!o&&(L?h.type==="NullLiteral"||h.type==="Literal"&&h.value===null:Bd(h,e)&&rD(i.test,3)),te=v||C||o&&!g||g&&n&&rD(i.test,1)||re,ue=[];!b&&Ee(h,Fe.Dangling)&&t.call(()=>{ue.push(ct(t,e),he)},"consequent");let X=[];Ee(i.test,Fe.Dangling)&&t.call(()=>{X.push(ct(t,e))},"test"),!E&&Ee(d,Fe.Dangling)&&t.call(()=>{X.push(ct(t,e))},"alternate"),Ee(i,Fe.Dangling)&&X.push(ct(t,e));let Q=Symbol("test"),W=Symbol("consequent"),Y=Symbol("test-and-consequent"),ie=n?[xc(r("test")),i.test.type==="ConditionalExpression"?Vs:""]:[r("checkType")," ","extends"," ",Ci(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):ee(xc(r("extendsType")))],de=ee([ie," ?"],{id:Q}),ae=r(l),Z=pe([b||L&&(jt(h)||g||v)?he:Ce,ue,ae]),G=te?ee([de,v?Z:Oe(Z,ee(Z,{id:W}),{groupId:Q})],{id:Y}):[de,Z],J=r(c),ce=re?Oe(J,b1(xc(J)),{groupId:Y}):J,ye=[G,X.length>0?[pe([he,X]),he]:E?he:re?Oe(Ce," ",{groupId:Y}):Ce,":",E?" ":F?te?Oe($,Oe(v||re?" ":$," "),{groupId:Y}):Oe($," "):" ",E?ce:ee([pe(ce),L&&!re?oe:""]),M&&!I?oe:"",z?Vs:""];return N&&!z?ee(pe([oe,ee(ye)])):N||_?ee(pe(ye)):I||o&&x?ee([pe([oe,ye]),K?oe:""]):y===k?ee(ye):ye}function T_(t,e,r,s){let{node:i}=t;if(kd(i))return t_(t,e);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[ct(t,e),r("node"),he];case"File":return e_(t,e,r)??r("program");case"ExpressionStatement":return Z9(t,e,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!Ee(i.expression)&&(Xr(i.expression)||Wt(i.expression))?["(",r("expression"),")"]:ee(["(",pe([oe,r("expression")]),oe,")"]);case"AssignmentExpression":return _6(t,e,r);case"VariableDeclarator":return L6(t,e,r);case"BinaryExpression":case"LogicalExpression":return U1(t,e,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return P6(t,e,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return F6(t,e,r);case"Identifier":return[i.name,ir(t),j1(t),zt(t,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return hh(t,r);case"RestElement":return hh(t,r);case"FunctionDeclaration":case"FunctionExpression":return rx(t,e,r,s);case"ArrowFunctionExpression":return k9(t,e,r,s);case"YieldExpression":return[`yield${i.delegate?"*":""}`,i.argument?[" ",r("argument")]:""];case"AwaitExpression":{let n=["await"];if(i.argument){n.push(" ",r("argument"));let{parent:o}=t;if(tt(o)&&o.callee===i||ht(o)&&o.object===i){n=[pe([oe,...n]),oe];let l=t.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if(l?.type!=="AwaitExpression"||!tr(l.argument,c=>c===i))return ee(n)}}return n}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Tx(t,e,r);case"ImportDeclaration":return o_(t,e,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return d_(t,e,r);case"ImportAttribute":return fc(t,e,r);case"Program":case"BlockStatement":case"StaticBlock":return dx(t,e,r);case"ClassBody":return Gd(t,e,r);case"ThrowStatement":return X6(t,e,r);case"ReturnStatement":return G6(t,e,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Al(t,e,r);case"ObjectExpression":case"ObjectPattern":return Yd(t,e,r);case"Property":return Ko(i)?lh(t,e,r):fc(t,e,r);case"ObjectProperty":return fc(t,e,r);case"ObjectMethod":return lh(t,e,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Hd(t,e,r);case"SequenceExpression":{let{parent:n}=t;if(n.type==="ExpressionStatement"||n.type==="ForStatement"){let l=[];return t.each(({isFirst:c})=>{c?l.push(r()):l.push(",",pe([Ce,r()]))},"expressions"),ee(l)}let o=Ye([",",Ce],t.map(r,"expressions"));return(n.type==="ReturnStatement"||n.type==="ThrowStatement")&&t.key==="argument"||n.type==="ArrowFunctionExpression"&&t.key==="body"?ee(Oe([pe([oe,o]),oe],o)):ee(o)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),e.semi?";":""];case"UnaryExpression":{let n=[i.operator];return/[a-z]$/u.test(i.operator)&&n.push(" "),Ee(i.argument)?n.push(ee(["(",pe([oe,r("argument")]),oe,")"])):n.push(r("argument")),n}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return Zd(t,e,r,s);case"VariableDeclaration":{let n=t.map(r,"declarations"),o=t.parent,l=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",c=i.declarations.some(h=>h.init),f;return n.length===1&&!Ee(i.declarations[0])?f=n[0]:n.length>0&&(f=pe(n[0])),ee([kr(t),i.kind,f?[" ",f]:"",pe(n.slice(1).map(h=>[",",c&&!l?he:Ce,h])),e.semi&&!(l&&o.body!==i)?";":""])}case"WithStatement":return ee(["with (",r("object"),")",ni(i.body,r("body"))]);case"IfStatement":{let n=ni(i.consequent,r("consequent")),o=[ee(["if (",ee([pe([oe,r("test")]),oe]),")",n])];if(i.alternate){let l=Ee(i.consequent,Fe.Trailing|Fe.Line)||i1(i),c=i.consequent.type==="BlockStatement"&&!l;o.push(c?" ":he),Ee(i,Fe.Dangling)&&o.push(ct(t,e),l?he:" "),o.push("else",ee(ni(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return o}case"ForStatement":{let n=ni(i.body,r("body")),o=ct(t,e),l=o?[o,oe]:"";return!i.init&&!i.test&&!i.update?[l,ee(["for (;;)",n])]:[l,ee(["for (",ee([pe([oe,r("init"),";",Ce,r("test"),";",i.update?[Ce,r("update")]:Oe("",Ce)]),oe]),")",n])]}case"WhileStatement":return ee(["while (",ee([pe([oe,r("test")]),oe]),")",ni(i.body,r("body"))]);case"ForInStatement":return ee(["for (",r("left")," in ",r("right"),")",ni(i.body,r("body"))]);case"ForOfStatement":return ee(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",ni(i.body,r("body"))]);case"DoWhileStatement":{let n=ni(i.body,r("body"));return[ee(["do",n]),i.body.type==="BlockStatement"?" ":he,"while (",ee([pe([oe,r("test")]),oe]),")",e.semi?";":""]}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[i.type==="BreakStatement"?"break":"continue",i.label?[" ",r("label")]:"",e.semi?";":""];case"LabeledStatement":return[r("label"),`:${i.body.type==="EmptyStatement"&&!Ee(i.body,Fe.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let n=Ee(i.param,l=>!Zr(l)||l.leading&&Dr(e.originalText,Ve(l))||l.trailing&&Dr(e.originalText,We(l),{backwards:!0})),o=r("param");return["catch ",n?["(",pe([oe,o]),oe,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[ee(["switch (",pe([oe,r("discriminant")]),oe,")"])," {",i.cases.length>0?pe([he,Ye(he,t.map(({node:n,isLast:o})=>[r(),!o&&Cs(n,e)?he:""],"cases"))]):"",he,"}"];case"SwitchCase":{let n=[];i.test?n.push("case ",r("test"),":"):n.push("default:"),Ee(i,Fe.Dangling)&&n.push(" ",ct(t,e));let o=i.consequent.filter(l=>l.type!=="EmptyStatement");if(o.length>0){let l=ph(t,e,r,"consequent");n.push(o.length===1&&o[0].type==="BlockStatement"?[" ",l]:pe([he,l]))}return n}case"DebuggerStatement":return["debugger",e.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Xd(t,e,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return xx(t,e,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Ex(t,e,r);case"TemplateElement":return en(i.value.raw);case"TemplateLiteral":return I1(t,e,r);case"TaggedTemplateExpression":return Q8(t,e,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Sd(t))return";";default:throw new ca(i,"ESTree")}}function kx(t){return[t("elementType"),"[]"]}var v_=$e(["SatisfiesExpression","TSSatisfiesExpression"]);function Ix(t,e,r){let{parent:s,node:i,key:n}=t,o=i.type==="AsConstExpression"?"const":r("typeAnnotation"),l=[r("expression")," ",v_(i)?"satisfies":"as"," ",o];return n==="callee"&&tt(s)||n==="object"&&ht(s)?ee([pe([oe,...l]),oe]):l}function F_(t,e,r){let{node:s}=t,i=[kr(t),"component"];s.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let n=w_(t,e,r);return s.rendersType?i.push(ee([n," ",r("rendersType")])):i.push(ee([n])),s.body&&i.push(" ",r("body")),e.semi&&s.type==="DeclareComponent"&&i.push(";"),i}function w_(t,e,r){let{node:s}=t,i=s.params;if(s.rest&&(i=[...i,s.rest]),i.length===0)return["(",ct(t,e,{filter:o=>Yr(e.originalText,Ve(o))===")"}),")"];let n=[];return P_(t,(o,l)=>{let c=l===i.length-1;c&&s.rest&&n.push("..."),n.push(r()),!c&&(n.push(","),Cs(i[l],e)?n.push(he,he):n.push(Ce))}),["(",pe([oe,...n]),Oe(As(e,"all")&&!S_(s,i)?",":""),oe,")"]}function S_(t,e){return t.rest||rt(0,e,-1)?.type==="RestElement"}function P_(t,e){let{node:r}=t,s=0,i=n=>e(n,s++);t.each(i,"params"),r.rest&&t.call(i,"rest")}function k_(t,e,r){let{node:s}=t;return s.shorthand?r("local"):[r("name")," as ",r("local")]}function I_(t,e,r){let{node:s}=t,i=[];return s.name&&i.push(r("name"),s.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function Bx(t,e,r){return Yd(t,e,r)}function B_(t,e,r){let{node:s}=t;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",Bx(t,e,r)]}function Nx(t,e){let{node:r}=t,s=e("id");r.computed&&(s=["[",s,"]"]);let i="";return r.initializer&&(i=e("initializer")),r.init&&(i=e("init")),i?[s," = ",i]:s}function _x(t,e){let{node:r}=t;return[kr(t),r.const?"const ":"","enum ",e("id")," ",e("body")]}function Lx(t,e,r){let{node:s}=t,i=[Jl(t)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&i.push("new ");let n=yn(t,e,r,!1,!0),o=[];return s.type==="FunctionTypeAnnotation"?o.push(N_(t)?" => ":": ",r("returnType")):o.push(zt(t,r,"returnType")),pa(s,o)&&(n=ee(n)),i.push(n,o),[ee(i),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?Ls(t,e):""]}function N_(t){let{node:e,parent:r}=t;return e.type==="FunctionTypeAnnotation"&&(e1(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&Vl(r,e)||r.type==="ObjectTypeCallProperty"||t.getParentNode(2)?.type==="DeclareFunction"))}function __(t,e,r){let{node:s}=t,i=["hook"];s.id&&i.push(" ",r("id"));let n=yn(t,e,r,!1,!0),o=Gl(t,r),l=pa(s,o);return i.push(ee([l?ee(n):n,o]),s.body?" ":"",r("body")),i}function L_(t,e,r){let{node:s}=t,i=[kr(t),"hook"];return s.id&&i.push(" ",r("id")),e.semi&&i.push(";"),i}function FD(t){let{node:e}=t;return e.type==="HookTypeAnnotation"&&t.getParentNode(2)?.type==="DeclareHook"}function O_(t,e,r){let{node:s}=t,i=yn(t,e,r,!1,!0),n=[FD(t)?": ":" => ",r("returnType")];return ee([FD(t)?"":"hook ",pa(s,n)?ee(i):i,n])}function Ox(t,e,r){return[r("objectType"),ir(t),"[",r("indexType"),"]"]}function $x(t,e,r){return["infer ",r("typeParameter")]}function Mx(t,e,r){let s=!1;return ee(t.map(({isFirst:i,previous:n,node:o,index:l})=>{let c=r();if(i)return c;let f=Ai(o),h=Ai(n);return h&&f?[" & ",s?pe(c):c]:!h&&!f||Gr(e.originalText,o)?e.experimentalOperatorPosition==="start"?pe([Ce,"& ",c]):pe([" &",Ce,c]):(l>1&&(s=!0),[" & ",l>1?pe(c):c])},"types"))}function $_(t){switch(t){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function M_(t,e,r){let{node:s}=t;return[ee([s.variance?r("variance"):"","[",pe([r("keyTparam")," in ",r("sourceType")]),"]",$_(s.optional),": ",r("propType")]),Ls(t,e)]}function wD(t,e){return t==="+"||t==="-"?t+e:e}function R_(t,e,r){let{node:s}=t,i=!1;if(e.objectWrap==="preserve"){let n=We(s),o=Xl(e,n+1,We(s.key)),l=n+1+o.search(/\S/u);Pr(e.originalText,n,l)&&(i=!0)}return ee(["{",pe([e.bracketSpacing?Ce:oe,Ee(s,Fe.Dangling)?ee([ct(t,e),he]):"",ee([s.readonly?[wD(s.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),s.nameType?[" as ",r("nameType")]:"","]",s.optional?wD(s.optional,"?"):"",s.typeAnnotation?": ":"",r("typeAnnotation")]),e.semi?Oe(";"):""]),e.bracketSpacing?Ce:oe,"}"],{shouldBreak:i})}function j_(t,e,r){let{node:s}=t;return[ee(["match (",pe([oe,r("argument")]),oe,")"])," {",s.cases.length>0?pe([he,Ye(he,t.map(({node:i,isLast:n})=>[r(),!n&&Cs(i,e)?he:""],"cases"))]):"",he,"}"]}function U_(t,e,r){let{node:s}=t,i=Ee(s,Fe.Dangling)?[" ",ct(t,e)]:[],n=s.type==="MatchStatementCase"?[" ",r("body")]:pe([Ce,r("body"),","]);return[r("pattern"),s.guard?ee([pe([Ce,"if (",r("guard"),")"])]):"",ee([" =>",i,n])]}function q_(t,e,r){let{node:s}=t;switch(s.type){case"MatchOrPattern":return H_(t,e,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[s.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let i=s.property.type==="Identifier"?[".",r("property")]:["[",pe([oe,r("property")]),oe,"]"];return ee([r("base"),i])}case"MatchBindingPattern":return[s.kind," ",r("id")];case"MatchObjectPattern":{let i=t.map(r,"properties");return s.rest&&i.push(r("rest")),ee(["{",pe([oe,Ye([",",Ce],i)]),s.rest?"":Oe(","),oe,"}"])}case"MatchArrayPattern":{let i=t.map(r,"elements");return s.rest&&i.push(r("rest")),ee(["[",pe([oe,Ye([",",Ce],i)]),s.rest?"":Oe(","),oe,"]"])}case"MatchObjectPatternProperty":return s.shorthand?r("pattern"):ee([r("key"),":",pe([Ce,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return s.argument&&i.push(r("argument")),i}}}var Rx=$e(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function V_(t){let{patterns:e}=t;if(e.some(s=>Ee(s)))return!1;let r=e.find(s=>s.type==="MatchObjectPattern");return r?e.every(s=>s===r||Rx(s)):!1}function z_(t){return Rx(t)||t.type==="MatchObjectPattern"?!0:t.type==="MatchOrPattern"?V_(t):!1}function H_(t,e,r){let{node:s}=t,{parent:i}=t,n=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!Gr(e.originalText,s),o=z_(s),l=t.map(()=>{let f=r();return o||(f=Qr(2,f)),Rr(t,f,e)},"patterns");if(o)return Ye(" | ",l);let c=[Oe(["| "]),Ye([Ce,"| "],l)];return Bi(t,e)?ee([pe([Oe([oe]),c]),oe]):i.type==="MatchArrayPattern"&&i.elements.length>1?ee([pe([Oe(["(",oe]),c]),oe,Oe(")")]):ee(n?pe(c):c)}function W_(t,e,r){let{node:s}=t,i=[kr(t),"opaque type ",r("id"),r("typeParameters")];if(s.supertype&&i.push(": ",r("supertype")),s.lowerBound||s.upperBound){let n=[];s.lowerBound&&n.push(pe([Ce,"super ",r("lowerBound")])),s.upperBound&&n.push(pe([Ce,"extends ",r("upperBound")])),i.push(ee(n))}return s.impltype&&i.push(" = ",r("impltype")),i.push(e.semi?";":""),i}function jx(t,e,r){let{node:s}=t;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[r("label"),": "]:[],r("typeAnnotation")]}function Ux(t,e,r){let{node:s}=t;return[s.variance?r("variance"):"",r("label"),s.optional?"?":"",": ",r("elementType")]}function qx(t,e,r){let{node:s}=t,i=[kr(t),"type ",r("id"),r("typeParameters")],n=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Yo(t,e,r,i," =",n),e.semi?";":""]}function J_(t,e,r){let{node:s}=t;return Yt(s).length===1&&s.type.startsWith("TS")&&!s[r][0].constraint&&t.parent.type==="ArrowFunctionExpression"&&!(e.filepath&&/\.ts$/u.test(e.filepath))}function Do(t,e,r,s){let{node:i}=t;if(!i[s])return"";if(!Array.isArray(i[s]))return r(s);let n=zl(t.grandparent),o=t.match(c=>!(c[s].length===1&&Ai(c[s][0])),void 0,(c,f)=>f==="typeAnnotation",c=>c.type==="Identifier",Z1);if(i[s].length===0||!o&&(n||i[s].length===1&&(i[s][0].type==="NullableTypeAnnotation"||m6(i[s][0]))))return["<",Ye(", ",t.map(r,s)),K_(t,e),">"];let l=i.type==="TSTypeParameterInstantiation"?"":J_(t,e,s)?",":As(e)?Oe(","):"";return ee(["<",pe([oe,Ye([",",Ce],t.map(r,s))]),l,oe,">"])}function K_(t,e){let{node:r}=t;if(!Ee(r,Fe.Dangling))return"";let s=!Ee(r,Fe.Line),i=ct(t,e,{indent:!s});return s?i:[i,he]}function Vx(t,e,r){let{node:s}=t,i=[s.const?"const ":""],n=s.type==="TSTypeParameter"?r("name"):s.name;if(s.variance&&i.push(r("variance")),s.in&&i.push("in "),s.out&&i.push("out "),i.push(n),s.bound&&(s.usesExtendsBound&&i.push(" extends "),i.push(zt(t,r,"bound"))),s.constraint){let o=Symbol("constraint");i.push(" extends",ee(pe(Ce),{id:o}),gs,No(r("constraint"),{groupId:o}))}if(s.default){let o=Symbol("default");i.push(" =",ee(pe(Ce),{id:o}),gs,No(r("default"),{groupId:o}))}return ee(i)}function zx(t,e){let{node:r}=t;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",e("parameterName"),r.typeAnnotation?[" is ",zt(t,e)]:""]}function Hx({node:t},e){let r=t.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",e(r),e("typeArguments")]}function G_(t,e,r){let{node:s}=t;if(G0(s))return s.type.slice(0,-14).toLowerCase();switch(s.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return F_(t,e,r);case"ComponentParameter":return k_(t,e,r);case"ComponentTypeParameter":return I_(t,e,r);case"HookDeclaration":return __(t,e,r);case"DeclareHook":return L_(t,e,r);case"HookTypeAnnotation":return O_(t,e,r);case"DeclareFunction":return[kr(t),"function ",r("id"),r("predicate"),e.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",zt(t,r),e.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[kr(t),s.kind??"var"," ",r("id"),e.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Tx(t,e,r);case"DeclareOpaqueType":case"OpaqueType":return W_(t,e,r);case"DeclareTypeAlias":case"TypeAlias":return qx(t,e,r);case"IntersectionTypeAnnotation":return Mx(t,e,r);case"UnionTypeAnnotation":return q1(t,e,r);case"ConditionalTypeAnnotation":return Zd(t,e,r);case"InferTypeAnnotation":return $x(t,e,r);case"FunctionTypeAnnotation":return Lx(t,e,r);case"TupleTypeAnnotation":return Hd(t,e,r);case"TupleTypeLabeledElement":return Ux(t,e,r);case"TupleTypeSpreadElement":return jx(t,e,r);case"GenericTypeAnnotation":return[r("id"),Do(t,e,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ox(t,e,r);case"TypeAnnotation":return H1(t,e,r);case"TypeParameter":return Vx(t,e,r);case"TypeofTypeAnnotation":return Hx(t,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return kx(r);case"DeclareEnum":case"EnumDeclaration":return _x(t,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return B_(t,e,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Nx(t,r);case"FunctionTypeParam":{let i=s.name?r("name"):t.parent.this===s?"this":"";return[i,ir(t),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Xd(t,e,r);case"ObjectTypeAnnotation":return Gd(t,e,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=s;return i==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[s.static?"static ":"",r("value"),Ls(t,e)];case"ObjectTypeMappedTypeProperty":return M_(t,e,r);case"ObjectTypeIndexer":return[s.static?"static ":"",s.variance?r("variance"):"","[",r("id"),s.id?": ":"",r("key"),"]: ",r("value"),Ls(t,e)];case"ObjectTypeProperty":{let i="";return s.proto?i="proto ":s.static&&(i="static "),[i,s.kind!=="init"?s.kind+" ":"",s.variance?r("variance"):"",Qo(t,e,r),ir(t),Ko(s)?"":": ",r("value"),Ls(t,e)]}case"ObjectTypeInternalSlot":return[s.static?"static ":"","[[",r("id"),"]]",ir(t),s.method?"":": ",r("value"),Ls(t,e)];case"ObjectTypeSpreadProperty":return hh(t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(s.value);case"StringLiteralTypeAnnotation":return en(Zn(gr(s),e));case"NumberLiteralTypeAnnotation":return ra(gr(s));case"BigIntLiteralTypeAnnotation":return ch(gr(s));case"TypeCastExpression":return["(",r("expression"),zt(t,r),")"];case"TypePredicate":return zx(t,r);case"TypeOperator":return[s.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Do(t,e,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[t.key==="predicate"&&t.parent.type!=="DeclareFunction"&&!t.parent.returnType?": ":" ","%checks",...s.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ix(t,e,r);case"MatchExpression":case"MatchStatement":return j_(t,e,r);case"MatchExpressionCase":case"MatchStatementCase":return U_(t,e,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return q_(t,e,r)}}function X_(t,e,r){let{node:s}=t,i=s.parameters.length>1?Oe(As(e)?",":""):"",n=ee([pe([oe,Ye([", ",oe],t.map(r,"parameters"))]),i,oe]);return[t.key==="body"&&t.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?n:"","]",zt(t,r),Ls(t,e)]}function SD(t,e,r){let{node:s}=t;return[s.postfix?"":r,zt(t,e),s.postfix?r:""]}function Y_(t,e,r){let{node:s}=t,i=[],n=s.kind&&s.kind!=="method"?`${s.kind} `:"";i.push(Kl(s),n,s.computed?"[":"",r("key"),s.computed?"]":"",ir(t));let o=yn(t,e,r,!1,!0),l=zt(t,r,"returnType"),c=pa(s,l);return i.push(c?ee(o):o),s.returnType&&i.push(ee(l)),[ee(i),Ls(t,e)]}function Q_(t,e,r){let{node:s}=t;return[kr(t),s.kind==="global"?"":`${s.kind} `,r("id"),s.body?[" ",ee(r("body"))]:e.semi?";":""]}function Z_(t,e,r){let{node:s}=t,i=!(Wt(s.expression)||Xr(s.expression)),n=ee(["<",pe([oe,r("typeAnnotation")]),oe,">"]),o=[Oe("("),pe([oe,r("expression")]),oe,Oe(")")];return i?Gi([[n,r("expression")],[n,ee(o,{shouldBreak:!0})],[n,r("expression")]]):ee([n,r("expression")])}function e5(t,e,r){let{node:s}=t;if(s.type.startsWith("TS")){if(X0(s))return s.type.slice(2,-7).toLowerCase();switch(s.type){case"TSThisType":return"this";case"TSTypeAssertion":return Z_(t,e,r);case"TSDeclareFunction":return rx(t,e,r);case"TSExportAssignment":return["export = ",r("expression"),e.semi?";":""];case"TSModuleBlock":return dx(t,e,r);case"TSInterfaceBody":case"TSTypeLiteral":return Gd(t,e,r);case"TSTypeAliasDeclaration":return qx(t,e,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return xx(t,e,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Ex(t,e,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return I1(t,e,r);case"TSNamedTupleMember":return Ux(t,e,r);case"TSRestType":return jx(t,e,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Xd(t,e,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Do(t,e,r,"params");case"TSTypeParameter":return Vx(t,e,r);case"TSAsExpression":case"TSSatisfiesExpression":return Ix(t,e,r);case"TSArrayType":return kx(r);case"TSPropertySignature":return[s.readonly?"readonly ":"",Qo(t,e,r),ir(t),zt(t,r),Ls(t,e)];case"TSParameterProperty":return[Kl(s),s.static?"static ":"",s.override?"override ":"",s.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Hx(t,r);case"TSIndexSignature":return X_(t,e,r);case"TSTypePredicate":return zx(t,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Al(t,e,r),s.qualifier?[".",r("qualifier")]:"",Do(t,e,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Ox(t,e,r);case"TSTypeOperator":return[s.operator," ",r("typeAnnotation")];case"TSMappedType":return R_(t,e,r);case"TSMethodSignature":return Y_(t,e,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),e.semi?";":""];case"TSEnumDeclaration":return _x(t,r);case"TSEnumBody":return Bx(t,e,r);case"TSEnumMember":return Nx(t,r);case"TSImportEqualsDeclaration":return["import ",vx(s,!1),r("id")," = ",r("moduleReference"),e.semi?";":""];case"TSExternalModuleReference":return Al(t,e,r);case"TSModuleDeclaration":return Q_(t,e,r);case"TSConditionalType":return Zd(t,e,r);case"TSInferType":return $x(t,e,r);case"TSIntersectionType":return Mx(t,e,r);case"TSUnionType":return q1(t,e,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Lx(t,e,r);case"TSTupleType":return Hd(t,e,r);case"TSTypeReference":return[r("typeName"),Do(t,e,r,"typeArguments")];case"TSTypeAnnotation":return H1(t,e,r);case"TSEmptyBodyFunctionExpression":return Wd(t,e,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return SD(t,r,"?");case"TSJSDocNonNullableType":return SD(t,r,"!");default:throw new ca(s,"TypeScript")}}}function t5(t,e,r,s){for(let i of[b9,g9,G_,e5,T_]){let n=i(t,e,r,s);if(n!==void 0)return n}}var r5=$e(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function s5(t,e,r,s){t.isRoot&&e.__onHtmlBindingRoot?.(t.node,e);let{node:i}=t,n=Kd(t)?e.originalText.slice(We(i),Ve(i)):t5(t,e,r,s);if(!n)return"";if(r5(i))return n;let o=dt(i.decorators),l=S9(t,e,r),c=i.type==="ClassExpression";if(o&&!c)return rh(n,d=>ee([l,d]));let f=Bi(t,e),h=Q6(t,e);return!l&&!f&&!h?n:rh(n,d=>[h?";":"",f?"(":"",f&&c&&o?[pe([Ce,l,d]),Ce]:[l,d],f?")":""])}var PD=s5,i5={experimental_avoidAstMutation:!0},n5=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Wx={};Ad(Wx,{getVisitorKeys:()=>u5,massageAstNode:()=>Jx,print:()=>l5});var kn=[[]],a5={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:kn[0],BooleanLiteral:kn[0],StringLiteral:kn[0],NumericLiteral:kn[0],Identifier:kn[0],TemplateLiteral:["quasis"],TemplateElement:kn[0]},o5=J0(a5),u5=o5;function l5(t,e,r){let{node:s}=t;switch(s.type){case"JsonRoot":return[r("node"),he];case"ArrayExpression":{if(s.elements.length===0)return"[]";let i=t.map(()=>t.node===null?"null":r(),"elements");return["[",pe([he,Ye([",",he],i)]),he,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",pe([he,Ye([",",he],t.map(r,"properties"))]),he,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[s.operator==="+"?"":s.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return s.value?"true":"false";case"StringLiteral":return JSON.stringify(s.value);case"NumericLiteral":return kD(t)?JSON.stringify(String(s.value)):JSON.stringify(s.value);case"Identifier":return kD(t)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new ca(s,"JSON")}}function kD(t){return t.key==="key"&&t.parent.type==="ObjectProperty"}var p5=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Jx(t,e){let{type:r}=t;if(r==="ObjectProperty"){let{key:s}=t;s.type==="Identifier"?e.key={type:"StringLiteral",value:s.name}:s.type==="NumericLiteral"&&(e.key={type:"StringLiteral",value:String(s.value)});return}if(r==="UnaryExpression"&&t.operator==="+")return e.argument;if(r==="ArrayExpression"){for(let[s,i]of t.elements.entries())i===null&&e.elements.splice(s,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:t.quasis[0].value.cooked}}Jx.ignoredProperties=p5;var Ua={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ai="JavaScript",c5={arrowParens:{category:ai,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ua.bracketSameLine,objectWrap:Ua.objectWrap,bracketSpacing:Ua.bracketSpacing,jsxBracketSameLine:{category:ai,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:ai,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:ai,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:ai,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Ua.singleQuote,jsxSingleQuote:{category:ai,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:ai,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:ai,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ua.singleAttributePerLine},Kx=c5,Gx={estree:U0,"estree-json":Wx},Xx=[...hB,...n5];const Ru=Object.freeze(Object.defineProperty({__proto__:null,default:j0,languages:Xx,options:Kx,printers:Gx},Symbol.toStringTag,{value:"Module"}));var Yx=Object.defineProperty,Qx=t=>{throw TypeError(t)},h5=(t,e,r)=>e in t?Yx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Zx=(t,e)=>{for(var r in e)Yx(t,r,{get:e[r],enumerable:!0})},ID=(t,e,r)=>h5(t,typeof e!="symbol"?e+"":e,r),d5=(t,e,r)=>e.has(t)||Qx("Cannot "+r),ju=(t,e,r)=>(d5(t,e,"read from private field"),r?r.call(t):e.get(t)),f5=(t,e,r)=>e.has(t)?Qx("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),eE={};Zx(eE,{languages:()=>HE,options:()=>WE,parsers:()=>gf,printers:()=>YE});var ef=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),m5=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},y5=ef("replaceAll",function(){if(typeof this=="string")return m5}),nr=y5;function D5(t){return this[t<0?this.length+t:t]}var g5=ef("at",function(){if(Array.isArray(this)||typeof this=="string")return D5}),ha=g5,x5=()=>{},E5=x5,tE="string",rE="array",sE="cursor",tf="indent",rf="align",iE="trim",sf="group",nf="fill",af="if-break",of="indent-if-break",nE="line-suffix",aE="line-suffix-boundary",da="line",oE="label",uf="break-parent",uE=new Set([sE,tf,rf,iE,sf,nf,af,of,nE,aE,da,oE,uf]);function A5(t){if(typeof t=="string")return tE;if(Array.isArray(t))return rE;if(!t)return;let{type:e}=t;if(uE.has(e))return e}var lE=A5,C5=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function b5(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
87
+ Expected it to be 'string' or 'object'.`;if(lE(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=C5([...uE].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
88
+ Expected it to be ${s}.`}var T5=class extends Error{name="InvalidDocError";constructor(e){super(b5(e)),this.doc=e}},v5=T5;function pE(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(n){if(r.has(n))return r.get(n);let o=i(n);return r.set(n,o),o}function i(n){switch(lE(n)){case rE:return e(n.map(s));case nf:return e({...n,parts:n.parts.map(s)});case af:return e({...n,breakContents:s(n.breakContents),flatContents:s(n.flatContents)});case sf:{let{expandedStates:o,contents:l}=n;return o?(o=o.map(s),l=o[0]):l=s(l),e({...n,contents:l,expandedStates:o})}case rf:case tf:case of:case oE:case nE:return e({...n,contents:s(n.contents)});case tE:case sE:case iE:case aE:case da:case uf:return e(n);default:throw new v5(n)}}}function fs(t,e=B5){return pE(t,r=>typeof r=="string"?fa(e,r.split(`
89
+ `)):r)}var F5=E5;function bs(t){return{type:tf,contents:t}}function w5(t,e){return{type:rf,contents:e,n:t}}function S5(t){return w5(Number.NEGATIVE_INFINITY,t)}var Zo={type:uf};function cE(t){return{type:nf,parts:t}}function $t(t,e={}){return F5(e.expandedStates),{type:sf,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Oo(t,e="",r={}){return{type:af,breakContents:t,flatContents:e,groupId:r.groupId}}function P5(t,e){return{type:of,contents:t,groupId:e.groupId,negate:e.negate}}function fa(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var wt={type:da},Gt={type:da,soft:!0},k5={type:da,hard:!0},Et=[k5,Zo],I5={type:da,hard:!0,literal:!0},B5=[I5,Zo],hE=Object.freeze({character:"'",codePoint:39}),dE=Object.freeze({character:'"',codePoint:34}),N5=Object.freeze({preferred:hE,alternate:dE}),_5=Object.freeze({preferred:dE,alternate:hE});function L5(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?N5:_5,{length:i}=t,n=0,o=0;for(let l=0;l<i;l++){let c=t.charCodeAt(l);c===r.codePoint?n++:c===s.codePoint&&o++}return(n>o?s:r).character}var O5=L5;function $5(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var M5=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,s=0;for(let i=0;i<e.length&&r.has(e.charAt(i));i++)s++;return s}getTrailingWhitespaceCount(e){let r=this.#e,s=0;for(let i=e.length-1;i>=0&&r.has(e.charAt(i));i--)s++;return s}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(ha(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let s=`[${$5([...this.#e].join(""))}]+`,i=new RegExp(r?`(${s})`:s,"u");return e.split(i)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>r.has(s))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,s=>!r.has(s))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,s=>r.has(s))}#t(e){let r=Number.POSITIVE_INFINITY;for(let s of e.split(`
90
+ `)){if(s.length===0)continue;let i=this.getLeadingWhitespaceCount(s);if(i===0)return 0;s.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
91
+ `).map(s=>s.slice(r)).join(`
92
+ `)}},R5=M5,j5=[" ",`
93
+ `,"\f","\r"," "],U5=new R5(j5),Vr=U5,q5=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},V5=q5,z5=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),H5=new Set(["if","else if","for","switch","case"]);function fE(t,e,r){if(t.kind==="text"||t.kind==="comment")return null;if(t.kind==="yaml"&&delete e.value,t.kind==="attribute"){let{fullName:s,value:i}=t;s==="style"||s==="class"||s==="srcset"&&(r.fullName==="img"||r.fullName==="source")||s==="allow"&&r.fullName==="iframe"||s.startsWith("on")||s.startsWith("@")||s.startsWith(":")||s.startsWith(".")||s.startsWith("#")||s.startsWith("v-")||s==="vars"&&r.fullName==="style"||(s==="setup"||s==="generic")&&r.fullName==="script"||s==="slot-scope"||s.startsWith("(")||s.startsWith("[")||s.startsWith("*")||s.startsWith("bind")||s.startsWith("i18n")||s.startsWith("on-")||s.startsWith("ng-")||i?.includes("{{")?delete e.value:i&&(e.value=nr(0,i,/'|&quot;|&apos;/gu,'"'))}if(t.kind==="docType"&&(e.value=nr(0,t.value.toLowerCase(),/\s+/gu," ")),t.kind==="angularControlFlowBlock"&&t.parameters?.children)for(let s of e.parameters.children)H5.has(t.name)?delete s.expression:s.expression=s.expression.trim();t.kind==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.kind==="angularLetDeclarationInitializer"&&delete e.value,t.kind==="element"&&t.isVoid&&!t.isSelfClosing&&(e.isSelfClosing=!0)}fE.ignoredProperties=z5;var W5=fE;function eu(t,e=!0){return[bs([Gt,t]),e?Gt:""]}function ma(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression"||e.parser==="__ng_binding"||e.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function zr(t,e,r,s){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;s&&(r.__onHtmlBindingRoot=(o,l)=>{i=s(o,l)});let n=await e(t,r,e);return i?$t(n):eu(n)}function J5(t,e,r,s){let{node:i}=r,n=s.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(n)?"":zr(n,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},ma)}var K5=J5,G5=Array.prototype.toReversed??function(){return[...this].reverse()},X5=ef("toReversed",function(){if(Array.isArray(this))return G5}),Y5=X5;function Q5(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var Z5=Q5();function mE(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function eL(t){return t=mE(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function tL(t){t=mE(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function rL(t){return Z5?tL(t):eL(t)}var sL=t=>String(t).split(/[/\\]/u).pop(),iL=t=>String(t).startsWith("file:");function nL(t){return Array.isArray(t)&&t.length>0}var lf=nL;function BD(t,e){if(!e)return;let r=sL(e).toLowerCase();return t.find(({filenames:s})=>s?.some(i=>i.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(i=>r.endsWith(i)))}function aL(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var oL=void 0;function ND(t,e){if(e){if(iL(e))try{e=rL(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function uL(t,e){let r=Y5(0,t.plugins).flatMap(s=>s.languages??[]);return(aL(r,e.language)??BD(r,e.physicalFile)??BD(r,e.file)??ND(r,e.physicalFile)??ND(r,e.file)??oL?.(r,e.physicalFile))?.parsers[0]}var pf=uL,yE=Symbol.for("PRETTIER_IS_FRONT_MATTER");function lL(t){return!!t?.[yE]}var Yl=lL,qa=3;function pL(t){let e=t.slice(0,qa);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
94
+ `,qa);if(r===-1)return;let s=t.slice(qa,r).trim(),i=t.indexOf(`
95
+ ${e}`,r),n=s;if(n||(n=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&n==="yaml"&&(i=t.indexOf(`
96
+ ...`,r)),i===-1)return;let o=i+1+qa,l=t.charAt(o+1);if(!/\s?/u.test(l))return;let c=t.slice(0,o),f;return{language:n,explicitLanguage:s||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:c.slice(-qa),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return f??(f=c.split(`
97
+ `)),f.length},get column(){return f??(f=c.split(`
98
+ `)),ha(0,f,-1).length}},[yE]:!0}}function cL(t){let e=pL(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return nr(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var hL=cL,dL="inline",_D={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},fL="normal",LD={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function mL(t){return t.kind==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var tu=mL,yL=t=>nr(0,t,/^[\t\f\r ]*\n/gu,""),DE=t=>yL(Vr.trimEnd(t)),DL=t=>{let e=t,r=Vr.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let s=Vr.getTrailingWhitespace(e);return s&&(e=e.slice(0,-s.length)),{leadingWhitespace:r,trailingWhitespace:s,text:e}};function gE(t,e){return!!(t.kind==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.kind==="ieConditionalComment"&&!t.complete||sa(t)&&t.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||hf(t,e)&&!zs(t,e)&&t.kind!=="interpolation")}function Ql(t){return t.kind==="attribute"||!t.parent||!t.prev?!1:gL(t.prev)}function gL(t){return t.kind==="comment"&&t.value.trim()==="prettier-ignore"}function $r(t){return t.kind==="text"||t.kind==="comment"}function zs(t,e){return t.kind==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||t.fullName==="mj-style"&&e.parser==="mjml"||tu(t)&&(t.name==="script"||t.name==="style"))}function xL(t,e){return t.children&&!zs(t,e)}function EL(t,e){return zs(t,e)||t.kind==="interpolation"||xE(t)}function xE(t){return FE(t).startsWith("pre")}function AL(t,e){let r=s();if(r&&!t.prev&&t.parent?.tagDefinition?.ignoreFirstLf)return t.kind==="interpolation";return r;function s(){return Yl(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.prev&&(t.prev.kind==="text"||t.prev.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:sa(t.parent)?!0:!(!t.prev&&(t.parent.kind==="root"||sa(t)&&t.parent||zs(t.parent,e)||Zl(t.parent,e)||!kL(t.parent.cssDisplay))||t.prev&&!NL(t.prev.cssDisplay))}}function CL(t,e){return Yl(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.next&&(t.next.kind==="text"||t.next.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:sa(t.parent)?!0:!(!t.next&&(t.parent.kind==="root"||sa(t)&&t.parent||zs(t.parent,e)||Zl(t.parent,e)||!IL(t.parent.cssDisplay))||t.next&&!BL(t.next.cssDisplay))}function bL(t,e){return _L(t.cssDisplay)&&!zs(t,e)}function Uu(t){return Yl(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function TL(t){return EE(t)||t.kind==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>FL(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.kind!=="text"&&CE(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||bE(t.lastChild))}function EE(t){return t.kind==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function Ec(t){return TE(t)||t.prev&&vL(t.prev)||AE(t)}function vL(t){return TE(t)||t.kind==="element"&&t.fullName==="br"||AE(t)}function AE(t){return CE(t)&&bE(t)}function CE(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.line<t.sourceSpan.start.line:t.parent.kind==="root"||t.parent.startSourceSpan.end.line<t.sourceSpan.start.line)}function bE(t){return t.hasTrailingSpaces&&(t.next?t.next.sourceSpan.start.line>t.sourceSpan.end.line:t.parent.kind==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function TE(t){switch(t.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function cf(t){return t.lastChild?cf(t.lastChild):t}function FL(t){return t.children?.some(e=>e.kind!=="text")}function vE(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function wL(t,e){let{name:r,attrMap:s}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(s,"src"))return;let{type:i,lang:n}=t.attrMap;return!n&&!i?"babel":pf(e,{language:n})??vE(i)}function SL(t,e){if(!hf(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:s,lang:i}=r;return pf(e,{language:i})??vE(s)}function PL(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?pf(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function OD(t,e){return wL(t,e)??PL(t,e)??SL(t,e)}function ru(t){return t==="block"||t==="list-item"||t.startsWith("table")}function kL(t){return!ru(t)&&t!=="inline-block"}function IL(t){return!ru(t)&&t!=="inline-block"}function BL(t){return!ru(t)}function NL(t){return!ru(t)}function _L(t){return!ru(t)&&t!=="inline-block"}function sa(t){return FE(t).startsWith("pre")}function LL(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function OL(t,e){if(ya(t,e))return"block";if(t.prev?.kind==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.kind==="element"&&t.namespace==="svg")if(LL(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(t.kind==="element"&&(!t.namespace||r||tu(t))&&Object.prototype.hasOwnProperty.call(_D,t.name))return _D[t.name]}return dL}function FE(t){return t.kind==="element"&&(!t.namespace||tu(t))&&Object.prototype.hasOwnProperty.call(LD,t.name)?LD[t.name]:fL}function wE(t){return nr(0,nr(0,t,"&apos;","'"),"&quot;",'"')}function Cr(t){return wE(t.value)}var $L=new Set(["template","style","script"]);function Zl(t,e){return ya(t,e)&&!$L.has(t.fullName)}function ya(t,e){return e.parser==="vue"&&t.kind==="element"&&t.parent.kind==="root"&&t.fullName.toLowerCase()!=="html"}function hf(t,e){return ya(t,e)&&(Zl(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function ML(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function RL(t,e){let r=t.parent;if(!ya(r,e))return!1;let s=r.fullName,i=t.fullName;return s==="script"&&i==="setup"||s==="style"&&i==="vars"}function SE(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?fs(e):fs(Vr.dedentString(DE(e)),Et):fa(wt,Vr.split(e))}function PE(t,e){return ya(t,e)&&t.name==="script"}function jL(t){let{valueSpan:e,value:r}=t;return e.end.offset-e.start.offset===r.length+2}function kE(t,e){if(jL(t))return!1;let{value:r}=t;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||e.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var IE=/\{\{(.+?)\}\}/su,UL=({node:{value:t}})=>IE.test(t);async function qL(t,e,r){let s=Cr(r.node),i=[];for(let[n,o]of s.split(IE).entries())if(n%2===0)i.push(fs(o));else try{i.push($t(["{{",bs([wt,await zr(o,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),wt,"}}"]))}catch{i.push("{{",fs(o),"}}")}return i}var Ac=t=>(e,r,s)=>zr(Cr(s.node),e,{parser:t},ma),VL=[{test(t){let e=t.node.fullName;return e.startsWith("(")&&e.endsWith(")")||e.startsWith("on-")},print:Ac("__ng_action")},{test(t){let e=t.node.fullName;return e.startsWith("[")&&e.endsWith("]")||/^bind(?:on)?-/u.test(e)||/^ng-(?:if|show|hide|class|style)$/u.test(e)},print:Ac("__ng_binding")},{test:t=>t.node.fullName.startsWith("*"),print:Ac("__ng_directive")},{test:t=>/^i18n(?:-.+)?$/u.test(t.node.fullName),print:zL},{test:UL,print:qL}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="angular"&&t(r),print:e}));function zL(t,e,{node:r}){let s=Cr(r);return eu(cE(SE(r,s.trim())),!s.includes("@@"))}var HL=VL,WL=({node:t},e)=>!e.parentParser&&t.fullName==="class"&&!t.value.includes("{{"),JL=(t,e,r)=>Cr(r.node).trim().split(/\s+/u).join(" "),KL=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],GL=new Set(KL),XL=({node:t},e)=>GL.has(t.fullName)&&!e.parentParser&&!t.value.includes("{{"),YL=(t,e,r)=>zr(Cr(r.node),t,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function QL(t){let e=[];for(let r of t.split(";")){if(r=Vr.trim(r),!r)continue;let[s,...i]=Vr.split(r);e.push({name:s,value:i})}return e}var ZL=QL,e7=({node:t},e)=>t.fullName==="allow"&&!e.parentParser&&t.parent.fullName==="iframe"&&!t.value.includes("{{");function t7(t,e,r){let{node:s}=r,i=ZL(Cr(s));return i.length===0?[""]:eu(i.map(({name:n,value:o},l)=>[[n,...o].join(" "),l===i.length-1?Oo(";"):[";",wt]]))}function $D(t){return t===" "||t===`
99
+ `||t==="\f"||t==="\r"||t===" "}var r7=/^[ \t\n\r\u000c]+/,s7=/^[, \t\n\r\u000c]+/,i7=/^[^ \t\n\r\u000c]+/,n7=/[,]+$/,MD=/^\d+$/,a7=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function o7(t){let e=t.length,r,s,i,n,o,l=0,c;function f(y){let g,x=y.exec(t.substring(l));if(x)return[g]=x,l+=g.length,g}let h=[];for(;;){if(f(s7),l>=e){if(h.length===0)throw new Error("Must contain one or more image candidate strings.");return h}c=l,r=f(i7),s=[],r.slice(-1)===","?(r=r.replace(n7,""),D()):d()}function d(){for(f(r7),i="",n="in descriptor";;){if(o=t.charAt(l),n==="in descriptor")if($D(o))i&&(s.push(i),i="",n="after descriptor");else if(o===","){l+=1,i&&s.push(i),D();return}else if(o==="(")i+=o,n="in parens";else if(o===""){i&&s.push(i),D();return}else i+=o;else if(n==="in parens")if(o===")")i+=o,n="in descriptor";else if(o===""){s.push(i),D();return}else i+=o;else if(n==="after descriptor"&&!$D(o))if(o===""){D();return}else n="in descriptor",l-=1;l+=1}}function D(){let y=!1,g,x,C,b,E={},v,F,T,w,P;for(b=0;b<s.length;b++)v=s[b],F=v[v.length-1],T=v.substring(0,v.length-1),w=parseInt(T,10),P=parseFloat(T),MD.test(T)&&F==="w"?((g||x)&&(y=!0),w===0?y=!0:g=w):a7.test(T)&&F==="x"?((g||x||C)&&(y=!0),P<0?y=!0:x=P):MD.test(T)&&F==="h"?((C||x)&&(y=!0),w===0?y=!0:C=w):y=!0;if(!y)E.source={value:r,startOffset:c},g&&(E.width={value:g}),x&&(E.density={value:x}),C&&(E.height={value:C}),h.push(E);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${v}".`)}}var u7=o7,l7=t=>t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"),BE={width:"w",height:"h",density:"x"},p7=Object.keys(BE);function c7(t,e,r){let s=Cr(r.node),i=u7(s),n=p7.filter(y=>i.some(g=>Object.prototype.hasOwnProperty.call(g,y)));if(n.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[o]=n,l=BE[o],c=i.map(y=>y.source.value),f=Math.max(...c.map(y=>y.length)),h=i.map(y=>y[o]?String(y[o].value):""),d=h.map(y=>{let g=y.indexOf(".");return g===-1?y.length:g}),D=Math.max(...d);return eu(fa([",",wt],c.map((y,g)=>{let x=[y],C=h[g];if(C){let b=f-y.length+1,E=D-d[g],v=" ".repeat(b+E);x.push(Oo(v," "),C+l)}return x})))}var h7=({node:t},e)=>t.fullName==="style"&&!e.parentParser&&!t.value.includes("{{"),d7=async(t,e,r)=>eu(await t(Cr(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),Cc=new WeakMap;function f7(t,e){let{root:r}=t;return Cc.has(r)||Cc.set(r,r.children.some(s=>PE(s,e)&&["ts","typescript"].includes(s.attrMap.lang))),Cc.get(r)}var Da=f7;function m7(t,e,r){let s=Cr(r.node);return zr(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ma)}function y7(t,e,r,s){let i=Cr(r.node),n=Da(r,s)?"babel-ts":"babel";return zr(`function _(${i}) {}`,t,{parser:n,__isVueBindings:!0})}async function D7(t,e,r,s){let i=Cr(r.node),{left:n,operator:o,right:l}=g7(i),c=Da(r,s);return[$t(await zr(`function _(${n}) {}`,t,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",o," ",await zr(l,t,{parser:c?"__ts_expression":"__js_expression"})]}function g7(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,s=/^\(|\)$/gu,i=t.match(e);if(!i)return;let n={for:i[3].trim()};if(!n.for)return;let o=nr(0,i[1].trim(),s,""),l=o.match(r);l?(n.alias=o.replace(r,""),n.iterator1=l[1].trim(),l[2]&&(n.iterator2=l[2].trim())):n.alias=o;let c=[n.alias,n.iterator1,n.iterator2];if(!c.some((f,h)=>!f&&(h===0||c.slice(h+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:i[2],right:n.for}}var x7=[{test:t=>t.node.fullName==="v-for",print:D7},{test:(t,e)=>t.node.fullName==="generic"&&PE(t.parent,e),print:m7},{test:({node:t},e)=>ML(t)||RL(t,e),print:y7},{test(t){let e=t.node.fullName;return e.startsWith("@")||e.startsWith("v-on:")},print:E7},{test(t){let e=t.node.fullName;return e.startsWith(":")||e.startsWith(".")||e.startsWith("v-bind:")},print:A7},{test:t=>t.node.fullName.startsWith("v-"),print:NE}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="vue"&&t(r,s),print:e}));async function E7(t,e,r,s){try{return await NE(t,e,r,s)}catch(o){if(o.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let i=Cr(r.node),n=Da(r,s)?"__vue_ts_event_binding":"__vue_event_binding";return zr(i,t,{parser:n},ma)}function A7(t,e,r,s){let i=Cr(r.node),n=Da(r,s)?"__vue_ts_expression":"__vue_expression";return zr(i,t,{parser:n},ma)}function NE(t,e,r,s){let i=Cr(r.node),n=Da(r,s)?"__ts_expression":"__js_expression";return zr(i,t,{parser:n},ma)}var C7=x7,b7=[{test:l7,print:c7},{test:h7,print:d7},{test:XL,print:YL},{test:WL,print:JL},{test:e7,print:t7},...C7,...HL].map(({test:t,print:e})=>({test:t,print:v7(e)}));function T7(t,e){let{node:r}=t,{value:s}=r;if(s)return kE(r,e)?[r.rawName,"=",s]:b7.find(({test:i})=>i(t,e))?.print}function v7(t){return async(e,r,s,i)=>{let n=await t(e,r,s,i);if(n)return n=pE(n,o=>typeof o=="string"?nr(0,o,'"',"&quot;"):o),[s.node.rawName,'="',$t(n),'"']}}var F7=T7,su=t=>t.sourceSpan.start.offset,ep=t=>t.sourceSpan.end.offset;function dh(t,e){return[t.isSelfClosing?"":w7(t,e),go(t,e)]}function w7(t,e){return t.lastChild&&$o(t.lastChild)?"":[S7(t,e),df(t,e)]}function go(t,e){return(t.next?rn(t.next):nu(t.parent))?"":[iu(t,e),tn(t,e)]}function S7(t,e){return nu(t)?iu(t.lastChild,e):""}function tn(t,e){return $o(t)?df(t.parent,e):tp(t)?ff(t.next,e):""}function df(t,e){if(_E(t,e))return"";switch(t.kind){case"ieConditionalComment":return"<!";case"element":if(t.hasHtmComponentClosingTag)return"<//";default:return`</${t.rawName}`}}function iu(t,e){if(_E(t,e))return"";switch(t.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function _E(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Ql(t)||gE(t.parent,e))}function rn(t){return t.prev&&t.prev.kind!=="docType"&&t.kind!=="angularControlFlowBlock"&&!$r(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function nu(t){return t.lastChild?.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!$r(cf(t.lastChild))&&!sa(t)}function $o(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&$r(cf(t))}function tp(t){return t.next&&!$r(t.next)&&$r(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function P7(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function rp(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function k7(t,e,r){let{node:s}=t;if(!lf(s.attrs))return s.isSelfClosing?" ":"";let i=s.prev?.kind==="comment"&&P7(s.prev.value),n=typeof i=="boolean"?()=>i:Array.isArray(i)?h=>i.includes(h.rawName):()=>!1,o=t.map(({node:h})=>n(h)?fs(e.originalText.slice(su(h),ep(h))):r(),"attrs"),l=s.kind==="element"&&s.fullName==="script"&&s.attrs.length===1&&s.attrs[0].fullName==="src"&&s.children.length===0,c=e.singleAttributePerLine&&s.attrs.length>1&&!ya(s,e)?Et:wt,f=[bs([l?" ":wt,fa(c,o)])];return s.firstChild&&rp(s.firstChild)||s.isSelfClosing&&nu(s.parent)||l?f.push(s.isSelfClosing?" ":""):f.push(e.bracketSameLine?s.isSelfClosing?" ":"":s.isSelfClosing?wt:Gt),f}function I7(t){return t.firstChild&&rp(t.firstChild)?"":mf(t)}function fh(t,e,r){let{node:s}=t;return[xo(s,e),k7(t,e,r),s.isSelfClosing?"":I7(s)]}function xo(t,e){return t.prev&&tp(t.prev)?"":[sn(t,e),ff(t,e)]}function sn(t,e){return rp(t)?mf(t.parent):rn(t)?iu(t.prev,e):""}var RD="<!doctype";function ff(t,e){switch(t.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${t.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(t.value==="html"){let{filepath:s}=e;if(s&&/\.html?$/u.test(s))return RD}let r=su(t);return e.originalText.slice(r,r+RD.length)}case"angularIcuExpression":return"{";case"element":if(t.condition)return`<!--[if ${t.condition}]><!--><${t.rawName}`;default:return`<${t.rawName}`}}function mf(t){switch(t.kind){case"ieConditionalComment":return"]>";case"element":if(t.condition)return"><!--<![endif]-->";default:return">"}}function B7(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&rp(t.firstChild)&&(r-=mf(t).length);let s=t.endSourceSpan.start.offset;return t.lastChild&&$o(t.lastChild)?s+=df(t,e).length:nu(t)&&(s-=iu(t.lastChild,e).length),e.originalText.slice(r,s)}var LE=B7,N7=new Set(["if","else if","for","switch","case"]);function _7(t,e){let{node:r}=t;switch(r.kind){case"element":if(zs(r,e)||r.kind==="interpolation")return;if(!r.isSelfClosing&&hf(r,e)){let s=OD(r,e);return s?async(i,n)=>{let o=LE(r,e),l=/^\s*$/u.test(o),c="";return l||(c=await i(DE(o),{parser:s,__embeddedInHtml:!0}),l=c===""),[sn(r,e),$t(fh(t,e,n)),l?"":Et,c,l?"":Et,dh(r,e),tn(r,e)]}:void 0}break;case"text":if(zs(r.parent,e)){let s=OD(r.parent,e);if(s)return async i=>{let n=s==="markdown"?Vr.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,o={parser:s,__embeddedInHtml:!0};if(e.parser==="html"&&s==="babel"){let l="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(l="module"),o.__babelSourceType=l}return[Zo,sn(r,e),await i(n,o),tn(r,e)]}}else if(r.parent.kind==="interpolation")return async s=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?i.parser="__ng_interpolation":e.parser==="vue"?i.parser=Da(t,e)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[bs([wt,await s(r.value,i)]),r.parent.next&&rn(r.parent.next)?" ":wt]};break;case"attribute":return F7(t,e);case"angularControlFlowBlockParameters":return N7.has(t.parent.name)?K5:void 0;case"angularLetDeclarationInitializer":return s=>zr(r.value,s,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var L7=_7,Va=null;function Eo(t){if(Va!==null&&typeof Va.property){let e=Va;return Va=Eo.prototype=null,e}return Va=Eo.prototype=t??Object.create(null),new Eo}var O7=10;for(let t=0;t<=O7;t++)Eo();function $7(t){return Eo(t)}function M7(t,e="type"){$7(t);function r(s){let i=s[e],n=t[i];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return n}return r}var R7=M7,vr=[["children"],[]],j7={root:vr[0],element:["attrs","children"],ieConditionalComment:vr[0],ieConditionalStartComment:vr[1],ieConditionalEndComment:vr[1],interpolation:vr[0],text:vr[0],docType:vr[1],comment:vr[1],attribute:vr[1],cdata:vr[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:vr[0],angularControlFlowBlockParameter:vr[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:vr[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},U7=R7(j7,"kind"),q7=U7,V7="format",z7=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,H7=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,W7=t=>H7.test(t),J7=t=>z7.test(t),K7=t=>`<!-- @${V7} -->
100
+
101
+ ${t}`,G7=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function OE(t){let e=ep(t);return t.kind==="element"&&!t.endSourceSpan&&lf(t.children)?Math.max(e,OE(ha(0,t.children,-1))):e}function za(t,e,r){let s=t.node;if(Ql(s)){let i=OE(s);return[sn(s,e),fs(Vr.trimEnd(e.originalText.slice(su(s)+(s.prev&&tp(s.prev)?ff(s).length:0),i-(s.next&&rn(s.next)?iu(s,e).length:0)))),tn(s,e)]}return r()}function qu(t,e){return $r(t)&&$r(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?Ec(e)?Et:wt:"":Ec(e)?Et:Gt:tp(t)&&(Ql(e)||e.firstChild||e.isSelfClosing||e.kind==="element"&&e.attrs.length>0)||t.kind==="element"&&t.isSelfClosing&&rn(e)?"":!e.isLeadingSpaceSensitive||Ec(e)||rn(e)&&t.lastChild&&$o(t.lastChild)&&t.lastChild.lastChild&&$o(t.lastChild.lastChild)?Et:e.hasLeadingSpaces?wt:Gt}function yf(t,e,r){let{node:s}=t;if(EE(s))return[Zo,...t.map(()=>{let n=t.node,o=n.prev?qu(n.prev,n):"";return[o?[o,Uu(n.prev)?Et:""]:"",za(t,e,r)]},"children")];let i=s.children.map(()=>Symbol(""));return t.map(({node:n,index:o})=>{if($r(n)){if(n.prev&&$r(n.prev)){let y=qu(n.prev,n);if(y)return Uu(n.prev)?[Et,Et,za(t,e,r)]:[y,za(t,e,r)]}return za(t,e,r)}let l=[],c=[],f=[],h=[],d=n.prev?qu(n.prev,n):"",D=n.next?qu(n,n.next):"";return d&&(Uu(n.prev)?l.push(Et,Et):d===Et?l.push(Et):$r(n.prev)?c.push(d):c.push(Oo("",Gt,{groupId:i[o-1]}))),D&&(Uu(n)?$r(n.next)&&h.push(Et,Et):D===Et?$r(n.next)&&h.push(Et):f.push(D)),[...l,$t([...c,$t([za(t,e,r),...f],{id:i[o]})]),...h]},"children")}function X7(t,e,r){let{node:s}=t,i=[];if(eO(t)&&i.push("} "),i.push("@",s.name),Q7(s))return i.push(";"),i;if(s.parameters&&i.push(" (",$t(r("parameters")),")"),!Z7(s)){i.push(" {");let n=$E(s);s.children.length>0?(s.firstChild.hasLeadingSpaces=!0,s.lastChild.hasTrailingSpaces=!0,i.push(bs([Et,yf(t,e,r)])),n&&i.push(Et,"}")):n&&i.push("}")}return $t(i,{shouldBreak:!0})}function $E(t){return!(t.next?.kind==="angularControlFlowBlock"&&G7.get(t.name)?.has(t.next.name))}var Y7=t=>t?.kind==="angularControlFlowBlock"&&(t.name==="case"||t.name==="default"),Q7=t=>t?.kind==="angularControlFlowBlock"&&t.name==="default never";function Z7(t){return Y7(t)&&t.endSourceSpan&&t.endSourceSpan.start.offset===t.endSourceSpan.end.offset}function eO(t){let{previous:e}=t;return e?.kind==="angularControlFlowBlock"&&!Ql(e)&&!$E(e)}function tO(t,e,r){return[bs([Gt,fa([";",wt],t.map(r,"children"))]),Gt]}function rO(t,e,r){let{node:s}=t;return[xo(s,e),$t([s.switchValue.trim(),", ",s.type,s.cases.length>0?[",",bs([wt,fa(wt,t.map(r,"cases"))])]:"",Gt]),go(s,e)]}function sO(t,e,r){let{node:s}=t;return[s.value," {",$t([bs([Gt,t.map(({node:i,isLast:n})=>{let o=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&o.unshift(wt),i.hasTrailingSpaces&&!n&&o.push(wt)),o},"expression")]),Gt]),"}"]}function iO(t,e,r){let{node:s}=t;if(gE(s,e))return[sn(s,e),$t(fh(t,e,r)),fs(LE(s,e)),...dh(s,e),tn(s,e)];let i=s.children.length===1&&(s.firstChild.kind==="interpolation"||s.firstChild.kind==="angularIcuExpression")&&s.firstChild.isLeadingSpaceSensitive&&!s.firstChild.hasLeadingSpaces&&s.lastChild.isTrailingSpaceSensitive&&!s.lastChild.hasTrailingSpaces,n=Symbol("element-attr-group-id"),o=h=>$t([$t(fh(t,e,r),{id:n}),h,dh(s,e)]),l=h=>i?P5(h,{groupId:n}):(zs(s,e)||Zl(s,e))&&s.parent.kind==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?h:bs(h),c=()=>i?Oo(Gt,"",{groupId:n}):s.firstChild.hasLeadingSpaces&&s.firstChild.isLeadingSpaceSensitive?wt:s.firstChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive?S5(Gt):Gt,f=()=>(s.next?rn(s.next):nu(s.parent))?s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?" ":"":i?Oo(Gt,"",{groupId:n}):s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?wt:(s.lastChild.kind==="comment"||s.lastChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(s.lastChild.value)?"":Gt;return s.children.length===0?o(s.hasDanglingSpaces&&s.isDanglingSpaceSensitive?wt:""):o([TL(s)?Zo:"",l([c(),yf(t,e,r)]),f()])}var Ns=(function(t){return t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",t})({});function sp(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function jD(t){return sp(t)[1]==="ng-container"}function UD(t){return sp(t)[1]==="ng-content"}function ol(t){return t===null?null:sp(t)[0]}function Ao(t,e){return t?`:${t}:${e}`:e}var qD={name:"custom-elements"},VD={name:"no-errors-schema"},Ln=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})({}),nO=/-+([a-z0-9])/g;function aO(t){return t.replace(nO,(...e)=>e[1].toUpperCase())}var ul;function zD(){return ul||(ul={},Ha(Ln.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ha(Ln.STYLE,["*|style"]),Ha(Ln.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),Ha(Ln.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Ha(Ln.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),ul}function Ha(t,e){for(let r of e)ul[r.toLowerCase()]=t}var oO=class{},uO="boolean",lO="number",pO="string",cO="object",hO=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],ME=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),dO=Array.from(ME).reduce((t,[e,r])=>(t.set(e,r),t),new Map),fO=class extends oO{_schema=new Map;_eventSchema=new Map;constructor(){super(),hO.forEach(e=>{let r=new Map,s=new Set,[i,n]=e.split("|"),o=n.split(","),[l,c]=i.split("^");l.split(",").forEach(h=>{this._schema.set(h.toLowerCase(),r),this._eventSchema.set(h.toLowerCase(),s)});let f=c&&this._schema.get(c.toLowerCase());if(f){for(let[h,d]of f)r.set(h,d);for(let h of this._eventSchema.get(c.toLowerCase()))s.add(h)}o.forEach(h=>{if(h.length>0)switch(h[0]){case"*":s.add(h.substring(1));break;case"!":r.set(h.substring(1),uO);break;case"#":r.set(h.substring(1),lO);break;case"%":r.set(h.substring(1),cO);break;default:r.set(h,pO)}})})}hasProperty(e,r,s){if(s.some(i=>i.name===VD.name))return!0;if(e.indexOf("-")>-1){if(jD(e)||UD(e))return!1;if(s.some(i=>i.name===qD.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(s=>s.name===VD.name)||e.indexOf("-")>-1&&(jD(e)||UD(e)||r.some(s=>s.name===qD.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,s){s&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let i=zD()[e+"|"+r];return i||(i=zD()["*|"+r],i||Ln.NONE)}getMappedPropName(e){return ME.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
102
+ If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(s=>dO.get(s)??s)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return aO(e)}normalizeAnimationStyleValue(e,r,s){let i="",n=s.toString().trim(),o=null;if(mO(e)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let l=s.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&l[1].length==0&&(o=`Please provide a CSS unit value for ${r}:${s}`)}return{error:o,value:n+i}}};function mO(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var qe=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:t,implicitNamespacePrefix:e,contentType:r=Ns.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:n=!1,preventNamespaceInheritance:o=!1,canSelfClose:l=!1}={}){t&&t.length>0&&t.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=e||null,this.contentType=r,this.ignoreFirstLf=n,this.preventNamespaceInheritance=o,this.canSelfClose=l??i}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return typeof this.contentType=="object"?(t===void 0?void 0:this.contentType[t])??this.contentType.default:this.contentType}},HD,Wa;function mh(t){return Wa||(HD=new qe({canSelfClose:!0}),Wa=Object.assign(Object.create(null),{base:new qe({isVoid:!0}),meta:new qe({isVoid:!0}),area:new qe({isVoid:!0}),embed:new qe({isVoid:!0}),link:new qe({isVoid:!0}),img:new qe({isVoid:!0}),input:new qe({isVoid:!0}),param:new qe({isVoid:!0}),hr:new qe({isVoid:!0}),br:new qe({isVoid:!0}),source:new qe({isVoid:!0}),track:new qe({isVoid:!0}),wbr:new qe({isVoid:!0}),p:new qe({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new qe({closedByChildren:["tbody","tfoot"]}),tbody:new qe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new qe({closedByChildren:["tbody"],closedByParent:!0}),tr:new qe({closedByChildren:["tr"],closedByParent:!0}),td:new qe({closedByChildren:["td","th"],closedByParent:!0}),th:new qe({closedByChildren:["td","th"],closedByParent:!0}),col:new qe({isVoid:!0}),svg:new qe({implicitNamespacePrefix:"svg"}),foreignObject:new qe({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new qe({implicitNamespacePrefix:"math"}),li:new qe({closedByChildren:["li"],closedByParent:!0}),dt:new qe({closedByChildren:["dt","dd"]}),dd:new qe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new qe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new qe({closedByChildren:["optgroup"],closedByParent:!0}),option:new qe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new qe({ignoreFirstLf:!0}),listing:new qe({ignoreFirstLf:!0}),style:new qe({contentType:Ns.RAW_TEXT}),script:new qe({contentType:Ns.RAW_TEXT}),title:new qe({contentType:{default:Ns.ESCAPABLE_RAW_TEXT,svg:Ns.PARSABLE_DATA}}),textarea:new qe({contentType:Ns.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new fO().allKnownElementNames().forEach(e=>{!Wa[e]&&ol(e)===null&&(Wa[e]=new qe({canSelfClose:!1}))})),Wa[t]??HD}var yh=class RE{constructor(e,r,s,i){this.file=e,this.offset=r,this.line=s,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,s=r.length,i=this.offset,n=this.line,o=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==10){n--;let l=r.substring(0,i-1).lastIndexOf(`
103
+ `);o=l>0?i-l:i}else o--;for(;i<s&&e>0;){let l=r.charCodeAt(i);i++,e--,l==10?(n++,o=0):o++}return new RE(this.file,i,n,o)}getContext(e,r){let s=this.file.content,i=this.offset;if(i!=null){i>s.length-1&&(i=s.length-1);let n=i,o=0,l=0;for(;o<e&&i>0&&(i--,o++,!(s[i]==`
104
+ `&&++l==r)););for(o=0,l=0;o<e&&n<s.length-1&&(n++,o++,!(s[n]==`
105
+ `&&++l==r)););return{before:s.substring(i,this.offset),after:s.substring(this.offset,n+1)}}return null}},jE=class{constructor(t,e){this.content=t,this.url=e}},je=class{constructor(t,e,r=t,s=null){this.start=t,this.end=e,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},WD=(function(t){return t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR",t})({}),On=class extends Error{constructor(e,r,s=WD.ERROR,i){super(r),this.span=e,this.msg=r,this.level=s,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${WD[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},Dn=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},yO=class extends Dn{constructor(e,r,s,i){super(r,i),this.value=e,this.tokens=s}visit(e,r){return e.visitText(this,r)}kind="text"},DO=class extends Dn{constructor(e,r,s,i){super(r,i),this.value=e,this.tokens=s}visit(e,r){return e.visitCdata(this,r)}kind="cdata"},gO=class extends Dn{constructor(e,r,s,i,n,o){super(i,o),this.switchValue=e,this.type=r,this.cases=s,this.switchValueSourceSpan=n}visit(e,r){return e.visitExpansion(this,r)}kind="expansion"},xO=class{constructor(e,r,s,i,n){this.value=e,this.expression=r,this.sourceSpan=s,this.valueSourceSpan=i,this.expSourceSpan=n}visit(e,r){return e.visitExpansionCase(this,r)}kind="expansionCase"},EO=class extends Dn{constructor(e,r,s,i,n,o,l){super(s,l),this.name=e,this.value=r,this.keySpan=i,this.valueSpan=n,this.valueTokens=o}visit(e,r){return e.visitAttribute(this,r)}kind="attribute";get nameSpan(){return this.keySpan}},ji=class extends Dn{constructor(e,r,s,i,n,o,l,c=null,f=null,h,d){super(o,d),this.name=e,this.attrs=r,this.directives=s,this.children=i,this.isSelfClosing=n,this.startSourceSpan=l,this.endSourceSpan=c,this.nameSpan=f,this.isVoid=h}visit(e,r){return e.visitElement(this,r)}kind="element"},AO=class{constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitComment(this,r)}kind="comment"},CO=class{constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitDocType(this,r)}kind="docType"},In=class extends Dn{constructor(e,r,s,i,n,o,l=null,c){super(i,c),this.name=e,this.parameters=r,this.children=s,this.nameSpan=n,this.startSourceSpan=o,this.endSourceSpan=l}visit(e,r){return e.visitBlock(this,r)}kind="block"},Is=class extends Dn{constructor(e,r,s,i,n,o,l,c,f,h=null,d){super(c,d),this.componentName=e,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=n,this.children=o,this.isSelfClosing=l,this.startSourceSpan=f,this.endSourceSpan=h}visit(e,r){return e.visitComponent(this,r)}kind="component"},bO=class{constructor(e,r,s,i,n=null){this.name=e,this.attrs=r,this.sourceSpan=s,this.startSourceSpan=i,this.endSourceSpan=n}visit(e,r){return e.visitDirective(this,r)}kind="directive"},JD=class{constructor(t,e){this.expression=t,this.sourceSpan=e}visit(t,e){return t.visitBlockParameter(this,e)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},KD=class{constructor(e,r,s,i,n){this.name=e,this.value=r,this.sourceSpan=s,this.nameSpan=i,this.valueSpan=n}visit(e,r){return e.visitLetDeclaration(this,r)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function UE(t,e,r=null){let s=[],i=t.visit?n=>t.visit(n,r)||n.visit(t,r):n=>n.visit(t,r);return e.forEach(n=>{let o=i(n);o&&s.push(o)}),s}var TO=class{constructor(){}visitElement(e,r){this.visitChildren(r,s=>{s(e.attrs),s(e.directives),s(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,s=>{s(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,s=>{s(e.parameters),s(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitComponent(e,r){this.visitChildren(r,s=>{s(e.attrs),s(e.children)})}visitDirective(e,r){this.visitChildren(r,s=>{s(e.attrs)})}visitChildren(e,r){let s=[],i=this;function n(o){o&&s.push(UE(i,o,e))}return r(n),Array.prototype.concat.apply([],s)}},Mo={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
106
+ `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"};Mo.ngsp="";var se=(function(t){return t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",t[t.TEXT=5]="TEXT",t[t.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=7]="RAW_TEXT",t[t.INTERPOLATION=8]="INTERPOLATION",t[t.ENCODED_ENTITY=9]="ENCODED_ENTITY",t[t.COMMENT_START=10]="COMMENT_START",t[t.COMMENT_END=11]="COMMENT_END",t[t.CDATA_START=12]="CDATA_START",t[t.CDATA_END=13]="CDATA_END",t[t.ATTR_NAME=14]="ATTR_NAME",t[t.ATTR_QUOTE=15]="ATTR_QUOTE",t[t.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",t[t.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",t[t.DOC_TYPE_START=18]="DOC_TYPE_START",t[t.DOC_TYPE_END=19]="DOC_TYPE_END",t[t.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",t[t.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",t[t.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",t[t.BLOCK_CLOSE=27]="BLOCK_CLOSE",t[t.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",t[t.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",t[t.LET_START=30]="LET_START",t[t.LET_VALUE=31]="LET_VALUE",t[t.LET_END=32]="LET_END",t[t.INCOMPLETE_LET=33]="INCOMPLETE_LET",t[t.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",t[t.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",t[t.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",t[t.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",t[t.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",t[t.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",t[t.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",t[t.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",t[t.EOF=42]="EOF",t})({});function Cl(t){return t>=9&&t<=32||t==160}function au(t){return 48<=t&&t<=57}function Ro(t){return t>=97&&t<=122||t>=65&&t<=90}function vO(t){return t>=97&&t<=102||t>=65&&t<=70||au(t)}function Co(t){return t===10||t===13}function GD(t){return 48<=t&&t<=55}function bc(t){return t===39||t===34||t===96}var FO=class{constructor(t,e,r){this.tokens=t,this.errors=e,this.nonNormalizedIcuExpressions=r}};function wO(t,e,r,s={}){let i=new IO(new jE(t,e),r,s);return i.tokenize(),new FO(MO(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var SO=/\r\n?/g;function Ui(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function XD(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function PO(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Dh=(function(t){return t.HEX="hexadecimal",t.DEC="decimal",t})(Dh||{}),kO=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Ja={start:"{{",end:"}}"},IO=class{_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,r,s){this._getTagContentType=r,this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(n=>n.codePointAt(0)||0),this._canSelfClose=s.canSelfClose||!1,this._allowHtmComponentClosingTags=s.allowHtmComponentClosingTags||!1;let i=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new RO(e,i):new qE(e,i),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0,this._selectorlessEnabled=s.selectorlessEnabled??!1;try{this._cursor.init()}catch(n){this.handleError(n)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(SO,`
107
+ `)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(se.TEXT,se.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(se.EOF),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>Cl(s)?!e:$O(s)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(se.BLOCK_OPEN_START,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ot),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ot);else{r.type=se.INCOMPLETE_BLOCK_OPEN;return}if(r.parts[0]==="default never"&&this._attemptCharCode(59)){this._beginToken(se.BLOCK_OPEN_END),this._endToken([]),this._beginToken(se.BLOCK_CLOSE),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(se.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(r.parts[0]==="case"||r.parts[0]==="default")?(this._beginToken(se.BLOCK_OPEN_END),this._endToken([]),this._beginToken(se.BLOCK_CLOSE),this._endToken([])):r.type=se.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(se.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(QD);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(se.BLOCK_PARAMETER);let e=this._cursor.clone(),r=null,s=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let i=this._cursor.peek();if(i===92)this._cursor.advance();else if(i===r)r=null;else if(r===null&&bc(i))r=i;else if(i===40&&r===null)s++;else if(i===41&&r===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(QD)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(se.LET_START,e),Cl(this._cursor.peek()))this._attemptCharCodeUntilFn(ot);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=se.INCOMPLETE_LET;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ot),!this._attemptCharCode(61)){r.type=se.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(s=>ot(s)&&!Co(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(se.LET_END),this._endToken([]),this._cursor.advance()):(r.type=se.INCOMPLETE_LET,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(s=>Ro(s)||s===36||s===95||r&&au(s)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(se.LET_VALUE,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;bc(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===92?(this._cursor.advance(),!1):s===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(LO(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new On(this._cursor.getSpan(r),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new On(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let s={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new On(r,e);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(e){if(e instanceof Df&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof On)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return OO(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let s=this._cursor.clone();for(let i=0;i<r;i++)if(!this._attemptCharCode(e.charCodeAt(i)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let r=0;r<e.length;r++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(r)))return!1;return!0}_requireStr(e){let r=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(r))}_requireStrCaseInsensitive(e){let r=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(r))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,r){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<r)throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let s=this._cursor.clone();for(let i=0;i<r;i++){if(s.peek()!==e.charCodeAt(i))return!1;s.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&kO.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(se.ENCODED_ENTITY);let r=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let s=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._cursor.clone();if(this._attemptCharCodeUntilFn(NO),this._cursor.peek()!=59){this._cursor.advance();let o=s?Dh.HEX:Dh.DEC;throw this._createError(PO(o,this._cursor.getChars(r)),this._cursor.getSpan())}let n=this._cursor.getChars(i);this._cursor.advance();try{let o=parseInt(n,s?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(r)])}catch{throw this._createError(XD(this._cursor.getChars(r)),this._cursor.getSpan())}}else{let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(_O),this._cursor.peek()!=59)this._beginToken(e,r),this._cursor=s,this._endToken(["&"]);else{let i=this._cursor.getChars(s);this._cursor.advance();let n=Mo.hasOwnProperty(i)&&Mo[i];if(!n)throw this._createError(XD(i),this._cursor.getSpan(r));this._endToken([n,`&${i};`])}}}_consumeRawText(e,r){this._beginToken(e?se.ESCAPABLE_RAW_TEXT:se.RAW_TEXT);let s=[];for(;;){let i=this._cursor.clone(),n=r();if(this._cursor=i,n)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(se.ESCAPABLE_RAW_TEXT),this._beginToken(se.ESCAPABLE_RAW_TEXT)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(se.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(se.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(se.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(se.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(se.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(se.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(se.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(se.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let r=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!BO(this._cursor.peek());)this._cursor.advance();let i;this._cursor.peek()===58?(s=this._cursor.getChars(r),this._cursor.advance(),i=this._cursor.clone()):i=r,this._requireCharCodeUntilFn(e,s===""?0:1);let n=this._cursor.getChars(i);return[s,n]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>Co(e)||e===0),this._attemptCharCodeUntilFn(ot)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(e===0)return!0;if(e===42){let r=this._cursor.clone();return r.advance(),r.peek()===47}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(ot)}_consumeTagOpen(e){let r,s,i,n,o=[];try{if(this._selectorlessEnabled&&Vu(this._cursor.peek()))n=this._consumeComponentOpenStart(e),[i,s,r]=n.parts,s&&(i+=`:${s}`),r&&(i+=`:${r}`),this._attemptCharCodeUntilFn(ot);else{if(!Ro(this._cursor.peek()))throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(e));n=this._consumeTagOpenStart(e),s=n.parts[0],r=i=n.parts[1],this._attemptCharCodeUntilFn(ot)}for(;;){if(this._attemptStr("//")){this._consumeSingleLineComment();continue}if(this._attemptStr("/*")){this._consumeMultiLineComment();continue}if(e2(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let c=this._cursor.clone(),f=c.clone();f.advance(),Vu(f.peek())&&this._consumeDirective(c,f)}else{let c=this._consumeAttribute();o.push(c)}}n.type===se.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(c){if(c instanceof On){n?n.type=n.type===se.COMPONENT_OPEN_START?se.INCOMPLETE_COMPONENT_OPEN:se.INCOMPLETE_TAG_OPEN:(this._beginToken(se.TEXT,e),this._endToken(["<"]));return}throw c}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===se.TAG_OPEN_END_VOID)return;let l=this._getTagContentType(r,s,this._fullNameStack.length>0,o);this._handleFullNameStackForTagOpen(s,r),l===Ns.RAW_TEXT?this._consumeRawTextWithTagClose(s,n,i,!1):l===Ns.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,n,i,!0)}_consumeRawTextWithTagClose(e,r,s,i){this._consumeRawText(i,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(ot),!this._attemptStrCaseInsensitive(e&&r.type!==se.COMPONENT_OPEN_START?`${e}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(ot),this._attemptCharCode(62))),this._beginToken(r.type===se.COMPONENT_OPEN_START?se.COMPONENT_CLOSE:se.TAG_CLOSE),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken(r.parts),this._handleFullNameStackForTagClose(e,s)}_consumeTagOpenStart(e){this._beginToken(se.TAG_OPEN_START,e);let r=this._consumePrefixAndName(qi);return this._endToken(r)}_consumeComponentOpenStart(e){this._beginToken(se.COMPONENT_OPEN_START,e);let r=this._consumeComponentName();return this._endToken(r)}_consumeComponentName(){let e=this._cursor.clone();for(;ZD(this._cursor.peek());)this._cursor.advance();let r=this._cursor.getChars(e),s="",i="";return this._cursor.peek()===58&&(this._cursor.advance(),[s,i]=this._consumePrefixAndName(qi)),[r,s,i]}_consumeAttribute(){let[e,r]=this._consumeAttributeName(),s;return this._attemptCharCodeUntilFn(ot),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ot),s=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ot),{prefix:e,name:r,value:s}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Ui(e),this._cursor.getSpan());this._beginToken(se.ATTR_NAME);let r;if(this._openDirectiveCount>0){let i=0;r=n=>{if(this._openDirectiveCount>0){if(n===40)i++;else if(n===41){if(i===0)return!0;i--}}return qi(n)}}else if(e===91){let i=0;r=n=>(n===91?i++:n===93&&i--,i<=0?qi(n):Co(n))}else r=qi;let s=this._consumePrefixAndName(r);return this._endToken(s),s}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let s=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(se.ATTR_VALUE_TEXT,se.ATTR_VALUE_INTERPOLATION,s,s),this._consumeQuote(r)}else{let r=()=>qi(this._cursor.peek());e=this._consumeWithInterpolation(se.ATTR_VALUE_TEXT,se.ATTR_VALUE_INTERPOLATION,r,r)}return e}_consumeQuote(e){this._beginToken(se.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?se.TAG_OPEN_END_VOID:se.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?se.COMPONENT_OPEN_END_VOID:se.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==62&&!Vu(r.peek());)r.advance();if(Vu(r.peek())){this._beginToken(se.COMPONENT_CLOSE,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken(s);return}}if(this._beginToken(se.TAG_CLOSE,e),this._attemptCharCodeUntilFn(ot),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken([]);else{let[r,s]=this._consumePrefixAndName(qi);this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken([r,s]),this._handleFullNameStackForTagClose(r,s)}}_consumeExpansionFormStart(){this._beginToken(se.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(se.EXPANSION_FORM_START),this._beginToken(se.RAW_TEXT);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let i=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(i)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ot),this._beginToken(se.RAW_TEXT);let s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ot)}_consumeExpansionCaseStart(){this._beginToken(se.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ot),this._beginToken(se.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.push(se.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(se.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(se.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,s,i){this._beginToken(e);let n=[];for(;!s();){let l=this._cursor.clone();this._attemptStr(Ja.start)?(this._endToken([this._processCarriageReturns(n.join(""))],l),n.length=0,this._consumeInterpolation(r,l,i),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(""))]),n.length=0,this._consumeEntity(e),this._beginToken(e)):n.push(this._readChar())}this._inInterpolation=!1;let o=this._processCarriageReturns(n.join(""));return this._endToken([o]),o}_consumeInterpolation(e,r,s){let i=[];this._beginToken(e,r),i.push(Ja.start);let n=this._cursor.clone(),o=null,l=!1;for(;this._cursor.peek()!==0&&(s===null||!s());){let c=this._cursor.clone();if(this._isTagStart()){this._cursor=c,i.push(this._getProcessedChars(n,c)),this._endToken(i);return}if(o===null)if(this._attemptStr(Ja.end)){i.push(this._getProcessedChars(n,c)),i.push(Ja.end),this._endToken(i);return}else this._attemptStr("//")&&(l=!0);let f=this._cursor.peek();this._cursor.advance(),f===92?this._cursor.advance():f===o?o=null:!l&&o===null&&bc(f)&&(o=f)}i.push(this._getProcessedChars(n,this._cursor)),this._endToken(i)}_consumeDirective(e,r){for(this._requireCharCode(64),this._cursor.advance();ZD(this._cursor.peek());)this._cursor.advance();this._beginToken(se.DIRECTIVE_NAME,e);let s=this._cursor.getChars(r);if(this._endToken([s]),this._attemptCharCodeUntilFn(ot),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(se.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ot);!e2(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(ot),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Ui(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(se.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ot)}}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===se.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===se.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),r=this._attemptStr(Ja.start);return this._cursor=e,!r}_handleFullNameStackForTagOpen(e,r){let s=Ao(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===s)&&this._fullNameStack.push(s)}_handleFullNameStackForTagClose(e,r){let s=Ao(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===s&&this._fullNameStack.pop()}};function ot(t){return!Cl(t)||t===0}function qi(t){return Cl(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function BO(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function NO(t){return t===59||t===0||!vO(t)}function _O(t){return t===59||t===0||!(Ro(t)||au(t))}function LO(t){return t!==125}function OO(t,e){return YD(t)===YD(e)}function YD(t){return t>=97&&t<=122?t-97+65:t}function $O(t){return Ro(t)||au(t)||t===95}function QD(t){return t!==59&&ot(t)}function Vu(t){return t===95||t>=65&&t<=90}function ZD(t){return Ro(t)||au(t)||t===95}function e2(t){return t===47||t===62||t===60||t===0}function MO(t){let e=[],r;for(let s=0;s<t.length;s++){let i=t[s];r&&r.type===se.TEXT&&i.type===se.TEXT||r&&r.type===se.ATTR_VALUE_TEXT&&i.type===se.ATTR_VALUE_TEXT?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,e.push(r))}return e}var qE=class gh{state;file;input;end;constructor(e,r){if(e instanceof gh){this.file=e.file,this.input=e.input,this.end=e.end;let s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new gh(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,r){e=e||this;let s=e;if(r)for(;this.diff(e)>0&&r.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let i=this.locationFromCursor(e);return new je(i,this.locationFromCursor(this),s!==e?this.locationFromCursor(s):i)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Df('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Co(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new yh(e.file,e.state.offset,e.state.line,e.state.column)}},RO=class xh extends qE{internalState;constructor(e,r){e instanceof xh?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new xh(this)}getChars(e){let r=e.clone(),s="";for(;r.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(r.peek()),r.advance();return s}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;e()!==125;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(r,s)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(GD(e())){let r="",s=0,i=this.clone();for(;GD(e())&&s<3;)i=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Co(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let s=this.input.slice(e.internalState.offset,e.internalState.offset+r),i=parseInt(s,16);if(isNaN(i))throw e.state=e.internalState,new Df("Invalid hexadecimal escape sequence",e);return i}},Df=class extends Error{constructor(t,e){super(t),this.msg=t,this.cursor=e,Object.setPrototypeOf(this,new.target.prototype)}},_t=class VE extends On{static create(e,r,s){return new VE(e,r,s)}constructor(e,r,s){super(r,s),this.elementName=e}},jO=class{constructor(e,r){this.rootNodes=e,this.errors=r}},UO=class{constructor(e){this.getTagDefinition=e}parse(e,r,s,i=!1,n){let o=g=>(x,...C)=>g(x.toLowerCase(),...C),l=i?this.getTagDefinition:o(this.getTagDefinition),c=g=>l(g).getContentType(),f=i?n:o(n),h=wO(e,r,n?(g,x,C,b)=>{let E=f(g,x,C,b);return E!==void 0?E:c(g)}:c,s),d=s&&s.canSelfClose||!1,D=s&&s.allowHtmComponentClosingTags||!1,y=new qO(h.tokens,l,d,D,i);return y.build(),new jO(y.rootNodes,[...h.errors,...y.errors])}},qO=class zE{_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,r,s,i,n){this.tokens=e,this.tagDefinitionResolver=r,this.canSelfClose=s,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=n,this._advance()}build(){for(;this._peek.type!==se.EOF;)this._peek.type===se.TAG_OPEN_START||this._peek.type===se.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===se.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===se.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===se.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===se.TEXT||this._peek.type===se.RAW_TEXT||this._peek.type===se.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===se.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===se.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===se.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===se.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===se.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===se.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===se.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===se.COMPONENT_OPEN_START||this._peek.type===se.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===se.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof In&&this.errors.push(_t.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let r=this._advance(),s=this._getText(r),i=this._advanceIf(se.CDATA_END);this._addToParent(new DO(s,new je(e.sourceSpan.start,(i||r).sourceSpan.end),[r]))}_consumeComment(e){let r=this._advanceIf(se.RAW_TEXT),s=this._advanceIf(se.COMMENT_END),i=r!=null?r.parts[0].trim():null,n=s==null?e.sourceSpan:new je(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new AO(i,n))}_consumeDocType(e){let r=this._advanceIf(se.RAW_TEXT),s=this._advanceIf(se.DOC_TYPE_END),i=r!=null?r.parts[0].trim():null,n=new je(e.sourceSpan.start,(s||r||e).sourceSpan.end);this._addToParent(new CO(i,n))}_consumeExpansion(e){let r=this._advance(),s=this._advance(),i=[];for(;this._peek.type===se.EXPANSION_CASE_VALUE;){let o=this._parseExpansionCase();if(!o)return;i.push(o)}if(this._peek.type!==se.EXPANSION_FORM_END){this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let n=new je(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new gO(r.parts[0],s.parts[0],i,n,r.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==se.EXPANSION_CASE_EXP_START)return this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),s=this._collectExpansionExpTokens(r);if(!s)return null;let i=this._advance();s.push({type:se.EOF,parts:[],sourceSpan:i.sourceSpan});let n=new zE(s,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(n.build(),n.errors.length>0)return this.errors=this.errors.concat(n.errors),null;let o=new je(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart),l=new je(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new xO(e.parts[0],n.rootNodes,o,e.sourceSpan,l)}_collectExpansionExpTokens(e){let r=[],s=[se.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===se.EXPANSION_FORM_START||this._peek.type===se.EXPANSION_CASE_EXP_START)&&s.push(this._peek.type),this._peek.type===se.EXPANSION_CASE_EXP_END)if(t2(s,se.EXPANSION_CASE_EXP_START)){if(s.pop(),s.length===0)return r}else return this.errors.push(_t.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===se.EXPANSION_FORM_END)if(t2(s,se.EXPANSION_FORM_START))s.pop();else return this.errors.push(_t.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===se.EOF)return this.errors.push(_t.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==`
108
+ `){var s;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&!((s=this._getTagDefinition(i))===null||s===void 0)&&s.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],s=e.sourceSpan,i=e.parts[0];if(i.length>0&&i[0]===`
109
+ `){var n;let o=this._getContainer();o!=null&&o.children.length===0&&!((n=this._getTagDefinition(o))===null||n===void 0)&&n.ignoreFirstLf&&(i=i.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[i]})}for(;this._peek.type===se.INTERPOLATION||this._peek.type===se.TEXT||this._peek.type===se.ENCODED_ENTITY;)e=this._advance(),r.push(e),e.type===se.INTERPOLATION?i+=e.parts.join("").replace(/&([^;]+);/g,r2):e.type===se.ENCODED_ENTITY?i+=e.parts[0]:i+=e.parts.join("");if(i.length>0){let o=e.sourceSpan;this._addToParent(new yO(i,new je(s.start,o.end,s.fullStart,s.details),r))}}_closeVoidElement(){var e;let r=this._getContainer();r!==null&&!((e=this._getTagDefinition(r))===null||e===void 0)&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var r;let s=[],i=[];this._consumeAttributesAndDirectives(s,i);let n=this._getElementFullName(e,this._getClosestElementLikeParent()),o=this._getTagDefinition(n),l=!1;if(this._peek.type===se.TAG_OPEN_END_VOID){this._advance(),l=!0;let x=this._getTagDefinition(n);this.canSelfClose||x?.canSelfClose||ol(n)!==null||x?.isVoid||this.errors.push(_t.create(n,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===se.TAG_OPEN_END&&(this._advance(),l=!1);let c=this._peek.sourceSpan.fullStart,f=new je(e.sourceSpan.start,c,e.sourceSpan.fullStart),h=new je(e.sourceSpan.start,c,e.sourceSpan.fullStart),d=new je(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),D=new ji(n,s,i,[],l,f,h,void 0,d,o?.isVoid??!1),y=this._getContainer(),g=y!==null&&!!(!((r=this._getTagDefinition(y))===null||r===void 0)&&r.isClosedByChild(D.name));this._pushContainer(D,g),l?this._popContainer(n,ji,f):e.type===se.INCOMPLETE_TAG_OPEN&&(this._popContainer(n,ji,null),this.errors.push(_t.create(n,f,`Opening tag "${n}" not terminated.`)))}_consumeComponentStartTag(e){var r;let s=e.parts[0],i=[],n=[];this._consumeAttributesAndDirectives(i,n);let o=this._getClosestElementLikeParent(),l=this._getComponentTagName(e,o),c=this._getComponentFullName(e,o),f=this._peek.type===se.COMPONENT_OPEN_END_VOID;this._advance();let h=this._peek.sourceSpan.fullStart,d=new je(e.sourceSpan.start,h,e.sourceSpan.fullStart),D=new Is(s,l,c,i,n,[],f,d,new je(e.sourceSpan.start,h,e.sourceSpan.fullStart),void 0),y=this._getContainer(),g=y!==null&&D.tagName!==null&&!!(!((r=this._getTagDefinition(y))===null||r===void 0)&&r.isClosedByChild(D.tagName));this._pushContainer(D,g),f?this._popContainer(c,Is,d):e.type===se.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(c,Is,null),this.errors.push(_t.create(c,d,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(e,r){for(;this._peek.type===se.ATTR_NAME||this._peek.type===se.DIRECTIVE_NAME;)this._peek.type===se.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let r=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(r,Is,e.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],i;s instanceof Is&&s.componentName===e.parts[0]?i=`, did you mean "${s.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let n=`Unexpected closing tag "${r}"${i}`;this.errors.push(_t.create(r,e.sourceSpan,n))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof ji?this.tagDefinitionResolver(e.name):e instanceof Is&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var r;let s=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(s&&!((r=this._getTagDefinition(s))===null||r===void 0)&&r.isVoid)this.errors.push(_t.create(s,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(s,ji,e.sourceSpan)){let i=`Unexpected closing tag "${s}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(_t.create(s,e.sourceSpan,i))}}_popContainer(e,r,s){let i=!1;for(let o=this._containerStack.length-1;o>=0;o--){var n;let l=this._containerStack[o],c=l instanceof Is?l.fullName:l.name;if(ol(c)?c===e:(c===e||e===null)&&l instanceof r)return l.endSourceSpan=s,l.sourceSpan.end=s!==null?s.end:l.sourceSpan.end,this._containerStack.splice(o,this._containerStack.length-o),!i;(l instanceof In||!(!((n=this._getTagDefinition(l))===null||n===void 0)&&n.closedByParent))&&(i=!0)}return!1}_consumeAttr(e){let r=Ao(e.parts[0],e.parts[1]),s=e.sourceSpan.end,i;this._peek.type===se.ATTR_QUOTE&&(i=this._advance());let n="",o=[],l,c;if(this._peek.type===se.ATTR_VALUE_TEXT)for(l=this._peek.sourceSpan,c=this._peek.sourceSpan.end;this._peek.type===se.ATTR_VALUE_TEXT||this._peek.type===se.ATTR_VALUE_INTERPOLATION||this._peek.type===se.ENCODED_ENTITY;){let h=this._advance();o.push(h),h.type===se.ATTR_VALUE_INTERPOLATION?n+=h.parts.join("").replace(/&([^;]+);/g,r2):h.type===se.ENCODED_ENTITY?n+=h.parts[0]:n+=h.parts.join(""),c=s=h.sourceSpan.end}this._peek.type===se.ATTR_QUOTE&&(c=s=this._advance().sourceSpan.end);let f=l&&c&&new je(i?.sourceSpan.start??l.start,c,i?.sourceSpan.fullStart??l.fullStart);return new EO(r,n,new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,f,o.length>0?o:void 0,void 0)}_consumeDirective(e){let r=[],s=e.sourceSpan.end,i=null;if(this._advance(),this._peek.type===se.DIRECTIVE_OPEN){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===se.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===se.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(_t.create(null,e.sourceSpan,"Unterminated directive definition"))}let n=new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new je(n.start,i===null?e.sourceSpan.end:i.end,n.fullStart);return new bO(e.parts[0],r,o,n,i)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===se.BLOCK_PARAMETER;){let l=this._advance();r.push(new JD(l.parts[0],l.sourceSpan))}this._peek.type===se.BLOCK_OPEN_END&&this._advance();let s=this._peek.sourceSpan.fullStart,i=new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),n=new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new In(e.parts[0],r,[],i,e.sourceSpan,n);this._pushContainer(o,!1)}_consumeBlockClose(e){let r=this._containerStack.length,s=this._containerStack[r-1];if(!this._popContainer(null,In,e.sourceSpan)){if(this._containerStack.length<r){let i=s instanceof Is?s.fullName:s.name;this.errors.push(_t.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${i}> element? If you meant to write the \`}\` character, you should use the "&#125;" HTML entity instead.`));return}this.errors.push(_t.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "&#125;" HTML entity instead.'))}}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===se.BLOCK_PARAMETER;){let l=this._advance();r.push(new JD(l.parts[0],l.sourceSpan))}let s=this._peek.sourceSpan.fullStart,i=new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),n=new je(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new In(e.parts[0],r,[],i,e.sourceSpan,n);this._pushContainer(o,!1),this._popContainer(null,In,null),this.errors.push(_t.create(e.parts[0],i,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],s,i;if(this._peek.type!==se.LET_VALUE){this.errors.push(_t.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==se.LET_END){this.errors.push(_t.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let n=i.sourceSpan.fullStart,o=new je(e.sourceSpan.start,n,e.sourceSpan.fullStart),l=e.sourceSpan.toString().lastIndexOf(r),c=new je(e.sourceSpan.start.moveBy(l),e.sourceSpan.end),f=new KD(r,s.parts[0],o,c,s.sourceSpan);this._addToParent(f)}_consumeIncompleteLet(e){let r=e.parts[0]??"",s=r?` "${r}"`:"";if(r.length>0){let i=e.sourceSpan.toString().lastIndexOf(r),n=new je(e.sourceSpan.start.moveBy(i),e.sourceSpan.end),o=new je(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new KD(r,"",e.sourceSpan,n,o);this._addToParent(l)}this.errors.push(_t.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let r=this._containerStack[e];if(r instanceof ji||r instanceof Is)return r}return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r){return Ao(this._getPrefix(e,r),e.parts[1])}_getComponentFullName(e,r){let s=e.parts[0],i=this._getComponentTagName(e,r);return i===null?s:i.startsWith(":")?s+i:`${s}:${i}`}_getComponentTagName(e,r){let s=this._getPrefix(e,r),i=e.parts[2];return!s&&!i?null:!s&&i?i:Ao(s,i||"ng-component")}_getPrefix(e,r){var s;let i,n;if(e.type===se.COMPONENT_OPEN_START||e.type===se.INCOMPLETE_COMPONENT_OPEN||e.type===se.COMPONENT_CLOSE?(i=e.parts[1],n=e.parts[2]):(i=e.parts[0],n=e.parts[1]),i=i||((s=this._getTagDefinition(n))===null||s===void 0?void 0:s.implicitNamespacePrefix)||"",!i&&r){let o=r instanceof ji?r.name:r.tagName;if(o!==null){let l=sp(o)[1],c=this._getTagDefinition(l);c!==null&&!c.preventNamespaceInheritance&&(i=ol(o))}}return i}};function t2(t,e){return t.length>0&&t[t.length-1]===e}function r2(t,e){return Mo[e]!==void 0?Mo[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var VO=class extends UO{constructor(){super(mh)}parse(e,r,s,i=!1,n){return super.parse(e,r,s,i,n)}},Tc;function Eh(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:i=!1,getTagContentType:n,tokenizeAngularBlocks:o=!1,tokenizeAngularLetDeclaration:l=!1,enableAngularSelectorlessSyntax:c=!1}=e;return Tc??(Tc=new VO),Tc.parse(t,"angular-html-parser",{tokenizeExpansionForms:o,canSelfClose:r,allowHtmComponentClosingTags:s,tokenizeBlocks:o,tokenizeLet:l,selectorlessEnabled:c},i,n)}var zO=[WO,JO,GO,YO,QO,t$,ZO,e$,r$,XO];function HO(t,e){for(let r of zO)r(t,e);return t}function WO(t){t.walk(e=>{if(e.kind==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind==="text"&&e.children[0].value[0]===`
110
+ `){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function JO(t){let e=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;t.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let i=r.children[s];if(!e(i))continue;let n=i.prev,o=i.firstChild;r.removeChild(n),s--;let l=new je(n.sourceSpan.start,o.sourceSpan.end),c=new je(l.start,i.sourceSpan.end);i.condition=n.condition,i.sourceSpan=c,i.startSourceSpan=l,i.removeChild(o)}})}function KO(t,e,r){t.walk(s=>{if(s.children)for(let i=0;i<s.children.length;i++){let n=s.children[i];if(n.kind!=="text"&&!e(n))continue;n.kind!=="text"&&(n.kind="text",n.value=r(n));let o=n.prev;!o||o.kind!=="text"||(o.value+=n.value,o.sourceSpan=new je(o.sourceSpan.start,n.sourceSpan.end),s.removeChild(n),i--)}})}function GO(t){return KO(t,e=>e.kind==="cdata",e=>`<![CDATA[${e.value}]]>`)}function XO(t){let e=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!Vr.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";t.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let i=r.children[s];if(!e(i))continue;let n=i.prev,o=i.next;n.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+o.value,n.sourceSpan=new je(n.sourceSpan.start,o.sourceSpan.end),n.isTrailingSpaceSensitive=o.isTrailingSpaceSensitive,n.hasTrailingSpaces=o.hasTrailingSpaces,r.removeChild(i),s--,r.removeChild(o)}})}function YO(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(s=>{if(xL(s,e))for(let i of s.children){if(i.kind!=="text")continue;let n=i.sourceSpan.start,o=null,l=i.value.split(r);for(let c=0;c<l.length;c++,n=o){let f=l[c];if(c%2===0){o=n.moveBy(f.length),f.length>0&&s.insertChildBefore(i,{kind:"text",value:f,sourceSpan:new je(n,o)});continue}o=n.moveBy(f.length+4),s.insertChildBefore(i,{kind:"interpolation",sourceSpan:new je(n,o),children:f.length===0?[]:[{kind:"text",value:f,sourceSpan:new je(n.moveBy(2),o.moveBy(-2))}]})}s.removeChild(i)}})}function QO(t,e){t.walk(r=>{let s=r.$children;if(!s)return;if(s.length===0||s.length===1&&s[0].kind==="text"&&Vr.trim(s[0].value).length===0){r.hasDanglingSpaces=s.length>0,r.$children=[];return}let i=EL(r,e),n=xE(r);if(!i)for(let o=0;o<s.length;o++){let l=s[o];if(l.kind!=="text")continue;let{leadingWhitespace:c,text:f,trailingWhitespace:h}=DL(l.value),d=l.prev,D=l.next;f?(l.value=f,l.sourceSpan=new je(l.sourceSpan.start.moveBy(c.length),l.sourceSpan.end.moveBy(-h.length)),c&&(d&&(d.hasTrailingSpaces=!0),l.hasLeadingSpaces=!0),h&&(l.hasTrailingSpaces=!0,D&&(D.hasLeadingSpaces=!0))):(r.removeChild(l),o--,(c||h)&&(d&&(d.hasTrailingSpaces=!0),D&&(D.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=i,r.isIndentationSensitive=n})}function ZO(t){t.walk(e=>{e.isSelfClosing=!e.children||e.kind==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function e$(t,e){t.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function t$(t,e){t.walk(r=>{r.cssDisplay=OL(r,e)})}function r$(t,e){t.walk(r=>{let{children:s}=r;if(s){if(s.length===0){r.isDanglingSpaceSensitive=bL(r,e);return}for(let i of s)i.isLeadingSpaceSensitive=AL(i,e),i.isTrailingSpaceSensitive=CL(i,e);for(let i=0;i<s.length;i++){let n=s[i];n.isLeadingSpaceSensitive=(i===0||n.prev.isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,n.isTrailingSpaceSensitive=(i===s.length-1||n.next.isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive}}})}var s$=HO;function i$(t,e,r){let{node:s}=t;switch(s.kind){case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(s),[$t(yf(t,e,r)),Et];case"element":case"ieConditionalComment":return iO(t,e,r);case"angularControlFlowBlock":return X7(t,e,r);case"angularControlFlowBlockParameters":return tO(t,e,r);case"angularControlFlowBlockParameter":return Vr.trim(s.expression);case"angularLetDeclaration":return $t(["@let ",$t([s.id," =",$t(bs([wt,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return s.value;case"angularIcuExpression":return rO(t,e,r);case"angularIcuCase":return sO(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[xo(s),go(s)];case"interpolation":return[xo(s,e),...t.map(r,"children"),go(s,e)];case"text":{if(s.parent.kind==="interpolation"){let l=/\n[^\S\n]*$/u,c=l.test(s.value),f=c?s.value.replace(l,""):s.value;return[fs(f),c?Et:""]}let i=sn(s,e),n=SE(s),o=tn(s,e);return n[0]=[i,n[0]],n.push([n.pop(),o]),cE(n)}case"docType":return[$t([xo(s,e)," ",nr(0,s.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),go(s,e)];case"comment":return[sn(s,e),fs(e.originalText.slice(su(s),ep(s))),tn(s,e)];case"attribute":{if(s.value===null)return s.rawName;let i=wE(s.value),n=kE(s,e)?"":O5(i,'"');return[s.rawName,"=",n,fs(n==='"'?nr(0,i,'"',"&quot;"):nr(0,i,"'","&apos;")),n]}default:throw new V5(s,"HTML")}}var n$={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:s$,print:i$,insertPragma:K7,massageAstNode:W5,embed:L7,getVisitorKeys:q7},a$=n$,HE=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],s2={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},i2="HTML",o$={bracketSameLine:s2.bracketSameLine,htmlWhitespaceSensitivity:{category:i2,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:s2.singleAttributePerLine,vueIndentScriptAndStyle:{category:i2,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},WE=o$,gf={};Zx(gf,{angular:()=>L$,html:()=>B$,lwc:()=>$$,mjml:()=>_$,vue:()=>O$});function u$(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var l$=u$,p$={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function JE(t){return{...p$,...t}}function KE(t){let{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,shouldParseAsRawText:i,tokenizeAngularBlocks:n,tokenizeAngularLetDeclaration:o}=t;return{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,getTagContentType:i?(...l)=>i(...l)?Ns.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n,tokenizeAngularLetDeclaration:o}}var vc=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),c$=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),zu={attrs:!0,children:!0,cases:!0,expression:!0},n2=new Set(["parent"]),$n,Ah,Ch,h$=class ao{constructor(e={}){f5(this,$n),ID(this,"kind"),ID(this,"parent");for(let r of new Set([...n2,...Object.keys(e)]))this.setProperty(r,e[r]);if(Yl(e))for(let r of Object.getOwnPropertySymbols(e))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in zu&&(r=r.map(s=>this.createChild(s))),!n2.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let s in zu){let i=this[s];if(i){let n=f$(i,o=>o.map(e));r!==i&&(r||(r=new ao({parent:this.parent})),r.setProperty(s,n))}}if(r)for(let s in this)s in zu||(r[s]=this[s]);return e(r||this)}walk(e){for(let r in zu){let s=this[r];if(s)for(let i=0;i<s.length;i++)s[i].walk(e)}e(this)}createChild(e){let r=e instanceof ao?e.clone():new ao(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){let s=this.$children;s.splice(s.indexOf(e),0,this.createChild(r))}removeChild(e){let r=this.$children;r.splice(r.indexOf(e),1)}replaceChild(e,r){let s=this.$children;s[s.indexOf(e)]=this.createChild(r)}clone(){return new ao(this)}get $children(){return this[ju(this,$n,Ah)]}set $children(e){this[ju(this,$n,Ah)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return ha(1,this.$children,-1)}get prev(){let e=ju(this,$n,Ch);return e[e.indexOf(this)-1]}get next(){let e=ju(this,$n,Ch);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};$n=new WeakSet,Ah=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Ch=function(){return this.parent?.$children??[]};var d$=h$;function f$(t,e){let r=t.map(e);return r.some((s,i)=>s!==t[i])?r:t}var m$=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:D$},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:g$},{regex:/^<!\s*\[endif\]$/u,parse:x$}];function y$(t,e){if(t.value)for(let{regex:r,parse:s}of m$){let i=t.value.match(r);if(i)return s(t,i,e)}return null}function D$(t,e,r){let{openingTagSuffix:s,condition:i,data:n}=e.groups,o=4+s.length,l=t.sourceSpan.start.moveBy(o),c=l.moveBy(n.length),[f,h]=(()=>{try{return[!0,r(n,l).children]}catch{return[!1,[{kind:"text",value:n,sourceSpan:new je(l,c)}]]}})();return{kind:"ieConditionalComment",complete:f,children:h,condition:nr(0,i.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new je(t.sourceSpan.start,l),endSourceSpan:new je(c,t.sourceSpan.end)}}function g$(t,e){let{condition:r}=e.groups;return{kind:"ieConditionalStartComment",condition:nr(0,r.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function x$(t){return{kind:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var E$=class extends TO{visitExpansionCase(t,e){e.parseOptions.name==="angular"&&this.visitChildren(e,r=>{r(t.expression)})}visit(t,{parseOptions:e}){v$(t),F$(t,e),S$(t,e),w$(t)}};function A$(t,e,r,s){UE(new E$,t.children,{parseOptions:r}),e&&t.children.unshift(e);let i=new d$(t);return i.walk(n=>{if(n.kind==="comment"){let o=y$(n,s);o&&n.parent.replaceChild(n,o)}C$(n),b$(n),T$(n)}),i}function C$(t){if(t.kind==="block"){if(t.name=nr(0,t.name.toLowerCase(),/\s+/gu," ").trim(),t.kind="angularControlFlowBlock",!lf(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.kind="angularControlFlowBlockParameter";t.parameters={kind:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new je(t.parameters[0].sourceSpan.start,ha(0,t.parameters,-1).sourceSpan.end)}}}function b$(t){t.kind==="letDeclaration"&&(t.kind="angularLetDeclaration",t.id=t.name,t.init={kind:"angularLetDeclarationInitializer",sourceSpan:new je(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function T$(t){t.kind==="expansion"&&(t.kind="angularIcuExpression"),t.kind==="expansionCase"&&(t.kind="angularIcuCase")}function a2(t,e){let r=t.toLowerCase();return e(r)?r:t}function o2(t){let e=t.name.startsWith(":")?t.name.slice(1).split(":")[0]:null,r=t.nameSpan.toString(),s=e!==null&&r.startsWith(`${e}:`),i=s?r.slice(e.length+1):r;t.name=i,t.namespace=e,t.hasExplicitNamespace=s}function v$(t){switch(t.kind){case"element":o2(t);for(let e of t.attrs)o2(e),e.valueSpan?(e.value=e.valueSpan.toString(),/["']/u.test(e.value[0])&&(e.value=e.value.slice(1,-1))):e.value=null;break;case"comment":t.value=t.sourceSpan.toString().slice(4,-3);break;case"text":t.value=t.sourceSpan.toString();break}}function F$(t,e){if(t.kind==="element"){let r=mh(e.isTagNameCaseSensitive?t.name:t.name.toLowerCase());!t.namespace||t.namespace===r.implicitNamespacePrefix||tu(t)?t.tagDefinition=r:t.tagDefinition=mh("")}}function w$(t){t.sourceSpan&&t.endSourceSpan&&(t.sourceSpan=new je(t.sourceSpan.start,t.endSourceSpan.end))}function S$(t,e){if(t.kind==="element"&&(e.normalizeTagName&&(!t.namespace||t.namespace===t.tagDefinition.implicitNamespacePrefix||tu(t))&&(t.name=a2(t.name,r=>c$.has(r))),e.normalizeAttributeName))for(let r of t.attrs)r.namespace||(r.name=a2(r.name,s=>vc.has(t.name)&&(vc.get("*").has(s)||vc.get(t.name).has(s))))}function GE(t,e){let{rootNodes:r,errors:s}=Eh(t,KE(e));return s.length>0&&bh(s[0]),{parseOptions:e,rootNodes:r}}function P$(t,e){let r=KE(e),{rootNodes:s,errors:i}=Eh(t,r);if(s.some(c=>c.kind==="docType"&&c.value==="html"||c.kind==="element"&&c.name.toLowerCase()==="html"))return GE(t,xf);let n,o=()=>n??(n=Eh(t,{...r,getTagContentType:void 0})),l=c=>{let{offset:f}=c.startSourceSpan.start;return o().rootNodes.find(h=>h.kind==="element"&&h.startSourceSpan.start.offset===f)??c};for(let[c,f]of s.entries())if(f.kind==="element"){if(f.isVoid)i=o().errors,s[c]=l(f);else if(k$(f)){let{endSourceSpan:h,startSourceSpan:d}=f,D=o().errors.find(y=>y.span.start.offset>d.start.offset&&y.span.start.offset<h.end.offset);D&&bh(D),s[c]=l(f)}}return i.length>0&&bh(i[0]),{parseOptions:e,rootNodes:s}}function k$(t){if(t.kind!=="element"||t.name!=="template")return!1;let e=t.attrs.find(r=>r.name==="lang")?.value;return!e||e==="html"}function bh(t){let{msg:e,span:{start:r,end:s}}=t;throw l$(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:s.line+1,column:s.col+1}},cause:t})}function I$(t,e,r,s,i,n){let{offset:o}=s,l=nr(0,e.slice(0,o),/[^\n]/gu," ")+r,c=XE(l,t,{...i,shouldParseFrontMatter:!1},n);c.sourceSpan=new je(s,ha(0,c.children,-1).sourceSpan.end);let f=c.children[0];return f.length===o?c.children.shift():(f.sourceSpan=new je(f.sourceSpan.start.moveBy(o),f.sourceSpan.end),f.value=f.value.slice(o)),c}function XE(t,e,r,s={}){let{frontMatter:i,content:n}=r.shouldParseFrontMatter?hL(t):{content:t},o=new jE(t,s.filepath),l=new yh(o,0,0,0),c=l.moveBy(t.length),{parseOptions:f,rootNodes:h}=e(n,r),d={kind:"root",sourceSpan:new je(l,c),children:h},D;if(i){let[y,g]=[i.start,i.end].map(x=>new yh(o,x.index,x.line-1,x.column));D={...i,kind:"frontMatter",sourceSpan:new je(y,g)}}return A$(d,D,f,(y,g)=>I$(e,t,y,g,f,s))}var xf=JE({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function ou(t){let e=JE(t),r=e.name==="vue"?P$:GE;return{parse:(s,i)=>XE(s,r,e,i),hasPragma:W7,hasIgnorePragma:J7,astFormat:"html",locStart:su,locEnd:ep}}var B$=ou(xf),N$=new Set(["mj-style","mj-raw"]),_$=ou({...xf,name:"mjml",shouldParseAsRawText:t=>N$.has(t)}),L$=ou({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),O$=ou({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,s){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||s.some(({name:i,value:n})=>i==="lang"&&n!=="html"&&n!==""&&n!==void 0))}}),$$=ou({name:"lwc",canSelfClose:!1}),YE={html:a$};const M$=Object.freeze(Object.defineProperty({__proto__:null,default:eE,languages:HE,options:WE,parsers:gf,printers:YE},Symbol.toStringTag,{value:"Module"}));var R$=Object.create,Ef=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,U$=Object.getOwnPropertyNames,q$=Object.getPrototypeOf,V$=Object.prototype.hasOwnProperty,fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),QE=(t,e)=>{for(var r in e)Ef(t,r,{get:e[r],enumerable:!0})},z$=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of U$(e))!V$.call(t,i)&&i!==r&&Ef(t,i,{get:()=>e[i],enumerable:!(s=j$(e,i))||s.enumerable});return t},ga=(t,e,r)=>(r=t!=null?R$(q$(t)):{},z$(Ef(r,"default",{value:t,enumerable:!0}),t)),Af=fe((t,e)=>{e.exports=r;function r(s){return String(s).replace(/\s+/g," ")}}),H$=fe((t,e)=>{e.exports=g;var r=9,s=10,i=32,n=33,o=58,l=91,c=92,f=93,h=94,d=96,D=4,y=1024;function g(T){var w=this.Parser,P=this.Compiler;x(w)&&b(w,T),C(P)&&E(P)}function x(T){return!!(T&&T.prototype&&T.prototype.blockTokenizers)}function C(T){return!!(T&&T.prototype&&T.prototype.visitors)}function b(T,w){for(var P=w||{},k=T.prototype,N=k.blockTokenizers,_=k.inlineTokenizers,L=k.blockMethods,I=k.inlineMethods,M=N.definition,K=_.reference,$=[],z=-1,re=L.length,te;++z<re;)te=L[z],!(te==="newline"||te==="indentedCode"||te==="paragraph"||te==="footnoteDefinition")&&$.push([te]);$.push(["footnoteDefinition"]),P.inlineNotes&&(v(I,"reference","inlineNote"),_.inlineNote=Q),v(L,"definition","footnoteDefinition"),v(I,"reference","footnoteCall"),N.definition=Y,N.footnoteDefinition=ue,_.footnoteCall=X,_.reference=W,k.interruptFootnoteDefinition=$,W.locator=K.locator,X.locator=ie,Q.locator=de;function ue(ae,Z,G){for(var J=this,ce=J.interruptFootnoteDefinition,ye=J.offset,Ie=Z.length+1,ve=0,Ge=[],ut,mt,nt,le,Ae,At,Me,Pt,at,xt,Zt,lt,st;ve<Ie&&(le=Z.charCodeAt(ve),!(le!==r&&le!==i));)ve++;if(Z.charCodeAt(ve++)===l&&Z.charCodeAt(ve++)===h){for(mt=ve;ve<Ie;){if(le=Z.charCodeAt(ve),le!==le||le===s||le===r||le===i)return;if(le===f){nt=ve,ve++;break}ve++}if(!(nt===void 0||mt===nt||Z.charCodeAt(ve++)!==o)){if(G)return!0;for(ut=Z.slice(mt,nt),Ae=ae.now(),at=0,xt=0,Zt=ve,lt=[];ve<Ie;){if(le=Z.charCodeAt(ve),le!==le||le===s)st={start:at,contentStart:Zt||ve,contentEnd:ve,end:ve},lt.push(st),le===s&&(at=ve+1,xt=0,Zt=void 0,st.end=at);else if(xt!==void 0)if(le===i||le===r)xt+=le===i?1:D-xt%D,xt>D&&(xt=void 0,Zt=ve);else{if(xt<D&&st&&(st.contentStart===st.contentEnd||F(ce,N,J,[ae,Z.slice(ve,y),!0])))break;xt=void 0,Zt=ve}ve++}for(ve=-1,Ie=lt.length;Ie>0&&(st=lt[Ie-1],st.contentStart===st.contentEnd);)Ie--;for(At=ae(Z.slice(0,st.contentEnd));++ve<Ie;)st=lt[ve],ye[Ae.line+ve]=(ye[Ae.line+ve]||0)+(st.contentStart-st.start),Ge.push(Z.slice(st.contentStart,st.end));return Me=J.enterBlock(),Pt=J.tokenizeBlock(Ge.join(""),Ae),Me(),At({type:"footnoteDefinition",identifier:ut.toLowerCase(),label:ut,children:Pt})}}}function X(ae,Z,G){var J=Z.length+1,ce=0,ye,Ie,ve,Ge;if(Z.charCodeAt(ce++)===l&&Z.charCodeAt(ce++)===h){for(Ie=ce;ce<J;){if(Ge=Z.charCodeAt(ce),Ge!==Ge||Ge===s||Ge===r||Ge===i)return;if(Ge===f){ve=ce,ce++;break}ce++}if(!(ve===void 0||Ie===ve))return G?!0:(ye=Z.slice(Ie,ve),ae(Z.slice(0,ce))({type:"footnoteReference",identifier:ye.toLowerCase(),label:ye}))}}function Q(ae,Z,G){var J=this,ce=Z.length+1,ye=0,Ie=0,ve,Ge,ut,mt,nt,le,Ae;if(Z.charCodeAt(ye++)===h&&Z.charCodeAt(ye++)===l){for(ut=ye;ye<ce;){if(Ge=Z.charCodeAt(ye),Ge!==Ge)return;if(le===void 0)if(Ge===c)ye+=2;else if(Ge===l)Ie++,ye++;else if(Ge===f)if(Ie===0){mt=ye,ye++;break}else Ie--,ye++;else if(Ge===d){for(nt=ye,le=1;Z.charCodeAt(nt+le)===d;)le++;ye+=le}else ye++;else if(Ge===d){for(nt=ye,Ae=1;Z.charCodeAt(nt+Ae)===d;)Ae++;ye+=Ae,le===Ae&&(le=void 0),Ae=void 0}else ye++}if(mt!==void 0)return G?!0:(ve=ae.now(),ve.column+=2,ve.offset+=2,ae(Z.slice(0,ye))({type:"footnote",children:J.tokenizeInline(Z.slice(ut,mt),ve)}))}}function W(ae,Z,G){var J=0;if(Z.charCodeAt(J)===n&&J++,Z.charCodeAt(J)===l&&Z.charCodeAt(J+1)!==h)return K.call(this,ae,Z,G)}function Y(ae,Z,G){for(var J=0,ce=Z.charCodeAt(J);ce===i||ce===r;)ce=Z.charCodeAt(++J);if(ce===l&&Z.charCodeAt(J+1)!==h)return M.call(this,ae,Z,G)}function ie(ae,Z){return ae.indexOf("[",Z)}function de(ae,Z){return ae.indexOf("^[",Z)}}function E(T){var w=T.prototype.visitors,P=" ";w.footnote=k,w.footnoteReference=N,w.footnoteDefinition=_;function k(L){return"^["+this.all(L).join("")+"]"}function N(L){return"[^"+(L.label||L.identifier)+"]"}function _(L){for(var I=this.all(L).join(`
111
+
112
+ `).split(`
113
+ `),M=0,K=I.length,$;++M<K;)$=I[M],$!==""&&(I[M]=P+$);return"[^"+(L.label||L.identifier)+"]: "+I.join(`
114
+ `)}}function v(T,w,P){T.splice(T.indexOf(w),0,P)}function F(T,w,P,k){for(var N=T.length,_=-1;++_<N;)if(w[T[_][0]].apply(P,k))return!0;return!1}}),ZE=fe(t=>{t.isRemarkParser=e,t.isRemarkCompiler=r;function e(s){return!!(s&&s.prototype&&s.prototype.blockTokenizers)}function r(s){return!!(s&&s.prototype&&s.prototype.visitors)}}),W$=fe((t,e)=>{var r=ZE();e.exports=d;var s=9,i=32,n=36,o=48,l=57,c=92,f=["math","math-inline"],h="math-display";function d(g){let x=this.Parser,C=this.Compiler;r.isRemarkParser(x)&&D(x,g),r.isRemarkCompiler(C)&&y(C)}function D(g,x){let C=g.prototype,b=C.inlineMethods;v.locator=E,C.inlineTokenizers.math=v,b.splice(b.indexOf("text"),0,"math");function E(F,T){return F.indexOf("$",T)}function v(F,T,w){let P=T.length,k=!1,N=!1,_=0,L,I,M,K,$,z,re;if(T.charCodeAt(_)===c&&(N=!0,_++),T.charCodeAt(_)===n){if(_++,N)return w?!0:F(T.slice(0,_))({type:"text",value:"$"});if(T.charCodeAt(_)===n&&(k=!0,_++),M=T.charCodeAt(_),!(M===i||M===s)){for(K=_;_<P;){if(I=M,M=T.charCodeAt(_+1),I===n){if(L=T.charCodeAt(_-1),L!==i&&L!==s&&(M!==M||M<o||M>l)&&(!k||M===n)){$=_-1,_++,k&&_++,z=_;break}}else I===c&&(_++,M=T.charCodeAt(_+1));_++}if(z!==void 0)return w?!0:(re=T.slice(K,$+1),F(T.slice(0,z))({type:"inlineMath",value:re,data:{hName:"span",hProperties:{className:f.concat(k&&x.inlineMathDouble?[h]:[])},hChildren:[{type:"text",value:re}]}}))}}}}function y(g){let x=g.prototype;x.visitors.inlineMath=C;function C(b){let E="$";return(b.data&&b.data.hProperties&&b.data.hProperties.className||[]).includes(h)&&(E="$$"),E+b.value+E}}}),J$=fe((t,e)=>{var r=ZE();e.exports=h;var s=10,i=32,n=36,o=`
115
+ `,l="$",c=2,f=["math","math-display"];function h(){let y=this.Parser,g=this.Compiler;r.isRemarkParser(y)&&d(y),r.isRemarkCompiler(g)&&D(g)}function d(y){let g=y.prototype,x=g.blockMethods,C=g.interruptParagraph,b=g.interruptList,E=g.interruptBlockquote;g.blockTokenizers.math=v,x.splice(x.indexOf("fencedCode")+1,0,"math"),C.splice(C.indexOf("fencedCode")+1,0,["math"]),b.splice(b.indexOf("fencedCode")+1,0,["math"]),E.splice(E.indexOf("fencedCode")+1,0,["math"]);function v(F,T,w){var P=T.length,k=0;let N,_,L,I,M,K,$,z,re,te,ue;for(;k<P&&T.charCodeAt(k)===i;)k++;for(M=k;k<P&&T.charCodeAt(k)===n;)k++;if(K=k-M,!(K<c)){for(;k<P&&T.charCodeAt(k)===i;)k++;for($=k;k<P;){if(N=T.charCodeAt(k),N===n)return;if(N===s)break;k++}if(T.charCodeAt(k)===s){if(w)return!0;for(_=[],$!==k&&_.push(T.slice($,k)),k++,L=T.indexOf(o,k+1),L=L===-1?P:L;k<P;){for(z=!1,te=k,ue=L,I=L,re=0;I>te&&T.charCodeAt(I-1)===i;)I--;for(;I>te&&T.charCodeAt(I-1)===n;)re++,I--;for(K<=re&&T.indexOf(l,te)===I&&(z=!0,ue=I);te<=ue&&te-k<M&&T.charCodeAt(te)===i;)te++;if(z)for(;ue>te&&T.charCodeAt(ue-1)===i;)ue--;if((!z||te!==ue)&&_.push(T.slice(te,ue)),z)break;k=L+1,L=T.indexOf(o,k+1),L=L===-1?P:L}return _=_.join(`
116
+ `),F(T.slice(0,L))({type:"math",value:_,data:{hName:"div",hProperties:{className:f.concat()},hChildren:[{type:"text",value:_}]}})}}}}function D(y){let g=y.prototype;g.visitors.math=x;function x(C){return`$$
117
+ `+C.value+`
118
+ $$`}}}),K$=fe((t,e)=>{var r=W$(),s=J$();e.exports=i;function i(n){var o=n||{};s.call(this,o),r.call(this,o)}}),xa=fe((t,e)=>{e.exports=s;var r=Object.prototype.hasOwnProperty;function s(){for(var i={},n=0;n<arguments.length;n++){var o=arguments[n];for(var l in o)r.call(o,l)&&(i[l]=o[l])}return i}}),G$=fe((t,e)=>{typeof Object.create=="function"?e.exports=function(r,s){s&&(r.super_=s,r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,s){if(s){r.super_=s;var i=function(){};i.prototype=s.prototype,r.prototype=new i,r.prototype.constructor=r}}}),X$=fe((t,e)=>{var r=xa(),s=G$();e.exports=i;function i(n){var o,l,c;s(h,n),s(f,h),o=h.prototype;for(l in o)c=o[l],c&&typeof c=="object"&&(o[l]="concat"in c?c.concat():r(c));return h;function f(d){return n.apply(this,d)}function h(){return this instanceof h?n.apply(this,arguments):new f(arguments)}}}),Y$=fe((t,e)=>{e.exports=r;function r(s,i,n){return o;function o(){var l=n||this,c=l[s];return l[s]=!i,f;function f(){l[s]=c}}}}),Q$=fe((t,e)=>{e.exports=r;function r(s){for(var i=String(s),n=[],o=/\r?\n|\r/g;o.exec(i);)n.push(o.lastIndex);return n.push(i.length+1),{toPoint:l,toPosition:l,toOffset:c};function l(f){var h=-1;if(f>-1&&f<n[n.length-1]){for(;++h<n.length;)if(n[h]>f)return{line:h+1,column:f-(n[h-1]||0)+1,offset:f}}return{}}function c(f){var h=f&&f.line,d=f&&f.column,D;return!isNaN(h)&&!isNaN(d)&&h-1 in n&&(D=(n[h-2]||0)+d-1||0),D>-1&&D<n[n.length-1]?D:-1}}}),Z$=fe((t,e)=>{e.exports=s;var r="\\";function s(i,n){return o;function o(l){for(var c=0,f=l.indexOf(r),h=i[n],d=[],D;f!==-1;)d.push(l.slice(c,f)),c=f+1,D=l.charAt(c),(!D||h.indexOf(D)===-1)&&d.push(r),f=l.indexOf(r,c+1);return d.push(l.slice(c)),d.join("")}}}),eM=fe((t,e)=>{e.exports={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:"ÿ"}}),tM=fe((t,e)=>{e.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),Ea=fe((t,e)=>{e.exports=r;function r(s){var i=typeof s=="string"?s.charCodeAt(0):s;return i>=48&&i<=57}}),rM=fe((t,e)=>{e.exports=r;function r(s){var i=typeof s=="string"?s.charCodeAt(0):s;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}}),uu=fe((t,e)=>{e.exports=r;function r(s){var i=typeof s=="string"?s.charCodeAt(0):s;return i>=97&&i<=122||i>=65&&i<=90}}),sM=fe((t,e)=>{var r=uu(),s=Ea();e.exports=i;function i(n){return r(n)||s(n)}}),iM=fe((t,e)=>{e.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
119
+ `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"}}),nM=fe((t,e)=>{var r=iM();e.exports=i;var s={}.hasOwnProperty;function i(n){return s.call(r,n)?r[n]:!1}}),ip=fe((t,e)=>{var r=eM(),s=tM(),i=Ea(),n=rM(),o=sM(),l=nM();e.exports=Q;var c={}.hasOwnProperty,f=String.fromCharCode,h=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},D=9,y=10,g=12,x=32,C=38,b=59,E=60,v=61,F=35,T=88,w=120,P=65533,k="named",N="hexadecimal",_="decimal",L={};L[N]=16,L[_]=10;var I={};I[k]=o,I[_]=i,I[N]=n;var M=1,K=2,$=3,z=4,re=5,te=6,ue=7,X={};X[M]="Named character references must be terminated by a semicolon",X[K]="Numeric character references must be terminated by a semicolon",X[$]="Named character references cannot be empty",X[z]="Numeric character references cannot be empty",X[re]="Named character references must be known",X[te]="Numeric character references cannot be disallowed",X[ue]="Numeric character references cannot be outside the permissible Unicode range";function Q(de,ae){var Z={},G,J;ae||(ae={});for(J in d)G=ae[J],Z[J]=G??d[J];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),W(de,Z)}function W(de,ae){var Z=ae.additional,G=ae.nonTerminated,J=ae.text,ce=ae.reference,ye=ae.warning,Ie=ae.textContext,ve=ae.referenceContext,Ge=ae.warningContext,ut=ae.position,mt=ae.indent||[],nt=de.length,le=0,Ae=-1,At=ut.column||1,Me=ut.line||1,Pt="",at=[],xt,Zt,lt,st,Hr,kt,yt,Nr,An,Pa,vs,_i,Jt,ar,xu,Fs,Li,or,Ct;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Fs=Oi(),Nr=ye?Ap:h,le--,nt++;++le<nt;)if(Hr===y&&(At=mt[Ae]||1),Hr=de.charCodeAt(le),Hr===C){if(yt=de.charCodeAt(le+1),yt===D||yt===y||yt===g||yt===x||yt===C||yt===E||yt!==yt||Z&&yt===Z){Pt+=f(Hr),At++;continue}for(Jt=le+1,_i=Jt,Ct=Jt,yt===F?(Ct=++_i,yt=de.charCodeAt(Ct),yt===T||yt===w?(ar=N,Ct=++_i):ar=_):ar=k,xt="",vs="",st="",xu=I[ar],Ct--;++Ct<nt&&(yt=de.charCodeAt(Ct),!!xu(yt));)st+=f(yt),ar===k&&c.call(r,st)&&(xt=st,vs=r[st]);lt=de.charCodeAt(Ct)===b,lt&&(Ct++,Zt=ar===k?l(st):!1,Zt&&(xt=st,vs=Zt)),or=1+Ct-Jt,!lt&&!G||(st?ar===k?(lt&&!vs?Nr(re,1):(xt!==st&&(Ct=_i+xt.length,or=1+Ct-_i,lt=!1),lt||(An=xt?M:$,ae.attribute?(yt=de.charCodeAt(Ct),yt===v?(Nr(An,or),vs=null):o(yt)?vs=null:Nr(An,or)):Nr(An,or))),kt=vs):(lt||Nr(K,or),kt=parseInt(st,L[ar]),Y(kt)?(Nr(ue,or),kt=f(P)):kt in s?(Nr(te,or),kt=s[kt]):(Pa="",ie(kt)&&Nr(te,or),kt>65535&&(kt-=65536,Pa+=f(kt>>>10|55296),kt=56320|kt&1023),kt=Pa+f(kt))):ar!==k&&Nr(z,or)),kt?(ka(),Fs=Oi(),le=Ct-1,At+=Ct-Jt+1,at.push(kt),Li=Oi(),Li.offset++,ce&&ce.call(ve,kt,{start:Fs,end:Li},de.slice(Jt-1,Ct)),Fs=Li):(st=de.slice(Jt-1,Ct),Pt+=st,At+=st.length,le=Ct-1)}else Hr===10&&(Me++,Ae++,At=0),Hr===Hr?(Pt+=f(Hr),At++):ka();return at.join("");function Oi(){return{line:Me,column:At,offset:le+(ut.offset||0)}}function Ap(Eu,Cn){var ur=Oi();ur.column+=Cn,ur.offset+=Cn,ye.call(Ge,X[Eu],ur,Eu)}function ka(){Pt&&(at.push(Pt),J&&J.call(Ie,Pt,{start:Fs,end:Oi()}),Pt="")}}function Y(de){return de>=55296&&de<=57343||de>1114111}function ie(de){return de>=1&&de<=8||de===11||de>=13&&de<=31||de>=127&&de<=159||de>=64976&&de<=65007||(de&65535)===65535||(de&65535)===65534}}),aM=fe((t,e)=>{var r=xa(),s=ip();e.exports=i;function i(n){return l.raw=c,l;function o(h){for(var d=n.offset,D=h.line,y=[];++D&&D in d;)y.push((d[D]||0)+1);return{start:h,indent:y}}function l(h,d,D){s(h,{position:o(d),warning:f,text:D,reference:D,textContext:n,referenceContext:n})}function c(h,d,D){return s(h,r(D,{position:o(d),warning:f}))}function f(h,d,D){D!==3&&n.file.message(h,d)}}}),oM=fe((t,e)=>{e.exports=r;function r(o){return l;function l(c,f){var h=this,d=h.offset,D=[],y=h[o+"Methods"],g=h[o+"Tokenizers"],x=f.line,C=f.column,b,E,v,F,T,w;if(!c)return D;for(K.now=N,K.file=h.file,P("");c;){for(b=-1,E=y.length,T=!1;++b<E&&(F=y[b],v=g[F],!(v&&(!v.onlyAtStart||h.atStart)&&(!v.notInList||!h.inList)&&(!v.notInBlock||!h.inBlock)&&(!v.notInLink||!h.inLink)&&(w=c.length,v.apply(h,[K,c]),T=w!==c.length,T))););T||h.file.fail(new Error("Infinite loop"),K.now())}return h.eof=N(),D;function P($){for(var z=-1,re=$.indexOf(`
120
+ `);re!==-1;)x++,z=re,re=$.indexOf(`
121
+ `,re+1);z===-1?C+=$.length:C=$.length-z,x in d&&(z!==-1?C+=d[x]:C<=d[x]&&(C=d[x]+1))}function k(){var $=[],z=x+1;return function(){for(var re=x+1;z<re;)$.push((d[z]||0)+1),z++;return $}}function N(){var $={line:x,column:C};return $.offset=h.toOffset($),$}function _($){this.start=$,this.end=N()}function L($){c.slice(0,$.length)!==$&&h.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),N())}function I(){var $=N();return z;function z(re,te){var ue=re.position,X=ue?ue.start:$,Q=[],W=ue&&ue.end.line,Y=$.line;if(re.position=new _(X),ue&&te&&ue.indent){if(Q=ue.indent,W<Y){for(;++W<Y;)Q.push((d[W]||0)+1);Q.push($.column)}te=Q.concat(te)}return re.position.indent=te||[],re}}function M($,z){var re=z?z.children:D,te=re[re.length-1],ue;return te&&$.type===te.type&&($.type==="text"||$.type==="blockquote")&&s(te)&&s($)&&(ue=$.type==="text"?i:n,$=ue.call(h,te,$)),$!==te&&re.push($),h.atStart&&D.length!==0&&h.exitStart(),$}function K($){var z=k(),re=I(),te=N();return L($),ue.reset=X,X.test=Q,ue.test=Q,c=c.slice($.length),P($),z=z(),ue;function ue(W,Y){return re(M(re(W),Y),z)}function X(){var W=ue.apply(null,arguments);return x=te.line,C=te.column,c=$+c,W}function Q(){var W=re({});return x=te.line,C=te.column,c=$+c,W.position}}}}function s(o){var l,c;return o.type!=="text"||!o.position?!0:(l=o.position.start,c=o.position.end,l.line!==c.line||c.column-l.column===o.value.length)}function i(o,l){return o.value+=l.value,o}function n(o,l){return this.options.commonmark||this.options.gfm?l:(o.children=o.children.concat(l.children),o)}}),uM=fe((t,e)=>{e.exports=n;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],s=r.concat(["~","|"]),i=s.concat([`
122
+ `,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);n.default=r,n.gfm=s,n.commonmark=i;function n(o){var l=o||{};return l.commonmark?i:l.gfm?s:r}}),lM=fe((t,e)=>{e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),eA=fe((t,e)=>{e.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:lM()}}),pM=fe((t,e)=>{var r=xa(),s=uM(),i=eA();e.exports=n;function n(o){var l=this,c=l.options,f,h;if(o==null)o={};else if(typeof o=="object")o=r(o);else throw new Error("Invalid value `"+o+"` for setting `options`");for(f in i){if(h=o[f],h==null&&(h=c[f]),f!=="blocks"&&typeof h!="boolean"||f==="blocks"&&typeof h!="object")throw new Error("Invalid value `"+h+"` for setting `options."+f+"`");o[f]=h}return l.options=o,l.escape=s(o),l}}),cM=fe((t,e)=>{e.exports=r;function r(l){if(l==null)return o;if(typeof l=="string")return n(l);if(typeof l=="object")return"length"in l?i(l):s(l);if(typeof l=="function")return l;throw new Error("Expected function, string, or object as test")}function s(l){return c;function c(f){var h;for(h in l)if(f[h]!==l[h])return!1;return!0}}function i(l){for(var c=[],f=-1;++f<l.length;)c[f]=r(l[f]);return h;function h(){for(var d=-1;++d<c.length;)if(c[d].apply(this,arguments))return!0;return!1}}function n(l){return c;function c(f){return!!(f&&f.type===l)}}function o(){return!0}}),hM=fe((t,e)=>{e.exports=r;function r(s){return s}}),dM=fe((t,e)=>{e.exports=l;var r=cM(),s=hM(),i=!0,n="skip",o=!1;l.CONTINUE=i,l.SKIP=n,l.EXIT=o;function l(f,h,d,D){var y,g;typeof h=="function"&&typeof d!="function"&&(D=d,d=h,h=null),g=r(h),y=D?-1:1,x(f,null,[])();function x(C,b,E){var v=typeof C=="object"&&C!==null?C:{},F;return typeof v.type=="string"&&(F=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0,T.displayName="node ("+s(v.type+(F?"<"+F+">":""))+")"),T;function T(){var w=E.concat(C),P=[],k,N;if((!h||g(C,b,E[E.length-1]||null))&&(P=c(d(C,E)),P[0]===o))return P;if(C.children&&P[0]!==n)for(N=(D?C.children.length:-1)+y;N>-1&&N<C.children.length;){if(k=x(C.children[N],N,w)(),k[0]===o)return k;N=typeof k[1]=="number"?k[1]:N+y}return P}}}function c(f){return f!==null&&typeof f=="object"&&"length"in f?f:typeof f=="number"?[i,f]:[f]}}),fM=fe((t,e)=>{e.exports=o;var r=dM(),s=r.CONTINUE,i=r.SKIP,n=r.EXIT;o.CONTINUE=s,o.SKIP=i,o.EXIT=n;function o(l,c,f,h){typeof c=="function"&&typeof f!="function"&&(h=f,f=c,c=null),r(l,c,d,h);function d(D,y){var g=y[y.length-1],x=g?g.children.indexOf(D):null;return f(D,x,g)}}}),mM=fe((t,e)=>{var r=fM();e.exports=s;function s(o,l){return r(o,l?i:n),o}function i(o){delete o.position}function n(o){o.position=void 0}}),yM=fe((t,e)=>{var r=xa(),s=mM();e.exports=o;var i=`
123
+ `,n=/\r\n|\r/g;function o(){var l=this,c=String(l.file),f={line:1,column:1,offset:0},h=r(f),d;return c=c.replace(n,i),c.charCodeAt(0)===65279&&(c=c.slice(1),h.column++,h.offset++),d={type:"root",children:l.tokenizeBlock(c,h),position:{start:f,end:l.eof||r(f)}},l.options.position||s(d,!0),d}}),DM=fe((t,e)=>{var r=/^[ \t]*(\n|$)/;e.exports=s;function s(i,n,o){for(var l,c="",f=0,h=n.length;f<h&&(l=r.exec(n.slice(f)),l!=null);)f+=l[0].length,c+=l[0];if(c!==""){if(o)return!0;i(c)}}}),Cf=fe((t,e)=>{var r="",s;e.exports=i;function i(n,o){if(typeof n!="string")throw new TypeError("expected a string");if(o===1)return n;if(o===2)return n+n;var l=n.length*o;if(s!==n||typeof s>"u")s=n,r="";else if(r.length>=l)return r.substr(0,l);for(;l>r.length&&o>1;)o&1&&(r+=n),o>>=1,n+=n;return r+=n,r=r.substr(0,l),r}}),tA=fe((t,e)=>{e.exports=r;function r(s){return String(s).replace(/\n+$/,"")}}),gM=fe((t,e)=>{var r=Cf(),s=tA();e.exports=f;var i=`
124
+ `,n=" ",o=" ",l=4,c=r(o,l);function f(h,d,D){for(var y=-1,g=d.length,x="",C="",b="",E="",v,F,T;++y<g;)if(v=d.charAt(y),T)if(T=!1,x+=b,C+=E,b="",E="",v===i)b=v,E=v;else for(x+=v,C+=v;++y<g;){if(v=d.charAt(y),!v||v===i){E=v,b=v;break}x+=v,C+=v}else if(v===o&&d.charAt(y+1)===v&&d.charAt(y+2)===v&&d.charAt(y+3)===v)b+=c,y+=3,T=!0;else if(v===n)b+=v,T=!0;else{for(F="";v===n||v===o;)F+=v,v=d.charAt(++y);if(v!==i)break;b+=F+v,E+=v}if(C)return D?!0:h(x)({type:"code",lang:null,meta:null,value:s(C)})}}),xM=fe((t,e)=>{e.exports=f;var r=`
125
+ `,s=" ",i=" ",n="~",o="`",l=3,c=4;function f(h,d,D){var y=this,g=y.options.gfm,x=d.length+1,C=0,b="",E,v,F,T,w,P,k,N,_,L,I,M,K;if(g){for(;C<x&&(F=d.charAt(C),!(F!==i&&F!==s));)b+=F,C++;if(M=C,F=d.charAt(C),!(F!==n&&F!==o)){for(C++,v=F,E=1,b+=F;C<x&&(F=d.charAt(C),F===v);)b+=F,E++,C++;if(!(E<l)){for(;C<x&&(F=d.charAt(C),!(F!==i&&F!==s));)b+=F,C++;for(T="",k="";C<x&&(F=d.charAt(C),!(F===r||v===o&&F===v));)F===i||F===s?k+=F:(T+=k+F,k=""),C++;if(F=d.charAt(C),!(F&&F!==r)){if(D)return!0;K=h.now(),K.column+=b.length,K.offset+=b.length,b+=T,T=y.decode.raw(y.unescape(T),K),k&&(b+=k),k="",L="",I="",N="",_="";for(var $=!0;C<x;){if(F=d.charAt(C),N+=L,_+=I,L="",I="",F!==r){N+=F,I+=F,C++;continue}for($?(b+=F,$=!1):(L+=F,I+=F),k="",C++;C<x&&(F=d.charAt(C),F===i);)k+=F,C++;if(L+=k,I+=k.slice(M),!(k.length>=c)){for(k="";C<x&&(F=d.charAt(C),F===v);)k+=F,C++;if(L+=k,I+=k,!(k.length<E)){for(k="";C<x&&(F=d.charAt(C),!(F!==i&&F!==s));)L+=F,I+=F,C++;if(!F||F===r)break}}}for(b+=N+L,C=-1,x=T.length;++C<x;)if(F=T.charAt(C),F===i||F===s)w||(w=T.slice(0,C));else if(w){P=T.slice(C);break}return h(b)({type:"code",lang:w||T||null,meta:P||null,value:_})}}}}}}),Aa=fe((t,e)=>{t=e.exports=r;function r(s){return s.trim?s.trim():t.right(t.left(s))}t.left=function(s){return s.trimLeft?s.trimLeft():s.replace(/^\s\s*/,"")},t.right=function(s){if(s.trimRight)return s.trimRight();for(var i=/\s/,n=s.length;i.test(s.charAt(--n)););return s.slice(0,n+1)}}),bf=fe((t,e)=>{e.exports=r;function r(s,i,n,o){for(var l=s.length,c=-1,f,h;++c<l;)if(f=s[c],h=f[1]||{},!(h.pedantic!==void 0&&h.pedantic!==n.options.pedantic)&&!(h.commonmark!==void 0&&h.commonmark!==n.options.commonmark)&&i[f[0]].apply(n,o))return!0;return!1}}),EM=fe((t,e)=>{var r=Aa(),s=bf();e.exports=c;var i=`
126
+ `,n=" ",o=" ",l=">";function c(f,h,d){for(var D=this,y=D.offset,g=D.blockTokenizers,x=D.interruptBlockquote,C=f.now(),b=C.line,E=h.length,v=[],F=[],T=[],w,P=0,k,N,_,L,I,M,K,$;P<E&&(k=h.charAt(P),!(k!==o&&k!==n));)P++;if(h.charAt(P)===l){if(d)return!0;for(P=0;P<E;){for(_=h.indexOf(i,P),M=P,K=!1,_===-1&&(_=E);P<E&&(k=h.charAt(P),!(k!==o&&k!==n));)P++;if(h.charAt(P)===l?(P++,K=!0,h.charAt(P)===o&&P++):P=M,L=h.slice(P,_),!K&&!r(L)){P=M;break}if(!K&&(N=h.slice(P),s(x,g,D,[f,N,!0])))break;I=M===P?L:h.slice(M,_),T.push(P-M),v.push(I),F.push(L),P=_+1}for(P=-1,E=T.length,w=f(v.join(i));++P<E;)y[b]=(y[b]||0)+T[P],b++;return $=D.enterBlock(),F=D.tokenizeBlock(F.join(i),C),$(),w({type:"blockquote",children:F})}}}),AM=fe((t,e)=>{e.exports=l;var r=`
127
+ `,s=" ",i=" ",n="#",o=6;function l(c,f,h){for(var d=this,D=d.options.pedantic,y=f.length+1,g=-1,x=c.now(),C="",b="",E,v,F;++g<y;){if(E=f.charAt(g),E!==i&&E!==s){g--;break}C+=E}for(F=0;++g<=y;){if(E=f.charAt(g),E!==n){g--;break}C+=E,F++}if(!(F>o)&&!(!F||!D&&f.charAt(g+1)===n)){for(y=f.length+1,v="";++g<y;){if(E=f.charAt(g),E!==i&&E!==s){g--;break}v+=E}if(!(!D&&v.length===0&&E&&E!==r)){if(h)return!0;for(C+=v,v="",b="";++g<y&&(E=f.charAt(g),!(!E||E===r));){if(E!==i&&E!==s&&E!==n){b+=v+E,v="";continue}for(;E===i||E===s;)v+=E,E=f.charAt(++g);if(!D&&b&&!v&&E===n){b+=E;continue}for(;E===n;)v+=E,E=f.charAt(++g);for(;E===i||E===s;)v+=E,E=f.charAt(++g);g--}return x.column+=C.length,x.offset+=C.length,C+=b+v,c(C)({type:"heading",depth:F,children:d.tokenizeInline(b,x)})}}}}),CM=fe((t,e)=>{e.exports=f;var r=" ",s=`
128
+ `,i=" ",n="*",o="-",l="_",c=3;function f(h,d,D){for(var y=-1,g=d.length+1,x="",C,b,E,v;++y<g&&(C=d.charAt(y),!(C!==r&&C!==i));)x+=C;if(!(C!==n&&C!==o&&C!==l))for(b=C,x+=C,E=1,v="";++y<g;)if(C=d.charAt(y),C===b)E++,x+=v+b,v="";else if(C===i)v+=C;else return E>=c&&(!C||C===s)?(x+=v,D?!0:h(x)({type:"thematicBreak"})):void 0}}),rA=fe((t,e)=>{e.exports=o;var r=" ",s=" ",i=1,n=4;function o(l){for(var c=0,f=0,h=l.charAt(c),d={},D,y=0;h===r||h===s;){for(D=h===r?n:i,f+=D,D>1&&(f=Math.floor(f/D)*D);y<f;)d[++y]=c;h=l.charAt(++c)}return{indent:f,stops:d}}}),bM=fe((t,e)=>{var r=Aa(),s=Cf(),i=rA();e.exports=c;var n=`
129
+ `,o=" ",l="!";function c(f,h){var d=f.split(n),D=d.length+1,y=1/0,g=[],x,C,b;for(d.unshift(s(o,h)+l);D--;)if(C=i(d[D]),g[D]=C.stops,r(d[D]).length!==0)if(C.indent)C.indent>0&&C.indent<y&&(y=C.indent);else{y=1/0;break}if(y!==1/0)for(D=d.length;D--;){for(b=g[D],x=y;x&&!(x in b);)x--;d[D]=d[D].slice(b[x]+1)}return d.shift(),d.join(n)}}),TM=fe((t,e)=>{var r=Aa(),s=Cf(),i=Ea(),n=rA(),o=bM(),l=bf();e.exports=k;var c="*",f="_",h="+",d="-",D=".",y=" ",g=`
130
+ `,x=" ",C=")",b="x",E=4,v=/\n\n(?!\s*$)/,F=/^\[([ X\tx])][ \t]/,T=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,w=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,P=/^( {1,4}|\t)?/gm;function k(I,M,K){for(var $=this,z=$.options.commonmark,re=$.options.pedantic,te=$.blockTokenizers,ue=$.interruptList,X=0,Q=M.length,W=null,Y,ie,de,ae,Z,G,J,ce,ye,Ie,ve,Ge,ut,mt,nt,le,Ae,At,Me,Pt=!1,at,xt,Zt,lt;X<Q&&(ae=M.charAt(X),!(ae!==x&&ae!==y));)X++;if(ae=M.charAt(X),ae===c||ae===h||ae===d)Z=ae,de=!1;else{for(de=!0,ie="";X<Q&&(ae=M.charAt(X),!!i(ae));)ie+=ae,X++;if(ae=M.charAt(X),!ie||!(ae===D||z&&ae===C)||K&&ie!=="1")return;W=parseInt(ie,10),Z=ae}if(ae=M.charAt(++X),!(ae!==y&&ae!==x&&(re||ae!==g&&ae!==""))){if(K)return!0;for(X=0,mt=[],nt=[],le=[];X<Q;){for(G=M.indexOf(g,X),J=X,ce=!1,lt=!1,G===-1&&(G=Q),Y=0;X<Q;){if(ae=M.charAt(X),ae===x)Y+=E-Y%E;else if(ae===y)Y++;else break;X++}if(Ae&&Y>=Ae.indent&&(lt=!0),ae=M.charAt(X),ye=null,!lt){if(ae===c||ae===h||ae===d)ye=ae,X++,Y++;else{for(ie="";X<Q&&(ae=M.charAt(X),!!i(ae));)ie+=ae,X++;ae=M.charAt(X),X++,ie&&(ae===D||z&&ae===C)&&(ye=ae,Y+=ie.length+1)}if(ye)if(ae=M.charAt(X),ae===x)Y+=E-Y%E,X++;else if(ae===y){for(Zt=X+E;X<Zt&&M.charAt(X)===y;)X++,Y++;X===Zt&&M.charAt(X)===y&&(X-=E-1,Y-=E-1)}else ae!==g&&ae!==""&&(ye=null)}if(ye){if(!re&&Z!==ye)break;ce=!0}else!z&&!lt&&M.charAt(J)===y?lt=!0:z&&Ae&&(lt=Y>=Ae.indent||Y>E),ce=!1,X=J;if(ve=M.slice(J,G),Ie=J===X?ve:M.slice(X,G),(ye===c||ye===f||ye===d)&&te.thematicBreak.call($,I,ve,!0))break;if(Ge=ut,ut=!ce&&!r(Ie).length,lt&&Ae)Ae.value=Ae.value.concat(le,ve),nt=nt.concat(le,ve),le=[];else if(ce)le.length!==0&&(Pt=!0,Ae.value.push(""),Ae.trail=le.concat()),Ae={value:[ve],indent:Y,trail:[]},mt.push(Ae),nt=nt.concat(le,ve),le=[];else if(ut){if(Ge&&!z)break;le.push(ve)}else{if(Ge||l(ue,te,$,[I,ve,!0]))break;Ae.value=Ae.value.concat(le,ve),nt=nt.concat(le,ve),le=[]}X=G+1}for(at=I(nt.join(g)).reset({type:"list",ordered:de,start:W,spread:Pt,children:[]}),At=$.enterList(),Me=$.enterBlock(),X=-1,Q=mt.length;++X<Q;)Ae=mt[X].value.join(g),xt=I.now(),I(Ae)(N($,Ae,xt),at),Ae=mt[X].trail.join(g),X!==Q-1&&(Ae+=g),I(Ae);return At(),Me(),at}}function N(I,M,K){var $=I.offset,z=I.options.pedantic?_:L,re=null,te,ue;return M=z.apply(null,arguments),I.options.gfm&&(te=M.match(F),te&&(ue=te[0].length,re=te[1].toLowerCase()===b,$[K.line]+=ue,M=M.slice(ue))),{type:"listItem",spread:v.test(M),checked:re,children:I.tokenizeBlock(M,K)}}function _(I,M,K){var $=I.offset,z=K.line;return M=M.replace(w,re),z=K.line,M.replace(P,re);function re(te){return $[z]=($[z]||0)+te.length,z++,""}}function L(I,M,K){var $=I.offset,z=K.line,re,te,ue,X,Q,W,Y;for(M=M.replace(T,ie),X=M.split(g),Q=o(M,n(re).indent).split(g),Q[0]=ue,$[z]=($[z]||0)+te.length,z++,W=0,Y=X.length;++W<Y;)$[z]=($[z]||0)+X[W].length-Q[W].length,z++;return Q.join(g);function ie(de,ae,Z,G,J){return te=ae+Z+G,ue=J,Number(Z)<10&&te.length%2===1&&(Z=y+Z),re=ae+s(y,Z.length)+G,re+ue}}}),vM=fe((t,e)=>{e.exports=h;var r=`
131
+ `,s=" ",i=" ",n="=",o="-",l=3,c=1,f=2;function h(d,D,y){for(var g=this,x=d.now(),C=D.length,b=-1,E="",v,F,T,w,P;++b<C;){if(T=D.charAt(b),T!==i||b>=l){b--;break}E+=T}for(v="",F="";++b<C;){if(T=D.charAt(b),T===r){b--;break}T===i||T===s?F+=T:(v+=F+T,F="")}if(x.column+=E.length,x.offset+=E.length,E+=v+F,T=D.charAt(++b),w=D.charAt(++b),!(T!==r||w!==n&&w!==o)){for(E+=T,F=w,P=w===n?c:f;++b<C;){if(T=D.charAt(b),T!==w){if(T!==r)return;b--;break}F+=T}return y?!0:d(E+F)({type:"heading",depth:P,children:g.tokenizeInline(v,x)})}}}),sA=fe(t=>{var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",r="[^\"'=<>`\\u0000-\\u0020]+",s="'[^']*'",i='"[^"]*"',n="(?:"+r+"|"+s+"|"+i+")",o="(?:\\s+"+e+"(?:\\s*=\\s*"+n+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",f="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",h="<[?].*?[?]>",d="<![A-Za-z]+\\s+[^>]*>",D="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";t.openCloseTag=new RegExp("^(?:"+l+"|"+c+")"),t.tag=new RegExp("^(?:"+l+"|"+c+"|"+f+"|"+h+"|"+d+"|"+D+")")}),FM=fe((t,e)=>{var r=sA().openCloseTag;e.exports=v;var s=" ",i=" ",n=`
132
+ `,o="<",l=/^<(script|pre|style)(?=(\s|>|$))/i,c=/<\/(script|pre|style)>/i,f=/^<!--/,h=/-->/,d=/^<\?/,D=/\?>/,y=/^<![A-Za-z]/,g=/>/,x=/^<!\[CDATA\[/,C=/]]>/,b=/^$/,E=new RegExp(r.source+"\\s*$");function v(F,T,w){for(var P=this,k=P.options.blocks.join("|"),N=new RegExp("^</?("+k+")(?=(\\s|/?>|$))","i"),_=T.length,L=0,I,M,K,$,z,re,te,ue=[[l,c,!0],[f,h,!0],[d,D,!0],[y,g,!0],[x,C,!0],[N,b,!0],[E,b,!1]];L<_&&($=T.charAt(L),!($!==s&&$!==i));)L++;if(T.charAt(L)===o){for(I=T.indexOf(n,L+1),I=I===-1?_:I,M=T.slice(L,I),K=-1,z=ue.length;++K<z;)if(ue[K][0].test(M)){re=ue[K];break}if(re){if(w)return re[2];if(L=I,!re[1].test(M))for(;L<_;){if(I=T.indexOf(n,L+1),I=I===-1?_:I,M=T.slice(L+1,I),re[1].test(M)){M&&(L=I);break}L=I}return te=T.slice(0,L),F(te)({type:"html",value:te})}}}}),Zs=fe((t,e)=>{e.exports=i;var r=String.fromCharCode,s=/\s/;function i(n){return s.test(typeof n=="number"?r(n):n.charAt(0))}}),iA=fe((t,e)=>{var r=Af();e.exports=s;function s(i){return r(i).toLowerCase()}}),wM=fe((t,e)=>{var r=Zs(),s=iA();e.exports=b;var i='"',n="'",o="\\",l=`
133
+ `,c=" ",f=" ",h="[",d="]",D="(",y=")",g=":",x="<",C=">";function b(F,T,w){for(var P=this,k=P.options.commonmark,N=0,_=T.length,L="",I,M,K,$,z,re,te,ue;N<_&&($=T.charAt(N),!($!==f&&$!==c));)L+=$,N++;if($=T.charAt(N),$===h){for(N++,L+=$,K="";N<_&&($=T.charAt(N),$!==d);)$===o&&(K+=$,N++,$=T.charAt(N)),K+=$,N++;if(!(!K||T.charAt(N)!==d||T.charAt(N+1)!==g)){for(re=K,L+=K+d+g,N=L.length,K="";N<_&&($=T.charAt(N),!($!==c&&$!==f&&$!==l));)L+=$,N++;if($=T.charAt(N),K="",I=L,$===x){for(N++;N<_&&($=T.charAt(N),!!E($));)K+=$,N++;if($=T.charAt(N),$===E.delimiter)L+=x+K+$,N++;else{if(k)return;N-=K.length+1,K=""}}if(!K){for(;N<_&&($=T.charAt(N),!!v($));)K+=$,N++;L+=K}if(K){for(te=K,K="";N<_&&($=T.charAt(N),!($!==c&&$!==f&&$!==l));)K+=$,N++;if($=T.charAt(N),z=null,$===i?z=i:$===n?z=n:$===D&&(z=y),!z)K="",N=L.length;else if(K){for(L+=K+$,N=L.length,K="";N<_&&($=T.charAt(N),$!==z);){if($===l){if(N++,$=T.charAt(N),$===l||$===z)return;K+=l}K+=$,N++}if($=T.charAt(N),$!==z)return;M=L,L+=K+$,N++,ue=K,K=""}else return;for(;N<_&&($=T.charAt(N),!($!==c&&$!==f));)L+=$,N++;if($=T.charAt(N),!$||$===l)return w?!0:(I=F(I).test().end,te=P.decode.raw(P.unescape(te),I,{nonTerminated:!1}),ue&&(M=F(M).test().end,ue=P.decode.raw(P.unescape(ue),M)),F(L)({type:"definition",identifier:s(re),label:re,title:ue||null,url:te}))}}}}function E(F){return F!==C&&F!==h&&F!==d}E.delimiter=C;function v(F){return F!==h&&F!==d&&!r(F)}}),SM=fe((t,e)=>{var r=Zs();e.exports=x;var s=" ",i=`
134
+ `,n=" ",o="-",l=":",c="\\",f="|",h=1,d=2,D="left",y="center",g="right";function x(C,b,E){var v=this,F,T,w,P,k,N,_,L,I,M,K,$,z,re,te,ue,X,Q,W,Y,ie,de;if(v.options.gfm){for(F=0,ue=0,N=b.length+1,_=[];F<N;){if(Y=b.indexOf(i,F),ie=b.indexOf(f,F+1),Y===-1&&(Y=b.length),ie===-1||ie>Y){if(ue<d)return;break}_.push(b.slice(F,Y)),ue++,F=Y+1}for(P=_.join(i),T=_.splice(1,1)[0]||[],F=0,N=T.length,ue--,w=!1,K=[];F<N;){if(I=T.charAt(F),I===f){if(M=null,w===!1){if(de===!1)return}else K.push(w),w=!1;de=!1}else if(I===o)M=!0,w=w||null;else if(I===l)w===D?w=y:M&&w===null?w=g:w=D;else if(!r(I))return;F++}if(w!==!1&&K.push(w),!(K.length<h)){if(E)return!0;for(te=-1,Q=[],W=C(P).reset({type:"table",align:K,children:Q});++te<ue;){for(X=_[te],k={type:"tableRow",children:[]},te&&C(i),C(X).reset(k,W),N=X.length+1,F=0,L="",$="",z=!0;F<N;){if(I=X.charAt(F),I===s||I===n){$?L+=I:C(I),F++;continue}I===""||I===f?z?C(I):(($||I)&&!z&&(P=$,L.length>1&&(I?(P+=L.slice(0,-1),L=L.charAt(L.length-1)):(P+=L,L="")),re=C.now(),C(P)({type:"tableCell",children:v.tokenizeInline($,re)},k)),C(L+I),L="",$=""):(L&&($+=L,L=""),$+=I,I===c&&F!==N-2&&($+=X.charAt(F+1),F++)),z=!1,F++}te||C(i+T)}return W}}}}),PM=fe((t,e)=>{var r=Aa(),s=tA(),i=bf();e.exports=f;var n=" ",o=`
135
+ `,l=" ",c=4;function f(h,d,D){for(var y=this,g=y.options,x=g.commonmark,C=y.blockTokenizers,b=y.interruptParagraph,E=d.indexOf(o),v=d.length,F,T,w,P,k;E<v;){if(E===-1){E=v;break}if(d.charAt(E+1)===o)break;if(x){for(P=0,F=E+1;F<v;){if(w=d.charAt(F),w===n){P=c;break}else if(w===l)P++;else break;F++}if(P>=c&&w!==o){E=d.indexOf(o,E+1);continue}}if(T=d.slice(E+1),i(b,C,y,[h,T,!0]))break;if(F=E,E=d.indexOf(o,E+1),E!==-1&&r(d.slice(F,E))===""){E=F;break}}return T=d.slice(0,E),D?!0:(k=h.now(),T=s(T),h(T)({type:"paragraph",children:y.tokenizeInline(T,k)}))}}),kM=fe((t,e)=>{e.exports=r;function r(s,i){return s.indexOf("\\",i)}}),IM=fe((t,e)=>{var r=kM();e.exports=n,n.locator=r;var s=`
136
+ `,i="\\";function n(o,l,c){var f=this,h,d;if(l.charAt(0)===i&&(h=l.charAt(1),f.escape.indexOf(h)!==-1))return c?!0:(h===s?d={type:"break"}:d={type:"text",value:h},o(i+h)(d))}}),nA=fe((t,e)=>{e.exports=r;function r(s,i){return s.indexOf("<",i)}}),BM=fe((t,e)=>{var r=Zs(),s=ip(),i=nA();e.exports=d,d.locator=i,d.notInLink=!0;var n="<",o=">",l="@",c="/",f="mailto:",h=f.length;function d(D,y,g){var x=this,C="",b=y.length,E=0,v="",F=!1,T="",w,P,k,N,_;if(y.charAt(0)===n){for(E++,C=n;E<b&&(w=y.charAt(E),!(r(w)||w===o||w===l||w===":"&&y.charAt(E+1)===c));)v+=w,E++;if(v){if(T+=v,v="",w=y.charAt(E),T+=w,E++,w===l)F=!0;else{if(w!==":"||y.charAt(E+1)!==c)return;T+=c,E++}for(;E<b&&(w=y.charAt(E),!(r(w)||w===o));)v+=w,E++;if(w=y.charAt(E),!(!v||w!==o))return g?!0:(T+=v,k=T,C+=T+w,P=D.now(),P.column++,P.offset++,F&&(T.slice(0,h).toLowerCase()===f?(k=k.slice(h),P.column+=h,P.offset+=h):T=f+T),N=x.inlineTokenizers,x.inlineTokenizers={text:N.text},_=x.enterLink(),k=x.tokenizeInline(k,P),x.inlineTokenizers=N,_(),D(C)({type:"link",title:null,url:s(T,{nonTerminated:!1}),children:k}))}}}}),NM=fe((t,e)=>{e.exports=r;function r(s,i){var n=String(s),o=0,l;if(typeof i!="string")throw new Error("Expected character");for(l=n.indexOf(i);l!==-1;)o++,l=n.indexOf(i,l+i.length);return o}}),_M=fe((t,e)=>{e.exports=s;var r=["www.","http://","https://"];function s(i,n){var o=-1,l,c,f;if(!this.options.gfm)return o;for(c=r.length,l=-1;++l<c;)f=i.indexOf(r[l],n),f!==-1&&(o===-1||f<o)&&(o=f);return o}}),LM=fe((t,e)=>{var r=NM(),s=ip(),i=Ea(),n=uu(),o=Zs(),l=_M();e.exports=P,P.locator=l,P.notInLink=!0;var c=33,f=38,h=41,d=42,D=44,y=45,g=46,x=58,C=59,b=63,E=60,v=95,F=126,T="(",w=")";function P(k,N,_){var L=this,I=L.options.gfm,M=L.inlineTokenizers,K=N.length,$=-1,z=!1,re,te,ue,X,Q,W,Y,ie,de,ae,Z,G,J,ce;if(I){if(N.slice(0,4)==="www.")z=!0,X=4;else if(N.slice(0,7).toLowerCase()==="http://")X=7;else if(N.slice(0,8).toLowerCase()==="https://")X=8;else return;for($=X-1,ue=X,re=[];X<K;){if(Y=N.charCodeAt(X),Y===g){if($===X-1)break;re.push(X),$=X,X++;continue}if(i(Y)||n(Y)||Y===y||Y===v){X++;continue}break}if(Y===g&&(re.pop(),X--),re[0]!==void 0&&(te=re.length<2?ue:re[re.length-2]+1,N.slice(te,X).indexOf("_")===-1)){if(_)return!0;for(ie=X,Q=X;X<K&&(Y=N.charCodeAt(X),!(o(Y)||Y===E));)X++,Y===c||Y===d||Y===D||Y===g||Y===x||Y===b||Y===v||Y===F||(ie=X);if(X=ie,N.charCodeAt(X-1)===h)for(W=N.slice(Q,X),de=r(W,T),ae=r(W,w);ae>de;)X=Q+W.lastIndexOf(w),W=N.slice(Q,X),ae--;if(N.charCodeAt(X-1)===C&&(X--,n(N.charCodeAt(X-1)))){for(ie=X-2;n(N.charCodeAt(ie));)ie--;N.charCodeAt(ie)===f&&(X=ie)}return Z=N.slice(0,X),J=s(Z,{nonTerminated:!1}),z&&(J="http://"+J),ce=L.enterLink(),L.inlineTokenizers={text:M.text},G=L.tokenizeInline(Z,k.now()),L.inlineTokenizers=M,ce(),k(Z)({type:"link",title:null,url:J,children:G})}}}}),OM=fe((t,e)=>{var r=Ea(),s=uu(),i=43,n=45,o=46,l=95;e.exports=c;function c(h,d){var D=this,y,g;if(!this.options.gfm||(y=h.indexOf("@",d),y===-1))return-1;if(g=y,g===d||!f(h.charCodeAt(g-1)))return c.call(D,h,y+1);for(;g>d&&f(h.charCodeAt(g-1));)g--;return g}function f(h){return r(h)||s(h)||h===i||h===n||h===o||h===l}}),$M=fe((t,e)=>{var r=ip(),s=Ea(),i=uu(),n=OM();e.exports=d,d.locator=n,d.notInLink=!0;var o=43,l=45,c=46,f=64,h=95;function d(D,y,g){var x=this,C=x.options.gfm,b=x.inlineTokenizers,E=0,v=y.length,F=-1,T,w,P,k;if(C){for(T=y.charCodeAt(E);s(T)||i(T)||T===o||T===l||T===c||T===h;)T=y.charCodeAt(++E);if(E!==0&&T===f){for(E++;E<v;){if(T=y.charCodeAt(E),s(T)||i(T)||T===l||T===c||T===h){E++,F===-1&&T===c&&(F=E);continue}break}if(!(F===-1||F===E||T===l||T===h))return T===c&&E--,w=y.slice(0,E),g?!0:(k=x.enterLink(),x.inlineTokenizers={text:b.text},P=x.tokenizeInline(w,D.now()),x.inlineTokenizers=b,k(),D(w)({type:"link",title:null,url:"mailto:"+r(w,{nonTerminated:!1}),children:P}))}}}}),MM=fe((t,e)=>{var r=uu(),s=nA(),i=sA().tag;e.exports=d,d.locator=s;var n="<",o="?",l="!",c="/",f=/^<a /i,h=/^<\/a>/i;function d(D,y,g){var x=this,C=y.length,b,E;if(!(y.charAt(0)!==n||C<3)&&(b=y.charAt(1),!(!r(b)&&b!==o&&b!==l&&b!==c)&&(E=y.match(i),!!E)))return g?!0:(E=E[0],!x.inLink&&f.test(E)?x.inLink=!0:x.inLink&&h.test(E)&&(x.inLink=!1),D(E)({type:"html",value:E}))}}),aA=fe((t,e)=>{e.exports=r;function r(s,i){var n=s.indexOf("[",i),o=s.indexOf("![",i);return o===-1||n<o?n:o}}),RM=fe((t,e)=>{var r=Zs(),s=aA();e.exports=C,C.locator=s;var i=`
137
+ `,n="!",o='"',l="'",c="(",f=")",h="<",d=">",D="[",y="\\",g="]",x="`";function C(b,E,v){var F=this,T="",w=0,P=E.charAt(0),k=F.options.pedantic,N=F.options.commonmark,_=F.options.gfm,L,I,M,K,$,z,re,te,ue,X,Q,W,Y,ie,de,ae,Z,G;if(P===n&&(te=!0,T=P,P=E.charAt(++w)),P===D&&!(!te&&F.inLink)){for(T+=P,ie="",w++,Q=E.length,ae=b.now(),Y=0,ae.column+=w,ae.offset+=w;w<Q;){if(P=E.charAt(w),z=P,P===x){for(I=1;E.charAt(w+1)===x;)z+=P,w++,I++;M?I>=M&&(M=0):M=I}else if(P===y)w++,z+=E.charAt(w);else if((!M||_)&&P===D)Y++;else if((!M||_)&&P===g)if(Y)Y--;else{if(E.charAt(w+1)!==c)return;z+=c,L=!0,w++;break}ie+=z,z="",w++}if(L){for(ue=ie,T+=ie+z,w++;w<Q&&(P=E.charAt(w),!!r(P));)T+=P,w++;if(P=E.charAt(w),ie="",K=T,P===h){for(w++,K+=h;w<Q&&(P=E.charAt(w),P!==d);){if(N&&P===i)return;ie+=P,w++}if(E.charAt(w)!==d)return;T+=h+ie+d,de=ie,w++}else{for(P=null,z="";w<Q&&(P=E.charAt(w),!(z&&(P===o||P===l||N&&P===c)));){if(r(P)){if(!k)break;z+=P}else{if(P===c)Y++;else if(P===f){if(Y===0)break;Y--}ie+=z,z="",P===y&&(ie+=y,P=E.charAt(++w)),ie+=P}w++}T+=ie,de=ie,w=T.length}for(ie="";w<Q&&(P=E.charAt(w),!!r(P));)ie+=P,w++;if(P=E.charAt(w),T+=ie,ie&&(P===o||P===l||N&&P===c))if(w++,T+=P,ie="",X=P===c?f:P,$=T,N){for(;w<Q&&(P=E.charAt(w),P!==X);)P===y&&(ie+=y,P=E.charAt(++w)),w++,ie+=P;if(P=E.charAt(w),P!==X)return;for(W=ie,T+=ie+P,w++;w<Q&&(P=E.charAt(w),!!r(P));)T+=P,w++}else for(z="";w<Q;){if(P=E.charAt(w),P===X)re&&(ie+=X+z,z=""),re=!0;else if(!re)ie+=P;else if(P===f){T+=ie+X+z,W=ie;break}else r(P)?z+=P:(ie+=X+z+P,z="",re=!1);w++}if(E.charAt(w)===f)return v?!0:(T+=f,de=F.decode.raw(F.unescape(de),b(K).test().end,{nonTerminated:!1}),W&&($=b($).test().end,W=F.decode.raw(F.unescape(W),$)),G={type:te?"image":"link",title:W||null,url:de},te?G.alt=F.decode.raw(F.unescape(ue),ae)||null:(Z=F.enterLink(),G.children=F.tokenizeInline(ue,ae),Z()),b(T)(G))}}}}),jM=fe((t,e)=>{var r=Zs(),s=aA(),i=iA();e.exports=g,g.locator=s;var n="link",o="image",l="shortcut",c="collapsed",f="full",h="!",d="[",D="\\",y="]";function g(x,C,b){var E=this,v=E.options.commonmark,F=C.charAt(0),T=0,w=C.length,P="",k="",N=n,_=l,L,I,M,K,$,z,re,te;if(F===h&&(N=o,k=F,F=C.charAt(++T)),F===d){for(T++,k+=F,z="",te=0;T<w;){if(F=C.charAt(T),F===d)re=!0,te++;else if(F===y){if(!te)break;te--}F===D&&(z+=D,F=C.charAt(++T)),z+=F,T++}if(P=z,L=z,F=C.charAt(T),F===y){if(T++,P+=F,z="",!v)for(;T<w&&(F=C.charAt(T),!!r(F));)z+=F,T++;if(F=C.charAt(T),F===d){for(I="",z+=F,T++;T<w&&(F=C.charAt(T),!(F===d||F===y));)F===D&&(I+=D,F=C.charAt(++T)),I+=F,T++;F=C.charAt(T),F===y?(_=I?f:c,z+=I+F,T++):I="",P+=z,z=""}else{if(!L)return;I=L}if(!(_!==f&&re))return P=k+P,N===n&&E.inLink?null:b?!0:(M=x.now(),M.column+=k.length,M.offset+=k.length,I=_===f?I:L,K={type:N+"Reference",identifier:i(I),label:I,referenceType:_},N===n?($=E.enterLink(),K.children=E.tokenizeInline(L,M),$()):K.alt=E.decode.raw(E.unescape(L),M)||null,x(P)(K))}}}}),UM=fe((t,e)=>{e.exports=r;function r(s,i){var n=s.indexOf("**",i),o=s.indexOf("__",i);return o===-1?n:n===-1||o<n?o:n}}),qM=fe((t,e)=>{var r=Aa(),s=Zs(),i=UM();e.exports=c,c.locator=i;var n="\\",o="*",l="_";function c(f,h,d){var D=this,y=0,g=h.charAt(y),x,C,b,E,v,F,T;if(!(g!==o&&g!==l||h.charAt(++y)!==g)&&(C=D.options.pedantic,b=g,v=b+b,F=h.length,y++,E="",g="",!(C&&s(h.charAt(y)))))for(;y<F;){if(T=g,g=h.charAt(y),g===b&&h.charAt(y+1)===b&&(!C||!s(T))&&(g=h.charAt(y+2),g!==b))return r(E)?d?!0:(x=f.now(),x.column+=2,x.offset+=2,f(v+E+v)({type:"strong",children:D.tokenizeInline(E,x)})):void 0;!C&&g===n&&(E+=g,g=h.charAt(++y)),E+=g,y++}}}),VM=fe((t,e)=>{e.exports=i;var r=String.fromCharCode,s=/\w/;function i(n){return s.test(typeof n=="number"?r(n):n.charAt(0))}}),zM=fe((t,e)=>{e.exports=r;function r(s,i){var n=s.indexOf("*",i),o=s.indexOf("_",i);return o===-1?n:n===-1||o<n?o:n}}),HM=fe((t,e)=>{var r=Aa(),s=VM(),i=Zs(),n=zM();e.exports=f,f.locator=n;var o="*",l="_",c="\\";function f(h,d,D){var y=this,g=0,x=d.charAt(g),C,b,E,v,F,T,w;if(!(x!==o&&x!==l)&&(b=y.options.pedantic,F=x,E=x,T=d.length,g++,v="",x="",!(b&&i(d.charAt(g)))))for(;g<T;){if(w=x,x=d.charAt(g),x===E&&(!b||!i(w))){if(x=d.charAt(++g),x!==E){if(!r(v)||w===E)return;if(!b&&E===l&&s(x)){v+=E;continue}return D?!0:(C=h.now(),C.column++,C.offset++,h(F+v+E)({type:"emphasis",children:y.tokenizeInline(v,C)}))}v+=E}!b&&x===c&&(v+=x,x=d.charAt(++g)),v+=x,g++}}}),WM=fe((t,e)=>{e.exports=r;function r(s,i){return s.indexOf("~~",i)}}),JM=fe((t,e)=>{var r=Zs(),s=WM();e.exports=o,o.locator=s;var i="~",n="~~";function o(l,c,f){var h=this,d="",D="",y="",g="",x,C,b;if(!(!h.options.gfm||c.charAt(0)!==i||c.charAt(1)!==i||r(c.charAt(2))))for(x=1,C=c.length,b=l.now(),b.column+=2,b.offset+=2;++x<C;){if(d=c.charAt(x),d===i&&D===i&&(!y||!r(y)))return f?!0:l(n+g+n)({type:"delete",children:h.tokenizeInline(g,b)});g+=D,y=D,D=d}}}),KM=fe((t,e)=>{e.exports=r;function r(s,i){return s.indexOf("`",i)}}),GM=fe((t,e)=>{var r=KM();e.exports=o,o.locator=r;var s=10,i=32,n=96;function o(l,c,f){for(var h=c.length,d=0,D,y,g,x,C,b;d<h&&c.charCodeAt(d)===n;)d++;if(!(d===0||d===h)){for(D=d,C=c.charCodeAt(d);d<h;){if(x=C,C=c.charCodeAt(d+1),x===n){if(y===void 0&&(y=d),g=d+1,C!==n&&g-y===D){b=!0;break}}else y!==void 0&&(y=void 0,g=void 0);d++}if(b){if(f)return!0;if(d=D,h=y,x=c.charCodeAt(d),C=c.charCodeAt(h-1),b=!1,h-d>2&&(x===i||x===s)&&(C===i||C===s)){for(d++,h--;d<h;){if(x=c.charCodeAt(d),x!==i&&x!==s){b=!0;break}d++}b===!0&&(D++,y--)}return l(c.slice(0,g))({type:"inlineCode",value:c.slice(D,y)})}}}}),XM=fe((t,e)=>{e.exports=r;function r(s,i){for(var n=s.indexOf(`
138
+ `,i);n>i&&s.charAt(n-1)===" ";)n--;return n}}),YM=fe((t,e)=>{var r=XM();e.exports=o,o.locator=r;var s=" ",i=`
139
+ `,n=2;function o(l,c,f){for(var h=c.length,d=-1,D="",y;++d<h;){if(y=c.charAt(d),y===i)return d<n?void 0:f?!0:(D+=y,l(D)({type:"break"}));if(y!==s)return;D+=y}}}),QM=fe((t,e)=>{e.exports=r;function r(s,i,n){var o=this,l,c,f,h,d,D,y,g,x,C;if(n)return!0;for(l=o.inlineMethods,h=l.length,c=o.inlineTokenizers,f=-1,x=i.length;++f<h;)g=l[f],!(g==="text"||!c[g])&&(y=c[g].locator,y||s.file.fail("Missing locator: `"+g+"`"),D=y.call(o,i,1),D!==-1&&D<x&&(x=D));d=i.slice(0,x),C=s.now(),o.decode(d,C,b);function b(E,v,F){s(F||E)({type:"text",value:E})}}}),ZM=fe((t,e)=>{var r=xa(),s=Y$(),i=Q$(),n=Z$(),o=aM(),l=oM();e.exports=c;function c(d,D){this.file=D,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(D).toOffset,this.unescape=n(this,"escape"),this.decode=o(this)}var f=c.prototype;f.setOptions=pM(),f.parse=yM(),f.options=eA(),f.exitStart=s("atStart",!0),f.enterList=s("inList",!1),f.enterLink=s("inLink",!1),f.enterBlock=s("inBlock",!1),f.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],f.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],f.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],f.blockTokenizers={blankLine:DM(),indentedCode:gM(),fencedCode:xM(),blockquote:EM(),atxHeading:AM(),thematicBreak:CM(),list:TM(),setextHeading:vM(),html:FM(),definition:wM(),table:SM(),paragraph:PM()},f.inlineTokenizers={escape:IM(),autoLink:BM(),url:LM(),email:$M(),html:MM(),link:RM(),reference:jM(),strong:qM(),emphasis:HM(),deletion:JM(),code:GM(),break:YM(),text:QM()},f.blockMethods=h(f.blockTokenizers),f.inlineMethods=h(f.inlineTokenizers),f.tokenizeBlock=l("block"),f.tokenizeInline=l("inline"),f.tokenizeFactory=l;function h(d){var D=[],y;for(y in d)D.push(y);return D}}),eR=fe((t,e)=>{var r=X$(),s=xa(),i=ZM();e.exports=n,n.Parser=i;function n(o){var l=this.data("settings"),c=r(i);c.prototype.options=s(c.prototype.options,l,o),this.Parser=c}}),tR=fe((t,e)=>{e.exports=r;function r(s){if(s)throw s}}),oA=fe((t,e)=>{e.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}}),rR=fe((t,e)=>{var r=Object.prototype.hasOwnProperty,s=Object.prototype.toString,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):s.call(h)==="[object Array]"},l=function(h){if(!h||s.call(h)!=="[object Object]")return!1;var d=r.call(h,"constructor"),D=h.constructor&&h.constructor.prototype&&r.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!D)return!1;var y;for(y in h);return typeof y>"u"||r.call(h,y)},c=function(h,d){i&&d.name==="__proto__"?i(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},f=function(h,d){if(d==="__proto__")if(r.call(h,d)){if(n)return n(h,d).value}else return;return h[d]};e.exports=function h(){var d,D,y,g,x,C,b=arguments[0],E=1,v=arguments.length,F=!1;for(typeof b=="boolean"&&(F=b,b=arguments[1]||{},E=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});E<v;++E)if(d=arguments[E],d!=null)for(D in d)y=f(b,D),g=f(d,D),b!==g&&(F&&g&&(l(g)||(x=o(g)))?(x?(x=!1,C=y&&o(y)?y:[]):C=y&&l(y)?y:{},c(b,{name:D,newValue:h(F,C,g)})):typeof g<"u"&&c(b,{name:D,newValue:g}));return b}}),sR=fe((t,e)=>{e.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let s=Object.getPrototypeOf(r);return s===null||s===Object.prototype}}),iR=fe((t,e)=>{var r=[].slice;e.exports=s;function s(i,n){var o;return l;function l(){var h=r.call(arguments,0),d=i.length>h.length,D;d&&h.push(c);try{D=i.apply(null,h)}catch(y){if(d&&o)throw y;return c(y)}d||(D&&typeof D.then=="function"?D.then(f,c):D instanceof Error?c(D):f(D))}function c(){o||(o=!0,n.apply(null,arguments))}function f(h){c(null,h)}}}),nR=fe((t,e)=>{var r=iR();e.exports=i,i.wrap=r;var s=[].slice;function i(){var n=[],o={};return o.run=l,o.use=c,o;function l(){var f=-1,h=s.call(arguments,0,-1),d=arguments[arguments.length-1];if(typeof d!="function")throw new Error("Expected function as last argument, not "+d);D.apply(null,[null].concat(h));function D(y){var g=n[++f],x=s.call(arguments,0),C=x.slice(1),b=h.length,E=-1;if(y){d(y);return}for(;++E<b;)(C[E]===null||C[E]===void 0)&&(C[E]=h[E]);h=C,g?r(g,D).apply(null,h):d.apply(null,[null].concat(h))}}function c(f){if(typeof f!="function")throw new Error("Expected `fn` to be a function, not "+f);return n.push(f),o}}}),aR=fe((t,e)=>{var r={}.hasOwnProperty;e.exports=s;function s(l){return!l||typeof l!="object"?"":r.call(l,"position")||r.call(l,"type")?n(l.position):r.call(l,"start")||r.call(l,"end")?n(l):r.call(l,"line")||r.call(l,"column")?i(l):""}function i(l){return(!l||typeof l!="object")&&(l={}),o(l.line)+":"+o(l.column)}function n(l){return(!l||typeof l!="object")&&(l={}),i(l.start)+"-"+i(l.end)}function o(l){return l&&typeof l=="number"?l:1}}),oR=fe((t,e)=>{var r=aR();e.exports=n;function s(){}s.prototype=Error.prototype,n.prototype=new s;var i=n.prototype;i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null;function n(l,c,f){var h,d,D;typeof c=="string"&&(f=c,c=null),h=o(f),d=r(c)||"1:1",D={start:{line:null,column:null},end:{line:null,column:null}},c&&c.position&&(c=c.position),c&&(c.start?(D=c,c=c.start):D.start=c),l.stack&&(this.stack=l.stack,l=l.message),this.message=l,this.name=d,this.reason=l,this.line=c?c.line:null,this.column=c?c.column:null,this.location=D,this.source=h[0],this.ruleId=h[1]}function o(l){var c=[null,null],f;return typeof l=="string"&&(f=l.indexOf(":"),f===-1?c[1]=l:(c[0]=l.slice(0,f),c[1]=l.slice(f+1))),c}}),uR=fe(t=>{t.basename=e,t.dirname=r,t.extname=s,t.join=i,t.sep="/";function e(c,f){var h=0,d=-1,D,y,g,x;if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');if(l(c),D=c.length,f===void 0||!f.length||f.length>c.length){for(;D--;)if(c.charCodeAt(D)===47){if(g){h=D+1;break}}else d<0&&(g=!0,d=D+1);return d<0?"":c.slice(h,d)}if(f===c)return"";for(y=-1,x=f.length-1;D--;)if(c.charCodeAt(D)===47){if(g){h=D+1;break}}else y<0&&(g=!0,y=D+1),x>-1&&(c.charCodeAt(D)===f.charCodeAt(x--)?x<0&&(d=D):(x=-1,d=y));return h===d?d=y:d<0&&(d=c.length),c.slice(h,d)}function r(c){var f,h,d;if(l(c),!c.length)return".";for(f=-1,d=c.length;--d;)if(c.charCodeAt(d)===47){if(h){f=d;break}}else h||(h=!0);return f<0?c.charCodeAt(0)===47?"/":".":f===1&&c.charCodeAt(0)===47?"//":c.slice(0,f)}function s(c){var f=-1,h=0,d=-1,D=0,y,g,x;for(l(c),x=c.length;x--;){if(g=c.charCodeAt(x),g===47){if(y){h=x+1;break}continue}d<0&&(y=!0,d=x+1),g===46?f<0?f=x:D!==1&&(D=1):f>-1&&(D=-1)}return f<0||d<0||D===0||D===1&&f===d-1&&f===h+1?"":c.slice(f,d)}function i(){for(var c=-1,f;++c<arguments.length;)l(arguments[c]),arguments[c]&&(f=f===void 0?arguments[c]:f+"/"+arguments[c]);return f===void 0?".":n(f)}function n(c){var f,h;return l(c),f=c.charCodeAt(0)===47,h=o(c,!f),!h.length&&!f&&(h="."),h.length&&c.charCodeAt(c.length-1)===47&&(h+="/"),f?"/"+h:h}function o(c,f){for(var h="",d=0,D=-1,y=0,g=-1,x,C;++g<=c.length;){if(g<c.length)x=c.charCodeAt(g);else{if(x===47)break;x=47}if(x===47){if(!(D===g-1||y===1))if(D!==g-1&&y===2){if(h.length<2||d!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){if(C=h.lastIndexOf("/"),C!==h.length-1){C<0?(h="",d=0):(h=h.slice(0,C),d=h.length-1-h.lastIndexOf("/")),D=g,y=0;continue}}else if(h.length){h="",d=0,D=g,y=0;continue}}f&&(h=h.length?h+"/..":"..",d=2)}else h.length?h+="/"+c.slice(D+1,g):h=c.slice(D+1,g),d=g-D-1;D=g,y=0}else x===46&&y>-1?y++:y=-1}return h}function l(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}}),lR=fe(t=>{t.cwd=e;function e(){return"/"}}),pR=fe((t,e)=>{var r=uR(),s=lR(),i=oA();e.exports=l;var n={}.hasOwnProperty,o=["history","path","basename","stem","extname","dirname"];l.prototype.toString=E,Object.defineProperty(l.prototype,"path",{get:c,set:f}),Object.defineProperty(l.prototype,"dirname",{get:h,set:d}),Object.defineProperty(l.prototype,"basename",{get:D,set:y}),Object.defineProperty(l.prototype,"extname",{get:g,set:x}),Object.defineProperty(l.prototype,"stem",{get:C,set:b});function l(w){var P,k;if(!w)w={};else if(typeof w=="string"||i(w))w={contents:w};else if("message"in w&&"messages"in w)return w;if(!(this instanceof l))return new l(w);for(this.data={},this.messages=[],this.history=[],this.cwd=s.cwd(),k=-1;++k<o.length;)P=o[k],n.call(w,P)&&(this[P]=w[P]);for(P in w)o.indexOf(P)<0&&(this[P]=w[P])}function c(){return this.history[this.history.length-1]}function f(w){F(w,"path"),this.path!==w&&this.history.push(w)}function h(){return typeof this.path=="string"?r.dirname(this.path):void 0}function d(w){T(this.path,"dirname"),this.path=r.join(w||"",this.basename)}function D(){return typeof this.path=="string"?r.basename(this.path):void 0}function y(w){F(w,"basename"),v(w,"basename"),this.path=r.join(this.dirname||"",w)}function g(){return typeof this.path=="string"?r.extname(this.path):void 0}function x(w){if(v(w,"extname"),T(this.path,"extname"),w){if(w.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(w.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(w||""))}function C(){return typeof this.path=="string"?r.basename(this.path,this.extname):void 0}function b(w){F(w,"stem"),v(w,"stem"),this.path=r.join(this.dirname||"",w+(this.extname||""))}function E(w){return(this.contents||"").toString(w)}function v(w,P){if(w&&w.indexOf(r.sep)>-1)throw new Error("`"+P+"` cannot be a path: did not expect `"+r.sep+"`")}function F(w,P){if(!w)throw new Error("`"+P+"` cannot be empty")}function T(w,P){if(!w)throw new Error("Setting `"+P+"` requires `path` to be set too")}}),cR=fe((t,e)=>{var r=oR(),s=pR();e.exports=s,s.prototype.message=i,s.prototype.info=o,s.prototype.fail=n;function i(l,c,f){var h=new r(l,c,f);return this.path&&(h.name=this.path+":"+h.name,h.file=this.path),h.fatal=!1,this.messages.push(h),h}function n(){var l=this.message.apply(this,arguments);throw l.fatal=!0,l}function o(){var l=this.message.apply(this,arguments);return l.fatal=null,l}}),hR=fe((t,e)=>{e.exports=cR()}),dR=fe((t,e)=>{var r=tR(),s=oA(),i=rR(),n=sR(),o=nR(),l=hR();e.exports=g().freeze();var c=[].slice,f={}.hasOwnProperty,h=o().use(d).use(D).use(y);function d(w,P){P.tree=w.parse(P.file)}function D(w,P,k){w.run(P.tree,P.file,N);function N(_,L,I){_?k(_):(P.tree=L,P.file=I,k())}}function y(w,P){var k=w.stringify(P.tree,P.file);k==null||(typeof k=="string"||s(k)?("value"in P.file&&(P.file.value=k),P.file.contents=k):P.file.result=k)}function g(){var w=[],P=o(),k={},N=-1,_;return L.data=M,L.freeze=I,L.attachers=w,L.use=K,L.parse=z,L.stringify=ue,L.run=re,L.runSync=te,L.process=X,L.processSync=Q,L;function L(){for(var W=g(),Y=-1;++Y<w.length;)W.use.apply(null,w[Y]);return W.data(i(!0,{},k)),W}function I(){var W,Y;if(_)return L;for(;++N<w.length;)W=w[N],W[1]!==!1&&(W[1]===!0&&(W[1]=void 0),Y=W[0].apply(L,W.slice(1)),typeof Y=="function"&&P.use(Y));return _=!0,N=1/0,L}function M(W,Y){return typeof W=="string"?arguments.length===2?(v("data",_),k[W]=Y,L):f.call(k,W)&&k[W]||null:W?(v("data",_),k=W,L):k}function K(W){var Y;if(v("use",_),W!=null)if(typeof W=="function")Z.apply(null,arguments);else if(typeof W=="object")"length"in W?ae(W):ie(W);else throw new Error("Expected usable value, not `"+W+"`");return Y&&(k.settings=i(k.settings||{},Y)),L;function ie(G){ae(G.plugins),G.settings&&(Y=i(Y||{},G.settings))}function de(G){if(typeof G=="function")Z(G);else if(typeof G=="object")"length"in G?Z.apply(null,G):ie(G);else throw new Error("Expected usable value, not `"+G+"`")}function ae(G){var J=-1;if(G!=null)if(typeof G=="object"&&"length"in G)for(;++J<G.length;)de(G[J]);else throw new Error("Expected a list of plugins, not `"+G+"`")}function Z(G,J){var ce=$(G);ce?(n(ce[1])&&n(J)&&(J=i(!0,ce[1],J)),ce[1]=J):w.push(c.call(arguments))}}function $(W){for(var Y=-1;++Y<w.length;)if(w[Y][0]===W)return w[Y]}function z(W){var Y=l(W),ie;return I(),ie=L.Parser,b("parse",ie),x(ie,"parse")?new ie(String(Y),Y).parse():ie(String(Y),Y)}function re(W,Y,ie){if(F(W),I(),!ie&&typeof Y=="function"&&(ie=Y,Y=null),!ie)return new Promise(de);de(null,ie);function de(ae,Z){P.run(W,l(Y),G);function G(J,ce,ye){ce=ce||W,J?Z(J):ae?ae(ce):ie(null,ce,ye)}}}function te(W,Y){var ie,de;return re(W,Y,ae),T("runSync","run",de),ie;function ae(Z,G){de=!0,ie=G,r(Z)}}function ue(W,Y){var ie=l(Y),de;return I(),de=L.Compiler,E("stringify",de),F(W),x(de,"compile")?new de(W,ie).compile():de(W,ie)}function X(W,Y){if(I(),b("process",L.Parser),E("process",L.Compiler),!Y)return new Promise(ie);ie(null,Y);function ie(de,ae){var Z=l(W);h.run(L,{file:Z},G);function G(J){J?ae(J):de?de(Z):Y(null,Z)}}}function Q(W){var Y,ie;return I(),b("processSync",L.Parser),E("processSync",L.Compiler),Y=l(W),X(Y,de),T("processSync","process",ie),Y;function de(ae){ie=!0,r(ae)}}}function x(w,P){return typeof w=="function"&&w.prototype&&(C(w.prototype)||P in w.prototype)}function C(w){var P;for(P in w)return!0;return!1}function b(w,P){if(typeof P!="function")throw new Error("Cannot `"+w+"` without `Parser`")}function E(w,P){if(typeof P!="function")throw new Error("Cannot `"+w+"` without `Compiler`")}function v(w,P){if(P)throw new Error("Cannot invoke `"+w+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function F(w){if(!w||typeof w.type!="string")throw new Error("Expected node, got `"+w+"`")}function T(w,P,k){if(!k)throw new Error("`"+w+"` finished async. Use `"+P+"` instead")}}),uA={};QE(uA,{languages:()=>PA,options:()=>kA,parsers:()=>Pf,printers:()=>OA});var Tf=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i);function fR(t){return this[t<0?this.length+t:t]}var mR=Tf("at",function(){if(Array.isArray(this)||typeof this=="string")return fR}),jr=mR,yR=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},DR=Tf("replaceAll",function(){if(typeof this=="string")return yR}),Xt=DR,gR=ga(Af());function np(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var xR=()=>{},ER=xR,gn="string",bi="array",ap="cursor",Ca="indent",ba="align",lu="trim",Ti="group",xn="fill",gi="if-break",pu="indent-if-break",cu="line-suffix",hu="line-suffix-boundary",ei="line",du="label",Ta="break-parent",lA=new Set([ap,Ca,ba,lu,Ti,xn,gi,pu,cu,hu,ei,du,Ta]);function AR(t){if(typeof t=="string")return gn;if(Array.isArray(t))return bi;if(!t)return;let{type:e}=t;if(lA.has(e))return e}var Ni=AR,CR=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function bR(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
140
+ Expected it to be 'string' or 'object'.`;if(Ni(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=CR([...lA].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
141
+ Expected it to be ${s}.`}var TR=class extends Error{name="InvalidDocError";constructor(t){super(bR(t)),this.doc=t}},bl=TR,u2={};function vR(t,e,r,s){let i=[t];for(;i.length>0;){let n=i.pop();if(n===u2){r(i.pop());continue}r&&i.push(n,u2);let o=Ni(n);if(!o)throw new bl(n);if(e?.(n)!==!1)switch(o){case bi:case xn:{let l=o===bi?n:n.parts;for(let c=l.length,f=c-1;f>=0;--f)i.push(l[f]);break}case gi:i.push(n.flatContents,n.breakContents);break;case Ti:if(s&&n.expandedStates)for(let l=n.expandedStates.length,c=l-1;c>=0;--c)i.push(n.expandedStates[c]);else i.push(n.contents);break;case ba:case Ca:case pu:case du:case cu:i.push(n.contents);break;case gn:case ap:case lu:case hu:case ei:case Ta:break;default:throw new bl(n)}}}var FR=vR;function wR(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(n){if(r.has(n))return r.get(n);let o=i(n);return r.set(n,o),o}function i(n){switch(Ni(n)){case bi:return e(n.map(s));case xn:return e({...n,parts:n.parts.map(s)});case gi:return e({...n,breakContents:s(n.breakContents),flatContents:s(n.flatContents)});case Ti:{let{expandedStates:o,contents:l}=n;return o?(o=o.map(s),l=o[0]):l=s(l),e({...n,contents:l,expandedStates:o})}case ba:case Ca:case pu:case du:case cu:return e({...n,contents:s(n.contents)});case gn:case ap:case lu:case hu:case ei:case Ta:return e(n);default:throw new bl(n)}}}function l2(t){if(t.length>0){let e=jr(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function SR(t){let e=new Set,r=[];function s(n){if(n.type===Ta&&l2(r),n.type===Ti){if(r.push(n),e.has(n))return!1;e.add(n)}}function i(n){n.type===Ti&&r.pop().break&&l2(r)}FR(t,s,i,!0)}function Mn(t,e=Fh){return wR(t,r=>typeof r=="string"?pA(e,r.split(`
142
+ `)):r)}var PR=ER;function Th(t){return{type:Ca,contents:t}}function Qi(t,e){return{type:ba,contents:e,n:t}}function vh(t){return Qi({type:"root"},t)}var Tl={type:Ta};function vf(t){return{type:xn,parts:t}}function ll(t,e={}){return PR(e.expandedStates),{type:Ti,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function kR(t,e="",r={}){return{type:gi,breakContents:t,flatContents:e,groupId:r.groupId}}function pA(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var cA={type:ei},hA={type:ei,soft:!0},Ff={type:ei,hard:!0},Vt=[Ff,Tl],IR={type:ei,hard:!0,literal:!0},Fh=[IR,Tl],BR="cr",NR="crlf",_R="\r",LR=`\r
143
+ `,OR=`
144
+ `,$R=OR;function MR(t){return t===BR?_R:t===NR?LR:$R}var RR=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function jR(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function UR(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var qR="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",VR=/[^\x20-\x7F]/u,zR=new Set(qR);function HR(t){if(!t)return 0;if(!VR.test(t))return t.length;t=t.replace(RR(),r=>zR.has(r)?" ":" ");let e=0;for(let r of t){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(e+=jR(s)||UR(s)?2:1)}return e}var wf=HR,WR={type:0},JR={type:1},dA={value:"",length:0,queue:[],get root(){return dA}};function fA(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",n=0,o=0,l=0;for(let g of s)switch(g.type){case 0:h(),r.useTabs?c(1):f(r.tabWidth);break;case 3:{let{string:x}=g;h(),i+=x,n+=x.length;break}case 2:{let{width:x}=g;o+=1,l+=x;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return D(),{...t,value:i,length:n,queue:s};function c(g){i+=" ".repeat(g),n+=r.tabWidth*g}function f(g){i+=" ".repeat(g),n+=g}function h(){r.useTabs?d():D()}function d(){o>0&&c(o),y()}function D(){l>0&&f(l),y()}function y(){o=0,l=0}}function KR(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let s;return typeof e=="number"?e<0?s=JR:s={type:2,width:e}:s={type:3,string:e},fA(t,s,r)}function GR(t,e){return fA(t,WR,e)}function XR(t){let e=0;for(let r=t.length-1;r>=0;r--){let s=t[r];if(s===" "||s===" ")e++;else break}return e}function mA(t){let e=XR(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var hr=Symbol("MODE_BREAK"),ns=Symbol("MODE_FLAT"),wh=Symbol("DOC_FILL_PRINTED_LENGTH");function Hu(t,e,r,s,i,n){if(r===Number.POSITIVE_INFINITY)return!0;let o=e.length,l=!1,c=[t],f="";for(;r>=0;){if(c.length===0){if(o===0)return!0;c.push(e[--o]);continue}let{mode:h,doc:d}=c.pop(),D=Ni(d);switch(D){case gn:d&&(l&&(f+=" ",r-=1,l=!1),f+=d,r-=wf(d));break;case bi:case xn:{let y=D===bi?d:d.parts,g=d[wh]??0;for(let x=y.length-1;x>=g;x--)c.push({mode:h,doc:y[x]});break}case Ca:case ba:case pu:case du:c.push({mode:h,doc:d.contents});break;case lu:{let{text:y,count:g}=mA(f);f=y,r+=g;break}case Ti:{if(n&&d.break)return!1;let y=d.break?hr:h,g=d.expandedStates&&y===hr?jr(0,d.expandedStates,-1):d.contents;c.push({mode:y,doc:g});break}case gi:{let y=(d.groupId?i[d.groupId]||ns:h)===hr?d.breakContents:d.flatContents;y&&c.push({mode:h,doc:y});break}case ei:if(h===hr||d.hard)return!0;d.soft||(l=!0);break;case cu:s=!0;break;case hu:if(s)return!1;break}}return!1}function YR(t,e){let r=Object.create(null),s=e.printWidth,i=MR(e.endOfLine),n=0,o=[{indent:dA,mode:hr,doc:t}],l="",c=!1,f=[],h=[],d=[],D=[],y=0;for(SR(t);o.length>0;){let{indent:E,mode:v,doc:F}=o.pop();switch(Ni(F)){case gn:{let T=i!==`
145
+ `?Xt(0,F,`
146
+ `,i):F;T&&(l+=T,o.length>0&&(n+=wf(T)));break}case bi:for(let T=F.length-1;T>=0;T--)o.push({indent:E,mode:v,doc:F[T]});break;case ap:if(h.length>=2)throw new Error("There are too many 'cursor' in doc.");h.push(y+l.length);break;case Ca:o.push({indent:GR(E,e),mode:v,doc:F.contents});break;case ba:o.push({indent:KR(E,F.n,e),mode:v,doc:F.contents});break;case lu:b();break;case Ti:switch(v){case ns:if(!c){o.push({indent:E,mode:F.break?hr:ns,doc:F.contents});break}case hr:{c=!1;let T={indent:E,mode:ns,doc:F.contents},w=s-n,P=f.length>0;if(!F.break&&Hu(T,o,w,P,r))o.push(T);else if(F.expandedStates){let k=jr(0,F.expandedStates,-1);if(F.break){o.push({indent:E,mode:hr,doc:k});break}else for(let N=1;N<F.expandedStates.length+1;N++)if(N>=F.expandedStates.length){o.push({indent:E,mode:hr,doc:k});break}else{let _=F.expandedStates[N],L={indent:E,mode:ns,doc:_};if(Hu(L,o,w,P,r)){o.push(L);break}}}else o.push({indent:E,mode:hr,doc:F.contents});break}}F.id&&(r[F.id]=jr(0,o,-1).mode);break;case xn:{let T=s-n,w=F[wh]??0,{parts:P}=F,k=P.length-w;if(k===0)break;let N=P[w+0],_=P[w+1],L={indent:E,mode:ns,doc:N},I={indent:E,mode:hr,doc:N},M=Hu(L,[],T,f.length>0,r,!0);if(k===1){M?o.push(L):o.push(I);break}let K={indent:E,mode:ns,doc:_},$={indent:E,mode:hr,doc:_};if(k===2){M?o.push(K,L):o.push($,I);break}let z=P[w+2],re={indent:E,mode:v,doc:{...F,[wh]:w+2}},te=Hu({indent:E,mode:ns,doc:[N,_,z]},[],T,f.length>0,r,!0);o.push(re),te?o.push(K,L):M?o.push($,L):o.push($,I);break}case gi:case pu:{let T=F.groupId?r[F.groupId]:v;if(T===hr){let w=F.type===gi?F.breakContents:F.negate?F.contents:Th(F.contents);w&&o.push({indent:E,mode:v,doc:w})}if(T===ns){let w=F.type===gi?F.flatContents:F.negate?Th(F.contents):F.contents;w&&o.push({indent:E,mode:v,doc:w})}break}case cu:f.push({indent:E,mode:v,doc:F.contents});break;case hu:f.length>0&&o.push({indent:E,mode:v,doc:Ff});break;case ei:switch(v){case ns:if(F.hard)c=!0;else{F.soft||(l+=" ",n+=1);break}case hr:if(f.length>0){o.push({indent:E,mode:v,doc:F},...f.reverse()),f.length=0;break}F.literal?(l+=i,n=0,E.root&&(E.root.value&&(l+=E.root.value),n=E.root.length)):(b(),l+=i+E.value,n=E.length);break}break;case du:o.push({indent:E,mode:v,doc:F.contents});break;case Ta:break;default:throw new bl(F)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let g=d.join("")+l,x=[...D,...h];if(x.length!==2)return{formatted:g};let C=x[0];return{formatted:g,cursorNodeStart:C,cursorNodeText:g.slice(C,jr(0,x,-1))};function b(){let{text:E,count:v}=mA(l);E&&(d.push(E),y+=E.length),l="",n-=v,h.length>0&&(D.push(...h.map(F=>Math.min(F,y))),h.length=0)}}function QR(t,e){let r=t.matchAll(new RegExp(`(?:${np(e)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((s,[i])=>Math.max(s,i.length),0)/e.length}var yA=QR;function ZR(t,e){let r=t.match(new RegExp(`(${np(e)})+`,"gu"));if(r===null)return 1;let s=new Map,i=0;for(let n of r){let o=n.length/e.length;s.set(o,!0),o>i&&(i=o)}for(let n=1;n<i;n++)if(!s.get(n))return n;return i+1}var ej=ZR,DA=Object.freeze({character:"'",codePoint:39}),gA=Object.freeze({character:'"',codePoint:34}),tj=Object.freeze({preferred:DA,alternate:gA}),rj=Object.freeze({preferred:gA,alternate:DA});function sj(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?tj:rj,{length:i}=t,n=0,o=0;for(let l=0;l<i;l++){let c=t.charCodeAt(l);c===r.codePoint?n++:c===s.codePoint&&o++}return(n>o?s:r).character}var ij=sj,nj=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},aj=nj,oj=ga(Af()),uj=Array.prototype.toReversed??function(){return[...this].reverse()},lj=Tf("toReversed",function(){if(Array.isArray(this))return uj}),pj=lj;function cj(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var hj=cj();function xA(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function dj(t){return t=xA(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function fj(t){t=xA(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function mj(t){return hj?fj(t):dj(t)}var yj=t=>String(t).split(/[/\\]/u).pop(),Dj=t=>String(t).startsWith("file:");function p2(t,e){if(!e)return;let r=yj(e).toLowerCase();return t.find(({filenames:s})=>s?.some(i=>i.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(i=>r.endsWith(i)))}function gj(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var xj=void 0;function c2(t,e){if(e){if(Dj(e))try{e=mj(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function Ej(t,e){let r=pj(0,t.plugins).flatMap(s=>s.languages??[]);return(gj(r,e.language)??p2(r,e.physicalFile)??p2(r,e.file)??c2(r,e.physicalFile)??c2(r,e.file)??xj?.(r,e.physicalFile))?.parsers[0]}var h2=Ej,EA=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Aj(t){return!!t?.[EA]}var Cj=Aj,Ka=3;function bj(t){let e=t.slice(0,Ka);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
147
+ `,Ka);if(r===-1)return;let s=t.slice(Ka,r).trim(),i=t.indexOf(`
148
+ ${e}`,r),n=s;if(n||(n=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&n==="yaml"&&(i=t.indexOf(`
149
+ ...`,r)),i===-1)return;let o=i+1+Ka,l=t.charAt(o+1);if(!/\s?/u.test(l))return;let c=t.slice(0,o),f;return{language:n,explicitLanguage:s||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:c.slice(-Ka),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return f??(f=c.split(`
150
+ `)),f.length},get column(){return f??(f=c.split(`
151
+ `)),jr(0,f,-1).length}},[EA]:!0}}function Tj(t){let e=bj(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return Xt(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var op=Tj,vj="format",Fj=/<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,wj=/<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,AA=t=>op(t).content.trimStart().match(wj)?.index===0,Sj=t=>op(t).content.trimStart().match(Fj)?.index===0,Pj=t=>{let{frontMatter:e}=op(t),r=`<!-- @${vj} -->`;return e?`${e.raw}
152
+
153
+ ${r}
154
+
155
+ ${t.slice(e.end.index)}`:`${r}
156
+
157
+ ${t}`},kj=new Set(["position","raw"]);function CA(t,e,r){if((t.type==="code"||t.type==="yaml"||t.type==="import"||t.type==="export"||t.type==="jsx")&&delete e.value,t.type==="list"&&delete e.isAligned,(t.type==="list"||t.type==="listItem")&&delete e.spread,t.type==="text")return null;if(t.type==="inlineCode"&&(e.value=Xt(0,t.value,`
158
+ `," ")),t.type==="wikiLink"&&(e.value=Xt(0,t.value.trim(),/[\t\n]+/gu," ")),(t.type==="definition"||t.type==="linkReference"||t.type==="imageReference")&&(e.label=(0,oj.default)(t.label)),(t.type==="link"||t.type==="image")&&t.url&&t.url.includes("("))for(let s of"<>")e.url=Xt(0,t.url,s,encodeURIComponent(s));if((t.type==="definition"||t.type==="link"||t.type==="image")&&t.title&&(e.title=Xt(0,t.title,/\\(?=["')])/gu,"")),r?.type==="root"&&r.children.length>0&&(r.children[0]===t||Cj(r.children[0])&&r.children[1]===t)&&t.type==="html"&&AA(t.value))return null}CA.ignoredProperties=kj;var Ij=CA,Bj=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,bo=new RegExp("(?:[\\u{21}-\\u{2f}\\u{3a}-\\u{40}\\u{5b}-\\u{60}\\u{7b}-\\u{7e}]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})","u"),vl=t=>t.position.start.offset,Fl=t=>t.position.end.offset,bA=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),TA=new Set([...bA,"tableCell","paragraph","heading"]),jo="non-cjk",Os="cj-letter",ia="k-letter",wl="cjk-punctuation",Nj=new RegExp("\\p{Script_Extensions=Hangul}","u");function vA(t){let e=[],r=t.split(/([\t\n ]+)/u);for(let[i,n]of r.entries()){if(i%2===1){e.push({type:"whitespace",value:/\n/u.test(n)?`
159
+ `:" "});continue}if((i===0||i===r.length-1)&&n==="")continue;let o=n.split(new RegExp(`(${Bj.source})`,"u"));for(let[l,c]of o.entries())if(!((l===0||l===o.length-1)&&c==="")){if(l%2===0){c!==""&&s({type:"word",value:c,kind:jo,isCJ:!1,hasLeadingPunctuation:bo.test(c[0]),hasTrailingPunctuation:bo.test(jr(0,c,-1))});continue}if(bo.test(c)){s({type:"word",value:c,kind:wl,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Nj.test(c)){s({type:"word",value:c,kind:ia,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}s({type:"word",value:c,kind:Os,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return e;function s(i){let n=jr(0,e,-1);n?.type==="word"&&!o(jo,wl)&&![n.value,i.value].some(l=>/\u3000/u.test(l))&&e.push({type:"whitespace",value:""}),e.push(i);function o(l,c){return n.kind===l&&i.kind===c||n.kind===c&&i.kind===l}}}function To(t,e){let r=e.originalText.slice(t.position.start.offset,t.position.end.offset),{numberText:s,leadingSpaces:i}=r.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(s),leadingSpaces:i}}function _j(t,e){return!t.ordered||t.children.length<2||To(t.children[1],e).number!==1?!1:To(t.children[0],e).number!==0?!0:t.children.length>2&&To(t.children[2],e).number===1}function FA(t,e){let{value:r}=t;return t.position.end.offset===e.length&&r.endsWith(`
160
+ `)&&e.endsWith(`
161
+ `)?r.slice(0,-1):r}function va(t,e){return(function r(s,i,n){let o={...e(s,i,n)};return o.children&&(o.children=o.children.map((l,c)=>r(l,c,[o,...n]))),o})(t,null,[])}function wA(t){if(t?.type!=="link"||t.children.length!==1)return!1;let[e]=t.children;return vl(t)===vl(e)&&Fl(t)===Fl(e)}function Sf(t){let e;if(t.type==="html")e=t.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let r;t.type==="esComment"?r=t:t.type==="paragraph"&&t.children.length===1&&t.children[0].type==="esComment"&&(r=t.children[0]),r&&(e=r.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return e?e[1]||"next":!1}function SA(t,e){return r(t,e,s=>s.ordered===t.ordered);function r(s,i,n){let o=-1;for(let l of i.children)if(l.type===s.type&&n(l)?o++:o=-1,l===s)return o}}function Lj(t,e){let{node:r}=t;switch(r.type){case"code":{let{lang:s}=r;if(!s)return;let i;return s==="angular-ts"?i=h2(e,{language:"typescript"}):s==="angular-html"?i="angular":i=h2(e,{language:s}),i?async n=>{let o={parser:i};s==="ts"||s==="typescript"?o.filepath="dummy.ts":s==="tsx"&&(o.filepath="dummy.tsx");let l=await n(FA(r,e.originalText),o),c=e.__inJsTemplate?"~":"`",f=c.repeat(Math.max(3,yA(r.value,c)+1));return vh([f,r.lang,r.meta?" "+r.meta:"",Vt,Mn(l),Vt,f])}:void 0}case"import":case"export":return s=>s(r.value,{__onHtmlBindingRoot:i=>Oj(i,r.type),parser:"babel"});case"jsx":return s=>s(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function Oj(t,e){let{program:{body:r}}=t;if(!r.every(s=>s.type==="ImportDeclaration"||s.type==="ExportDefaultDeclaration"||s.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${e}' in MDX.`)}var $j=Lj,Ga=null;function vo(t){if(Ga!==null&&typeof Ga.property){let e=Ga;return Ga=vo.prototype=null,e}return Ga=vo.prototype=t??Object.create(null),new vo}var Mj=10;for(let t=0;t<=Mj;t++)vo();function Rj(t){return vo(t)}function jj(t,e="type"){Rj(t);function r(s){let i=s[e],n=t[i];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return n}return r}var Uj=jj,Qe=[["children"],[]],qj={root:Qe[0],paragraph:Qe[0],sentence:Qe[0],word:Qe[1],whitespace:Qe[1],emphasis:Qe[0],strong:Qe[0],delete:Qe[0],inlineCode:Qe[1],wikiLink:Qe[1],link:Qe[0],image:Qe[1],blockquote:Qe[0],heading:Qe[0],code:Qe[1],html:Qe[1],list:Qe[0],thematicBreak:Qe[1],linkReference:Qe[0],imageReference:Qe[1],definition:Qe[1],footnote:Qe[0],footnoteReference:Qe[1],footnoteDefinition:Qe[0],table:Qe[0],tableCell:Qe[0],break:Qe[1],liquidNode:Qe[1],import:Qe[1],export:Qe[1],esComment:Qe[1],jsx:Qe[1],math:Qe[1],inlineMath:Qe[1],tableRow:Qe[0],listItem:Qe[0],text:Qe[1]},Vj=Uj(qj),zj=Vj;function lr(t,e,r,s={}){let{processor:i=r}=s,n=[];return t.each(()=>{let o=i(t);o!==!1&&(n.length>0&&Hj(t)&&(n.push(Vt),(Jj(t,e)||d2(t))&&n.push(Vt),d2(t)&&n.push(Vt)),n.push(o))},"children"),n}function Hj({node:t,parent:e}){let r=bA.has(t.type),s=t.type==="html"&&TA.has(e.type);return!r&&!s}var Wj=new Set(["listItem","definition"]);function Jj({node:t,previous:e,parent:r},s){if(f2(e,s)||t.type==="list"&&r.type==="listItem"&&e.type==="code")return!0;let i=e.type===t.type&&Wj.has(t.type),n=r.type==="listItem"&&(t.type==="list"||!f2(r,s)),o=Sf(e)==="next",l=t.type==="html"&&e.type==="html"&&e.position.end.line+1===t.position.start.line,c=t.type==="html"&&r.type==="listItem"&&e.type==="paragraph"&&e.position.end.line+1===t.position.start.line;return!(i||n||o||l||c)}function d2({node:t,previous:e}){let r=e.type==="list",s=t.type==="code"&&t.isIndented;return r&&s}function f2(t,e){return t.type==="listItem"&&(t.spread||e.originalText.charAt(t.position.end.offset-1)===`
162
+ `)}function Kj(t,e,r){let{node:s}=t,i=SA(s,t.parent),n=_j(s,e);return lr(t,e,r,{processor(){let o=c(),{node:l}=t;if(l.children.length===2&&l.children[1].type==="html"&&l.children[0].position.start.column!==l.children[1].position.start.column)return[o,m2(t,e,r,o)];return[o,Qi(" ".repeat(o.length),m2(t,e,r,o))];function c(){let f=s.ordered?(t.isFirst?s.start:n?1:s.start+t.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(s.isAligned||s.hasIndentedCodeblock)&&s.ordered?Gj(f,e):f}}})}function m2(t,e,r,s){let{node:i}=t,n=i.checked===null?"":i.checked?"[x] ":"[ ] ";return[n,lr(t,e,r,{processor({node:o,isFirst:l}){if(l&&o.type!=="list")return Qi(" ".repeat(n.length),r());let c=" ".repeat(Xj(e.tabWidth-s.length,0,3));return[c,Qi(c,r())]}})]}function Gj(t,e){let r=s();return t+" ".repeat(r>=4?0:r);function s(){let i=t.length%e.tabWidth;return i===0?0:e.tabWidth-i}}function Xj(t,e,r){return Math.max(e,Math.min(t,r))}function Yj(t,e,r){let{node:s}=t,i=[],n=t.map(()=>t.map(({index:d})=>{let D=YR(r(),e).formatted,y=wf(D);return i[d]=Math.max(i[d]??3,y),{text:D,width:y}},"children"),"children"),o=c(!1);if(e.proseWrap!=="never")return[Tl,o];let l=c(!0);return[Tl,ll(kR(l,o))];function c(d){return pA(Ff,[h(n[0],d),f(d),...n.slice(1).map(D=>h(D,d))].map(D=>`| ${D.join(" | ")} |`))}function f(d){return i.map((D,y)=>{let g=s.align[y],x=g==="center"||g==="left"?":":"-",C=g==="center"||g==="right"?":":"-",b=d?"-":"-".repeat(D-2);return`${x}${b}${C}`})}function h(d,D){return d.map(({text:y,width:g},x)=>{if(D)return y;let C=i[x]-g,b=s.align[x],E=0;b==="right"?E=C:b==="center"&&(E=Math.floor(C/2));let v=C-E;return`${" ".repeat(E)}${y}${" ".repeat(v)}`})}}function Qj(t){let{node:e}=t,r=Xt(0,Xt(0,e.value,"*","\\*"),new RegExp([`(^|${bo.source})(_+)`,`(_+)(${bo.source}|$)`].join("|"),"gu"),(n,o,l,c,f)=>Xt(0,l?`${o}${l}`:`${c}${f}`,"_","\\_")),s=(n,o,l)=>n.type==="sentence"&&l===0,i=(n,o,l)=>wA(n.children[l-1]);return r!==e.value&&(t.match(void 0,s,i)||t.match(void 0,s,(n,o,l)=>n.type==="emphasis"&&l===0,i))&&(r=r.replace(/^(\\?[*_])+/u,n=>Xt(0,n,"\\",""))),r}function Zj(t,e,r){let s=t.map(r,"children");return eU(s)}function eU(t){let e=[""];return(function r(s){for(let i of s){let n=Ni(i);if(n===bi){r(i);continue}let o=i,l=[];n===xn&&([o,...l]=i.parts),e.push([e.pop(),o],...l)}})(t),vf(e)}var tU=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let e=this.#e,r=0;for(let s=0;s<t.length&&e.has(t.charAt(s));s++)r++;return r}getTrailingWhitespaceCount(t){let e=this.#e,r=0;for(let s=t.length-1;s>=0&&e.has(t.charAt(s));s--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(jr(0,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${np([...this.#e].join(""))}]+`,s=new RegExp(e?`(${r})`:r,"u");return t.split(s)}hasWhitespaceCharacter(t){let e=this.#e;return Array.prototype.some.call(t,r=>e.has(r))}hasNonWhitespaceCharacter(t){let e=this.#e;return Array.prototype.some.call(t,r=>!e.has(r))}isWhitespaceOnly(t){let e=this.#e;return Array.prototype.every.call(t,r=>e.has(r))}#t(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(`
163
+ `)){if(r.length===0)continue;let s=this.getLeadingWhitespaceCount(r);if(s===0)return 0;r.length!==s&&s<e&&(e=s)}return e===Number.POSITIVE_INFINITY?0:e}dedentString(t){let e=this.#t(t);return e===0?t:t.split(`
164
+ `).map(r=>r.slice(e)).join(`
165
+ `)}},rU=tU,sU=[" ",`
166
+ `,"\f","\r"," "],iU=new rU(sU),y2=iU,nU=/^\\?.$/su,aU=/^\n *>[ >]*$/u;function oU(t,e){return t=uU(t,e),t=pU(t),t=hU(t,e),t=dU(t,e),t=cU(t),t}function uU(t,e){return va(t,r=>{if(r.type!=="text")return r;let{value:s}=r;if(s==="*"||s==="_"||!nU.test(s)||r.position.end.offset-r.position.start.offset===s.length)return r;let i=e.originalText.slice(r.position.start.offset,r.position.end.offset);return aU.test(i)?r:{...r,value:i}})}function lU(t,e,r){return va(t,s=>{if(!s.children)return s;let i=[],n,o;for(let l of s.children)n&&e(n,l)?(l=r(n,l),i.splice(-1,1,l),o||(o=!0)):i.push(l),n=l;return o?{...s,children:i}:s})}function pU(t){return lU(t,(e,r)=>e.type==="text"&&r.type==="text",(e,r)=>({type:"text",value:e.value+r.value,position:{start:e.position.start,end:r.position.end}}))}function cU(t){return va(t,(e,r,[s])=>{if(e.type!=="text")return e;let{value:i}=e;return s.type==="paragraph"&&(r===0&&(i=y2.trimStart(i)),r===s.children.length-1&&(i=y2.trimEnd(i))),{type:"sentence",position:e.position,children:vA(i)}})}function hU(t,e){return va(t,(r,s,i)=>{if(r.type==="code"){let n=/^\n?(?: {4,}|\t)/u.test(e.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=n,n)for(let o=0;o<i.length;o++){let l=i[o];if(l.hasIndentedCodeblock)break;l.type==="list"&&(l.hasIndentedCodeblock=!0)}}return r})}function dU(t,e){return va(t,(i,n,o)=>{if(i.type==="list"&&i.children.length>0){for(let l=0;l<o.length;l++){let c=o[l];if(c.type==="list"&&!c.isAligned)return i.isAligned=!1,i}i.isAligned=s(i)}return i});function r(i){return i.children.length===0?-1:i.children[0].position.start.column-1}function s(i){if(!i.ordered)return!0;let[n,o]=i.children;if(To(n,e).leadingSpaces.length>1)return!0;let l=r(n);if(l===-1)return!1;if(i.children.length===1)return l%e.tabWidth===0;let c=r(o);return l!==c?!1:l%e.tabWidth===0?!0:To(o,e).leadingSpaces.length>1}}var fU=oU;function mU(t,e){let r=[""];return t.each(()=>{let{node:s}=t,i=e();switch(s.type){case"whitespace":if(Ni(i)!==gn){r.push(i,"");break}default:r.push([r.pop(),i])}},"children"),vf(r)}var yU=new Set(["heading","tableCell","link","wikiLink"]),D2=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function DU({parent:t}){if(t.usesCJSpaces===void 0){let e={" ":0,"":0},{children:r}=t;for(let s=1;s<r.length-1;++s){let i=r[s];if(i.type==="whitespace"&&(i.value===" "||i.value==="")){let n=r[s-1].kind,o=r[s+1].kind;(n===Os&&o===jo||n===jo&&o===Os)&&++e[i.value]}}t.usesCJSpaces=e[" "]>e[""]}return t.usesCJSpaces}function gU(t,e){if(e)return!0;let{previous:r,next:s}=t;if(!r||!s)return!0;let i=r.kind,n=s.kind;return g2(i)&&g2(n)||i===ia&&n===Os||n===ia&&i===Os?!0:i===wl||n===wl||i===Os&&n===Os?!1:D2.has(s.value[0])||D2.has(jr(0,r.value,-1))?!0:r.hasTrailingPunctuation||s.hasLeadingPunctuation?!1:DU(t)}function g2(t){return t===jo||t===ia}function xU(t,e,r,s){if(r!=="always"||t.hasAncestor(o=>yU.has(o.type)))return!1;if(s)return e!=="";let{previous:i,next:n}=t;return!i||!n?!0:e===""?!1:i.kind===ia&&n.kind===Os||n.kind===ia&&i.kind===Os?!0:!(i.isCJ||n.isCJ)}function x2(t,e,r,s){if(r==="preserve"&&e===`
167
+ `)return Vt;let i=e===" "||e===`
168
+ `&&gU(t,s);return xU(t,e,r,s)?i?cA:hA:i?" ":""}function E2(t){let{previous:e,next:r}=t;return e?.type==="sentence"&&jr(0,e.children,-1)?.type==="word"&&!jr(0,e.children,-1).hasTrailingPunctuation||r?.type==="sentence"&&r.children[0]?.type==="word"&&!r.children[0].hasLeadingPunctuation}function EU(t,e,r){let{node:s}=t;if(CU(t)){let i=[""],n=vA(e.originalText.slice(s.position.start.offset,s.position.end.offset));for(let o of n){if(o.type==="word"){i.push([i.pop(),o.value]);continue}let l=x2(t,o.value,e.proseWrap,!0);if(Ni(l)===gn){i.push([i.pop(),l]);continue}i.push(l,"")}return vf(i)}switch(s.type){case"root":return s.children.length===0?"":[AU(t,e,r),Vt];case"paragraph":return Zj(t,e,r);case"sentence":return mU(t,r);case"word":return Qj(t);case"whitespace":{let{next:i}=t,n=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":e.proseWrap;return x2(t,s.value,n)}case"emphasis":{let i;if(wA(s.children[0]))i=e.originalText[s.position.start.offset];else{let n=E2(t),o=t.callParent(({node:l})=>l.type==="strong"&&E2(t));i=n||o||t.hasAncestor(l=>l.type==="emphasis")?"*":"_"}return[i,lr(t,e,r),i]}case"strong":return["**",lr(t,e,r),"**"];case"delete":return["~~",lr(t,e,r),"~~"];case"inlineCode":{let i=e.proseWrap==="preserve"?s.value:Xt(0,s.value,`
169
+ `," "),n=ej(i,"`"),o="`".repeat(n),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[o,l,i,l,o]}case"wikiLink":{let i="";return e.proseWrap==="preserve"?i=s.value:i=Xt(0,s.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(e.originalText[s.position.start.offset]){case"<":{let i="mailto:";return["<",s.url.startsWith(i)&&e.originalText.slice(s.position.start.offset+1,s.position.start.offset+1+i.length)!==i?s.url.slice(i.length):s.url,">"]}case"[":return["[",lr(t,e,r),"](",Fc(s.url,")"),pl(s.title,e),")"];default:return e.originalText.slice(s.position.start.offset,s.position.end.offset)}case"image":return["![",s.alt||"","](",Fc(s.url,")"),pl(s.title,e),")"];case"blockquote":return["> ",Qi("> ",lr(t,e,r))];case"heading":return["#".repeat(s.depth)+" ",lr(t,e,r)];case"code":{if(s.isIndented){let o=" ".repeat(4);return Qi(o,[o,Mn(s.value,Vt)])}let i=e.__inJsTemplate?"~":"`",n=i.repeat(Math.max(3,yA(s.value,i)+1));return[n,s.lang||"",s.meta?" "+s.meta:"",Vt,Mn(FA(s,e.originalText),Vt),Vt,n]}case"html":{let{parent:i,isLast:n}=t,o=i.type==="root"&&n?s.value.trimEnd():s.value,l=/^<!--.*-->$/su.test(o);return Mn(o,l?Vt:vh(Fh))}case"list":return Kj(t,e,r);case"thematicBreak":{let{ancestors:i}=t,n=i.findIndex(o=>o.type==="list");return n===-1?"---":SA(i[n],i[n+1])%2===0?"***":"---"}case"linkReference":return["[",lr(t,e,r),"]",s.referenceType==="full"?wc(s):s.referenceType==="collapsed"?"[]":""];case"imageReference":return s.referenceType==="full"?["![",s.alt||"","]",wc(s)]:["![",s.alt,"]",s.referenceType==="collapsed"?"[]":""];case"definition":{let i=e.proseWrap==="always"?cA:" ";return ll([wc(s),":",Th([i,Fc(s.url),s.title===null?"":[i,pl(s.title,e,!1)]])])}case"footnote":return["[^",lr(t,e,r),"]"];case"footnoteReference":return C2(s);case"footnoteDefinition":{let i=s.children.length===1&&s.children[0].type==="paragraph"&&(e.proseWrap==="never"||e.proseWrap==="preserve"&&s.children[0].position.start.line===s.children[0].position.end.line);return[C2(s),": ",i?lr(t,e,r):ll([Qi(" ".repeat(4),lr(t,e,r,{processor:({isFirst:n})=>n?ll([hA,r()]):r()}))])]}case"table":return Yj(t,e,r);case"tableCell":return lr(t,e,r);case"break":return/\s/u.test(e.originalText[s.position.start.offset])?[" ",vh(Fh)]:["\\",Vt];case"liquidNode":return Mn(s.value,Vt);case"import":case"export":case"jsx":return s.value.trimEnd();case"esComment":return["{/* ",s.value," */}"];case"math":return["$$",Vt,s.value?[Mn(s.value,Vt),Vt]:"","$$"];case"inlineMath":return e.originalText.slice(vl(s),Fl(s));default:throw new aj(s,"Markdown")}}function AU(t,e,r){let s=[],i=null,{children:n}=t.node;for(let[o,l]of n.entries())switch(Sf(l)){case"start":i===null&&(i={index:o,offset:l.position.end.offset});break;case"end":i!==null&&(s.push({start:i,end:{index:o,offset:l.position.start.offset}}),i=null);break}return lr(t,e,r,{processor({index:o}){if(s.length>0){let l=s[0];if(o===l.start.index)return[A2(n[l.start.index]),e.originalText.slice(l.start.offset,l.end.offset),A2(n[l.end.index])];if(l.start.index<o&&o<l.end.index)return!1;if(o===l.end.index)return s.shift(),!1}return r()}})}function A2(t){if(t.type==="html")return t.value;if(t.type==="paragraph"&&Array.isArray(t.children)&&t.children.length===1&&t.children[0].type==="esComment")return["{/* ",t.children[0].value," */}"]}function CU(t){let e=t.findAncestor(r=>r.type==="linkReference"||r.type==="imageReference");return e&&(e.type!=="linkReference"||e.referenceType!=="full")}var bU=(t,e)=>{for(let r of e)t=Xt(0,t,r,encodeURIComponent(r));return t};function Fc(t,e=[]){let r=[" ",...Array.isArray(e)?e:[e]];return new RegExp(r.map(s=>np(s)).join("|"),"u").test(t)?`<${bU(t,"<>")}>`:t}function pl(t,e,r=!0){if(!t)return"";if(r)return" "+pl(t,e,!1);if(t=Xt(0,t,/\\(?=["')])/gu,""),t.includes('"')&&t.includes("'")&&!t.includes(")"))return`(${t})`;let s=ij(t,e.singleQuote);return t=Xt(0,t,"\\","\\\\"),t=Xt(0,t,s,`\\${s}`),`${s}${t}${s}`}function TU(t){return t.index>0&&Sf(t.previous)==="next"}function wc(t){return`[${(0,gR.default)(t.label)}]`}function C2(t){return`[^${t.label}]`}var vU={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:fU,print:EU,embed:$j,massageAstNode:Ij,hasPrettierIgnore:TU,insertPragma:Pj,getVisitorKeys:zj},FU=vU,PA=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],b2={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]}},wU={proseWrap:b2.proseWrap,singleQuote:b2.singleQuote},kA=wU,Pf={};QE(Pf,{markdown:()=>v2,mdx:()=>JU,remark:()=>v2});var SU=ga(H$()),PU=ga(K$()),kU=ga(eR()),IU=ga(dR()),BU=/^import\s/u,NU=/^export\s/u,_U="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",LU=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,OU=/^\{\s*\/\*(.*)\*\/\s*\}/u,$U=t=>BU.test(t),IA=t=>NU.test(t),BA=t=>$U(t)||IA(t),kf=(t,e)=>{let r=e.indexOf(`
170
+
171
+ `),s=r===-1?e:e.slice(0,r);if(BA(s))return t(s)({type:IA(s)?"export":"import",value:s})};kf.notInBlock=!0;kf.locator=t=>BA(t)?-1:1;var NA=(t,e)=>{let r=OU.exec(e);if(r)return t(r[0])({type:"esComment",value:r[1].trim()})};NA.locator=(t,e)=>t.indexOf("{",e);var MU=function(){let{Parser:t}=this,{blockTokenizers:e,blockMethods:r,inlineTokenizers:s,inlineMethods:i}=t.prototype;e.esSyntax=kf,s.esComment=NA,r.splice(r.indexOf("paragraph"),0,"esSyntax"),i.splice(i.indexOf("text"),0,"esComment")},RU=function(){let t=this.Parser.prototype;t.blockMethods=["frontMatter",...t.blockMethods],t.blockTokenizers.frontMatter=e;function e(r,s){let{frontMatter:i}=op(s);if(i)return r(i.raw)({...i,type:"frontMatter"})}e.onlyAtStart=!0},jU=RU;function UU(){return t=>va(t,(e,r,[s])=>e.type!=="html"||LU.test(e.value)||TA.has(s.type)?e:{...e,type:"jsx"})}var qU=UU,VU=function(){let t=this.Parser.prototype,e=t.inlineMethods;e.splice(e.indexOf("text"),0,"liquid"),t.inlineTokenizers.liquid=r;function r(s,i){let n=i.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(n)return s(n[0])({type:"liquidNode",value:n[0]})}r.locator=function(s,i){return s.indexOf("{",i)}},zU=VU,HU=function(){let t="wikiLink",e=/^\[\[(?<linkContents>.+?)\]\]/su,r=this.Parser.prototype,s=r.inlineMethods;s.splice(s.indexOf("link"),0,t),r.inlineTokenizers.wikiLink=i;function i(n,o){let l=e.exec(o);if(l){let c=l.groups.linkContents.trim();return n(l[0])({type:t,value:c})}}i.locator=function(n,o){return n.indexOf("[",o)}},WU=HU;function _A({isMDX:t}){return e=>{let r=(0,IU.default)().use(kU.default,{commonmark:!0,...t&&{blocks:[_U]}}).use(SU.default).use(jU).use(PU.default).use(t?MU:T2).use(zU).use(t?qU:T2).use(WU);return r.run(r.parse(e))}}function T2(){}var LA={astFormat:"mdast",hasPragma:AA,hasIgnorePragma:Sj,locStart:vl,locEnd:Fl},v2={...LA,parse:_A({isMDX:!1})},JU={...LA,parse:_A({isMDX:!0})},OA={mdast:FU};const KU=Object.freeze(Object.defineProperty({__proto__:null,default:uA,languages:PA,options:kA,parsers:Pf,printers:OA},Symbol.toStringTag,{value:"Module"}));var GU=Object.create,If=Object.defineProperty,XU=Object.getOwnPropertyDescriptor,YU=Object.getOwnPropertyNames,QU=Object.getPrototypeOf,ZU=Object.prototype.hasOwnProperty,xe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$A=(t,e)=>{for(var r in e)If(t,r,{get:e[r],enumerable:!0})},eq=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YU(e))!ZU.call(t,i)&&i!==r&&If(t,i,{get:()=>e[i],enumerable:!(s=XU(e,i))||s.enumerable});return t},Fa=(t,e,r)=>(r=t!=null?GU(QU(t)):{},eq(If(r,"default",{value:t,enumerable:!0}),t)),tq=xe((t,e)=>{var r=String,s=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};e.exports=s(),e.exports.createColors=s}),MA=xe(()=>{}),Bf=xe((t,e)=>{var r=tq(),s=MA(),i=class RA extends Error{constructor(o,l,c,f,h,d){super(o),this.name="CssSyntaxError",this.reason=o,h&&(this.file=h),f&&(this.source=f),d&&(this.plugin=d),typeof l<"u"&&typeof c<"u"&&(typeof l=="number"?(this.line=l,this.column=c):(this.line=l.line,this.column=l.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,RA)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(o){if(!this.source)return"";let l=this.source;o==null&&(o=r.isColorSupported);let c=x=>x,f=x=>x,h=x=>x;if(o){let{bold:x,gray:C,red:b}=r.createColors(!0);f=E=>x(b(E)),c=E=>C(E),s&&(h=E=>s(E))}let d=l.split(/\r?\n/),D=Math.max(this.line-3,0),y=Math.min(this.line+2,d.length),g=String(y).length;return d.slice(D,y).map((x,C)=>{let b=D+1+C,E=" "+(" "+b).slice(-g)+" | ";if(b===this.line){if(x.length>160){let F=20,T=Math.max(0,this.column-F),w=Math.max(this.column+F,this.endColumn+F),P=x.slice(T,w),k=c(E.replace(/\d/g," "))+x.slice(0,Math.min(this.column-1,F-1)).replace(/[^\t]/g," ");return f(">")+c(E)+h(P)+`
172
+ `+k+f("^")}let v=c(E.replace(/\d/g," "))+x.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+c(E)+h(x)+`
173
+ `+v+f("^")}return" "+c(E)+h(x)}).join(`
174
+ `)}toString(){let o=this.showSourceCode();return o&&(o=`
175
+
176
+ `+o+`
177
+ `),this.name+": "+this.message+o}};e.exports=i,i.default=i}),Nf=xe((t,e)=>{var r={after:`
178
+ `,beforeClose:`
179
+ `,beforeComment:`
180
+ `,beforeDecl:`
181
+ `,beforeOpen:" ",beforeRule:`
182
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function s(n){return n[0].toUpperCase()+n.slice(1)}var i=class{constructor(n){this.builder=n}atrule(n,o){let l="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?l+=n.raws.afterName:c&&(l+=" "),n.nodes)this.block(n,l+c);else{let f=(n.raws.between||"")+(o?";":"");this.builder(l+c+f,n)}}beforeAfter(n,o){let l;n.type==="decl"?l=this.raw(n,null,"beforeDecl"):n.type==="comment"?l=this.raw(n,null,"beforeComment"):o==="before"?l=this.raw(n,null,"beforeRule"):l=this.raw(n,null,"beforeClose");let c=n.parent,f=0;for(;c&&c.type!=="root";)f+=1,c=c.parent;if(l.includes(`
183
+ `)){let h=this.raw(n,null,"indent");if(h.length)for(let d=0;d<f;d++)l+=h}return l}block(n,o){let l=this.raw(n,"between","beforeOpen");this.builder(o+l+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let l=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let f=n.nodes[c],h=this.raw(f,"before");h&&this.builder(h),this.stringify(f,o!==c||l)}}comment(n){let o=this.raw(n,"left","commentLeft"),l=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+l+"*/",n)}decl(n,o){let l=this.raw(n,"between","colon"),c=n.prop+l+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),o&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,o,l){let c;if(l||(l=o),o&&(c=n.raws[o],typeof c<"u"))return c;let f=n.parent;if(l==="before"&&(!f||f.type==="root"&&f.first===n||f&&f.type==="document"))return"";if(!f)return r[l];let h=n.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[l]<"u")return h.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(n,l);{let d="raw"+s(l);this[d]?c=this[d](h,n):h.walk(D=>{if(c=D.raws[o],typeof c<"u")return!1})}return typeof c>"u"&&(c=r[l]),h.rawCache[l]=c,c}rawBeforeClose(n){let o;return n.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return o=l.raws.after,o.includes(`
184
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let l;return n.walkComments(c=>{if(typeof c.raws.before<"u")return l=c.raws.before,l.includes(`
185
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(o,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(n,o){let l;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return l=c.raws.before,l.includes(`
186
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(o,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(n){let o;return n.walk(l=>{if(l.type!=="decl"&&(o=l.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(n){let o;return n.walk(l=>{if(l.nodes&&(l.parent!==n||n.first!==l)&&typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
187
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(l=>{if(typeof l.raws.between<"u")return o=l.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(l=>{if(l.nodes&&l.nodes.length===0&&(o=l.raws.after,typeof o<"u"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(l=>{let c=l.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof l.raws.before<"u"){let f=l.raws.before.split(`
188
+ `);return o=f[f.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(o=l.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(n,o){let l=n[o],c=n.raws[o];return c&&c.value===l?c.raw:l}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}};e.exports=i,i.default=i}),up=xe((t,e)=>{var r=Nf();function s(i,n){new r(n).stringify(i)}e.exports=s,s.default=s}),_f=xe((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")}),lp=xe((t,e)=>{var r=Bf(),s=Nf(),i=up(),{isClean:n,my:o}=_f();function l(h,d){let D=new h.constructor;for(let y in h){if(!Object.prototype.hasOwnProperty.call(h,y)||y==="proxyCache")continue;let g=h[y],x=typeof g;y==="parent"&&x==="object"?d&&(D[y]=d):y==="source"?D[y]=g:Array.isArray(g)?D[y]=g.map(C=>l(C,D)):(x==="object"&&g!==null&&(g=l(g)),D[y]=g)}return D}function c(h,d){if(d&&typeof d.offset<"u")return d.offset;let D=1,y=1,g=0;for(let x=0;x<h.length;x++){if(y===d.line&&D===d.column){g=x;break}h[x]===`
189
+ `?(D=1,y+=1):D+=1}return g}var f=class{get proxyOf(){return this}constructor(h={}){this.raws={},this[n]=!1,this[o]=!0;for(let d in h)if(d==="nodes"){this.nodes=[];for(let D of h[d])typeof D.clone=="function"?this.append(D.clone()):this.append(D)}else this[d]=h[d]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let d=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let d in h)this[d]=h[d];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let d=l(this);for(let D in h)d[D]=h[D];return d}cloneAfter(h={}){let d=this.clone(h);return this.parent.insertAfter(this,d),d}cloneBefore(h={}){let d=this.clone(h);return this.parent.insertBefore(this,d),d}error(h,d={}){if(this.source){let{end:D,start:y}=this.rangeBy(d);return this.source.input.error(h,{column:y.column,line:y.line},{column:D.column,line:D.line},d)}return new r(h)}getProxyProcessor(){return{get(h,d){return d==="proxyOf"?h:d==="root"?()=>h.root().toProxy():h[d]},set(h,d,D){return h[d]===D||(h[d]=D,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&h.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let h=this;for(;h=h.parent;)h[n]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let d=this.source.start;if(h.index)d=this.positionInside(h.index);else if(h.word){let D="document"in this.source.input?this.source.input.document:this.source.input.css,y=D.slice(c(D,this.source.start),c(D,this.source.end)).indexOf(h.word);y!==-1&&(d=this.positionInside(y))}return d}positionInside(h){let d=this.source.start.column,D=this.source.start.line,y="document"in this.source.input?this.source.input.document:this.source.input.css,g=c(y,this.source.start),x=g+h;for(let C=g;C<x;C++)y[C]===`
190
+ `?(d=1,D+=1):d+=1;return{column:d,line:D,offset:x}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let d="document"in this.source.input?this.source.input.document:this.source.input.css,D={column:this.source.start.column,line:this.source.start.line,offset:c(d,this.source.start)},y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:c(d,this.source.end)+1}:{column:D.column+1,line:D.line,offset:D.offset+1};if(h.word){let g=d.slice(c(d,this.source.start),c(d,this.source.end)).indexOf(h.word);g!==-1&&(D=this.positionInside(g),y=this.positionInside(g+h.word.length))}else h.start?D={column:h.start.column,line:h.start.line,offset:c(d,h.start)}:h.index&&(D=this.positionInside(h.index)),h.end?y={column:h.end.column,line:h.end.line,offset:c(d,h.end)}:typeof h.endIndex=="number"?y=this.positionInside(h.endIndex):h.index&&(y=this.positionInside(h.index+1));return(y.line<D.line||y.line===D.line&&y.column<=D.column)&&(y={column:D.column+1,line:D.line,offset:D.offset+1}),{end:y,start:D}}raw(h,d){return new s().raw(this,h,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let d=this,D=!1;for(let y of h)y===this?D=!0:D?(this.parent.insertAfter(d,y),d=y):this.parent.insertBefore(d,y);D||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,d){let D={},y=d==null;d=d||new Map;let g=0;for(let x in this){if(!Object.prototype.hasOwnProperty.call(this,x)||x==="parent"||x==="proxyCache")continue;let C=this[x];if(Array.isArray(C))D[x]=C.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,d):b);else if(typeof C=="object"&&C.toJSON)D[x]=C.toJSON(null,d);else if(x==="source"){if(C==null)continue;let b=d.get(C.input);b==null&&(b=g,d.set(C.input,g),g++),D[x]={end:C.end,inputId:b,start:C.start}}else D[x]=C}return y&&(D.inputs=[...d.keys()].map(x=>x.toJSON())),D}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let d="";return h(this,D=>{d+=D}),d}warn(h,d,D={}){let y={node:this};for(let g in D)y[g]=D[g];return h.warn(d,y)}};e.exports=f,f.default=f}),fu=xe((t,e)=>{var r=lp(),s=class extends r{constructor(i){super(i),this.type="comment"}};e.exports=s,s.default=s}),pp=xe((t,e)=>{var r=lp(),s=class extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}};e.exports=s,s.default=s}),En=xe((t,e)=>{var r=fu(),s=pp(),i=lp(),{isClean:n,my:o}=_f(),l,c,f,h;function d(g){return g.map(x=>(x.nodes&&(x.nodes=d(x.nodes)),delete x.source,x))}function D(g){if(g[n]=!1,g.proxyOf.nodes)for(let x of g.proxyOf.nodes)D(x)}var y=class jA extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...x){for(let C of x){let b=this.normalize(C,this.last);for(let E of b)this.proxyOf.nodes.push(E)}return this.markDirty(),this}cleanRaws(x){if(super.cleanRaws(x),this.nodes)for(let C of this.nodes)C.cleanRaws(x)}each(x){if(!this.proxyOf.nodes)return;let C=this.getIterator(),b,E;for(;this.indexes[C]<this.proxyOf.nodes.length&&(b=this.indexes[C],E=x(this.proxyOf.nodes[b],b),E!==!1);)this.indexes[C]+=1;return delete this.indexes[C],E}every(x){return this.nodes.every(x)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let x=this.lastEach;return this.indexes[x]=0,x}getProxyProcessor(){return{get(x,C){return C==="proxyOf"?x:x[C]?C==="each"||typeof C=="string"&&C.startsWith("walk")?(...b)=>x[C](...b.map(E=>typeof E=="function"?(v,F)=>E(v.toProxy(),F):E)):C==="every"||C==="some"?b=>x[C]((E,...v)=>b(E.toProxy(),...v)):C==="root"?()=>x.root().toProxy():C==="nodes"?x.nodes.map(b=>b.toProxy()):C==="first"||C==="last"?x[C].toProxy():x[C]:x[C]},set(x,C,b){return x[C]===b||(x[C]=b,(C==="name"||C==="params"||C==="selector")&&x.markDirty()),!0}}}index(x){return typeof x=="number"?x:(x.proxyOf&&(x=x.proxyOf),this.proxyOf.nodes.indexOf(x))}insertAfter(x,C){let b=this.index(x),E=this.normalize(C,this.proxyOf.nodes[b]).reverse();b=this.index(x);for(let F of E)this.proxyOf.nodes.splice(b+1,0,F);let v;for(let F in this.indexes)v=this.indexes[F],b<v&&(this.indexes[F]=v+E.length);return this.markDirty(),this}insertBefore(x,C){let b=this.index(x),E=b===0?"prepend":!1,v=this.normalize(C,this.proxyOf.nodes[b],E).reverse();b=this.index(x);for(let T of v)this.proxyOf.nodes.splice(b,0,T);let F;for(let T in this.indexes)F=this.indexes[T],b<=F&&(this.indexes[T]=F+v.length);return this.markDirty(),this}normalize(x,C){if(typeof x=="string")x=d(c(x).nodes);else if(typeof x>"u")x=[];else if(Array.isArray(x)){x=x.slice(0);for(let b of x)b.parent&&b.parent.removeChild(b,"ignore")}else if(x.type==="root"&&this.type!=="document"){x=x.nodes.slice(0);for(let b of x)b.parent&&b.parent.removeChild(b,"ignore")}else if(x.type)x=[x];else if(x.prop){if(typeof x.value>"u")throw new Error("Value field is missed in node creation");typeof x.value!="string"&&(x.value=String(x.value)),x=[new s(x)]}else if(x.selector||x.selectors)x=[new h(x)];else if(x.name)x=[new l(x)];else if(x.text)x=[new r(x)];else throw new Error("Unknown node type in node creation");return x.map(b=>(b[o]||jA.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[n]&&D(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&C&&typeof C.raws.before<"u"&&(b.raws.before=C.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...x){x=x.reverse();for(let C of x){let b=this.normalize(C,this.first,"prepend").reverse();for(let E of b)this.proxyOf.nodes.unshift(E);for(let E in this.indexes)this.indexes[E]=this.indexes[E]+b.length}return this.markDirty(),this}push(x){return x.parent=this,this.proxyOf.nodes.push(x),this}removeAll(){for(let x of this.proxyOf.nodes)x.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(x){x=this.index(x),this.proxyOf.nodes[x].parent=void 0,this.proxyOf.nodes.splice(x,1);let C;for(let b in this.indexes)C=this.indexes[b],C>=x&&(this.indexes[b]=C-1);return this.markDirty(),this}replaceValues(x,C,b){return b||(b=C,C={}),this.walkDecls(E=>{C.props&&!C.props.includes(E.prop)||C.fast&&!E.value.includes(C.fast)||(E.value=E.value.replace(x,b))}),this.markDirty(),this}some(x){return this.nodes.some(x)}walk(x){return this.each((C,b)=>{let E;try{E=x(C,b)}catch(v){throw C.addToError(v)}return E!==!1&&C.walk&&(E=C.walk(x)),E})}walkAtRules(x,C){return C?x instanceof RegExp?this.walk((b,E)=>{if(b.type==="atrule"&&x.test(b.name))return C(b,E)}):this.walk((b,E)=>{if(b.type==="atrule"&&b.name===x)return C(b,E)}):(C=x,this.walk((b,E)=>{if(b.type==="atrule")return C(b,E)}))}walkComments(x){return this.walk((C,b)=>{if(C.type==="comment")return x(C,b)})}walkDecls(x,C){return C?x instanceof RegExp?this.walk((b,E)=>{if(b.type==="decl"&&x.test(b.prop))return C(b,E)}):this.walk((b,E)=>{if(b.type==="decl"&&b.prop===x)return C(b,E)}):(C=x,this.walk((b,E)=>{if(b.type==="decl")return C(b,E)}))}walkRules(x,C){return C?x instanceof RegExp?this.walk((b,E)=>{if(b.type==="rule"&&x.test(b.selector))return C(b,E)}):this.walk((b,E)=>{if(b.type==="rule"&&b.selector===x)return C(b,E)}):(C=x,this.walk((b,E)=>{if(b.type==="rule")return C(b,E)}))}};y.registerParse=g=>{c=g},y.registerRule=g=>{h=g},y.registerAtRule=g=>{l=g},y.registerRoot=g=>{f=g},e.exports=y,y.default=y,y.rebuild=g=>{g.type==="atrule"?Object.setPrototypeOf(g,l.prototype):g.type==="rule"?Object.setPrototypeOf(g,h.prototype):g.type==="decl"?Object.setPrototypeOf(g,s.prototype):g.type==="comment"?Object.setPrototypeOf(g,r.prototype):g.type==="root"&&Object.setPrototypeOf(g,f.prototype),g[o]=!0,g.nodes&&g.nodes.forEach(x=>{y.rebuild(x)})}}),rq=xe((t,e)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(n,o=21)=>(l=o)=>{let c="",f=l|0;for(;f--;)c+=n[Math.random()*n.length|0];return c},i=(n=21)=>{let o="",l=n|0;for(;l--;)o+=r[Math.random()*64|0];return o};e.exports={nanoid:i,customAlphabet:s}}),sq=xe(()=>{}),UA=xe((t,e)=>{e.exports=class{}}),mu=xe((t,e)=>{var{nanoid:r}=rq(),{isAbsolute:s,resolve:i}={},{SourceMapConsumer:n,SourceMapGenerator:o}=sq(),{fileURLToPath:l,pathToFileURL:c}={},f=Bf(),h=UA(),d=MA(),D=Symbol("lineToIndexCache"),y=!!(n&&o),g=!!(i&&s);function x(b){if(b[D])return b[D];let E=b.css.split(`
191
+ `),v=new Array(E.length),F=0;for(let T=0,w=E.length;T<w;T++)v[T]=F,F+=E[T].length+1;return b[D]=v,v}var C=class{get from(){return this.file||this.id}constructor(b,E={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!g||/^\w+:\/\//.test(E.from)||s(E.from)?this.file=E.from:this.file=i(E.from)),g&&y){let v=new h(this.css,E);if(v.text){this.map=v;let F=v.consumer().file;!this.file&&F&&(this.file=this.mapResolve(F))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(b,E,v,F={}){let T,w,P,k,N;if(E&&typeof E=="object"){let L=E,I=v;if(typeof L.offset=="number"){k=L.offset;let M=this.fromOffset(k);E=M.line,v=M.col}else E=L.line,v=L.column,k=this.fromLineAndColumn(E,v);if(typeof I.offset=="number"){P=I.offset;let M=this.fromOffset(P);w=M.line,T=M.col}else w=I.line,T=I.column,P=this.fromLineAndColumn(I.line,I.column)}else if(v)k=this.fromLineAndColumn(E,v);else{k=E;let L=this.fromOffset(k);E=L.line,v=L.col}let _=this.origin(E,v,w,T);return _?N=new f(b,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,F.plugin):N=new f(b,w===void 0?E:{column:v,line:E},w===void 0?v:{column:T,line:w},this.css,this.file,F.plugin),N.input={column:v,endColumn:T,endLine:w,endOffset:P,line:E,offset:k,source:this.css},this.file&&(c&&(N.input.url=c(this.file).toString()),N.input.file=this.file),N}fromLineAndColumn(b,E){return x(this)[b-1]+E-1}fromOffset(b){let E=x(this),v=E[E.length-1],F=0;if(b>=v)F=E.length-1;else{let T=E.length-2,w;for(;F<T;)if(w=F+(T-F>>1),b<E[w])T=w-1;else if(b>=E[w+1])F=w+1;else{F=w;break}}return{col:b-E[F]+1,line:F+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:i(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,E,v,F){if(!this.map)return!1;let T=this.map.consumer(),w=T.originalPositionFor({column:E,line:b});if(!w.source)return!1;let P;typeof v=="number"&&(P=T.originalPositionFor({column:F,line:v}));let k;s(w.source)?k=c(w.source):k=new URL(w.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let N={column:w.column,endColumn:P&&P.column,endLine:P&&P.line,line:w.line,url:k.toString()};if(k.protocol==="file:")if(l)N.file=l(k);else throw new Error("file: protocol is not available in this PostCSS build");let _=T.sourceContentFor(w.source);return _&&(N.source=_),N}toJSON(){let b={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(b[E]=this[E]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}};e.exports=C,C.default=C,d&&d.registerInput&&d.registerInput(C)}),Lf=xe((t,e)=>{var r=En(),s=class extends r{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}};e.exports=s,s.default=s,r.registerAtRule(s)}),yu=xe((t,e)=>{var r=En(),s,i,n=class extends r{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,l,c){let f=super.normalize(o);if(l){if(c==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let h of f)h.raws.before=l.raws.before}return f}removeChild(o,l){let c=this.index(o);return!l&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(o)}toResult(o={}){return new s(new i,this,o).stringify()}};n.registerLazyResult=o=>{s=o},n.registerProcessor=o=>{i=o},e.exports=n,n.default=n,r.registerRoot(n)}),qA=xe((t,e)=>{var r={comma(s){return r.split(s,[","],!0)},space(s){let i=[" ",`
192
+ `," "];return r.split(s,i)},split(s,i,n){let o=[],l="",c=!1,f=0,h=!1,d="",D=!1;for(let y of s)D?D=!1:y==="\\"?D=!0:h?y===d&&(h=!1):y==='"'||y==="'"?(h=!0,d=y):y==="("?f+=1:y===")"?f>0&&(f-=1):f===0&&i.includes(y)&&(c=!0),c?(l!==""&&o.push(l.trim()),l="",c=!1):l+=y;return(n||l!=="")&&o.push(l.trim()),o}};e.exports=r,r.default=r}),Of=xe((t,e)=>{var r=En(),s=qA(),i=class extends r{get selectors(){return s.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,l=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(l)}constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}};e.exports=i,i.default=i,r.registerRule(i)}),$f=xe((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,n=/[\da-f]/i;e.exports=function(o,l={}){let c=o.css.valueOf(),f=l.ignoreErrors,h,d,D,y,g,x,C,b,E,v,F=c.length,T=0,w=[],P=[];function k(){return T}function N(M){throw o.error("Unclosed "+M,T)}function _(){return P.length===0&&T>=F}function L(M){if(P.length)return P.pop();if(T>=F)return;let K=M?M.ignoreUnclosed:!1;switch(h=c.charCodeAt(T),h){case 10:case 32:case 9:case 13:case 12:{y=T;do y+=1,h=c.charCodeAt(y);while(h===32||h===10||h===9||h===13||h===12);x=["space",c.slice(T,y)],T=y-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let $=String.fromCharCode(h);x=[$,$,T];break}case 40:{if(v=w.length?w.pop()[1]:"",E=c.charCodeAt(T+1),v==="url"&&E!==39&&E!==34&&E!==32&&E!==10&&E!==9&&E!==12&&E!==13){y=T;do{if(C=!1,y=c.indexOf(")",y+1),y===-1)if(f||K){y=T;break}else N("bracket");for(b=y;c.charCodeAt(b-1)===92;)b-=1,C=!C}while(C);x=["brackets",c.slice(T,y+1),T,y],T=y}else y=c.indexOf(")",T+1),d=c.slice(T,y+1),y===-1||i.test(d)?x=["(","(",T]:(x=["brackets",d,T,y],T=y);break}case 39:case 34:{g=h===39?"'":'"',y=T;do{if(C=!1,y=c.indexOf(g,y+1),y===-1)if(f||K){y=T+1;break}else N("string");for(b=y;c.charCodeAt(b-1)===92;)b-=1,C=!C}while(C);x=["string",c.slice(T,y+1),T,y],T=y;break}case 64:{r.lastIndex=T+1,r.test(c),r.lastIndex===0?y=c.length-1:y=r.lastIndex-2,x=["at-word",c.slice(T,y+1),T,y],T=y;break}case 92:{for(y=T,D=!0;c.charCodeAt(y+1)===92;)y+=1,D=!D;if(h=c.charCodeAt(y+1),D&&h!==47&&h!==32&&h!==10&&h!==9&&h!==13&&h!==12&&(y+=1,n.test(c.charAt(y)))){for(;n.test(c.charAt(y+1));)y+=1;c.charCodeAt(y+1)===32&&(y+=1)}x=["word",c.slice(T,y+1),T,y],T=y;break}default:{h===47&&c.charCodeAt(T+1)===42?(y=c.indexOf("*/",T+2)+1,y===0&&(f||K?y=c.length:N("comment")),x=["comment",c.slice(T,y+1),T,y],T=y):(s.lastIndex=T+1,s.test(c),s.lastIndex===0?y=c.length-1:y=s.lastIndex-2,x=["word",c.slice(T,y+1),T,y],w.push(x),T=y);break}}return T++,x}function I(M){P.push(M)}return{back:I,endOfFile:_,nextToken:L,position:k}}}),Mf=xe((t,e)=>{var r=Lf(),s=fu(),i=pp(),n=yu(),o=Of(),l=$f(),c={empty:!0,space:!0};function f(d){for(let D=d.length-1;D>=0;D--){let y=d[D],g=y[3]||y[2];if(g)return g}}var h=class{constructor(d){this.input=d,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let D=new r;D.name=d[1].slice(1),D.name===""&&this.unnamedAtrule(D,d),this.init(D,d[2]);let y,g,x,C=!1,b=!1,E=[],v=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),y=d[0],y==="("||y==="["?v.push(y==="("?")":"]"):y==="{"&&v.length>0?v.push("}"):y===v[v.length-1]&&v.pop(),v.length===0)if(y===";"){D.source.end=this.getPosition(d[2]),D.source.end.offset++,this.semicolon=!0;break}else if(y==="{"){b=!0;break}else if(y==="}"){if(E.length>0){for(x=E.length-1,g=E[x];g&&g[0]==="space";)g=E[--x];g&&(D.source.end=this.getPosition(g[3]||g[2]),D.source.end.offset++)}this.end(d);break}else E.push(d);else E.push(d);if(this.tokenizer.endOfFile()){C=!0;break}}D.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(D.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(D,"params",E),C&&(d=E[E.length-1],D.source.end=this.getPosition(d[3]||d[2]),D.source.end.offset++,this.spaces=D.raws.between,D.raws.between="")):(D.raws.afterName="",D.params=""),b&&(D.nodes=[],this.current=D)}checkMissedSemicolon(d){let D=this.colon(d);if(D===!1)return;let y=0,g;for(let x=D-1;x>=0&&(g=d[x],!(g[0]!=="space"&&(y+=1,y===2)));x--);throw this.input.error("Missed semicolon",g[0]==="word"?g[3]+1:g[2])}colon(d){let D=0,y,g,x;for(let[C,b]of d.entries()){if(g=b,x=g[0],x==="("&&(D+=1),x===")"&&(D-=1),D===0&&x===":")if(!y)this.doubleColon(g);else{if(y[0]==="word"&&y[1]==="progid")continue;return C}y=g}return!1}comment(d){let D=new s;this.init(D,d[2]),D.source.end=this.getPosition(d[3]||d[2]),D.source.end.offset++;let y=d[1].slice(2,-2);if(/^\s*$/.test(y))D.text="",D.raws.left=y,D.raws.right="";else{let g=y.match(/^(\s*)([^]*\S)(\s*)$/);D.text=g[2],D.raws.left=g[1],D.raws.right=g[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(d,D){let y=new i;this.init(y,d[0][2]);let g=d[d.length-1];for(g[0]===";"&&(this.semicolon=!0,d.pop()),y.source.end=this.getPosition(g[3]||g[2]||f(d)),y.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),y.raws.before+=d.shift()[1];for(y.source.start=this.getPosition(d[0][2]),y.prop="";d.length;){let E=d[0][0];if(E===":"||E==="space"||E==="comment")break;y.prop+=d.shift()[1]}y.raws.between="";let x;for(;d.length;)if(x=d.shift(),x[0]===":"){y.raws.between+=x[1];break}else x[0]==="word"&&/\w/.test(x[1])&&this.unknownWord([x]),y.raws.between+=x[1];(y.prop[0]==="_"||y.prop[0]==="*")&&(y.raws.before+=y.prop[0],y.prop=y.prop.slice(1));let C=[],b;for(;d.length&&(b=d[0][0],!(b!=="space"&&b!=="comment"));)C.push(d.shift());this.precheckMissedSemicolon(d);for(let E=d.length-1;E>=0;E--){if(x=d[E],x[1].toLowerCase()==="!important"){y.important=!0;let v=this.stringFrom(d,E);v=this.spacesFromEnd(d)+v,v!==" !important"&&(y.raws.important=v);break}else if(x[1].toLowerCase()==="important"){let v=d.slice(0),F="";for(let T=E;T>0;T--){let w=v[T][0];if(F.trim().startsWith("!")&&w!=="space")break;F=v.pop()[1]+F}F.trim().startsWith("!")&&(y.important=!0,y.raws.important=F,d=v)}if(x[0]!=="space"&&x[0]!=="comment")break}d.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(y.raws.between+=C.map(E=>E[1]).join(""),C=[]),this.raw(y,"value",C.concat(d),D),y.value.includes(":")&&!D&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let D=new o;this.init(D,d[2]),D.selector="",D.raws.between="",this.current=D}end(d){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(d){if(this.spaces+=d[1],this.current.nodes){let D=this.current.nodes[this.current.nodes.length-1];D&&D.type==="rule"&&!D.raws.ownSemicolon&&(D.raws.ownSemicolon=this.spaces,this.spaces="",D.source.end=this.getPosition(d[2]),D.source.end.offset+=D.raws.ownSemicolon.length)}}getPosition(d){let D=this.input.fromOffset(d);return{column:D.col,line:D.line,offset:d}}init(d,D){this.current.push(d),d.source={input:this.input,start:this.getPosition(D)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let D=!1,y=null,g=!1,x=null,C=[],b=d[1].startsWith("--"),E=[],v=d;for(;v;){if(y=v[0],E.push(v),y==="("||y==="[")x||(x=v),C.push(y==="("?")":"]");else if(b&&g&&y==="{")x||(x=v),C.push("}");else if(C.length===0)if(y===";")if(g){this.decl(E,b);return}else break;else if(y==="{"){this.rule(E);return}else if(y==="}"){this.tokenizer.back(E.pop()),D=!0;break}else y===":"&&(g=!0);else y===C[C.length-1]&&(C.pop(),C.length===0&&(x=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(D=!0),C.length>0&&this.unclosedBracket(x),D&&g){if(!b)for(;E.length&&(v=E[E.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,b)}else this.unknownWord(E)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,D,y,g){let x,C,b=y.length,E="",v=!0,F,T;for(let w=0;w<b;w+=1)x=y[w],C=x[0],C==="space"&&w===b-1&&!g?v=!1:C==="comment"?(T=y[w-1]?y[w-1][0]:"empty",F=y[w+1]?y[w+1][0]:"empty",!c[T]&&!c[F]?E.slice(-1)===","?v=!1:E+=x[1]:v=!1):E+=x[1];if(!v){let w=y.reduce((P,k)=>P+k[1],"");d.raws[D]={raw:w,value:E}}d[D]=E}rule(d){d.pop();let D=new o;this.init(D,d[0][2]),D.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(D,"selector",d),this.current=D}spacesAndCommentsFromEnd(d){let D,y="";for(;d.length&&(D=d[d.length-1][0],!(D!=="space"&&D!=="comment"));)y=d.pop()[1]+y;return y}spacesAndCommentsFromStart(d){let D,y="";for(;d.length&&(D=d[0][0],!(D!=="space"&&D!=="comment"));)y+=d.shift()[1];return y}spacesFromEnd(d){let D,y="";for(;d.length&&(D=d[d.length-1][0],D==="space");)y=d.pop()[1]+y;return y}stringFrom(d,D){let y="";for(let g=D;g<d.length;g++)y+=d[g][1];return d.splice(D,d.length-D),y}unclosedBlock(){let d=this.current.source.start;throw this.input.error("Unclosed block",d.line,d.column)}unclosedBracket(d){throw this.input.error("Unclosed bracket",{offset:d[2]},{offset:d[2]+1})}unexpectedClose(d){throw this.input.error("Unexpected }",{offset:d[2]},{offset:d[2]+1})}unknownWord(d){throw this.input.error("Unknown word "+d[0][1],{offset:d[0][2]},{offset:d[0][2]+d[0][1].length})}unnamedAtrule(d,D){throw this.input.error("At-rule without name",{offset:D[2]},{offset:D[2]+D[1].length})}};e.exports=h}),cp=xe((t,e)=>{var r=En(),s=mu(),i=Mf();function n(o,l){let c=new s(o,l),f=new i(c);try{f.parse()}catch(h){throw h}return f.root}e.exports=n,n.default=n,r.registerParse(n)}),iq=xe((t,e)=>{var r=$f(),s=mu();e.exports={isInlineComment(i){if(i[0]==="word"&&i[1].slice(0,2)==="//"){let n=i,o=[],l,c;for(;i;){if(/\r?\n/.test(i[1])){if(/['"].*\r?\n/.test(i[1])){o.push(i[1].substring(0,i[1].indexOf(`
193
+ `))),c=i[1].substring(i[1].indexOf(`
194
+ `));let h=this.input.css.valueOf().substring(this.tokenizer.position());c+=h,l=i[3]+h.length-c.length}else this.tokenizer.back(i);break}o.push(i[1]),l=i[2],i=this.tokenizer.nextToken({ignoreUnclosed:!0})}let f=["comment",o.join(""),n[2],l];return this.inlineComment(f),c&&(this.input=new s(c),this.tokenizer=r(this.input)),!0}else if(i[1]==="/"){let n=this.tokenizer.nextToken({ignoreUnclosed:!0});if(n[0]==="comment"&&/^\/\*/.test(n[1]))return n[0]="word",n[1]=n[1].slice(1),i[1]="//",this.tokenizer.back(n),e.exports.isInlineComment.bind(this)(i)}return!1}}}),nq=xe((t,e)=>{e.exports={interpolation(r){let s=[r,this.tokenizer.nextToken()],i=["word","}"];if(s[0][1].length>1||s[1][0]!=="{")return this.tokenizer.back(s[1]),!1;for(r=this.tokenizer.nextToken();r&&i.includes(r[0]);)s.push(r),r=this.tokenizer.nextToken();let n=s.map(f=>f[1]),[o]=s,l=s.pop(),c=["word",n.join(""),o[2],l[2]];return this.tokenizer.back(r),this.tokenizer.back(c),!0}}}),aq=xe((t,e)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,s=/\.[0-9]/,i=n=>{let[,o]=n,[l]=o;return(l==="."||l==="#")&&r.test(o)===!1&&s.test(o)===!1};e.exports={isMixinToken:i}}),oq=xe((t,e)=>{var r=$f(),s=/^url\((.+)\)/;e.exports=i=>{let{name:n,params:o=""}=i;if(n==="import"&&o.length){i.import=!0;let l=r({css:o});for(i.filename=o.replace(s,"$1");!l.endOfFile();){let[c,f]=l.nextToken();if(c==="word"&&f==="url")return;if(c==="brackets"){i.options=f,i.filename=o.replace(f,"").trim();break}}}}}),uq=xe((t,e)=>{var r=/:$/,s=/^:(\s+)?/;e.exports=i=>{let{name:n,params:o=""}=i;if(i.name.slice(-1)===":"){if(r.test(n)){let[l]=n.match(r);i.name=n.replace(l,""),i.raws.afterName=l+(i.raws.afterName||""),i.variable=!0,i.value=i.params}if(s.test(o)){let[l]=o.match(s);i.value=o.replace(l,""),i.raws.afterName=(i.raws.afterName||"")+l,i.variable=!0}}}}),lq=xe((t,e)=>{var r=fu(),s=Mf(),{isInlineComment:i}=iq(),{interpolation:n}=nq(),{isMixinToken:o}=aq(),l=oq(),c=uq(),f=/(!\s*important)$/i;e.exports=class extends s{constructor(...h){super(...h),this.lastNode=null}atrule(h){n.bind(this)(h)||(super.atrule(h),l(this.lastNode),c(this.lastNode))}decl(...h){super.decl(...h),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(h){h[0][1]=` ${h[0][1]}`;let d=h.findIndex(x=>x[0]==="("),D=h.reverse().find(x=>x[0]===")"),y=h.reverse().indexOf(D),g=h.splice(d,y).map(x=>x[1]).join("");for(let x of h.reverse())this.tokenizer.back(x);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=g}init(h,d,D){super.init(h,d,D),this.lastNode=h}inlineComment(h){let d=new r,D=h[1].slice(2);if(this.init(d,h[2]),d.source.end=this.getPosition(h[3]||h[2]),d.inline=!0,d.raws.begin="//",/^\s*$/.test(D))d.text="",d.raws.left=D,d.raws.right="";else{let y=D.match(/^(\s*)([^]*[^\s])(\s*)$/);[,d.raws.left,d.text,d.raws.right]=y}}mixin(h){let[d]=h,D=d[1].slice(0,1),y=h.findIndex(E=>E[0]==="brackets"),g=h.findIndex(E=>E[0]==="("),x="";if((y<0||y>3)&&g>0){let E=h.reduce((L,I,M)=>I[0]===")"?M:L),v=h.slice(g,E+g).map(L=>L[1]).join(""),[F]=h.slice(g),T=[F[2],F[3]],[w]=h.slice(E,E+1),P=[w[2],w[3]],k=["brackets",v].concat(T,P),N=h.slice(0,g),_=h.slice(E+1);h=N,h.push(k),h=h.concat(_)}let C=[];for(let E of h)if((E[1]==="!"||C.length)&&C.push(E),E[1]==="important")break;if(C.length){let[E]=C,v=h.indexOf(E),F=C[C.length-1],T=[E[2],E[3]],w=[F[4],F[5]],P=["word",C.map(k=>k[1]).join("")].concat(T,w);h.splice(v,C.length,P)}let b=h.findIndex(E=>f.test(E[1]));b>0&&([,x]=h[b],h.splice(b,1));for(let E of h.reverse())this.tokenizer.back(E);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=D,x&&(this.lastNode.important=!0,this.lastNode.raws.important=x)}other(h){i.bind(this)(h)||super.other(h)}rule(h){let d=h[h.length-1],D=h[h.length-2];if(D[0]==="at-word"&&d[0]==="{"&&(this.tokenizer.back(d),n.bind(this)(D))){let y=this.tokenizer.nextToken();h=h.slice(0,h.length-2).concat([y]);for(let g of h.reverse())this.tokenizer.back(g);return}super.rule(h),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(h){let[d]=h;if(h[0][1]==="each"&&h[1][0]==="("){this.each(h);return}if(o(d)){this.mixin(h);return}super.unknownWord(h)}}}),pq=xe((t,e)=>{var r=Nf();e.exports=class extends r{atrule(s,i){if(!s.mixin&&!s.variable&&!s.function){super.atrule(s,i);return}let n=`${s.function?"":s.raws.identifier||"@"}${s.name}`,o=s.params?this.rawValue(s,"params"):"",l=s.raws.important||"";if(s.variable&&(o=s.value),typeof s.raws.afterName<"u"?n+=s.raws.afterName:o&&(n+=" "),s.nodes)this.block(s,n+o+l);else{let c=(s.raws.between||"")+l+(i?";":"");this.builder(n+o+c,s)}}comment(s){if(s.inline){let i=this.raw(s,"left","commentLeft"),n=this.raw(s,"right","commentRight");this.builder(`//${i}${s.text}${n}`,s)}else super.comment(s)}}}),cq=xe((t,e)=>{var r=mu(),s=lq(),i=pq();e.exports={parse(n,o){let l=new r(n,o),c=new s(l);return c.parse(),c.root.walk(f=>{let h=l.css.lastIndexOf(f.source.input.css);if(h===0)return;if(h+f.source.input.css.length!==l.css.length)throw new Error("Invalid state detected in postcss-less");let d=h+f.source.start.offset,D=l.fromOffset(h+f.source.start.offset);if(f.source.start={offset:d,line:D.line,column:D.col},f.source.end){let y=h+f.source.end.offset,g=l.fromOffset(h+f.source.end.offset);f.source.end={offset:y,line:g.line,column:g.col}}}),c.root},stringify(n,o){new i(o).stringify(n)},nodeToString(n){let o="";return e.exports.stringify(n,l=>{o+=l}),o}}}),Rf=xe((t,e)=>{var r=En(),s,i,n=class extends r{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new s(new i,this,o).stringify()}};n.registerLazyResult=o=>{s=o},n.registerProcessor=o=>{i=o},e.exports=n,n.default=n}),hq=xe((t,e)=>{var r=Lf(),s=fu(),i=pp(),n=mu(),o=UA(),l=yu(),c=Of();function f(h,d){if(Array.isArray(h))return h.map(g=>f(g));let{inputs:D,...y}=h;if(D){d=[];for(let g of D){let x={...g,__proto__:n.prototype};x.map&&(x.map={...x.map,__proto__:o.prototype}),d.push(x)}}if(y.nodes&&(y.nodes=h.nodes.map(g=>f(g,d))),y.source){let{inputId:g,...x}=y.source;y.source=x,g!=null&&(y.source.input=d[g])}if(y.type==="root")return new l(y);if(y.type==="decl")return new i(y);if(y.type==="rule")return new c(y);if(y.type==="comment")return new s(y);if(y.type==="atrule")return new r(y);throw new Error("Unknown node type: "+h.type)}e.exports=f,f.default=f}),VA=xe((t,e)=>{e.exports=class{generate(){}}}),zA=xe((t,e)=>{var r=class{constructor(s,i={}){if(this.type="warning",this.text=s,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=r,r.default=r}),jf=xe((t,e)=>{var r=zA(),s=class{get content(){return this.css}constructor(i,n,o){this.processor=i,this.messages=[],this.root=n,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new r(i,n);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}};e.exports=s,s.default=s}),HA=xe((t,e)=>{var r={};e.exports=function(s){r[s]||(r[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),WA=xe((t,e)=>{var r=En(),s=Rf(),i=VA(),n=cp(),o=jf(),l=yu(),c=up(),{isClean:f,my:h}=_f();HA();var d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},D={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},y={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function x(T){return typeof T=="object"&&typeof T.then=="function"}function C(T){let w=!1,P=d[T.type];return T.type==="decl"?w=T.prop.toLowerCase():T.type==="atrule"&&(w=T.name.toLowerCase()),w&&T.append?[P,P+"-"+w,g,P+"Exit",P+"Exit-"+w]:w?[P,P+"-"+w,P+"Exit",P+"Exit-"+w]:T.append?[P,g,P+"Exit"]:[P,P+"Exit"]}function b(T){let w;return T.type==="document"?w=["Document",g,"DocumentExit"]:T.type==="root"?w=["Root",g,"RootExit"]:w=C(T),{eventIndex:0,events:w,iterator:0,node:T,visitorIndex:0,visitors:[]}}function E(T){return T[f]=!1,T.nodes&&T.nodes.forEach(w=>E(w)),T}var v={},F=class JA{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,P,k){this.stringified=!1,this.processed=!1;let N;if(typeof P=="object"&&P!==null&&(P.type==="root"||P.type==="document"))N=E(P);else if(P instanceof JA||P instanceof o)N=E(P.root),P.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=P.map);else{let _=n;k.syntax&&(_=k.syntax.parse),k.parser&&(_=k.parser),_.parse&&(_=_.parse);try{N=_(P,k)}catch(L){this.processed=!0,this.error=L}N&&!N[h]&&r.rebuild(N)}this.result=new o(w,N,k),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?{..._,..._.prepare(this.result)}:_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,P){let k=this.result.lastPlugin;try{P&&P.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=k.postcssPlugin,w.setMessage()):k.postcssVersion}catch(N){console&&console.error&&console.error(N)}return w}prepareVisitors(){this.listeners={};let w=(P,k,N)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([P,N])};for(let P of this.plugins)if(typeof P=="object")for(let k in P){if(!D[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${P.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!y[k])if(typeof P[k]=="object")for(let N in P[k])N==="*"?w(P,k,P[k][N]):w(P,k+"-"+N.toLowerCase(),P[k][N]);else typeof P[k]=="function"&&w(P,k,P[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let P=this.plugins[w],k=this.runOnRoot(P);if(x(k))try{await k}catch(N){throw this.handleError(N)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[f];){w[f]=!0;let P=[b(w)];for(;P.length>0;){let k=this.visitTick(P);if(x(k))try{await k}catch(N){let _=P[P.length-1].node;throw this.handleError(N,_)}}}if(this.listeners.OnceExit)for(let[P,k]of this.listeners.OnceExit){this.result.lastPlugin=P;try{if(w.type==="document"){let N=w.nodes.map(_=>k(_,this.helpers));await Promise.all(N)}else await k(w,this.helpers)}catch(N){throw this.handleError(N)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let P=this.result.root.nodes.map(k=>w.Once(k,this.helpers));return x(P[0])?Promise.all(P):P}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(P){throw this.handleError(P)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,P=c;w.syntax&&(P=w.syntax.stringify),w.stringifier&&(P=w.stringifier),P.stringify&&(P=P.stringify);let k=new i(P,this.result.root,this.result.opts).generate();return this.result.css=k[0],this.result.map=k[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let P=this.runOnRoot(w);if(x(P))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[f];)w[f]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let P of w.nodes)this.visitSync(this.listeners.OnceExit,P);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,P){return this.async().then(w,P)}toString(){return this.css}visitSync(w,P){for(let[k,N]of w){this.result.lastPlugin=k;let _;try{_=N(P,this.helpers)}catch(L){throw this.handleError(L,P.proxyOf)}if(P.type!=="root"&&P.type!=="document"&&!P.parent)return!0;if(x(_))throw this.getAsyncError()}}visitTick(w){let P=w[w.length-1],{node:k,visitors:N}=P;if(k.type!=="root"&&k.type!=="document"&&!k.parent){w.pop();return}if(N.length>0&&P.visitorIndex<N.length){let[L,I]=N[P.visitorIndex];P.visitorIndex+=1,P.visitorIndex===N.length&&(P.visitors=[],P.visitorIndex=0),this.result.lastPlugin=L;try{return I(k.toProxy(),this.helpers)}catch(M){throw this.handleError(M,k)}}if(P.iterator!==0){let L=P.iterator,I;for(;I=k.nodes[k.indexes[L]];)if(k.indexes[L]+=1,!I[f]){I[f]=!0,w.push(b(I));return}P.iterator=0,delete k.indexes[L]}let _=P.events;for(;P.eventIndex<_.length;){let L=_[P.eventIndex];if(P.eventIndex+=1,L===g){k.nodes&&k.nodes.length&&(k[f]=!0,P.iterator=k.getIterator());return}else if(this.listeners[L]){P.visitors=this.listeners[L];return}}w.pop()}walkSync(w){w[f]=!0;let P=C(w);for(let k of P)if(k===g)w.nodes&&w.each(N=>{N[f]||this.walkSync(N)});else{let N=this.listeners[k];if(N&&this.visitSync(N,w.toProxy()))return}}warnings(){return this.sync().warnings()}};F.registerPostcss=T=>{v=T},e.exports=F,F.default=F,l.registerLazyResult(F),s.registerLazyResult(F)}),dq=xe((t,e)=>{var r=VA(),s=cp(),i=jf(),n=up();HA();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,c=s;try{l=c(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,c,f){c=c.toString(),this.stringified=!1,this._processor=l,this._css=c,this._opts=f,this._map=void 0;let h,d=n;this.result=new i(this._processor,h,this._opts),this.result.css=c;let D=this;Object.defineProperty(this.result,"root",{get(){return D.root}});let y=new r(d,h,this._opts,c);if(y.isMap()){let[g,x]=y.generate();g&&(this.result.css=g),x&&(this.result.map=x)}else y.clearAnnotation(),this.result.css=y.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,c){return this.async().then(l,c)}toString(){return this._css}warnings(){return[]}};e.exports=o,o.default=o}),fq=xe((t,e)=>{var r=Rf(),s=WA(),i=dq(),n=yu(),o=class{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let c=[];for(let f of l)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))c=c.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)c.push(f);else if(typeof f=="function")c.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return c}process(l,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new i(this,l,c):new s(this,l,c)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}};e.exports=o,o.default=o,n.registerProcessor(o),r.registerProcessor(o)}),Uf=xe((t,e)=>{var r=Lf(),s=fu(),i=En(),n=Bf(),o=pp(),l=Rf(),c=hq(),f=mu(),h=WA(),d=qA(),D=lp(),y=cp(),g=fq(),x=jf(),C=yu(),b=Of(),E=up(),v=zA();function F(...T){return T.length===1&&Array.isArray(T[0])&&(T=T[0]),new g(T)}F.plugin=function(T,w){let P=!1;function k(..._){console&&console.warn&&!P&&(P=!0,console.warn(T+`: postcss.plugin was deprecated. Migration guide:
195
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let L=w(..._);return L.postcssPlugin=T,L.postcssVersion=new g().version,L}let N;return Object.defineProperty(k,"postcss",{get(){return N||(N=k()),N}}),k.process=function(_,L,I){return F([k(I)]).process(_,L)},k},F.stringify=E,F.parse=y,F.fromJSON=c,F.list=d,F.comment=T=>new s(T),F.atRule=T=>new r(T),F.decl=T=>new o(T),F.rule=T=>new b(T),F.root=T=>new C(T),F.document=T=>new l(T),F.CssSyntaxError=n,F.Declaration=o,F.Container=i,F.Processor=g,F.Document=l,F.Comment=s,F.Warning=v,F.AtRule=r,F.Result=x,F.Input=f,F.Rule=b,F.Root=C,F.Node=D,h.registerPostcss(F),e.exports=F,F.default=F}),mq=xe((t,e)=>{var{Container:r}=Uf(),s=class extends r{constructor(i){super(i),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};e.exports=s}),yq=xe((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,n=/[\da-f]/i,o=/[\n\f\r]/g;e.exports=function(l,c={}){let f=l.css.valueOf(),h=c.ignoreErrors,d,D,y,g,x,C,b,E,v,F=f.length,T=0,w=[],P=[],k;function N(){return T}function _($){throw l.error("Unclosed "+$,T)}function L(){return P.length===0&&T>=F}function I(){let $=1,z=!1,re=!1;for(;$>0;)D+=1,f.length<=D&&_("interpolation"),d=f.charCodeAt(D),E=f.charCodeAt(D+1),z?!re&&d===z?(z=!1,re=!1):d===92?re=!re:re&&(re=!1):d===39||d===34?z=d:d===125?$-=1:d===35&&E===123&&($+=1)}function M($){if(P.length)return P.pop();if(T>=F)return;let z=$?$.ignoreUnclosed:!1;switch(d=f.charCodeAt(T),d){case 10:case 32:case 9:case 13:case 12:{D=T;do D+=1,d=f.charCodeAt(D);while(d===32||d===10||d===9||d===13||d===12);v=["space",f.slice(T,D)],T=D-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let re=String.fromCharCode(d);v=[re,re,T];break}case 44:{v=["word",",",T,T+1];break}case 40:{if(b=w.length?w.pop()[1]:"",E=f.charCodeAt(T+1),b==="url"&&E!==39&&E!==34){for(k=1,C=!1,D=T+1;D<=f.length-1;){if(E=f.charCodeAt(D),E===92)C=!C;else if(E===40)k+=1;else if(E===41&&(k-=1,k===0))break;D+=1}g=f.slice(T,D+1),v=["brackets",g,T,D],T=D}else D=f.indexOf(")",T+1),g=f.slice(T,D+1),D===-1||i.test(g)?v=["(","(",T]:(v=["brackets",g,T,D],T=D);break}case 39:case 34:{for(y=d,D=T,C=!1;D<F&&(D++,D===F&&_("string"),d=f.charCodeAt(D),E=f.charCodeAt(D+1),!(!C&&d===y));)d===92?C=!C:C?C=!1:d===35&&E===123&&I();v=["string",f.slice(T,D+1),T,D],T=D;break}case 64:{r.lastIndex=T+1,r.test(f),r.lastIndex===0?D=f.length-1:D=r.lastIndex-2,v=["at-word",f.slice(T,D+1),T,D],T=D;break}case 92:{for(D=T,x=!0;f.charCodeAt(D+1)===92;)D+=1,x=!x;if(d=f.charCodeAt(D+1),x&&d!==47&&d!==32&&d!==10&&d!==9&&d!==13&&d!==12&&(D+=1,n.test(f.charAt(D)))){for(;n.test(f.charAt(D+1));)D+=1;f.charCodeAt(D+1)===32&&(D+=1)}v=["word",f.slice(T,D+1),T,D],T=D;break}default:E=f.charCodeAt(T+1),d===35&&E===123?(D=T,I(),g=f.slice(T,D+1),v=["word",g,T,D],T=D):d===47&&E===42?(D=f.indexOf("*/",T+2)+1,D===0&&(h||z?D=f.length:_("comment")),v=["comment",f.slice(T,D+1),T,D],T=D):d===47&&E===47?(o.lastIndex=T+1,o.test(f),o.lastIndex===0?D=f.length-1:D=o.lastIndex-2,g=f.slice(T,D+1),v=["comment",g,T,D,"inline"],T=D):(s.lastIndex=T+1,s.test(f),s.lastIndex===0?D=f.length-1:D=s.lastIndex-2,v=["word",f.slice(T,D+1),T,D],w.push(v),T=D);break}return T++,v}function K($){P.push($)}return{back:K,endOfFile:L,nextToken:M,position:N}}}),Dq=xe((t,e)=>{var{Comment:r}=Uf(),s=Mf(),i=mq(),n=yq(),o=class extends s{atrule(l){let c=l[1],f=l;for(;!this.tokenizer.endOfFile();){let h=this.tokenizer.nextToken();if(h[0]==="word"&&h[2]===f[3]+1)c+=h[1],f=h;else{this.tokenizer.back(h);break}}super.atrule(["at-word",c,l[2],f[3]])}comment(l){if(l[4]==="inline"){let c=new r;this.init(c,l[2]),c.raws.inline=!0;let f=this.input.fromOffset(l[3]);c.source.end={column:f.col,line:f.line,offset:l[3]+1};let h=l[1].slice(2);if(/^\s*$/.test(h))c.text="",c.raws.left=h,c.raws.right="";else{let d=h.match(/^(\s*)([^]*\S)(\s*)$/),D=d[2].replace(/(\*\/|\/\*)/g,"*//*");c.text=D,c.raws.left=d[1],c.raws.right=d[3],c.raws.text=d[2]}}else super.comment(l)}createTokenizer(){this.tokenizer=n(this.input)}raw(l,c,f,h){if(super.raw(l,c,f,h),l.raws[c]){let d=l.raws[c].raw;l.raws[c].raw=f.reduce((D,y)=>{if(y[0]==="comment"&&y[4]==="inline"){let g=y[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return D+"/*"+g+"*/"}else return D+y[1]},""),d!==l.raws[c].raw&&(l.raws[c].scss=d)}}rule(l){let c=!1,f=0,h="";for(let d of l)if(c)d[0]!=="comment"&&d[0]!=="{"&&(h+=d[1]);else{if(d[0]==="space"&&d[1].includes(`
196
+ `))break;d[0]==="("?f+=1:d[0]===")"?f-=1:f===0&&d[0]===":"&&(c=!0)}if(!c||h.trim()===""||/^[#:A-Za-z-]/.test(h))super.rule(l);else{l.pop();let d=new i;this.init(d,l[0][2]);let D;for(let g=l.length-1;g>=0;g--)if(l[g][0]!=="space"){D=l[g];break}if(D[3]){let g=this.input.fromOffset(D[3]);d.source.end={column:g.col,line:g.line,offset:D[3]+1}}else{let g=this.input.fromOffset(D[2]);d.source.end={column:g.col,line:g.line,offset:D[2]+1}}for(;l[0][0]!=="word";)d.raws.before+=l.shift()[1];if(l[0][2]){let g=this.input.fromOffset(l[0][2]);d.source.start={column:g.col,line:g.line,offset:l[0][2]}}for(d.prop="";l.length;){let g=l[0][0];if(g===":"||g==="space"||g==="comment")break;d.prop+=l.shift()[1]}d.raws.between="";let y;for(;l.length;)if(y=l.shift(),y[0]===":"){d.raws.between+=y[1];break}else d.raws.between+=y[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1)),d.raws.between+=this.spacesAndCommentsFromStart(l),this.precheckMissedSemicolon(l);for(let g=l.length-1;g>0;g--){if(y=l[g],y[1]==="!important"){d.important=!0;let x=this.stringFrom(l,g);x=this.spacesFromEnd(l)+x,x!==" !important"&&(d.raws.important=x);break}else if(y[1]==="important"){let x=l.slice(0),C="";for(let b=g;b>0;b--){let E=x[b][0];if(C.trim().indexOf("!")===0&&E!=="space")break;C=x.pop()[1]+C}C.trim().indexOf("!")===0&&(d.important=!0,d.raws.important=C,l=x)}if(y[0]!=="space"&&y[0]!=="comment")break}this.raw(d,"value",l),d.value.includes(":")&&this.checkMissedSemicolon(l),this.current=d}}};e.exports=o}),gq=xe((t,e)=>{var{Input:r}=Uf(),s=Dq();e.exports=function(i,n){let o=new r(i,n),l=new s(o);return l.parse(),l.root}}),KA=xe(t=>{Object.defineProperty(t,"__esModule",{value:!0});function e(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}t.default=e}),GA=xe(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=KA(),r=s(e);function s(n){return n&&n.__esModule?n:{default:n}}function i(n){var o=this;this.constructor(n),this.nodes=n.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(l){l.parent=o})}i.prototype=Object.create(r.default.prototype),i.constructor=r.default,i.prototype.walk=function(n,o){for(var l=typeof n=="string"||n instanceof RegExp,c=l?o:n,f=typeof n=="string"?new RegExp(n):n,h=0;h<this.nodes.length;h++){var d=this.nodes[h],D=l?f.test(d.type):!0;if(D&&c&&c(d,h,this.nodes)===!1||d.nodes&&d.walk(n,o)===!1)return!1}return!0},i.prototype.each=function(){for(var n=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],o=0;o<this.nodes.length;o++){var l=this.nodes[o];if(n(l,o,this.nodes)===!1)return!1}return!0},t.default=i}),xq=xe(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseMediaFeature=o,t.parseMediaQuery=l,t.parseMediaList=c;var e=KA(),r=n(e),s=GA(),i=n(s);function n(f){return f&&f.__esModule?f:{default:f}}function o(f){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[{mode:"normal",character:null}],D=[],y=0,g="",x=null,C=null,b=h,E=f;f[0]==="("&&f[f.length-1]===")"&&(E=f.substring(1,f.length-1),b++);for(var v=0;v<E.length;v++){var F=E[v];if((F==="'"||F==='"')&&(d[y].isCalculationEnabled===!0?(d.push({mode:"string",isCalculationEnabled:!1,character:F}),y++):d[y].mode==="string"&&d[y].character===F&&E[v-1]!=="\\"&&(d.pop(),y--)),F==="{"?(d.push({mode:"interpolation",isCalculationEnabled:!0}),y++):F==="}"&&(d.pop(),y--),d[y].mode==="normal"&&F===":"){var T=E.substring(v+1);C={type:"value",before:/^(\s*)/.exec(T)[1],after:/(\s*)$/.exec(T)[1],value:T.trim()},C.sourceIndex=C.before.length+v+1+b,x={type:"colon",sourceIndex:v+b,after:C.before,value:":"};break}g+=F}return g={type:"media-feature",before:/^(\s*)/.exec(g)[1],after:/(\s*)$/.exec(g)[1],value:g.trim()},g.sourceIndex=g.before.length+b,D.push(g),x!==null&&(x.before=g.after,D.push(x)),C!==null&&D.push(C),D}function l(f){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[],D=0,y=!1,g=void 0;function x(){return{before:"",after:"",value:""}}g=x();for(var C=0;C<f.length;C++){var b=f[C];y?(g.value+=b,(b==="{"||b==="(")&&D++,(b===")"||b==="}")&&D--):b.search(/\s/)!==-1?g.before+=b:(b==="("&&(g.type="media-feature-expression",D++),g.value=b,g.sourceIndex=h+C,y=!0),y&&D===0&&(b===")"||C===f.length-1||f[C+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(g.value)!==-1&&(g.type="keyword"),g.type==="media-feature-expression"&&(g.nodes=o(g.value,g.sourceIndex)),d.push(Array.isArray(g.nodes)?new i.default(g):new r.default(g)),g=x(),y=!1)}for(var E=0;E<d.length;E++)if(g=d[E],E>0&&(d[E-1].after=g.before),g.type===void 0){if(E>0){if(d[E-1].type==="media-feature-expression"){g.type="keyword";continue}if(d[E-1].value==="not"||d[E-1].value==="only"){g.type="media-type";continue}if(d[E-1].value==="and"){g.type="media-feature-expression";continue}d[E-1].type==="media-type"&&(d[E+1]?g.type=d[E+1].type==="media-feature-expression"?"keyword":"media-feature-expression":g.type="media-feature-expression")}if(E===0){if(!d[E+1]){g.type="media-type";continue}if(d[E+1]&&(d[E+1].type==="media-feature-expression"||d[E+1].type==="keyword")){g.type="media-type";continue}if(d[E+2]){if(d[E+2].type==="media-feature-expression"){g.type="media-type",d[E+1].type="keyword";continue}if(d[E+2].type==="keyword"){g.type="keyword",d[E+1].type="media-type";continue}}if(d[E+3]&&d[E+3].type==="media-feature-expression"){g.type="keyword",d[E+1].type="media-type",d[E+2].type="keyword";continue}}}return d}function c(f){var h=[],d=0,D=0,y=/^(\s*)url\s*\(/.exec(f);if(y!==null){for(var g=y[0].length,x=1;x>0;){var C=f[g];C==="("&&x++,C===")"&&x--,g++}h.unshift(new r.default({type:"url",value:f.substring(0,g).trim(),sourceIndex:y[1].length,before:y[1],after:/^(\s*)/.exec(f.substring(g))[1]})),d=g}for(var b=d;b<f.length;b++){var E=f[b];if(E==="("&&D++,E===")"&&D--,D===0&&E===","){var v=f.substring(d,b),F=/^(\s*)/.exec(v)[1];h.push(new i.default({type:"media-query",value:v.trim(),sourceIndex:d+F.length,nodes:l(v,d),before:F,after:/(\s*)$/.exec(v)[1]})),d=b+1}}var T=f.substring(d),w=/^(\s*)/.exec(T)[1];return h.push(new i.default({type:"media-query",value:T.trim(),sourceIndex:d+w.length,nodes:l(T,d),before:w,after:/(\s*)$/.exec(T)[1]})),h}}),Eq=xe(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var e=GA(),r=i(e),s=xq();function i(o){return o&&o.__esModule?o:{default:o}}function n(o){return new r.default({nodes:(0,s.parseMediaList)(o),type:"media-query-list",value:o.trim()})}}),XA=xe((t,e)=>{e.exports=function(r,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(r)?r.map(function(n){return n}):r;return i(r,1);function i(n,o){return n.reduce(function(l,c){return Array.isArray(c)&&o<s?l.concat(i(c,o+1)):l.concat(c)},[])}}}),YA=xe((t,e)=>{e.exports=function(r,s){for(var i=-1,n=[];(i=r.indexOf(s,i+1))!==-1;)n.push(i);return n}}),QA=xe((t,e)=>{function r(n,o){for(var l=1,c=n.length,f=n[0],h=n[0],d=1;d<c;++d)if(h=f,f=n[d],o(f,h)){if(d===l){l++;continue}n[l++]=f}return n.length=l,n}function s(n){for(var o=1,l=n.length,c=n[0],f=n[0],h=1;h<l;++h,f=c)if(f=c,c=n[h],c!==f){if(h===o){o++;continue}n[o++]=c}return n.length=o,n}function i(n,o,l){return n.length===0?n:o?(l||n.sort(o),r(n,o)):(l||n.sort(),s(n))}e.exports=i}),wa=xe((t,e)=>{t.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var i=function o(l,c){if((typeof l>"u"?"undefined":r(l))!=="object")return l;var f=new l.constructor;for(var h in l)if(l.hasOwnProperty(h)){var d=l[h],D=typeof d>"u"?"undefined":r(d);h==="parent"&&D==="object"?c&&(f[h]=c):d instanceof Array?f[h]=d.map(function(y){return o(y,f)}):f[h]=o(d,f)}return f},n=(function(){function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,o);for(var c in l)this[c]=l[c];var f=l.spaces;f=f===void 0?{}:f;var h=f.before,d=h===void 0?"":h,D=f.after,y=D===void 0?"":D;this.spaces={before:d,after:y}}return o.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},o.prototype.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},o.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},o.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},o.prototype.clone=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i(this);for(var f in l)c[f]=l[f];return c},o.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},o})();t.default=n,e.exports=t.default}),br=xe(t=>{t.__esModule=!0,t.TAG="tag",t.STRING="string",t.SELECTOR="selector",t.ROOT="root",t.PSEUDO="pseudo",t.NESTING="nesting",t.ID="id",t.COMMENT="comment",t.COMBINATOR="combinator",t.CLASS="class",t.ATTRIBUTE="attribute",t.UNIVERSAL="universal"}),qf=xe((t,e)=>{t.__esModule=!0;var r=(function(){function y(g,x){for(var C=0;C<x.length;C++){var b=x[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,x,C){return x&&y(g.prototype,x),C&&y(g,C),g}})(),s=wa(),i=c(s),n=br(),o=l(n);function l(y){if(y&&y.__esModule)return y;var g={};if(y!=null)for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x]);return g.default=y,g}function c(y){return y&&y.__esModule?y:{default:y}}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function d(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var D=(function(y){d(g,y);function g(x){f(this,g);var C=h(this,y.call(this,x));return C.nodes||(C.nodes=[]),C}return g.prototype.append=function(x){return x.parent=this,this.nodes.push(x),this},g.prototype.prepend=function(x){return x.parent=this,this.nodes.unshift(x),this},g.prototype.at=function(x){return this.nodes[x]},g.prototype.index=function(x){return typeof x=="number"?x:this.nodes.indexOf(x)},g.prototype.removeChild=function(x){x=this.index(x),this.at(x).parent=void 0,this.nodes.splice(x,1);var C=void 0;for(var b in this.indexes)C=this.indexes[b],C>=x&&(this.indexes[b]=C-1);return this},g.prototype.removeAll=function(){for(var b=this.nodes,x=Array.isArray(b),C=0,b=x?b:b[Symbol.iterator]();;){var E;if(x){if(C>=b.length)break;E=b[C++]}else{if(C=b.next(),C.done)break;E=C.value}var v=E;v.parent=void 0}return this.nodes=[],this},g.prototype.empty=function(){return this.removeAll()},g.prototype.insertAfter=function(x,C){var b=this.index(x);this.nodes.splice(b+1,0,C);var E=void 0;for(var v in this.indexes)E=this.indexes[v],b<=E&&(this.indexes[v]=E+this.nodes.length);return this},g.prototype.insertBefore=function(x,C){var b=this.index(x);this.nodes.splice(b,0,C);var E=void 0;for(var v in this.indexes)E=this.indexes[v],b<=E&&(this.indexes[v]=E+this.nodes.length);return this},g.prototype.each=function(x){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var C=this.lastEach;if(this.indexes[C]=0,!!this.length){for(var b=void 0,E=void 0;this.indexes[C]<this.length&&(b=this.indexes[C],E=x(this.at(b),b),E!==!1);)this.indexes[C]+=1;if(delete this.indexes[C],E===!1)return!1}},g.prototype.walk=function(x){return this.each(function(C,b){var E=x(C,b);if(E!==!1&&C.length&&(E=C.walk(x)),E===!1)return!1})},g.prototype.walkAttributes=function(x){var C=this;return this.walk(function(b){if(b.type===o.ATTRIBUTE)return x.call(C,b)})},g.prototype.walkClasses=function(x){var C=this;return this.walk(function(b){if(b.type===o.CLASS)return x.call(C,b)})},g.prototype.walkCombinators=function(x){var C=this;return this.walk(function(b){if(b.type===o.COMBINATOR)return x.call(C,b)})},g.prototype.walkComments=function(x){var C=this;return this.walk(function(b){if(b.type===o.COMMENT)return x.call(C,b)})},g.prototype.walkIds=function(x){var C=this;return this.walk(function(b){if(b.type===o.ID)return x.call(C,b)})},g.prototype.walkNesting=function(x){var C=this;return this.walk(function(b){if(b.type===o.NESTING)return x.call(C,b)})},g.prototype.walkPseudos=function(x){var C=this;return this.walk(function(b){if(b.type===o.PSEUDO)return x.call(C,b)})},g.prototype.walkTags=function(x){var C=this;return this.walk(function(b){if(b.type===o.TAG)return x.call(C,b)})},g.prototype.walkUniversals=function(x){var C=this;return this.walk(function(b){if(b.type===o.UNIVERSAL)return x.call(C,b)})},g.prototype.split=function(x){var C=this,b=[];return this.reduce(function(E,v,F){var T=x.call(C,v);return b.push(v),T?(E.push(b),b=[]):F===C.length-1&&E.push(b),E},[])},g.prototype.map=function(x){return this.nodes.map(x)},g.prototype.reduce=function(x,C){return this.nodes.reduce(x,C)},g.prototype.every=function(x){return this.nodes.every(x)},g.prototype.some=function(x){return this.nodes.some(x)},g.prototype.filter=function(x){return this.nodes.filter(x)},g.prototype.sort=function(x){return this.nodes.sort(x)},g.prototype.toString=function(){return this.map(String).join("")},r(g,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),g})(i.default);t.default=D,e.exports=t.default}),Aq=xe((t,e)=>{t.__esModule=!0;var r=qf(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.ROOT,y}return d.prototype.toString=function(){var D=this.reduce(function(y,g){var x=String(g);return x?y+x+",":""},"").slice(0,-1);return this.trailingComma?D+",":D},d})(s.default);t.default=f,e.exports=t.default}),Cq=xe((t,e)=>{t.__esModule=!0;var r=qf(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.SELECTOR,y}return d})(s.default);t.default=f,e.exports=t.default}),Du=xe((t,e)=>{t.__esModule=!0;var r=(function(){function h(d,D){for(var y=0;y<D.length;y++){var g=D[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}return function(d,D,y){return D&&h(d.prototype,D),y&&h(d,y),d}})(),s=wa(),i=n(s);function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(){return o(this,d),l(this,h.apply(this,arguments))}return d.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(d,[{key:"ns",get:function(){var D=this.namespace;return D?(typeof D=="string"?D:"")+"|":""}}]),d})(i.default);t.default=f,e.exports=t.default}),bq=xe((t,e)=>{t.__esModule=!0;var r=Du(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.CLASS,y}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},d})(s.default);t.default=f,e.exports=t.default}),Tq=xe((t,e)=>{t.__esModule=!0;var r=wa(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.COMMENT,y}return d})(s.default);t.default=f,e.exports=t.default}),vq=xe((t,e)=>{t.__esModule=!0;var r=Du(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.ID,y}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},d})(s.default);t.default=f,e.exports=t.default}),Fq=xe((t,e)=>{t.__esModule=!0;var r=Du(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.TAG,y}return d})(s.default);t.default=f,e.exports=t.default}),wq=xe((t,e)=>{t.__esModule=!0;var r=wa(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.STRING,y}return d})(s.default);t.default=f,e.exports=t.default}),Sq=xe((t,e)=>{t.__esModule=!0;var r=qf(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.PSEUDO,y}return d.prototype.toString=function(){var D=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),D,this.spaces.after].join("")},d})(s.default);t.default=f,e.exports=t.default}),Pq=xe((t,e)=>{t.__esModule=!0;var r=Du(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.ATTRIBUTE,y.raws={},y}return d.prototype.toString=function(){var D=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&D.push(this.operator),this.value&&D.push(this.value),this.raws.insensitive?D.push(this.raws.insensitive):this.insensitive&&D.push(" i"),D.push("]"),D.concat(this.spaces.after).join("")},d})(s.default);t.default=f,e.exports=t.default}),kq=xe((t,e)=>{t.__esModule=!0;var r=Du(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.UNIVERSAL,y.value="*",y}return d})(s.default);t.default=f,e.exports=t.default}),Iq=xe((t,e)=>{t.__esModule=!0;var r=wa(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.COMBINATOR,y}return d})(s.default);t.default=f,e.exports=t.default}),Bq=xe((t,e)=>{t.__esModule=!0;var r=wa(),s=n(r),i=br();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=(function(h){c(d,h);function d(D){o(this,d);var y=l(this,h.call(this,D));return y.type=i.NESTING,y.value="&",y}return d})(s.default);t.default=f,e.exports=t.default}),Nq=xe((t,e)=>{t.__esModule=!0,t.default=r;function r(s){return s.sort(function(i,n){return i-n})}e.exports=t.default}),_q=xe((t,e)=>{t.__esModule=!0,t.default=L;var r=39,s=34,i=92,n=47,o=10,l=32,c=12,f=9,h=13,d=43,D=62,y=126,g=124,x=44,C=40,b=41,E=91,v=93,F=59,T=42,w=58,P=38,k=64,N=/[ \n\t\r\{\(\)'"\\;/]/g,_=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function L(I){for(var M=[],K=I.css.valueOf(),$=void 0,z=void 0,re=void 0,te=void 0,ue=void 0,X=void 0,Q=void 0,W=void 0,Y=void 0,ie=void 0,de=void 0,ae=K.length,Z=-1,G=1,J=0,ce=function(ye,Ie){if(I.safe)K+=Ie,z=K.length-1;else throw I.error("Unclosed "+ye,G,J-Z,J)};J<ae;){switch($=K.charCodeAt(J),$===o&&(Z=J,G+=1),$){case o:case l:case f:case h:case c:z=J;do z+=1,$=K.charCodeAt(z),$===o&&(Z=z,G+=1);while($===l||$===o||$===f||$===h||$===c);M.push(["space",K.slice(J,z),G,J-Z,J]),J=z-1;break;case d:case D:case y:case g:z=J;do z+=1,$=K.charCodeAt(z);while($===d||$===D||$===y||$===g);M.push(["combinator",K.slice(J,z),G,J-Z,J]),J=z-1;break;case T:M.push(["*","*",G,J-Z,J]);break;case P:M.push(["&","&",G,J-Z,J]);break;case x:M.push([",",",",G,J-Z,J]);break;case E:M.push(["[","[",G,J-Z,J]);break;case v:M.push(["]","]",G,J-Z,J]);break;case w:M.push([":",":",G,J-Z,J]);break;case F:M.push([";",";",G,J-Z,J]);break;case C:M.push(["(","(",G,J-Z,J]);break;case b:M.push([")",")",G,J-Z,J]);break;case r:case s:re=$===r?"'":'"',z=J;do for(ie=!1,z=K.indexOf(re,z+1),z===-1&&ce("quote",re),de=z;K.charCodeAt(de-1)===i;)de-=1,ie=!ie;while(ie);M.push(["string",K.slice(J,z+1),G,J-Z,G,z-Z,J]),J=z;break;case k:N.lastIndex=J+1,N.test(K),N.lastIndex===0?z=K.length-1:z=N.lastIndex-2,M.push(["at-word",K.slice(J,z+1),G,J-Z,G,z-Z,J]),J=z;break;case i:for(z=J,Q=!0;K.charCodeAt(z+1)===i;)z+=1,Q=!Q;$=K.charCodeAt(z+1),Q&&$!==n&&$!==l&&$!==o&&$!==f&&$!==h&&$!==c&&(z+=1),M.push(["word",K.slice(J,z+1),G,J-Z,G,z-Z,J]),J=z;break;default:$===n&&K.charCodeAt(J+1)===T?(z=K.indexOf("*/",J+2)+1,z===0&&ce("comment","*/"),X=K.slice(J,z+1),te=X.split(`
197
+ `),ue=te.length-1,ue>0?(W=G+ue,Y=z-te[ue].length):(W=G,Y=Z),M.push(["comment",X,G,J-Z,W,z-Y,J]),Z=Y,G=W,J=z):(_.lastIndex=J+1,_.test(K),_.lastIndex===0?z=K.length-1:z=_.lastIndex-2,M.push(["word",K.slice(J,z+1),G,J-Z,G,z-Z,J]),J=z);break}J++}return M}e.exports=t.default}),Lq=xe((t,e)=>{t.__esModule=!0;var r=(function(){function Z(G,J){for(var ce=0;ce<J.length;ce++){var ye=J[ce];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(G,ye.key,ye)}}return function(G,J,ce){return J&&Z(G.prototype,J),ce&&Z(G,ce),G}})(),s=XA(),i=ie(s),n=YA(),o=ie(n),l=QA(),c=ie(l),f=Aq(),h=ie(f),d=Cq(),D=ie(d),y=bq(),g=ie(y),x=Tq(),C=ie(x),b=vq(),E=ie(b),v=Fq(),F=ie(v),T=wq(),w=ie(T),P=Sq(),k=ie(P),N=Pq(),_=ie(N),L=kq(),I=ie(L),M=Iq(),K=ie(M),$=Bq(),z=ie($),re=Nq(),te=ie(re),ue=_q(),X=ie(ue),Q=br(),W=Y(Q);function Y(Z){if(Z&&Z.__esModule)return Z;var G={};if(Z!=null)for(var J in Z)Object.prototype.hasOwnProperty.call(Z,J)&&(G[J]=Z[J]);return G.default=Z,G}function ie(Z){return Z&&Z.__esModule?Z:{default:Z}}function de(Z,G){if(!(Z instanceof G))throw new TypeError("Cannot call a class as a function")}var ae=(function(){function Z(G){de(this,Z),this.input=G,this.lossy=G.options.lossless===!1,this.position=0,this.root=new h.default;var J=new D.default;return this.root.append(J),this.current=J,this.lossy?this.tokens=(0,X.default)({safe:G.safe,css:G.css.trim()}):this.tokens=(0,X.default)(G),this.loop()}return Z.prototype.attribute=function(){var G="",J=void 0,ce=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)G+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~G.indexOf("]")&&this.error("Expected a closing square bracket.");var ye=G.split(/((?:[*~^$|]?=))([^]*)/),Ie=ye[0].split(/(\|)/g),ve={operator:ye[1],value:ye[2],source:{start:{line:ce[2],column:ce[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:ce[4]};if(Ie.length>1?(Ie[0]===""&&(Ie[0]=!0),ve.attribute=this.parseValue(Ie[2]),ve.namespace=this.parseNamespace(Ie[0])):ve.attribute=this.parseValue(ye[0]),J=new _.default(ve),ye[2]){var Ge=ye[2].split(/(\s+i\s*?)$/),ut=Ge[0].trim();J.value=this.lossy?ut:Ge[0],Ge[1]&&(J.insensitive=!0,this.lossy||(J.raws.insensitive=Ge[1])),J.quoted=ut[0]==="'"||ut[0]==='"',J.raws.unquoted=J.quoted?ut.slice(1,-1):ut}this.newNode(J),this.position++},Z.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var G=new K.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(G.spaces.before=this.parseSpace(this.currToken[1]),G.source.start.line=this.nextToken[2],G.source.start.column=this.nextToken[3],G.source.end.column=this.nextToken[3],G.source.end.line=this.nextToken[2],G.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?G.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?G.value=this.currToken[1]:this.currToken[0]==="space"&&(G.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(G)},Z.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var G=new D.default;this.current.parent.append(G),this.current=G,this.position++},Z.prototype.comment=function(){var G=new C.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(G),this.position++},Z.prototype.error=function(G){throw new this.input.error(G)},Z.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},Z.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},Z.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},Z.prototype.namespace=function(){var G=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(G);if(this.nextToken[0]==="*")return this.position++,this.universal(G)},Z.prototype.nesting=function(){this.newNode(new z.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},Z.prototype.parentheses=function(){var G=this.current.last;if(G&&G.type===W.PSEUDO){var J=new D.default,ce=this.current;G.append(J),this.current=J;var ye=1;for(this.position++;this.position<this.tokens.length&&ye;)this.currToken[0]==="("&&ye++,this.currToken[0]===")"&&ye--,ye?this.parse():(J.parent.source.end.line=this.currToken[2],J.parent.source.end.column=this.currToken[3],this.position++);ye&&this.error("Expected closing parenthesis."),this.current=ce}else{var Ie=1;for(this.position++,G.value+="(";this.position<this.tokens.length&&Ie;)this.currToken[0]==="("&&Ie++,this.currToken[0]===")"&&Ie--,G.value+=this.parseParenthesisToken(this.currToken),this.position++;Ie&&this.error("Expected closing parenthesis.")}},Z.prototype.pseudo=function(){for(var G=this,J="",ce=this.currToken;this.currToken&&this.currToken[0]===":";)J+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var ye=void 0;this.splitWord(!1,function(Ie,ve){J+=Ie,ye=new k.default({value:J,source:{start:{line:ce[2],column:ce[3]},end:{line:G.currToken[4],column:G.currToken[5]}},sourceIndex:ce[4]}),G.newNode(ye),ve>1&&G.nextToken&&G.nextToken[0]==="("&&G.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},Z.prototype.space=function(){var G=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(G[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(G[1]),this.position++):this.combinator()},Z.prototype.string=function(){var G=this.currToken;this.newNode(new w.default({value:this.currToken[1],source:{start:{line:G[2],column:G[3]},end:{line:G[4],column:G[5]}},sourceIndex:G[6]})),this.position++},Z.prototype.universal=function(G){var J=this.nextToken;if(J&&J[1]==="|")return this.position++,this.namespace();this.newNode(new I.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),G),this.position++},Z.prototype.splitWord=function(G,J){for(var ce=this,ye=this.nextToken,Ie=this.currToken[1];ye&&ye[0]==="word";){this.position++;var ve=this.currToken[1];if(Ie+=ve,ve.lastIndexOf("\\")===ve.length-1){var Ge=this.nextToken;Ge&&Ge[0]==="space"&&(Ie+=this.parseSpace(Ge[1]," "),this.position++)}ye=this.nextToken}var ut=(0,o.default)(Ie,"."),mt=(0,o.default)(Ie,"#"),nt=(0,o.default)(Ie,"#{");nt.length&&(mt=mt.filter(function(Ae){return!~nt.indexOf(Ae)}));var le=(0,te.default)((0,c.default)((0,i.default)([[0],ut,mt])));le.forEach(function(Ae,At){var Me=le[At+1]||Ie.length,Pt=Ie.slice(Ae,Me);if(At===0&&J)return J.call(ce,Pt,le.length);var at=void 0;~ut.indexOf(Ae)?at=new g.default({value:Pt.slice(1),source:{start:{line:ce.currToken[2],column:ce.currToken[3]+Ae},end:{line:ce.currToken[4],column:ce.currToken[3]+(Me-1)}},sourceIndex:ce.currToken[6]+le[At]}):~mt.indexOf(Ae)?at=new E.default({value:Pt.slice(1),source:{start:{line:ce.currToken[2],column:ce.currToken[3]+Ae},end:{line:ce.currToken[4],column:ce.currToken[3]+(Me-1)}},sourceIndex:ce.currToken[6]+le[At]}):at=new F.default({value:Pt,source:{start:{line:ce.currToken[2],column:ce.currToken[3]+Ae},end:{line:ce.currToken[4],column:ce.currToken[3]+(Me-1)}},sourceIndex:ce.currToken[6]+le[At]}),ce.newNode(at,G)}),this.position++},Z.prototype.word=function(G){var J=this.nextToken;return J&&J[1]==="|"?(this.position++,this.namespace()):this.splitWord(G)},Z.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},Z.prototype.parse=function(G){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":G&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},Z.prototype.parseNamespace=function(G){if(this.lossy&&typeof G=="string"){var J=G.trim();return J.length?J:!0}return G},Z.prototype.parseSpace=function(G,J){return this.lossy?J||"":G},Z.prototype.parseValue=function(G){return this.lossy&&G&&typeof G=="string"?G.trim():G},Z.prototype.parseParenthesisToken=function(G){return this.lossy?G[0]==="space"?this.parseSpace(G[1]," "):this.parseValue(G[1]):G[1]},Z.prototype.newNode=function(G,J){return J&&(G.namespace=this.parseNamespace(J)),this.spaces&&(G.spaces.before=this.spaces,this.spaces=""),this.current.append(G)},r(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z})();t.default=ae,e.exports=t.default}),Oq=xe((t,e)=>{t.__esModule=!0;var r=(function(){function c(f,h){for(var d=0;d<h.length;d++){var D=h[d];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(f,D.key,D)}}return function(f,h,d){return h&&c(f.prototype,h),d&&c(f,d),f}})(),s=Lq(),i=n(s);function n(c){return c&&c.__esModule?c:{default:c}}function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(f){return o(this,c),this.func=f||function(){},this}return c.prototype.process=function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=new i.default({css:f,error:function(D){throw new Error(D)},options:h});return this.res=d,this.func(d),this},r(c,[{key:"result",get:function(){return String(this.res)}}]),c})();t.default=l,e.exports=t.default}),Ts=xe((t,e)=>{var r=function(s,i){let n=new s.constructor;for(let o in s){if(!s.hasOwnProperty(o))continue;let l=s[o],c=typeof l;o==="parent"&&c==="object"?i&&(n[o]=i):o==="source"?n[o]=l:l instanceof Array?n[o]=l.map(f=>r(f,n)):o!=="before"&&o!=="after"&&o!=="between"&&o!=="semicolon"&&(c==="object"&&l!==null&&(l=r(l)),n[o]=l)}return n};e.exports=class{constructor(s){s=s||{},this.raws={before:"",after:""};for(let i in s)this[i]=s[i]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(s){s=s||{};let i=r(this);for(let n in s)i[n]=s[n];return i}cloneBefore(s){s=s||{};let i=this.clone(s);return this.parent.insertBefore(this,i),i}cloneAfter(s){s=s||{};let i=this.clone(s);return this.parent.insertAfter(this,i),i}replaceWith(){let s=Array.prototype.slice.call(arguments);if(this.parent){for(let i of s)this.parent.insertBefore(this,i);this.remove()}return this}moveTo(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.append(this),this}moveBefore(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertBefore(s,this),this}moveAfter(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertAfter(s,this),this}next(){let s=this.parent.index(this);return this.parent.nodes[s+1]}prev(){let s=this.parent.index(this);return this.parent.nodes[s-1]}toJSON(){let s={};for(let i in this){if(!this.hasOwnProperty(i)||i==="parent")continue;let n=this[i];n instanceof Array?s[i]=n.map(o=>typeof o=="object"&&o.toJSON?o.toJSON():o):typeof n=="object"&&n.toJSON?s[i]=n.toJSON():s[i]=n}return s}root(){let s=this;for(;s.parent;)s=s.parent;return s}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}positionInside(s){let i=this.toString(),n=this.source.start.column,o=this.source.start.line;for(let l=0;l<s;l++)i[l]===`
198
+ `?(n=1,o+=1):n+=1;return{line:o,column:n}}positionBy(s){let i=this.source.start;if(Object(s).index)i=this.positionInside(s.index);else if(Object(s).word){let n=this.toString().indexOf(s.word);n!==-1&&(i=this.positionInside(n))}return i}}}),Br=xe((t,e)=>{var r=Ts(),s=class extends r{constructor(i){super(i),this.nodes||(this.nodes=[])}push(i){return i.parent=this,this.nodes.push(i),this}each(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach,o,l;if(this.indexes[n]=0,!!this.nodes){for(;this.indexes[n]<this.nodes.length&&(o=this.indexes[n],l=i(this.nodes[o],o),l!==!1);)this.indexes[n]+=1;return delete this.indexes[n],l}}walk(i){return this.each((n,o)=>{let l=i(n,o);return l!==!1&&n.walk&&(l=n.walk(i)),l})}walkType(i,n){if(!i||!n)throw new Error("Parameters {type} and {callback} are required.");let o=typeof i=="function";return this.walk((l,c)=>{if(o&&l instanceof i||!o&&l.type===i)return n.call(this,l,c)})}append(i){return i.parent=this,this.nodes.push(i),this}prepend(i){return i.parent=this,this.nodes.unshift(i),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let n of this.nodes)n.cleanRaws(i)}insertAfter(i,n){let o=this.index(i),l;this.nodes.splice(o+1,0,n);for(let c in this.indexes)l=this.indexes[c],o<=l&&(this.indexes[c]=l+this.nodes.length);return this}insertBefore(i,n){let o=this.index(i),l;this.nodes.splice(o,0,n);for(let c in this.indexes)l=this.indexes[c],o<=l&&(this.indexes[c]=l+this.nodes.length);return this}removeChild(i){i=this.index(i),this.nodes[i].parent=void 0,this.nodes.splice(i,1);let n;for(let o in this.indexes)n=this.indexes[o],n>=i&&(this.indexes[o]=n-1);return this}removeAll(){for(let i of this.nodes)i.parent=void 0;return this.nodes=[],this}every(i){return this.nodes.every(i)}some(i){return this.nodes.some(i)}index(i){return typeof i=="number"?i:this.nodes.indexOf(i)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let i=this.nodes.map(String).join("");return this.value&&(i=this.value+i),this.raws.before&&(i=this.raws.before+i),this.raws.after&&(i+=this.raws.after),i}};s.registerWalker=i=>{let n="walk"+i.name;n.lastIndexOf("s")!==n.length-1&&(n+="s"),!s.prototype[n]&&(s.prototype[n]=function(o){return this.walkType(i,o)})},e.exports=s}),$q=xe((t,e)=>{var r=Br();e.exports=class extends r{constructor(s){super(s),this.type="root"}}}),Mq=xe((t,e)=>{var r=Br();e.exports=class extends r{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),Rq=xe((t,e)=>{var r=Br(),s=class extends r{constructor(i){super(i),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(s),e.exports=s}),jq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="colon"}};r.registerWalker(i),e.exports=i}),Uq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="comma"}};r.registerWalker(i),e.exports=i}),qq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="comment",this.inline=Object(n).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),Vq=xe((t,e)=>{var r=Br(),s=class extends r{constructor(i){super(i),this.type="func",this.unbalanced=-1}};r.registerWalker(s),e.exports=s}),zq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="number",this.unit=Object(n).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),Hq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="operator"}};r.registerWalker(i),e.exports=i}),Wq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="paren",this.parenType=""}};r.registerWalker(i),e.exports=i}),Jq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="string"}toString(){let n=this.quoted?this.raws.quote:"";return[this.raws.before,n,this.value+"",n,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),Kq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="word"}};r.registerWalker(i),e.exports=i}),Gq=xe((t,e)=>{var r=Br(),s=Ts(),i=class extends s{constructor(n){super(n),this.type="unicode-range"}};r.registerWalker(i),e.exports=i}),Xq=xe((t,e)=>{var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};e.exports=r}),Yq=xe((t,e)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,n=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,l=Xq();e.exports=function(c,f){f=f||{};let h=[],d=c.valueOf(),D=d.length,y=-1,g=1,x=0,C=0,b=null,E,v,F,T,w,P,k,N,_,L,I;function M(K){let $=`Unclosed ${K} at line: ${g}, column: ${x-y}, token: ${x}`;throw new l($)}for(;x<D;){switch(E=d.charCodeAt(x),E===10&&(y=x,g+=1),E){case 10:case 32:case 9:case 13:case 12:v=x;do v+=1,E=d.charCodeAt(v),E===10&&(y=v,g+=1);while(E===32||E===10||E===9||E===13||E===12);h.push(["space",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;break;case 58:v=x+1,h.push(["colon",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;break;case 44:v=x+1,h.push(["comma",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;break;case 123:h.push(["{","{",g,x-y,g,v-y,x]);break;case 125:h.push(["}","}",g,x-y,g,v-y,x]);break;case 40:C++,b=!b&&C===1&&h.length>0&&h[h.length-1][0]==="word"&&h[h.length-1][1]==="url",h.push(["(","(",g,x-y,g,v-y,x]);break;case 41:C--,b=b&&C>0,h.push([")",")",g,x-y,g,v-y,x]);break;case 39:case 34:F=E===39?"'":'"',v=x;do for(_=!1,v=d.indexOf(F,v+1),v===-1&&M("quote"),L=v;d.charCodeAt(L-1)===92;)L-=1,_=!_;while(_);h.push(["string",d.slice(x,v+1),g,x-y,g,v-y,x]),x=v;break;case 64:r.lastIndex=x+1,r.test(d),r.lastIndex===0?v=d.length-1:v=r.lastIndex-2,h.push(["atword",d.slice(x,v+1),g,x-y,g,v-y,x]),x=v;break;case 92:v=x,E=d.charCodeAt(v+1),h.push(["word",d.slice(x,v+1),g,x-y,g,v-y,x]),x=v;break;case 43:case 45:case 42:if(v=x+1,I=d.slice(x+1,v+1),d.slice(x-1,x),E===45&&I.charCodeAt(0)===45){v++,h.push(["word",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;break}h.push(["operator",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;break;default:if(E===47&&(d.charCodeAt(x+1)===42||f.loose&&!b&&d.charCodeAt(x+1)===47)){if(d.charCodeAt(x+1)===42)v=d.indexOf("*/",x+2)+1,v===0&&M("comment");else{let K=d.indexOf(`
199
+ `,x+2);v=K!==-1?K-1:D}P=d.slice(x,v+1),T=P.split(`
200
+ `),w=T.length-1,w>0?(k=g+w,N=v-T[w].length):(k=g,N=y),h.push(["comment",P,g,x-y,k,v-N,x]),y=N,g=k,x=v}else if(E===35&&!n.test(d.slice(x+1,x+2)))v=x+1,h.push(["#",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;else if((E===117||E===85)&&d.charCodeAt(x+1)===43){v=x+2;do v+=1,E=d.charCodeAt(v);while(v<D&&o.test(d.slice(v,v+1)));h.push(["unicoderange",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1}else if(E===47)v=x+1,h.push(["operator",d.slice(x,v),g,x-y,g,v-y,x]),x=v-1;else{let K=s;if(E>=48&&E<=57&&(K=i),K.lastIndex=x+1,K.test(d),K.lastIndex===0?v=d.length-1:v=K.lastIndex-2,K===i||E===46){let $=d.charCodeAt(v),z=d.charCodeAt(v+1),re=d.charCodeAt(v+2);($===101||$===69)&&(z===45||z===43)&&re>=48&&re<=57&&(i.lastIndex=v+2,i.test(d),i.lastIndex===0?v=d.length-1:v=i.lastIndex-2)}h.push(["word",d.slice(x,v+1),g,x-y,g,v-y,x]),x=v}break}x++}return h}}),Qq=xe((t,e)=>{var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};e.exports=r}),Zq=xe((t,e)=>{var r=$q(),s=Mq(),i=Rq(),n=jq(),o=Uq(),l=qq(),c=Vq(),f=zq(),h=Hq(),d=Wq(),D=Jq(),y=Kq(),g=Gq(),x=Yq(),C=XA(),b=YA(),E=QA(),v=Qq();function F(T){return T.sort((w,P)=>w-P)}e.exports=class{constructor(T,w){let P={loose:!1};this.cache=[],this.input=T,this.options=Object.assign({},P,w),this.position=0,this.unbalanced=0,this.root=new r;let k=new s;this.root.append(k),this.current=k,this.tokens=x(T,this.options)}parse(){return this.loop()}colon(){let T=this.currToken;this.newNode(new n({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}comma(){let T=this.currToken;this.newNode(new o({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}comment(){let T=!1,w=this.currToken[1].replace(/\/\*|\*\//g,""),P;this.options.loose&&w.startsWith("//")&&(w=w.substring(2),T=!0),P=new l({value:w,inline:T,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(P),this.position++}error(T,w){throw new v(T+` at line: ${w[2]}, column ${w[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let T=this.currToken[1],w;if(T==="+"||T==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return w=new h({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(w)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let T=1,w=this.position+1,P=this.currToken,k;for(;w<this.tokens.length&&T;){let N=this.tokens[w];N[0]==="("&&T++,N[0]===")"&&T--,w++}if(T&&this.error("Expected closing parenthesis",P),k=this.current.last,k&&k.type==="func"&&k.unbalanced<0&&(k.unbalanced=0,this.current=k),this.current.unbalanced++,this.newNode(new d({value:P[1],source:{start:{line:P[2],column:P[3]},end:{line:P[4],column:P[5]}},sourceIndex:P[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let N=this.nextToken,_=this.currToken[1],L={line:this.currToken[2],column:this.currToken[3]};for(;N&&N[0]!==")"&&this.current.unbalanced;)this.position++,_+=this.currToken[1],N=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new y({value:_,source:{start:L,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let T=this.currToken;this.newNode(new d({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",T),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let T=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=T[1],this.position++):(this.spaces=T[1],this.position++)}unicodeRange(){let T=this.currToken;this.newNode(new g({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++}splitWord(){let T=this.nextToken,w=this.currToken[1],P=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,k=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,N,_;if(!k.test(w))for(;T&&T[0]==="word";){this.position++;let L=this.currToken[1];w+=L,T=this.nextToken}N=b(w,"@"),_=F(E(C([[0],N]))),_.forEach((L,I)=>{let M=_[I+1]||w.length,K=w.slice(L,M),$;if(~N.indexOf(L))$=new i({value:K.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+L},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+_[I]});else if(P.test(this.currToken[1])){let z=K.replace(P,"");$=new f({value:K.replace(z,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+L},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+_[I],unit:z})}else $=new(T&&T[0]==="("?c:y)({value:K,source:{start:{line:this.currToken[2],column:this.currToken[3]+L},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+_[I]}),$.type==="word"?($.isHex=/^#(.+)/.test(K),$.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(K)):this.cache.push(this.current);this.newNode($)}),this.position++}string(){let T=this.currToken,w=this.currToken[1],P=/^(\"|\')/,k=P.test(w),N="",_;k&&(N=w.match(P)[0],w=w.slice(1,w.length-1)),_=new D({value:w,source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6],quoted:k}),_.raws.quote=N,this.newNode(_),this.position++}word(){return this.splitWord()}newNode(T){return this.spaces&&(T.raws.before+=this.spaces,this.spaces=""),this.current.append(T)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),ZA={};$A(ZA,{languages:()=>NC,options:()=>_C,parsers:()=>Yf,printers:()=>qC});var eC=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),eV=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},tV=eC("replaceAll",function(){if(typeof this=="string")return eV}),vt=tV;function rV(t){return this[t<0?this.length+t:t]}var sV=eC("at",function(){if(Array.isArray(this)||typeof this=="string")return rV}),nn=sV,iV=()=>{},nV=iV,tC="string",rC="array",sC="cursor",hp="indent",Vf="align",iC="trim",dp="group",fp="fill",mp="if-break",nC="indent-if-break",zf="line-suffix",aC="line-suffix-boundary",Sa="line",oC="label",Hf="break-parent",uC=new Set([sC,hp,Vf,iC,dp,fp,mp,nC,zf,aC,Sa,oC,Hf]);function aV(t){if(typeof t=="string")return tC;if(Array.isArray(t))return rC;if(!t)return;let{type:e}=t;if(uC.has(e))return e}var Fo=aV,oV=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function uV(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
201
+ Expected it to be 'string' or 'object'.`;if(Fo(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=oV([...uC].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
202
+ Expected it to be ${s}.`}var lV=class extends Error{name="InvalidDocError";constructor(t){super(uV(t)),this.doc=t}},pV=lV;function cV(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(n){if(r.has(n))return r.get(n);let o=i(n);return r.set(n,o),o}function i(n){switch(Fo(n)){case rC:return e(n.map(s));case fp:return e({...n,parts:n.parts.map(s)});case mp:return e({...n,breakContents:s(n.breakContents),flatContents:s(n.flatContents)});case dp:{let{expandedStates:o,contents:l}=n;return o?(o=o.map(s),l=o[0]):l=s(l),e({...n,contents:l,expandedStates:o})}case Vf:case hp:case nC:case oC:case zf:return e({...n,contents:s(n.contents)});case tC:case sC:case iC:case aC:case Sa:case Hf:return e(n);default:throw new pV(n)}}}function hV(t){return t.type===Sa&&!t.hard?t.soft?"":" ":t.type===mp?t.flatContents:t}function dV(t){return cV(t,hV)}var fV=nV;function Fr(t){return{type:hp,contents:t}}function mV(t,e){return{type:Vf,contents:e,n:t}}function Uo(t){return mV(-1,t)}var Wf={type:Hf};function cl(t){return{type:fp,parts:t}}function Lr(t,e={}){return fV(e.expandedStates),{type:dp,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function lC(t,e="",r={}){return{type:mp,breakContents:t,flatContents:e,groupId:r.groupId}}function fi(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var Kt={type:Sa},_r={type:Sa,soft:!0},yV={type:Sa,hard:!0},Lt=[yV,Wf];function DV(t){return{type:zf,contents:t}}function gV(t){return Array.isArray(t)&&t.length>0}var yp=gV,pC=Object.freeze({character:"'",codePoint:39}),cC=Object.freeze({character:'"',codePoint:34}),xV=Object.freeze({preferred:pC,alternate:cC}),EV=Object.freeze({preferred:cC,alternate:pC});function AV(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?xV:EV,{length:i}=t,n=0,o=0;for(let l=0;l<i;l++){let c=t.charCodeAt(l);c===r.codePoint?n++:c===s.codePoint&&o++}return(n>o?s:r).character}var CV=AV,bV=/\\(["'\\])|(["'])/gu;function TV(t,e){let r=e==='"'?"'":'"',s=vt(0,t,bV,(i,n,o)=>n?n===r?r:i:o===e?"\\"+o:o);return e+s+e}var vV=TV;function FV(t,e){let r=t.slice(1,-1),s=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":CV(r,e.singleQuote);return t.charAt(0)===s?t:vV(r,s)}var hC=FV,wV=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},SV=wV,dC=Symbol.for("PRETTIER_IS_FRONT_MATTER");function PV(t){return!!t?.[dC]}var Sh=PV,Xa=3;function kV(t){let e=t.slice(0,Xa);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
203
+ `,Xa);if(r===-1)return;let s=t.slice(Xa,r).trim(),i=t.indexOf(`
204
+ ${e}`,r),n=s;if(n||(n=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&n==="yaml"&&(i=t.indexOf(`
205
+ ...`,r)),i===-1)return;let o=i+1+Xa,l=t.charAt(o+1);if(!/\s?/u.test(l))return;let c=t.slice(0,o),f;return{language:n,explicitLanguage:s||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:c.slice(-Xa),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return f??(f=c.split(`
206
+ `)),f.length},get column(){return f??(f=c.split(`
207
+ `)),nn(0,f,-1).length}},[dC]:!0}}function IV(t){let e=kV(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return vt(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var Dp=IV,BV=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function fC(t,e,r){if(t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||Sh(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||r.type==="css-root"&&nn(0,r.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=NV(t.value)),t.type==="selector-combinator"&&(e.value=vt(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=vt(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=vt(0,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:s}=e;/\s[a-zA-Z]$/u.test(s)&&(e.__prettier_attribute_selector_flag=nn(0,s,-1),s=s.slice(0,-1)),s=s.trim(),s=s.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),e.value=s,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=vt(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(s,i,n)=>{let o=Number(i);return Number.isNaN(o)?s:o+n.toLowerCase()})),t.type==="selector-tag"){let s=e.value.toLowerCase();["from","to"].includes(s)&&(e.value=s)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let s=t.groups.findIndex(i=>i.type==="value-number"&&i.unit==="...");s!==-1&&(e.groups[s].unit="",e.groups.splice(s+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(s=>s.type==="value-atword"&&(s.value.endsWith("[")||s.value.endsWith("]"))||s.type==="value-word"&&(s.value.startsWith("]")||s.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(s=>s.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}fC.ignoredProperties=BV;function NV(t){return vt(0,vt(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var _V=fC;function mC(){}mC.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var LV=mC,Ya=null;function wo(t){if(Ya!==null&&typeof Ya.property){let e=Ya;return Ya=wo.prototype=null,e}return Ya=wo.prototype=t??Object.create(null),new wo}var OV=10;for(let t=0;t<=OV;t++)wo();function $V(t){return wo(t)}function MV(t,e="type"){$V(t);function r(s){let i=s[e],n=t[i];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return n}return r}var RV=MV,Xe=[[],["nodes"],["group"]],jV={"css-root":["frontMatter","nodes"],"css-comment":Xe[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":Xe[1],"media-query":Xe[1],"media-type":Xe[0],"media-feature-expression":Xe[1],"media-feature":Xe[0],"media-colon":Xe[0],"media-value":Xe[0],"media-keyword":Xe[0],"media-url":Xe[0],"media-unknown":Xe[0],"selector-root":Xe[1],"selector-selector":Xe[1],"selector-comment":Xe[0],"selector-string":Xe[0],"selector-tag":Xe[0],"selector-id":Xe[0],"selector-class":Xe[0],"selector-attribute":Xe[0],"selector-combinator":Xe[1],"selector-universal":Xe[0],"selector-pseudo":Xe[1],"selector-nesting":Xe[0],"selector-unknown":Xe[0],"value-value":Xe[2],"value-root":Xe[2],"value-comment":Xe[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":Xe[2],"value-paren":Xe[0],"value-number":Xe[0],"value-operator":Xe[0],"value-word":Xe[0],"value-colon":Xe[0],"value-comma":Xe[0],"value-string":Xe[0],"value-atword":Xe[0],"value-unicode-range":Xe[0],"value-unknown":Xe[0]},UV=RV(jV),qV=UV;function VV(t,e){let r=0;for(let s=0;s<t.line-1;++s)r=e.indexOf(`
208
+ `,r)+1;return r+t.column}var yC=VV;function Jf(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:n}=e,o=r;for(;o>=0&&o<n;){let l=e.charAt(o);if(t instanceof RegExp){if(!t.test(l))return o}else if(!t.includes(l))return o;i?o--:o++}return o===-1||o===n?o:!1}}var DC=Jf(" "),zV=Jf(",; "),gC=Jf(/[^\n\r]/u);function xC(t,e){let{value:r}=t;return r==="-"||r==="--"||r.charAt(0)!=="-"?e:e-(r.charAt(1)==="-"?2:1)}function EC(t,e){if(typeof t.source?.start?.offset=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.type==="value-word"?xC(t,t.sourceIndex):t.sourceIndex;if(t.source?.start)return yC(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Kf(t,e){if(t.type==="css-comment"&&t.inline)return gC(e,t.source.startOffset);if(typeof t.source?.end?.offset=="number")return t.source.end.offset;if(t.source){if(t.source.end){let r=yC(t.source.end,e);return t.type==="value-word"?xC(t,r):r}if(yp(t.nodes))return Kf(nn(0,t.nodes,-1),e)}return null}function AC(t,e){t.source&&(t.source.startOffset=EC(t,e),t.source.endOffset=Kf(t,e));for(let r in t){let s=t[r];r==="source"||!s||typeof s!="object"||(s.type==="value-root"||s.type==="value-unknown"?CC(s,HV(t),s.text||s.value):AC(s,e))}}function CC(t,e,r){t.source&&(t.source.startOffset=EC(t,r)+e,t.source.endOffset=Kf(t,r)+e);for(let s in t){let i=t[s];s==="source"||!i||typeof i!="object"||CC(i,e,r)}}function HV(t){let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/u)[0].length),t.type!=="css-atrule"&&typeof t.raws?.between=="string"&&(e+=t.raws.between.length),e}function WV(t){let e="initial",r="initial",s,i=!1,n=[];for(let o=0;o<t.length;o++){let l=t[o];switch(e){case"initial":if(l==="'"){e="single-quotes";continue}if(l==='"'){e="double-quotes";continue}if((l==="u"||l==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(l==="*"&&t[o-1]==="/"){e="comment-block";continue}if(l==="/"&&t[o-1]==="/"){e="comment-inline",s=o-1;continue}continue;case"single-quotes":if(l==="'"&&t[o-1]!=="\\"&&(e=r,r="initial"),l===`
209
+ `||l==="\r")return t;continue;case"double-quotes":if(l==='"'&&t[o-1]!=="\\"&&(e=r,r="initial"),l===`
210
+ `||l==="\r")return t;continue;case"url":if(l===")"&&(e="initial"),l===`
211
+ `||l==="\r")return t;if(l==="'"){e="single-quotes",r="url";continue}if(l==='"'){e="double-quotes",r="url";continue}continue;case"comment-block":l==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":(l==='"'||l==="'"||l==="*")&&(i=!0),(l===`
212
+ `||l==="\r")&&(i&&n.push([s,o]),e="initial",i=!1);continue}}for(let[o,l]of n)t=t.slice(0,o)+vt(0,t.slice(o,l),/["'*]/gu," ")+t.slice(l);return t}var fr=t=>t.source?.startOffset,mr=t=>t.source?.endOffset,JV=/\*\/$/,KV=/^\/\*\*?/,bC=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,GV=/(^|\s+)\/\/([^\n\r]*)/g,F2=/^(\r?\n)+/,XV=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,w2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,YV=/(\r?\n|^) *\* ?/g,TC=[];function QV(t){let e=t.match(bC);return e?e[0].trimStart():""}function ZV(t){let e=t.match(bC)?.[0];return e==null?t:t.slice(e.length)}function ez(t){t=vt(0,t.replace(KV,"").replace(JV,""),YV,"$1");let e="";for(;e!==t;)e=t,t=vt(0,t,XV,`
213
+ $1 $2
214
+ `);t=t.replace(F2,"").trimEnd();let r=Object.create(null),s=vt(0,t,w2,"").replace(F2,"").trimEnd(),i;for(;i=w2.exec(t);){let n=vt(0,i[2],GV,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let o=r[i[1]];r[i[1]]=[...TC,...Array.isArray(o)?o:[o],n]}else r[i[1]]=n}return{comments:s,pragmas:r}}function tz({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(n=>S2(n,e[n])).map(n=>` * ${n}
215
+ `).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let n=e[r[0]];return`/** ${S2(r[0],n)[0]} */`}}let i=t.split(`
216
+ `).map(n=>` * ${n}`).join(`
217
+ `)+`
218
+ `;return`/**
219
+ `+(t?i:"")+(t&&r.length>0?` *
220
+ `:"")+s+" */"}function S2(t,e){return[...TC,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var rz=["noformat","noprettier"],sz=["format","prettier"],iz="format";function nz(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
221
+ `);return e===-1?t:t.slice(0,e)}var az=nz;function Gf(t){let e=az(t);e&&(t=t.slice(e.length+1));let r=QV(t),{pragmas:s,comments:i}=ez(r);return{shebang:e,text:t,pragmas:s,comments:i}}function oz(t){let{pragmas:e}=Gf(t);return sz.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function uz(t){let{pragmas:e}=Gf(t);return rz.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function lz(t){let{shebang:e,text:r,pragmas:s,comments:i}=Gf(t),n=ZV(r),o=tz({pragmas:{[iz]:"",...s},comments:i.trimStart()});return(e?`${e}
222
+ `:"")+o+(n.startsWith(`
223
+ `)?`
224
+ `:`
225
+
226
+ `)+n}var pz=t=>oz(Dp(t).content),cz=t=>uz(Dp(t).content),hz=t=>{let{frontMatter:e,content:r}=Dp(t);return(e?e.raw+`
227
+
228
+ `:"")+lz(r)},dz=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function fz(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var mz=new Set(["initial","inherit","unset","revert"]);function yz(t){return mz.has(t.toLowerCase())}function Dz(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Qa(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function hl(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function gz(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let r=e.raws?.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))})}function So(t,e){let r=Array.isArray(e)?e:[e],s=t.findAncestor(i=>i.type==="css-atrule");return s&&r.includes(s.name.toLowerCase())}function xz(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(r=>r.type==="css-atrule")?.name==="import"}function Ez(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Az(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Cz(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function bz(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Tz(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function vz(t){return t.type==="value-word"&&t.value==="in"}function Ph(t){return t.type==="value-operator"&&t.value==="*"}function Rn(t){return t?.type==="value-operator"&&t.value==="/"}function pi(t){return t.type==="value-operator"&&t.value==="+"}function jn(t){return t.type==="value-operator"&&t.value==="-"}function Fz(t){return t.type==="value-operator"&&t.value==="%"}function Sc(t){return Ph(t)||Rn(t)||pi(t)||jn(t)||Fz(t)}function wz(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Sz(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function kh(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function P2(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Pc(t){return t.name.startsWith("prettier-placeholder")}function Pz(t){return t.prop.startsWith("@prettier-placeholder")}function kz(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function Iz(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function Bz(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function oi(t){return t?.raws?.before===""}function Xf(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function kc(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Xf(t.groups[0])}function vC(t,e){if(e.parser!=="scss")return!1;let{node:r}=t;if(r.groups.length===0)return!1;let s=t.parent;if(s&&s.type==="value-func"&&s.value==="if")return!1;let i=t.grandparent;return!kc(r)&&!(i&&kc(i))?!1:!!(t.findAncestor(n=>n.type==="css-decl")?.prop?.startsWith("$")||kc(i)||i.type==="value-func")}function Wu(t){return t.type==="value-comment"&&t.inline}function Ic(t){return t.type==="value-word"&&t.value==="#"}function k2(t){return t.type==="value-word"&&t.value==="{"}function Bc(t){return t.type==="value-word"&&t.value==="}"}function Ju(t){return["value-word","value-atword"].includes(t.type)}function Ih(t){return t?.type==="value-colon"}function Nz(t,e){if(!Xf(e))return!1;let{groups:r}=e,s=r.indexOf(t);return s===-1?!1:Ih(r[s+1])}function _z(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Lz(t){return t.type!=="value-func"?!1:dz.has(t.value.toLowerCase())}function Za(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function Ku(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Oz(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(r=>r.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let r=e.groups.indexOf(t)-1,s=e.groups[r];if(s?.type==="value-word"&&s.value==="with")return!0}return!1}function Gu(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function $z(t,e,r){let{node:s}=t,i=t.parent,n=t.grandparent,o=fz(t),l=o&&i.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),c=t.findAncestor(C=>C.type==="css-atrule"),f=c&&kh(c,e),h=s.groups.some(C=>Wu(C)),d=t.map(r,"groups"),D=[""],y=hl(t,"url"),g=!1,x=!1;for(let C=0;C<s.groups.length;++C){let b=s.groups[C-1],E=s.groups[C],v=s.groups[C+1],F=s.groups[C+2];if(Wu(E)&&!v){D.push([D.pop(),DV([" ",d[C]])]);continue}if(D.push([D.pop(),d[C]]),y){(v&&pi(v)||pi(E))&&D.push([D.pop()," "]);continue}if(So(t,"forward")&&E.type==="value-word"&&E.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||So(t,"utility")&&E.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||E.type==="value-word"&&Ku(v)&&mr(E)===fr(v))continue;if(E.type==="value-string"&&E.quoted){let _=E.value.lastIndexOf("#{"),L=E.value.lastIndexOf("}");_!==-1&&L!==-1?g=_>L:_!==-1?g=!0:L!==-1&&(g=!1)}if(g||Ih(E)||Ih(v)||E.type==="value-atword"&&(E.value===""||E.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||E.value==="~"||e.parser==="less"&&(v?.type==="value-word"&&v.value==="["||E.type==="value-word"&&E.value==="["&&(v?.type==="value-atword"||v?.type==="value-word")||E.type==="value-word"&&E.value==="]["&&v?.type==="value-word")||E.type!=="value-string"&&E.value&&E.value.includes("\\")&&v&&v.type!=="value-comment"||b?.value&&b.value.indexOf("\\")===b.value.length-1&&E.type==="value-operator"&&E.value==="/"||E.value==="\\"||kz(E,v)||Ic(E)||k2(E)||Bc(v)||k2(v)&&oi(v)||Bc(E)&&oi(v)||E.value==="--"&&Ic(v))continue;let T=Sc(E),w=Sc(v);if((T&&Ic(v)||w&&Bc(E))&&oi(v)||!b&&Rn(E)||hl(t,"calc")&&(pi(E)||pi(v)||jn(E)||jn(v))&&oi(v))continue;let P=(pi(E)||jn(E))&&C===0&&(v.type==="value-number"||v.isHex)&&n&&Lz(n)&&!oi(v);if(e.parser==="scss"&&T&&E.value==="-"&&v.type==="value-func"&&mr(E)!==fr(v)){D.push([D.pop()," "]);continue}let k=F?.type==="value-func"||F&&Ju(F)||E.type==="value-func"||Ju(E),N=v.type==="value-func"||Ju(v)||b?.type==="value-func"||b&&Ju(b);if(!(!(Ph(v)||Ph(E))&&!hl(t,"calc")&&!P&&(Rn(v)&&!k||Rn(E)&&!N||pi(v)&&!k||pi(E)&&!N||jn(v)||jn(E))&&(oi(v)||T&&(!b||b&&Sc(b))))&&!((e.parser==="scss"||e.parser==="less")&&T&&E.value==="-"&&Gu(v)&&mr(E)===fr(v.open)&&v.open.value==="(")){if(Wu(E)){if(i.type==="value-paren_group"){D.push(Uo(Lt),"");continue}D.push(Lt,"");continue}if(f&&(wz(v)||Sz(v)||Tz(v)||vz(E)||bz(E))){D.push([D.pop()," "]);continue}if(c&&c.name.toLowerCase()==="namespace"){D.push([D.pop()," "]);continue}if(l){E.source&&v.source&&E.source.start.line!==v.source.start.line?(D.push(Lt,""),x=!0):D.push([D.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(Rn(v)&&oi(v)&&I2(E)||Rn(E)&&oi(E)&&I2(b)))){if(w){D.push([D.pop()," "]);continue}if(v?.value!=="..."&&!(Ku(E)&&Ku(v)&&mr(E)===fr(v))){if(Ku(E)&&Gu(v)&&mr(E)===fr(v.open)){D.push(_r,"");continue}if(E.value==="with"&&Gu(v)){D=[[cl(D)," "]];continue}if(!(E.value?.endsWith("#")&&v.value==="{"&&Gu(v.group))&&!(Wu(v)&&!F)){if(!c&&E.type==="value-comment"&&!E.inline&&s.groups.slice(0,C).every(_=>_.type==="value-comment")){D.push(Uo(Kt),"");continue}D.push(Kt,"")}}}}}return h&&D.push([D.pop(),Wf]),x&&D.unshift("",Lt),f?Lr(Fr(D)):xz(t)?Lr(cl(D)):Lr(Fr(cl(D)))}function I2(t){if(t?.type==="value-number")return!0;if(t?.type!=="value-func")return!1;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var Mz=$z;function Rz(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var jz=Rz,Bh=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function FC(t){let e=t.toLowerCase();return Bh.has(e)?Bh.get(e):t}var wC=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Uz=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,qz=/[a-z]+/giu,Vz=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,zz=new RegExp(wC.source+`|(${Vz.source})?(${Uz.source})(${qz.source})?`,"giu");function ts(t,e){return vt(0,t,wC,r=>hC(r,e))}function Hz(t,e){let r=e.singleQuote?"'":'"',s="",i=t.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return i&&({value:t,flag:s}=i.groups),(t.includes('"')||t.includes("'")?t:r+t+r)+(s?` ${s}`:"")}function Bn(t){return vt(0,t,zz,(e,r,s,i,n)=>!s&&i&&(n??(n=""),n=n.toLowerCase(),!n||n==="n"||Bh.has(n))?SC(i)+(n?FC(n):""):e)}function SC(t){return jz(t).replace(/\.0(?=$|e)/u,"")}function Wz(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var B2=t=>t===`
229
+ `||t==="\r"||t==="\u2028"||t==="\u2029";function Jz(t,e,r){let s=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(s){if(t.charAt(e-1)==="\r"&&i===`
230
+ `)return e-2;if(B2(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
231
+ `)return e+2;if(B2(i))return e+1}return e}var PC=Jz;function Kz(t,e,r={}){let s=DC(t,r.backwards?e-1:e,r),i=PC(t,s,r);return s!==i}var kC=Kz;function Gz(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var Xz=Gz;function Yz(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?gC(t,e):e}var Qz=Yz;function Zz(t,e){let r=null,s=e;for(;s!==r;)r=s,s=zV(t,s),s=Xz(t,s),s=DC(t,s);return s=Qz(t,s),s=PC(t,s),s!==!1&&kC(t,s)}var IC=Zz;function eH({node:t,parent:e},r){return!!(t.source&&r.originalText.slice(fr(t),fr(e.close)).trimEnd().endsWith(","))}function tH(t,e){return Az(t.grandparent)&&eH(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(r=>r.type==="value-comment"))&&Wz(e)&&t.callParent(()=>vC(t,e))?lC(","):""}function rH(t,e,r){let{node:s,parent:i}=t,n=t.map(({node:y})=>typeof y=="string"?y:r(),"groups");if(i&&Ez(i)&&(s.groups.length===1||s.groups.length>0&&s.groups[0].type==="value-comma_group"&&s.groups[0].groups.length>0&&s.groups[0].groups[0].type==="value-word"&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?r("open"):"",fi(",",n),s.close?r("close"):""];if(!s.open){let y=BC(t),g=iH(fi(",",n),2),x=fi(y?Lt:Kt,g);return Fr(y?[Lt,x]:Lr([sH(t)?_r:"",cl(x)]))}let o=t.map(({node:y,isLast:g,index:x})=>{let C=n[x];Xf(y)&&y.type==="value-comma_group"&&y.groups&&y.groups[0].type!=="value-paren_group"&&y.groups[2]?.type==="value-paren_group"&&Fo(C)===dp&&Fo(C.contents)===hp&&Fo(C.contents.contents)===fp&&(C=Lr(Uo(C)));let b=[C,g?tH(t,e):","];if(!g&&y.type==="value-comma_group"&&yp(y.groups)){let E=nn(0,y.groups,-1);!E.source&&E.close&&(E=E.close),E.source&&IC(e.originalText,mr(E))&&b.push(Lt)}return b},"groups"),l=Nz(s,i),c=Oz(s,i),f=vC(t,e),h=c||f&&!l,d=c||l,D=Lr([s.open?r("open"):"",Fr([_r,fi(Kt,o)]),_r,s.close?r("close"):""],{shouldBreak:h});return d?Uo(D):D}function BC(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(r=>r.type==="value-comma_group"),(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function sH(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&e.type==="css-decl")}function iH(t,e){let r=[];for(let s=0;s<t.length;s+=e)r.push(t.slice(s,s+e));return r}function nH(t,e,r){let s=[];return t.each(()=>{let{node:i,previous:n}=t;if(n?.type==="css-comment"&&n.text.trim()==="prettier-ignore"?s.push(e.originalText.slice(fr(i),mr(i))):s.push(r()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!kC(e.originalText,fr(o),{backwards:!0})&&!Sh(i)||o.type==="css-atrule"&&o.name==="else"&&i.type!=="css-comment"?s.push(" "):(s.push(e.__isHTMLStyleAttribute?Kt:Lt),IC(e.originalText,mr(i))&&!Sh(i)&&s.push(Lt))},"nodes"),s}var eo=nH;function aH(t,e,r){let{node:s}=t;switch(s.type){case"css-root":{let i=eo(t,e,r),n=s.raws.after.trim();return n.startsWith(";")&&(n=n.slice(1).trim()),[s.frontMatter?[r("frontMatter"),Lt,s.nodes.length>0?Lt:""]:"",i,n?` ${n}`:"",s.nodes.length>0?Lt:""]}case"css-comment":{let i=s.inline||s.raws.inline,n=e.originalText.slice(fr(s),mr(s));return i?n.trimEnd():n}case"css-rule":return[r("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&Za(s.selector.value)?Kt:s.selector?" ":"","{",s.nodes.length>0?Fr([Lt,eo(t,e,r)]):"",Lt,"}",Cz(s)?";":""]:";"];case"css-decl":{let i=t.parent,{between:n}=s.raws,o=n.trim(),l=o===":",c=typeof s.value=="string"&&/^ *$/u.test(s.value),f=typeof s.value=="string"?s.value:r("value");return f=Iz(s)?dV(f):f,!l&&Za(o)&&!t.call(()=>BC(t),"value","group","group")&&(f=Fr([Lt,Uo(f)])),[vt(0,s.raws.before,/[\s;]/gu,""),i.type==="css-atrule"&&i.variable||gz(t)?s.prop:Qa(s.prop),o.startsWith("//")?" ":"",o,s.extend||c?"":" ",e.parser==="less"&&s.extend&&s.selector?["extend(",r("selector"),")"]:"",f,s.raws.important?s.raws.important.replace(/\s*!\s*important/iu," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/iu," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/iu," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",Fr([_r,eo(t,e,r)]),_r,"}"]:Pz(s)&&!i.raws.semicolon&&e.originalText[mr(s)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?lC(";"):";"]}case"css-atrule":{let i=t.parent,n=Pc(s)&&!i.raws.semicolon&&e.originalText[mr(s)-1]!==";";if(e.parser==="less"){if(s.mixin)return[r("selector"),s.important?" !important":"",n?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:r("params"),n?"":";"];if(s.variable)return["@",s.name,": ",s.value?r("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",Fr([s.nodes.length>0?_r:"",eo(t,e,r)]),_r,"}"]:"",n?"":";"]}let o=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",P2(s)||s.name.endsWith(":")||Pc(s)?s.name:Qa(s.name),s.params?[P2(s)?"":Pc(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(s.raws.afterName)?[Lt,Lt]:/^\s*\n/u.test(s.raws.afterName)?Lt:" ":" ",typeof s.params=="string"?s.params:r("params")]:"",s.selector?Fr([" ",r("selector")]):"",s.value?Lr([" ",r("value"),kh(s,e)?Bz(s)?" ":Kt:""]):s.name==="else"?" ":"",s.nodes?[kh(s,e)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&Za(s.selector.value)||!s.selector&&typeof s.params=="string"&&Za(s.params)?Kt:" ","{",Fr([s.nodes.length>0?_r:"",eo(t,e,r)]),_r,"}"]:n||o?"":";"]}case"media-query-list":{let i=[];return t.each(({node:n})=>{n.type==="media-query"&&n.value===""||i.push(r())},"nodes"),Lr(Fr(fi(Kt,i)))}case"media-query":return[fi(" ",t.map(r,"nodes")),t.isLast?"":","];case"media-type":return Bn(ts(s.value,e));case"media-feature-expression":return s.nodes?["(",...t.map(r,"nodes"),")"]:s.value;case"media-feature":return Qa(ts(vt(0,s.value,/ +/gu," "),e));case"media-colon":return[s.value," "];case"media-value":return Bn(ts(s.value,e));case"media-keyword":return ts(s.value,e);case"media-url":return ts(vt(0,vt(0,s.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return s.value;case"selector-root":return Lr([So(t,"custom-selector")?[t.findAncestor(i=>i.type==="css-atrule").customSelector,Kt]:"",fi([",",So(t,["extend","custom-selector","nest"])?Kt:Lt],t.map(r,"nodes"))]);case"selector-selector":{let i=s.nodes.length>2;return Lr((i?Fr:n=>n)(t.map(r,"nodes")))}case"selector-comment":return s.value;case"selector-string":return ts(s.value,e);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?s.value:Bn(Dz(t,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",Bn(ts(s.value,e))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?Hz(ts(s.value.trim(),e),e):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let o=t.parent;return[o.type==="selector-selector"&&o.nodes[0]===s?"":Kt,s.value,t.isLast?"":" "]}let i=s.value.trim().startsWith("(")?Kt:"",n=Bn(ts(s.value.trim(),e))||Kt;return[i,n]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[Qa(s.value),yp(s.nodes)?Lr(["(",Fr([_r,fi([",",Kt],t.map(r,"nodes"))]),_r,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(t.findAncestor(o=>o.type==="css-rule")?.isSCSSNesterProperty)return Bn(ts(Qa(s.value),e));let i=t.parent;if(i.raws?.selector){let o=fr(i),l=o+i.raws.selector.length;return e.originalText.slice(o,l).trim()}let n=t.grandparent;if(i.type==="value-paren_group"&&n?.type==="value-func"&&n.value==="selector"){let o=mr(i.open)+1,l=fr(i.close),c=e.originalText.slice(o,l).trim();return Za(c)?[Wf,c]:c}return s.value}case"value-value":case"value-root":return r("group");case"value-comment":return e.originalText.slice(fr(s),mr(s));case"value-comma_group":return Mz(t,e,r);case"value-paren_group":return rH(t,e,r);case"value-func":return[s.value,So(t,"supports")&&_z(s)?" ":"",r("group")];case"value-paren":return s.value;case"value-number":return[SC(s.value),FC(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||yz(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:i}=t;return Lr([s.value,typeof i?.value=="string"&&i.value.endsWith("\\")||hl(t,"url")?"":Kt])}case"value-string":return hC(s.raws.quote+s.value+s.raws.quote,e);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;default:throw new SV(s,"PostCSS")}}var oH={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:aH,embed:LV,insertPragma:hz,massageAstNode:_V,getVisitorKeys:qV},uH=oH,NC=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],lH={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},pH={singleQuote:lH.singleQuote},_C=pH,Yf={};$A(Yf,{css:()=>qH,less:()=>VH,scss:()=>zH});var cH=Fa(cp()),hH=Fa(cq()),dH=Fa(gq());function fH(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var mH=fH;function yH(t){return t!==null&&typeof t=="object"}var gp=yH,DH=Fa(Eq());function gu(t,e,r){if(gp(t)){delete t.parent;for(let s in t)gu(t[s],e,r),s==="type"&&typeof t[s]=="string"&&!t[s].startsWith(e)&&(!r||!r.test(t[s]))&&(t[s]=e+t[s])}return t}function LC(t){if(gp(t)){delete t.parent;for(let e in t)LC(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var gH=DH.default.default;function xH(t){let e;try{e=gH(t)}catch{return{type:"selector-unknown",value:t}}return gu(LC(e),"media-")}var EH=xH,AH=Fa(Oq());function CH(t){if(/\/[/*]/u.test(vt(0,t,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new AH.default(r=>{e=r}).process(t)}catch{return{type:"selector-unknown",value:t}}return gu(e,"selector-")}var Hi=CH,bH=Fa(Zq()),TH=t=>{for(;t.parent;)t=t.parent;return t},OC=TH;function vH(t){return OC(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var FH=vH;function wH(t){if(yp(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var SH=wH;function PH(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var kH=PH;function IH(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var BH=IH,N2=t=>t.type==="paren"&&t.value===")";function NH(t,e){let{nodes:r}=t,s={open:null,close:null,groups:[],type:"paren_group"},i=[s],n=s,o={groups:[],type:"comma_group"},l=[o];for(let c=0;c<r.length;++c){let f=r[c];if(e.parser==="scss"&&f.type==="number"&&f.unit===".."&&f.value.endsWith(".")&&(f.value=f.value.slice(0,-1),f.unit="..."),f.type==="func"&&f.value==="selector"&&(f.group.groups=[Hi(OC(t).text.slice(f.group.open.sourceIndex+1,f.group.close.sourceIndex))]),f.type==="func"&&f.value==="url"){let h=f.group?.groups??[],d=[];for(let D=0;D<h.length;D++){let y=h[D];y.type==="comma_group"?d=[...d,...y.groups]:d.push(y)}(SH(d)||!kH(d)&&!BH(d[0],e))&&(f.group.groups=[FH(f)])}if(f.type==="paren"&&f.value==="(")s={open:f,close:null,groups:[],type:"paren_group"},i.push(s),o={groups:[],type:"comma_group"},l.push(o);else if(N2(f)){if(o.groups.length>0&&s.groups.push(o),s.close=f,l.length===1)throw new Error("Unbalanced parenthesis");l.pop(),o=nn(0,l,-1),o.groups.push(s),i.pop(),s=nn(0,i,-1)}else if(f.type==="comma"){if(c===r.length-3&&r[c+1].type==="comment"&&N2(r[c+2]))continue;s.groups.push(o),o={groups:[],type:"comma_group"},l[l.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&s.groups.push(o),n}function Nh(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Nh(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Nh)}:t}function $C(t,e){if(gp(t))for(let r in t)r!=="parent"&&($C(t[r],e),r==="nodes"&&(t.group=Nh(NH(t,e)),delete t[r]));return t}function _H(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let r=null;try{r=new bH.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}r.text=t;let s=$C(r,e);return gu(s,"value-",/^selector-/u)}var Vi=_H,LH=new Set(["import","use","forward"]);function OH(t){return LH.has(t)}var $H=OH;function MH(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var RH=MH,jH=/(\s*)(!default).*$/u,UH=/(\s*)(!global).*$/u;function MC(t,e){if(gp(t)){delete t.parent;for(let n in t)MC(t[n],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let n;if(t.value.trimEnd().endsWith("}")){let o=e.originalText.slice(0,t.source.start.offset),l="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),c=vt(0,o,/[^\n]/gu," ")+l,f;e.parser==="scss"?f=UC:e.parser==="less"?f=jC:f=RC;let h;try{h=f(c,{...e})}catch{}h?.nodes?.length===1&&h.nodes[0].type==="css-rule"&&(n=h.nodes[0].nodes)}return n?t.value={type:"css-rule",nodes:n}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let r="";typeof t.selector=="string"&&(r=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(r+=t.raws.between),t.raws.selector=r);let s="";typeof t.value=="string"&&(s=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=s.trim());let i="";if(typeof t.params=="string"&&(i=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(i=t.raws.afterName+i),t.raws.between&&t.raws.between.trim().length>0&&(i=i+t.raws.between),i=i.trim(),t.raws.params=i),r.trim().length>0)return r.startsWith("@")&&r.endsWith(":")?t:t.mixin?(t.selector=Vi(r,e),t):(RH(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Hi(r),t);if(s.trim().length>0){let n=s.match(jH);n&&(s=s.slice(0,n.index),t.scssDefault=!0,n[0].trim()!=="!default"&&(t.raws.scssDefault=n[0]));let o=s.match(UH);if(o&&(s=s.slice(0,o.index),t.scssGlobal=!0,o[0].trim()!=="!global"&&(t.raws.scssGlobal=o[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};t.value=Vi(s,e)}if(e.parser==="less"&&t.type==="css-decl"&&s.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Hi(s.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let n=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Hi(n),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let n=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=n,t.selector=Hi(t.params.slice(n.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let n=t.name.split(":");t.name=n[0];let o=n.slice(1).join(":");t.params&&(o+=t.params),t.value=Vi(o,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let n=t.params.slice(1);n&&(t.value=Vi(n,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&i.length>0){let{name:n}=t,o=t.name.toLowerCase();return n==="warn"||n==="error"?(t.params={type:"media-unknown",value:i},t):n==="extend"||n==="nest"?(t.selector=Hi(i),delete t.params,t):n==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(i)?t.params=Vi(i,e):(t.selector=Hi(i),delete t.params),t):$H(o)?(t.import=!0,delete t.filename,t.params=Vi(i,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(n)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=Vi(i,e),delete t.params,t):["media","custom-media"].includes(o)?i.includes("#{")?{type:"media-unknown",value:i}:(t.params=EH(i),t):(t.params=i,t)}}return t}function Qf(t,e,r){let{frontMatter:s,content:i}=Dp(e),n;try{n=t(i,{map:!1})}catch(o){let{name:l,reason:c,line:f,column:h}=o;throw typeof f!="number"?o:mH(`${l}: ${c}`,{loc:{start:{line:f,column:h}},cause:o})}return r.originalText=e,n=MC(gu(n,"css-"),r),AC(n,e),s&&(n.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),n}function RC(t,e={}){return Qf(cH.default.default,t,e)}function jC(t,e={}){return Qf(r=>hH.default.parse(WV(r)),t,e)}function UC(t,e={}){return Qf(dH.default,t,e)}var Zf={astFormat:"postcss",hasPragma:pz,hasIgnorePragma:cz,locStart:fr,locEnd:mr},qH={...Zf,parse:RC},VH={...Zf,parse:jC},zH={...Zf,parse:UC},qC={postcss:uH};const Xu=Object.freeze(Object.defineProperty({__proto__:null,default:ZA,languages:NC,options:_C,parsers:Yf,printers:qC},Symbol.toStringTag,{value:"Module"}));var Nc={exports:{}},_2;function HH(){return _2||(_2=1,(function(t,e){(function(r){function s(){var i=r();return i.default||i}t.exports=s()})(function(){var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o=(u,a)=>{for(var p in a)r(u,p,{get:a[p],enumerable:!0})},l=(u,a,p,m)=>{if(a&&typeof a=="object"||typeof a=="function")for(let A of i(a))!n.call(u,A)&&A!==p&&r(u,A,{get:()=>a[A],enumerable:!(m=s(a,A))||m.enumerable});return u},c=u=>l(r({},"__esModule",{value:!0}),u),f={};o(f,{parsers:()=>Av});var h={};o(h,{__babel_estree:()=>fv,__js_expression:()=>Gm,__ts_expression:()=>Xm,__vue_event_binding:()=>Jm,__vue_expression:()=>Gm,__vue_ts_event_binding:()=>Km,__vue_ts_expression:()=>Xm,babel:()=>Jm,"babel-flow":()=>Ym,"babel-ts":()=>Km});function d(u,a){if(u==null)return{};var p={};for(var m in u)if({}.hasOwnProperty.call(u,m)){if(a.indexOf(m)!==-1)continue;p[m]=u[m]}return p}var D=class{line;column;index;constructor(u,a,p){this.line=u,this.column=a,this.index=p}},y=class{start;end;filename;identifierName;constructor(u,a){this.start=u,this.end=a}};function g(u,a){let{line:p,column:m,index:A}=u;return new D(p,m+a,A+a)}var x="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",C={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:x},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:x}},b={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},E=u=>u.type==="UpdateExpression"?b.UpdateExpression[`${u.prefix}`]:b[u.type],v={AccessorIsGenerator:({kind:u})=>`A ${u}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:u})=>`Missing initializer in ${u} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:u})=>`\`${u}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:u,exportName:a})=>`A string literal cannot be used as an exported binding without \`from\`.
232
+ - Did you mean \`export { '${u}' as '${a}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:u})=>`'${u==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:u})=>`Unsyntactic ${u==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:u})=>`A string literal cannot be used as an imported binding.
233
+ - Did you mean \`import { "${u}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:u})=>`Expected number in radix ${u}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:u})=>`Escape sequence in keyword ${u}.`,InvalidIdentifier:({identifierName:u})=>`Invalid identifier ${u}.`,InvalidLhs:({ancestor:u})=>`Invalid left-hand side in ${E(u)}.`,InvalidLhsBinding:({ancestor:u})=>`Binding invalid left-hand side in ${E(u)}.`,InvalidLhsOptionalChaining:({ancestor:u})=>`Invalid optional chaining in the left-hand side of ${E(u)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:u})=>`Unexpected character '${u}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:u})=>`Private name #${u} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:u})=>`Label '${u}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:u})=>`This experimental syntax requires enabling the parser plugin: ${u.map(a=>JSON.stringify(a)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:u})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${u.map(a=>JSON.stringify(a)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:u})=>`Duplicate key "${u}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:u})=>`An export name cannot include a lone surrogate, found '\\u${u.toString(16)}'.`,ModuleExportUndefined:({localName:u})=>`Export '${u}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:u})=>`Private names are only allowed in property accesses (\`obj.#${u}\`) or in \`in\` expressions (\`#${u} in obj\`).`,PrivateNameRedeclaration:({identifierName:u})=>`Duplicate private name #${u}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:u})=>`Unexpected keyword '${u}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:u})=>`Unexpected reserved word '${u}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:u,unexpected:a})=>`Unexpected token${a?` '${a}'.`:""}${u?`, expected "${u}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:u,onlyValidPropertyName:a})=>`The only valid meta property for ${u} is ${u}.${a}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:u})=>`Identifier '${u}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},F={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:u})=>`Assigning to '${u}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:u})=>`Binding '${u}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},T={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:u})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(u)}\`.`},w=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),P=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:u})=>`Invalid topic token ${u}. In order to use ${u} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${u}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:u})=>`Hack-style pipe body cannot be an unparenthesized ${E({type:u})}; please wrap it in parentheses.`},{}),k=["message"];function N(u,a,p){Object.defineProperty(u,a,{enumerable:!1,configurable:!0,value:p})}function _({toMessage:u,code:a,reasonCode:p,syntaxPlugin:m}){let A=p==="MissingPlugin"||p==="MissingOneOfPlugins";return function S(B,O){let U=new SyntaxError;return U.code=a,U.reasonCode=p,U.loc=B,U.pos=B.index,U.syntaxPlugin=m,A&&(U.missingPlugin=O.missingPlugin),N(U,"clone",function(R={}){let{line:ne,column:De,index:_e}=R.loc??B;return S(new D(ne,De,_e),Object.assign({},O,R.details))}),N(U,"details",O),Object.defineProperty(U,"message",{configurable:!0,get(){let R=`${u(O)} (${B.line}:${B.column})`;return this.message=R,R},set(R){Object.defineProperty(this,"message",{value:R,writable:!0})}}),U}}function L(u,a){if(Array.isArray(u))return m=>L(m,u[0]);let p={};for(let m of Object.keys(u)){let A=u[m],S=typeof A=="string"?{message:()=>A}:typeof A=="function"?{message:A}:A,{message:B}=S,O=d(S,k),U=typeof B=="string"?()=>B:B;p[m]=_(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:m,toMessage:U},a?{syntaxPlugin:a}:{},O))}return p}var I=Object.assign({},L(C),L(v),L(F),L(T),L`pipelineOperator`(P));function M(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function K(u){let a=M();if(u==null)return a;if(u.annexB!=null&&u.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let p of Object.keys(a))u[p]!=null&&(a[p]=u[p]);if(a.startLine===1)u.startIndex==null&&a.startColumn>0?a.startIndex=a.startColumn:u.startColumn==null&&a.startIndex>0&&(a.startColumn=a.startIndex);else if(u.startColumn==null||u.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(a.sourceType==="commonjs"){if(u.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(u.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(u.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return a}var{defineProperty:$}=Object,z=(u,a)=>{u&&$(u,a,{enumerable:!1,value:u[a]})};function re(u){return z(u.loc.start,"index"),z(u.loc.end,"index"),u}var te=u=>class extends u{parse(){let a=re(super.parse());return this.optionFlags&256&&(a.tokens=a.tokens.map(re)),a}parseRegExpLiteral({pattern:a,flags:p}){let m=null;try{m=new RegExp(a,p)}catch{}let A=this.estreeParseLiteral(m);return A.regex={pattern:a,flags:p},A}parseBigIntLiteral(a){let p;try{p=BigInt(a)}catch{p=null}let m=this.estreeParseLiteral(p);return m.bigint=String(m.value||a),m}parseDecimalLiteral(a){let p=this.estreeParseLiteral(null);return p.decimal=String(p.value||a),p}estreeParseLiteral(a){return this.parseLiteral(a,"Literal")}parseStringLiteral(a){return this.estreeParseLiteral(a)}parseNumericLiteral(a){return this.estreeParseLiteral(a)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(a){return this.estreeParseLiteral(a)}estreeParseChainExpression(a,p){let m=this.startNodeAtNode(a);return m.expression=a,this.finishNodeAt(m,"ChainExpression",p)}directiveToStmt(a){let p=a.value;delete a.value,this.castNodeTo(p,"Literal"),p.raw=p.extra.raw,p.value=p.extra.expressionValue;let m=this.castNodeTo(a,"ExpressionStatement");return m.expression=p,m.directive=p.extra.rawValue,delete p.extra,m}fillOptionalPropertiesForTSESLint(a){}cloneEstreeStringLiteral(a){let{start:p,end:m,loc:A,range:S,raw:B,value:O}=a,U=Object.create(a.constructor.prototype);return U.type="Literal",U.start=p,U.end=m,U.loc=A,U.range=S,U.raw=B,U.value=O,U}initFunction(a,p){super.initFunction(a,p),a.expression=!1}checkDeclaration(a){a!=null&&this.isObjectProperty(a)?this.checkDeclaration(a.value):super.checkDeclaration(a)}getObjectOrClassMethodParams(a){return a.value.params}isValidDirective(a){return a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&!a.expression.extra?.parenthesized}parseBlockBody(a,p,m,A,S){super.parseBlockBody(a,p,m,A,S);let B=a.directives.map(O=>this.directiveToStmt(O));a.body=B.concat(a.body),delete a.directives}parsePrivateName(){let a=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(a)}convertPrivateNameToPrivateIdentifier(a){let p=super.getPrivateNameSV(a);return delete a.id,a.name=p,this.castNodeTo(a,"PrivateIdentifier")}isPrivateName(a){return a.type==="PrivateIdentifier"}getPrivateNameSV(a){return a.name}parseLiteral(a,p){let m=super.parseLiteral(a,p);return m.raw=m.extra.raw,delete m.extra,m}parseFunctionBody(a,p,m=!1){super.parseFunctionBody(a,p,m),a.expression=a.body.type!=="BlockStatement"}parseMethod(a,p,m,A,S,B,O=!1){let U=this.startNode();U.kind=a.kind,U=super.parseMethod(U,p,m,A,S,B,O),delete U.kind;let{typeParameters:R}=a;R&&(delete a.typeParameters,U.typeParameters=R,this.resetStartLocationFromNode(U,R));let ne=this.castNodeTo(U,this.hasPlugin("typescript")&&!U.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return a.value=ne,B==="ClassPrivateMethod"&&(a.computed=!1),this.hasPlugin("typescript")&&a.abstract?(delete a.abstract,this.finishNode(a,"TSAbstractMethodDefinition")):B==="ObjectMethod"?(a.kind==="method"&&(a.kind="init"),a.shorthand=!1,this.finishNode(a,"Property")):this.finishNode(a,"MethodDefinition")}nameIsConstructor(a){return a.type==="Literal"?a.value==="constructor":super.nameIsConstructor(a)}parseClassProperty(...a){let p=super.parseClassProperty(...a);return p.abstract&&this.hasPlugin("typescript")?(delete p.abstract,this.castNodeTo(p,"TSAbstractPropertyDefinition")):this.castNodeTo(p,"PropertyDefinition"),p}parseClassPrivateProperty(...a){let p=super.parseClassPrivateProperty(...a);return p.abstract&&this.hasPlugin("typescript")?this.castNodeTo(p,"TSAbstractPropertyDefinition"):this.castNodeTo(p,"PropertyDefinition"),p.computed=!1,p}parseClassAccessorProperty(a){let p=super.parseClassAccessorProperty(a);return p.abstract&&this.hasPlugin("typescript")?(delete p.abstract,this.castNodeTo(p,"TSAbstractAccessorProperty")):this.castNodeTo(p,"AccessorProperty"),p}parseObjectProperty(a,p,m,A){let S=super.parseObjectProperty(a,p,m,A);return S&&(S.kind="init",this.castNodeTo(S,"Property")),S}finishObjectProperty(a){return a.kind="init",this.finishNode(a,"Property")}isValidLVal(a,p,m,A){return a==="Property"?"value":super.isValidLVal(a,p,m,A)}isAssignable(a,p){return a!=null&&this.isObjectProperty(a)?this.isAssignable(a.value,p):super.isAssignable(a,p)}toAssignable(a,p=!1){if(a!=null&&this.isObjectProperty(a)){let{key:m,value:A}=a;this.isPrivateName(m)&&this.classScope.usePrivateName(this.getPrivateNameSV(m),m.loc.start),this.toAssignable(A,p)}else super.toAssignable(a,p)}toAssignableObjectExpressionProp(a,p,m){a.type==="Property"&&(a.kind==="get"||a.kind==="set")?this.raise(I.PatternHasAccessor,a.key):a.type==="Property"&&a.method?this.raise(I.PatternHasMethod,a.key):super.toAssignableObjectExpressionProp(a,p,m)}finishCallExpression(a,p){let m=super.finishCallExpression(a,p);return m.callee.type==="Import"?(this.castNodeTo(m,"ImportExpression"),m.source=m.arguments[0],m.options=m.arguments[1]??null,delete m.arguments,delete m.callee):m.type==="OptionalCallExpression"?this.castNodeTo(m,"CallExpression"):m.optional=!1,m}toReferencedArguments(a){a.type!=="ImportExpression"&&super.toReferencedArguments(a)}parseExport(a,p){let m=this.state.lastTokStartLoc,A=super.parseExport(a,p);switch(A.type){case"ExportAllDeclaration":A.exported=null;break;case"ExportNamedDeclaration":A.specifiers.length===1&&A.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(A,"ExportAllDeclaration"),A.exported=A.specifiers[0].exported,delete A.specifiers);case"ExportDefaultDeclaration":{let{declaration:S}=A;S?.type==="ClassDeclaration"&&S.decorators?.length>0&&S.start===A.start&&this.resetStartLocation(A,m)}break}return A}stopParseSubscript(a,p){let m=super.stopParseSubscript(a,p);return p.optionalChainMember?this.estreeParseChainExpression(m,a.loc.end):m}parseMember(a,p,m,A,S){let B=super.parseMember(a,p,m,A,S);return B.type==="OptionalMemberExpression"?this.castNodeTo(B,"MemberExpression"):B.optional=!1,B}isOptionalMemberExpression(a){return a.type==="ChainExpression"?a.expression.type==="MemberExpression":super.isOptionalMemberExpression(a)}hasPropertyAsPrivateName(a){return a.type==="ChainExpression"&&(a=a.expression),super.hasPropertyAsPrivateName(a)}isObjectProperty(a){return a.type==="Property"&&a.kind==="init"&&!a.method}isObjectMethod(a){return a.type==="Property"&&(a.method||a.kind==="get"||a.kind==="set")}castNodeTo(a,p){let m=super.castNodeTo(a,p);return this.fillOptionalPropertiesForTSESLint(m),m}cloneIdentifier(a){let p=super.cloneIdentifier(a);return this.fillOptionalPropertiesForTSESLint(p),p}cloneStringLiteral(a){return a.type==="Literal"?this.cloneEstreeStringLiteral(a):super.cloneStringLiteral(a)}finishNodeAt(a,p,m){return re(super.finishNodeAt(a,p,m))}finishNode(a,p){let m=super.finishNode(a,p);return this.fillOptionalPropertiesForTSESLint(m),m}resetStartLocation(a,p){super.resetStartLocation(a,p),re(a)}resetEndLocation(a,p=this.state.lastTokEndLoc){super.resetEndLocation(a,p),re(a)}},ue=class{constructor(u,a){this.token=u,this.preserveSpace=!!a}token;preserveSpace},X={brace:new ue("{"),j_oTag:new ue("<tag"),j_cTag:new ue("</tag"),j_expr:new ue("<tag>...</tag>",!0)},Q=!0,W=!0,Y=!0,ie=!0,de=!0,ae=!0,Z=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(u,a={}){this.label=u,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.rightAssociative=!!a.rightAssociative,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop!=null?a.binop:null}},G=new Map;function J(u,a={}){a.keyword=u;let p=le(u,a);return G.set(u,p),p}function ce(u,a){return le(u,{beforeExpr:Q,binop:a})}var ye=-1,Ie=[],ve=[],Ge=[],ut=[],mt=[],nt=[];function le(u,a={}){return++ye,ve.push(u),Ge.push(a.binop??-1),ut.push(a.beforeExpr??!1),mt.push(a.startsExpr??!1),nt.push(a.prefix??!1),Ie.push(new Z(u,a)),ye}function Ae(u,a={}){return++ye,G.set(u,ye),ve.push(u),Ge.push(a.binop??-1),ut.push(a.beforeExpr??!1),mt.push(a.startsExpr??!1),nt.push(a.prefix??!1),Ie.push(new Z("name",a)),ye}var At={bracketL:le("[",{beforeExpr:Q,startsExpr:W}),bracketHashL:le("#[",{beforeExpr:Q,startsExpr:W}),bracketBarL:le("[|",{beforeExpr:Q,startsExpr:W}),bracketR:le("]"),bracketBarR:le("|]"),braceL:le("{",{beforeExpr:Q,startsExpr:W}),braceBarL:le("{|",{beforeExpr:Q,startsExpr:W}),braceHashL:le("#{",{beforeExpr:Q,startsExpr:W}),braceR:le("}"),braceBarR:le("|}"),parenL:le("(",{beforeExpr:Q,startsExpr:W}),parenR:le(")"),comma:le(",",{beforeExpr:Q}),semi:le(";",{beforeExpr:Q}),colon:le(":",{beforeExpr:Q}),doubleColon:le("::",{beforeExpr:Q}),dot:le("."),question:le("?",{beforeExpr:Q}),questionDot:le("?."),arrow:le("=>",{beforeExpr:Q}),template:le("template"),ellipsis:le("...",{beforeExpr:Q}),backQuote:le("`",{startsExpr:W}),dollarBraceL:le("${",{beforeExpr:Q,startsExpr:W}),templateTail:le("...`",{startsExpr:W}),templateNonTail:le("...${",{beforeExpr:Q,startsExpr:W}),at:le("@"),hash:le("#",{startsExpr:W}),interpreterDirective:le("#!..."),eq:le("=",{beforeExpr:Q,isAssign:ie}),assign:le("_=",{beforeExpr:Q,isAssign:ie}),slashAssign:le("_=",{beforeExpr:Q,isAssign:ie}),xorAssign:le("_=",{beforeExpr:Q,isAssign:ie}),moduloAssign:le("_=",{beforeExpr:Q,isAssign:ie}),incDec:le("++/--",{prefix:de,postfix:ae,startsExpr:W}),bang:le("!",{beforeExpr:Q,prefix:de,startsExpr:W}),tilde:le("~",{beforeExpr:Q,prefix:de,startsExpr:W}),doubleCaret:le("^^",{startsExpr:W}),doubleAt:le("@@",{startsExpr:W}),pipeline:ce("|>",0),nullishCoalescing:ce("??",1),logicalOR:ce("||",1),logicalAND:ce("&&",2),bitwiseOR:ce("|",3),bitwiseXOR:ce("^",4),bitwiseAND:ce("&",5),equality:ce("==/!=/===/!==",6),lt:ce("</>/<=/>=",7),gt:ce("</>/<=/>=",7),relational:ce("</>/<=/>=",7),bitShift:ce("<</>>/>>>",8),bitShiftL:ce("<</>>/>>>",8),bitShiftR:ce("<</>>/>>>",8),plusMin:le("+/-",{beforeExpr:Q,binop:9,prefix:de,startsExpr:W}),modulo:le("%",{binop:10,startsExpr:W}),star:le("*",{binop:10}),slash:ce("/",10),exponent:le("**",{beforeExpr:Q,binop:11,rightAssociative:!0}),_in:J("in",{beforeExpr:Q,binop:7}),_instanceof:J("instanceof",{beforeExpr:Q,binop:7}),_break:J("break"),_case:J("case",{beforeExpr:Q}),_catch:J("catch"),_continue:J("continue"),_debugger:J("debugger"),_default:J("default",{beforeExpr:Q}),_else:J("else",{beforeExpr:Q}),_finally:J("finally"),_function:J("function",{startsExpr:W}),_if:J("if"),_return:J("return",{beforeExpr:Q}),_switch:J("switch"),_throw:J("throw",{beforeExpr:Q,prefix:de,startsExpr:W}),_try:J("try"),_var:J("var"),_const:J("const"),_with:J("with"),_new:J("new",{beforeExpr:Q,startsExpr:W}),_this:J("this",{startsExpr:W}),_super:J("super",{startsExpr:W}),_class:J("class",{startsExpr:W}),_extends:J("extends",{beforeExpr:Q}),_export:J("export"),_import:J("import",{startsExpr:W}),_null:J("null",{startsExpr:W}),_true:J("true",{startsExpr:W}),_false:J("false",{startsExpr:W}),_typeof:J("typeof",{beforeExpr:Q,prefix:de,startsExpr:W}),_void:J("void",{beforeExpr:Q,prefix:de,startsExpr:W}),_delete:J("delete",{beforeExpr:Q,prefix:de,startsExpr:W}),_do:J("do",{isLoop:Y,beforeExpr:Q}),_for:J("for",{isLoop:Y}),_while:J("while",{isLoop:Y}),_as:Ae("as",{startsExpr:W}),_assert:Ae("assert",{startsExpr:W}),_async:Ae("async",{startsExpr:W}),_await:Ae("await",{startsExpr:W}),_defer:Ae("defer",{startsExpr:W}),_from:Ae("from",{startsExpr:W}),_get:Ae("get",{startsExpr:W}),_let:Ae("let",{startsExpr:W}),_meta:Ae("meta",{startsExpr:W}),_of:Ae("of",{startsExpr:W}),_sent:Ae("sent",{startsExpr:W}),_set:Ae("set",{startsExpr:W}),_source:Ae("source",{startsExpr:W}),_static:Ae("static",{startsExpr:W}),_using:Ae("using",{startsExpr:W}),_yield:Ae("yield",{startsExpr:W}),_asserts:Ae("asserts",{startsExpr:W}),_checks:Ae("checks",{startsExpr:W}),_exports:Ae("exports",{startsExpr:W}),_global:Ae("global",{startsExpr:W}),_implements:Ae("implements",{startsExpr:W}),_intrinsic:Ae("intrinsic",{startsExpr:W}),_infer:Ae("infer",{startsExpr:W}),_is:Ae("is",{startsExpr:W}),_mixins:Ae("mixins",{startsExpr:W}),_proto:Ae("proto",{startsExpr:W}),_require:Ae("require",{startsExpr:W}),_satisfies:Ae("satisfies",{startsExpr:W}),_keyof:Ae("keyof",{startsExpr:W}),_readonly:Ae("readonly",{startsExpr:W}),_unique:Ae("unique",{startsExpr:W}),_abstract:Ae("abstract",{startsExpr:W}),_declare:Ae("declare",{startsExpr:W}),_enum:Ae("enum",{startsExpr:W}),_module:Ae("module",{startsExpr:W}),_namespace:Ae("namespace",{startsExpr:W}),_interface:Ae("interface",{startsExpr:W}),_type:Ae("type",{startsExpr:W}),_opaque:Ae("opaque",{startsExpr:W}),name:le("name",{startsExpr:W}),placeholder:le("%%",{startsExpr:W}),string:le("string",{startsExpr:W}),num:le("num",{startsExpr:W}),bigint:le("bigint",{startsExpr:W}),decimal:le("decimal",{startsExpr:W}),regexp:le("regexp",{startsExpr:W}),privateName:le("#name",{startsExpr:W}),eof:le("eof"),jsxName:le("jsxName"),jsxText:le("jsxText",{beforeExpr:Q}),jsxTagStart:le("jsxTagStart",{startsExpr:W}),jsxTagEnd:le("jsxTagEnd")};function Me(u){return u>=93&&u<=133}function Pt(u){return u<=92}function at(u){return u>=58&&u<=133}function xt(u){return u>=58&&u<=137}function Zt(u){return ut[u]}function lt(u){return mt[u]}function st(u){return u>=29&&u<=33}function Hr(u){return u>=129&&u<=131}function kt(u){return u>=90&&u<=92}function yt(u){return u>=58&&u<=92}function Nr(u){return u>=39&&u<=59}function An(u){return u===34}function Pa(u){return nt[u]}function vs(u){return u>=121&&u<=123}function _i(u){return u>=124&&u<=130}function Jt(u){return ve[u]}function ar(u){return Ge[u]}function xu(u){return u===57}function Fs(u){return u>=24&&u<=25}function Li(u){return Ie[u]}var or="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Ct="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Oi=new RegExp("["+or+"]"),Ap=new RegExp("["+or+Ct+"]");or=Ct=null;var ka=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Eu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Cn(u,a){let p=65536;for(let m=0,A=a.length;m<A;m+=2){if(p+=a[m],p>u)return!1;if(p+=a[m+1],p>=u)return!0}return!1}function ur(u){return u<65?u===36:u<=90?!0:u<97?u===95:u<=122?!0:u<=65535?u>=170&&Oi.test(String.fromCharCode(u)):Cn(u,ka)}function $i(u){return u<48?u===36:u<58?!0:u<65?!1:u<=90?!0:u<97?u===95:u<=122?!0:u<=65535?u>=170&&Ap.test(String.fromCharCode(u)):Cn(u,ka)||Cn(u,Eu)}var Cp={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},QC=new Set(Cp.keyword),ZC=new Set(Cp.strict),eb=new Set(Cp.strictBind);function nm(u,a){return a&&u==="await"||u==="enum"}function am(u,a){return nm(u,a)||ZC.has(u)}function om(u){return eb.has(u)}function um(u,a){return am(u,a)||om(u)}function tb(u){return QC.has(u)}function rb(u,a,p){return u===64&&a===64&&ur(p)}var sb=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function ib(u){return sb.has(u)}var bp=class{flags=0;names=new Map;firstLexicalName="";constructor(u){this.flags=u}},Tp=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(u,a){this.parser=u,this.inModule=a}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let u=this.currentThisScopeFlags();return(u&64)>0&&(u&2)===0}get inStaticBlock(){for(let u=this.scopeStack.length-1;;u--){let{flags:a}=this.scopeStack[u];if(a&128)return!0;if(a&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(u){return new bp(u)}enter(u){this.scopeStack.push(this.createScope(u))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(u){return!!(u.flags&130||!this.parser.inModule&&u.flags&1)}declareName(u,a,p){let m=this.currentScope();if(a&8||a&16){this.checkRedeclarationInScope(m,u,a,p);let A=m.names.get(u)||0;a&16?A=A|4:(m.firstLexicalName||(m.firstLexicalName=u),A=A|2),m.names.set(u,A),a&8&&this.maybeExportDefined(m,u)}else if(a&4)for(let A=this.scopeStack.length-1;A>=0&&(m=this.scopeStack[A],this.checkRedeclarationInScope(m,u,a,p),m.names.set(u,(m.names.get(u)||0)|1),this.maybeExportDefined(m,u),!(m.flags&1667));--A);this.parser.inModule&&m.flags&1&&this.undefinedExports.delete(u)}maybeExportDefined(u,a){this.parser.inModule&&u.flags&1&&this.undefinedExports.delete(a)}checkRedeclarationInScope(u,a,p,m){this.isRedeclaredInScope(u,a,p)&&this.parser.raise(I.VarRedeclaration,m,{identifierName:a})}isRedeclaredInScope(u,a,p){if(!(p&1))return!1;if(p&8)return u.names.has(a);let m=u.names.get(a)||0;return p&16?(m&2)>0||!this.treatFunctionsAsVarInScope(u)&&(m&1)>0:(m&2)>0&&!(u.flags&8&&u.firstLexicalName===a)||!this.treatFunctionsAsVarInScope(u)&&(m&4)>0}checkLocalExport(u){let{name:a}=u;this.scopeStack[0].names.has(a)||this.undefinedExports.set(a,u.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let u=this.scopeStack.length-1;;u--){let{flags:a}=this.scopeStack[u];if(a&1667)return a}}currentThisScopeFlags(){for(let u=this.scopeStack.length-1;;u--){let{flags:a}=this.scopeStack[u];if(a&1731&&!(a&4))return a}}},nb=class extends bp{declareFunctions=new Set},ab=class extends Tp{createScope(u){return new nb(u)}declareName(u,a,p){let m=this.currentScope();if(a&2048){this.checkRedeclarationInScope(m,u,a,p),this.maybeExportDefined(m,u),m.declareFunctions.add(u);return}super.declareName(u,a,p)}isRedeclaredInScope(u,a,p){if(super.isRedeclaredInScope(u,a,p))return!0;if(p&2048&&!u.declareFunctions.has(a)){let m=u.names.get(a);return(m&4)>0||(m&2)>0}return!1}checkLocalExport(u){this.scopeStack[0].declareFunctions.has(u.name)||super.checkLocalExport(u)}},ob=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ne=L`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:u})=>`Cannot overwrite reserved type ${u}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:u,enumName:a})=>`Boolean enum members need to be initialized. Use either \`${u} = true,\` or \`${u} = false,\` in enum \`${a}\`.`,EnumDuplicateMemberName:({memberName:u,enumName:a})=>`Enum member names need to be unique, but the name \`${u}\` has already been used before in enum \`${a}\`.`,EnumInconsistentMemberValues:({enumName:u})=>`Enum \`${u}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:u,enumName:a})=>`Enum type \`${u}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:u})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${u}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:u,memberName:a,explicitType:p})=>`Enum \`${u}\` has type \`${p}\`, so the initializer of \`${a}\` needs to be a ${p} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:u,memberName:a})=>`Symbol enum members cannot be initialized. Use \`${a},\` in enum \`${u}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:u,memberName:a})=>`The enum member initializer for \`${a}\` needs to be a literal (either a boolean, number, or string) in enum \`${u}\`.`,EnumInvalidMemberName:({enumName:u,memberName:a,suggestion:p})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${a}\`, consider using \`${p}\`, in enum \`${u}\`.`,EnumNumberMemberNotInitialized:({enumName:u,memberName:a})=>`Number enum members need to be initialized, e.g. \`${a} = 1\` in enum \`${u}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:u})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${u}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:u})=>`Unexpected reserved type ${u}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:u,suggestion:a})=>`\`declare export ${u}\` is not supported. Use \`${a}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ub(u){return u.type==="DeclareExportAllDeclaration"||u.type==="DeclareExportDeclaration"&&(!u.declaration||u.declaration.type!=="TypeAlias"&&u.declaration.type!=="InterfaceDeclaration")}function lm(u){return u.importKind==="type"||u.importKind==="typeof"}var lb={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function pb(u,a){let p=[],m=[];for(let A=0;A<u.length;A++)(a(u[A],A,u)?p:m).push(u[A]);return[p,m]}var cb=/\*?\s*@((?:no)?flow)\b/,hb=u=>class extends u{flowPragma=void 0;getScopeHandler(){return ab}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(a,p){a!==134&&a!==13&&a!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(a,p)}addComment(a){if(this.flowPragma===void 0){let p=cb.exec(a.value);if(p)if(p[1]==="flow")this.flowPragma="flow";else if(p[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(a)}flowParseTypeInitialiser(a){let p=this.state.inType;this.state.inType=!0,this.expect(a||14);let m=this.flowParseType();return this.state.inType=p,m}flowParsePredicate(){let a=this.startNode(),p=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>p.index+1&&this.raise(Ne.UnexpectedSpaceBetweenModuloChecks,p),this.eat(10)?(a.value=super.parseExpression(),this.expect(11),this.finishNode(a,"DeclaredPredicate")):this.finishNode(a,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let a=this.state.inType;this.state.inType=!0,this.expect(14);let p=null,m=null;return this.match(54)?(this.state.inType=a,m=this.flowParsePredicate()):(p=this.flowParseType(),this.state.inType=a,this.match(54)&&(m=this.flowParsePredicate())),[p,m]}flowParseDeclareClass(a){return this.next(),this.flowParseInterfaceish(a,!0),this.finishNode(a,"DeclareClass")}flowParseDeclareFunction(a){this.next();let p=a.id=this.parseIdentifier(),m=this.startNode(),A=this.startNode();this.match(47)?m.typeParameters=this.flowParseTypeParameterDeclaration():m.typeParameters=null,this.expect(10);let S=this.flowParseFunctionTypeParams();return m.params=S.params,m.rest=S.rest,m.this=S._this,this.expect(11),[m.returnType,a.predicate]=this.flowParseTypeAndPredicateInitialiser(),A.typeAnnotation=this.finishNode(m,"FunctionTypeAnnotation"),p.typeAnnotation=this.finishNode(A,"TypeAnnotation"),this.resetEndLocation(p),this.semicolon(),this.scope.declareName(a.id.name,2048,a.id.loc.start),this.finishNode(a,"DeclareFunction")}flowParseDeclare(a,p){if(this.match(80))return this.flowParseDeclareClass(a);if(this.match(68))return this.flowParseDeclareFunction(a);if(this.match(74))return this.flowParseDeclareVariable(a);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(a):(p&&this.raise(Ne.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(a));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(a);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(a);if(this.isContextual(129))return this.flowParseDeclareInterface(a);if(this.match(82))return this.flowParseDeclareExportDeclaration(a,p);throw this.unexpected()}flowParseDeclareVariable(a){return this.next(),a.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(a.id.name,5,a.id.loc.start),this.semicolon(),this.finishNode(a,"DeclareVariable")}flowParseDeclareModule(a){this.scope.enter(0),this.match(134)?a.id=super.parseExprAtom():a.id=this.parseIdentifier();let p=a.body=this.startNode(),m=p.body=[];for(this.expect(5);!this.match(8);){let B=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ne.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),m.push(super.parseImport(B))):(this.expectContextual(125,Ne.UnsupportedStatementInDeclareModule),m.push(this.flowParseDeclare(B,!0)))}this.scope.exit(),this.expect(8),this.finishNode(p,"BlockStatement");let A=null,S=!1;return m.forEach(B=>{ub(B)?(A==="CommonJS"&&this.raise(Ne.AmbiguousDeclareModuleKind,B),A="ES"):B.type==="DeclareModuleExports"&&(S&&this.raise(Ne.DuplicateDeclareModuleExports,B),A==="ES"&&this.raise(Ne.AmbiguousDeclareModuleKind,B),A="CommonJS",S=!0)}),a.kind=A||"CommonJS",this.finishNode(a,"DeclareModule")}flowParseDeclareExportDeclaration(a,p){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?a.declaration=this.flowParseDeclare(this.startNode()):(a.declaration=this.flowParseType(),this.semicolon()),a.default=!0,this.finishNode(a,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!p){let m=this.state.value;throw this.raise(Ne.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:m,suggestion:lb[m]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return a.declaration=this.flowParseDeclare(this.startNode()),a.default=!1,this.finishNode(a,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return a=this.parseExport(a,null),a.type==="ExportNamedDeclaration"?(a.default=!1,delete a.exportKind,this.castNodeTo(a,"DeclareExportDeclaration")):this.castNodeTo(a,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(a){return this.next(),this.expectContextual(111),a.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(a,"DeclareModuleExports")}flowParseDeclareTypeAlias(a){this.next();let p=this.flowParseTypeAlias(a);return this.castNodeTo(p,"DeclareTypeAlias"),p}flowParseDeclareOpaqueType(a){this.next();let p=this.flowParseOpaqueType(a,!0);return this.castNodeTo(p,"DeclareOpaqueType"),p}flowParseDeclareInterface(a){return this.next(),this.flowParseInterfaceish(a,!1),this.finishNode(a,"DeclareInterface")}flowParseInterfaceish(a,p){if(a.id=this.flowParseRestrictedIdentifier(!p,!0),this.scope.declareName(a.id.name,p?17:8201,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.extends=[],this.eat(81))do a.extends.push(this.flowParseInterfaceExtends());while(!p&&this.eat(12));if(p){if(a.implements=[],a.mixins=[],this.eatContextual(117))do a.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do a.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}a.body=this.flowParseObjectType({allowStatic:p,allowExact:!1,allowSpread:!1,allowProto:p,allowInexact:!1})}flowParseInterfaceExtends(){let a=this.startNode();return a.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,this.finishNode(a,"InterfaceExtends")}flowParseInterface(a){return this.flowParseInterfaceish(a,!1),this.finishNode(a,"InterfaceDeclaration")}checkNotUnderscore(a){a==="_"&&this.raise(Ne.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(a,p,m){ob.has(a)&&this.raise(m?Ne.AssignReservedType:Ne.UnexpectedReservedType,p,{reservedType:a})}flowParseRestrictedIdentifier(a,p){return this.checkReservedType(this.state.value,this.state.startLoc,p),this.parseIdentifier(a)}flowParseTypeAlias(a){return a.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(a.id.name,8201,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(a,"TypeAlias")}flowParseOpaqueType(a,p){return this.expectContextual(130),a.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(a.id.name,8201,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.supertype=null,this.match(14)&&(a.supertype=this.flowParseTypeInitialiser(14)),a.impltype=null,p||(a.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(a,"OpaqueType")}flowParseTypeParameter(a=!1){let p=this.state.startLoc,m=this.startNode(),A=this.flowParseVariance(),S=this.flowParseTypeAnnotatableIdentifier();return m.name=S.name,m.variance=A,m.bound=S.typeAnnotation,this.match(29)?(this.eat(29),m.default=this.flowParseType()):a&&this.raise(Ne.MissingTypeParamDefault,p),this.finishNode(m,"TypeParameter")}flowParseTypeParameterDeclaration(){let a=this.state.inType,p=this.startNode();p.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let m=!1;do{let A=this.flowParseTypeParameter(m);p.params.push(A),A.default&&(m=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=a,this.finishNode(p,"TypeParameterDeclaration")}flowInTopLevelContext(a){if(this.curContext()!==X.brace){let p=this.state.context;this.state.context=[p[0]];try{return a()}finally{this.state.context=p}}else return a()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let a=this.startNode(),p=this.state.inType;return this.state.inType=!0,a.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let m=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)a.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=m}),this.state.inType=p,!this.state.inType&&this.curContext()===X.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(a,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let a=this.startNode(),p=this.state.inType;for(a.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)a.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=p,this.finishNode(a,"TypeParameterInstantiation")}flowParseInterfaceType(){let a=this.startNode();if(this.expectContextual(129),a.extends=[],this.eat(81))do a.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return a.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(a,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(a,p,m){return a.static=p,this.lookahead().type===14?(a.id=this.flowParseObjectPropertyKey(),a.key=this.flowParseTypeInitialiser()):(a.id=null,a.key=this.flowParseType()),this.expect(3),a.value=this.flowParseTypeInitialiser(),a.variance=m,this.finishNode(a,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(a,p){return a.static=p,a.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(a.method=!0,a.optional=!1,a.value=this.flowParseObjectTypeMethodish(this.startNodeAt(a.loc.start))):(a.method=!1,this.eat(17)&&(a.optional=!0),a.value=this.flowParseTypeInitialiser()),this.finishNode(a,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(a){for(a.params=[],a.rest=null,a.typeParameters=null,a.this=null,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(a.this=this.flowParseFunctionTypeParam(!0),a.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)a.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(a.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),a.returnType=this.flowParseTypeInitialiser(),this.finishNode(a,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(a,p){let m=this.startNode();return a.static=p,a.value=this.flowParseObjectTypeMethodish(m),this.finishNode(a,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:a,allowExact:p,allowSpread:m,allowProto:A,allowInexact:S}){let B=this.state.inType;this.state.inType=!0;let O=this.startNode();O.callProperties=[],O.properties=[],O.indexers=[],O.internalSlots=[];let U,R,ne=!1;for(p&&this.match(6)?(this.expect(6),U=9,R=!0):(this.expect(5),U=8,R=!1),O.exact=R;!this.match(U);){let _e=!1,Re=null,It=null,qt=this.startNode();if(A&&this.isContextual(118)){let Tt=this.lookahead();Tt.type!==14&&Tt.type!==17&&(this.next(),Re=this.state.startLoc,a=!1)}if(a&&this.isContextual(106)){let Tt=this.lookahead();Tt.type!==14&&Tt.type!==17&&(this.next(),_e=!0)}let bt=this.flowParseVariance();if(this.eat(0))Re!=null&&this.unexpected(Re),this.eat(0)?(bt&&this.unexpected(bt.loc.start),O.internalSlots.push(this.flowParseObjectTypeInternalSlot(qt,_e))):O.indexers.push(this.flowParseObjectTypeIndexer(qt,_e,bt));else if(this.match(10)||this.match(47))Re!=null&&this.unexpected(Re),bt&&this.unexpected(bt.loc.start),O.callProperties.push(this.flowParseObjectTypeCallProperty(qt,_e));else{let Tt="init";if(this.isContextual(99)||this.isContextual(104)){let Up=this.lookahead();xt(Up.type)&&(Tt=this.state.value,this.next())}let Tr=this.flowParseObjectTypeProperty(qt,_e,Re,bt,Tt,m,S??!R);Tr===null?(ne=!0,It=this.state.lastTokStartLoc):O.properties.push(Tr)}this.flowObjectTypeSemicolon(),It&&!this.match(8)&&!this.match(9)&&this.raise(Ne.UnexpectedExplicitInexactInObject,It)}this.expect(U),m&&(O.inexact=ne);let De=this.finishNode(O,"ObjectTypeAnnotation");return this.state.inType=B,De}flowParseObjectTypeProperty(a,p,m,A,S,B,O){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(B?O||this.raise(Ne.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ne.InexactInsideNonObject,this.state.lastTokStartLoc),A&&this.raise(Ne.InexactVariance,A),null):(B||this.raise(Ne.UnexpectedSpreadType,this.state.lastTokStartLoc),m!=null&&this.unexpected(m),A&&this.raise(Ne.SpreadVariance,A),a.argument=this.flowParseType(),this.finishNode(a,"ObjectTypeSpreadProperty"));{a.key=this.flowParseObjectPropertyKey(),a.static=p,a.proto=m!=null,a.kind=S;let U=!1;return this.match(47)||this.match(10)?(a.method=!0,m!=null&&this.unexpected(m),A&&this.unexpected(A.loc.start),a.value=this.flowParseObjectTypeMethodish(this.startNodeAt(a.loc.start)),(S==="get"||S==="set")&&this.flowCheckGetterSetterParams(a),!B&&a.key.name==="constructor"&&a.value.this&&this.raise(Ne.ThisParamBannedInConstructor,a.value.this)):(S!=="init"&&this.unexpected(),a.method=!1,this.eat(17)&&(U=!0),a.value=this.flowParseTypeInitialiser(),a.variance=A),a.optional=U,this.finishNode(a,"ObjectTypeProperty")}}flowCheckGetterSetterParams(a){let p=a.kind==="get"?0:1,m=a.value.params.length+(a.value.rest?1:0);a.value.this&&this.raise(a.kind==="get"?Ne.GetterMayNotHaveThisParam:Ne.SetterMayNotHaveThisParam,a.value.this),m!==p&&this.raise(a.kind==="get"?I.BadGetterArity:I.BadSetterArity,a),a.kind==="set"&&a.value.rest&&this.raise(I.BadSetterRestParameter,a)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(a,p){a??(a=this.state.startLoc);let m=p||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let A=this.startNodeAt(a);A.qualification=m,A.id=this.flowParseRestrictedIdentifier(!0),m=this.finishNode(A,"QualifiedTypeIdentifier")}return m}flowParseGenericType(a,p){let m=this.startNodeAt(a);return m.typeParameters=null,m.id=this.flowParseQualifiedTypeIdentifier(a,p),this.match(47)&&(m.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(m,"GenericTypeAnnotation")}flowParseTypeofType(){let a=this.startNode();return this.expect(87),a.argument=this.flowParsePrimaryType(),this.finishNode(a,"TypeofTypeAnnotation")}flowParseTupleType(){let a=this.startNode();for(a.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(a.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(a,"TupleTypeAnnotation")}flowParseFunctionTypeParam(a){let p=null,m=!1,A=null,S=this.startNode(),B=this.lookahead(),O=this.state.type===78;return B.type===14||B.type===17?(O&&!a&&this.raise(Ne.ThisParamMustBeFirst,S),p=this.parseIdentifier(O),this.eat(17)&&(m=!0,O&&this.raise(Ne.ThisParamMayNotBeOptional,S)),A=this.flowParseTypeInitialiser()):A=this.flowParseType(),S.name=p,S.optional=m,S.typeAnnotation=A,this.finishNode(S,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(a){let p=this.startNodeAt(a.loc.start);return p.name=null,p.optional=!1,p.typeAnnotation=a,this.finishNode(p,"FunctionTypeParam")}flowParseFunctionTypeParams(a=[]){let p=null,m=null;for(this.match(78)&&(m=this.flowParseFunctionTypeParam(!0),m.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)a.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(p=this.flowParseFunctionTypeParam(!1)),{params:a,rest:p,_this:m}}flowIdentToTypeAnnotation(a,p,m){switch(m.name){case"any":return this.finishNode(p,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(p,"BooleanTypeAnnotation");case"mixed":return this.finishNode(p,"MixedTypeAnnotation");case"empty":return this.finishNode(p,"EmptyTypeAnnotation");case"number":return this.finishNode(p,"NumberTypeAnnotation");case"string":return this.finishNode(p,"StringTypeAnnotation");case"symbol":return this.finishNode(p,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(m.name),this.flowParseGenericType(a,m)}}flowParsePrimaryType(){let a=this.state.startLoc,p=this.startNode(),m,A,S=!1,B=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,A=this.flowParseTupleType(),this.state.noAnonFunctionType=B,A;case 47:{let O=this.startNode();return O.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),m=this.flowParseFunctionTypeParams(),O.params=m.params,O.rest=m.rest,O.this=m._this,this.expect(11),this.expect(19),O.returnType=this.flowParseType(),this.finishNode(O,"FunctionTypeAnnotation")}case 10:{let O=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Me(this.state.type)||this.match(78)){let U=this.lookahead().type;S=U!==17&&U!==14}else S=!0;if(S){if(this.state.noAnonFunctionType=!1,A=this.flowParseType(),this.state.noAnonFunctionType=B,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),A;this.eat(12)}return A?m=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(A)]):m=this.flowParseFunctionTypeParams(),O.params=m.params,O.rest=m.rest,O.this=m._this,this.expect(11),this.expect(19),O.returnType=this.flowParseType(),O.typeParameters=null,this.finishNode(O,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return p.value=this.match(85),this.next(),this.finishNode(p,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",p);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",p);throw this.raise(Ne.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(p,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(p,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(p,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(p,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(yt(this.state.type)){let O=Jt(this.state.type);return this.next(),super.createIdentifier(p,O)}else if(Me(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(a,p,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let a=this.state.startLoc,p=this.flowParsePrimaryType(),m=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let A=this.startNodeAt(a),S=this.eat(18);m=m||S,this.expect(0),!S&&this.match(3)?(A.elementType=p,this.next(),p=this.finishNode(A,"ArrayTypeAnnotation")):(A.objectType=p,A.indexType=this.flowParseType(),this.expect(3),m?(A.optional=S,p=this.finishNode(A,"OptionalIndexedAccessType")):p=this.finishNode(A,"IndexedAccessType"))}return p}flowParsePrefixType(){let a=this.startNode();return this.eat(17)?(a.typeAnnotation=this.flowParsePrefixType(),this.finishNode(a,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let a=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let p=this.startNodeAt(a.loc.start);return p.params=[this.reinterpretTypeAsFunctionTypeParam(a)],p.rest=null,p.this=null,p.returnType=this.flowParseType(),p.typeParameters=null,this.finishNode(p,"FunctionTypeAnnotation")}return a}flowParseIntersectionType(){let a=this.startNode();this.eat(45);let p=this.flowParseAnonFunctionWithoutParens();for(a.types=[p];this.eat(45);)a.types.push(this.flowParseAnonFunctionWithoutParens());return a.types.length===1?p:this.finishNode(a,"IntersectionTypeAnnotation")}flowParseUnionType(){let a=this.startNode();this.eat(43);let p=this.flowParseIntersectionType();for(a.types=[p];this.eat(43);)a.types.push(this.flowParseIntersectionType());return a.types.length===1?p:this.finishNode(a,"UnionTypeAnnotation")}flowParseType(){let a=this.state.inType;this.state.inType=!0;let p=this.flowParseUnionType();return this.state.inType=a,p}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let a=this.state.startLoc,p=this.parseIdentifier();return this.flowParseGenericType(a,p)}else return this.flowParseType()}flowParseTypeAnnotation(){let a=this.startNode();return a.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(a,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(a){let p=a?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(p.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(p)),p}typeCastToParameter(a){return a.expression.typeAnnotation=a.typeAnnotation,this.resetEndLocation(a.expression,a.typeAnnotation.loc.end),a.expression}flowParseVariance(){let a=null;return this.match(53)?(a=this.startNode(),this.state.value==="+"?a.kind="plus":a.kind="minus",this.next(),this.finishNode(a,"Variance")):a}parseFunctionBody(a,p,m=!1){if(p){this.forwardNoArrowParamsConversionAt(a,()=>super.parseFunctionBody(a,!0,m));return}super.parseFunctionBody(a,!1,m)}parseFunctionBodyAndFinish(a,p,m=!1){if(this.match(14)){let A=this.startNode();[A.typeAnnotation,a.predicate]=this.flowParseTypeAndPredicateInitialiser(),a.returnType=A.typeAnnotation?this.finishNode(A,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(a,p,m)}parseStatementLike(a){if(this.state.strict&&this.isContextual(129)){let m=this.lookahead();if(at(m.type)){let A=this.startNode();return this.next(),this.flowParseInterface(A)}}else if(this.isContextual(126)){let m=this.startNode();return this.next(),this.flowParseEnumDeclaration(m)}let p=super.parseStatementLike(a);return this.flowPragma===void 0&&!this.isValidDirective(p)&&(this.flowPragma=null),p}parseExpressionStatement(a,p,m){if(p.type==="Identifier"){if(p.name==="declare"){if(this.match(80)||Me(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(a)}else if(Me(this.state.type)){if(p.name==="interface")return this.flowParseInterface(a);if(p.name==="type")return this.flowParseTypeAlias(a);if(p.name==="opaque")return this.flowParseOpaqueType(a,!1)}}return super.parseExpressionStatement(a,p,m)}shouldParseExportDeclaration(){let{type:a}=this.state;return a===126||Hr(a)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:a}=this.state;return a===126||Hr(a)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}return super.parseExportDefaultExpression()}parseConditional(a,p,m){if(!this.match(17))return a;if(this.state.maybeInArrowParameters){let De=this.lookaheadCharCode();if(De===44||De===61||De===58||De===41)return this.setOptionalParametersError(m),a}this.expect(17);let A=this.state.clone(),S=this.state.noArrowAt,B=this.startNodeAt(p),{consequent:O,failed:U}=this.tryParseConditionalConsequent(),[R,ne]=this.getArrowLikeExpressions(O);if(U||ne.length>0){let De=[...S];if(ne.length>0){this.state=A,this.state.noArrowAt=De;for(let _e=0;_e<ne.length;_e++)De.push(ne[_e].start);({consequent:O,failed:U}=this.tryParseConditionalConsequent()),[R,ne]=this.getArrowLikeExpressions(O)}U&&R.length>1&&this.raise(Ne.AmbiguousConditionalArrow,A.startLoc),U&&R.length===1&&(this.state=A,De.push(R[0].start),this.state.noArrowAt=De,{consequent:O,failed:U}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(O,!0),this.state.noArrowAt=S,this.expect(14),B.test=a,B.consequent=O,B.alternate=this.forwardNoArrowParamsConversionAt(B,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(B,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let a=this.parseMaybeAssignAllowIn(),p=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:a,failed:p}}getArrowLikeExpressions(a,p){let m=[a],A=[];for(;m.length!==0;){let S=m.pop();S.type==="ArrowFunctionExpression"&&S.body.type!=="BlockStatement"?(S.typeParameters||!S.returnType?this.finishArrowValidation(S):A.push(S),m.push(S.body)):S.type==="ConditionalExpression"&&(m.push(S.consequent),m.push(S.alternate))}return p?(A.forEach(S=>this.finishArrowValidation(S)),[A,[]]):pb(A,S=>S.params.every(B=>this.isAssignable(B,!0)))}finishArrowValidation(a){this.toAssignableList(a.params,a.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(a,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(a,p){let m;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),m=p(),this.state.noArrowParamsConversionAt.pop()):m=p(),m}parseParenItem(a,p){let m=super.parseParenItem(a,p);if(this.eat(17)&&(m.optional=!0,this.resetEndLocation(a)),this.match(14)){let A=this.startNodeAt(p);return A.expression=m,A.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(A,"TypeCastExpression")}return m}assertModuleNodeAllowed(a){a.type==="ImportDeclaration"&&(a.importKind==="type"||a.importKind==="typeof")||a.type==="ExportNamedDeclaration"&&a.exportKind==="type"||a.type==="ExportAllDeclaration"&&a.exportKind==="type"||super.assertModuleNodeAllowed(a)}parseExportDeclaration(a){if(this.isContextual(130)){a.exportKind="type";let p=this.startNode();return this.next(),this.match(5)?(a.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(a),null):this.flowParseTypeAlias(p)}else if(this.isContextual(131)){a.exportKind="type";let p=this.startNode();return this.next(),this.flowParseOpaqueType(p,!1)}else if(this.isContextual(129)){a.exportKind="type";let p=this.startNode();return this.next(),this.flowParseInterface(p)}else if(this.isContextual(126)){a.exportKind="value";let p=this.startNode();return this.next(),this.flowParseEnumDeclaration(p)}else return super.parseExportDeclaration(a)}eatExportStar(a){return super.eatExportStar(a)?!0:this.isContextual(130)&&this.lookahead().type===55?(a.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(a){let{startLoc:p}=this.state,m=super.maybeParseExportNamespaceSpecifier(a);return m&&a.exportKind==="type"&&this.unexpected(p),m}parseClassId(a,p,m){super.parseClassId(a,p,m),this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(a,p,m){let{startLoc:A}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(a,p))return;p.declare=!0}super.parseClassMember(a,p,m),p.declare&&(p.type!=="ClassProperty"&&p.type!=="ClassPrivateProperty"&&p.type!=="PropertyDefinition"?this.raise(Ne.DeclareClassElement,A):p.value&&this.raise(Ne.DeclareClassFieldInitializer,p.value))}isIterator(a){return a==="iterator"||a==="asyncIterator"}readIterator(){let a=super.readWord1(),p="@@"+a;(!this.isIterator(a)||!this.state.inType)&&this.raise(I.InvalidIdentifier,this.state.curPosition(),{identifierName:p}),this.finishToken(132,p)}getTokenFromCode(a){let p=this.input.charCodeAt(this.state.pos+1);a===123&&p===124?this.finishOp(6,2):this.state.inType&&(a===62||a===60)?this.finishOp(a===62?48:47,1):this.state.inType&&a===63?p===46?this.finishOp(18,2):this.finishOp(17,1):rb(a,p,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(a)}isAssignable(a,p){return a.type==="TypeCastExpression"?this.isAssignable(a.expression,p):super.isAssignable(a,p)}toAssignable(a,p=!1){!p&&a.type==="AssignmentExpression"&&a.left.type==="TypeCastExpression"&&(a.left=this.typeCastToParameter(a.left)),super.toAssignable(a,p)}toAssignableList(a,p,m){for(let A=0;A<a.length;A++){let S=a[A];S?.type==="TypeCastExpression"&&(a[A]=this.typeCastToParameter(S))}super.toAssignableList(a,p,m)}toReferencedList(a,p){for(let m=0;m<a.length;m++){let A=a[m];A&&A.type==="TypeCastExpression"&&!A.extra?.parenthesized&&(a.length>1||!p)&&this.raise(Ne.TypeCastInPattern,A.typeAnnotation)}return a}parseArrayLike(a,p,m){let A=super.parseArrayLike(a,p,m);return m!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(A.elements),A}isValidLVal(a,p,m,A){return a==="TypeCastExpression"||super.isValidLVal(a,p,m,A)}parseClassProperty(a){return this.match(14)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(a)}parseClassPrivateProperty(a){return this.match(14)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(a)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(a){return!this.match(14)&&super.isNonstaticConstructor(a)}pushClassMethod(a,p,m,A,S,B){if(p.variance&&this.unexpected(p.variance.loc.start),delete p.variance,this.match(47)&&(p.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(a,p,m,A,S,B),p.params&&S){let O=p.params;O.length>0&&this.isThisParam(O[0])&&this.raise(Ne.ThisParamBannedInConstructor,p)}else if(p.type==="MethodDefinition"&&S&&p.value.params){let O=p.value.params;O.length>0&&this.isThisParam(O[0])&&this.raise(Ne.ThisParamBannedInConstructor,p)}}pushClassPrivateMethod(a,p,m,A){p.variance&&this.unexpected(p.variance.loc.start),delete p.variance,this.match(47)&&(p.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(a,p,m,A)}parseClassSuper(a){if(super.parseClassSuper(a),a.superClass&&(this.match(47)||this.match(51))&&(a.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let p=a.implements=[];do{let m=this.startNode();m.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?m.typeParameters=this.flowParseTypeParameterInstantiation():m.typeParameters=null,p.push(this.finishNode(m,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(a){super.checkGetterSetterParams(a);let p=this.getObjectOrClassMethodParams(a);if(p.length>0){let m=p[0];this.isThisParam(m)&&a.kind==="get"?this.raise(Ne.GetterMayNotHaveThisParam,m):this.isThisParam(m)&&this.raise(Ne.SetterMayNotHaveThisParam,m)}}parsePropertyNamePrefixOperator(a){a.variance=this.flowParseVariance()}parseObjPropValue(a,p,m,A,S,B,O){a.variance&&this.unexpected(a.variance.loc.start),delete a.variance;let U;this.match(47)&&!B&&(U=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let R=super.parseObjPropValue(a,p,m,A,S,B,O);return U&&((R.value||R).typeParameters=U),R}parseFunctionParamType(a){return this.eat(17)&&(a.type!=="Identifier"&&this.raise(Ne.PatternIsOptional,a),this.isThisParam(a)&&this.raise(Ne.ThisParamMayNotBeOptional,a),a.optional=!0),this.match(14)?a.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(a)&&this.raise(Ne.ThisParamAnnotationRequired,a),this.match(29)&&this.isThisParam(a)&&this.raise(Ne.ThisParamNoDefault,a),this.resetEndLocation(a),a}parseMaybeDefault(a,p){let m=super.parseMaybeDefault(a,p);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(Ne.TypeBeforeInitializer,m.typeAnnotation),m}checkImportReflection(a){super.checkImportReflection(a),a.module&&a.importKind!=="value"&&this.raise(Ne.ImportReflectionHasImportType,a.specifiers[0].loc.start)}parseImportSpecifierLocal(a,p,m){p.local=lm(a)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),a.specifiers.push(this.finishImportSpecifier(p,m))}isPotentialImportPhase(a){if(super.isPotentialImportPhase(a))return!0;if(this.isContextual(130)){if(!a)return!0;let p=this.lookaheadCharCode();return p===123||p===42}return!a&&this.isContextual(87)}applyImportPhase(a,p,m,A){if(super.applyImportPhase(a,p,m,A),p){if(!m&&this.match(65))return;a.exportKind=m==="type"?m:"value"}else m==="type"&&this.match(55)&&this.unexpected(),a.importKind=m==="type"||m==="typeof"?m:"value"}parseImportSpecifier(a,p,m,A,S){let B=a.imported,O=null;B.type==="Identifier"&&(B.name==="type"?O="type":B.name==="typeof"&&(O="typeof"));let U=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let ne=this.parseIdentifier(!0);O!==null&&!at(this.state.type)?(a.imported=ne,a.importKind=O,a.local=this.cloneIdentifier(ne)):(a.imported=B,a.importKind=null,a.local=this.parseIdentifier())}else{if(O!==null&&at(this.state.type))a.imported=this.parseIdentifier(!0),a.importKind=O;else{if(p)throw this.raise(I.ImportBindingIsString,a,{importName:B.value});a.imported=B,a.importKind=null}this.eatContextual(93)?a.local=this.parseIdentifier():(U=!0,a.local=this.cloneIdentifier(a.imported))}let R=lm(a);return m&&R&&this.raise(Ne.ImportTypeShorthandOnlyInPureImport,a),(m||R)&&this.checkReservedType(a.local.name,a.local.loc.start,!0),U&&!m&&!R&&this.checkReservedWord(a.local.name,a.loc.start,!0,!0),this.finishImportSpecifier(a,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(a,p){let m=a.kind;m!=="get"&&m!=="set"&&this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(a,p)}parseVarId(a,p){super.parseVarId(a,p),this.match(14)&&(a.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(a.id))}parseAsyncArrowFromCallExpression(a,p){if(this.match(14)){let m=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,a.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=m}return super.parseAsyncArrowFromCallExpression(a,p)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(a,p){let m=null,A;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(m=this.state.clone(),A=this.tryParse(()=>super.parseMaybeAssign(a,p),m),!A.error)return A.node;let{context:S}=this.state,B=S[S.length-1];(B===X.j_oTag||B===X.j_expr)&&S.pop()}if(A?.error||this.match(47)){m=m||this.state.clone();let S,B=this.tryParse(U=>{S=this.flowParseTypeParameterDeclaration();let R=this.forwardNoArrowParamsConversionAt(S,()=>{let De=super.parseMaybeAssign(a,p);return this.resetStartLocationFromNode(De,S),De});R.extra?.parenthesized&&U();let ne=this.maybeUnwrapTypeCastExpression(R);return ne.type!=="ArrowFunctionExpression"&&U(),ne.typeParameters=S,this.resetStartLocationFromNode(ne,S),R},m),O=null;if(B.node&&this.maybeUnwrapTypeCastExpression(B.node).type==="ArrowFunctionExpression"){if(!B.error&&!B.aborted)return B.node.async&&this.raise(Ne.UnexpectedTypeParameterBeforeAsyncArrowFunction,S),B.node;O=B.node}if(A?.node)return this.state=A.failState,A.node;if(O)return this.state=B.failState,O;throw A?.thrown?A.error:B.thrown?B.error:this.raise(Ne.UnexpectedTokenAfterTypeParameter,S)}return super.parseMaybeAssign(a,p)}parseArrow(a){if(this.match(14)){let p=this.tryParse(()=>{let m=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let A=this.startNode();return[A.typeAnnotation,a.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=m,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),A});if(p.thrown)return null;p.error&&(this.state=p.failState),a.returnType=p.node.typeAnnotation?this.finishNode(p.node,"TypeAnnotation"):null}return super.parseArrow(a)}shouldParseArrow(a){return this.match(14)||super.shouldParseArrow(a)}setArrowFunctionParameters(a,p){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start))?a.params=p:super.setArrowFunctionParameters(a,p)}checkParams(a,p,m,A=!0){if(!(m&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(a.start)))){for(let S=0;S<a.params.length;S++)this.isThisParam(a.params[S])&&S>0&&this.raise(Ne.ThisParamMustBeFirst,a.params[S]);super.checkParams(a,p,m,A)}}parseParenAndDistinguishExpression(a){return super.parseParenAndDistinguishExpression(a&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(a,p,m){if(a.type==="Identifier"&&a.name==="async"&&this.state.noArrowAt.includes(p.index)){this.next();let A=this.startNodeAt(p);A.callee=a,A.arguments=super.parseCallExpressionArguments(),a=this.finishNode(A,"CallExpression")}else if(a.type==="Identifier"&&a.name==="async"&&this.match(47)){let A=this.state.clone(),S=this.tryParse(O=>this.parseAsyncArrowWithTypeParameters(p)||O(),A);if(!S.error&&!S.aborted)return S.node;let B=this.tryParse(()=>super.parseSubscripts(a,p,m),A);if(B.node&&!B.error)return B.node;if(S.node)return this.state=S.failState,S.node;if(B.node)return this.state=B.failState,B.node;throw S.error||B.error}return super.parseSubscripts(a,p,m)}parseSubscript(a,p,m,A){if(this.match(18)&&this.isLookaheadToken_lt()){if(A.optionalChainMember=!0,m)return A.stop=!0,a;this.next();let S=this.startNodeAt(p);return S.callee=a,S.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),S.arguments=this.parseCallExpressionArguments(),S.optional=!0,this.finishCallExpression(S,!0)}else if(!m&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let S=this.startNodeAt(p);S.callee=a;let B=this.tryParse(()=>(S.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),S.arguments=super.parseCallExpressionArguments(),A.optionalChainMember&&(S.optional=!1),this.finishCallExpression(S,A.optionalChainMember)));if(B.node)return B.error&&(this.state=B.failState),B.node}return super.parseSubscript(a,p,m,A)}parseNewCallee(a){super.parseNewCallee(a);let p=null;this.shouldParseTypes()&&this.match(47)&&(p=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),a.typeArguments=p}parseAsyncArrowWithTypeParameters(a){let p=this.startNodeAt(a);if(this.parseFunctionParams(p,!1),!!this.parseArrow(p))return super.parseArrowExpression(p,void 0,!0)}readToken_mult_modulo(a){let p=this.input.charCodeAt(this.state.pos+1);if(a===42&&p===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(a)}readToken_pipe_amp(a){let p=this.input.charCodeAt(this.state.pos+1);if(a===124&&p===125){this.finishOp(9,2);return}super.readToken_pipe_amp(a)}parseTopLevel(a,p){let m=super.parseTopLevel(a,p);return this.state.hasFlowComment&&this.raise(Ne.UnterminatedFlowComment,this.state.curPosition()),m}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ne.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let a=this.skipFlowComment();a&&(this.state.pos+=a,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:a}=this.state,p=2;for(;[32,9].includes(this.input.charCodeAt(a+p));)p++;let m=this.input.charCodeAt(p+a),A=this.input.charCodeAt(p+a+1);return m===58&&A===58?p+2:this.input.slice(p+a,p+a+12)==="flow-include"?p+12:m===58&&A!==58?p:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(I.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(a,{enumName:p,memberName:m}){this.raise(Ne.EnumBooleanMemberNotInitialized,a,{memberName:m,enumName:p})}flowEnumErrorInvalidMemberInitializer(a,p){return this.raise(p.explicitType?p.explicitType==="symbol"?Ne.EnumInvalidMemberInitializerSymbolType:Ne.EnumInvalidMemberInitializerPrimaryType:Ne.EnumInvalidMemberInitializerUnknownType,a,p)}flowEnumErrorNumberMemberNotInitialized(a,p){this.raise(Ne.EnumNumberMemberNotInitialized,a,p)}flowEnumErrorStringMemberInconsistentlyInitialized(a,p){this.raise(Ne.EnumStringMemberInconsistentlyInitialized,a,p)}flowEnumMemberInit(){let a=this.state.startLoc,p=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let m=this.parseNumericLiteral(this.state.value);return p()?{type:"number",loc:m.loc.start,value:m}:{type:"invalid",loc:a}}case 134:{let m=this.parseStringLiteral(this.state.value);return p()?{type:"string",loc:m.loc.start,value:m}:{type:"invalid",loc:a}}case 85:case 86:{let m=this.parseBooleanLiteral(this.match(85));return p()?{type:"boolean",loc:m.loc.start,value:m}:{type:"invalid",loc:a}}default:return{type:"invalid",loc:a}}}flowEnumMemberRaw(){let a=this.state.startLoc,p=this.parseIdentifier(!0),m=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:a};return{id:p,init:m}}flowEnumCheckExplicitTypeMismatch(a,p,m){let{explicitType:A}=p;A!==null&&A!==m&&this.flowEnumErrorInvalidMemberInitializer(a,p)}flowEnumMembers({enumName:a,explicitType:p}){let m=new Set,A={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},S=!1;for(;!this.match(8);){if(this.eat(21)){S=!0;break}let B=this.startNode(),{id:O,init:U}=this.flowEnumMemberRaw(),R=O.name;if(R==="")continue;/^[a-z]/.test(R)&&this.raise(Ne.EnumInvalidMemberName,O,{memberName:R,suggestion:R[0].toUpperCase()+R.slice(1),enumName:a}),m.has(R)&&this.raise(Ne.EnumDuplicateMemberName,O,{memberName:R,enumName:a}),m.add(R);let ne={enumName:a,explicitType:p,memberName:R};switch(B.id=O,U.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(U.loc,ne,"boolean"),B.init=U.value,A.booleanMembers.push(this.finishNode(B,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(U.loc,ne,"number"),B.init=U.value,A.numberMembers.push(this.finishNode(B,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(U.loc,ne,"string"),B.init=U.value,A.stringMembers.push(this.finishNode(B,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(U.loc,ne);case"none":switch(p){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(U.loc,ne);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(U.loc,ne);break;default:A.defaultedMembers.push(this.finishNode(B,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:A,hasUnknownMembers:S}}flowEnumStringMembers(a,p,{enumName:m}){if(a.length===0)return p;if(p.length===0)return a;if(p.length>a.length){for(let A of a)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:m});return p}else{for(let A of p)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:m});return a}}flowEnumParseExplicitType({enumName:a}){if(!this.eatContextual(102))return null;if(!Me(this.state.type))throw this.raise(Ne.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:a});let{value:p}=this.state;return this.next(),p!=="boolean"&&p!=="number"&&p!=="string"&&p!=="symbol"&&this.raise(Ne.EnumInvalidExplicitType,this.state.startLoc,{enumName:a,invalidEnumType:p}),p}flowEnumBody(a,p){let m=p.name,A=p.loc.start,S=this.flowEnumParseExplicitType({enumName:m});this.expect(5);let{members:B,hasUnknownMembers:O}=this.flowEnumMembers({enumName:m,explicitType:S});switch(a.hasUnknownMembers=O,S){case"boolean":return a.explicitType=!0,a.members=B.booleanMembers,this.expect(8),this.finishNode(a,"EnumBooleanBody");case"number":return a.explicitType=!0,a.members=B.numberMembers,this.expect(8),this.finishNode(a,"EnumNumberBody");case"string":return a.explicitType=!0,a.members=this.flowEnumStringMembers(B.stringMembers,B.defaultedMembers,{enumName:m}),this.expect(8),this.finishNode(a,"EnumStringBody");case"symbol":return a.members=B.defaultedMembers,this.expect(8),this.finishNode(a,"EnumSymbolBody");default:{let U=()=>(a.members=[],this.expect(8),this.finishNode(a,"EnumStringBody"));a.explicitType=!1;let R=B.booleanMembers.length,ne=B.numberMembers.length,De=B.stringMembers.length,_e=B.defaultedMembers.length;if(!R&&!ne&&!De&&!_e)return U();if(!R&&!ne)return a.members=this.flowEnumStringMembers(B.stringMembers,B.defaultedMembers,{enumName:m}),this.expect(8),this.finishNode(a,"EnumStringBody");if(!ne&&!De&&R>=_e){for(let Re of B.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Re.loc.start,{enumName:m,memberName:Re.id.name});return a.members=B.booleanMembers,this.expect(8),this.finishNode(a,"EnumBooleanBody")}else if(!R&&!De&&ne>=_e){for(let Re of B.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Re.loc.start,{enumName:m,memberName:Re.id.name});return a.members=B.numberMembers,this.expect(8),this.finishNode(a,"EnumNumberBody")}else return this.raise(Ne.EnumInconsistentMemberValues,A,{enumName:m}),U()}}}flowParseEnumDeclaration(a){let p=this.parseIdentifier();return a.id=p,a.body=this.flowEnumBody(this.startNode(),p),this.finishNode(a,"EnumDeclaration")}jsxParseOpeningElementAfterName(a){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(a.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(a)}isLookaheadToken_lt(){let a=this.nextTokenStart();if(this.input.charCodeAt(a)===60){let p=this.input.charCodeAt(a+1);return p!==60&&p!==61}return!1}reScan_lt_gt(){let{type:a}=this.state;a===47?(this.state.pos-=1,this.readToken_lt()):a===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:a}=this.state;return a===51?(this.state.pos-=2,this.finishOp(47,1),47):a}maybeUnwrapTypeCastExpression(a){return a.type==="TypeCastExpression"?a.expression:a}},db=/\r\n|[\r\n\u2028\u2029]/,Au=new RegExp(db.source,"g");function bn(u){switch(u){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function pm(u,a,p){for(let m=a;m<p;m++)if(bn(u.charCodeAt(m)))return!0;return!1}var vp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Fp=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function fb(u){switch(u){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ws=L`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:u})=>`Expected corresponding JSX closing tag for <${u}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:u,HTMLEntity:a})=>`Unexpected token \`${u}\`. Did you mean \`${a}\` or \`{'${u}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ti(u){return u?u.type==="JSXOpeningFragment"||u.type==="JSXClosingFragment":!1}function Tn(u){if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return Tn(u.object)+"."+Tn(u.property);throw new Error("Node had unexpected type: "+u.type)}var mb=u=>class extends u{jsxReadToken(){let a="",p=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ws.UnterminatedJsxContent,this.state.startLoc);let m=this.input.charCodeAt(this.state.pos);switch(m){case 60:case 123:if(this.state.pos===this.state.start){m===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(m);return}a+=this.input.slice(p,this.state.pos),this.finishToken(142,a);return;case 38:a+=this.input.slice(p,this.state.pos),a+=this.jsxReadEntity(),p=this.state.pos;break;case 62:case 125:this.raise(ws.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:m===125?"&rbrace;":"&gt;"});default:bn(m)?(a+=this.input.slice(p,this.state.pos),a+=this.jsxReadNewLine(!0),p=this.state.pos):++this.state.pos}}}jsxReadNewLine(a){let p=this.input.charCodeAt(this.state.pos),m;return++this.state.pos,p===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,m=a?`
234
+ `:`\r
235
+ `):m=String.fromCharCode(p),++this.state.curLine,this.state.lineStart=this.state.pos,m}jsxReadString(a){let p="",m=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(I.UnterminatedString,this.state.startLoc);let A=this.input.charCodeAt(this.state.pos);if(A===a)break;A===38?(p+=this.input.slice(m,this.state.pos),p+=this.jsxReadEntity(),m=this.state.pos):bn(A)?(p+=this.input.slice(m,this.state.pos),p+=this.jsxReadNewLine(!1),m=this.state.pos):++this.state.pos}p+=this.input.slice(m,this.state.pos++),this.finishToken(134,p)}jsxReadEntity(){let a=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let p=10;this.codePointAtPos(this.state.pos)===120&&(p=16,++this.state.pos);let m=this.readInt(p,void 0,!1,"bail");if(m!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(m)}else{let p=0,m=!1;for(;p++<10&&this.state.pos<this.length&&!(m=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(m){this.input.slice(a,this.state.pos);let A;++this.state.pos}}return this.state.pos=a,"&"}jsxReadWord(){let a,p=this.state.pos;do a=this.input.charCodeAt(++this.state.pos);while($i(a)||a===45);this.finishToken(141,this.input.slice(p,this.state.pos))}jsxParseIdentifier(){let a=this.startNode();return this.match(141)?a.name=this.state.value:yt(this.state.type)?a.name=Jt(this.state.type):this.unexpected(),this.next(),this.finishNode(a,"JSXIdentifier")}jsxParseNamespacedName(){let a=this.state.startLoc,p=this.jsxParseIdentifier();if(!this.eat(14))return p;let m=this.startNodeAt(a);return m.namespace=p,m.name=this.jsxParseIdentifier(),this.finishNode(m,"JSXNamespacedName")}jsxParseElementName(){let a=this.state.startLoc,p=this.jsxParseNamespacedName();if(p.type==="JSXNamespacedName")return p;for(;this.eat(16);){let m=this.startNodeAt(a);m.object=p,m.property=this.jsxParseIdentifier(),p=this.finishNode(m,"JSXMemberExpression")}return p}jsxParseAttributeValue(){let a;switch(this.state.type){case 5:return a=this.startNode(),this.setContext(X.brace),this.next(),a=this.jsxParseExpressionContainer(a,X.j_oTag),a.expression.type==="JSXEmptyExpression"&&this.raise(ws.AttributeIsEmpty,a),a;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ws.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let a=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(a,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(a){return this.next(),a.expression=this.parseExpression(),this.setContext(X.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(a,"JSXSpreadChild")}jsxParseExpressionContainer(a,p){if(this.match(8))a.expression=this.jsxParseEmptyExpression();else{let m=this.parseExpression();m.type==="SequenceExpression"&&!m.extra?.parenthesized&&this.raise(ws.UnexpectedSequenceExpression,m.expressions[1]),a.expression=m}return this.setContext(p),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(a,"JSXExpressionContainer")}jsxParseAttribute(){let a=this.startNode();return this.match(5)?(this.setContext(X.brace),this.next(),this.expect(21),a.argument=this.parseMaybeAssignAllowIn(),this.setContext(X.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(a,"JSXSpreadAttribute")):(a.name=this.jsxParseNamespacedName(),a.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(a,"JSXAttribute"))}jsxParseOpeningElementAt(a){let p=this.startNodeAt(a);return this.eat(144)?this.finishNode(p,"JSXOpeningFragment"):(p.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(p))}jsxParseOpeningElementAfterName(a){let p=[];for(;!this.match(56)&&!this.match(144);)p.push(this.jsxParseAttribute());return a.attributes=p,a.selfClosing=this.eat(56),this.expect(144),this.finishNode(a,"JSXOpeningElement")}jsxParseClosingElementAt(a){let p=this.startNodeAt(a);return this.eat(144)?this.finishNode(p,"JSXClosingFragment"):(p.name=this.jsxParseElementName(),this.expect(144),this.finishNode(p,"JSXClosingElement"))}jsxParseElementAt(a){let p=this.startNodeAt(a),m=[],A=this.jsxParseOpeningElementAt(a),S=null;if(!A.selfClosing){e:for(;;)switch(this.state.type){case 143:if(a=this.state.startLoc,this.next(),this.eat(56)){S=this.jsxParseClosingElementAt(a);break e}m.push(this.jsxParseElementAt(a));break;case 142:m.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let B=this.startNode();this.setContext(X.brace),this.next(),this.match(21)?m.push(this.jsxParseSpreadChild(B)):m.push(this.jsxParseExpressionContainer(B,X.j_expr));break}default:this.unexpected()}ti(A)&&!ti(S)&&S!==null?this.raise(ws.MissingClosingTagFragment,S):!ti(A)&&ti(S)?this.raise(ws.MissingClosingTagElement,S,{openingTagName:Tn(A.name)}):!ti(A)&&!ti(S)&&Tn(S.name)!==Tn(A.name)&&this.raise(ws.MissingClosingTagElement,S,{openingTagName:Tn(A.name)})}if(ti(A)?(p.openingFragment=A,p.closingFragment=S):(p.openingElement=A,p.closingElement=S),p.children=m,this.match(47))throw this.raise(ws.UnwrappedAdjacentJSXElements,this.state.startLoc);return ti(A)?this.finishNode(p,"JSXFragment"):this.finishNode(p,"JSXElement")}jsxParseElement(){let a=this.state.startLoc;return this.next(),this.jsxParseElementAt(a)}setContext(a){let{context:p}=this.state;p[p.length-1]=a}parseExprAtom(a){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(a)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(a){let p=this.curContext();if(p===X.j_expr){this.jsxReadToken();return}if(p===X.j_oTag||p===X.j_cTag){if(ur(a)){this.jsxReadWord();return}if(a===62){++this.state.pos,this.finishToken(144);return}if((a===34||a===39)&&p===X.j_oTag){this.jsxReadString(a);return}}if(a===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(a)}updateContext(a){let{context:p,type:m}=this.state;if(m===56&&a===143)p.splice(-2,2,X.j_cTag),this.state.canStartJSXElement=!1;else if(m===143)p.push(X.j_oTag);else if(m===144){let A=p[p.length-1];A===X.j_oTag&&a===56||A===X.j_cTag?(p.pop(),this.state.canStartJSXElement=p[p.length-1]===X.j_expr):(this.setContext(X.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Zt(m)}},yb=class extends bp{tsNames=new Map},Db=class extends Tp{importsStack=[];createScope(u){return this.importsStack.push(new Set),new yb(u)}enter(u){u===1024&&this.importsStack.push(new Set),super.enter(u)}exit(){let u=super.exit();return u===1024&&this.importsStack.pop(),u}hasImport(u,a){let p=this.importsStack.length;if(this.importsStack[p-1].has(u))return!0;if(!a&&p>1){for(let m=0;m<p-1;m++)if(this.importsStack[m].has(u))return!0}return!1}declareName(u,a,p){if(a&4096){this.hasImport(u,!0)&&this.parser.raise(I.VarRedeclaration,p,{identifierName:u}),this.importsStack[this.importsStack.length-1].add(u);return}let m=this.currentScope(),A=m.tsNames.get(u)||0;if(a&1024){this.maybeExportDefined(m,u),m.tsNames.set(u,A|16);return}super.declareName(u,a,p),a&2&&(a&1||(this.checkRedeclarationInScope(m,u,a,p),this.maybeExportDefined(m,u)),A=A|1),a&256&&(A=A|2),a&512&&(A=A|4),a&128&&(A=A|8),A&&m.tsNames.set(u,A)}isRedeclaredInScope(u,a,p){let m=u.tsNames.get(a);if((m&2)>0){if(p&256){let A=!!(p&512),S=(m&4)>0;return A!==S}return!0}return p&128&&(m&8)>0?u.names.get(a)&2?!!(p&1):!1:p&2&&(m&1)>0?!0:super.isRedeclaredInScope(u,a,p)}checkLocalExport(u){let{name:a}=u;if(this.hasImport(a))return;let p=this.scopeStack.length;for(let m=p-1;m>=0;m--){let A=this.scopeStack[m].tsNames.get(a);if((A&1)>0||(A&16)>0)return}super.checkLocalExport(u)}},gb=class{stacks=[];enter(u){this.stacks.push(u)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Cu(u,a){return(u?2:0)|(a?1:0)}var xb=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(u){return u+this.startIndex}offsetToSourcePos(u){return u-this.startIndex}hasPlugin(u){if(typeof u=="string")return this.plugins.has(u);{let[a,p]=u;if(!this.hasPlugin(a))return!1;let m=this.plugins.get(a);for(let A of Object.keys(p))if(m?.[A]!==p[A])return!1;return!0}}getPluginOption(u,a){return this.plugins.get(u)?.[a]}};function cm(u,a){u.trailingComments===void 0?u.trailingComments=a:u.trailingComments.unshift(...a)}function Eb(u,a){u.leadingComments===void 0?u.leadingComments=a:u.leadingComments.unshift(...a)}function vn(u,a){u.innerComments===void 0?u.innerComments=a:u.innerComments.unshift(...a)}function Mi(u,a,p){let m=null,A=a.length;for(;m===null&&A>0;)m=a[--A];m===null||m.start>p.start?vn(u,p.comments):cm(m,p.comments)}var Ab=class extends xb{addComment(u){this.filename&&(u.loc.filename=this.filename);let{commentsLen:a}=this.state;this.comments.length!==a&&(this.comments.length=a),this.comments.push(u),this.state.commentsLen++}processComment(u){let{commentStack:a}=this.state,p=a.length;if(p===0)return;let m=p-1,A=a[m];A.start===u.end&&(A.leadingNode=u,m--);let{start:S}=u;for(;m>=0;m--){let B=a[m],O=B.end;if(O>S)B.containingNode=u,this.finalizeComment(B),a.splice(m,1);else{O===S&&(B.trailingNode=u);break}}}finalizeComment(u){let{comments:a}=u;if(u.leadingNode!==null||u.trailingNode!==null)u.leadingNode!==null&&cm(u.leadingNode,a),u.trailingNode!==null&&Eb(u.trailingNode,a);else{let p=u.containingNode,m=u.start;if(this.input.charCodeAt(this.offsetToSourcePos(m)-1)===44)switch(p.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Mi(p,p.properties,u);break;case"CallExpression":case"OptionalCallExpression":Mi(p,p.arguments,u);break;case"ImportExpression":Mi(p,[p.source,p.options??null],u);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Mi(p,p.params,u);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Mi(p,p.elements,u);break;case"ExportNamedDeclaration":case"ImportDeclaration":Mi(p,p.specifiers,u);break;case"TSEnumDeclaration":vn(p,a);break;case"TSEnumBody":Mi(p,p.members,u);break;default:vn(p,a)}else vn(p,a)}}finalizeRemainingComments(){let{commentStack:u}=this.state;for(let a=u.length-1;a>=0;a--)this.finalizeComment(u[a]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(u){let{commentStack:a}=this.state,{length:p}=a;if(p===0)return;let m=a[p-1];m.leadingNode===u&&(m.leadingNode=null)}takeSurroundingComments(u,a,p){let{commentStack:m}=this.state,A=m.length;if(A===0)return;let S=A-1;for(;S>=0;S--){let B=m[S],O=B.end;if(B.start===p)B.leadingNode=u;else if(O===a)B.trailingNode=u;else if(O<a)break}}},Cb=class VC{flags=1024;get strict(){return(this.flags&1)>0}set strict(a){a?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:a,sourceType:p,startIndex:m,startLine:A,startColumn:S}){this.strict=a===!1?!1:a===!0?!0:p==="module",this.startIndex=m,this.curLine=A,this.lineStart=-S,this.startLoc=this.endLoc=new D(A,S,m)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(a){a?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(a){a?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(a){a?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(a){a?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(a){a?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(a){a?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(a){a?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(a){a?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(a){a?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[X.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(a){a?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(a){a?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(a){a?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new D(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let a=new VC;return a.flags=this.flags,a.startIndex=this.startIndex,a.curLine=this.curLine,a.lineStart=this.lineStart,a.startLoc=this.startLoc,a.endLoc=this.endLoc,a.errors=this.errors.slice(),a.potentialArrowAt=this.potentialArrowAt,a.noArrowAt=this.noArrowAt.slice(),a.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),a.topicContext=this.topicContext,a.labels=this.labels.slice(),a.commentsLen=this.commentsLen,a.commentStack=this.commentStack.slice(),a.pos=this.pos,a.type=this.type,a.value=this.value,a.start=this.start,a.end=this.end,a.lastTokEndLoc=this.lastTokEndLoc,a.lastTokStartLoc=this.lastTokStartLoc,a.context=this.context.slice(),a.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,a.strictErrors=this.strictErrors,a.tokensLength=this.tokensLength,a}},bb=function(u){return u>=48&&u<=57},hm={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},bu={bin:u=>u===48||u===49,oct:u=>u>=48&&u<=55,dec:u=>u>=48&&u<=57,hex:u=>u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102};function dm(u,a,p,m,A,S){let B=p,O=m,U=A,R="",ne=null,De=p,{length:_e}=a;for(;;){if(p>=_e){S.unterminated(B,O,U),R+=a.slice(De,p);break}let Re=a.charCodeAt(p);if(Tb(u,Re,a,p)){R+=a.slice(De,p);break}if(Re===92){R+=a.slice(De,p);let It=vb(a,p,m,A,u==="template",S);It.ch===null&&!ne?ne={pos:p,lineStart:m,curLine:A}:R+=It.ch,{pos:p,lineStart:m,curLine:A}=It,De=p}else Re===8232||Re===8233?(++p,++A,m=p):Re===10||Re===13?u==="template"?(R+=a.slice(De,p)+`
236
+ `,++p,Re===13&&a.charCodeAt(p)===10&&++p,++A,De=m=p):S.unterminated(B,O,U):++p}return{pos:p,str:R,firstInvalidLoc:ne,lineStart:m,curLine:A}}function Tb(u,a,p,m){return u==="template"?a===96||a===36&&p.charCodeAt(m+1)===123:a===(u==="double"?34:39)}function vb(u,a,p,m,A,S){let B=!A;a++;let O=R=>({pos:a,ch:R,lineStart:p,curLine:m}),U=u.charCodeAt(a++);switch(U){case 110:return O(`
237
+ `);case 114:return O("\r");case 120:{let R;return{code:R,pos:a}=wp(u,a,p,m,2,!1,B,S),O(R===null?null:String.fromCharCode(R))}case 117:{let R;return{code:R,pos:a}=mm(u,a,p,m,B,S),O(R===null?null:String.fromCodePoint(R))}case 116:return O(" ");case 98:return O("\b");case 118:return O("\v");case 102:return O("\f");case 13:u.charCodeAt(a)===10&&++a;case 10:p=a,++m;case 8232:case 8233:return O("");case 56:case 57:if(A)return O(null);S.strictNumericEscape(a-1,p,m);default:if(U>=48&&U<=55){let R=a-1,ne=/^[0-7]+/.exec(u.slice(R,a+2))[0],De=parseInt(ne,8);De>255&&(ne=ne.slice(0,-1),De=parseInt(ne,8)),a+=ne.length-1;let _e=u.charCodeAt(a);if(ne!=="0"||_e===56||_e===57){if(A)return O(null);S.strictNumericEscape(R,p,m)}return O(String.fromCharCode(De))}return O(String.fromCharCode(U))}}function wp(u,a,p,m,A,S,B,O){let U=a,R;return{n:R,pos:a}=fm(u,a,p,m,16,A,S,!1,O,!B),R===null&&(B?O.invalidEscapeSequence(U,p,m):a=U-1),{code:R,pos:a}}function fm(u,a,p,m,A,S,B,O,U,R){let ne=a,De=A===16?hm.hex:hm.decBinOct,_e=A===16?bu.hex:A===10?bu.dec:A===8?bu.oct:bu.bin,Re=!1,It=0;for(let qt=0,bt=S??1/0;qt<bt;++qt){let Tt=u.charCodeAt(a),Tr;if(Tt===95&&O!=="bail"){let Up=u.charCodeAt(a-1),qp=u.charCodeAt(a+1);if(O){if(Number.isNaN(qp)||!_e(qp)||De.has(Up)||De.has(qp)){if(R)return{n:null,pos:a};U.unexpectedNumericSeparator(a,p,m)}}else{if(R)return{n:null,pos:a};U.numericSeparatorInEscapeSequence(a,p,m)}++a;continue}if(Tt>=97?Tr=Tt-97+10:Tt>=65?Tr=Tt-65+10:bb(Tt)?Tr=Tt-48:Tr=1/0,Tr>=A){if(Tr<=9&&R)return{n:null,pos:a};if(Tr<=9&&U.invalidDigit(a,p,m,A))Tr=0;else if(B)Tr=0,Re=!0;else break}++a,It=It*A+Tr}return a===ne||S!=null&&a-ne!==S||Re?{n:null,pos:a}:{n:It,pos:a}}function mm(u,a,p,m,A,S){let B=u.charCodeAt(a),O;if(B===123){if(++a,{code:O,pos:a}=wp(u,a,p,m,u.indexOf("}",a)-a,!0,A,S),++a,O!==null&&O>1114111)if(A)S.invalidCodePoint(a,p,m);else return{code:null,pos:a}}else({code:O,pos:a}=wp(u,a,p,m,4,!1,A,S));return{code:O,pos:a}}function Ia(u,a,p){return new D(p,u-a,u)}var Fb=new Set([103,109,115,105,121,117,100,118]),wb=class{constructor(u){let a=u.startIndex||0;this.type=u.type,this.value=u.value,this.start=a+u.start,this.end=a+u.end,this.loc=new y(u.startLoc,u.endLoc)}},Sb=class extends Ab{isLookahead;tokens=[];constructor(u,a){super(),this.state=new Cb,this.state.init(u),this.input=a,this.length=a.length,this.comments=[],this.isLookahead=!1}pushToken(u){this.tokens.length=this.state.tokensLength,this.tokens.push(u),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new wb(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(u){return this.match(u)?(this.next(),!0):!1}match(u){return this.state.type===u}createLookaheadState(u){return{pos:u.pos,value:null,type:u.type,start:u.start,end:u.end,context:[this.curContext()],inType:u.inType,startLoc:u.startLoc,lastTokEndLoc:u.lastTokEndLoc,curLine:u.curLine,lineStart:u.lineStart,curPosition:u.curPosition}}lookahead(){let u=this.state;this.state=this.createLookaheadState(u),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let a=this.state;return this.state=u,a}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(u){return vp.lastIndex=u,vp.test(this.input)?vp.lastIndex:u}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(u){return this.input.charCodeAt(this.nextTokenStartSince(u))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(u){return Fp.lastIndex=u,Fp.test(this.input)?Fp.lastIndex:u}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(u){let a=this.input.charCodeAt(u);if((a&64512)===55296&&++u<this.input.length){let p=this.input.charCodeAt(u);(p&64512)===56320&&(a=65536+((a&1023)<<10)+(p&1023))}return a}setStrict(u){this.state.strict=u,u&&(this.state.strictErrors.forEach(([a,p])=>this.raise(a,p)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(u){let a;this.isLookahead||(a=this.state.curPosition());let p=this.state.pos,m=this.input.indexOf(u,p+2);if(m===-1)throw this.raise(I.UnterminatedComment,this.state.curPosition());for(this.state.pos=m+u.length,Au.lastIndex=p+2;Au.test(this.input)&&Au.lastIndex<=m;)++this.state.curLine,this.state.lineStart=Au.lastIndex;if(this.isLookahead)return;let A={type:"CommentBlock",value:this.input.slice(p+2,m),start:this.sourceToOffsetPos(p),end:this.sourceToOffsetPos(m+u.length),loc:new y(a,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(A),A}skipLineComment(u){let a=this.state.pos,p;this.isLookahead||(p=this.state.curPosition());let m=this.input.charCodeAt(this.state.pos+=u);if(this.state.pos<this.length)for(;!bn(m)&&++this.state.pos<this.length;)m=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let A=this.state.pos,S={type:"CommentLine",value:this.input.slice(a+u,A),start:this.sourceToOffsetPos(a),end:this.sourceToOffsetPos(A),loc:new y(p,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(S),S}skipSpace(){let u=this.state.pos,a=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let p=this.input.charCodeAt(this.state.pos);switch(p){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let m=this.skipBlockComment("*/");m!==void 0&&(this.addComment(m),a?.push(m));break}case 47:{let m=this.skipLineComment(2);m!==void 0&&(this.addComment(m),a?.push(m));break}default:break e}break;default:if(fb(p))++this.state.pos;else if(p===45&&!this.inModule&&this.optionFlags&8192){let m=this.state.pos;if(this.input.charCodeAt(m+1)===45&&this.input.charCodeAt(m+2)===62&&(u===0||this.state.lineStart>u)){let A=this.skipLineComment(3);A!==void 0&&(this.addComment(A),a?.push(A))}else break e}else if(p===60&&!this.inModule&&this.optionFlags&8192){let m=this.state.pos;if(this.input.charCodeAt(m+1)===33&&this.input.charCodeAt(m+2)===45&&this.input.charCodeAt(m+3)===45){let A=this.skipLineComment(4);A!==void 0&&(this.addComment(A),a?.push(A))}else break e}else break e}}if(a?.length>0){let p=this.state.pos,m={start:this.sourceToOffsetPos(u),end:this.sourceToOffsetPos(p),comments:a,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(m)}}finishToken(u,a){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let p=this.state.type;this.state.type=u,this.state.value=a,this.isLookahead||this.updateContext(p)}replaceToken(u){this.state.type=u,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let u=this.state.pos+1,a=this.codePointAtPos(u);if(a>=48&&a<=57)throw this.raise(I.UnexpectedDigitAfterHash,this.state.curPosition());ur(a)?(++this.state.pos,this.finishToken(139,this.readWord1(a))):a===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let u=this.input.charCodeAt(this.state.pos+1);if(u>=48&&u<=57){this.readNumber(!0);return}u===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let u=this.input.charCodeAt(this.state.pos+1);if(u!==33)return!1;let a=this.state.pos;for(this.state.pos+=1;!bn(u)&&++this.state.pos<this.length;)u=this.input.charCodeAt(this.state.pos);let p=this.input.slice(a+2,this.state.pos);return this.finishToken(28,p),!0}readToken_mult_modulo(u){let a=u===42?55:54,p=1,m=this.input.charCodeAt(this.state.pos+1);u===42&&m===42&&(p++,m=this.input.charCodeAt(this.state.pos+2),a=57),m===61&&!this.state.inType&&(p++,a=u===37?33:30),this.finishOp(a,p)}readToken_pipe_amp(u){let a=this.input.charCodeAt(this.state.pos+1);if(a===u){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(u===124?41:42,2);return}if(u===124&&a===62){this.finishOp(39,2);return}if(a===61){this.finishOp(30,2);return}this.finishOp(u===124?43:45,1)}readToken_caret(){let u=this.input.charCodeAt(this.state.pos+1);u===61&&!this.state.inType?this.finishOp(32,2):u===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(u){let a=this.input.charCodeAt(this.state.pos+1);if(a===u){this.finishOp(34,2);return}a===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:u}=this.state,a=this.input.charCodeAt(u+1);if(a===60){if(this.input.charCodeAt(u+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(a===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:u}=this.state,a=this.input.charCodeAt(u+1);if(a===62){let p=this.input.charCodeAt(u+2)===62?3:2;if(this.input.charCodeAt(u+p)===61){this.finishOp(30,p+1);return}this.finishOp(52,p);return}if(a===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(u){let a=this.input.charCodeAt(this.state.pos+1);if(a===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(u===61&&a===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(u===61?29:35,1)}readToken_question(){let u=this.input.charCodeAt(this.state.pos+1),a=this.input.charCodeAt(this.state.pos+2);u===63?a===61?this.finishOp(30,3):this.finishOp(40,2):u===46&&!(a>=48&&a<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(u){switch(u){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let a=this.input.charCodeAt(this.state.pos+1);if(a===120||a===88){this.readRadixNumber(16);return}if(a===111||a===79){this.readRadixNumber(8);return}if(a===98||a===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(u);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(u);return;case 124:case 38:this.readToken_pipe_amp(u);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(u);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(u);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ur(u)){this.readWord(u);return}}throw this.raise(I.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(u)})}finishOp(u,a){let p=this.input.slice(this.state.pos,this.state.pos+a);this.state.pos+=a,this.finishToken(u,p)}readRegexp(){let u=this.state.startLoc,a=this.state.start+1,p,m,{pos:A}=this.state;for(;;++A){if(A>=this.length)throw this.raise(I.UnterminatedRegExp,g(u,1));let U=this.input.charCodeAt(A);if(bn(U))throw this.raise(I.UnterminatedRegExp,g(u,1));if(p)p=!1;else{if(U===91)m=!0;else if(U===93&&m)m=!1;else if(U===47&&!m)break;p=U===92}}let S=this.input.slice(a,A);++A;let B="",O=()=>g(u,A+2-a);for(;A<this.length;){let U=this.codePointAtPos(A),R=String.fromCharCode(U);if(Fb.has(U))U===118?B.includes("u")&&this.raise(I.IncompatibleRegExpUVFlags,O()):U===117&&B.includes("v")&&this.raise(I.IncompatibleRegExpUVFlags,O()),B.includes(R)&&this.raise(I.DuplicateRegExpFlags,O());else if($i(U)||U===92)this.raise(I.MalformedRegExpFlags,O());else break;++A,B+=R}this.state.pos=A,this.finishToken(138,{pattern:S,flags:B})}readInt(u,a,p=!1,m=!0){let{n:A,pos:S}=fm(this.input,this.state.pos,this.state.lineStart,this.state.curLine,u,a,p,m,this.errorHandlers_readInt,!1);return this.state.pos=S,A}readRadixNumber(u){let a=this.state.pos,p=this.state.curPosition(),m=!1;this.state.pos+=2;let A=this.readInt(u);A==null&&this.raise(I.InvalidDigit,g(p,2),{radix:u});let S=this.input.charCodeAt(this.state.pos);if(S===110)++this.state.pos,m=!0;else if(S===109)throw this.raise(I.InvalidDecimal,p);if(ur(this.codePointAtPos(this.state.pos)))throw this.raise(I.NumberIdentifier,this.state.curPosition());if(m){let B=this.input.slice(a,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,B);return}this.finishToken(135,A)}readNumber(u){let a=this.state.pos,p=this.state.curPosition(),m=!1,A=!1,S=!1;!u&&this.readInt(10)===null&&this.raise(I.InvalidNumber,this.state.curPosition());let B=this.state.pos-a>=2&&this.input.charCodeAt(a)===48;if(B){let ne=this.input.slice(a,this.state.pos);if(this.recordStrictModeErrors(I.StrictOctalLiteral,p),!this.state.strict){let De=ne.indexOf("_");De>0&&this.raise(I.ZeroDigitNumericSeparator,g(p,De))}S=B&&!/[89]/.test(ne)}let O=this.input.charCodeAt(this.state.pos);if(O===46&&!S&&(++this.state.pos,this.readInt(10),m=!0,O=this.input.charCodeAt(this.state.pos)),(O===69||O===101)&&!S&&(O=this.input.charCodeAt(++this.state.pos),(O===43||O===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(I.InvalidOrMissingExponent,p),m=!0,O=this.input.charCodeAt(this.state.pos)),O===110&&((m||B)&&this.raise(I.InvalidBigIntLiteral,p),++this.state.pos,A=!0),ur(this.codePointAtPos(this.state.pos)))throw this.raise(I.NumberIdentifier,this.state.curPosition());let U=this.input.slice(a,this.state.pos).replace(/[_mn]/g,"");if(A){this.finishToken(136,U);return}let R=S?parseInt(U,8):parseFloat(U);this.finishToken(135,R)}readCodePoint(u){let{code:a,pos:p}=mm(this.input,this.state.pos,this.state.lineStart,this.state.curLine,u,this.errorHandlers_readCodePoint);return this.state.pos=p,a}readString(u){let{str:a,pos:p,curLine:m,lineStart:A}=dm(u===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=p+1,this.state.lineStart=A,this.state.curLine=m,this.finishToken(134,a)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let u=this.input[this.state.pos],{str:a,firstInvalidLoc:p,pos:m,curLine:A,lineStart:S}=dm("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=m+1,this.state.lineStart=S,this.state.curLine=A,p&&(this.state.firstInvalidTemplateEscapePos=new D(p.curLine,p.pos-p.lineStart,this.sourceToOffsetPos(p.pos))),this.input.codePointAt(m)===96?this.finishToken(24,p?null:u+a+"`"):(this.state.pos++,this.finishToken(25,p?null:u+a+"${"))}recordStrictModeErrors(u,a){let p=a.index;this.state.strict&&!this.state.strictErrors.has(p)?this.raise(u,a):this.state.strictErrors.set(p,[u,a])}readWord1(u){this.state.containsEsc=!1;let a="",p=this.state.pos,m=this.state.pos;for(u!==void 0&&(this.state.pos+=u<=65535?1:2);this.state.pos<this.length;){let A=this.codePointAtPos(this.state.pos);if($i(A))this.state.pos+=A<=65535?1:2;else if(A===92){this.state.containsEsc=!0,a+=this.input.slice(m,this.state.pos);let S=this.state.curPosition(),B=this.state.pos===p?ur:$i;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(I.MissingUnicodeEscape,this.state.curPosition()),m=this.state.pos-1;continue}++this.state.pos;let O=this.readCodePoint(!0);O!==null&&(B(O)||this.raise(I.EscapedCharNotAnIdentifier,S),a+=String.fromCodePoint(O)),m=this.state.pos}else break}return a+this.input.slice(m,this.state.pos)}readWord(u){let a=this.readWord1(u),p=G.get(a);p!==void 0?this.finishToken(p,Jt(p)):this.finishToken(132,a)}checkKeywordEscapes(){let{type:u}=this.state;yt(u)&&this.state.containsEsc&&this.raise(I.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Jt(u)})}raise(u,a,p={}){let m=a instanceof D?a:a.loc.start,A=u(m,p);if(!(this.optionFlags&2048))throw A;return this.isLookahead||this.state.errors.push(A),A}raiseOverwrite(u,a,p={}){let m=a instanceof D?a:a.loc.start,A=m.index,S=this.state.errors;for(let B=S.length-1;B>=0;B--){let O=S[B];if(O.loc.index===A)return S[B]=u(m,p);if(O.loc.index<A)break}return this.raise(u,a,p)}updateContext(u){}unexpected(u,a){throw this.raise(I.UnexpectedToken,u??this.state.startLoc,{expected:a?Jt(a):null})}expectPlugin(u,a){if(this.hasPlugin(u))return!0;throw this.raise(I.MissingPlugin,a??this.state.startLoc,{missingPlugin:[u]})}expectOnePlugin(u){if(!u.some(a=>this.hasPlugin(a)))throw this.raise(I.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:u})}errorBuilder(u){return(a,p,m)=>{this.raise(u,Ia(a,p,m))}}errorHandlers_readInt={invalidDigit:(u,a,p,m)=>this.optionFlags&2048?(this.raise(I.InvalidDigit,Ia(u,a,p),{radix:m}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(I.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(I.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(I.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(I.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(u,a,p)=>{this.recordStrictModeErrors(I.StrictNumericEscape,Ia(u,a,p))},unterminated:(u,a,p)=>{throw this.raise(I.UnterminatedString,Ia(u-1,a,p))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(I.StrictNumericEscape),unterminated:(u,a,p)=>{throw this.raise(I.UnterminatedTemplate,Ia(u,a,p))}})},Pb=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},kb=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(u){this.parser=u}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Pb)}exit(){let u=this.stack.pop(),a=this.current();for(let[p,m]of Array.from(u.undefinedPrivateNames))a?a.undefinedPrivateNames.has(p)||a.undefinedPrivateNames.set(p,m):this.parser.raise(I.InvalidPrivateFieldResolution,m,{identifierName:p})}declarePrivateName(u,a,p){let{privateNames:m,loneAccessors:A,undefinedPrivateNames:S}=this.current(),B=m.has(u);if(a&3){let O=B&&A.get(u);if(O){let U=O&4,R=a&4,ne=O&3,De=a&3;B=ne===De||U!==R,B||A.delete(u)}else B||A.set(u,a)}B&&this.parser.raise(I.PrivateNameRedeclaration,p,{identifierName:u}),m.add(u),S.delete(u)}usePrivateName(u,a){let p;for(p of this.stack)if(p.privateNames.has(u))return;p?p.undefinedPrivateNames.set(u,a):this.parser.raise(I.InvalidPrivateFieldResolution,a,{identifierName:u})}},Tu=class{constructor(u=0){this.type=u}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},ym=class extends Tu{declarationErrors=new Map;constructor(u){super(u)}recordDeclarationError(u,a){let p=a.index;this.declarationErrors.set(p,[u,a])}clearDeclarationError(u){this.declarationErrors.delete(u)}iterateErrors(u){this.declarationErrors.forEach(u)}},Ib=class{parser;stack=[new Tu];constructor(u){this.parser=u}enter(u){this.stack.push(u)}exit(){this.stack.pop()}recordParameterInitializerError(u,a){let p=a.loc.start,{stack:m}=this,A=m.length-1,S=m[A];for(;!S.isCertainlyParameterDeclaration();){if(S.canBeArrowParameterDeclaration())S.recordDeclarationError(u,p);else return;S=m[--A]}this.parser.raise(u,p)}recordArrowParameterBindingError(u,a){let{stack:p}=this,m=p[p.length-1],A=a.loc.start;if(m.isCertainlyParameterDeclaration())this.parser.raise(u,A);else if(m.canBeArrowParameterDeclaration())m.recordDeclarationError(u,A);else return}recordAsyncArrowParametersError(u){let{stack:a}=this,p=a.length-1,m=a[p];for(;m.canBeArrowParameterDeclaration();)m.type===2&&m.recordDeclarationError(I.AwaitBindingIdentifier,u),m=a[--p]}validateAsPattern(){let{stack:u}=this,a=u[u.length-1];a.canBeArrowParameterDeclaration()&&a.iterateErrors(([p,m])=>{this.parser.raise(p,m);let A=u.length-2,S=u[A];for(;S.canBeArrowParameterDeclaration();)S.clearDeclarationError(m.index),S=u[--A]})}};function Bb(){return new Tu(3)}function Nb(){return new ym(1)}function _b(){return new ym(2)}function Dm(){return new Tu}var Lb=class extends Sb{addExtra(u,a,p,m=!0){if(!u)return;let{extra:A}=u;A==null&&(A={},u.extra=A),m?A[a]=p:Object.defineProperty(A,a,{enumerable:m,value:p})}isContextual(u){return this.state.type===u&&!this.state.containsEsc}isUnparsedContextual(u,a){if(this.input.startsWith(a,u)){let p=this.input.charCodeAt(u+a.length);return!($i(p)||(p&64512)===55296)}return!1}isLookaheadContextual(u){let a=this.nextTokenStart();return this.isUnparsedContextual(a,u)}eatContextual(u){return this.isContextual(u)?(this.next(),!0):!1}expectContextual(u,a){if(!this.eatContextual(u)){if(a!=null)throw this.raise(a,this.state.startLoc);this.unexpected(null,u)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return pm(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return pm(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(u=!0){(u?this.isLineTerminator():this.eat(13))||this.raise(I.MissingSemicolon,this.state.lastTokEndLoc)}expect(u,a){this.eat(u)||this.unexpected(a,u)}tryParse(u,a=this.state.clone()){let p={node:null};try{let m=u((A=null)=>{throw p.node=A,p});if(this.state.errors.length>a.errors.length){let A=this.state;return this.state=a,this.state.tokensLength=A.tokensLength,{node:m,error:A.errors[a.errors.length],thrown:!1,aborted:!1,failState:A}}return{node:m,error:null,thrown:!1,aborted:!1,failState:null}}catch(m){let A=this.state;if(this.state=a,m instanceof SyntaxError)return{node:null,error:m,thrown:!0,aborted:!1,failState:A};if(m===p)return{node:p.node,error:null,thrown:!1,aborted:!0,failState:A};throw m}}checkExpressionErrors(u,a){if(!u)return!1;let{shorthandAssignLoc:p,doubleProtoLoc:m,privateKeyLoc:A,optionalParametersLoc:S,voidPatternLoc:B}=u,O=!!p||!!m||!!S||!!A||!!B;if(!a)return O;p!=null&&this.raise(I.InvalidCoverInitializedName,p),m!=null&&this.raise(I.DuplicateProto,m),A!=null&&this.raise(I.UnexpectedPrivateField,A),S!=null&&this.unexpected(S),B!=null&&this.raise(I.InvalidCoverDiscardElement,B)}isLiteralPropertyName(){return xt(this.state.type)}isPrivateName(u){return u.type==="PrivateName"}getPrivateNameSV(u){return u.id.name}hasPropertyAsPrivateName(u){return(u.type==="MemberExpression"||u.type==="OptionalMemberExpression")&&this.isPrivateName(u.property)}isObjectProperty(u){return u.type==="ObjectProperty"}isObjectMethod(u){return u.type==="ObjectMethod"}initializeScopes(u=this.options.sourceType==="module"){let a=this.state.labels;this.state.labels=[];let p=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let m=this.inModule;this.inModule=u;let A=this.scope,S=this.getScopeHandler();this.scope=new S(this,u);let B=this.prodParam;this.prodParam=new gb;let O=this.classScope;this.classScope=new kb(this);let U=this.expressionScope;return this.expressionScope=new Ib(this),()=>{this.state.labels=a,this.exportedIdentifiers=p,this.inModule=m,this.scope=A,this.prodParam=B,this.classScope=O,this.expressionScope=U}}enterInitialScopes(){let u=0;(this.inModule||this.optionFlags&1)&&(u|=2),this.optionFlags&32&&(u|=1);let a=!this.inModule&&this.options.sourceType==="commonjs";(a||this.optionFlags&2)&&(u|=4),this.prodParam.enter(u);let p=a?514:1;this.optionFlags&4&&(p|=512),this.optionFlags&16&&(p|=48),this.scope.enter(p)}checkDestructuringPrivate(u){let{privateKeyLoc:a}=u;a!==null&&this.expectPlugin("destructuringPrivate",a)}},vu=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Sp=class{constructor(u,a,p){this.start=a,this.end=0,this.loc=new y(p),u?.optionFlags&128&&(this.range=[a,0]),u?.filename&&(this.loc.filename=u.filename)}type=""},gm=Sp.prototype,Ob=class extends Lb{startNode(){let u=this.state.startLoc;return new Sp(this,u.index,u)}startNodeAt(u){return new Sp(this,u.index,u)}startNodeAtNode(u){return this.startNodeAt(u.loc.start)}finishNode(u,a){return this.finishNodeAt(u,a,this.state.lastTokEndLoc)}finishNodeAt(u,a,p){return u.type=a,u.end=p.index,u.loc.end=p,this.optionFlags&128&&(u.range[1]=p.index),this.optionFlags&4096&&this.processComment(u),u}resetStartLocation(u,a){u.start=a.index,u.loc.start=a,this.optionFlags&128&&(u.range[0]=a.index)}resetEndLocation(u,a=this.state.lastTokEndLoc){u.end=a.index,u.loc.end=a,this.optionFlags&128&&(u.range[1]=a.index)}resetStartLocationFromNode(u,a){this.resetStartLocation(u,a.loc.start)}castNodeTo(u,a){return u.type=a,u}cloneIdentifier(u){let{type:a,start:p,end:m,loc:A,range:S,name:B}=u,O=Object.create(gm);return O.type=a,O.start=p,O.end=m,O.loc=A,O.range=S,O.name=B,u.extra&&(O.extra=u.extra),O}cloneStringLiteral(u){let{type:a,start:p,end:m,loc:A,range:S,extra:B}=u,O=Object.create(gm);return O.type=a,O.start=p,O.end=m,O.loc=A,O.range=S,O.extra=B,O.value=u.value,O}},Pp=u=>u.type==="ParenthesizedExpression"?Pp(u.expression):u,$b=class extends Ob{toAssignable(u,a=!1){let p;switch((u.type==="ParenthesizedExpression"||u.extra?.parenthesized)&&(p=Pp(u),a?p.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(I.InvalidParenthesizedAssignment,u):p.type!=="CallExpression"&&p.type!=="MemberExpression"&&!this.isOptionalMemberExpression(p)&&this.raise(I.InvalidParenthesizedAssignment,u):this.raise(I.InvalidParenthesizedAssignment,u)),u.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(u,"ObjectPattern");for(let m=0,A=u.properties.length,S=A-1;m<A;m++){let B=u.properties[m],O=m===S;this.toAssignableObjectExpressionProp(B,O,a),O&&B.type==="RestElement"&&u.extra?.trailingCommaLoc&&this.raise(I.RestTrailingComma,u.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:m,value:A}=u;this.isPrivateName(m)&&this.classScope.usePrivateName(this.getPrivateNameSV(m),m.loc.start),this.toAssignable(A,a);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(u,"ArrayPattern"),this.toAssignableList(u.elements,u.extra?.trailingCommaLoc,a);break;case"AssignmentExpression":u.operator!=="="&&this.raise(I.MissingEqInAssignment,u.left.loc.end),this.castNodeTo(u,"AssignmentPattern"),delete u.operator,u.left.type==="VoidPattern"&&this.raise(I.VoidPatternInitializer,u.left),this.toAssignable(u.left,a);break;case"ParenthesizedExpression":this.toAssignable(p,a);break}}toAssignableObjectExpressionProp(u,a,p){if(u.type==="ObjectMethod")this.raise(u.kind==="get"||u.kind==="set"?I.PatternHasAccessor:I.PatternHasMethod,u.key);else if(u.type==="SpreadElement"){this.castNodeTo(u,"RestElement");let m=u.argument;this.checkToRestConversion(m,!1),this.toAssignable(m,p),a||this.raise(I.RestTrailingComma,u)}else this.toAssignable(u,p)}toAssignableList(u,a,p){let m=u.length-1;for(let A=0;A<=m;A++){let S=u[A];S&&(this.toAssignableListItem(u,A,p),S.type==="RestElement"&&(A<m?this.raise(I.RestTrailingComma,S):a&&this.raise(I.RestTrailingComma,a)))}}toAssignableListItem(u,a,p){let m=u[a];if(m.type==="SpreadElement"){this.castNodeTo(m,"RestElement");let A=m.argument;this.checkToRestConversion(A,!0),this.toAssignable(A,p)}else this.toAssignable(m,p)}isAssignable(u,a){switch(u.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let p=u.properties.length-1;return u.properties.every((m,A)=>m.type!=="ObjectMethod"&&(A===p||m.type!=="SpreadElement")&&this.isAssignable(m))}case"ObjectProperty":return this.isAssignable(u.value);case"SpreadElement":return this.isAssignable(u.argument);case"ArrayExpression":return u.elements.every(p=>p===null||this.isAssignable(p));case"AssignmentExpression":return u.operator==="=";case"ParenthesizedExpression":return this.isAssignable(u.expression);case"MemberExpression":case"OptionalMemberExpression":return!a;default:return!1}}toReferencedList(u,a){return u}toReferencedListDeep(u,a){this.toReferencedList(u,a);for(let p of u)p?.type==="ArrayExpression"&&this.toReferencedListDeep(p.elements)}parseSpread(u){let a=this.startNode();return this.next(),a.argument=this.parseMaybeAssignAllowIn(u,void 0),this.finishNode(a,"SpreadElement")}parseRestBinding(){let u=this.startNode();this.next();let a=this.parseBindingAtom();return a.type==="VoidPattern"&&this.raise(I.UnexpectedVoidPattern,a),u.argument=a,this.finishNode(u,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let u=this.startNode();return this.next(),u.elements=this.parseBindingList(3,93,1),this.finishNode(u,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(u,a,p){let m=p&1,A=[],S=!0;for(;!this.eat(u);)if(S?S=!1:this.expect(12),m&&this.match(12))A.push(null);else{if(this.eat(u))break;if(this.match(21)){let B=this.parseRestBinding();if(p&2&&(B=this.parseFunctionParamType(B)),A.push(B),!this.checkCommaAfterRest(a)){this.expect(u);break}}else{let B=[];if(p&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(I.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)B.push(this.parseDecorator());A.push(this.parseBindingElement(p,B))}}return A}parseBindingRestProperty(u){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(u.argument=this.parseVoidPattern(null),this.raise(I.UnexpectedVoidPattern,u.argument)):u.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(u,"RestElement")}parseBindingProperty(){let{type:u,startLoc:a}=this.state;if(u===21)return this.parseBindingRestProperty(this.startNode());let p=this.startNode();return u===139?(this.expectPlugin("destructuringPrivate",a),this.classScope.usePrivateName(this.state.value,a),p.key=this.parsePrivateName()):this.parsePropertyName(p),p.method=!1,this.parseObjPropValue(p,a,!1,!1,!0,!1)}parseBindingElement(u,a){let p=this.parseMaybeDefault();return u&2&&this.parseFunctionParamType(p),a.length&&(p.decorators=a,this.resetStartLocationFromNode(p,a[0])),this.parseMaybeDefault(p.loc.start,p)}parseFunctionParamType(u){return u}parseMaybeDefault(u,a){if(u??(u=this.state.startLoc),a=a??this.parseBindingAtom(),!this.eat(29))return a;let p=this.startNodeAt(u);return a.type==="VoidPattern"&&this.raise(I.VoidPatternInitializer,a),p.left=a,p.right=this.parseMaybeAssignAllowIn(),this.finishNode(p,"AssignmentPattern")}isValidLVal(u,a,p,m){switch(u){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!a&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(u){return u.type==="OptionalMemberExpression"}checkLVal(u,a,p=64,m=!1,A=!1,S=!1,B=!1){let O=u.type;if(this.isObjectMethod(u))return;let U=this.isOptionalMemberExpression(u);if(U||O==="MemberExpression"){U&&(this.expectPlugin("optionalChainingAssign",u.loc.start),a.type!=="AssignmentExpression"&&this.raise(I.InvalidLhsOptionalChaining,u,{ancestor:a})),p!==64&&this.raise(I.InvalidPropertyBindingPattern,u);return}if(O==="Identifier"){this.checkIdentifier(u,p,A);let{name:qt}=u;m&&(m.has(qt)?this.raise(I.ParamDupe,u):m.add(qt));return}else O==="VoidPattern"&&a.type==="CatchClause"&&this.raise(I.VoidPatternCatchClauseParam,u);let R=Pp(u);B||(B=R.type==="CallExpression"&&(R.callee.type==="Import"||R.callee.type==="Super"));let ne=this.isValidLVal(O,B,!(S||u.extra?.parenthesized)&&a.type==="AssignmentExpression",p);if(ne===!0)return;if(ne===!1){let qt=p===64?I.InvalidLhs:I.InvalidLhsBinding;this.raise(qt,u,{ancestor:a});return}let De,_e;typeof ne=="string"?(De=ne,_e=O==="ParenthesizedExpression"):[De,_e]=ne;let Re=O==="ArrayPattern"||O==="ObjectPattern"?{type:O}:a,It=u[De];if(Array.isArray(It))for(let qt of It)qt&&this.checkLVal(qt,Re,p,m,A,_e,!0);else It&&this.checkLVal(It,Re,p,m,A,_e,B)}checkIdentifier(u,a,p=!1){this.state.strict&&(p?um(u.name,this.inModule):om(u.name))&&(a===64?this.raise(I.StrictEvalArguments,u,{referenceName:u.name}):this.raise(I.StrictEvalArgumentsBinding,u,{bindingName:u.name})),a&8192&&u.name==="let"&&this.raise(I.LetInLexicalBinding,u),a&64||this.declareNameFromIdentifier(u,a)}declareNameFromIdentifier(u,a){this.scope.declareName(u.name,a,u.loc.start)}checkToRestConversion(u,a){switch(u.type){case"ParenthesizedExpression":this.checkToRestConversion(u.expression,a);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(a)break;default:this.raise(I.InvalidRestAssignmentPattern,u)}}checkCommaAfterRest(u){return this.match(12)?(this.raise(this.lookaheadCharCode()===u?I.RestTrailingComma:I.ElementAfterRest,this.state.startLoc),!0):!1}},kp=/in(?:stanceof)?|as|satisfies/y;function Mb(u){if(u==null)throw new Error(`Unexpected ${u} value.`);return u}function xm(u){if(!u)throw new Error("Assert fail")}var we=L`typescript`({AbstractMethodHasImplementation:({methodName:u})=>`Method '${u}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:u})=>`Property '${u}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:u})=>`'declare' is not allowed in ${u}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:u})=>`Accessibility modifier already seen: '${u}'.`,DuplicateModifier:({modifier:u})=>`Duplicate modifier: '${u}'.`,EmptyHeritageClauseType:({token:u})=>`'${u}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:u})=>`'${u[0]}' modifier cannot be used with '${u[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:u})=>`Index signatures cannot have an accessibility modifier ('${u}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:u})=>`'${u}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:u=>`'${u}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:u})=>`'${u}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:u})=>`'${u}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:u})=>`'${u}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:u=>`'${u}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:u})=>`'${u[0]}' modifier must precede '${u[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:u})=>`Private elements cannot have an accessibility modifier ('${u}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:u})=>`Single type parameter ${u} should have a trailing comma. Example usage: <${u},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:u})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${u}.`,UsingDeclarationInAmbientContext:u=>`'${u}' declarations are not allowed in ambient contexts.`});function Rb(u){switch(u){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Em(u){return u==="private"||u==="public"||u==="protected"}function jb(u){return u==="in"||u==="out"}function Ip(u){if(u.extra?.parenthesized)return!1;switch(u.type){case"Identifier":return!0;case"MemberExpression":return!u.computed&&Ip(u.object);case"TSInstantiationExpression":return Ip(u.expression);default:return!1}}var Ub=u=>class extends u{getScopeHandler(){return Db}tsIsIdentifier(){return Me(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(a,p,m){if(!Me(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let A=this.state.value;if(a.includes(A)){if(m&&this.match(106)||p&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return A}}tsParseModifiers({allowedModifiers:a,disallowedModifiers:p,stopOnStartOfClassStaticBlock:m,errorTemplate:A=we.InvalidModifierOnTypeMember},S){let B=(U,R,ne,De)=>{R===ne&&S[De]&&this.raise(we.InvalidModifiersOrder,U,{orderedModifiers:[ne,De]})},O=(U,R,ne,De)=>{(S[ne]&&R===De||S[De]&&R===ne)&&this.raise(we.IncompatibleModifiers,U,{modifiers:[ne,De]})};for(;;){let{startLoc:U}=this.state,R=this.tsParseModifier(a.concat(p??[]),m,S.static);if(!R)break;Em(R)?S.accessibility?this.raise(we.DuplicateAccessibilityModifier,U,{modifier:R}):(B(U,R,R,"override"),B(U,R,R,"static"),B(U,R,R,"readonly"),S.accessibility=R):jb(R)?(S[R]&&this.raise(we.DuplicateModifier,U,{modifier:R}),S[R]=!0,B(U,R,"in","out")):(Object.prototype.hasOwnProperty.call(S,R)?this.raise(we.DuplicateModifier,U,{modifier:R}):(B(U,R,"static","readonly"),B(U,R,"static","override"),B(U,R,"override","readonly"),B(U,R,"abstract","override"),O(U,R,"declare","override"),O(U,R,"static","abstract")),S[R]=!0),p?.includes(R)&&this.raise(A,U,{modifier:R})}}tsIsListTerminator(a){switch(a){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(a,p){let m=[];for(;!this.tsIsListTerminator(a);)m.push(p());return m}tsParseDelimitedList(a,p,m){return Mb(this.tsParseDelimitedListWorker(a,p,!0,m))}tsParseDelimitedListWorker(a,p,m,A){let S=[],B=-1;for(;!this.tsIsListTerminator(a);){B=-1;let O=p();if(O==null)return;if(S.push(O),this.eat(12)){B=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(a))break;m&&this.expect(12);return}return A&&(A.value=B),S}tsParseBracketedList(a,p,m,A,S){A||(m?this.expect(0):this.expect(47));let B=this.tsParseDelimitedList(a,p,S);return m?this.expect(3):this.expect(48),B}tsParseImportType(){let a=this.startNode();return this.expect(83),this.expect(10),this.match(134)?a.argument=this.tsParseLiteralTypeNode():(this.raise(we.UnsupportedImportTypeArgument,this.state.startLoc),a.argument=this.tsParseNonConditionalType()),this.eat(12)?a.options=this.tsParseImportTypeOptions():a.options=null,this.expect(11),this.eat(16)&&(a.qualifier=this.tsParseEntityName(3)),this.match(47)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSImportType")}tsParseImportTypeOptions(){let a=this.startNode();this.expect(5);let p=this.startNode();return this.isContextual(76)?(p.method=!1,p.key=this.parseIdentifier(!0),p.computed=!1,p.shorthand=!1):this.unexpected(null,76),this.expect(14),p.value=this.tsParseImportTypeWithPropertyValue(),a.properties=[this.finishObjectProperty(p)],this.eat(12),this.expect(8),this.finishNode(a,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let a=this.startNode(),p=[];for(this.expect(5);!this.match(8);){let m=this.state.type;Me(m)||m===134?p.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return a.properties=p,this.next(),this.finishNode(a,"ObjectExpression")}tsParseEntityName(a){let p;if(a&1&&this.match(78))if(a&2)p=this.parseIdentifier(!0);else{let m=this.startNode();this.next(),p=this.finishNode(m,"ThisExpression")}else p=this.parseIdentifier(!!(a&1));for(;this.eat(16);){let m=this.startNodeAtNode(p);m.left=p,m.right=this.parseIdentifier(!!(a&1)),p=this.finishNode(m,"TSQualifiedName")}return p}tsParseTypeReference(){let a=this.startNode();return a.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSTypeReference")}tsParseThisTypePredicate(a){this.next();let p=this.startNodeAtNode(a);return p.parameterName=a,p.typeAnnotation=this.tsParseTypeAnnotation(!1),p.asserts=!1,this.finishNode(p,"TSTypePredicate")}tsParseThisTypeNode(){let a=this.startNode();return this.next(),this.finishNode(a,"TSThisType")}tsParseTypeQuery(){let a=this.startNode();return this.expect(87),this.match(83)?a.exprName=this.tsParseImportType():a.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(a.typeArguments=this.tsParseTypeArguments()),this.finishNode(a,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:we.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:we.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:we.InvalidModifierOnTypeParameter});tsParseTypeParameter(a){let p=this.startNode();return a(p),p.name=this.tsParseTypeParameterName(),p.constraint=this.tsEatThenParseType(81),p.default=this.tsEatThenParseType(29),this.finishNode(p,"TSTypeParameter")}tsTryParseTypeParameters(a){if(this.match(47))return this.tsParseTypeParameters(a)}tsParseTypeParameters(a){let p=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let m={value:-1};return p.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,a),!1,!0,m),p.params.length===0&&this.raise(we.EmptyTypeParameters,p),m.value!==-1&&this.addExtra(p,"trailingComma",m.value),this.finishNode(p,"TSTypeParameterDeclaration")}tsFillSignature(a,p){let m=a===19,A="params",S="returnType";p.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),p[A]=this.tsParseBindingListForSignature(),m?p[S]=this.tsParseTypeOrTypePredicateAnnotation(a):this.match(a)&&(p[S]=this.tsParseTypeOrTypePredicateAnnotation(a))}tsParseBindingListForSignature(){let a=super.parseBindingList(11,41,2);for(let p of a){let{type:m}=p;(m==="AssignmentPattern"||m==="TSParameterProperty")&&this.raise(we.UnsupportedSignatureParameterKind,p,{type:m})}return a}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(a,p){return this.tsFillSignature(14,p),this.tsParseTypeMemberSemicolon(),this.finishNode(p,a)}tsIsUnambiguouslyIndexSignature(){return this.next(),Me(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(a){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let p=this.parseIdentifier();p.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(p),this.expect(3),a.parameters=[p];let m=this.tsTryParseTypeAnnotation();return m&&(a.typeAnnotation=m),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSIndexSignature")}tsParsePropertyOrMethodSignature(a,p){if(this.eat(17)&&(a.optional=!0),this.match(10)||this.match(47)){p&&this.raise(we.ReadonlyForMethodSignature,a);let m=a;m.kind&&this.match(47)&&this.raise(we.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,m),this.tsParseTypeMemberSemicolon();let A="params",S="returnType";if(m.kind==="get")m[A].length>0&&(this.raise(I.BadGetterArity,this.state.curPosition()),this.isThisParam(m[A][0])&&this.raise(we.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(m.kind==="set"){if(m[A].length!==1)this.raise(I.BadSetterArity,this.state.curPosition());else{let B=m[A][0];this.isThisParam(B)&&this.raise(we.AccessorCannotDeclareThisParameter,this.state.curPosition()),B.type==="Identifier"&&B.optional&&this.raise(we.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),B.type==="RestElement"&&this.raise(we.SetAccessorCannotHaveRestParameter,this.state.curPosition())}m[S]&&this.raise(we.SetAccessorCannotHaveReturnType,m[S])}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}else{let m=a;p&&(m.readonly=!0);let A=this.tsTryParseTypeAnnotation();return A&&(m.typeAnnotation=A),this.tsParseTypeMemberSemicolon(),this.finishNode(m,"TSPropertySignature")}}tsParseTypeMember(){let a=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",a);if(this.match(77)){let m=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",a):(a.key=this.createIdentifier(m,"new"),this.tsParsePropertyOrMethodSignature(a,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},a),this.tsTryParseIndexSignature(a)||(super.parsePropertyName(a),!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.tsTokenCanFollowModifier()&&(a.kind=a.key.name,super.parsePropertyName(a),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(a,!!a.readonly))}tsParseTypeLiteral(){let a=this.startNode();return a.members=this.tsParseObjectTypeMembers(),this.finishNode(a,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let a=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),a}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let a=this.startNode();return this.expect(5),this.match(53)?(a.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(a.readonly=!0),this.expect(0),a.key=this.tsParseTypeParameterName(),a.constraint=this.tsExpectThenParseType(58),a.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(a.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(a.optional=!0),a.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(a,"TSMappedType")}tsParseTupleType(){let a=this.startNode();a.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let p=!1;return a.elementTypes.forEach(m=>{let{type:A}=m;p&&A!=="TSRestType"&&A!=="TSOptionalType"&&!(A==="TSNamedTupleMember"&&m.optional)&&this.raise(we.OptionalTypeBeforeRequired,m),p||(p=A==="TSNamedTupleMember"&&m.optional||A==="TSOptionalType")}),this.finishNode(a,"TSTupleType")}tsParseTupleElementType(){let a=this.state.startLoc,p=this.eat(21),{startLoc:m}=this.state,A,S,B,O,U=at(this.state.type)?this.lookaheadCharCode():null;if(U===58)A=!0,B=!1,S=this.parseIdentifier(!0),this.expect(14),O=this.tsParseType();else if(U===63){B=!0;let R=this.state.value,ne=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(A=!0,S=this.createIdentifier(this.startNodeAt(m),R),this.expect(17),this.expect(14),O=this.tsParseType()):(A=!1,O=ne,this.expect(17))}else O=this.tsParseType(),B=this.eat(17),A=this.eat(14);if(A){let R;S?(R=this.startNodeAt(m),R.optional=B,R.label=S,R.elementType=O,this.eat(17)&&(R.optional=!0,this.raise(we.TupleOptionalAfterType,this.state.lastTokStartLoc))):(R=this.startNodeAt(m),R.optional=B,this.raise(we.InvalidTupleMemberLabel,O),R.label=O,R.elementType=this.tsParseType()),O=this.finishNode(R,"TSNamedTupleMember")}else if(B){let R=this.startNodeAt(m);R.typeAnnotation=O,O=this.finishNode(R,"TSOptionalType")}if(p){let R=this.startNodeAt(a);R.typeAnnotation=O,O=this.finishNode(R,"TSRestType")}return O}tsParseParenthesizedType(){let a=this.startNode();return this.expect(10),a.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(a,"TSParenthesizedType")}tsParseFunctionOrConstructorType(a,p){let m=this.startNode();return a==="TSConstructorType"&&(m.abstract=!!p,p&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,m)),this.finishNode(m,a)}tsParseLiteralTypeNode(){let a=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:a.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(a,"TSLiteralType")}tsParseTemplateLiteralType(){{let a=this.state.startLoc,p=this.parseTemplateElement(!1),m=[p];if(p.tail){let A=this.startNodeAt(a),S=this.startNodeAt(a);return S.expressions=[],S.quasis=m,A.literal=this.finishNode(S,"TemplateLiteral"),this.finishNode(A,"TSLiteralType")}else{let A=[];for(;!p.tail;)A.push(this.tsParseType()),this.readTemplateContinuation(),m.push(p=this.parseTemplateElement(!1));let S=this.startNodeAt(a);return S.types=A,S.quasis=m,this.finishNode(S,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let a=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(a):a}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let a=this.startNode(),p=this.lookahead();return p.type!==135&&p.type!==136&&this.unexpected(),a.literal=this.parseMaybeUnary(),this.finishNode(a,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let a=this.state.startLoc;this.next();let p=this.tsParseType();return this.expect(11),this.addExtra(p,"parenthesized",!0),this.addExtra(p,"parenStart",a.index),p}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:a}=this.state;if(Me(a)||a===88||a===84){let p=a===88?"TSVoidKeyword":a===84?"TSNullKeyword":Rb(this.state.value);if(p!==void 0&&this.lookaheadCharCode()!==46){let m=this.startNode();return this.next(),this.finishNode(m,p)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:a}=this.state,p=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let m=this.startNodeAt(a);m.elementType=p,this.expect(3),p=this.finishNode(m,"TSArrayType")}else{let m=this.startNodeAt(a);m.objectType=p,m.indexType=this.tsParseType(),this.expect(3),p=this.finishNode(m,"TSIndexedAccessType")}return p}tsParseTypeOperator(){let a=this.startNode(),p=this.state.value;return this.next(),a.operator=p,a.typeAnnotation=this.tsParseTypeOperatorOrHigher(),p==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(a),this.finishNode(a,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(a){switch(a.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(we.UnexpectedReadonly,a)}}tsParseInferType(){let a=this.startNode();this.expectContextual(115);let p=this.startNode();return p.name=this.tsParseTypeParameterName(),p.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),a.typeParameter=this.finishNode(p,"TSTypeParameter"),this.finishNode(a,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let a=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return a}}tsParseTypeOperatorOrHigher(){return vs(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(a,p,m){let A=this.startNode(),S=this.eat(m),B=[];do B.push(p());while(this.eat(m));return B.length===1&&!S?B[0]:(A.types=B,this.finishNode(A,a))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Me(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:a}=this.state,p=a.length;try{return this.parseObjectLike(8,!0),a.length===p}catch{return!1}}if(this.match(0)){this.next();let{errors:a}=this.state,p=a.length;try{return super.parseBindingList(3,93,1),a.length===p}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(a){return this.tsInType(()=>{let p=this.startNode();this.expect(a);let m=this.startNode(),A=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(A&&this.match(78)){let O=this.tsParseThisTypeOrThisTypePredicate();return O.type==="TSThisType"?(m.parameterName=O,m.asserts=!0,m.typeAnnotation=null,O=this.finishNode(m,"TSTypePredicate")):(this.resetStartLocationFromNode(O,m),O.asserts=!0),p.typeAnnotation=O,this.finishNode(p,"TSTypeAnnotation")}let S=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!S)return A?(m.parameterName=this.parseIdentifier(),m.asserts=A,m.typeAnnotation=null,p.typeAnnotation=this.finishNode(m,"TSTypePredicate"),this.finishNode(p,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,p);let B=this.tsParseTypeAnnotation(!1);return m.parameterName=S,m.typeAnnotation=B,m.asserts=A,p.typeAnnotation=this.finishNode(m,"TSTypePredicate"),this.finishNode(p,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let a=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),a}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let a=this.state.containsEsc;return this.next(),!Me(this.state.type)&&!this.match(78)?!1:(a&&this.raise(I.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(a=!0,p=this.startNode()){return this.tsInType(()=>{a&&this.expect(14),p.typeAnnotation=this.tsParseType()}),this.finishNode(p,"TSTypeAnnotation")}tsParseType(){xm(this.state.inType);let a=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return a;let p=this.startNodeAtNode(a);return p.checkType=a,p.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),p.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),p.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(p,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(we.ReservedTypeAssertion,this.state.startLoc);let a=this.startNode();return a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),a.expression=this.parseMaybeUnary(),this.finishNode(a,"TSTypeAssertion")}tsParseHeritageClause(a){let p=this.state.startLoc,m=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let A=super.parseExprSubscripts();Ip(A)||this.raise(we.InvalidHeritageClauseType,A.loc.start,{token:a});let S=a==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(A.type==="TSInstantiationExpression")return A.type=S,A;let B=this.startNodeAtNode(A);return B.expression=A,(this.match(47)||this.match(51))&&(B.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(B,S)}});return m.length||this.raise(we.EmptyHeritageClauseType,p,{token:a}),m}tsParseInterfaceDeclaration(a,p={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),p.declare&&(a.declare=!0),Me(this.state.type)?(a.id=this.parseIdentifier(),this.checkIdentifier(a.id,130)):(a.id=null,this.raise(we.MissingInterfaceName,this.state.startLoc)),a.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(a.extends=this.tsParseHeritageClause("extends"));let m=this.startNode();return m.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),a.body=this.finishNode(m,"TSInterfaceBody"),this.finishNode(a,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(a){return a.id=this.parseIdentifier(),this.checkIdentifier(a.id,2),a.typeAnnotation=this.tsInType(()=>{if(a.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let p=this.startNode();return this.next(),this.finishNode(p,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(a,"TSTypeAliasDeclaration")}tsInTopLevelContext(a){if(this.curContext()!==X.brace){let p=this.state.context;this.state.context=[p[0]];try{return a()}finally{this.state.context=p}}else return a()}tsInType(a){let p=this.state.inType;this.state.inType=!0;try{return a()}finally{this.state.inType=p}}tsInDisallowConditionalTypesContext(a){let p=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return a()}finally{this.state.inDisallowConditionalTypesContext=p}}tsInAllowConditionalTypesContext(a){let p=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return a()}finally{this.state.inDisallowConditionalTypesContext=p}}tsEatThenParseType(a){if(this.match(a))return this.tsNextThenParseType()}tsExpectThenParseType(a){return this.tsInType(()=>(this.expect(a),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let a=this.startNode();return a.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(a.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(a,"TSEnumMember")}tsParseEnumDeclaration(a,p={}){return p.const&&(a.const=!0),p.declare&&(a.declare=!0),this.expectContextual(126),a.id=this.parseIdentifier(),this.checkIdentifier(a.id,a.const?8971:8459),a.body=this.tsParseEnumBody(),this.finishNode(a,"TSEnumDeclaration")}tsParseEnumBody(){let a=this.startNode();return this.expect(5),a.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(a,"TSEnumBody")}tsParseModuleBlock(){let a=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(a.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(a,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(a,p=!1){return a.id=this.tsParseEntityName(1),a.id.type==="Identifier"&&this.checkIdentifier(a.id,1024),this.scope.enter(1024),this.prodParam.enter(0),a.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(a,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(a){return this.isContextual(112)?(a.kind="global",a.id=this.parseIdentifier()):this.match(134)?(a.kind="module",a.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),a.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(a,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(a,p,m){a.id=p||this.parseIdentifier(),this.checkIdentifier(a.id,4096),this.expect(29);let A=this.tsParseModuleReference();return a.importKind==="type"&&A.type!=="TSExternalModuleReference"&&this.raise(we.ImportAliasHasImportType,A),a.moduleReference=A,this.semicolon(),this.finishNode(a,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let a=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),a.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(a,"TSExternalModuleReference")}tsLookAhead(a){let p=this.state.clone(),m=a();return this.state=p,m}tsTryParseAndCatch(a){let p=this.tryParse(m=>a()||m());if(!(p.aborted||!p.node))return p.error&&(this.state=p.failState),p.node}tsTryParse(a){let p=this.state.clone(),m=a();if(m!==void 0&&m!==!1)return m;this.state=p}tsTryParseDeclare(a){if(this.isLineTerminator())return;let p=this.state.type;return this.tsInAmbientContext(()=>{switch(p){case 68:return a.declare=!0,super.parseFunctionStatement(a,!1,!1);case 80:return a.declare=!0,this.parseClass(a,!0,!1);case 126:return this.tsParseEnumDeclaration(a,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(a);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(a.declare=!0,this.parseVarStatement(a,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(a,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(we.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),a.declare=!0,this.parseVarStatement(a,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(we.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),a.declare=!0,this.next(),this.parseVarStatement(a,"await using",!0);break;case 129:{let m=this.tsParseInterfaceDeclaration(a,{declare:!0});if(m)return m}default:if(Me(p))return this.tsParseDeclaration(a,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(a,p,m,A){switch(p){case 124:if(this.tsCheckLineTerminator(m)&&(this.match(80)||Me(this.state.type)))return this.tsParseAbstractDeclaration(a,A);break;case 127:if(this.tsCheckLineTerminator(m)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(a);if(Me(this.state.type))return a.kind="module",this.tsParseModuleOrNamespaceDeclaration(a)}break;case 128:if(this.tsCheckLineTerminator(m)&&Me(this.state.type))return a.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(a);break;case 130:if(this.tsCheckLineTerminator(m)&&Me(this.state.type))return this.tsParseTypeAliasDeclaration(a);break}}tsCheckLineTerminator(a){return a?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(a){if(!this.match(47))return;let p=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let m=this.tsTryParseAndCatch(()=>{let A=this.startNodeAt(a);return A.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(A),A.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),A});if(this.state.maybeInArrowParameters=p,!!m)return super.parseArrowExpression(m,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let a=this.startNode();return a.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),a.params.length===0?this.raise(we.EmptyTypeArguments,a):!this.state.inType&&this.curContext()===X.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(a,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return _i(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(a,p){let m=p.length?p[0].loc.start:this.state.startLoc,A={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},A);let S=A.accessibility,B=A.override,O=A.readonly;!(a&4)&&(S||O||B)&&this.raise(we.UnexpectedParameterModifier,m);let U=this.parseMaybeDefault();a&2&&this.parseFunctionParamType(U);let R=this.parseMaybeDefault(U.loc.start,U);if(S||O||B){let ne=this.startNodeAt(m);return p.length&&(ne.decorators=p),S&&(ne.accessibility=S),O&&(ne.readonly=O),B&&(ne.override=B),R.type!=="Identifier"&&R.type!=="AssignmentPattern"&&this.raise(we.UnsupportedParameterPropertyKind,ne),ne.parameter=R,this.finishNode(ne,"TSParameterProperty")}return p.length&&(U.decorators=p),R}isSimpleParameter(a){return a.type==="TSParameterProperty"&&super.isSimpleParameter(a.parameter)||super.isSimpleParameter(a)}tsDisallowOptionalPattern(a){for(let p of a.params)p.type!=="Identifier"&&p.optional&&!this.state.isAmbientContext&&this.raise(we.PatternIsOptional,p)}setArrowFunctionParameters(a,p,m){super.setArrowFunctionParameters(a,p,m),this.tsDisallowOptionalPattern(a)}parseFunctionBodyAndFinish(a,p,m=!1){this.match(14)&&(a.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let A=p==="FunctionDeclaration"?"TSDeclareFunction":p==="ClassMethod"||p==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return A&&!this.match(5)&&this.isLineTerminator()?this.finishNode(a,A):A==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(we.DeclareFunctionHasImplementation,a),a.declare)?super.parseFunctionBodyAndFinish(a,A,m):(this.tsDisallowOptionalPattern(a),super.parseFunctionBodyAndFinish(a,p,m))}registerFunctionStatementId(a){!a.body&&a.id?this.checkIdentifier(a.id,1024):super.registerFunctionStatementId(a)}tsCheckForInvalidTypeCasts(a){a.forEach(p=>{p?.type==="TSTypeCastExpression"&&this.raise(we.UnexpectedTypeAnnotation,p.typeAnnotation)})}toReferencedList(a,p){return this.tsCheckForInvalidTypeCasts(a),a}parseArrayLike(a,p,m){let A=super.parseArrayLike(a,p,m);return A.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(A.elements),A}parseSubscript(a,p,m,A){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let B=this.startNodeAt(p);return B.expression=a,this.finishNode(B,"TSNonNullExpression")}let S=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(m)return A.stop=!0,a;A.optionalChainMember=S=!0,this.next()}if(this.match(47)||this.match(51)){let B,O=this.tsTryParseAndCatch(()=>{if(!m&&this.atPossibleAsyncArrow(a)){let De=this.tsTryParseGenericAsyncArrowFunction(p);if(De)return A.stop=!0,De}let U=this.tsParseTypeArgumentsInExpression();if(!U)return;if(S&&!this.match(10)){B=this.state.curPosition();return}if(Fs(this.state.type)){let De=super.parseTaggedTemplateExpression(a,p,A);return De.typeArguments=U,De}if(!m&&this.eat(10)){let De=this.startNodeAt(p);return De.callee=a,De.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(De.arguments),De.typeArguments=U,A.optionalChainMember&&(De.optional=S),this.finishCallExpression(De,A.optionalChainMember)}let R=this.state.type;if(R===48||R===52||R!==10&&lt(R)&&!this.hasPrecedingLineBreak())return;let ne=this.startNodeAt(p);return ne.expression=a,ne.typeArguments=U,this.finishNode(ne,"TSInstantiationExpression")});if(B&&this.unexpected(B,10),O)return O.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(we.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(O.expression=super.stopParseSubscript(a,A))),O}return super.parseSubscript(a,p,m,A)}parseNewCallee(a){super.parseNewCallee(a);let{callee:p}=a;p.type==="TSInstantiationExpression"&&!p.extra?.parenthesized&&(a.typeArguments=p.typeArguments,a.callee=p.expression)}parseExprOp(a,p,m){let A;if(ar(58)>m&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(A=this.isContextual(120)))){let S=this.startNodeAt(p);return S.expression=a,S.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(A&&this.raise(I.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(S,A?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(S,p,m)}return super.parseExprOp(a,p,m)}checkReservedWord(a,p,m,A){this.state.isAmbientContext||super.checkReservedWord(a,p,m,A)}checkImportReflection(a){super.checkImportReflection(a),a.module&&a.importKind!=="value"&&this.raise(we.ImportReflectionHasImportType,a.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(a){if(super.isPotentialImportPhase(a))return!0;if(this.isContextual(130)){let p=this.lookaheadCharCode();return a?p===123||p===42:p!==61}return!a&&this.isContextual(87)}applyImportPhase(a,p,m,A){super.applyImportPhase(a,p,m,A),p?a.exportKind=m==="type"?"type":"value":a.importKind=m==="type"||m==="typeof"?m:"value"}parseImport(a){if(this.match(134))return a.importKind="value",super.parseImport(a);let p;if(Me(this.state.type)&&this.lookaheadCharCode()===61)return a.importKind="value",this.tsParseImportEqualsDeclaration(a);if(this.isContextual(130)){let m=this.parseMaybeImportPhase(a,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(a,m);p=super.parseImportSpecifiersAndAfter(a,m)}else p=super.parseImport(a);return p.importKind==="type"&&p.specifiers.length>1&&p.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(we.TypeImportCannotSpecifyDefaultAndNamed,p),p}parseExport(a,p){if(this.match(83)){let m=this.startNode();this.next();let A=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?A=this.parseMaybeImportPhase(m,!1):m.importKind="value";let S=this.tsParseImportEqualsDeclaration(m,A,!0);return a.attributes=[],a.declaration=S,a.exportKind="value",a.source=null,a.specifiers=[],this.finishNode(a,"ExportNamedDeclaration")}else if(this.eat(29)){let m=a;return m.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(m,"TSExportAssignment")}else if(this.eatContextual(93)){let m=a;return this.expectContextual(128),m.id=this.parseIdentifier(),this.semicolon(),this.finishNode(m,"TSNamespaceExportDeclaration")}else return super.parseExport(a,p)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let a=this.startNode();return this.next(),a.abstract=!0,this.parseClass(a,!0,!0)}if(this.match(129)){let a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return super.parseExportDefaultExpression()}parseVarStatement(a,p,m=!1){let{isAmbientContext:A}=this.state,S=super.parseVarStatement(a,p,m||A);if(!A)return S;if(!a.declare&&(p==="using"||p==="await using"))return this.raiseOverwrite(we.UsingDeclarationInAmbientContext,a,p),S;for(let{id:B,init:O}of S.declarations)O&&(p==="var"||p==="let"||B.typeAnnotation?this.raise(we.InitializerNotAllowedInAmbientContext,O):Vb(O,this.hasPlugin("estree"))||this.raise(we.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,O));return S}parseStatementContent(a,p){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let m=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(m,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let m=this.state.type,A=this.startNode();this.next();let S=m===125?this.tsTryParseDeclare(A):this.tsParseAbstractDeclaration(A,p);return S?(m===125&&(S.declare=!0),S):(A.expression=this.createIdentifier(this.startNodeAt(A.loc.start),m===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(A,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let m=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(m)}break}case 129:{let m=this.tsParseInterfaceDeclaration(this.startNode());if(m)return m;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let m=this.startNode();return this.next(),this.tsParseDeclaration(m,127,!1,p)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let m=this.startNode();return this.next(),this.tsParseDeclaration(m,128,!1,p)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let m=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(m)}break}}return super.parseStatementContent(a,p)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(a,p){return p.some(m=>Em(m)?a.accessibility===m:!!a[m])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(a,p,m){let A=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:A,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:we.InvalidModifierOnTypeParameterPositions},p);let S=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(p,A)&&this.raise(we.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(a,p)):this.parseClassMemberWithIsStatic(a,p,m,!!p.static)};p.declare?this.tsInAmbientContext(S):S()}parseClassMemberWithIsStatic(a,p,m,A){let S=this.tsTryParseIndexSignature(p);if(S){a.body.push(S),p.abstract&&this.raise(we.IndexSignatureHasAbstract,p),p.accessibility&&this.raise(we.IndexSignatureHasAccessibility,p,{modifier:p.accessibility}),p.declare&&this.raise(we.IndexSignatureHasDeclare,p),p.override&&this.raise(we.IndexSignatureHasOverride,p);return}!this.state.inAbstractClass&&p.abstract&&this.raise(we.NonAbstractClassHasAbstractMethod,p),p.override&&(m.hadSuperClass||this.raise(we.OverrideNotInSubClass,p)),super.parseClassMemberWithIsStatic(a,p,m,A)}parsePostMemberNameModifiers(a){this.eat(17)&&(a.optional=!0),a.readonly&&this.match(10)&&this.raise(we.ClassMethodHasReadonly,a),a.declare&&this.match(10)&&this.raise(we.ClassMethodHasDeclare,a)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(a,p,m){if(!this.match(17))return a;if(this.state.maybeInArrowParameters){let A=this.lookaheadCharCode();if(A===44||A===61||A===58||A===41)return this.setOptionalParametersError(m),a}return super.parseConditional(a,p,m)}parseParenItem(a,p){let m=super.parseParenItem(a,p);if(this.eat(17)&&(m.optional=!0,this.resetEndLocation(a)),this.match(14)){let A=this.startNodeAt(p);return A.expression=a,A.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(A,"TSTypeCastExpression")}return a}parseExportDeclaration(a){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(a));let p=this.state.startLoc,m=this.eatContextual(125);if(m&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(we.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let A=Me(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(a);return A?((A.type==="TSInterfaceDeclaration"||A.type==="TSTypeAliasDeclaration"||m)&&(a.exportKind="type"),m&&A.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(A,p),A.declare=!0),A):null}parseClassId(a,p,m,A){if((!p||m)&&this.isContextual(113))return;super.parseClassId(a,p,m,a.declare?1024:8331);let S=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);S&&(a.typeParameters=S)}parseClassPropertyAnnotation(a){a.optional||(this.eat(35)?a.definite=!0:this.eat(17)&&(a.optional=!0));let p=this.tsTryParseTypeAnnotation();p&&(a.typeAnnotation=p)}parseClassProperty(a){if(this.parseClassPropertyAnnotation(a),this.state.isAmbientContext&&!(a.readonly&&!a.typeAnnotation)&&this.match(29)&&this.raise(we.DeclareClassFieldHasInitializer,this.state.startLoc),a.abstract&&this.match(29)){let{key:p}=a;this.raise(we.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:p.type==="Identifier"&&!a.computed?p.name:`[${this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end))}]`})}return super.parseClassProperty(a)}parseClassPrivateProperty(a){return a.abstract&&this.raise(we.PrivateElementHasAbstract,a),a.accessibility&&this.raise(we.PrivateElementHasAccessibility,a,{modifier:a.accessibility}),this.parseClassPropertyAnnotation(a),super.parseClassPrivateProperty(a)}parseClassAccessorProperty(a){return this.parseClassPropertyAnnotation(a),a.optional&&this.raise(we.AccessorCannotBeOptional,a),super.parseClassAccessorProperty(a)}pushClassMethod(a,p,m,A,S,B){let O=this.tsTryParseTypeParameters(this.tsParseConstModifier);O&&S&&this.raise(we.ConstructorHasTypeParameters,O);let{declare:U=!1,kind:R}=p;U&&(R==="get"||R==="set")&&this.raise(we.DeclareAccessor,p,{kind:R}),O&&(p.typeParameters=O),super.pushClassMethod(a,p,m,A,S,B)}pushClassPrivateMethod(a,p,m,A){let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);S&&(p.typeParameters=S),super.pushClassPrivateMethod(a,p,m,A)}declareClassPrivateMethodInScope(a,p){a.type!=="TSDeclareMethod"&&(a.type==="MethodDefinition"&&a.value.body==null||super.declareClassPrivateMethodInScope(a,p))}parseClassSuper(a){super.parseClassSuper(a),a.superClass&&(this.match(47)||this.match(51))&&(a.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(a.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(a,p,m,A,S,B,O){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);return U&&(a.typeParameters=U),super.parseObjPropValue(a,p,m,A,S,B,O)}parseFunctionParams(a,p){let m=this.tsTryParseTypeParameters(this.tsParseConstModifier);m&&(a.typeParameters=m),super.parseFunctionParams(a,p)}parseVarId(a,p){super.parseVarId(a,p),a.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(a.definite=!0);let m=this.tsTryParseTypeAnnotation();m&&(a.id.typeAnnotation=m,this.resetEndLocation(a.id))}parseAsyncArrowFromCallExpression(a,p){return this.match(14)&&(a.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(a,p)}parseMaybeAssign(a,p){let m,A,S;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(m=this.state.clone(),A=this.tryParse(()=>super.parseMaybeAssign(a,p),m),!A.error)return A.node;let{context:U}=this.state,R=U[U.length-1];(R===X.j_oTag||R===X.j_expr)&&U.pop()}if(!A?.error&&!this.match(47))return super.parseMaybeAssign(a,p);(!m||m===this.state)&&(m=this.state.clone());let B,O=this.tryParse(U=>{B=this.tsParseTypeParameters(this.tsParseConstModifier);let R=super.parseMaybeAssign(a,p);if((R.type!=="ArrowFunctionExpression"||R.extra?.parenthesized)&&U(),B?.params.length!==0&&this.resetStartLocationFromNode(R,B),R.typeParameters=B,this.hasPlugin("jsx")&&R.typeParameters.params.length===1&&!R.typeParameters.extra?.trailingComma){let ne=R.typeParameters.params[0];ne.constraint||this.raise(we.SingleTypeParameterWithoutTrailingComma,g(ne.loc.end,1),{typeParameterName:ne.name.name})}return R},m);if(!O.error&&!O.aborted)return B&&this.reportReservedArrowTypeParam(B),O.node;if(!A&&(xm(!this.hasPlugin("jsx")),S=this.tryParse(()=>super.parseMaybeAssign(a,p),m),!S.error))return S.node;if(A?.node)return this.state=A.failState,A.node;if(O.node)return this.state=O.failState,B&&this.reportReservedArrowTypeParam(B),O.node;if(S?.node)return this.state=S.failState,S.node;throw A?.error||O.error||S?.error}reportReservedArrowTypeParam(a){a.params.length===1&&!a.params[0].constraint&&!a.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(we.ReservedArrowTypeParam,a)}parseMaybeUnary(a,p){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(a,p)}parseArrow(a){if(this.match(14)){let p=this.tryParse(m=>{let A=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&m(),A});if(p.aborted)return;p.thrown||(p.error&&(this.state=p.failState),a.returnType=p.node)}return super.parseArrow(a)}parseFunctionParamType(a){this.eat(17)&&(a.optional=!0);let p=this.tsTryParseTypeAnnotation();return p&&(a.typeAnnotation=p),this.resetEndLocation(a),a}isAssignable(a,p){switch(a.type){case"TSTypeCastExpression":return this.isAssignable(a.expression,p);case"TSParameterProperty":return!0;default:return super.isAssignable(a,p)}}toAssignable(a,p=!1){switch(a.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(a,p);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":p?this.expressionScope.recordArrowParameterBindingError(we.UnexpectedTypeCastInParameter,a):this.raise(we.UnexpectedTypeCastInParameter,a),this.toAssignable(a.expression,p);break;case"AssignmentExpression":!p&&a.left.type==="TSTypeCastExpression"&&(a.left=this.typeCastToParameter(a.left));default:super.toAssignable(a,p)}}toAssignableParenthesizedExpression(a,p){switch(a.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(a.expression,p);break;default:super.toAssignable(a,p)}}checkToRestConversion(a,p){switch(a.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(a.expression,!1);break;default:super.checkToRestConversion(a,p)}}isValidLVal(a,p,m,A){switch(a){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(A!==64||!m)&&["expression",!0];default:return super.isValidLVal(a,p,m,A)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(a,p){if(this.match(47)||this.match(51)){let m=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let A=super.parseMaybeDecoratorArguments(a,p);return A.typeArguments=m,A}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(a,p)}checkCommaAfterRest(a){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===a?(this.next(),!1):super.checkCommaAfterRest(a)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(a,p){let m=super.parseMaybeDefault(a,p);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(we.TypeAnnotationAfterAssign,m.typeAnnotation),m}getTokenFromCode(a){if(this.state.inType){if(a===62){this.finishOp(48,1);return}if(a===60){this.finishOp(47,1);return}}super.getTokenFromCode(a)}reScan_lt_gt(){let{type:a}=this.state;a===47?(this.state.pos-=1,this.readToken_lt()):a===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:a}=this.state;return a===51?(this.state.pos-=2,this.finishOp(47,1),47):a}toAssignableListItem(a,p,m){let A=a[p];A.type==="TSTypeCastExpression"&&(a[p]=this.typeCastToParameter(A)),super.toAssignableListItem(a,p,m)}typeCastToParameter(a){return a.expression.typeAnnotation=a.typeAnnotation,this.resetEndLocation(a.expression,a.typeAnnotation.loc.end),a.expression}shouldParseArrow(a){return this.match(14)?a.every(p=>this.isAssignable(p,!0)):super.shouldParseArrow(a)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(a){if(this.match(47)||this.match(51)){let p=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());p&&(a.typeArguments=p)}return super.jsxParseOpeningElementAfterName(a)}getGetterSetterExpectedParamCount(a){let p=super.getGetterSetterExpectedParamCount(a),m=this.getObjectOrClassMethodParams(a)[0];return m&&this.isThisParam(m)?p+1:p}parseCatchClauseParam(){let a=super.parseCatchClauseParam(),p=this.tsTryParseTypeAnnotation();return p&&(a.typeAnnotation=p,this.resetEndLocation(a)),a}tsInAmbientContext(a){let{isAmbientContext:p,strict:m}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return a()}finally{this.state.isAmbientContext=p,this.state.strict=m}}parseClass(a,p,m){let A=this.state.inAbstractClass;this.state.inAbstractClass=!!a.abstract;try{return super.parseClass(a,p,m)}finally{this.state.inAbstractClass=A}}tsParseAbstractDeclaration(a,p){if(this.match(80))return a.abstract=!0,this.maybeTakeDecorators(p,this.parseClass(a,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(a.abstract=!0,this.raise(we.NonClassMethodPropertyHasAbstractModifier,a),this.tsParseInterfaceDeclaration(a));throw this.unexpected(null,80)}parseMethod(a,p,m,A,S,B,O){let U=super.parseMethod(a,p,m,A,S,B,O);if((U.abstract||U.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?U.value:U).body){let{key:R}=U;this.raise(we.AbstractMethodHasImplementation,U,{methodName:R.type==="Identifier"&&!U.computed?R.name:`[${this.input.slice(this.offsetToSourcePos(R.start),this.offsetToSourcePos(R.end))}]`})}return U}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(a,p,m,A){return!p&&A?(this.parseTypeOnlyImportExportSpecifier(a,!1,m),this.finishNode(a,"ExportSpecifier")):(a.exportKind="value",super.parseExportSpecifier(a,p,m,A))}parseImportSpecifier(a,p,m,A,S){return!p&&A?(this.parseTypeOnlyImportExportSpecifier(a,!0,m),this.finishNode(a,"ImportSpecifier")):(a.importKind="value",super.parseImportSpecifier(a,p,m,A,m?4098:4096))}parseTypeOnlyImportExportSpecifier(a,p,m){let A=p?"imported":"local",S=p?"local":"exported",B=a[A],O,U=!1,R=!0,ne=B.loc.start;if(this.isContextual(93)){let _e=this.parseIdentifier();if(this.isContextual(93)){let Re=this.parseIdentifier();at(this.state.type)?(U=!0,B=_e,O=p?this.parseIdentifier():this.parseModuleExportName(),R=!1):(O=Re,R=!1)}else at(this.state.type)?(R=!1,O=p?this.parseIdentifier():this.parseModuleExportName()):(U=!0,B=_e)}else at(this.state.type)&&(U=!0,p?(B=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(B.name,B.loc.start,!0,!0)):B=this.parseModuleExportName());U&&m&&this.raise(p?we.TypeModifierIsUsedInTypeImports:we.TypeModifierIsUsedInTypeExports,ne),a[A]=B,a[S]=O;let De=p?"importKind":"exportKind";a[De]=U?"type":"value",R&&this.eatContextual(93)&&(a[S]=p?this.parseIdentifier():this.parseModuleExportName()),a[S]||(a[S]=this.cloneIdentifier(a[A])),p&&this.checkIdentifier(a[S],U?4098:4096)}fillOptionalPropertiesForTSESLint(a){switch(a.type){case"ExpressionStatement":a.directive??(a.directive=void 0);return;case"RestElement":a.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":a.decorators??(a.decorators=[]),a.optional??(a.optional=!1),a.typeAnnotation??(a.typeAnnotation=void 0);return;case"TSParameterProperty":a.accessibility??(a.accessibility=void 0),a.decorators??(a.decorators=[]),a.override??(a.override=!1),a.readonly??(a.readonly=!1),a.static??(a.static=!1);return;case"TSEmptyBodyFunctionExpression":a.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":a.declare??(a.declare=!1),a.returnType??(a.returnType=void 0),a.typeParameters??(a.typeParameters=void 0);return;case"Property":a.optional??(a.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":a.optional??(a.optional=!1);case"TSIndexSignature":a.accessibility??(a.accessibility=void 0),a.readonly??(a.readonly=!1),a.static??(a.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":a.declare??(a.declare=!1),a.definite??(a.definite=!1),a.readonly??(a.readonly=!1),a.typeAnnotation??(a.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":a.accessibility??(a.accessibility=void 0),a.decorators??(a.decorators=[]),a.override??(a.override=!1),a.optional??(a.optional=!1);return;case"ClassExpression":a.id??(a.id=null);case"ClassDeclaration":a.abstract??(a.abstract=!1),a.declare??(a.declare=!1),a.decorators??(a.decorators=[]),a.implements??(a.implements=[]),a.superTypeArguments??(a.superTypeArguments=void 0),a.typeParameters??(a.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":a.declare??(a.declare=!1);return;case"VariableDeclarator":a.definite??(a.definite=!1);return;case"TSEnumDeclaration":a.const??(a.const=!1),a.declare??(a.declare=!1);return;case"TSEnumMember":a.computed??(a.computed=!1);return;case"TSImportType":a.qualifier??(a.qualifier=null),a.options??(a.options=null),a.typeArguments??(a.typeArguments=null);return;case"TSInterfaceDeclaration":a.declare??(a.declare=!1),a.extends??(a.extends=[]);return;case"TSMappedType":a.optional??(a.optional=!1),a.readonly??(a.readonly=void 0);return;case"TSModuleDeclaration":a.declare??(a.declare=!1),a.global??(a.global=a.kind==="global");return;case"TSTypeParameter":a.const??(a.const=!1),a.in??(a.in=!1),a.out??(a.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(a,p){if(ur(a)){if(kp.lastIndex=p,kp.test(this.input)){let m=this.codePointAtPos(kp.lastIndex);if(!$i(m)&&m!==92)return!1}return!0}else return a===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let a=this.nextTokenInLineStart(),p=this.codePointAtPos(a);return this.chStartsBindingIdentifierAndNotRelationalOperator(p,a)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let a=this.nextTokenInLineStart(),p=this.codePointAtPos(a);return this.chStartsBindingIdentifier(p,a)||p===34||p===39}};function qb(u){if(u.type!=="MemberExpression")return!1;let{computed:a,property:p}=u;return a&&p.type!=="StringLiteral"&&(p.type!=="TemplateLiteral"||p.expressions.length>0)?!1:Cm(u.object)}function Vb(u,a){let{type:p}=u;if(u.extra?.parenthesized)return!1;if(a){if(p==="Literal"){let{value:m}=u;if(typeof m=="string"||typeof m=="boolean")return!0}}else if(p==="StringLiteral"||p==="BooleanLiteral")return!0;return!!(Am(u,a)||zb(u,a)||p==="TemplateLiteral"&&u.expressions.length===0||qb(u))}function Am(u,a){return a?u.type==="Literal"&&(typeof u.value=="number"||"bigint"in u):u.type==="NumericLiteral"||u.type==="BigIntLiteral"}function zb(u,a){if(u.type==="UnaryExpression"){let{operator:p,argument:m}=u;if(p==="-"&&Am(m,a))return!0}return!1}function Cm(u){return u.type==="Identifier"?!0:u.type!=="MemberExpression"||u.computed?!1:Cm(u.object)}var bm=L`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Hb=u=>class extends u{parsePlaceholder(a){if(this.match(133)){let p=this.startNode();return this.next(),this.assertNoSpace(),p.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(p,a)}}finishPlaceholder(a,p){let m=a;return(!m.expectedNode||!m.type)&&(m=this.finishNode(m,"Placeholder")),m.expectedNode=p,m}getTokenFromCode(a){a===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(a)}parseExprAtom(a){return this.parsePlaceholder("Expression")||super.parseExprAtom(a)}parseIdentifier(a){return this.parsePlaceholder("Identifier")||super.parseIdentifier(a)}checkReservedWord(a,p,m,A){a!==void 0&&super.checkReservedWord(a,p,m,A)}cloneIdentifier(a){let p=super.cloneIdentifier(a);return p.type==="Placeholder"&&(p.expectedNode=a.expectedNode),p}cloneStringLiteral(a){return a.type==="Placeholder"?this.cloneIdentifier(a):super.cloneStringLiteral(a)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(a,p,m,A){return a==="Placeholder"||super.isValidLVal(a,p,m,A)}toAssignable(a,p){a&&a.type==="Placeholder"&&a.expectedNode==="Expression"?a.expectedNode="Pattern":super.toAssignable(a,p)}chStartsBindingIdentifier(a,p){if(super.chStartsBindingIdentifier(a,p))return!0;let m=this.nextTokenStart();return this.input.charCodeAt(m)===37&&this.input.charCodeAt(m+1)===37}verifyBreakContinue(a,p){a.label&&a.label.type==="Placeholder"||super.verifyBreakContinue(a,p)}parseExpressionStatement(a,p){if(p.type!=="Placeholder"||p.extra?.parenthesized)return super.parseExpressionStatement(a,p);if(this.match(14)){let A=a;return A.label=this.finishPlaceholder(p,"Identifier"),this.next(),A.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(A,"LabeledStatement")}this.semicolon();let m=a;return m.name=p.name,this.finishPlaceholder(m,"Statement")}parseBlock(a,p,m){return this.parsePlaceholder("BlockStatement")||super.parseBlock(a,p,m)}parseFunctionId(a){return this.parsePlaceholder("Identifier")||super.parseFunctionId(a)}parseClass(a,p,m){let A=p?"ClassDeclaration":"ClassExpression";this.next();let S=this.state.strict,B=this.parsePlaceholder("Identifier");if(B)if(this.match(81)||this.match(133)||this.match(5))a.id=B;else{if(m||!p)return a.id=null,a.body=this.finishPlaceholder(B,"ClassBody"),this.finishNode(a,A);throw this.raise(bm.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(a,p,m);return super.parseClassSuper(a),a.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!a.superClass,S),this.finishNode(a,A)}parseExport(a,p){let m=this.parsePlaceholder("Identifier");if(!m)return super.parseExport(a,p);let A=a;if(!this.isContextual(98)&&!this.match(12))return A.specifiers=[],A.source=null,A.declaration=this.finishPlaceholder(m,"Declaration"),this.finishNode(A,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let S=this.startNode();return S.exported=m,A.specifiers=[this.finishNode(S,"ExportDefaultSpecifier")],super.parseExport(A,p)}isExportDefaultSpecifier(){if(this.match(65)){let a=this.nextTokenStart();if(this.isUnparsedContextual(a,"from")&&this.input.startsWith(Jt(133),this.nextTokenStartSince(a+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(a,p){return a.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(a,p)}checkExport(a){let{specifiers:p}=a;p?.length&&(a.specifiers=p.filter(m=>m.exported.type==="Placeholder")),super.checkExport(a),a.specifiers=p}parseImport(a){let p=this.parsePlaceholder("Identifier");if(!p)return super.parseImport(a);if(a.specifiers=[],!this.isContextual(98)&&!this.match(12))return a.source=this.finishPlaceholder(p,"StringLiteral"),this.semicolon(),this.finishNode(a,"ImportDeclaration");let m=this.startNodeAtNode(p);return m.local=p,a.specifiers.push(this.finishNode(m,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(a)||this.parseNamedImportSpecifiers(a)),this.expectContextual(98),a.source=this.parseImportSource(),this.semicolon(),this.finishNode(a,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(bm.UnexpectedSpace,this.state.lastTokEndLoc)}},Wb=u=>class extends u{parseV8Intrinsic(){if(this.match(54)){let a=this.state.startLoc,p=this.startNode();if(this.next(),Me(this.state.type)){let m=this.parseIdentifierName(),A=this.createIdentifier(p,m);if(this.castNodeTo(A,"V8IntrinsicIdentifier"),this.match(10))return A}this.unexpected(a)}}parseExprAtom(a){return this.parseV8Intrinsic()||super.parseExprAtom(a)}},Tm=["fsharp","hack"],vm=["^^","@@","^","%","#"];function Jb(u){if(u.has("decorators")){if(u.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let a=u.get("decorators").decoratorsBeforeExport;if(a!=null&&typeof a!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let p=u.get("decorators").allowCallParenthesized;if(p!=null&&typeof p!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(u.has("flow")&&u.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(u.has("placeholders")&&u.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(u.has("pipelineOperator")){let a=u.get("pipelineOperator").proposal;if(!Tm.includes(a)){let p=Tm.map(m=>`"${m}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${p}.`)}if(a==="hack"){if(u.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(u.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let p=u.get("pipelineOperator").topicToken;if(!vm.includes(p)){let m=vm.map(A=>`"${A}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${m}.`)}}}if(u.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(u.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!u.has("deprecatedImportAssert")&&u.has("importAttributes")&&u.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(u.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(u.has("asyncDoExpressions")&&!u.has("doExpressions")){let a=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw a.missingPlugins="doExpressions",a}if(u.has("optionalChainingAssign")&&u.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(u.has("discardBinding")&&u.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(u.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(u.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Fm={estree:te,jsx:mb,flow:hb,typescript:Ub,v8intrinsic:Wb,placeholders:Hb},Kb=Object.keys(Fm),Gb=class extends $b{checkProto(u,a,p,m){if(u.type==="SpreadElement"||this.isObjectMethod(u)||u.computed||u.shorthand)return p;let A=u.key;return(A.type==="Identifier"?A.name:A.value)==="__proto__"?a?(this.raise(I.RecordNoProto,A),!0):(p&&(m?m.doubleProtoLoc===null&&(m.doubleProtoLoc=A.loc.start):this.raise(I.DuplicateProto,A)),!0):p}shouldExitDescending(u,a){return u.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(u.start)===a}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(I.ParseExpressionEmptyInput,this.state.startLoc);let u=this.parseExpression();if(!this.match(140))throw this.raise(I.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),u.comments=this.comments,u.errors=this.state.errors,this.optionFlags&256&&(u.tokens=this.tokens),u}parseExpression(u,a){return u?this.disallowInAnd(()=>this.parseExpressionBase(a)):this.allowInAnd(()=>this.parseExpressionBase(a))}parseExpressionBase(u){let a=this.state.startLoc,p=this.parseMaybeAssign(u);if(this.match(12)){let m=this.startNodeAt(a);for(m.expressions=[p];this.eat(12);)m.expressions.push(this.parseMaybeAssign(u));return this.toReferencedList(m.expressions),this.finishNode(m,"SequenceExpression")}return p}parseMaybeAssignDisallowIn(u,a){return this.disallowInAnd(()=>this.parseMaybeAssign(u,a))}parseMaybeAssignAllowIn(u,a){return this.allowInAnd(()=>this.parseMaybeAssign(u,a))}setOptionalParametersError(u){u.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(u,a){let p=this.state.startLoc,m=this.isContextual(108);if(m&&this.prodParam.hasYield){this.next();let O=this.parseYield(p);return a&&(O=a.call(this,O,p)),O}let A;u?A=!1:(u=new vu,A=!0);let{type:S}=this.state;(S===10||Me(S))&&(this.state.potentialArrowAt=this.state.start);let B=this.parseMaybeConditional(u);if(a&&(B=a.call(this,B,p)),st(this.state.type)){let O=this.startNodeAt(p),U=this.state.value;if(O.operator=U,this.match(29)){this.toAssignable(B,!0),O.left=B;let R=p.index;u.doubleProtoLoc!=null&&u.doubleProtoLoc.index>=R&&(u.doubleProtoLoc=null),u.shorthandAssignLoc!=null&&u.shorthandAssignLoc.index>=R&&(u.shorthandAssignLoc=null),u.privateKeyLoc!=null&&u.privateKeyLoc.index>=R&&(this.checkDestructuringPrivate(u),u.privateKeyLoc=null),u.voidPatternLoc!=null&&u.voidPatternLoc.index>=R&&(u.voidPatternLoc=null)}else O.left=B;return this.next(),O.right=this.parseMaybeAssign(),this.checkLVal(B,this.finishNode(O,"AssignmentExpression"),void 0,void 0,void 0,void 0,U==="||="||U==="&&="||U==="??="),O}else A&&this.checkExpressionErrors(u,!0);if(m){let{type:O}=this.state;if((this.hasPlugin("v8intrinsic")?lt(O):lt(O)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(I.YieldNotInGeneratorFunction,p),this.parseYield(p)}return B}parseMaybeConditional(u){let a=this.state.startLoc,p=this.state.potentialArrowAt,m=this.parseExprOps(u);return this.shouldExitDescending(m,p)?m:this.parseConditional(m,a,u)}parseConditional(u,a,p){if(this.eat(17)){let m=this.startNodeAt(a);return m.test=u,m.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),m.alternate=this.parseMaybeAssign(),this.finishNode(m,"ConditionalExpression")}return u}parseMaybeUnaryOrPrivate(u){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(u)}parseExprOps(u){let a=this.state.startLoc,p=this.state.potentialArrowAt,m=this.parseMaybeUnaryOrPrivate(u);return this.shouldExitDescending(m,p)?m:this.parseExprOp(m,a,-1)}parseExprOp(u,a,p){if(this.isPrivateName(u)){let A=this.getPrivateNameSV(u);(p>=ar(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(I.PrivateInExpectedIn,u,{identifierName:A}),this.classScope.usePrivateName(A,u.loc.start)}let m=this.state.type;if(Nr(m)&&(this.prodParam.hasIn||!this.match(58))){let A=ar(m);if(A>p){if(m===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return u;this.checkPipelineAtInfixOperator(u,a)}let S=this.startNodeAt(a);S.left=u,S.operator=this.state.value;let B=m===41||m===42,O=m===40;O&&(A=ar(42)),this.next(),S.right=this.parseExprOpRightExpr(m,A);let U=this.finishNode(S,B||O?"LogicalExpression":"BinaryExpression"),R=this.state.type;if(O&&(R===41||R===42)||B&&R===40)throw this.raise(I.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(U,a,p)}}return u}parseExprOpRightExpr(u,a){switch(this.state.startLoc,u){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(a))}default:return this.parseExprOpBaseRightExpr(u,a)}}parseExprOpBaseRightExpr(u,a){let p=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),p,xu(u)?a-1:a)}parseHackPipeBody(){let{startLoc:u}=this.state,a=this.parseMaybeAssign();return w.has(a.type)&&!a.extra?.parenthesized&&this.raise(I.PipeUnparenthesizedBody,u,{type:a.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(I.PipeTopicUnused,u),a}checkExponentialAfterUnary(u){this.match(57)&&this.raise(I.UnexpectedTokenUnaryExponentiation,u.argument)}parseMaybeUnary(u,a){let p=this.state.startLoc,m=this.isContextual(96);if(m&&this.recordAwaitIfAllowed()){this.next();let O=this.parseAwait(p);return a||this.checkExponentialAfterUnary(O),O}let A=this.match(34),S=this.startNode();if(Pa(this.state.type)){S.operator=this.state.value,S.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let O=this.match(89);if(this.next(),S.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(u,!0),this.state.strict&&O){let U=S.argument;U.type==="Identifier"?this.raise(I.StrictDelete,S):this.hasPropertyAsPrivateName(U)&&this.raise(I.DeletePrivateField,S)}if(!A)return a||this.checkExponentialAfterUnary(S),this.finishNode(S,"UnaryExpression")}let B=this.parseUpdate(S,A,u);if(m){let{type:O}=this.state;if((this.hasPlugin("v8intrinsic")?lt(O):lt(O)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(I.AwaitNotInAsyncContext,p),this.parseAwait(p)}return B}parseUpdate(u,a,p){if(a){let S=u;return this.checkLVal(S.argument,this.finishNode(S,"UpdateExpression")),u}let m=this.state.startLoc,A=this.parseExprSubscripts(p);if(this.checkExpressionErrors(p,!1))return A;for(;An(this.state.type)&&!this.canInsertSemicolon();){let S=this.startNodeAt(m);S.operator=this.state.value,S.prefix=!1,S.argument=A,this.next(),this.checkLVal(A,A=this.finishNode(S,"UpdateExpression"))}return A}parseExprSubscripts(u){let a=this.state.startLoc,p=this.state.potentialArrowAt,m=this.parseExprAtom(u);return this.shouldExitDescending(m,p)?m:this.parseSubscripts(m,a)}parseSubscripts(u,a,p){let m={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(u),stop:!1};do u=this.parseSubscript(u,a,p,m),m.maybeAsyncArrow=!1;while(!m.stop);return u}parseSubscript(u,a,p,m){let{type:A}=this.state;if(!p&&A===15)return this.parseBind(u,a,p,m);if(Fs(A))return this.parseTaggedTemplateExpression(u,a,m);let S=!1;if(A===18){if(p&&(this.raise(I.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(u,m);m.optionalChainMember=S=!0,this.next()}if(!p&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(u,a,m,S);{let B=this.eat(0);return B||S||this.eat(16)?this.parseMember(u,a,m,B,S):this.stopParseSubscript(u,m)}}stopParseSubscript(u,a){return a.stop=!0,u}parseMember(u,a,p,m,A){let S=this.startNodeAt(a);return S.object=u,S.computed=m,m?(S.property=this.parseExpression(),this.expect(3)):this.match(139)?(u.type==="Super"&&this.raise(I.SuperPrivateField,a),this.classScope.usePrivateName(this.state.value,this.state.startLoc),S.property=this.parsePrivateName()):S.property=this.parseIdentifier(!0),p.optionalChainMember?(S.optional=A,this.finishNode(S,"OptionalMemberExpression")):this.finishNode(S,"MemberExpression")}parseBind(u,a,p,m){let A=this.startNodeAt(a);return A.object=u,this.next(),A.callee=this.parseNoCallExpr(),m.stop=!0,this.parseSubscripts(this.finishNode(A,"BindExpression"),a,p)}parseCoverCallAndAsyncArrowHead(u,a,p,m){let A=this.state.maybeInArrowParameters,S=null;this.state.maybeInArrowParameters=!0,this.next();let B=this.startNodeAt(a);B.callee=u;let{maybeAsyncArrow:O,optionalChainMember:U}=p;O&&(this.expressionScope.enter(_b()),S=new vu),U&&(B.optional=m),m?B.arguments=this.parseCallExpressionArguments():B.arguments=this.parseCallExpressionArguments(u.type!=="Super",B,S);let R=this.finishCallExpression(B,U);return O&&this.shouldParseAsyncArrow()&&!m?(p.stop=!0,this.checkDestructuringPrivate(S),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),R=this.parseAsyncArrowFromCallExpression(this.startNodeAt(a),R)):(O&&(this.checkExpressionErrors(S,!0),this.expressionScope.exit()),this.toReferencedArguments(R)),this.state.maybeInArrowParameters=A,R}toReferencedArguments(u,a){this.toReferencedListDeep(u.arguments,a)}parseTaggedTemplateExpression(u,a,p){let m=this.startNodeAt(a);return m.tag=u,m.quasi=this.parseTemplate(!0),p.optionalChainMember&&this.raise(I.OptionalChainingNoTemplate,a),this.finishNode(m,"TaggedTemplateExpression")}atPossibleAsyncArrow(u){return u.type==="Identifier"&&u.name==="async"&&this.state.lastTokEndLoc.index===u.end&&!this.canInsertSemicolon()&&u.end-u.start===5&&this.offsetToSourcePos(u.start)===this.state.potentialArrowAt}finishCallExpression(u,a){if(u.callee.type==="Import")if(u.arguments.length===0||u.arguments.length>2)this.raise(I.ImportCallArity,u);else for(let p of u.arguments)p.type==="SpreadElement"&&this.raise(I.ImportCallSpreadArgument,p);return this.finishNode(u,a?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(u,a,p){let m=[],A=!0,S=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(A)A=!1;else if(this.expect(12),this.match(11)){a&&this.addTrailingCommaExtraToNode(a),this.next();break}m.push(this.parseExprListItem(11,!1,p,u))}return this.state.inFSharpPipelineDirectBody=S,m}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(u,a){return this.resetPreviousNodeTrailingComments(a),this.expect(19),this.parseArrowExpression(u,a.arguments,!0,a.extra?.trailingCommaLoc),a.innerComments&&vn(u,a.innerComments),a.callee.trailingComments&&vn(u,a.callee.trailingComments),u}parseNoCallExpr(){let u=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),u,!0)}parseExprAtom(u){let a,p=null,{type:m}=this.state;switch(m){case 79:return this.parseSuper();case 83:return a=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(a):this.match(10)?this.optionFlags&512?this.parseImportCall(a):this.finishNode(a,"Import"):(this.raise(I.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(a,"Import"));case 78:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let A=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(A)}case 0:return this.parseArrayLike(3,!1,u);case 5:return this.parseObjectLike(8,!1,!1,u);case 68:return this.parseFunctionOrFunctionSent();case 26:p=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(p,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{a=this.startNode(),this.next(),a.object=null;let A=a.callee=this.parseNoCallExpr();if(A.type==="MemberExpression")return this.finishNode(a,"BindExpression");throw this.raise(I.UnsupportedBind,A)}case 139:return this.raise(I.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let A=this.getPluginOption("pipelineOperator","proposal");if(A)return this.parseTopicReference(A);throw this.unexpected()}case 47:{let A=this.input.codePointAt(this.nextTokenStart());throw ur(A)||A===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Me(m)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let A=this.state.potentialArrowAt===this.state.start,S=this.state.containsEsc,B=this.parseIdentifier();if(!S&&B.name==="async"&&!this.canInsertSemicolon()){let{type:O}=this.state;if(O===68)return this.resetPreviousNodeTrailingComments(B),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(B));if(Me(O))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(B)):B;if(O===90)return this.resetPreviousNodeTrailingComments(B),this.parseDo(this.startNodeAtNode(B),!0)}return A&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(B),[B],!1)):B}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(u,a){let p=this.getPluginOption("pipelineOperator","proposal");if(p)return this.state.type=u,this.state.value=a,this.state.pos--,this.state.end--,this.state.endLoc=g(this.state.endLoc,-1),this.parseTopicReference(p);throw this.unexpected()}parseTopicReference(u){let a=this.startNode(),p=this.state.startLoc,m=this.state.type;return this.next(),this.finishTopicReference(a,p,u,m)}finishTopicReference(u,a,p,m){if(this.testTopicReferenceConfiguration(p,a,m))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(I.PipeTopicUnbound,a),this.registerTopicReference(),this.finishNode(u,"TopicReference");throw this.raise(I.PipeTopicUnconfiguredToken,a,{token:Jt(m)})}testTopicReferenceConfiguration(u,a,p){switch(u){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Jt(p)}]);case"smart":return p===27;default:throw this.raise(I.PipeTopicRequiresHackPipes,a)}}parseAsyncArrowUnaryFunction(u){this.prodParam.enter(Cu(!0,this.prodParam.hasYield));let a=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(I.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(u,a,!0)}parseDo(u,a){this.expectPlugin("doExpressions"),a&&this.expectPlugin("asyncDoExpressions"),u.async=a,this.next();let p=this.state.labels;return this.state.labels=[],a?(this.prodParam.enter(2),u.body=this.parseBlock(),this.prodParam.exit()):u.body=this.parseBlock(),this.state.labels=p,this.finishNode(u,"DoExpression")}parseSuper(){let u=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(I.SuperNotAllowed,u):this.scope.allowSuper||this.raise(I.UnexpectedSuper,u),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(I.UnsupportedSuper,u),this.finishNode(u,"Super")}parsePrivateName(){let u=this.startNode(),a=this.startNodeAt(g(this.state.startLoc,1)),p=this.state.value;return this.next(),u.id=this.createIdentifier(a,p),this.finishNode(u,"PrivateName")}parseFunctionOrFunctionSent(){let u=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let a=this.createIdentifier(this.startNodeAtNode(u),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(u,a,"sent")}return this.parseFunction(u)}parseMetaProperty(u,a,p){u.meta=a;let m=this.state.containsEsc;return u.property=this.parseIdentifier(!0),(u.property.name!==p||m)&&this.raise(I.UnsupportedMetaProperty,u.property,{target:a.name,onlyValidPropertyName:p}),this.finishNode(u,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(u){if(this.next(),this.isContextual(105)||this.isContextual(97)){let a=this.isContextual(105);return this.expectPlugin(a?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),u.phase=a?"source":"defer",this.parseImportCall(u)}else{let a=this.createIdentifierAt(this.startNodeAtNode(u),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(I.ImportMetaOutsideModule,a),this.sawUnambiguousESM=!0),this.parseMetaProperty(u,a,"meta")}}parseLiteralAtNode(u,a,p){return this.addExtra(p,"rawValue",u),this.addExtra(p,"raw",this.input.slice(this.offsetToSourcePos(p.start),this.state.end)),p.value=u,this.next(),this.finishNode(p,a)}parseLiteral(u,a){let p=this.startNode();return this.parseLiteralAtNode(u,a,p)}parseStringLiteral(u){return this.parseLiteral(u,"StringLiteral")}parseNumericLiteral(u){return this.parseLiteral(u,"NumericLiteral")}parseBigIntLiteral(u){{let a;try{a=BigInt(u)}catch{a=null}return this.parseLiteral(a,"BigIntLiteral")}}parseDecimalLiteral(u){return this.parseLiteral(u,"DecimalLiteral")}parseRegExpLiteral(u){let a=this.startNode();return this.addExtra(a,"raw",this.input.slice(this.offsetToSourcePos(a.start),this.state.end)),a.pattern=u.pattern,a.flags=u.flags,this.next(),this.finishNode(a,"RegExpLiteral")}parseBooleanLiteral(u){let a=this.startNode();return a.value=u,this.next(),this.finishNode(a,"BooleanLiteral")}parseNullLiteral(){let u=this.startNode();return this.next(),this.finishNode(u,"NullLiteral")}parseParenAndDistinguishExpression(u){let a=this.state.startLoc,p;this.next(),this.expressionScope.enter(Nb());let m=this.state.maybeInArrowParameters,A=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let S=this.state.startLoc,B=[],O=new vu,U=!0,R,ne;for(;!this.match(11);){if(U)U=!1;else if(this.expect(12,O.optionalParametersLoc===null?null:O.optionalParametersLoc),this.match(11)){ne=this.state.startLoc;break}if(this.match(21)){let Re=this.state.startLoc;if(R=this.state.startLoc,B.push(this.parseParenItem(this.parseRestBinding(),Re)),!this.checkCommaAfterRest(41))break}else B.push(this.parseMaybeAssignAllowInOrVoidPattern(11,O,this.parseParenItem))}let De=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=m,this.state.inFSharpPipelineDirectBody=A;let _e=this.startNodeAt(a);return u&&this.shouldParseArrow(B)&&(_e=this.parseArrow(_e))?(this.checkDestructuringPrivate(O),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(_e,B,!1),_e):(this.expressionScope.exit(),B.length||this.unexpected(this.state.lastTokStartLoc),ne&&this.unexpected(ne),R&&this.unexpected(R),this.checkExpressionErrors(O,!0),this.toReferencedListDeep(B,!0),B.length>1?(p=this.startNodeAt(S),p.expressions=B,this.finishNode(p,"SequenceExpression"),this.resetEndLocation(p,De)):p=B[0],this.wrapParenthesis(a,p))}wrapParenthesis(u,a){if(!(this.optionFlags&1024))return this.addExtra(a,"parenthesized",!0),this.addExtra(a,"parenStart",u.index),this.takeSurroundingComments(a,u.index,this.state.lastTokEndLoc.index),a;let p=this.startNodeAt(u);return p.expression=a,this.finishNode(p,"ParenthesizedExpression")}shouldParseArrow(u){return!this.canInsertSemicolon()}parseArrow(u){if(this.eat(19))return u}parseParenItem(u,a){return u}parseNewOrNewTarget(){let u=this.startNode();if(this.next(),this.match(16)){let a=this.createIdentifier(this.startNodeAtNode(u),"new");this.next();let p=this.parseMetaProperty(u,a,"target");return this.scope.allowNewTarget||this.raise(I.UnexpectedNewTarget,p),p}return this.parseNew(u)}parseNew(u){if(this.parseNewCallee(u),this.eat(10)){let a=this.parseExprList(11);this.toReferencedList(a),u.arguments=a}else u.arguments=[];return this.finishNode(u,"NewExpression")}parseNewCallee(u){let a=this.match(83),p=this.parseNoCallExpr();u.callee=p,a&&(p.type==="Import"||p.type==="ImportExpression")&&this.raise(I.ImportCallNotNewExpression,p)}parseTemplateElement(u){let{start:a,startLoc:p,end:m,value:A}=this.state,S=a+1,B=this.startNodeAt(g(p,1));A===null&&(u||this.raise(I.InvalidEscapeSequenceTemplate,g(this.state.firstInvalidTemplateEscapePos,1)));let O=this.match(24),U=O?-1:-2,R=m+U;B.value={raw:this.input.slice(S,R).replace(/\r\n?/g,`
238
+ `),cooked:A===null?null:A.slice(1,U)},B.tail=O,this.next();let ne=this.finishNode(B,"TemplateElement");return this.resetEndLocation(ne,g(this.state.lastTokEndLoc,U)),ne}parseTemplate(u){let a=this.startNode(),p=this.parseTemplateElement(u),m=[p],A=[];for(;!p.tail;)A.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),m.push(p=this.parseTemplateElement(u));return a.expressions=A,a.quasis=m,this.finishNode(a,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(u,a,p,m){p&&this.expectPlugin("recordAndTuple");let A=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let S=!1,B=!0,O=this.startNode();for(O.properties=[],this.next();!this.match(u);){if(B)B=!1;else if(this.expect(12),this.match(u)){this.addTrailingCommaExtraToNode(O);break}let R;a?R=this.parseBindingProperty():(R=this.parsePropertyDefinition(m),S=this.checkProto(R,p,S,m)),p&&!this.isObjectProperty(R)&&R.type!=="SpreadElement"&&this.raise(I.InvalidRecordProperty,R),O.properties.push(R)}this.next(),this.state.inFSharpPipelineDirectBody=A;let U="ObjectExpression";return a?U="ObjectPattern":p&&(U="RecordExpression"),this.finishNode(O,U)}addTrailingCommaExtraToNode(u){this.addExtra(u,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(u,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(u){return!u.computed&&u.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(u){let a=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(I.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)a.push(this.parseDecorator());let p=this.startNode(),m=!1,A=!1,S;if(this.match(21))return a.length&&this.unexpected(),this.parseSpread();a.length&&(p.decorators=a,a=[]),p.method=!1,u&&(S=this.state.startLoc);let B=this.eat(55);this.parsePropertyNamePrefixOperator(p);let O=this.state.containsEsc;if(this.parsePropertyName(p,u),!B&&!O&&this.maybeAsyncOrAccessorProp(p)){let{key:U}=p,R=U.name;R==="async"&&!this.hasPrecedingLineBreak()&&(m=!0,this.resetPreviousNodeTrailingComments(U),B=this.eat(55),this.parsePropertyName(p)),(R==="get"||R==="set")&&(A=!0,this.resetPreviousNodeTrailingComments(U),p.kind=R,this.match(55)&&(B=!0,this.raise(I.AccessorIsGenerator,this.state.curPosition(),{kind:R}),this.next()),this.parsePropertyName(p))}return this.parseObjPropValue(p,S,B,m,!1,A,u)}getGetterSetterExpectedParamCount(u){return u.kind==="get"?0:1}getObjectOrClassMethodParams(u){return u.params}checkGetterSetterParams(u){let a=this.getGetterSetterExpectedParamCount(u),p=this.getObjectOrClassMethodParams(u);p.length!==a&&this.raise(u.kind==="get"?I.BadGetterArity:I.BadSetterArity,u),u.kind==="set"&&p[p.length-1]?.type==="RestElement"&&this.raise(I.BadSetterRestParameter,u)}parseObjectMethod(u,a,p,m,A){if(A){let S=this.parseMethod(u,a,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(S),S}if(p||a||this.match(10))return m&&this.unexpected(),u.kind="method",u.method=!0,this.parseMethod(u,a,p,!1,!1,"ObjectMethod")}parseObjectProperty(u,a,p,m){if(u.shorthand=!1,this.eat(14))return u.value=p?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,m),this.finishObjectProperty(u);if(!u.computed&&u.key.type==="Identifier"){if(this.checkReservedWord(u.key.name,u.key.loc.start,!0,!1),p)u.value=this.parseMaybeDefault(a,this.cloneIdentifier(u.key));else if(this.match(29)){let A=this.state.startLoc;m!=null?m.shorthandAssignLoc===null&&(m.shorthandAssignLoc=A):this.raise(I.InvalidCoverInitializedName,A),u.value=this.parseMaybeDefault(a,this.cloneIdentifier(u.key))}else u.value=this.cloneIdentifier(u.key);return u.shorthand=!0,this.finishObjectProperty(u)}}finishObjectProperty(u){return this.finishNode(u,"ObjectProperty")}parseObjPropValue(u,a,p,m,A,S,B){let O=this.parseObjectMethod(u,p,m,A,S)||this.parseObjectProperty(u,a,A,B);return O||this.unexpected(),O}parsePropertyName(u,a){if(this.eat(0))u.computed=!0,u.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:p,value:m}=this.state,A;if(at(p))A=this.parseIdentifier(!0);else switch(p){case 135:A=this.parseNumericLiteral(m);break;case 134:A=this.parseStringLiteral(m);break;case 136:A=this.parseBigIntLiteral(m);break;case 139:{let S=this.state.startLoc;a!=null?a.privateKeyLoc===null&&(a.privateKeyLoc=S):this.raise(I.UnexpectedPrivateField,S),A=this.parsePrivateName();break}default:this.unexpected()}u.key=A,p!==139&&(u.computed=!1)}}initFunction(u,a){u.id=null,u.generator=!1,u.async=a}parseMethod(u,a,p,m,A,S,B=!1){this.initFunction(u,p),u.generator=a,this.scope.enter(530|(B?576:0)|(A?32:0)),this.prodParam.enter(Cu(p,u.generator)),this.parseFunctionParams(u,m);let O=this.parseFunctionBodyAndFinish(u,S,!0);return this.prodParam.exit(),this.scope.exit(),O}parseArrayLike(u,a,p){a&&this.expectPlugin("recordAndTuple");let m=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let A=this.startNode();return this.next(),A.elements=this.parseExprList(u,!a,p,A),this.state.inFSharpPipelineDirectBody=m,this.finishNode(A,a?"TupleExpression":"ArrayExpression")}parseArrowExpression(u,a,p,m){this.scope.enter(518);let A=Cu(p,!1);!this.match(5)&&this.prodParam.hasIn&&(A|=8),this.prodParam.enter(A),this.initFunction(u,p);let S=this.state.maybeInArrowParameters;return a&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(u,a,m)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(u,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=S,this.finishNode(u,"ArrowFunctionExpression")}setArrowFunctionParameters(u,a,p){this.toAssignableList(a,p,!1),u.params=a}parseFunctionBodyAndFinish(u,a,p=!1){return this.parseFunctionBody(u,!1,p),this.finishNode(u,a)}parseFunctionBody(u,a,p=!1){let m=a&&!this.match(5);if(this.expressionScope.enter(Dm()),m)u.body=this.parseMaybeAssign(),this.checkParams(u,!1,a,!1);else{let A=this.state.strict,S=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),u.body=this.parseBlock(!0,!1,B=>{let O=!this.isSimpleParamList(u.params);B&&O&&this.raise(I.IllegalLanguageModeDirective,(u.kind==="method"||u.kind==="constructor")&&u.key?u.key.loc.end:u);let U=!A&&this.state.strict;this.checkParams(u,!this.state.strict&&!a&&!p&&!O,a,U),this.state.strict&&u.id&&this.checkIdentifier(u.id,65,U)}),this.prodParam.exit(),this.state.labels=S}this.expressionScope.exit()}isSimpleParameter(u){return u.type==="Identifier"}isSimpleParamList(u){for(let a=0,p=u.length;a<p;a++)if(!this.isSimpleParameter(u[a]))return!1;return!0}checkParams(u,a,p,m=!0){let A=!a&&new Set,S={type:"FormalParameters"};for(let B of u.params)this.checkLVal(B,S,5,A,m)}parseExprList(u,a,p,m){let A=[],S=!0;for(;!this.eat(u);){if(S)S=!1;else if(this.expect(12),this.match(u)){m&&this.addTrailingCommaExtraToNode(m),this.next();break}A.push(this.parseExprListItem(u,a,p))}return A}parseExprListItem(u,a,p,m){let A;if(this.match(12))a||this.raise(I.UnexpectedToken,this.state.curPosition(),{unexpected:","}),A=null;else if(this.match(21)){let S=this.state.startLoc;A=this.parseParenItem(this.parseSpread(p),S)}else if(this.match(17)){this.expectPlugin("partialApplication"),m||this.raise(I.UnexpectedArgumentPlaceholder,this.state.startLoc);let S=this.startNode();this.next(),A=this.finishNode(S,"ArgumentPlaceholder")}else A=this.parseMaybeAssignAllowInOrVoidPattern(u,p,this.parseParenItem);return A}parseIdentifier(u){let a=this.startNode(),p=this.parseIdentifierName(u);return this.createIdentifier(a,p)}createIdentifier(u,a){return u.name=a,u.loc.identifierName=a,this.finishNode(u,"Identifier")}createIdentifierAt(u,a,p){return u.name=a,u.loc.identifierName=a,this.finishNodeAt(u,"Identifier",p)}parseIdentifierName(u){let a,{startLoc:p,type:m}=this.state;at(m)?a=this.state.value:this.unexpected();let A=Pt(m);return u?A&&this.replaceToken(132):this.checkReservedWord(a,p,A,!1),this.next(),a}checkReservedWord(u,a,p,m){if(!(u.length>10||!ib(u))){if(p&&tb(u)){this.raise(I.UnexpectedKeyword,a,{keyword:u});return}if((this.state.strict?m?um:am:nm)(u,this.inModule)){this.raise(I.UnexpectedReservedWord,a,{reservedWord:u});return}else if(u==="yield"){if(this.prodParam.hasYield){this.raise(I.YieldBindingIdentifier,a);return}}else if(u==="await"){if(this.prodParam.hasAwait){this.raise(I.AwaitBindingIdentifier,a);return}if(this.scope.inStaticBlock){this.raise(I.AwaitBindingIdentifierInStaticBlock,a);return}this.expressionScope.recordAsyncArrowParametersError(a)}else if(u==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(I.ArgumentsInClass,a);return}}}recordAwaitIfAllowed(){let u=this.prodParam.hasAwait;return u&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),u}parseAwait(u){let a=this.startNodeAt(u);return this.expressionScope.recordParameterInitializerError(I.AwaitExpressionFormalParameter,a),this.eat(55)&&this.raise(I.ObsoleteAwaitStar,a),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(a.argument=this.parseMaybeUnary(null,!0)),this.finishNode(a,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:u}=this.state;return u===53||u===10||u===0||Fs(u)||u===102&&!this.state.containsEsc||u===138||u===56||this.hasPlugin("v8intrinsic")&&u===54}parseYield(u){let a=this.startNodeAt(u);this.expressionScope.recordParameterInitializerError(I.YieldInParameter,a);let p=!1,m=null;if(!this.hasPrecedingLineBreak())switch(p=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!p)break;default:m=this.parseMaybeAssign()}return a.delegate=p,a.argument=m,this.finishNode(a,"YieldExpression")}parseImportCall(u){if(this.next(),u.source=this.parseMaybeAssignAllowIn(),u.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(u.source);else if(u.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(u.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(I.ImportCallArity,u)}}return this.expect(11),this.finishNode(u,"ImportExpression")}checkPipelineAtInfixOperator(u,a){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&u.type==="SequenceExpression"&&this.raise(I.PipelineHeadSequenceExpression,a)}parseSmartPipelineBodyInStyle(u,a){if(this.isSimpleReference(u)){let p=this.startNodeAt(a);return p.callee=u,this.finishNode(p,"PipelineBareFunction")}else{let p=this.startNodeAt(a);return this.checkSmartPipeTopicBodyEarlyErrors(a),p.expression=u,this.finishNode(p,"PipelineTopicExpression")}}isSimpleReference(u){switch(u.type){case"MemberExpression":return!u.computed&&this.isSimpleReference(u.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(u){if(this.match(19))throw this.raise(I.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(I.PipelineTopicUnused,u)}withTopicBindingContext(u){let a=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return u()}finally{this.state.topicContext=a}}withSmartMixTopicForbiddingContext(u){return u()}withSoloAwaitPermittingContext(u){let a=this.state.soloAwait;this.state.soloAwait=!0;try{return u()}finally{this.state.soloAwait=a}}allowInAnd(u){let a=this.prodParam.currentFlags();if(8&~a){this.prodParam.enter(a|8);try{return u()}finally{this.prodParam.exit()}}return u()}disallowInAnd(u){let a=this.prodParam.currentFlags();if(8&a){this.prodParam.enter(a&-9);try{return u()}finally{this.prodParam.exit()}}return u()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(u){let a=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let p=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let m=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),a,u);return this.state.inFSharpPipelineDirectBody=p,m}parseModuleExpression(){this.expectPlugin("moduleBlocks");let u=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let a=this.startNodeAt(this.state.endLoc);this.next();let p=this.initializeScopes(!0);this.enterInitialScopes();try{u.body=this.parseProgram(a,8,"module")}finally{p()}return this.finishNode(u,"ModuleExpression")}parseVoidPattern(u){this.expectPlugin("discardBinding");let a=this.startNode();return u!=null&&(u.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(a,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(u,a,p){if(a!=null&&this.match(88)){let m=this.lookaheadCharCode();if(m===44||m===(u===3?93:u===8?125:41)||m===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(a))}return this.parseMaybeAssignAllowIn(a,p)}parsePropertyNamePrefixOperator(u){}},Bp={kind:1},Xb={kind:2},Yb=/[\uD800-\uDFFF]/u,Np=/in(?:stanceof)?/y;function Qb(u,a,p){for(let m=0;m<u.length;m++){let A=u[m],{type:S}=A;typeof S=="number"&&(A.type=Li(S))}return u}var Zb=class extends Gb{parseTopLevel(u,a){return u.program=this.parseProgram(a,140,this.options.sourceType==="module"?"module":"script"),u.comments=this.comments,this.optionFlags&256&&(u.tokens=Qb(this.tokens,this.input,this.startIndex)),this.finishNode(u,"File")}parseProgram(u,a,p){if(u.sourceType=p,u.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(u,!0,!0,a),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[A,S]of Array.from(this.scope.undefinedExports))this.raise(I.ModuleExportUndefined,S,{localName:A});this.addExtra(u,"topLevelAwait",this.state.hasTopLevelAwait)}let m;return a===140?m=this.finishNode(u,"Program"):m=this.finishNodeAt(u,"Program",g(this.state.startLoc,-1)),m}stmtToDirective(u){let a=this.castNodeTo(u,"Directive"),p=this.castNodeTo(u.expression,"DirectiveLiteral"),m=p.value,A=this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end)),S=p.value=A.slice(1,-1);return this.addExtra(p,"raw",A),this.addExtra(p,"rawValue",S),this.addExtra(p,"expressionValue",m),a.value=p,delete u.expression,a}parseInterpreterDirective(){if(!this.match(28))return null;let u=this.startNode();return u.value=this.state.value,this.next(),this.finishNode(u,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let u=this.nextTokenInLineStart(),a=this.codePointAtPos(u);if(this.isUnparsedContextual(u,"of")){let p=this.lookaheadCharCodeSince(u+2);if(p!==61&&p!==58&&p!==59)return!1}return!!(this.chStartsBindingIdentifier(a,u)||this.isUnparsedContextual(u,"void"))}nextTokenIsIdentifierOnSameLine(){let u=this.nextTokenInLineStart(),a=this.codePointAtPos(u);return this.chStartsBindingIdentifier(a,u)}isAwaitUsing(){if(!this.isContextual(96))return!1;let u=this.nextTokenInLineStart();if(this.isUnparsedContextual(u,"using")){u=this.nextTokenInLineStartSince(u+5);let a=this.codePointAtPos(u);if(this.chStartsBindingIdentifier(a,u))return!0}return!1}chStartsBindingIdentifier(u,a){if(ur(u)){if(Np.lastIndex=a,Np.test(this.input)){let p=this.codePointAtPos(Np.lastIndex);if(!$i(p)&&p!==92)return!1}return!0}else return u===92}chStartsBindingPattern(u){return u===91||u===123}hasFollowingBindingAtom(){let u=this.nextTokenStart(),a=this.codePointAtPos(u);return this.chStartsBindingPattern(a)||this.chStartsBindingIdentifier(a,u)}hasInLineFollowingBindingIdentifierOrBrace(){let u=this.nextTokenInLineStart(),a=this.codePointAtPos(u);return a===123||this.chStartsBindingIdentifier(a,u)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(u=!1){let a=0;return this.options.annexB&&!this.state.strict&&(a|=4,u&&(a|=8)),this.parseStatementLike(a)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(u){let a=null;return this.match(26)&&(a=this.parseDecorators(!0)),this.parseStatementContent(u,a)}parseStatementContent(u,a){let p=this.state.type,m=this.startNode(),A=!!(u&2),S=!!(u&4),B=u&1;switch(p){case 60:return this.parseBreakContinueStatement(m,!0);case 63:return this.parseBreakContinueStatement(m,!1);case 64:return this.parseDebuggerStatement(m);case 90:return this.parseDoWhileStatement(m);case 91:return this.parseForStatement(m);case 68:if(this.lookaheadCharCode()===46)break;return S||this.raise(this.state.strict?I.StrictFunction:this.options.annexB?I.SloppyFunctionAnnexB:I.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(m,!1,!A&&S);case 80:return A||this.unexpected(),this.parseClass(this.maybeTakeDecorators(a,m),!0);case 69:return this.parseIfStatement(m);case 70:return this.parseReturnStatement(m);case 71:return this.parseSwitchStatement(m);case 72:return this.parseThrowStatement(m);case 73:return this.parseTryStatement(m);case 96:if(this.isAwaitUsing())return this.allowsUsing()?A?this.recordAwaitIfAllowed()||this.raise(I.AwaitUsingNotInAsyncContext,m):this.raise(I.UnexpectedLexicalDeclaration,m):this.raise(I.UnexpectedUsingDeclaration,m),this.next(),this.parseVarStatement(m,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?A||this.raise(I.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(I.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(m,"using");case 100:{if(this.state.containsEsc)break;let R=this.nextTokenStart(),ne=this.codePointAtPos(R);if(ne!==91&&(!A&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(ne,R)&&ne!==123))break}case 75:A||this.raise(I.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let R=this.state.value;return this.parseVarStatement(m,R)}case 92:return this.parseWhileStatement(m);case 76:return this.parseWithStatement(m);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(m);case 83:{let R=this.lookaheadCharCode();if(R===40||R===46)break}case 82:{!(this.optionFlags&8)&&!B&&this.raise(I.UnexpectedImportExport,this.state.startLoc),this.next();let R;return p===83?R=this.parseImport(m):R=this.parseExport(m,a),this.assertModuleNodeAllowed(R),R}default:if(this.isAsyncFunction())return A||this.raise(I.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(m,!0,!A&&S)}let O=this.state.value,U=this.parseExpression();return Me(p)&&U.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(m,O,U,u):this.parseExpressionStatement(m,U,a)}assertModuleNodeAllowed(u){!(this.optionFlags&8)&&!this.inModule&&this.raise(I.ImportOutsideModule,u)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(u,a,p){return u&&(a.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(I.DecoratorsBeforeAfterExport,a.decorators[0]),a.decorators.unshift(...u)):a.decorators=u,this.resetStartLocationFromNode(a,u[0]),p&&this.resetStartLocationFromNode(p,a)),a}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(u){let a=[];do a.push(this.parseDecorator());while(this.match(26));if(this.match(82))u||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(I.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(I.UnexpectedLeadingDecorator,this.state.startLoc);return a}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let u=this.startNode();if(this.next(),this.hasPlugin("decorators")){let a=this.state.startLoc,p;if(this.match(10)){let m=this.state.startLoc;this.next(),p=this.parseExpression(),this.expect(11),p=this.wrapParenthesis(m,p);let A=this.state.startLoc;u.expression=this.parseMaybeDecoratorArguments(p,m),this.getPluginOption("decorators","allowCallParenthesized")===!1&&u.expression!==p&&this.raise(I.DecoratorArgumentsOutsideParentheses,A)}else{for(p=this.parseIdentifier(!1);this.eat(16);){let m=this.startNodeAt(a);m.object=p,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),m.property=this.parsePrivateName()):m.property=this.parseIdentifier(!0),m.computed=!1,p=this.finishNode(m,"MemberExpression")}u.expression=this.parseMaybeDecoratorArguments(p,a)}}else u.expression=this.parseExprSubscripts();return this.finishNode(u,"Decorator")}parseMaybeDecoratorArguments(u,a){if(this.eat(10)){let p=this.startNodeAt(a);return p.callee=u,p.arguments=this.parseCallExpressionArguments(),this.toReferencedList(p.arguments),this.finishNode(p,"CallExpression")}return u}parseBreakContinueStatement(u,a){return this.next(),this.isLineTerminator()?u.label=null:(u.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(u,a),this.finishNode(u,a?"BreakStatement":"ContinueStatement")}verifyBreakContinue(u,a){let p;for(p=0;p<this.state.labels.length;++p){let m=this.state.labels[p];if((u.label==null||m.name===u.label.name)&&(m.kind!=null&&(a||m.kind===1)||u.label&&a))break}if(p===this.state.labels.length){let m=a?"BreakStatement":"ContinueStatement";this.raise(I.IllegalBreakContinue,u,{type:m})}}parseDebuggerStatement(u){return this.next(),this.semicolon(),this.finishNode(u,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let u=this.parseExpression();return this.expect(11),u}parseDoWhileStatement(u){return this.next(),this.state.labels.push(Bp),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),u.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(u,"DoWhileStatement")}parseForStatement(u){this.next(),this.state.labels.push(Bp);let a=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(a=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return a!==null&&this.unexpected(a),this.parseFor(u,null);let p=this.isContextual(100);{let O=this.isAwaitUsing(),U=O||this.isForUsing(),R=p&&this.hasFollowingBindingAtom()||U;if(this.match(74)||this.match(75)||R){let ne=this.startNode(),De;O?(De="await using",this.recordAwaitIfAllowed()||this.raise(I.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):De=this.state.value,this.next(),this.parseVar(ne,!0,De);let _e=this.finishNode(ne,"VariableDeclaration"),Re=this.match(58);return Re&&U&&this.raise(I.ForInUsing,_e),(Re||this.isContextual(102))&&_e.declarations.length===1?this.parseForIn(u,_e,a):(a!==null&&this.unexpected(a),this.parseFor(u,_e))}}let m=this.isContextual(95),A=new vu,S=this.parseExpression(!0,A),B=this.isContextual(102);if(B&&(p&&this.raise(I.ForOfLet,S),a===null&&m&&S.type==="Identifier"&&this.raise(I.ForOfAsync,S)),B||this.match(58)){this.checkDestructuringPrivate(A),this.toAssignable(S,!0);let O=B?"ForOfStatement":"ForInStatement";return this.checkLVal(S,{type:O}),this.parseForIn(u,S,a)}else this.checkExpressionErrors(A,!0);return a!==null&&this.unexpected(a),this.parseFor(u,S)}parseFunctionStatement(u,a,p){return this.next(),this.parseFunction(u,1|(p?2:0)|(a?8:0))}parseIfStatement(u){return this.next(),u.test=this.parseHeaderExpression(),u.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),u.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(u,"IfStatement")}parseReturnStatement(u){return this.prodParam.hasReturn||this.raise(I.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?u.argument=null:(u.argument=this.parseExpression(),this.semicolon()),this.finishNode(u,"ReturnStatement")}parseSwitchStatement(u){this.next(),u.discriminant=this.parseHeaderExpression();let a=u.cases=[];this.expect(5),this.state.labels.push(Xb),this.scope.enter(256);let p;for(let m;!this.match(8);)if(this.match(61)||this.match(65)){let A=this.match(61);p&&this.finishNode(p,"SwitchCase"),a.push(p=this.startNode()),p.consequent=[],this.next(),A?p.test=this.parseExpression():(m&&this.raise(I.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),m=!0,p.test=null),this.expect(14)}else p?p.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),p&&this.finishNode(p,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(u,"SwitchStatement")}parseThrowStatement(u){return this.next(),this.hasPrecedingLineBreak()&&this.raise(I.NewlineAfterThrow,this.state.lastTokEndLoc),u.argument=this.parseExpression(),this.semicolon(),this.finishNode(u,"ThrowStatement")}parseCatchClauseParam(){let u=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&u.type==="Identifier"?8:0),this.checkLVal(u,{type:"CatchClause"},9),u}parseTryStatement(u){if(this.next(),u.block=this.parseBlock(),u.handler=null,this.match(62)){let a=this.startNode();this.next(),this.match(10)?(this.expect(10),a.param=this.parseCatchClauseParam(),this.expect(11)):(a.param=null,this.scope.enter(0)),a.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),u.handler=this.finishNode(a,"CatchClause")}return u.finalizer=this.eat(67)?this.parseBlock():null,!u.handler&&!u.finalizer&&this.raise(I.NoCatchOrFinally,u),this.finishNode(u,"TryStatement")}parseVarStatement(u,a,p=!1){return this.next(),this.parseVar(u,!1,a,p),this.semicolon(),this.finishNode(u,"VariableDeclaration")}parseWhileStatement(u){return this.next(),u.test=this.parseHeaderExpression(),this.state.labels.push(Bp),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(u,"WhileStatement")}parseWithStatement(u){return this.state.strict&&this.raise(I.StrictWith,this.state.startLoc),this.next(),u.object=this.parseHeaderExpression(),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(u,"WithStatement")}parseEmptyStatement(u){return this.next(),this.finishNode(u,"EmptyStatement")}parseLabeledStatement(u,a,p,m){for(let S of this.state.labels)S.name===a&&this.raise(I.LabelRedeclaration,p,{labelName:a});let A=kt(this.state.type)?1:this.match(71)?2:null;for(let S=this.state.labels.length-1;S>=0;S--){let B=this.state.labels[S];if(B.statementStart===u.start)B.statementStart=this.sourceToOffsetPos(this.state.start),B.kind=A;else break}return this.state.labels.push({name:a,kind:A,statementStart:this.sourceToOffsetPos(this.state.start)}),u.body=m&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),u.label=p,this.finishNode(u,"LabeledStatement")}parseExpressionStatement(u,a,p){return u.expression=a,this.semicolon(),this.finishNode(u,"ExpressionStatement")}parseBlock(u=!1,a=!0,p){let m=this.startNode();return u&&this.state.strictErrors.clear(),this.expect(5),a&&this.scope.enter(0),this.parseBlockBody(m,u,!1,8,p),a&&this.scope.exit(),this.finishNode(m,"BlockStatement")}isValidDirective(u){return u.type==="ExpressionStatement"&&u.expression.type==="StringLiteral"&&!u.expression.extra.parenthesized}parseBlockBody(u,a,p,m,A){let S=u.body=[],B=u.directives=[];this.parseBlockOrModuleBlockBody(S,a?B:void 0,p,m,A)}parseBlockOrModuleBlockBody(u,a,p,m,A){let S=this.state.strict,B=!1,O=!1;for(;!this.match(m);){let U=p?this.parseModuleItem():this.parseStatementListItem();if(a&&!O){if(this.isValidDirective(U)){let R=this.stmtToDirective(U);a.push(R),!B&&R.value.value==="use strict"&&(B=!0,this.setStrict(!0));continue}O=!0,this.state.strictErrors.clear()}u.push(U)}A?.call(this,B),S||this.setStrict(!1),this.next()}parseFor(u,a){return u.init=a,this.semicolon(!1),u.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),u.update=this.match(11)?null:this.parseExpression(),this.expect(11),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(u,"ForStatement")}parseForIn(u,a,p){let m=this.match(58);return this.next(),m?p!==null&&this.unexpected(p):u.await=p!==null,a.type==="VariableDeclaration"&&a.declarations[0].init!=null&&(!m||!this.options.annexB||this.state.strict||a.kind!=="var"||a.declarations[0].id.type!=="Identifier")&&this.raise(I.ForInOfLoopInitializer,a,{type:m?"ForInStatement":"ForOfStatement"}),a.type==="AssignmentPattern"&&this.raise(I.InvalidLhs,a,{ancestor:{type:"ForStatement"}}),u.left=a,u.right=m?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),u.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(u,m?"ForInStatement":"ForOfStatement")}parseVar(u,a,p,m=!1){let A=u.declarations=[];for(u.kind=p;;){let S=this.startNode();if(this.parseVarId(S,p),S.init=this.eat(29)?a?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,S.init===null&&!m&&(S.id.type!=="Identifier"&&!(a&&(this.match(58)||this.isContextual(102)))?this.raise(I.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(p==="const"||p==="using"||p==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(I.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:p})),A.push(this.finishNode(S,"VariableDeclarator")),!this.eat(12))break}return u}parseVarId(u,a){let p=this.parseBindingAtom();a==="using"||a==="await using"?(p.type==="ArrayPattern"||p.type==="ObjectPattern")&&this.raise(I.UsingDeclarationHasBindingPattern,p.loc.start):p.type==="VoidPattern"&&this.raise(I.UnexpectedVoidPattern,p.loc.start),this.checkLVal(p,{type:"VariableDeclarator"},a==="var"?5:8201),u.id=p}parseAsyncFunctionExpression(u){return this.parseFunction(u,8)}parseFunction(u,a=0){let p=a&2,m=!!(a&1),A=m&&!(a&4),S=!!(a&8);this.initFunction(u,S),this.match(55)&&(p&&this.raise(I.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),u.generator=!0),m&&(u.id=this.parseFunctionId(A));let B=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Cu(S,u.generator)),m||(u.id=this.parseFunctionId()),this.parseFunctionParams(u,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(u,m?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),m&&!p&&this.registerFunctionStatementId(u),this.state.maybeInArrowParameters=B,u}parseFunctionId(u){return u||Me(this.state.type)?this.parseIdentifier():null}parseFunctionParams(u,a){this.expect(10),this.expressionScope.enter(Bb()),u.params=this.parseBindingList(11,41,2|(a?4:0)),this.expressionScope.exit()}registerFunctionStatementId(u){u.id&&this.scope.declareName(u.id.name,!this.options.annexB||this.state.strict||u.generator||u.async?this.scope.treatFunctionsAsVar?5:8201:17,u.id.loc.start)}parseClass(u,a,p){this.next();let m=this.state.strict;return this.state.strict=!0,this.parseClassId(u,a,p),this.parseClassSuper(u),u.body=this.parseClassBody(!!u.superClass,m),this.finishNode(u,a?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(u){return u.type==="Identifier"&&u.name==="constructor"||u.type==="StringLiteral"&&u.value==="constructor"}isNonstaticConstructor(u){return!u.computed&&!u.static&&this.nameIsConstructor(u.key)}parseClassBody(u,a){this.classScope.enter();let p={hadConstructor:!1,hadSuperClass:u},m=[],A=this.startNode();if(A.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(m.length>0)throw this.raise(I.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){m.push(this.parseDecorator());continue}let S=this.startNode();m.length&&(S.decorators=m,this.resetStartLocationFromNode(S,m[0]),m=[]),this.parseClassMember(A,S,p),S.kind==="constructor"&&S.decorators&&S.decorators.length>0&&this.raise(I.DecoratorConstructor,S)}}),this.state.strict=a,this.next(),m.length)throw this.raise(I.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(A,"ClassBody")}parseClassMemberFromModifier(u,a){let p=this.parseIdentifier(!0);if(this.isClassMethod()){let m=a;return m.kind="method",m.computed=!1,m.key=p,m.static=!1,this.pushClassMethod(u,m,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let m=a;return m.computed=!1,m.key=p,m.static=!1,u.body.push(this.parseClassProperty(m)),!0}return this.resetPreviousNodeTrailingComments(p),!1}parseClassMember(u,a,p){let m=this.isContextual(106);if(m){if(this.parseClassMemberFromModifier(u,a))return;if(this.eat(5)){this.parseClassStaticBlock(u,a);return}}this.parseClassMemberWithIsStatic(u,a,p,m)}parseClassMemberWithIsStatic(u,a,p,m){let A=a,S=a,B=a,O=a,U=a,R=A,ne=A;if(a.static=m,this.parsePropertyNamePrefixOperator(a),this.eat(55)){R.kind="method";let bt=this.match(139);if(this.parseClassElementName(R),this.parsePostMemberNameModifiers(R),bt){this.pushClassPrivateMethod(u,S,!0,!1);return}this.isNonstaticConstructor(A)&&this.raise(I.ConstructorIsGenerator,A.key),this.pushClassMethod(u,A,!0,!1,!1,!1);return}let De=!this.state.containsEsc&&Me(this.state.type),_e=this.parseClassElementName(a),Re=De?_e.name:null,It=this.isPrivateName(_e),qt=this.state.startLoc;if(this.parsePostMemberNameModifiers(ne),this.isClassMethod()){if(R.kind="method",It){this.pushClassPrivateMethod(u,S,!1,!1);return}let bt=this.isNonstaticConstructor(A),Tt=!1;bt&&(A.kind="constructor",p.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(I.DuplicateConstructor,_e),bt&&this.hasPlugin("typescript")&&a.override&&this.raise(I.OverrideOnConstructor,_e),p.hadConstructor=!0,Tt=p.hadSuperClass),this.pushClassMethod(u,A,!1,!1,bt,Tt)}else if(this.isClassProperty())It?this.pushClassPrivateProperty(u,O):this.pushClassProperty(u,B);else if(Re==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(_e);let bt=this.eat(55);ne.optional&&this.unexpected(qt),R.kind="method";let Tt=this.match(139);this.parseClassElementName(R),this.parsePostMemberNameModifiers(ne),Tt?this.pushClassPrivateMethod(u,S,bt,!0):(this.isNonstaticConstructor(A)&&this.raise(I.ConstructorIsAsync,A.key),this.pushClassMethod(u,A,bt,!0,!1,!1))}else if((Re==="get"||Re==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(_e),R.kind=Re;let bt=this.match(139);this.parseClassElementName(A),bt?this.pushClassPrivateMethod(u,S,!1,!1):(this.isNonstaticConstructor(A)&&this.raise(I.ConstructorIsAccessor,A.key),this.pushClassMethod(u,A,!1,!1,!1,!1)),this.checkGetterSetterParams(A)}else if(Re==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(_e);let bt=this.match(139);this.parseClassElementName(B),this.pushClassAccessorProperty(u,U,bt)}else this.isLineTerminator()?It?this.pushClassPrivateProperty(u,O):this.pushClassProperty(u,B):this.unexpected()}parseClassElementName(u){let{type:a,value:p}=this.state;if((a===132||a===134)&&u.static&&p==="prototype"&&this.raise(I.StaticPrototype,this.state.startLoc),a===139){p==="constructor"&&this.raise(I.ConstructorClassPrivateField,this.state.startLoc);let m=this.parsePrivateName();return u.key=m,m}return this.parsePropertyName(u),u.key}parseClassStaticBlock(u,a){this.scope.enter(720);let p=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let m=a.body=[];this.parseBlockOrModuleBlockBody(m,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=p,u.body.push(this.finishNode(a,"StaticBlock")),a.decorators?.length&&this.raise(I.DecoratorStaticBlock,a)}pushClassProperty(u,a){!a.computed&&this.nameIsConstructor(a.key)&&this.raise(I.ConstructorClassField,a.key),u.body.push(this.parseClassProperty(a))}pushClassPrivateProperty(u,a){let p=this.parseClassPrivateProperty(a);u.body.push(p),this.classScope.declarePrivateName(this.getPrivateNameSV(p.key),0,p.key.loc.start)}pushClassAccessorProperty(u,a,p){!p&&!a.computed&&this.nameIsConstructor(a.key)&&this.raise(I.ConstructorClassField,a.key);let m=this.parseClassAccessorProperty(a);u.body.push(m),p&&this.classScope.declarePrivateName(this.getPrivateNameSV(m.key),0,m.key.loc.start)}pushClassMethod(u,a,p,m,A,S){u.body.push(this.parseMethod(a,p,m,A,S,"ClassMethod",!0))}pushClassPrivateMethod(u,a,p,m){let A=this.parseMethod(a,p,m,!1,!1,"ClassPrivateMethod",!0);u.body.push(A);let S=A.kind==="get"?A.static?6:2:A.kind==="set"?A.static?5:1:0;this.declareClassPrivateMethodInScope(A,S)}declareClassPrivateMethodInScope(u,a){this.classScope.declarePrivateName(this.getPrivateNameSV(u.key),a,u.key.loc.start)}parsePostMemberNameModifiers(u){}parseClassPrivateProperty(u){return this.parseInitializer(u),this.semicolon(),this.finishNode(u,"ClassPrivateProperty")}parseClassProperty(u){return this.parseInitializer(u),this.semicolon(),this.finishNode(u,"ClassProperty")}parseClassAccessorProperty(u){return this.parseInitializer(u),this.semicolon(),this.finishNode(u,"ClassAccessorProperty")}parseInitializer(u){this.scope.enter(592),this.expressionScope.enter(Dm()),this.prodParam.enter(0),u.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(u,a,p,m=8331){if(Me(this.state.type))u.id=this.parseIdentifier(),a&&this.declareNameFromIdentifier(u.id,m);else if(p||!a)u.id=null;else throw this.raise(I.MissingClassName,this.state.startLoc)}parseClassSuper(u){u.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(u,a){let p=this.parseMaybeImportPhase(u,!0),m=this.maybeParseExportDefaultSpecifier(u,p),A=!m||this.eat(12),S=A&&this.eatExportStar(u),B=S&&this.maybeParseExportNamespaceSpecifier(u),O=A&&(!B||this.eat(12)),U=m||S;if(S&&!B){if(m&&this.unexpected(),a)throw this.raise(I.UnsupportedDecoratorExport,u);return this.parseExportFrom(u,!0),this.sawUnambiguousESM=!0,this.finishNode(u,"ExportAllDeclaration")}let R=this.maybeParseExportNamedSpecifiers(u);m&&A&&!S&&!R&&this.unexpected(null,5),B&&O&&this.unexpected(null,98);let ne;if(U||R){if(ne=!1,a)throw this.raise(I.UnsupportedDecoratorExport,u);this.parseExportFrom(u,U)}else ne=this.maybeParseExportDeclaration(u);if(U||R||ne){let De=u;if(this.checkExport(De,!0,!1,!!De.source),De.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(a,De.declaration,De);else if(a)throw this.raise(I.UnsupportedDecoratorExport,u);return this.sawUnambiguousESM=!0,this.finishNode(De,"ExportNamedDeclaration")}if(this.eat(65)){let De=u,_e=this.parseExportDefaultExpression();if(De.declaration=_e,_e.type==="ClassDeclaration")this.maybeTakeDecorators(a,_e,De);else if(a)throw this.raise(I.UnsupportedDecoratorExport,u);return this.checkExport(De,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(De,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(u){return this.eat(55)}maybeParseExportDefaultSpecifier(u,a){if(a||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",a?.loc.start);let p=a||this.parseIdentifier(!0),m=this.startNodeAtNode(p);return m.exported=p,u.specifiers=[this.finishNode(m,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(u){if(this.isContextual(93)){u.specifiers??(u.specifiers=[]);let a=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),a.exported=this.parseModuleExportName(),u.specifiers.push(this.finishNode(a,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(u){if(this.match(5)){let a=u;a.specifiers||(a.specifiers=[]);let p=a.exportKind==="type";return a.specifiers.push(...this.parseExportSpecifiers(p)),a.source=null,a.attributes=[],a.declaration=null,!0}return!1}maybeParseExportDeclaration(u){return this.shouldParseExportDeclaration()?(u.specifiers=[],u.source=null,u.attributes=[],u.declaration=this.parseExportDeclaration(u),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let u=this.nextTokenInLineStart();return this.isUnparsedContextual(u,"function")}parseExportDefaultExpression(){let u=this.startNode();if(this.match(68))return this.next(),this.parseFunction(u,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(u,13);if(this.match(80))return this.parseClass(u,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(I.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(I.UnsupportedDefaultExport,this.state.startLoc);let a=this.parseMaybeAssignAllowIn();return this.semicolon(),a}parseExportDeclaration(u){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:u}=this.state;if(Me(u)){if(u===95&&!this.state.containsEsc||u===100)return!1;if((u===130||u===129)&&!this.state.containsEsc){let m=this.nextTokenStart(),A=this.input.charCodeAt(m);if(A===123||this.chStartsBindingIdentifier(A,m)&&!this.input.startsWith("from",m))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let a=this.nextTokenStart(),p=this.isUnparsedContextual(a,"from");if(this.input.charCodeAt(a)===44||Me(this.state.type)&&p)return!0;if(this.match(65)&&p){let m=this.input.charCodeAt(this.nextTokenStartSince(a+4));return m===34||m===39}return!1}parseExportFrom(u,a){this.eatContextual(98)?(u.source=this.parseImportSource(),this.checkExport(u),this.maybeParseImportAttributes(u),this.checkJSONModuleImport(u)):a&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:u}=this.state;return u===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(I.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(I.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(I.UsingDeclarationExport,this.state.startLoc),!0):u===74||u===75||u===68||u===80||this.isLet()||this.isAsyncFunction()}checkExport(u,a,p,m){if(a){if(p){if(this.checkDuplicateExports(u,"default"),this.hasPlugin("exportDefaultFrom")){let A=u.declaration;A.type==="Identifier"&&A.name==="from"&&A.end-A.start===4&&!A.extra?.parenthesized&&this.raise(I.ExportDefaultFromAsIdentifier,A)}}else if(u.specifiers?.length)for(let A of u.specifiers){let{exported:S}=A,B=S.type==="Identifier"?S.name:S.value;if(this.checkDuplicateExports(A,B),!m&&A.local){let{local:O}=A;O.type!=="Identifier"?this.raise(I.ExportBindingIsString,A,{localName:O.value,exportName:B}):(this.checkReservedWord(O.name,O.loc.start,!0,!1),this.scope.checkLocalExport(O))}}else if(u.declaration){let A=u.declaration;if(A.type==="FunctionDeclaration"||A.type==="ClassDeclaration"){let{id:S}=A;if(!S)throw new Error("Assertion failure");this.checkDuplicateExports(u,S.name)}else if(A.type==="VariableDeclaration")for(let S of A.declarations)this.checkDeclaration(S.id)}}}checkDeclaration(u){if(u.type==="Identifier")this.checkDuplicateExports(u,u.name);else if(u.type==="ObjectPattern")for(let a of u.properties)this.checkDeclaration(a);else if(u.type==="ArrayPattern")for(let a of u.elements)a&&this.checkDeclaration(a);else u.type==="ObjectProperty"?this.checkDeclaration(u.value):u.type==="RestElement"?this.checkDeclaration(u.argument):u.type==="AssignmentPattern"&&this.checkDeclaration(u.left)}checkDuplicateExports(u,a){this.exportedIdentifiers.has(a)&&(a==="default"?this.raise(I.DuplicateDefaultExport,u):this.raise(I.DuplicateExport,u,{exportName:a})),this.exportedIdentifiers.add(a)}parseExportSpecifiers(u){let a=[],p=!0;for(this.expect(5);!this.eat(8);){if(p)p=!1;else if(this.expect(12),this.eat(8))break;let m=this.isContextual(130),A=this.match(134),S=this.startNode();S.local=this.parseModuleExportName(),a.push(this.parseExportSpecifier(S,A,u,m))}return a}parseExportSpecifier(u,a,p,m){return this.eatContextual(93)?u.exported=this.parseModuleExportName():a?u.exported=this.cloneStringLiteral(u.local):u.exported||(u.exported=this.cloneIdentifier(u.local)),this.finishNode(u,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let u=this.parseStringLiteral(this.state.value),a=Yb.exec(u.value);return a&&this.raise(I.ModuleExportNameHasLoneSurrogate,u,{surrogateCharCode:a[0].charCodeAt(0)}),u}return this.parseIdentifier(!0)}isJSONModuleImport(u){return u.assertions!=null?u.assertions.some(({key:a,value:p})=>p.value==="json"&&(a.type==="Identifier"?a.name==="type":a.value==="type")):!1}checkImportReflection(u){let{specifiers:a}=u,p=a.length===1?a[0].type:null;u.phase==="source"?p!=="ImportDefaultSpecifier"&&this.raise(I.SourcePhaseImportRequiresDefault,a[0].loc.start):u.phase==="defer"?p!=="ImportNamespaceSpecifier"&&this.raise(I.DeferImportRequiresNamespace,a[0].loc.start):u.module&&(p!=="ImportDefaultSpecifier"&&this.raise(I.ImportReflectionNotBinding,a[0].loc.start),u.assertions?.length>0&&this.raise(I.ImportReflectionHasAssertion,a[0].loc.start))}checkJSONModuleImport(u){if(this.isJSONModuleImport(u)&&u.type!=="ExportAllDeclaration"){let{specifiers:a}=u;if(a!=null){let p=a.find(m=>{let A;if(m.type==="ExportSpecifier"?A=m.local:m.type==="ImportSpecifier"&&(A=m.imported),A!==void 0)return A.type==="Identifier"?A.name!=="default":A.value!=="default"});p!==void 0&&this.raise(I.ImportJSONBindingNotDefault,p.loc.start)}}}isPotentialImportPhase(u){return u?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(u,a,p,m){a||(this.hasPlugin("importReflection")&&(u.module=!1),p==="source"?(this.expectPlugin("sourcePhaseImports",m),u.phase="source"):p==="defer"?(this.expectPlugin("deferredImportEvaluation",m),u.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(u.phase=null))}parseMaybeImportPhase(u,a){if(!this.isPotentialImportPhase(a))return this.applyImportPhase(u,a,null),null;let p=this.startNode(),m=this.parseIdentifierName(!0),{type:A}=this.state;return(at(A)?A!==98||this.lookaheadCharCode()===102:A!==12)?(this.applyImportPhase(u,a,m,p.loc.start),null):(this.applyImportPhase(u,a,null),this.createIdentifier(p,m))}isPrecedingIdImportPhase(u){let{type:a}=this.state;return Me(a)?a!==98||this.lookaheadCharCode()===102:a!==12}parseImport(u){return this.match(134)?this.parseImportSourceAndAttributes(u):this.parseImportSpecifiersAndAfter(u,this.parseMaybeImportPhase(u,!1))}parseImportSpecifiersAndAfter(u,a){u.specifiers=[];let p=!this.maybeParseDefaultImportSpecifier(u,a)||this.eat(12),m=p&&this.maybeParseStarImportSpecifier(u);return p&&!m&&this.parseNamedImportSpecifiers(u),this.expectContextual(98),this.parseImportSourceAndAttributes(u)}parseImportSourceAndAttributes(u){return u.specifiers??(u.specifiers=[]),u.source=this.parseImportSource(),this.maybeParseImportAttributes(u),this.checkImportReflection(u),this.checkJSONModuleImport(u),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(u,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(u,a,p){a.local=this.parseIdentifier(),u.specifiers.push(this.finishImportSpecifier(a,p))}finishImportSpecifier(u,a,p=8201){return this.checkLVal(u.local,{type:a},p),this.finishNode(u,a)}parseImportAttributes(){this.expect(5);let u=[],a=new Set;do{if(this.match(8))break;let p=this.startNode(),m=this.state.value;if(a.has(m)&&this.raise(I.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:m}),a.add(m),this.match(134)?p.key=this.parseStringLiteral(m):p.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(I.ModuleAttributeInvalidValue,this.state.startLoc);p.value=this.parseStringLiteral(this.state.value),u.push(this.finishNode(p,"ImportAttribute"))}while(this.eat(12));return this.expect(8),u}parseModuleAttributes(){let u=[],a=new Set;do{let p=this.startNode();if(p.key=this.parseIdentifier(!0),p.key.name!=="type"&&this.raise(I.ModuleAttributeDifferentFromType,p.key),a.has(p.key.name)&&this.raise(I.ModuleAttributesWithDuplicateKeys,p.key,{key:p.key.name}),a.add(p.key.name),this.expect(14),!this.match(134))throw this.raise(I.ModuleAttributeInvalidValue,this.state.startLoc);p.value=this.parseStringLiteral(this.state.value),u.push(this.finishNode(p,"ImportAttribute"))}while(this.eat(12));return u}maybeParseImportAttributes(u){let a;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),a=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(I.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(u,"deprecatedAssertSyntax",!0),this.next(),a=this.parseImportAttributes()):a=[];u.attributes=a}maybeParseDefaultImportSpecifier(u,a){if(a){let p=this.startNodeAtNode(a);return p.local=a,u.specifiers.push(this.finishImportSpecifier(p,"ImportDefaultSpecifier")),!0}else if(at(this.state.type))return this.parseImportSpecifierLocal(u,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(u){if(this.match(55)){let a=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(u,a,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(u){let a=!0;for(this.expect(5);!this.eat(8);){if(a)a=!1;else{if(this.eat(14))throw this.raise(I.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let p=this.startNode(),m=this.match(134),A=this.isContextual(130);p.imported=this.parseModuleExportName();let S=this.parseImportSpecifier(p,m,u.importKind==="type"||u.importKind==="typeof",A,void 0);u.specifiers.push(S)}}parseImportSpecifier(u,a,p,m,A){if(this.eatContextual(93))u.local=this.parseIdentifier();else{let{imported:S}=u;if(a)throw this.raise(I.ImportBindingIsString,u,{importName:S.value});this.checkReservedWord(S.name,u.loc.start,!0,!0),u.local||(u.local=this.cloneIdentifier(S))}return this.finishImportSpecifier(u,"ImportSpecifier",A)}isThisParam(u){return u.type==="Identifier"&&u.name==="this"}},wm=class extends Zb{constructor(u,a,p){let m=K(u);super(m,a),this.options=m,this.initializeScopes(),this.plugins=p,this.filename=m.sourceFilename,this.startIndex=m.startIndex;let A=0;m.allowAwaitOutsideFunction&&(A|=1),m.allowReturnOutsideFunction&&(A|=2),m.allowImportExportEverywhere&&(A|=8),m.allowSuperOutsideMethod&&(A|=16),m.allowUndeclaredExports&&(A|=64),m.allowNewTargetOutsideFunction&&(A|=4),m.allowYieldOutsideFunction&&(A|=32),m.ranges&&(A|=128),m.tokens&&(A|=256),m.createImportExpressions&&(A|=512),m.createParenthesizedExpressions&&(A|=1024),m.errorRecovery&&(A|=2048),m.attachComment&&(A|=4096),m.annexB&&(A|=8192),this.optionFlags=A}getScopeHandler(){return Tp}parse(){this.enterInitialScopes();let u=this.startNode(),a=this.startNode();this.nextToken(),u.errors=null;let p=this.parseTopLevel(u,a);return p.errors=this.state.errors,p.comments.length=this.state.commentsLen,p}};function Sm(u,a){if(a?.sourceType==="unambiguous"){a=Object.assign({},a);try{a.sourceType="module";let p=Ba(a,u),m=p.parse();if(p.sawUnambiguousESM)return m;if(p.ambiguousScriptDifferentAst)try{return a.sourceType="script",Ba(a,u).parse()}catch{}else m.program.sourceType="script";return m}catch(p){try{return a.sourceType="script",Ba(a,u).parse()}catch{}throw p}}else return Ba(a,u).parse()}function Pm(u,a){let p=Ba(a,u);return p.options.strictMode&&(p.state.strict=!0),p.getExpression()}function eT(u){let a={};for(let p of Object.keys(u))a[p]=Li(u[p]);return a}eT(At);function Ba(u,a){let p=wm,m=new Map;if(u?.plugins){for(let A of u.plugins){let S,B;typeof A=="string"?S=A:[S,B]=A,m.has(S)||m.set(S,B||{})}Jb(m),p=tT(m)}return new p(u,a,m)}var km=new Map;function tT(u){let a=[];for(let A of Kb)u.has(A)&&a.push(A);let p=a.join("|"),m=km.get(p);if(!m){m=wm;for(let A of a)m=Fm[A](m);km.set(p,m)}return m}function Im(u){return(a,p,m)=>{let A=!!m?.backwards;if(p===!1)return!1;let{length:S}=a,B=p;for(;B>=0&&B<S;){let O=a.charAt(B);if(u instanceof RegExp){if(!u.test(O))return B}else if(!u.includes(O))return B;A?B--:B++}return B===-1||B===S?B:!1}}var rT=Im(" "),sT=Im(/[^\n\r]/u);function iT(u,a){if(a===!1)return!1;if(u.charAt(a)==="/"&&u.charAt(a+1)==="*"){for(let p=a+2;p<u.length;++p)if(u.charAt(p)==="*"&&u.charAt(p+1)==="/")return p+2}return a}var nT=iT,Bm=u=>u===`
239
+ `||u==="\r"||u==="\u2028"||u==="\u2029";function aT(u,a,p){let m=!!p?.backwards;if(a===!1)return!1;let A=u.charAt(a);if(m){if(u.charAt(a-1)==="\r"&&A===`
240
+ `)return a-2;if(Bm(A))return a-1}else{if(A==="\r"&&u.charAt(a+1)===`
241
+ `)return a+2;if(Bm(A))return a+1}return a}var oT=aT;function uT(u,a){return a===!1?!1:u.charAt(a)==="/"&&u.charAt(a+1)==="/"?sT(u,a):a}var lT=uT;function pT(u,a){let p=null,m=a;for(;m!==p;)p=m,m=rT(u,m),m=nT(u,m),m=lT(u,m),m=oT(u,m);return m}var cT=pT;function hT(u){let a=[];for(let p of u)try{return p()}catch(m){a.push(m)}throw Object.assign(new Error("All combinations failed"),{errors:a})}function dT(u){if(!u.startsWith("#!"))return"";let a=u.indexOf(`
242
+ `);return a===-1?u:u.slice(0,a)}var Nm=dT,_p=(u,a)=>(p,m,...A)=>p|1&&m==null?void 0:(a.call(m)??m[u]).apply(m,A),fT=Array.prototype.findLast??function(u){for(let a=this.length-1;a>=0;a--){let p=this[a];if(u(p,a,this))return p}},mT=_p("findLast",function(){if(Array.isArray(this))return fT}),yT=mT;function DT(u){return this[u<0?this.length+u:u]}var gT=_p("at",function(){if(Array.isArray(this)||typeof this=="string")return DT}),xT=gT;function Ss(u){let a=u.range?.[0]??u.start,p=(u.declaration?.decorators??u.decorators)?.[0];return p?Math.min(Ss(p),a):a}function es(u){return u.range?.[1]??u.end}function ET(u){let a=new Set(u);return p=>a.has(p?.type)}var Lp=ET,AT=Lp(["Block","CommentBlock","MultiLine"]),Op=AT,CT=Lp(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),bT=CT,$p=new WeakMap;function TT(u){return $p.has(u)||$p.set(u,Op(u)&&u.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(u.value)),$p.get(u)}var vT=TT;function FT(u){if(!Op(u))return!1;let a=`*${u.value}*`.split(`
243
+ `);return a.length>1&&a.every(p=>p.trimStart()[0]==="*")}var Mp=new WeakMap;function wT(u){return Mp.has(u)||Mp.set(u,FT(u)),Mp.get(u)}var _m=wT;function ST(u){if(u.length<2)return;let a;for(let p=u.length-1;p>=0;p--){let m=u[p];if(a&&es(m)===Ss(a)&&_m(m)&&_m(a)&&(u.splice(p+1,1),m.value+="*//*"+a.value,m.range=[Ss(m),es(a)]),!bT(m)&&!Op(m))throw new TypeError(`Unknown comment type: "${m.type}".`);a=m}}var PT=ST;function kT(u){return u!==null&&typeof u=="object"}var IT=kT,Na=null;function _a(u){if(Na!==null&&typeof Na.property){let a=Na;return Na=_a.prototype=null,a}return Na=_a.prototype=u??Object.create(null),new _a}var BT=10;for(let u=0;u<=BT;u++)_a();function NT(u){return _a(u)}function _T(u,a="type"){NT(u);function p(m){let A=m[a],S=u[A];if(!Array.isArray(S))throw Object.assign(new Error(`Missing visitor keys for '${A}'.`),{node:m});return S}return p}var LT=_T,j=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],OT={AccessorProperty:j[0],AnyTypeAnnotation:j[1],ArgumentPlaceholder:j[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:j[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:j[3],AsExpression:j[4],AssignmentExpression:j[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:j[6],BigIntLiteral:j[1],BigIntLiteralTypeAnnotation:j[1],BigIntTypeAnnotation:j[1],BinaryExpression:j[5],BindExpression:["object","callee"],BlockStatement:j[7],BooleanLiteral:j[1],BooleanLiteralTypeAnnotation:j[1],BooleanTypeAnnotation:j[1],BreakStatement:j[8],CallExpression:j[9],CatchClause:["param","body"],ChainExpression:j[3],ClassAccessorProperty:j[0],ClassBody:j[10],ClassDeclaration:j[11],ClassExpression:j[11],ClassImplements:j[12],ClassMethod:j[13],ClassPrivateMethod:j[13],ClassPrivateProperty:j[14],ClassProperty:j[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:j[15],ConditionalExpression:j[16],ConditionalTypeAnnotation:j[17],ContinueStatement:j[8],DebuggerStatement:j[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:j[18],DeclareEnum:j[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:j[20],DeclareFunction:["id","predicate"],DeclareHook:j[21],DeclareInterface:j[22],DeclareModule:j[19],DeclareModuleExports:j[23],DeclareNamespace:j[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:j[24],DeclareVariable:j[21],Decorator:j[3],Directive:j[18],DirectiveLiteral:j[1],DoExpression:j[10],DoWhileStatement:j[25],EmptyStatement:j[1],EmptyTypeAnnotation:j[1],EnumBigIntBody:j[26],EnumBigIntMember:j[27],EnumBooleanBody:j[26],EnumBooleanMember:j[27],EnumDeclaration:j[19],EnumDefaultedMember:j[21],EnumNumberBody:j[26],EnumNumberMember:j[27],EnumStringBody:j[26],EnumStringMember:j[27],EnumSymbolBody:j[26],ExistsTypeAnnotation:j[1],ExperimentalRestProperty:j[6],ExperimentalSpreadProperty:j[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:j[28],ExportNamedDeclaration:j[20],ExportNamespaceSpecifier:j[28],ExportSpecifier:["local","exported"],ExpressionStatement:j[3],File:["program"],ForInStatement:j[29],ForOfStatement:j[29],ForStatement:["init","test","update","body"],FunctionDeclaration:j[30],FunctionExpression:j[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:j[15],GenericTypeAnnotation:j[12],HookDeclaration:j[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:j[16],ImportAttribute:j[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:j[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:j[33],ImportSpecifier:["imported","local"],IndexedAccessType:j[34],InferredPredicate:j[1],InferTypeAnnotation:j[35],InterfaceDeclaration:j[22],InterfaceExtends:j[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:j[1],IntersectionTypeAnnotation:j[36],JsExpressionRoot:j[37],JsonRoot:j[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:j[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:j[1],JSXExpressionContainer:j[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:j[1],JSXMemberExpression:j[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:j[1],JSXSpreadAttribute:j[6],JSXSpreadChild:j[3],JSXText:j[1],KeyofTypeAnnotation:j[6],LabeledStatement:["label","body"],Literal:j[1],LogicalExpression:j[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:j[21],MatchExpression:j[39],MatchExpressionCase:j[40],MatchIdentifierPattern:j[21],MatchLiteralPattern:j[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:j[6],MatchStatement:j[39],MatchStatementCase:j[40],MatchUnaryPattern:j[6],MatchWildcardPattern:j[1],MemberExpression:j[38],MetaProperty:["meta","property"],MethodDefinition:j[42],MixedTypeAnnotation:j[1],ModuleExpression:j[10],NeverTypeAnnotation:j[1],NewExpression:j[9],NGChainedExpression:j[43],NGEmptyExpression:j[1],NGMicrosyntax:j[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:j[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:j[32],NGPipeExpression:["left","right","arguments"],NGRoot:j[37],NullableTypeAnnotation:j[23],NullLiteral:j[1],NullLiteralTypeAnnotation:j[1],NumberLiteralTypeAnnotation:j[1],NumberTypeAnnotation:j[1],NumericLiteral:j[1],ObjectExpression:["properties"],ObjectMethod:j[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:j[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:j[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:j[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:j[9],OptionalIndexedAccessType:j[34],OptionalMemberExpression:j[38],ParenthesizedExpression:j[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:j[1],PipelineTopicExpression:j[3],Placeholder:j[1],PrivateIdentifier:j[1],PrivateName:j[21],Program:j[7],Property:j[32],PropertyDefinition:j[14],QualifiedTypeIdentifier:j[44],QualifiedTypeofIdentifier:j[44],RegExpLiteral:j[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:j[6],SatisfiesExpression:j[4],SequenceExpression:j[43],SpreadElement:j[6],StaticBlock:j[10],StringLiteral:j[1],StringLiteralTypeAnnotation:j[1],StringTypeAnnotation:j[1],Super:j[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:j[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:j[1],TemplateLiteral:["quasis","expressions"],ThisExpression:j[1],ThisTypeAnnotation:j[1],ThrowStatement:j[6],TopicReference:j[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:j[45],TSAbstractKeyword:j[1],TSAbstractMethodDefinition:j[32],TSAbstractPropertyDefinition:j[45],TSAnyKeyword:j[1],TSArrayType:j[2],TSAsExpression:j[4],TSAsyncKeyword:j[1],TSBigIntKeyword:j[1],TSBooleanKeyword:j[1],TSCallSignatureDeclaration:j[46],TSClassImplements:j[47],TSConditionalType:j[17],TSConstructorType:j[46],TSConstructSignatureDeclaration:j[46],TSDeclareFunction:j[31],TSDeclareKeyword:j[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:j[26],TSEnumDeclaration:j[19],TSEnumMember:["id","initializer"],TSExportAssignment:j[3],TSExportKeyword:j[1],TSExternalModuleReference:j[3],TSFunctionType:j[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:j[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:j[35],TSInstantiationExpression:j[47],TSInterfaceBody:j[10],TSInterfaceDeclaration:j[22],TSInterfaceHeritage:j[47],TSIntersectionType:j[36],TSIntrinsicKeyword:j[1],TSJSDocAllType:j[1],TSJSDocNonNullableType:j[23],TSJSDocNullableType:j[23],TSJSDocUnknownType:j[1],TSLiteralType:j[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:j[10],TSModuleDeclaration:j[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:j[21],TSNeverKeyword:j[1],TSNonNullExpression:j[3],TSNullKeyword:j[1],TSNumberKeyword:j[1],TSObjectKeyword:j[1],TSOptionalType:j[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:j[23],TSPrivateKeyword:j[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:j[1],TSPublicKeyword:j[1],TSQualifiedName:j[5],TSReadonlyKeyword:j[1],TSRestType:j[23],TSSatisfiesExpression:j[4],TSStaticKeyword:j[1],TSStringKeyword:j[1],TSSymbolKeyword:j[1],TSTemplateLiteralType:["quasis","types"],TSThisType:j[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:j[23],TSTypeAssertion:j[4],TSTypeLiteral:j[26],TSTypeOperator:j[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:j[48],TSTypeParameterInstantiation:j[48],TSTypePredicate:j[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:j[1],TSUnionType:j[36],TSUnknownKeyword:j[1],TSVoidKeyword:j[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:j[24],TypeAnnotation:j[23],TypeCastExpression:j[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:j[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:j[48],TypeParameterInstantiation:j[48],TypePredicate:j[49],UnaryExpression:j[6],UndefinedTypeAnnotation:j[1],UnionTypeAnnotation:j[36],UnknownTypeAnnotation:j[1],UpdateExpression:j[6],V8IntrinsicIdentifier:j[1],VariableDeclaration:["declarations"],VariableDeclarator:j[27],Variance:j[1],VoidPattern:j[1],VoidTypeAnnotation:j[1],WhileStatement:j[25],WithStatement:["object","body"],YieldExpression:j[6]},$T=LT(OT),MT=$T;function Fu(u,a){if(!IT(u))return u;if(Array.isArray(u)){for(let m=0;m<u.length;m++)u[m]=Fu(u[m],a);return u}if(a.onEnter){let m=a.onEnter(u)??u;if(m!==u)return Fu(m,a);u=m}let p=MT(u);for(let m=0;m<p.length;m++)u[p[m]]=Fu(u[p[m]],a);return a.onLeave&&(u=a.onLeave(u)||u),u}var RT=Fu;Lp(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function jT(u,a){let{parser:p,text:m}=a,{comments:A}=u,S=p==="oxc"&&a.oxcAstType==="ts";PT(A);let B=u.type==="File"?u.program:u;B.interpreter&&(A.unshift(B.interpreter),delete B.interpreter),S&&u.hashbang&&(A.unshift(u.hashbang),delete u.hashbang),u.type==="Program"&&(u.range=[0,m.length]);let O;return u=RT(u,{onEnter(U){switch(U.type){case"ParenthesizedExpression":{let{expression:R}=U,ne=Ss(U);if(R.type==="TypeCastExpression")return R.range=[ne,es(U)],R;let De=!1;if(!S){if(!O){O=[];for(let Re of A)vT(Re)&&O.push(es(Re))}let _e=yT(0,O,Re=>Re<=ne);De=_e&&m.slice(_e,ne).trim().length===0}return De?void 0:(R.extra={...R.extra,parenthesized:!0},R)}case"TemplateLiteral":if(U.expressions.length!==U.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(p==="flow"||p==="hermes"||p==="espree"||p==="typescript"||S){let R=Ss(U)+1,ne=es(U)-(U.tail?1:2);U.range=[R,ne]}break;case"VariableDeclaration":{let R=xT(0,U.declarations,-1);R?.init&&m[es(R)]!==";"&&(U.range=[Ss(U),es(R)]);break}case"TSParenthesizedType":return U.typeAnnotation;case"TopicReference":u.extra={...u.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(U.types.length===1)return U.types[0];break;case"ImportExpression":p==="hermes"&&U.attributes&&!U.options&&(U.options=U.attributes);break}},onLeave(U){switch(U.type){case"LogicalExpression":if(Lm(U))return Rp(U);break;case"TSImportType":!U.source&&U.argument.type==="TSLiteralType"&&(U.source=U.argument.literal,delete U.argument);break}}}),u}function Lm(u){return u.type==="LogicalExpression"&&u.right.type==="LogicalExpression"&&u.operator===u.right.operator}function Rp(u){return Lm(u)?Rp({type:"LogicalExpression",operator:u.operator,left:Rp({type:"LogicalExpression",operator:u.operator,left:u.left,right:u.right.left,range:[Ss(u.left),es(u.right.left)]}),right:u.right.right,range:[Ss(u),es(u)]}):u}var UT=jT;function qT(u,a){let p=new SyntaxError(u+" ("+a.loc.start.line+":"+a.loc.start.column+")");return Object.assign(p,a)}var Om=qT,$m="Unexpected parseExpression() input: ";function VT(u){let{message:a,loc:p,reasonCode:m}=u;if(!p)return u;let{line:A,column:S}=p,B=u;(m==="MissingPlugin"||m==="MissingOneOfPlugins")&&(a="Unexpected token.",B=void 0);let O=` (${A}:${S})`;return a.endsWith(O)&&(a=a.slice(0,-O.length)),a.startsWith($m)&&(a=a.slice($m.length)),Om(a,{loc:{start:{line:A,column:S+1}},cause:B})}var Mm=VT,zT=String.prototype.replaceAll??function(u,a){return u.global?this.replace(u,a):this.split(u).join(a)},HT=_p("replaceAll",function(){if(typeof this=="string")return zT}),wu=HT,WT=/\*\/$/,JT=/^\/\*\*?/,KT=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,GT=/(^|\s+)\/\/([^\n\r]*)/g,Rm=/^(\r?\n)+/,XT=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,jm=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,YT=/(\r?\n|^) *\* ?/g,QT=[];function ZT(u){let a=u.match(KT);return a?a[0].trimStart():""}function ev(u){u=wu(0,u.replace(JT,"").replace(WT,""),YT,"$1");let a="";for(;a!==u;)a=u,u=wu(0,u,XT,`
244
+ $1 $2
245
+ `);u=u.replace(Rm,"").trimEnd();let p=Object.create(null),m=wu(0,u,jm,"").replace(Rm,"").trimEnd(),A;for(;A=jm.exec(u);){let S=wu(0,A[2],GT,"");if(typeof p[A[1]]=="string"||Array.isArray(p[A[1]])){let B=p[A[1]];p[A[1]]=[...QT,...Array.isArray(B)?B:[B],S]}else p[A[1]]=S}return{comments:m,pragmas:p}}var tv=["noformat","noprettier"],rv=["format","prettier"];function Um(u){let a=Nm(u);a&&(u=u.slice(a.length+1));let p=ZT(u),{pragmas:m,comments:A}=ev(p);return{shebang:a,text:u,pragmas:m,comments:A}}function sv(u){let{pragmas:a}=Um(u);return rv.some(p=>Object.prototype.hasOwnProperty.call(a,p))}function iv(u){let{pragmas:a}=Um(u);return tv.some(p=>Object.prototype.hasOwnProperty.call(a,p))}function nv(u){return u=typeof u=="function"?{parse:u}:u,{astFormat:"estree",hasPragma:sv,hasIgnorePragma:iv,locStart:Ss,locEnd:es,...u}}var La=nv,jp="module",qm="commonjs";function av(u){if(typeof u=="string"){if(u=u.toLowerCase(),/\.(?:mjs|mts)$/iu.test(u))return jp;if(/\.(?:cjs|cts)$/iu.test(u))return qm}}function ov(u,a){let{type:p="JsExpressionRoot",rootMarker:m,text:A}=a,{tokens:S,comments:B}=u;return delete u.tokens,delete u.comments,{tokens:S,comments:B,type:p,node:u,range:[0,A.length],rootMarker:m}}var Vm=ov,Fn=u=>La(hv(u)),uv={sourceType:jp,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},zm="v8intrinsic",Hm=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Ps=(u,a=uv)=>({...a,plugins:[...a.plugins,...u]}),lv=/@(?:no)?flow\b/u;function pv(u,a){if(a?.endsWith(".js.flow"))return!0;let p=Nm(u);p&&(u=u.slice(p.length));let m=cT(u,0);return m!==!1&&(u=u.slice(0,m)),lv.test(u)}function cv(u,a,p){let m=u(a,p),A=m.errors.find(S=>!dv.has(S.reasonCode));if(A)throw A;return m}function hv({isExpression:u=!1,optionsCombinations:a}){return(p,m={})=>{let{filepath:A}=m;if(typeof A!="string"&&(A=void 0),(m.parser==="babel"||m.parser==="__babel_estree")&&pv(p,A))return m.parser="babel-flow",Ym.parse(p,m);let S=a,B=m.__babelSourceType??av(A);B&&B!==jp&&(S=S.map(ne=>({...ne,sourceType:B,...B===qm?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let O=/%[A-Z]/u.test(p);p.includes("|>")?S=(O?[...Hm,zm]:Hm).flatMap(ne=>S.map(De=>Ps([ne],De))):O&&(S=S.map(ne=>Ps([zm],ne)));let U=u?Pm:Sm,R;try{R=hT(S.map(ne=>()=>cv(U,p,ne)))}catch({errors:[ne]}){throw Mm(ne)}return u&&(R=Vm(R,{text:p,rootMarker:m.rootMarker})),UT(R,{text:p})}}var dv=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),Wm=[Ps(["jsx"])],Jm=Fn({optionsCombinations:Wm}),Km=Fn({optionsCombinations:[Ps(["jsx","typescript"]),Ps(["typescript"])]}),Gm=Fn({isExpression:!0,optionsCombinations:[Ps(["jsx"])]}),Xm=Fn({isExpression:!0,optionsCombinations:[Ps(["typescript"])]}),Ym=Fn({optionsCombinations:[Ps(["jsx",["flow",{all:!0}],"flowComments"])]}),fv=Fn({optionsCombinations:Wm.map(u=>Ps(["estree"],u))}),Qm={};o(Qm,{json:()=>Dv,"json-stringify":()=>Ev,json5:()=>gv,jsonc:()=>xv});function mv(u){return Array.isArray(u)&&u.length>0}var Zm=mv,ey={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function yv(u){let a=Sm(u,ey),{program:p}=a;if(p.body.length===0&&p.directives.length===0&&!p.interpreter)return a}function Su(u,a={}){let{allowComments:p=!0,allowEmpty:m=!1}=a,A;try{A=Pm(u,ey)}catch(S){if(m&&S.code==="BABEL_PARSER_SYNTAX_ERROR"&&S.reasonCode==="ParseExpressionEmptyInput")try{A=yv(u)}catch{}if(!A)throw Mm(S)}if(!p&&Zm(A.comments))throw ri(A.comments[0],"Comment");return A=Vm(A,{type:"JsonRoot",text:u}),A.node.type==="File"?delete A.node:wn(A.node),A}function ri(u,a){let[p,m]=[u.loc.start,u.loc.end].map(({line:A,column:S})=>({line:A,column:S+1}));return Om(`${a} is not allowed in JSON.`,{loc:{start:p,end:m}})}function wn(u){switch(u.type){case"ArrayExpression":for(let a of u.elements)a!==null&&wn(a);return;case"ObjectExpression":for(let a of u.properties)wn(a);return;case"ObjectProperty":if(u.computed)throw ri(u.key,"Computed key");if(u.shorthand)throw ri(u.key,"Shorthand property");u.key.type!=="Identifier"&&wn(u.key),wn(u.value);return;case"UnaryExpression":{let{operator:a,argument:p}=u;if(a!=="+"&&a!=="-")throw ri(u,`Operator '${u.operator}'`);if(p.type==="NumericLiteral"||p.type==="Identifier"&&(p.name==="Infinity"||p.name==="NaN"))return;throw ri(p,`Operator '${a}' before '${p.type}'`)}case"Identifier":if(u.name!=="Infinity"&&u.name!=="NaN"&&u.name!=="undefined")throw ri(u,`Identifier '${u.name}'`);return;case"TemplateLiteral":if(Zm(u.expressions))throw ri(u.expressions[0],"'TemplateLiteral' with expression");for(let a of u.quasis)wn(a);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ri(u,`'${u.type}'`)}}var Dv=La({parse:u=>Su(u),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),gv=La(u=>Su(u)),xv=La(u=>Su(u,{allowEmpty:!0})),Ev=La({parse:u=>Su(u,{allowComments:!1}),astFormat:"estree-json"}),Av={...h,...Qm};return c(f)})})(Nc)),Nc.exports}var zC=HH();const WH=Cv(zC),JH=iF({__proto__:null,default:WH},[zC]),KH=async(t,e)=>{switch(e){case"ts":return await as(t,{parser:"typescript",plugins:[ac,Ru]});case"js":return await as(t,{parser:"babel",plugins:[ac,Ru]});case"json":return await as(t,{parser:"json",plugins:[JH,Ru]});case"vue":return await as(t,{parser:"vue",plugins:[M$,ac,Ru,Xu]});case"less":return await as(t,{parser:"less",plugins:[Xu]});case"scss":case"sass":return await as(t,{parser:"scss",plugins:[Xu]});case"css":return await as(t,{parser:"css",plugins:[Xu]});case"md":return await as(t,{parser:"markdown",plugins:[KU]})}},GH={class:"flex items-center gap-1 flex-1"},XH=Mt({__name:"DirChangeTree",props:{resultTree:{type:Array,default:()=>[]}},setup(t){const e={children:"children",label:"name"},r={[os.NodeStatus.Added]:{tag:"success",color:"var(--el-color-success)"},[os.NodeStatus.Deleted]:{tag:"danger",color:"var(--el-color-danger)"},[os.NodeStatus.Unchanged]:{tag:"info",color:"var(--el-color-info)"},[os.NodeStatus.Changed]:{tag:"warning",color:"var(--el-color-warning)"}};function s(n){return r[n].tag??"primary"}function i(n){return r[n].color}return(n,o)=>(ke(),Ze(me(K2),Y2({data:t.resultTree,props:e,"default-expand-all":"","highlight-current":""},n.$attrs),{default:ge(({data:l})=>[He("div",GH,[Te(me(Ji),{effect:"dark",disableTransitions:"",type:s(l.status),size:"small"},{default:ge(()=>[gt(Ke(l.status[0].toUpperCase()),1)]),_:2},1032,["type"]),l.status===me(os).NodeStatus.Deleted?(ke(),ft("del",{key:0,style:oo({color:i(l.status)})},Ke(l.name),5)):(ke(),ft("span",{key:1,style:oo({color:i(l.status)})},Ke(l.name),5)),He("div",{class:"w-2 h-2 rounded-full ml-auto mr-2",style:oo({backgroundColor:i(l.status)})},null,4)])]),_:1},16,["data"]))}});var Bt;(function(t){t.INSERT="insert",t.DELETE="delete",t.CONTEXT="context"})(Bt||(Bt={}));const YH={LINE_BY_LINE:"line-by-line"},QH={NONE:"none"},ZH={WORD:"word"};var Hn;(function(t){t.AUTO="auto",t.DARK="dark",t.LIGHT="light"})(Hn||(Hn={}));const eW=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],tW=RegExp("["+eW.join("\\")+"]","g");function rW(t){return t.replace(tW,"\\$&")}function L2(t){return t&&t.replace(/\\/g,"/")}function sW(t){let e,r,s,i=0;for(e=0,s=t.length;e<s;e++)r=t.charCodeAt(e),i=(i<<5)-i+r,i|=0;return i}function HC(t){const e=t.length;let r=-1/0;for(let s=0;s<e;s++)r=Math.max(r,t[s]);return r}function O2(t,e){const r=t.split(".");return r.length>1?r[r.length-1]:e}function $2(t,e){return e.reduce((r,s)=>r||t.startsWith(s),!1)}const M2=["a/","b/","i/","w/","c/","o/"];function ci(t,e,r){const s=r!==void 0?[...M2,r]:M2,i=e?new RegExp(`^${rW(e)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,n=""]=i.exec(t)||[],o=s.find(c=>n.indexOf(c)===0);return(o?n.slice(o.length):n).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function iW(t,e){return ci(t,"---",e)}function nW(t,e){return ci(t,"+++",e)}function aW(t,e={}){const r=[];let s=null,i=null,n=null,o=null,l=null,c=null,f=null;const h="--- ",d="+++ ",D="@@",y=/^old mode (\d{6})/,g=/^new mode (\d{6})/,x=/^deleted file mode (\d{6})/,C=/^new file mode (\d{6})/,b=/^copy from "?(.+)"?/,E=/^copy to "?(.+)"?/,v=/^rename from "?(.+)"?/,F=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,w=/^dissimilarity index (\d+)%/,P=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,N=/^GIT binary patch/,_=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,L=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,I=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,K=t.replace(/\/g,"").replace(/\r\n?/g,`
246
+ `).split(`
247
+ `);function $(){i!==null&&s!==null&&(s.blocks.push(i),i=null)}function z(){s!==null&&(!s.oldName&&c!==null&&(s.oldName=c),!s.newName&&f!==null&&(s.newName=f),s.newName&&(r.push(s),s=null)),c=null,f=null}function re(){$(),z(),s={blocks:[],deletedLines:0,addedLines:0}}function te(Q){$();let W;s!==null&&((W=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(Q))?(s.isCombined=!1,n=parseInt(W[1],10),l=parseInt(W[2],10)):(W=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(Q))?(s.isCombined=!0,n=parseInt(W[1],10),o=parseInt(W[2],10),l=parseInt(W[3],10)):(Q.startsWith(D)&&console.error("Failed to parse lines, starting in 0!"),n=0,l=0,s.isCombined=!1)),i={lines:[],oldStartLine:n,oldStartLine2:o,newStartLine:l,header:Q}}function ue(Q){if(s===null||i===null||n===null||l===null)return;const W={content:Q},Y=s.isCombined?["+ "," +","++"]:["+"],ie=s.isCombined?["- "," -","--"]:["-"];$2(Q,Y)?(s.addedLines++,W.type=Bt.INSERT,W.oldNumber=void 0,W.newNumber=l++):$2(Q,ie)?(s.deletedLines++,W.type=Bt.DELETE,W.oldNumber=n++,W.newNumber=void 0):(W.type=Bt.CONTEXT,W.oldNumber=n++,W.newNumber=l++),i.lines.push(W)}function X(Q,W){let Y=W;for(;Y<K.length-3;){if(Q.startsWith("diff"))return!1;if(K[Y].startsWith(h)&&K[Y+1].startsWith(d)&&K[Y+2].startsWith(D))return!0;Y++}return!1}return K.forEach((Q,W)=>{if(!Q||Q.startsWith("*"))return;let Y;const ie=K[W-1],de=K[W+1],ae=K[W+2];if(Q.startsWith("diff --git")||Q.startsWith("diff --combined")){if(re(),(Y=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(Q))&&(c=ci(Y[1],void 0,e.dstPrefix),f=ci(Y[2],void 0,e.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(Q.startsWith("Binary files")&&!s?.isGitDiff){if(re(),(Y=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(Q))&&(c=ci(Y[1],void 0,e.dstPrefix),f=ci(Y[2],void 0,e.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&Q.startsWith(h)&&de.startsWith(d)&&ae.startsWith(D))&&re(),s?.isTooBig)return;if(s&&(typeof e.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>e.diffMaxChanges||typeof e.diffMaxLineLength=="number"&&Q.length>e.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],i=null;const G=typeof e.diffTooBigMessage=="function"?e.diffTooBigMessage(r.length):"Diff too big to be displayed";te(G);return}if(Q.startsWith(h)&&de.startsWith(d)||Q.startsWith(d)&&ie.startsWith(h)){if(s&&!s.oldName&&Q.startsWith("--- ")&&(Y=iW(Q,e.srcPrefix))){s.oldName=Y,s.language=O2(s.oldName,s.language);return}if(s&&!s.newName&&Q.startsWith("+++ ")&&(Y=nW(Q,e.dstPrefix))){s.newName=Y,s.language=O2(s.newName,s.language);return}}if(s&&(Q.startsWith(D)||s.isGitDiff&&s.oldName&&s.newName&&!i)){te(Q);return}if(i&&(Q.startsWith("+")||Q.startsWith("-")||Q.startsWith(" "))){ue(Q);return}const Z=!X(Q,W);if(s===null)throw new Error("Where is my file !!!");(Y=y.exec(Q))?s.oldMode=Y[1]:(Y=g.exec(Q))?s.newMode=Y[1]:(Y=x.exec(Q))?(s.deletedFileMode=Y[1],s.isDeleted=!0):(Y=C.exec(Q))?(s.newFileMode=Y[1],s.isNew=!0):(Y=b.exec(Q))?(Z&&(s.oldName=Y[1]),s.isCopy=!0):(Y=E.exec(Q))?(Z&&(s.newName=Y[1]),s.isCopy=!0):(Y=v.exec(Q))?(Z&&(s.oldName=Y[1]),s.isRename=!0):(Y=F.exec(Q))?(Z&&(s.newName=Y[1]),s.isRename=!0):(Y=k.exec(Q))?(s.isBinary=!0,s.oldName=ci(Y[1],void 0,e.srcPrefix),s.newName=ci(Y[2],void 0,e.dstPrefix),te("Binary file")):N.test(Q)?(s.isBinary=!0,te(Q)):(Y=T.exec(Q))?s.unchangedPercentage=parseInt(Y[1],10):(Y=w.exec(Q))?s.changedPercentage=parseInt(Y[1],10):(Y=P.exec(Q))?(s.checksumBefore=Y[1],s.checksumAfter=Y[2],Y[3]&&(s.mode=Y[3])):(Y=_.exec(Q))?(s.checksumBefore=[Y[2],Y[3]],s.checksumAfter=Y[1]):(Y=L.exec(Q))?(s.oldMode=[Y[2],Y[3]],s.newMode=Y[1]):(Y=I.exec(Q))?(s.newFileMode=Y[1],s.isNew=!0):(Y=M.exec(Q))&&(s.deletedFileMode=Y[1],s.isDeleted=!0)}),$(),z(),r}let WC=class{diff(e,r,s={}){let i;typeof s=="function"?(i=s,s={}):"callback"in s&&(i=s.callback);const n=this.castInput(e,s),o=this.castInput(r,s),l=this.removeEmpty(this.tokenize(n,s)),c=this.removeEmpty(this.tokenize(o,s));return this.diffWithOptionsObj(l,c,s,i)}diffWithOptionsObj(e,r,s,i){var n;const o=E=>{if(E=this.postProcess(E,s),i){setTimeout(function(){i(E)},0);return}else return E},l=r.length,c=e.length;let f=1,h=l+c;s.maxEditLength!=null&&(h=Math.min(h,s.maxEditLength));const d=(n=s.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+d,y=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(y[0],r,e,0,s);if(y[0].oldPos+1>=c&&g+1>=l)return o(this.buildValues(y[0].lastComponent,r,e));let x=-1/0,C=1/0;const b=()=>{for(let E=Math.max(x,-f);E<=Math.min(C,f);E+=2){let v;const F=y[E-1],T=y[E+1];F&&(y[E-1]=void 0);let w=!1;if(T){const k=T.oldPos-E;w=T&&0<=k&&k<l}const P=F&&F.oldPos+1<c;if(!w&&!P){y[E]=void 0;continue}if(!P||w&&F.oldPos<T.oldPos?v=this.addToPath(T,!0,!1,0,s):v=this.addToPath(F,!1,!0,1,s),g=this.extractCommon(v,r,e,E,s),v.oldPos+1>=c&&g+1>=l)return o(this.buildValues(v.lastComponent,r,e))||!0;y[E]=v,v.oldPos+1>=c&&(C=Math.min(C,E-1)),g+1>=l&&(x=Math.max(x,E+1))}f++};if(i)(function E(){setTimeout(function(){if(f>h||Date.now()>D)return i(void 0);b()||E()},0)})();else for(;f<=h&&Date.now()<=D;){const E=b();if(E)return E}}addToPath(e,r,s,i,n){const o=e.lastComponent;return o&&!n.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}}extractCommon(e,r,s,i,n){const o=r.length,l=s.length;let c=e.oldPos,f=c-i,h=0;for(;f+1<o&&c+1<l&&this.equals(s[c+1],r[f+1],n);)f++,c++,h++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return h&&!n.oneChangePerToken&&(e.lastComponent={count:h,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,f}equals(e,r,s){return s.comparator?s.comparator(e,r):e===r||!!s.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){const r=[];for(let s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,s){const i=[];let n;for(;e;)i.push(e),n=e.previousComponent,delete e.previousComponent,e=n;i.reverse();const o=i.length;let l=0,c=0,f=0;for(;l<o;l++){const h=i[l];if(h.removed)h.value=this.join(s.slice(f,f+h.count)),f+=h.count;else{if(!h.added&&this.useLongestToken){let d=r.slice(c,c+h.count);d=d.map(function(D,y){const g=s[f+y];return g.length>D.length?g:D}),h.value=this.join(d)}else h.value=this.join(r.slice(c,c+h.count));c+=h.count,h.added||(f+=h.count)}}return i}};class oW extends WC{}const uW=new oW;function lW(t,e,r){return uW.diff(t,e,r)}const R2="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class pW extends WC{tokenize(e){const r=new RegExp(`(\\r?\\n)|[${R2}]+|[^\\S\\n\\r]+|[^${R2}]`,"ug");return e.match(r)||[]}}const cW=new pW;function hW(t,e,r){return cW.diff(t,e,r)}function dW(t,e){if(t.length===0)return e.length;if(e.length===0)return t.length;const r=[];let s;for(s=0;s<=e.length;s++)r[s]=[s];let i;for(i=0;i<=t.length;i++)r[0][i]=i;for(s=1;s<=e.length;s++)for(i=1;i<=t.length;i++)e.charAt(s-1)===t.charAt(i-1)?r[s][i]=r[s-1][i-1]:r[s][i]=Math.min(r[s-1][i-1]+1,Math.min(r[s][i-1]+1,r[s-1][i]+1));return r[e.length][t.length]}function em(t){return(e,r)=>{const s=t(e).trim(),i=t(r).trim();return dW(s,i)/(s.length+i.length)}}function tm(t){function e(s,i,n=new Map){let o=1/0,l;for(let c=0;c<s.length;++c)for(let f=0;f<i.length;++f){const h=JSON.stringify([s[c],i[f]]);let d;n.has(h)&&(d=n.get(h))||(d=t(s[c],i[f]),n.set(h,d)),d<o&&(o=d,l={indexA:c,indexB:f,score:o})}return l}function r(s,i,n=0,o=new Map){const l=e(s,i,o);if(!l||s.length+i.length<3)return[[s,i]];const c=s.slice(0,l.indexA),f=i.slice(0,l.indexB),h=[s[l.indexA]],d=[i[l.indexB]],D=l.indexA+1,y=l.indexB+1,g=s.slice(D),x=i.slice(y),C=r(c,f,n+1,o),b=r(h,d,n+1,o),E=r(g,x,n+1,o);let v=b;return(l.indexA>0||l.indexB>0)&&(v=C.concat(v)),(s.length>D||i.length>y)&&(v=v.concat(E)),v}return r}const rr={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},xp={matching:QH.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:ZH.WORD,colorScheme:Hn.LIGHT},rs="/",JC=em(t=>t.value),fW=tm(JC);function _c(t){return t.indexOf("dev/null")!==-1}function mW(t){return t.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function yW(t){return t.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function Sl(t){switch(t){case Bt.CONTEXT:return rr.CONTEXT;case Bt.INSERT:return rr.INSERTS;case Bt.DELETE:return rr.DELETES}}function rm(t){switch(t){case Hn.DARK:return"d2h-dark-color-scheme";case Hn.AUTO:return"d2h-auto-color-scheme";case Hn.LIGHT:default:return"d2h-light-color-scheme"}}function DW(t){return t?2:1}function Wn(t){return t.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function hs(t,e,r=!0){const s=DW(e);return{prefix:t.substring(0,s),content:r?Wn(t.substring(s)):t.substring(s)}}function Ep(t){const e=L2(t.oldName),r=L2(t.newName);if(e!==r&&!_c(e)&&!_c(r)){const s=[],i=[],n=e.split(rs),o=r.split(rs),l=n.length,c=o.length;let f=0,h=l-1,d=c-1;for(;f<h&&f<d&&n[f]===o[f];)s.push(o[f]),f+=1;for(;h>f&&d>f&&n[h]===o[d];)i.unshift(o[d]),h-=1,d-=1;const D=s.join(rs),y=i.join(rs),g=n.slice(f,h+1).join(rs),x=o.slice(f,d+1).join(rs);return D.length&&y.length?D+rs+"{"+g+" → "+x+"}"+rs+y:D.length?D+rs+"{"+g+" → "+x+"}":y.length?"{"+g+" → "+x+"}"+rs+y:e+" → "+r}else return _c(r)?e:r}function sm(t){return`d2h-${sW(Ep(t)).toString().slice(-6)}`}function im(t){let e="file-changed";return t.isRename||t.isCopy?e="file-renamed":t.isNew?e="file-added":t.isDeleted?e="file-deleted":t.newName!==t.oldName&&(e="file-renamed"),e}function KC(t,e,r,s={}){const{matching:i,maxLineLengthHighlight:n,matchWordsThreshold:o,diffStyle:l}=Object.assign(Object.assign({},xp),s),c=hs(t,r,!1),f=hs(e,r,!1);if(c.content.length>n||f.content.length>n)return{oldLine:{prefix:c.prefix,content:Wn(c.content)},newLine:{prefix:f.prefix,content:Wn(f.content)}};const h=l==="char"?lW(c.content,f.content):hW(c.content,f.content),d=[];if(l==="word"&&i==="words"){const y=h.filter(C=>C.removed),g=h.filter(C=>C.added);fW(g,y).forEach(C=>{C[0].length===1&&C[1].length===1&&JC(C[0][0],C[1][0])<o&&(d.push(C[0][0]),d.push(C[1][0]))})}const D=h.reduce((y,g)=>{const x=g.added?"ins":g.removed?"del":null,C=d.indexOf(g)>-1?' class="d2h-change"':"",b=Wn(g.value);return x!==null?`${y}<${x}${C}>${b}</${x}>`:`${y}${b}`},"");return{oldLine:{prefix:c.prefix,content:mW(D)},newLine:{prefix:f.prefix,content:yW(D)}}}const j2="file-summary",gW="icon",xW={colorScheme:xp.colorScheme};class EW{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},xW),r)}render(e){const r=e.map(s=>this.hoganUtils.render(j2,"line",{fileHtmlId:sm(s),oldName:s.oldName,newName:s.newName,fileName:Ep(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(gW,im(s))})).join(`
248
+ `);return this.hoganUtils.render(j2,"wrapper",{colorScheme:rm(this.config.colorScheme),filesNumber:e.length,files:r})}}const GC=Object.assign(Object.assign({},xp),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),to="generic",U2="line-by-line",AW="icon",CW="tag";class bW{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},GC),r)}render(e){const r=e.map(s=>{let i;return s.blocks.length?i=this.generateFileHtml(s):i=this.generateEmptyDiff(),this.makeFileDiffHtml(s,i)}).join(`
249
+ `);return this.hoganUtils.render(to,"wrapper",{colorScheme:rm(this.config.colorScheme),content:r})}makeFileDiffHtml(e,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&e.blocks.length===0)return"";const s=this.hoganUtils.template(U2,"file-diff"),i=this.hoganUtils.template(to,"file-path"),n=this.hoganUtils.template(AW,"file"),o=this.hoganUtils.template(CW,im(e));return s.render({file:e,fileHtmlId:sm(e),diffs:r,filePath:i.render({fileDiffName:Ep(e)},{fileIcon:n,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(to,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:rr})}generateFileHtml(e){const r=tm(em(s=>hs(s.content,e.isCombined).content));return e.blocks.map(s=>{let i=this.hoganUtils.render(to,"block-header",{CSSLineClass:rr,blockHeader:e.isTooBig?s.header:Wn(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([n,o,l])=>{if(o.length&&l.length&&!n.length)this.applyRematchMatching(o,l,r).map(([c,f])=>{const{left:h,right:d}=this.processChangedLines(e,e.isCombined,c,f);i+=h,i+=d});else if(n.length)n.forEach(c=>{const{prefix:f,content:h}=hs(c.content,e.isCombined);i+=this.generateSingleLineHtml(e,{type:rr.CONTEXT,prefix:f,content:h,oldNumber:c.oldNumber,newNumber:c.newNumber})});else if(o.length||l.length){const{left:c,right:f}=this.processChangedLines(e,e.isCombined,o,l);i+=c,i+=f}else console.error("Unknown state reached while processing groups of lines",n,o,l)}),i}).join(`
250
+ `)}applyLineGroupping(e){const r=[];let s=[],i=[];for(let n=0;n<e.lines.length;n++){const o=e.lines[n];(o.type!==Bt.INSERT&&i.length||o.type===Bt.CONTEXT&&s.length>0)&&(r.push([[],s,i]),s=[],i=[]),o.type===Bt.CONTEXT?r.push([[o],[],[]]):o.type===Bt.INSERT&&s.length===0?r.push([[],[],[o]]):o.type===Bt.INSERT&&s.length>0?i.push(o):o.type===Bt.DELETE&&s.push(o)}return(s.length||i.length)&&(r.push([[],s,i]),s=[],i=[]),r}applyRematchMatching(e,r,s){const i=e.length*r.length,n=HC(e.concat(r).map(l=>l.content.length));return i<this.config.matchingMaxComparisons&&n<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(e,r):[[e,r]]}processChangedLines(e,r,s,i){const n={right:"",left:""},o=Math.max(s.length,i.length);for(let l=0;l<o;l++){const c=s[l],f=i[l],h=c!==void 0&&f!==void 0?KC(c.content,f.content,r,this.config):void 0,d=c!==void 0&&c.oldNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.oldLine.prefix,content:h.oldLine.content,type:rr.DELETE_CHANGES}:Object.assign(Object.assign({},hs(c.content,r)),{type:Sl(c.type)})),{oldNumber:c.oldNumber,newNumber:c.newNumber}):void 0,D=f!==void 0&&f.newNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.newLine.prefix,content:h.newLine.content,type:rr.INSERT_CHANGES}:Object.assign(Object.assign({},hs(f.content,r)),{type:Sl(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,{left:y,right:g}=this.generateLineHtml(e,d,D);n.left+=y,n.right+=g}return n}generateLineHtml(e,r,s){return{left:this.generateSingleLineHtml(e,r),right:this.generateSingleLineHtml(e,s)}}generateSingleLineHtml(e,r){if(r===void 0)return"";const s=this.hoganUtils.render(U2,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(to,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:s,line:r,file:e})}}const XC=Object.assign(Object.assign({},xp),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ro="generic",TW="side-by-side",vW="icon",FW="tag";class wW{constructor(e,r={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},XC),r)}render(e){const r=e.map(s=>{let i;return s.blocks.length?i=this.generateFileHtml(s):i=this.generateEmptyDiff(),this.makeFileDiffHtml(s,i)}).join(`
251
+ `);return this.hoganUtils.render(ro,"wrapper",{colorScheme:rm(this.config.colorScheme),content:r})}makeFileDiffHtml(e,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&e.blocks.length===0)return"";const s=this.hoganUtils.template(TW,"file-diff"),i=this.hoganUtils.template(ro,"file-path"),n=this.hoganUtils.template(vW,"file"),o=this.hoganUtils.template(FW,im(e));return s.render({file:e,fileHtmlId:sm(e),diffs:r,filePath:i.render({fileDiffName:Ep(e)},{fileIcon:n,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(ro,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:rr})}}generateFileHtml(e){const r=tm(em(s=>hs(s.content,e.isCombined).content));return e.blocks.map(s=>{const i={left:this.makeHeaderHtml(s.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([n,o,l])=>{if(o.length&&l.length&&!n.length)this.applyRematchMatching(o,l,r).map(([c,f])=>{const{left:h,right:d}=this.processChangedLines(e.isCombined,c,f);i.left+=h,i.right+=d});else if(n.length)n.forEach(c=>{const{prefix:f,content:h}=hs(c.content,e.isCombined),{left:d,right:D}=this.generateLineHtml({type:rr.CONTEXT,prefix:f,content:h,number:c.oldNumber},{type:rr.CONTEXT,prefix:f,content:h,number:c.newNumber});i.left+=d,i.right+=D});else if(o.length||l.length){const{left:c,right:f}=this.processChangedLines(e.isCombined,o,l);i.left+=c,i.right+=f}else console.error("Unknown state reached while processing groups of lines",n,o,l)}),i}).reduce((s,i)=>({left:s.left+i.left,right:s.right+i.right}),{left:"",right:""})}applyLineGroupping(e){const r=[];let s=[],i=[];for(let n=0;n<e.lines.length;n++){const o=e.lines[n];(o.type!==Bt.INSERT&&i.length||o.type===Bt.CONTEXT&&s.length>0)&&(r.push([[],s,i]),s=[],i=[]),o.type===Bt.CONTEXT?r.push([[o],[],[]]):o.type===Bt.INSERT&&s.length===0?r.push([[],[],[o]]):o.type===Bt.INSERT&&s.length>0?i.push(o):o.type===Bt.DELETE&&s.push(o)}return(s.length||i.length)&&(r.push([[],s,i]),s=[],i=[]),r}applyRematchMatching(e,r,s){const i=e.length*r.length,n=HC(e.concat(r).map(l=>l.content.length));return i<this.config.matchingMaxComparisons&&n<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(e,r):[[e,r]]}makeHeaderHtml(e,r){return this.hoganUtils.render(ro,"block-header",{CSSLineClass:rr,blockHeader:r?.isTooBig?e:Wn(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,r,s){const i={right:"",left:""},n=Math.max(r.length,s.length);for(let o=0;o<n;o++){const l=r[o],c=s[o],f=l!==void 0&&c!==void 0?KC(l.content,c.content,e,this.config):void 0,h=l!==void 0&&l.oldNumber!==void 0?Object.assign(Object.assign({},f!==void 0?{prefix:f.oldLine.prefix,content:f.oldLine.content,type:rr.DELETE_CHANGES}:Object.assign(Object.assign({},hs(l.content,e)),{type:Sl(l.type)})),{number:l.oldNumber}):void 0,d=c!==void 0&&c.newNumber!==void 0?Object.assign(Object.assign({},f!==void 0?{prefix:f.newLine.prefix,content:f.newLine.content,type:rr.INSERT_CHANGES}:Object.assign(Object.assign({},hs(c.content,e)),{type:Sl(c.type)})),{number:c.newNumber}):void 0,{left:D,right:y}=this.generateLineHtml(h,d);i.left+=D,i.right+=y}return i}generateLineHtml(e,r){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(r)}}generateSingleHtml(e){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(ro,"line",{type:e?.type||`${rr.CONTEXT} d2h-emptyplaceholder`,lineClass:e!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:e!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:e?.prefix===" "?"&nbsp;":e?.prefix,content:e?.content,lineNumber:e?.number})}}var Lc={},q2;function SW(){return q2||(q2=1,(function(t){(function(e){var r=/\S/,s=/\"/g,i=/\n/g,n=/\r/g,o=/\\/g,l=/\u2028/,c=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(N,_){var L=N.length,I=0,M=1,K=2,$=I,z=null,re=null,te="",ue=[],X=!1,Q=0,W=0,Y="{{",ie="}}";function de(){te.length>0&&(ue.push({tag:"_t",text:new String(te)}),te="")}function ae(){for(var J=!0,ce=W;ce<ue.length;ce++)if(J=e.tags[ue[ce].tag]<e.tags._v||ue[ce].tag=="_t"&&ue[ce].text.match(r)===null,!J)return!1;return J}function Z(J,ce){if(de(),J&&ae())for(var ye=W,Ie;ye<ue.length;ye++)ue[ye].text&&((Ie=ue[ye+1])&&Ie.tag==">"&&(Ie.indent=ue[ye].text.toString()),ue.splice(ye,1));else ce||ue.push({tag:`
252
+ `});X=!1,W=ue.length}function G(J,ce){var ye="="+ie,Ie=J.indexOf(ye,ce),ve=h(J.substring(J.indexOf("=",ce)+1,Ie)).split(" ");return Y=ve[0],ie=ve[ve.length-1],Ie+ye.length-1}for(_&&(_=_.split(" "),Y=_[0],ie=_[1]),Q=0;Q<L;Q++)$==I?d(Y,N,Q)?(--Q,de(),$=M):N.charAt(Q)==`
253
+ `?Z(X):te+=N.charAt(Q):$==M?(Q+=Y.length-1,re=e.tags[N.charAt(Q+1)],z=re?N.charAt(Q+1):"_v",z=="="?(Q=G(N,Q),$=I):(re&&Q++,$=K),X=Q):d(ie,N,Q)?(ue.push({tag:z,n:h(te),otag:Y,ctag:ie,i:z=="/"?X-Y.length:Q+ie.length}),te="",Q+=ie.length-1,$=I,z=="{"&&(ie=="}}"?Q++:f(ue[ue.length-1]))):te+=N.charAt(Q);return Z(X,!0),ue};function f(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function h(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function d(k,N,_){if(N.charAt(_)!=k.charAt(0))return!1;for(var L=1,I=k.length;L<I;L++)if(N.charAt(_+L)!=k.charAt(L))return!1;return!0}var D={_t:!0,"\n":!0,$:!0,"/":!0};function y(k,N,_,L){var I=[],M=null,K=null,$=null;for(K=_[_.length-1];k.length>0;){if($=k.shift(),K&&K.tag=="<"&&!($.tag in D))throw new Error("Illegal content in < super tag.");if(e.tags[$.tag]<=e.tags.$||g($,L))_.push($),$.nodes=y(k,$.tag,_,L);else if($.tag=="/"){if(_.length===0)throw new Error("Closing tag without opener: /"+$.n);if(M=_.pop(),$.n!=M.n&&!x($.n,M.n,L))throw new Error("Nesting error: "+M.n+" vs. "+$.n);return M.end=$.i,I}else $.tag==`
254
+ `&&($.last=k.length==0||k[0].tag==`
255
+ `);I.push($)}if(_.length>0)throw new Error("missing closing tag: "+_.pop().n);return I}function g(k,N){for(var _=0,L=N.length;_<L;_++)if(N[_].o==k.n)return k.tag="#",!0}function x(k,N,_){for(var L=0,I=_.length;L<I;L++)if(_[L].c==k&&_[L].o==N)return!0}function C(k){var N=[];for(var _ in k)N.push('"'+v(_)+'": function(c,p,t,i) {'+k[_]+"}");return"{ "+N.join(",")+" }"}function b(k){var N=[];for(var _ in k.partials)N.push('"'+v(_)+'":{name:"'+v(k.partials[_].name)+'", '+b(k.partials[_])+"}");return"partials: {"+N.join(",")+"}, subs: "+C(k.subs)}e.stringify=function(k,N,_){return"{code: function (c,p,i) { "+e.wrapMain(k.code)+" },"+b(k)+"}"};var E=0;e.generate=function(k,N,_){E=0;var L={code:"",subs:{},partials:{}};return e.walk(k,L),_.asString?this.stringify(L,N,_):this.makeTemplate(L,N,_)},e.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(k,N,_){var L=this.makePartials(k);return L.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(L,N,this,_)},e.makePartials=function(k){var N,_={subs:{},partials:k.partials,name:k.name};for(N in _.partials)_.partials[N]=this.makePartials(_.partials[N]);for(N in k.subs)_.subs[N]=new Function("c","p","t","i",k.subs[N]);return _};function v(k){return k.replace(o,"\\\\").replace(s,'\\"').replace(i,"\\n").replace(n,"\\r").replace(l,"\\u2028").replace(c,"\\u2029")}function F(k){return~k.indexOf(".")?"d":"f"}function T(k,N){var _="<"+(N.prefix||""),L=_+k.n+E++;return N.partials[L]={name:k.n,partials:{}},N.code+='t.b(t.rp("'+v(L)+'",c,p,"'+(k.indent||"")+'"));',L}e.codegen={"#":function(k,N){N.code+="if(t.s(t."+F(k.n)+'("'+v(k.n)+'",c,p,1),c,p,0,'+k.i+","+k.end+',"'+k.otag+" "+k.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(k.nodes,N),N.code+="});c.pop();}"},"^":function(k,N){N.code+="if(!t.s(t."+F(k.n)+'("'+v(k.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(k.nodes,N),N.code+="};"},">":T,"<":function(k,N){var _={partials:{},code:"",subs:{},inPartial:!0};e.walk(k.nodes,_);var L=N.partials[T(k,N)];L.subs=_.subs,L.partials=_.partials},$:function(k,N){var _={subs:{},code:"",partials:N.partials,prefix:k.n};e.walk(k.nodes,_),N.subs[k.n]=_.code,N.inPartial||(N.code+='t.sub("'+v(k.n)+'",c,p,i);')},"\n":function(k,N){N.code+=P('"\\n"'+(k.last?"":" + i"))},_v:function(k,N){N.code+="t.b(t.v(t."+F(k.n)+'("'+v(k.n)+'",c,p,0)));'},_t:function(k,N){N.code+=P('"'+v(k.text)+'"')},"{":w,"&":w};function w(k,N){N.code+="t.b(t.t(t."+F(k.n)+'("'+v(k.n)+'",c,p,0)));'}function P(k){return"t.b("+k+");"}e.walk=function(k,N){for(var _,L=0,I=k.length;L<I;L++)_=e.codegen[k[L].tag],_&&_(k[L],N);return N},e.parse=function(k,N,_){return _=_||{},y(k,"",[],_.sectionTags||[])},e.cache={},e.cacheKey=function(k,N){return[k,!!N.asString,!!N.disableLambda,N.delimiters,!!N.modelGet].join("||")},e.compile=function(k,N){N=N||{};var _=e.cacheKey(k,N),L=this.cache[_];if(L){var I=L.partials;for(var M in I)delete I[M].instance;return L}return L=this.generate(this.parse(this.scan(k,N.delimiters),k,N),k,N),this.cache[_]=L}})(t)})(Lc)),Lc}var Oc={},V2;function PW(){return V2||(V2=1,(function(t){(function(e){e.Template=function(y,g,x,C){y=y||{},this.r=y.code||this.r,this.c=x,this.options=C||{},this.text=g||"",this.partials=y.partials||{},this.subs=y.subs||{},this.buf=""},e.Template.prototype={r:function(y,g,x){return""},v:d,t:h,render:function(g,x,C){return this.ri([g],x||{},C)},ri:function(y,g,x){return this.r(y,g,x)},ep:function(y,g){var x=this.partials[y],C=g[x.name];if(x.instance&&x.base==C)return x.instance;if(typeof C=="string"){if(!this.c)throw new Error("No compiler available.");C=this.c.compile(C,this.options)}if(!C)return null;if(this.partials[y].base=C,x.subs){g.stackText||(g.stackText={});for(key in x.subs)g.stackText[key]||(g.stackText[key]=this.activeSub!==void 0&&g.stackText[this.activeSub]?g.stackText[this.activeSub]:this.text);C=s(C,x.subs,x.partials,this.stackSubs,this.stackPartials,g.stackText)}return this.partials[y].instance=C,C},rp:function(y,g,x,C){var b=this.ep(y,x);return b?b.ri(g,x,C):""},rs:function(y,g,x){var C=y[y.length-1];if(!D(C)){x(y,g,this);return}for(var b=0;b<C.length;b++)y.push(C[b]),x(y,g,this),y.pop()},s:function(y,g,x,C,b,E,v){var F;return D(y)&&y.length===0?!1:(typeof y=="function"&&(y=this.ms(y,g,x,C,b,E,v)),F=!!y,!C&&F&&g&&g.push(typeof y=="object"?y:g[g.length-1]),F)},d:function(y,g,x,C){var b,E=y.split("."),v=this.f(E[0],g,x,C),F=this.options.modelGet,T=null;if(y==="."&&D(g[g.length-2]))v=g[g.length-1];else for(var w=1;w<E.length;w++)b=r(E[w],v,F),b!==void 0?(T=v,v=b):v="";return C&&!v?!1:(!C&&typeof v=="function"&&(g.push(T),v=this.mv(v,g,x),g.pop()),v)},f:function(y,g,x,C){for(var b=!1,E=null,v=!1,F=this.options.modelGet,T=g.length-1;T>=0;T--)if(E=g[T],b=r(y,E,F),b!==void 0){v=!0;break}return v?(!C&&typeof b=="function"&&(b=this.mv(b,g,x)),b):C?!1:""},ls:function(y,g,x,C,b,E){var v=this.options.delimiters;return this.options.delimiters=E,this.b(this.ct(h(y.call(g,b,x)),g,C)),this.options.delimiters=v,!1},ct:function(y,g,x){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(y,this.options).render(g,x)},b:function(y){this.buf+=y},fl:function(){var y=this.buf;return this.buf="",y},ms:function(y,g,x,C,b,E,v){var F,T=g[g.length-1],w=y.call(T);return typeof w=="function"?C?!0:(F=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(w,T,g,x,F.substring(b,E),v)):w},mv:function(y,g,x){var C=g[g.length-1],b=y.call(C);return typeof b=="function"?this.ct(h(b.call(C)),C,x):b},sub:function(y,g,x,C){var b=this.subs[y];b&&(this.activeSub=y,b(g,x,this,C),this.activeSub=!1)}};function r(y,g,x){var C;return g&&typeof g=="object"&&(g[y]!==void 0?C=g[y]:x&&g.get&&typeof g.get=="function"&&(C=g.get(y))),C}function s(y,g,x,C,b,E){function v(){}v.prototype=y;function F(){}F.prototype=y.subs;var T,w=new v;w.subs=new F,w.subsText={},w.buf="",C=C||{},w.stackSubs=C,w.subsText=E;for(T in g)C[T]||(C[T]=g[T]);for(T in C)w.subs[T]=C[T];b=b||{},w.stackPartials=b;for(T in x)b[T]||(b[T]=x[T]);for(T in b)w.partials[T]=b[T];return w}var i=/&/g,n=/</g,o=/>/g,l=/\'/g,c=/\"/g,f=/[&<>\"\']/;function h(y){return String(y??"")}function d(y){return y=h(y),f.test(y)?y.replace(i,"&amp;").replace(n,"&lt;").replace(o,"&gt;").replace(l,"&#39;").replace(c,"&quot;"):y}var D=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"}})(t)})(Oc)),Oc}var $c,z2;function kW(){if(z2)return $c;z2=1;var t=SW();return t.Template=PW().Template,t.template=t.Template,$c=t,$c}var St=kW();const Nt={};Nt["file-summary-line"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
256
+ `+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
257
+ `+r),s.b(s.rp("<fileIcon0",t,e," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",t,e,0))),s.b("</a>"),s.b(`
258
+ `+r),s.b(' <span class="d2h-file-stats">'),s.b(`
259
+ `+r),s.b(' <span class="d2h-lines-added">'),s.b(s.v(s.f("addedLines",t,e,0))),s.b("</span>"),s.b(`
260
+ `+r),s.b(' <span class="d2h-lines-deleted">'),s.b(s.v(s.f("deletedLines",t,e,0))),s.b("</span>"),s.b(`
261
+ `+r),s.b(" </span>"),s.b(`
262
+ `+r),s.b(" </span>"),s.b(`
263
+ `+r),s.b("</li>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Nt["file-summary-wrapper"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-file-list-wrapper '),s.b(s.v(s.f("colorScheme",t,e,0))),s.b('">'),s.b(`
264
+ `+r),s.b(' <div class="d2h-file-list-header">'),s.b(`
265
+ `+r),s.b(' <span class="d2h-file-list-title">Files changed ('),s.b(s.v(s.f("filesNumber",t,e,0))),s.b(")</span>"),s.b(`
266
+ `+r),s.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),s.b(`
267
+ `+r),s.b(' <a class="d2h-file-switch d2h-show">show</a>'),s.b(`
268
+ `+r),s.b(" </div>"),s.b(`
269
+ `+r),s.b(' <ol class="d2h-file-list">'),s.b(`
270
+ `+r),s.b(" "),s.b(s.t(s.f("files",t,e,0))),s.b(`
271
+ `+r),s.b(" </ol>"),s.b(`
272
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Nt["generic-block-header"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
273
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",t,e,0))),s.b(" "),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('"></td>'),s.b(`
274
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('">'),s.b(`
275
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.s(s.f("blockHeader",t,e,1),t,e,0,156,173,"{{ }}")&&(s.rs(t,e,function(i,n,o){o.b(o.t(o.f("blockHeader",i,n,0)))}),t.pop()),s.s(s.f("blockHeader",t,e,1),t,e,1,0,0,"")||s.b("&nbsp;"),s.b("</div>"),s.b(`
276
+ `+r),s.b(" </td>"),s.b(`
277
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Nt["generic-empty-diff"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
278
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",t,e,0))),s.b('">'),s.b(`
279
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.b(`
280
+ `+r),s.b(" File without changes"),s.b(`
281
+ `+r),s.b(" </div>"),s.b(`
282
+ `+r),s.b(" </td>"),s.b(`
283
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Nt["generic-file-path"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-file-name-wrapper">'),s.b(`
284
+ `+r),s.b(s.rp("<fileIcon0",t,e," ")),s.b(' <span class="d2h-file-name">'),s.b(s.v(s.f("fileDiffName",t,e,0))),s.b("</span>"),s.b(`
285
+ `+r),s.b(s.rp("<fileTag1",t,e," ")),s.b("</span>"),s.b(`
286
+ `+r),s.b('<label class="d2h-file-collapse">'),s.b(`
287
+ `+r),s.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),s.b(`
288
+ `+r),s.b(" Viewed"),s.b(`
289
+ `+r),s.b("</label>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Nt["generic-line"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
290
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",t,e,0))),s.b(" "),s.b(s.v(s.f("type",t,e,0))),s.b('">'),s.b(`
291
+ `+r),s.b(" "),s.b(s.t(s.f("lineNumber",t,e,0))),s.b(`
292
+ `+r),s.b(" </td>"),s.b(`
293
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("type",t,e,0))),s.b('">'),s.b(`
294
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",t,e,0))),s.b('">'),s.b(`
295
+ `+r),s.s(s.f("prefix",t,e,1),t,e,0,162,238,"{{ }}")&&(s.rs(t,e,function(i,n,o){o.b(' <span class="d2h-code-line-prefix">'),o.b(o.t(o.f("prefix",i,n,0))),o.b("</span>"),o.b(`
296
+ `+r)}),t.pop()),s.s(s.f("prefix",t,e,1),t,e,1,0,0,"")||(s.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),s.b(`
297
+ `+r)),s.s(s.f("content",t,e,1),t,e,0,371,445,"{{ }}")&&(s.rs(t,e,function(i,n,o){o.b(' <span class="d2h-code-line-ctn">'),o.b(o.t(o.f("content",i,n,0))),o.b("</span>"),o.b(`
298
+ `+r)}),t.pop()),s.s(s.f("content",t,e,1),t,e,1,0,0,"")||(s.b(' <span class="d2h-code-line-ctn"><br></span>'),s.b(`
299
+ `+r)),s.b(" </div>"),s.b(`
300
+ `+r),s.b(" </td>"),s.b(`
301
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});Nt["generic-wrapper"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-wrapper '),s.b(s.v(s.f("colorScheme",t,e,0))),s.b('">'),s.b(`
302
+ `+r),s.b(" "),s.b(s.t(s.f("content",t,e,0))),s.b(`
303
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Nt["icon-file-added"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),s.b(`
304
+ `+r),s.b(' width="14">'),s.b(`
305
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),s.b(`
306
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Nt["icon-file-changed"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),s.b(`
307
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
308
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),s.b(`
309
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Nt["icon-file-deleted"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),s.b(`
310
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
311
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),s.b(`
312
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Nt["icon-file-renamed"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),s.b(`
313
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
314
+ `+r),s.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),s.b(`
315
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Nt["icon-file"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),s.b(`
316
+ `+r),s.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),s.b(`
317
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});Nt["line-by-line-file-diff"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",t,e,0))),s.b('">'),s.b(`
318
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
319
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",t,e,0))),s.b(`
320
+ `+r),s.b(" </div>"),s.b(`
321
+ `+r),s.b(' <div class="d2h-file-diff">'),s.b(`
322
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
323
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
324
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
325
+ `+r),s.b(" "),s.b(s.t(s.f("diffs",t,e,0))),s.b(`
326
+ `+r),s.b(" </tbody>"),s.b(`
327
+ `+r),s.b(" </table>"),s.b(`
328
+ `+r),s.b(" </div>"),s.b(`
329
+ `+r),s.b(" </div>"),s.b(`
330
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Nt["line-by-line-numbers"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div class="line-num1">'),s.b(s.v(s.f("oldNumber",t,e,0))),s.b("</div>"),s.b(`
331
+ `+r),s.b('<div class="line-num2">'),s.b(s.v(s.f("newNumber",t,e,0))),s.b("</div>"),s.fl()},partials:{},subs:{}});Nt["side-by-side-file-diff"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",t,e,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",t,e,0))),s.b('">'),s.b(`
332
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
333
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",t,e,0))),s.b(`
334
+ `+r),s.b(" </div>"),s.b(`
335
+ `+r),s.b(' <div class="d2h-files-diff">'),s.b(`
336
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
337
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
338
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
339
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
340
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.left",t,e,0))),s.b(`
341
+ `+r),s.b(" </tbody>"),s.b(`
342
+ `+r),s.b(" </table>"),s.b(`
343
+ `+r),s.b(" </div>"),s.b(`
344
+ `+r),s.b(" </div>"),s.b(`
345
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
346
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
347
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
348
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
349
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.right",t,e,0))),s.b(`
350
+ `+r),s.b(" </tbody>"),s.b(`
351
+ `+r),s.b(" </table>"),s.b(`
352
+ `+r),s.b(" </div>"),s.b(`
353
+ `+r),s.b(" </div>"),s.b(`
354
+ `+r),s.b(" </div>"),s.b(`
355
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});Nt["tag-file-added"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});Nt["tag-file-changed"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});Nt["tag-file-deleted"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});Nt["tag-file-renamed"]=new St.Template({code:function(t,e,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class IW{constructor({compiledTemplates:e={},rawTemplates:r={}}){const s=Object.entries(r).reduce((i,[n,o])=>{const l=St.compile(o,{asString:!1});return Object.assign(Object.assign({},i),{[n]:l})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Nt),e),s)}static compile(e){return St.compile(e,{asString:!1})}render(e,r,s,i,n){const o=this.templateKey(e,r);try{return this.preCompiledTemplates[o].render(s,i,n)}catch{throw new Error(`Could not find template to render '${o}'`)}}template(e,r){return this.preCompiledTemplates[this.templateKey(e,r)]}templateKey(e,r){return`${e}-${r}`}}const BW=Object.assign(Object.assign(Object.assign({},GC),XC),{outputFormat:YH.LINE_BY_LINE,drawFileList:!0});function NW(t,e={}){const r=Object.assign(Object.assign({},BW),e),s=typeof t=="string"?aW(t,r):t,i=new IW(r),{colorScheme:n}=r,o={colorScheme:n},l=r.drawFileList?new EW(i,o).render(s):"",c=r.outputFormat==="side-by-side"?new wW(i,r).render(s):new bW(i,r).render(s);return l+c}class _W{diff(e,r,s={}){let i;typeof s=="function"?(i=s,s={}):"callback"in s&&(i=s.callback);const n=this.castInput(e,s),o=this.castInput(r,s),l=this.removeEmpty(this.tokenize(n,s)),c=this.removeEmpty(this.tokenize(o,s));return this.diffWithOptionsObj(l,c,s,i)}diffWithOptionsObj(e,r,s,i){var n;const o=E=>{if(E=this.postProcess(E,s),i){setTimeout(function(){i(E)},0);return}else return E},l=r.length,c=e.length;let f=1,h=l+c;s.maxEditLength!=null&&(h=Math.min(h,s.maxEditLength));const d=(n=s.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+d,y=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(y[0],r,e,0,s);if(y[0].oldPos+1>=c&&g+1>=l)return o(this.buildValues(y[0].lastComponent,r,e));let x=-1/0,C=1/0;const b=()=>{for(let E=Math.max(x,-f);E<=Math.min(C,f);E+=2){let v;const F=y[E-1],T=y[E+1];F&&(y[E-1]=void 0);let w=!1;if(T){const k=T.oldPos-E;w=T&&0<=k&&k<l}const P=F&&F.oldPos+1<c;if(!w&&!P){y[E]=void 0;continue}if(!P||w&&F.oldPos<T.oldPos?v=this.addToPath(T,!0,!1,0,s):v=this.addToPath(F,!1,!0,1,s),g=this.extractCommon(v,r,e,E,s),v.oldPos+1>=c&&g+1>=l)return o(this.buildValues(v.lastComponent,r,e))||!0;y[E]=v,v.oldPos+1>=c&&(C=Math.min(C,E-1)),g+1>=l&&(x=Math.max(x,E+1))}f++};if(i)(function E(){setTimeout(function(){if(f>h||Date.now()>D)return i(void 0);b()||E()},0)})();else for(;f<=h&&Date.now()<=D;){const E=b();if(E)return E}}addToPath(e,r,s,i,n){const o=e.lastComponent;return o&&!n.oneChangePerToken&&o.added===r&&o.removed===s?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:r,removed:s,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:r,removed:s,previousComponent:o}}}extractCommon(e,r,s,i,n){const o=r.length,l=s.length;let c=e.oldPos,f=c-i,h=0;for(;f+1<o&&c+1<l&&this.equals(s[c+1],r[f+1],n);)f++,c++,h++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return h&&!n.oneChangePerToken&&(e.lastComponent={count:h,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=c,f}equals(e,r,s){return s.comparator?s.comparator(e,r):e===r||!!s.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){const r=[];for(let s=0;s<e.length;s++)e[s]&&r.push(e[s]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,s){const i=[];let n;for(;e;)i.push(e),n=e.previousComponent,delete e.previousComponent,e=n;i.reverse();const o=i.length;let l=0,c=0,f=0;for(;l<o;l++){const h=i[l];if(h.removed)h.value=this.join(s.slice(f,f+h.count)),f+=h.count;else{if(!h.added&&this.useLongestToken){let d=r.slice(c,c+h.count);d=d.map(function(D,y){const g=s[f+y];return g.length>D.length?g:D}),h.value=this.join(d)}else h.value=this.join(r.slice(c,c+h.count));c+=h.count,h.added||(f+=h.count)}}return i}}class LW extends _W{constructor(){super(...arguments),this.tokenize=$W}equals(e,r,s){return s.ignoreWhitespace?((!s.newlineIsToken||!e.includes(`
356
+ `))&&(e=e.trim()),(!s.newlineIsToken||!r.includes(`
357
+ `))&&(r=r.trim())):s.ignoreNewlineAtEof&&!s.newlineIsToken&&(e.endsWith(`
358
+ `)&&(e=e.slice(0,-1)),r.endsWith(`
359
+ `)&&(r=r.slice(0,-1))),super.equals(e,r,s)}}const OW=new LW;function H2(t,e,r){return OW.diff(t,e,r)}function $W(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,`
360
+ `));const r=[],s=t.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(let i=0;i<s.length;i++){const n=s[i];i%2&&!e.newlineIsToken?r[r.length-1]+=n:r.push(n)}return r}function MW(t){for(let e=0;e<t.length;e++)if(t[e]<" "||t[e]>"~"||t[e]==='"'||t[e]==="\\")return!0;return!1}function ui(t){if(!MW(t))return t;let e='"';const r=new TextEncoder().encode(t);let s=0;for(;s<r.length;){const i=r[s];i===7?e+="\\a":i===8?e+="\\b":i===9?e+="\\t":i===10?e+="\\n":i===11?e+="\\v":i===12?e+="\\f":i===13?e+="\\r":i===34?e+='\\"':i===92?e+="\\\\":i>=32&&i<=126?e+=String.fromCharCode(i):e+="\\"+i.toString(8).padStart(3,"0"),s++}return e+='"',e}const W2={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function RW(t,e,r,s,i,n,o){let l;l={},typeof l.context>"u"&&(l.context=4);const c=l.context;if(l.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(l.callback){const{callback:h}=l;H2(r,s,Object.assign(Object.assign({},l),{callback:d=>{const D=f(d);h(D)}}))}else return f(H2(r,s,l));function f(h){if(!h)return;h.push({value:"",lines:[]});function d(E){return E.map(function(v){return" "+v})}const D=[];let y=0,g=0,x=[],C=1,b=1;for(let E=0;E<h.length;E++){const v=h[E],F=v.lines||qW(v.value);if(v.lines=F,v.added||v.removed){if(!y){const T=h[E-1];y=C,g=b,T&&(x=c>0?d(T.lines.slice(-c)):[],y-=x.length,g-=x.length)}for(const T of F)x.push((v.added?"+":"-")+T);v.added?b+=F.length:C+=F.length}else{if(y)if(F.length<=c*2&&E<h.length-2)for(const T of d(F))x.push(T);else{const T=Math.min(F.length,c);for(const P of d(F.slice(0,T)))x.push(P);const w={oldStart:y,oldLines:C-y+T,newStart:g,newLines:b-g+T,lines:x};D.push(w),y=0,g=0,x=[]}C+=F.length,b+=F.length}}for(const E of D)for(let v=0;v<E.lines.length;v++)E.lines[v].endsWith(`
361
+ `)?E.lines[v]=E.lines[v].slice(0,-1):(E.lines.splice(v+1,0,"\"),v++);return{oldFileName:t,newFileName:e,oldHeader:i,newHeader:n,hunks:D}}}function YC(t,e){var r,s,i,n,o,l;if(e||(e=W2),Array.isArray(t)){if(t.length>1&&!e.includeFileHeaders&&!t.every(h=>h.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return t.map(h=>YC(h,e)).join(`
362
+ `)}const c=[];if(t.isGit){if(e=W2,!t.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!t.newFileName)throw new Error("newFileName must be specified for Git patches");let h=t.oldFileName,d=t.newFileName;t.isCreate&&h==="/dev/null"?h=d.replace(/^b\//,"a/"):t.isDelete&&d==="/dev/null"&&(d=h.replace(/^a\//,"b/")),c.push("diff --git "+ui(h)+" "+ui(d)),t.isDelete&&c.push("deleted file mode "+((r=t.oldMode)!==null&&r!==void 0?r:"100644")),t.isCreate&&c.push("new file mode "+((s=t.newMode)!==null&&s!==void 0?s:"100644")),t.oldMode&&t.newMode&&!t.isDelete&&!t.isCreate&&(c.push("old mode "+t.oldMode),c.push("new mode "+t.newMode)),t.isRename&&(c.push("rename from "+ui(((i=t.oldFileName)!==null&&i!==void 0?i:"").replace(/^a\//,""))),c.push("rename to "+ui(((n=t.newFileName)!==null&&n!==void 0?n:"").replace(/^b\//,"")))),t.isCopy&&(c.push("copy from "+ui(((o=t.oldFileName)!==null&&o!==void 0?o:"").replace(/^a\//,""))),c.push("copy to "+ui(((l=t.newFileName)!==null&&l!==void 0?l:"").replace(/^b\//,""))))}else e.includeIndex&&t.oldFileName==t.newFileName&&t.oldFileName!==void 0&&c.push("Index: "+t.oldFileName),e.includeUnderline&&c.push("===================================================================");const f=t.hunks.length>0;e.includeFileHeaders&&t.oldFileName!==void 0&&t.newFileName!==void 0&&(!t.isGit||f)&&(c.push("--- "+ui(t.oldFileName)+(t.oldHeader?" "+t.oldHeader:"")),c.push("+++ "+ui(t.newFileName)+(t.newHeader?" "+t.newHeader:"")));for(let h=0;h<t.hunks.length;h++){const d=t.hunks[h],D=d.oldLines===0?d.oldStart-1:d.oldStart,y=d.newLines===0?d.newStart-1:d.newStart;c.push("@@ -"+D+","+d.oldLines+" +"+y+","+d.newLines+" @@");for(const g of d.lines)c.push(g)}return c.join(`
363
+ `)+`
364
+ `}function jW(t,e,r,s,i,n,o){{const l=RW(t,e,r,s,i,n);return l?YC(l,void 0):void 0}}function UW(t,e,r,s,i,n){return jW(t,t,e,r,s,i)}function qW(t){const e=t.endsWith(`
365
+ `),r=t.split(`
366
+ `).map(s=>s+`
367
+ `);return e?r.pop():r.push(r.pop().slice(0,-1)),r}const VW={class:"relative"},zW=["innerHTML"],HW=Mt({__name:"DiffCode",props:Oh({oldMeta:{default:()=>({version:""})},newMeta:{default:()=>({version:""})},formatCode:{type:Boolean,default:!1}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const r=t,s=Lh(t,"modelValue"),i=G2(),{t:n}=Qt(),o=yr(""),l=yr(),c=yr(!1),f=new Map;function h(P){try{return new URL(P,location.href).pathname.split(".").pop()}catch{return}}async function d(P){return P?await fetch(P).then(async N=>{if(N.ok){const _=await N.text();try{const L=JSON.parse(_);return L.code===500?"":JSON.stringify(L,null,2)}catch{return _}}return""}).catch(()=>"")??"":""}async function D(P,k){return!k||!r.formatCode?P:await KH(P,k)??P}function y(P){return/^@@/m.test(P)}async function g(P){const k=P.content;if(!k)return null;const N=k.find(ue=>ue.type==="old"),_=k.find(ue=>ue.type==="new");if(!N?.accessPath&&!_?.accessPath)return null;const[L,I]=await Promise.all([d(N?.accessPath),d(_?.accessPath)]),M=h(N?.accessPath??""),K=h(_?.accessPath??""),[$,z]=await Promise.all([D(L,M),D(I,K)]),re=UW(P.path,$,z),te=y(re);return P.status!==os.NodeStatus.Added&&P.status!==os.NodeStatus.Deleted&&(P.status=te?os.NodeStatus.Changed:os.NodeStatus.Unchanged),te?re:null}async function x(P){const k=[];async function N(_){for(const L of _){L.children?.length&&await N(L.children);const I=await g(L);I&&k.push(I)}}return await N(P),{patches:k,updatedTree:Pl(P)}}function C(P){if(P.length===0)return`<div class="no-diff">${n("comp.noChanges")}</div>`;const k=P.map(_=>_+`
368
+ `).join(""),N=i.value?"dark":"light";return NW(k,{outputFormat:"side-by-side",colorScheme:N})}function b(){if(!l.value)return;f.clear(),l.value.querySelectorAll(".d2h-file-wrapper").forEach((k,N)=>{const L=k.querySelector(".d2h-file-name")?.textContent??`file-${N}`,I=k.getAttribute("id");f.set(L,I??"")})}function E(){const P=window.location.hash.slice(1);if(!P||!l.value)return;const k=l.value.querySelector(`#${CSS.escape(P)}`);k&&(k.scrollIntoView({behavior:"smooth",block:"start"}),k.classList.add("highlight-file"),setTimeout(()=>{k.classList.remove("highlight-file")},1500))}function v(){E()}function F(P){const k=f.get(P);k&&(window.location.hash=k)}let T=!1;async function w(){if(!T){T=!0,await Jn(),c.value=!0;try{const{patches:P,updatedTree:k}=await x(s.value);o.value=C(P),s.value=k,await Jn(),b(),E()}finally{c.value=!1,T=!1}}}return Mr(()=>JSON.stringify(s.value),()=>w(),{immediate:!0}),Mr(()=>r.formatCode,()=>w()),bv(window,"hashchange",v),e({scrollToFile:F}),(P,k)=>(ke(),ft("div",VW,[c.value?(ke(),Ze(me(uF),{key:0,class:"diff-code-loading",text:me(n)("common.loading")},null,8,["text"])):dr("",!0),Rv(He("div",{ref_key:"diffContainer",ref:l,innerHTML:o.value},null,8,zW),[[jv,!c.value]])]))}}),WW=an(HW,[["__scopeId","data-v-8b61a53a"]]),JW={class:"flex items-center gap-4"},KW={class:"w-full h-full flex flex-col"},GW={class:"flex items-center gap-2 justify-start p-1 h-[30px] bg-[var(--el-fill-color-light)]"},XW={class:"flex items-center gap-2 justify-start p-1 h-[30px] bg-[var(--el-fill-color-light)] px-2"},YW={class:"flex-1 overflow-auto"},QW=Mt({__name:"DiffDialog",props:{resultTree:{type:Array,default:()=>[]},oldMeta:{type:Object,default:()=>({version:"10.1.0"})},newMeta:{type:Object,default:()=>({version:"10.1.1"})}},emits:["refresh"],setup(t,{expose:e}){const{t:r}=Qt(),s=t,i=xi("diffCode"),n=yr(!1),o=yr([]),l=yr(!1);function c(){l.value=!0}function f(){l.value=!1}function h(d){i.value?.scrollToFile(d.path)}return Mr(()=>s.resultTree,()=>{o.value=Pl(s.resultTree)},{immediate:!0}),e({open:c,close:f}),(d,D)=>(ke(),Ze(me(sg),{modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=y=>l.value=y),class:"diff-container",title:"",width:"55%","show-close":"",fullscreen:""},{header:ge(()=>[He("div",JW,[Te(me(vi),{type:"primary",size:"small",onClick:D[0]||(D[0]=y=>d.$emit("refresh"))},{default:ge(()=>[gt(Ke(me(r)("common.refresh")),1)]),_:1})])]),default:ge(()=>[Te(me(kl),{class:"w-full h-full card-no-padding"},{default:ge(()=>[Te(me(X2),{class:"w-full h-full"},{default:ge(()=>[Te(me(Mc),{size:"20%",collapsible:""},{default:ge(()=>[He("div",KW,[He("div",GW,[Te(me(Ji),{type:"warning",size:"small"},{default:ge(()=>[gt(Ke(me(r)("comp.diff.changed")),1)]),_:1}),Te(me(Ji),{type:"info",size:"small"},{default:ge(()=>[gt(Ke(me(r)("comp.diff.unchanged")),1)]),_:1}),Te(me(Ji),{type:"success",size:"small"},{default:ge(()=>[gt(Ke(me(r)("comp.diff.added")),1)]),_:1}),Te(me(Ji),{type:"danger",size:"small"},{default:ge(()=>[gt(Ke(me(r)("comp.diff.deleted")),1)]),_:1})]),Te(me(ms),{class:"flex-1 bg-[var(--el-fill-color-blank)]"},{default:ge(()=>[Te(me(XH),{resultTree:o.value,onNodeClick:h},null,8,["resultTree"])]),_:1})])]),_:1}),Te(me(Mc),{class:"w-full h-full overflow-hidden flex flex-col"},{default:ge(()=>[He("div",XW,[Te(me(Tv),{modelValue:n.value,"onUpdate:modelValue":D[1]||(D[1]=y=>n.value=y),"inactive-text":me(r)("comp.formatCode")},null,8,["modelValue","inactive-text"]),Te(me(vv),{effect:"dark",content:me(r)("comp.formatCodeTooltip"),placement:"right"},{default:ge(()=>[Te(me(Nv),{icon:"material-symbols:question-mark-rounded"})]),_:1},8,["content"])]),He("div",YW,[Te(me(ms),null,{default:ge(()=>[Te(me(WW),{ref:"diffCode",modelValue:o.value,"onUpdate:modelValue":D[2]||(D[2]=y=>o.value=y),oldMeta:t.oldMeta,newMeta:t.newMeta,formatCode:n.value},null,8,["modelValue","oldMeta","newMeta","formatCode"])]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),ZW=an(QW,[["__scopeId","data-v-04c9aa78"]]),eJ={class:"flex justify-between items-center w-full gap-1"},tJ=Mt({__name:"PreviewPathItem",props:{modelValue:{},pathConfig:{},cascaderOptions:{},disabled:{type:Boolean}},emits:["change","view"],setup(t,{emit:e}){const r=t,s=e,{t:i}=Qt(),n={value:"path",label:"name"},o=Ue(()=>{const h=r.modelValue[r.pathConfig.pathKey];return Array.isArray(h)?h:[]}),l=Ue(()=>r.modelValue.activeTab===r.pathConfig.type);function c(h){s("change",h??[])}function f(){s("view")}return(h,d)=>{const D=Fv,y=$h("Icon"),g=vi,x=qo;return ke(),Ze(x,{label:t.pathConfig.label+":",prop:t.pathConfig.prop},{default:ge(()=>[He("div",eJ,[Te(D,{class:"flex-1","model-value":o.value,options:t.cascaderOptions,props:n,placeholder:me(i)("comp.pleaseSelectPreviewFile"),clearable:t.pathConfig.clearable,onChange:c},null,8,["model-value","options","placeholder","clearable"]),Te(g,{type:l.value?"primary":"info",circle:"",disabled:t.disabled,onClick:Q2(f,["stop"])},{default:ge(()=>[Te(y,{icon:"material-symbols:eye-tracking"})]),_:1},8,["type","disabled"])])]),_:1},8,["label","prop"])}}}),rJ={class:"text-right"},sJ=Mt({__name:"Item",props:Oh({index:{}},{modelValue:{default:()=>({id:"",desc:"",miniPath:[],fullPath:[],activeTab:Pe.COMP_EDIT_TAB_TYPE_MINI})},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const r={LOCAL_PREFIX:Pe.COMP_PREVIEW_PREFIX_LOCAL,VUE_EXTENSION:".vue"},s=t,i=Lh(t,"modelValue"),{t:n}=Qt(),o=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),l=xi("form"),c=Ue(()=>o.compCarouselIndex===h.value),f=Ue(()=>s.index===0),h=Ue(()=>o.previewList.findIndex(P=>P._id===i.value._id)),d=Ue(()=>o.selectedFolder?.path),D=Ue(()=>o.directory?Rc.mapTree(o.directory,k=>{const N=k.type==="file"&&k.name.endsWith(r.VUE_EXTENSION);return k.disabled=k.type==="file"&&!N,k}).children??[]:[]),y=Ue(()=>f.value?{miniPath:[{required:!0,validator:(P,k,N)=>{!k||k.length===0?N(new Error(n("comp.pleaseSelectPreviewFile"))):N()},trigger:"blur"}]}:{}),g=Ue(()=>[{type:Pe.COMP_EDIT_TAB_TYPE_MINI,label:n("comp.miniPreviewFile"),prop:f.value?"miniPath":"",pathKey:"miniPath",urlKey:"miniEntryUrl",clearable:!f.value},{type:Pe.COMP_EDIT_TAB_TYPE_FULL,label:n("comp.fullPreviewFile"),prop:"fullPath",pathKey:"fullPath",urlKey:"fullEntryUrl",clearable:!0}]);function x(P){if(!P.length)return"";const k=o.isOnlineUpdate||o.isAddComp,N=o.isOfflineUpdate&&o.editCompId;if(k){const _=Po.getPreviewUrl(d.value,P);return`${r.LOCAL_PREFIX}/${_}`}return N?C(P):""}function C(P){const N=Z2(o.editCompId)().latestVersionToFileAccessPath,_=new Map(N.map(({path:I,signedUrl:M})=>[I,M])),L=ko.replaceBackslashWithSlash(P.at(-1)??"");return _.get(L)??""}function b(P){i.value={...i.value,desc:P}}function E(){o.setCompCarouselIndex(h.value)}function v(P){i.value={...i.value,activeTab:P}}async function F(P,k){const N=k??[],_=x(N),L={[Pe.COMP_EDIT_TAB_TYPE_MINI]:{miniPath:N,miniEntryUrl:_},[Pe.COMP_EDIT_TAB_TYPE_FULL]:{fullPath:N,fullEntryUrl:_}};i.value={...i.value,...L[P]},P===Pe.COMP_EDIT_TAB_TYPE_MINI&&f.value&&(await Jn(),l.value?.validateField("miniPath"))}function T(){i.value._id&&o.delPreviewCompItemById(i.value._id)}function w(){return l.value?.validate()}return e({validateForm:w}),(P,k)=>{const N=Bl,_=qo,L=Il,I=vi,M=kl;return ke(),Ze(M,{"body-class":"!p-0",class:_h(["cursor-pointer p-[5px] overflow-auto",{active:c.value}]),onClick:E},{default:ge(()=>[Te(L,{ref:"form",model:i.value,rules:y.value,"label-width":"auto"},{default:ge(()=>[(ke(!0),ft(_s,null,di(g.value,K=>(ke(),Ze(tJ,{key:K.type,modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=$=>i.value=$),"path-config":K,"cascader-options":D.value,disabled:!c.value,onChange:$=>F(K.type,$),onView:()=>v(K.type)},null,8,["modelValue","path-config","cascader-options","disabled","onChange","onView"]))),128)),Te(_,{label:me(n)("comp.remarkDesc")+":"},{default:ge(()=>[Te(N,{"model-value":i.value.desc,type:"textarea",onInput:b},null,8,["model-value"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),He("div",rJ,[Te(I,{type:"danger",disabled:f.value,onClick:Q2(T,["stop"])},{default:ge(()=>[gt(Ke(me(n)("common.delete")),1)]),_:1},8,["disabled"])])]),_:1},8,["class"])}}}),iJ=an(sJ,[["__scopeId","data-v-520b6ba3"]]),nJ={class:"size-full overflow-auto flex flex-col gap-2 items-start"},aJ=Mt({__name:"index",setup(t){const{t:e}=Qt(),r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=xr(Pe.PROVIDE_KEY_CALLBACKS),i=xi("items");async function n(){if(r.previewList.length>=5){Nl.error(e("comp.maxPreviewEntry",{n:5}));return}r.addPreviewCompItem({_id:fl(),miniPath:[],fullPath:[],activeTab:Pe.COMP_EDIT_TAB_TYPE_MINI,miniEntryUrl:"",fullEntryUrl:""}),await Jn(),r.setCompCarouselIndex(r.previewList.length-1)}function o(l){const{_id:c}=l;c&&r.updatePreviewCompItemById(c,l)}return s.set(Pe.COMP_METHOD_KEY_CHECK_PREVIEW_LIST_FORM,()=>{i.value?.forEach(l=>{l?.validateForm()})}),(l,c)=>{const f=vi,h=ms;return ke(),ft("div",nJ,[Te(f,{type:"primary",onClick:n},{default:ge(()=>[gt(Ke(me(e)("comp.addPreviewEntry")),1)]),_:1}),Te(h,{class:"flex-1 overflow-x-hidden size-full"},{default:ge(()=>[Te(me(eg),{class:"size-full",isEmpty:!me(r).previewList.length,emptyDescription:me(e)("comp.pleaseAddPreviewEntry")},{default:ge(()=>[Te(me(dF),{"item-min-width":350},{default:ge(()=>[(ke(!0),ft(_s,null,di(me(r).previewList,(d,D)=>(ke(),Ze(iJ,{ref_for:!0,ref:"items",key:d._id,index:D,"model-value":d,"onUpdate:modelValue":o},null,8,["index","model-value"]))),128))]),_:1})]),_:1},8,["isEmpty","emptyDescription"])]),_:1})])}}}),oJ=Mt({__name:"ExtraInfo",setup(t){const{t:e}=Qt(),r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=xr(Pe.PROVIDE_KEY_CALLBACKS),i=xi("form"),n=yr(200),o={name:[{required:!0,validator:(d,D,y)=>{if(!D)return y(new Error(e("comp.compNameRequired")));ko.validateCompName(D)?y():y(new Error(e("comp.compNameNamingRule")))},trigger:["blur"]}],description:[{required:!0,message:e("comp.remarksDescRequired"),trigger:"blur"},{min:3,max:n.value,message:e("comp.lengthBetween",{min:3,max:n.value}),trigger:"blur"}]},l=Ue(()=>r.selectedFolder.basename);async function c(){await i.value?.validate()}function f(d){r.setExtraInfo({...r.extraInfo,description:d.trim()})}function h(d){r.setExtraInfo({...r.extraInfo,name:d.trim()})}return Mr(l,d=>{r.extraInfo.name||r.setExtraInfo({...r.extraInfo,name:d})},{immediate:!0}),s.set(Pe.COMP_METHOD_KEY_CHECK_EXTRA_INFO_FORM,c),(d,D)=>{const y=Bl,g=qo,x=ms;return ke(),Ze(x,{class:"size-full"},{default:ge(()=>[Te(me(Il),{ref:"form","label-width":"auto",model:me(r).extraInfo,rules:o},{default:ge(()=>[Te(g,{label:me(e)("comp.name")+":",prop:"name"},{default:ge(()=>[Te(y,{maxlength:50,"show-word-limit":"","model-value":me(r).extraInfo.name,placeholder:me(e)("comp.pleaseInputCompName"),onInput:h},null,8,["model-value","placeholder"])]),_:1},8,["label"]),Te(g,{label:me(e)("comp.remarksDesc")+":",prop:"description"},{default:ge(()=>[Te(y,{maxlength:n.value,"show-word-limit":"","model-value":me(r).extraInfo.description,placeholder:me(e)("comp.pleaseInputRemarks"),rows:4,type:"textarea",onInput:f},null,8,["maxlength","model-value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})}}}),uJ={class:"flex items-center gap-[50px]"},lJ=Mt({__name:"Dir",setup(t){const e={children:"children",label:"name"},r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=yr([]);return Mr(()=>r.directory,i=>{i?.children&&(s.value=Pl(i.children))},{deep:!0,immediate:!0}),(i,n)=>{const o=K2,l=ms;return ke(),Ze(l,{class:"size-full tree-container"},{default:ge(()=>[Te(o,{data:s.value,props:e},{default:ge(({node:c})=>[He("div",uJ,[He("span",null,Ke(c.label),1)])]),_:1},8,["data"])]),_:1})}}}),pJ={class:"flex gap-[10px] items-center justify-center"},cJ={class:"inline-block"},hJ={key:0,class:"flex items-center justify-center text-[20px] font-bold text-gray-500"},dJ={class:"inline-block"},fJ={class:"size-full flex justify-center items-center"},mJ={class:"inline-block"},yJ={class:"flex gap-2"},DJ={key:0},gJ={class:"ml-auto"},xJ=Mt({__name:"Deps",setup(t){const{t:e}=Qt(),r=Ue(()=>({TITLE_LOCAL:e("comp.localDep"),TITLE_ONLINE:e("comp.onlineDep"),TITLE_FINAL:e("comp.finalDep"),LABEL_LOCAL:e("comp.localVersion"),LABEL_ONLINE:e("comp.onlineVersion"),EMPTY_ONLINE_DEPS:e("comp.onlineDepEmpty"),TAG_CONSISTENT:e("comp.versionConsistent"),TAG_CHANGE:e("comp.versionChange"),TAG_CHANGE_CONFIRMED:e("comp.versionChangeConfirmed"),TAG_ADD:e("comp.newDep"),TYPE_CONSISTENT:"consistent",TYPE_CHANGE:"change",TYPE_ADD:"add",SOURCE_LOCAL:"local",SOURCE_ONLINE:"online"})),s=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),i=yr({}),n=Ue(()=>Po.handleDepData(s.compDep)),o=Ue(()=>Po.handleDepData(s.onlineCompDep)),l=Ue(()=>{const h={};return o.value.length===0&&s.isEditComp||n.value.forEach(d=>{const D={},y=o.value.find(g=>g.name===d.name);y?dl.isVersionEqual(d.version??"",y.version??"")?(D.selectedVersion=d.version,D.type=r.value.TYPE_CONSISTENT):(D.type=r.value.TYPE_CHANGE,D.selectedVersion=i.value[d.name]||"",D.versions=[{version:d.version,type:r.value.SOURCE_LOCAL},{version:y.version,type:r.value.SOURCE_ONLINE}]):(D.selectedVersion=i.value[d.name]||"",D.type=r.value.TYPE_ADD,D.versions=[{version:d.version,type:r.value.SOURCE_LOCAL}]),h[d.name]=D}),h}),c=Ue(()=>Object.keys(o.value).length===0);function f(h,d){i.value[h]=d}return Mr(()=>l.value,h=>{for(const d in h){const D=h[d];D.type===r.value.TYPE_CHANGE||D.type===r.value.TYPE_ADD||(i.value[d]=D.selectedVersion)}},{immediate:!0,deep:!0}),Uv(()=>{s.setAffirmCompDep(Pl(i.value))}),(h,d)=>{const D=Sv,y=wv,g=kl,x=kv,C=Pv,b=Ji,E=ms;return ke(),Ze(E,{class:"size-full"},{default:ge(()=>[He("div",pJ,[Te(g,{"body-class":"!p-0",class:"p-[5px]"},{default:ge(()=>[He("div",null,[Te(y,{title:r.value.TITLE_LOCAL,column:1,border:"","label-width":"auto"},{default:ge(()=>[(ke(!0),ft(_s,null,di(n.value,(v,F)=>(ke(),Ze(D,{key:F},{label:ge(()=>[He("div",cJ,Ke(v.name),1)]),default:ge(()=>[gt(" "+Ke(v.version),1)]),_:2},1024))),128))]),_:1},8,["title"])])]),_:1}),c.value?dr("",!0):(ke(),ft("div",hJ,"+")),c.value?dr("",!0):(ke(),Ze(g,{key:1,"body-class":"!p-0",class:"p-[5px]"},{default:ge(()=>[Te(me(eg),{isEmpty:c.value,class:"size-full"},{"empty-content":ge(()=>[He("div",fJ,Ke(r.value.EMPTY_ONLINE_DEPS),1)]),default:ge(()=>[Te(y,{title:r.value.TITLE_ONLINE,column:1,border:"","label-width":"auto"},{default:ge(()=>[(ke(!0),ft(_s,null,di(o.value,(v,F)=>(ke(),Ze(D,{key:F},{label:ge(()=>[He("div",dJ,Ke(v.name),1)]),default:ge(()=>[gt(" "+Ke(v.version),1)]),_:2},1024))),128))]),_:1},8,["title"])]),_:1},8,["isEmpty"])]),_:1})),d[0]||(d[0]=He("div",{class:"flex items-center justify-center text-[20px] font-bold text-gray-500"},"=",-1)),Te(g,{"body-class":"!p-0 !overflow-hidden",class:"p-[5px] overflow-hidden"},{default:ge(()=>[Te(y,{title:r.value.TITLE_FINAL,column:1,border:"","label-width":"auto"},{default:ge(()=>[(ke(!0),ft(_s,null,di(l.value,(v,F)=>(ke(),Ze(D,{key:F},{label:ge(()=>[He("div",mJ,Ke(F),1)]),default:ge(()=>[He("div",yJ,[He("div",null,[v.versions?.length?(ke(),Ze(C,{key:1,"model-value":v.selectedVersion,size:"small",class:"ml-[10px]",onChange:T=>f(F,T)},{default:ge(()=>[(ke(!0),ft(_s,null,di(v.versions,T=>(ke(),Ze(x,{key:T.version,value:T.version},{default:ge(()=>[He("span",null,Ke(T.type===r.value.SOURCE_LOCAL?r.value.LABEL_LOCAL:r.value.LABEL_ONLINE)+" "+Ke(T.version),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["model-value","onChange"])):(ke(),ft("span",DJ,Ke(v.selectedVersion),1))]),He("div",gJ,[v.type===r.value.TYPE_CONSISTENT?(ke(),Ze(b,{key:0,type:"info","disable-transitions":""},{default:ge(()=>[gt(Ke(r.value.TAG_CONSISTENT),1)]),_:1})):v.type===r.value.TYPE_CHANGE&&!v.selectedVersion?(ke(),Ze(b,{key:1,type:"danger","disable-transitions":""},{default:ge(()=>[gt(Ke(r.value.TAG_CHANGE),1)]),_:1})):v.type===r.value.TYPE_CHANGE&&v.selectedVersion?(ke(),Ze(b,{key:2,type:"success","disable-transitions":""},{default:ge(()=>[gt(Ke(r.value.TAG_CHANGE_CONFIRMED),1)]),_:1})):v.type===r.value.TYPE_ADD&&!v.selectedVersion?(ke(),Ze(b,{key:3,type:"danger","disable-transitions":""},{default:ge(()=>[gt(Ke(r.value.TAG_ADD),1)]),_:1})):v.type===r.value.TYPE_ADD&&v.selectedVersion?(ke(),Ze(b,{key:4,type:"success","disable-transitions":""},{default:ge(()=>[gt(Ke(r.value.TAG_ADD),1)]),_:1})):dr("",!0)])])]),_:2},1024))),128))]),_:1},8,["title"])]),_:1})])]),_:1})}}}),EJ={class:"flex items-center gap-[4px]"},AJ={key:0},CJ=Mt({__name:"VersionInput",props:Oh({disabled:{type:Boolean},latestVersion:{}},{modelValue:{default:()=>({major:"",minor:"",patch:""})},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=Lh(t,"modelValue"),{t:s}=Qt(),i=["major","minor","patch"],n={width:"60px"};function o(f){return`${f.major}.${f.minor}.${f.patch}`}function l(f,h){const d={...r.value,[h]:f},D=o(d);if(c(D)){Nl.warning(s("comp.versionCannotBeLessThanLatest",{version:e.latestVersion}));return}r.value=d}function c(f){return e.latestVersion?dl.compareVersions(f,e.latestVersion)===Pe.VERSION_COMPARE_LESS:!1}return(f,h)=>{const d=Bl;return ke(),ft("div",EJ,[(ke(),ft(_s,null,di(i,(D,y)=>(ke(),ft(_s,{key:D},[Te(d,{"model-value":r.value[D],style:n,min:0,size:"small",type:"number",disabled:t.disabled,onInput:g=>l(g,D)},null,8,["model-value","disabled","onInput"]),y<i.length-1?(ke(),ft("span",AJ,".")):dr("",!0)],64))),64))])}}}),bJ={class:"flex gap-2 items-center"},TJ={key:0},vJ={class:"flex items-center gap-2"},FJ={key:0},wJ={class:"text-red-500"},SJ=Mt({__name:"index",emits:["show-diff"],setup(t){const{t:e}=Qt(),r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=xr(Pe.PROVIDE_KEY_CALLBACKS),i=yr({major:"",minor:"",patch:""}),n=Ue(()=>r.selectedFolder?.path??""),o=Ue(()=>r.configStatus?.compJsonPath??""),l=Ue(()=>r.configStatus?.entryIndexPath??""),c=Ue(()=>r.configStatus?.errorMsg??""),f=Ue(()=>r.isNeedAddVersion||r.isEditCompFileChange);async function h(){const x=await hi.v1Comp.compcontrollerCheck({compPath:n.value});r.setConfigStatus(x.data)}async function d(){await hi.v1Comp.compcontrollerGeneratecompjson({compPath:n.value});const x=await hi.v1Comp.compcontrollerDir({compPath:n.value}),{tree:C,files:b}=x.data;r.setOriginalDirectory(C),r.setOriginalDirectoryList(b),await h(),Nl.success(e("common.generateSuccess"))}function D(x){const[C="1",b="0",E="0"]=x.split(".");return{major:C,minor:b,patch:E}}function y(x){const{major:C,minor:b,patch:E}=x,v=["undefined","null"];return![C,b,E].some(F=>F===""||_v.isType(F,v))}function g(x){return`${x.major}.${x.minor}.${x.patch}`}return Mr(i,async(x,C)=>{if(!y(x))return;const b=g(x),E=C?g(C):"";b!==E&&(await hi.v1Comp.compcontrollerUpdateversion({compPath:n.value,version:b}),await h(),r.setLocalCompVersion(b))},{deep:!0}),Mr(()=>r.localCompVersion,x=>{x&&(i.value=D(x))},{immediate:!0}),s.set(Pe.COMP_METHOD_KEY_CHECK_COMP_CONFIG,h),(x,C)=>{const b=qo,E=vi,v=Ji,F=Il,T=ms;return ke(),Ze(T,{class:"size-full"},{default:ge(()=>[Te(F,{"label-width":"auto"},{default:ge(()=>[Te(b,{label:me(e)("comp.entryFile")+":"},{default:ge(()=>[He("span",null,Ke(l.value),1)]),_:1},8,["label"]),Te(b,{label:me(e)("comp.configFile")+":"},{default:ge(()=>[He("div",bJ,[o.value?(ke(),ft("span",TJ,Ke(o.value),1)):(ke(),Ze(E,{key:1,size:"small",onClick:d},{default:ge(()=>[gt(Ke(me(e)("common.generate")),1)]),_:1})),c.value&&o.value?(ke(),Ze(E,{key:2,size:"small",onClick:d},{default:ge(()=>[gt(Ke(me(e)("common.regenerate")),1)]),_:1})):dr("",!0)])]),_:1},8,["label"]),Te(b,{label:me(e)("comp.version")+":"},{default:ge(()=>[He("div",vJ,[Te(CJ,{modelValue:i.value,"onUpdate:modelValue":C[0]||(C[0]=w=>i.value=w),"latest-version":me(r).prodCompVersion,disabled:!me(r).compFileIsChange},null,8,["modelValue","latest-version","disabled"]),f.value?(ke(),ft("div",FJ,[me(r).isNeedAddVersion?(ke(),Ze(v,{key:0,type:"danger","disable-transitions":!0},{default:ge(()=>[gt(Ke(me(e)("comp.fileChangedNeedVersion")),1)]),_:1})):dr("",!0),me(r).isEditCompFileChange?(ke(),Ze(E,{key:1,size:"small",class:"ml-2",onClick:C[1]||(C[1]=w=>x.$emit("show-diff"))},{default:ge(()=>[gt(Ke(me(e)("comp.viewFileChanges")),1)]),_:1})):dr("",!0)])):me(r).isVersionChangeButFileSame?(ke(),Ze(v,{key:1,type:"danger","disable-transitions":!0},{default:ge(()=>[gt(Ke(me(e)("comp.versionChangedButFileSame")),1)]),_:1})):dr("",!0)])]),_:1},8,["label"]),c.value?(ke(),Ze(b,{key:0,label:me(e)("comp.errorMsg")+":"},{default:ge(()=>[He("span",wJ,Ke(c.value),1)]),_:1},8,["label"])):dr("",!0)]),_:1})]),_:1})}}}),PJ=Mt({__name:"UpgradeLog",setup(t){const{t:e}=Qt(),r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=xr(Pe.PROVIDE_KEY_CALLBACKS),i=yr(200),n=xi("form"),o=Ue(()=>({upgradeLog:[{required:!0,message:e("comp.pleaseInputUpgradeLog"),trigger:"blur"},{min:3,max:i.value,message:e("comp.lengthBetween",{min:3,max:i.value}),trigger:"blur"}]}));function l(f){r.setUpgradeInfo({...r.upgradeInfo,upgradeLog:f})}async function c(){await n.value?.validate()}return s.set(Pe.COMP_METHOD_KEY_CHECK_UPGRADE_LOG_FORM,c),(f,h)=>{const d=Bl,D=qo,y=ms;return ke(),Ze(y,{class:"size-full"},{default:ge(()=>[Te(me(Il),{ref:"form","label-width":"auto",model:me(r).upgradeInfo,rules:o.value},{default:ge(()=>[Te(D,{label:me(e)("comp.upgradeLog")+":",prop:"upgradeLog"},{default:ge(()=>[Te(d,{maxlength:i.value,"show-word-limit":"","model-value":me(r).upgradeInfo.upgradeLog,placeholder:me(e)("comp.pleaseInputUpgradeLog"),rows:4,type:"textarea",onInput:l},null,8,["maxlength","model-value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})}}}),kJ={class:"size-full"},IJ=["src"],BJ=Mt({__name:"index",props:{compType:{},iuid:{}},setup(t){const e=t,r=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),s=xr(Pe.PROVIDE_KEY_CALLBACKS),{instanceUid:i,messageListener:n,sendMessageToTargetIframe:o}=Zv(),l=Xv(!1,window.__GLOBAL_CONFIG__.subPort),{createIframeParams:c}=Yv(),{addListener:f}=n(),h=Lv(),D=G2().value,{locale:y}=Qt(),g=(()=>{const T={topOrigin:window.location.origin,instanceUid:[i.value,e.iuid].filter(Boolean).join(",")??"",isSfc:!0},w={params:c(T),isDark:D.toString()},P=new URLSearchParams(w).toString();return`${l}/${Pe.WEBSITE_PATH_ITEM}/${e.compType}?${P}`})(),x=xi("iframe"),C=Ue(()=>r.selectedFolder?.path),{IFRAME_POST_MESSAGE_TYPE:b}=Qv;async function E(){const w=Gv(r.compDep,h.deps).map(N=>N.name),P=await hi.v1Module.modulecontrollerPrebuild({deps:w}),{entryNameToFile:k={}}=P.data;return k}function v(T,w,P,k){f(T,ty(w,async()=>{const N=x.value?.contentWindow;if(N){const _=k?await k(w.value):w.value;o(N,P,_,l)}}).triggerCallback)}v(b.COMP_PREVIEW_LIST_GET,Ue(()=>r.previewList),b.COMP_PREVIEW_LIST_SET),v(b.SELECTED_FOLDER_GET,Ue(()=>r.selectedFolder),b.SELECTED_FOLDER_SET),v(b.SHOW_REFRESH_BTN_GET,Ue(()=>r.isShowRefreshBtn),b.SHOW_REFRESH_BTN_SET),v(b.IS_ONLINE_UPDATE_GET,Ue(()=>r.isOnlineUpdate),b.IS_ONLINE_UPDATE_SET),v(b.CAROUSEL_INDEX_GET,Ue(()=>r.compCarouselIndex),b.CAROUSEL_INDEX_SET),v(b.IS_ADD_GET,Ue(()=>r.isAddComp),b.IS_ADD_SET),v(b.BG_COLOR_GET,Ue(()=>r.compBgColor),b.BG_COLOR_SET),v(b.COMP_RENDER_INFO_GET,Ue(()=>r.compDep),b.COMP_RENDER_INFO_SET,async T=>({entryNameToFile:await E(),compDep:T,signedUrls:r.signedUrls})),f(b.COMP_EDIT_TAB_TYPE_SET,T=>{T._id&&r.updatePreviewCompItemById(T._id,T)}),f(b.ACTION_REFRESH,T=>{if(T.activeTab===Pe.COMP_EDIT_TAB_TYPE_MINI&&T.miniPath?.length){const w=Po.getPreviewUrl(C?.value||"",T.miniPath),P=w?`${Pe.COMP_PREVIEW_PREFIX_LOCAL}/${w}?v=${fl()}`:"";r.updatePreviewCompItemById(T._id,{...T,miniEntryUrl:P})}if(T.activeTab===Pe.COMP_EDIT_TAB_TYPE_FULL&&T.fullPath?.length){const w=Po.getPreviewUrl(C?.value||"",T.fullPath||[]),P=w?`${Pe.COMP_PREVIEW_PREFIX_LOCAL}/${w}?v=${fl()}`:"";r.updatePreviewCompItemById(T._id,{...T,fullEntryUrl:P})}}),f(b.BG_COLOR_SET,T=>{r.setCompBgColor(T)}),f(zp.LOCALE_GET,()=>{const{stopWatch:T,triggerCallback:w}=ty(Ue(()=>y.value),()=>{const P=x.value?.contentWindow;P?o(P,zp.LOCALE_SET,y.value,l):T()});w()});const F=yr(!1);return f(zp.COMP_RENDER_ERROR_SET,({hasError:T,hasWarn:w})=>{F.value=T||w}),Mr(F,T=>{T?s.set(Pe.COMP_METHOD_KEY_GET_COMP_ERROR,()=>!0):s.delete(Pe.COMP_METHOD_KEY_GET_COMP_ERROR)},{immediate:!0}),(T,w)=>(ke(),ft("div",kJ,[He("iframe",{ref:"iframe",class:"size-full",src:me(g),frameborder:"0"},null,8,IJ)]))}}),J2=Mt({__name:"MarkdownPreview",props:{result:{}},setup(t){const{t:e}=Qt(),r=qv(),{markdownSrc:s}=tg();function i(){const{href:n}=r.resolve({name:"mdPreview",query:{markdownSrc:s.value}});window.open(n,"_blank")}return(n,o)=>{const l=$h("Icon"),c=vi,f=ms;return ke(),Ze(f,{"wrap-class":"md-container",class:"relative"},{default:ge(()=>[me(s)?(ke(),Ze(c,{key:0,type:"primary",circle:"",title:me(e)("common.newPage"),class:"absolute top-0 right-3 z-100",onClick:i},{default:ge(()=>[Te(l,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])):dr("",!0),Te(rg,{result:t.result,src:me(s),"show-toc":!0,scrollContainer:".md-container","is-debug":!0},null,8,["result","src"])]),_:1})}}}),NJ=t=>{const{locale:e}=Qt();return{src:Ue(()=>`/${Pe.WEBSITE_PATH_MAIN}/md/${t.replace(".md",`.${e.value}.md`)}`)}},_J={class:"h-[70vh] overflow-hidden flex flex-col"},LJ={key:0,class:"flex justify-end"},OJ={class:"text-lg"},$J={class:"text-lg"},MJ=Mt({__name:"index",props:{isAction:{type:Boolean,default:!0}},setup(t,{expose:e}){const{t:r}=Qt(),s=yr(!1),{src:i}=NJ("PUT_TREATY.md");let n;function o(f){s.value=!0,n=f}function l(){s.value=!1}function c(f){n?.(f),l()}return e({open:o,close:l}),(f,h)=>{const d=ms,D=vi;return ke(),Ze(me(sg),{modelValue:s.value,"onUpdate:modelValue":h[2]||(h[2]=y=>s.value=y),title:"",width:"55%","show-close":"",top:"10vh"},{default:ge(()=>[He("div",_J,[Te(d,{class:"flex-1 flex justify-center"},{default:ge(()=>[Te(rg,{src:me(i)},null,8,["src"])]),_:1}),t.isAction?(ke(),ft("div",LJ,[Te(D,{onClick:h[0]||(h[0]=y=>c(!1))},{default:ge(()=>[He("span",OJ,Ke(me(r)("team.reject")),1)]),_:1}),Te(D,{type:"primary",onClick:h[1]||(h[1]=y=>c(!0))},{default:ge(()=>[He("span",$J,Ke(me(r)("team.agree")),1)]),_:1})])):dr("",!0)])]),_:1},8,["modelValue"])}}}),RJ={class:"size-full"},jJ={class:"flex justify-between mt-auto items-center p-1"},UJ={class:"flex gap-2"},qJ={class:"text-xs"},VJ={class:"flex-1 overflow-hidden p-2"},zJ={class:"flex justify-center p-1"},HJ=Mt({__name:"index",emits:["confirmUpload","reload"],setup(t,{emit:e}){const r=e,{t:s}=Qt(),i=Wv(),n=xr(Pe.PROVIDE_KEY_COMP_EDIT_STORE),o=Jv(new Map);Vv(Pe.PROVIDE_KEY_CALLBACKS,o);const l=xi("diffDialog"),c=xi("dialogPutTreaty"),f=yr([]),h=Ue(()=>n.selectedFolder?.path),d=Ue(()=>({version:s("comp.remoteVersionPrefix")+n.prodCompVersion})),D=Ue(()=>({version:s("comp.localVersionPrefix")+n.localCompVersion})),{markdownSrc:y}=tg(),g=eF(y),x=Ue(()=>[{label:s("comp.previewConfig"),value:Pe.TAB_TYPE_PREVIEW,isDot:n.previewIsError,component:aJ,visible:()=>!0,validate:()=>n.previewIsError?{valid:!1,callbackKey:Pe.COMP_METHOD_KEY_CHECK_PREVIEW_LIST_FORM}:{valid:!0}},{label:s("comp.baseInfo"),value:Pe.TAB_TYPE_EXTRA,isDot:n.extraIsError,component:oJ,visible:()=>!0,validate:()=>n.extraIsError?{valid:!1,callbackKey:Pe.COMP_METHOD_KEY_CHECK_EXTRA_INFO_FORM}:{valid:!0}},{label:s("comp.checkConfig"),value:Pe.TAB_TYPE_CONFIG,isDot:n.configIsError,component:SJ,visible:()=>n.isOnlineUpdate||n.isAddComp,validate:()=>n.configIsError?{valid:!1,callbackKey:Pe.COMP_METHOD_KEY_CHECK_COMP_CONFIG}:{valid:!0}},{label:s("comp.dep"),value:Pe.TAB_TYPE_DEPS,isDot:n.compDepIsError,component:xJ,visible:()=>n.isOnlineUpdate||n.isAddComp,validate:()=>n.compDepIsError?{valid:!1}:{valid:!0}},{label:s("comp.upgradeLog"),value:Pe.TAB_TYPE_UPGRADE_LOG,isDot:n.upgradeLogIsError,component:PJ,visible:()=>n.isShowUpgradeLogTab,validate:()=>n.upgradeLogIsError?{valid:!1,callbackKey:Pe.COMP_METHOD_KEY_CHECK_UPGRADE_LOG_FORM}:{valid:!0}},{label:"README.md",value:Pe.TAB_TYPE_README,isDot:n.markdownIsError,component:J2,visible:()=>!n.isOfflineUpdate,validate:()=>n.markdownIsError?{valid:!1}:{valid:!0}},{label:s("comp.dir"),value:Pe.TAB_TYPE_DIR,component:lJ,visible:()=>n.isOnlineUpdate||n.isAddComp}]),C=Ue(()=>x.value.filter($=>$.visible?.()??!0)),b=Ue(()=>C.value.find(z=>z.value===n.activeName)?.component||{render:()=>null}),E=Ue(()=>b.value===J2?{result:g.result.value}:{});function v(){c.value?.open()}function F($,z){z($),n.setCompBgColor($??""),window?.umami?.track(Vp.EDIT_BG_COLOR_CHANGE,{color:$})}function T($){n.setActiveName($)}async function w(){for(const $ of o.keys())if($.startsWith(Pe.COMP_METHOD_KEY_GET_COMP_ERROR)&&o.get($)?.())return!0;return!1}async function P($){if($.start(),await w()&&(n.isOnlineUpdate||n.isAddComp)){Nl.error(s("message.error.pleaseFixCompileError")),$.end();return}for(const z of C.value){if(!z.validate)continue;const re=z.validate();if(!re.valid){n.setActiveName(""),await Jn(),n.setActiveName(z.value),re.callbackKey&&o.get(re.callbackKey)?.(),$.end();return}}r("confirmUpload",{end:$.end})}async function k(){const $=await hi.v1Comp.compcontrollerCheck({compPath:h.value});n.setConfigStatus($.data)}async function N(){const z=(n.originalDirectory.children||[]).find(X=>X.name===Pe.COMP_CONFIG_FILENAME);if(!z)return;const re=await hi.v1Comp.compcontrollerFile({filePath:z.path}),{content:te}=re.data,ue=JSON.parse(te);n.setLocalCompVersion(ue.version)}async function _(){await M(),f.value=I(),await Jn(),l.value?.open(),window?.umami?.track(Vp.EDIT_VIEW_DIFF,{compPath:h.value})}async function L(){await M(),f.value=I()}function I(){const $=n.localDirectory?.children??[],z=n.onlineDirectory?.children??[],re=os.mergeAndMarkTree($,z),ue=Z2(n.editCompId)().latestVersionToFileAccessPath;function X(Q){for(const W of Q){if(W.type==="file"){W.path=ko.replaceBackslashWithSlash(W.path);const ie={type:"old",accessPath:ue.find(G=>G.path===W.path)?.signedUrl??""},ae=`${h.value.replace(Pe.FILE_MANAGER_DIRNAME,"")}${W.path}`,Z={type:"new",accessPath:`${Pe.COMP_PREVIEW_PREFIX_LOCAL}/${ae}`};W.content=[ie,Z]}W.children?.length&&X(W.children)}}return X(re),re}async function M(){const $=await hi.v1Comp.compcontrollerDir({compPath:h.value}),{tree:z,files:re}=$.data;n.setOriginalDirectory(z),n.setOriginalDirectoryList(re)}function K(){r("reload")}return Mr(()=>n.originalDirectory,async()=>{await N()},{immediate:!0,deep:!0}),Mr(()=>h.value,async($,z)=>{$===z||!$||(await M(),await k())},{immediate:!0}),Mr(g.result,$=>{if(!$)return;const{headings:z=[]}=$;if(z.length){const re=z.every(te=>{const ue=te.tokens.map(Q=>Q?.text||"").join(""),{valid:X}=ko.validateHash(ue);return X});n.setMarkdownValid(re)}}),($,z)=>{const re=$h("Icon"),te=Iv,ue=Bv,X=kl,Q=Mc,W=vi,Y=X2;return ke(),ft("div",RJ,[Te(Y,{class:"size-full",layout:"vertical"},{default:ge(()=>[Te(Q,{class:"size-full",size:"50%",min:300},{default:ge(()=>[Te(X,{"body-class":"!p-0",class:"size-full"},{default:ge(()=>[Te(me(tF),{class:"size-full flex flex-col",bg:me(n).compBgColor},{default:ge(({bg:ie,updateColor:de})=>[Te(BJ,{class:"flex-1",compType:me(Pe).IFRAME_ROUTES.ITEM.EDIT_PANEL,iuid:me(i)?.uid},null,8,["compType","iuid"]),He("div",jJ,[He("div",UJ,[me(n).isOnlineUpdate||me(n).isAddComp?(ke(),Ze(te,{key:0,title:me(s)("comp.reload"),class:"ml-2",type:"primary",underline:"always",onClick:K},{default:ge(()=>[Te(re,{icon:"material-symbols:frame-reload",height:me(Pe).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1},8,["title"])):dr("",!0),Te(te,{title:me(s)("comp.uploadProtocol"),type:"primary",underline:"always",onClick:z[0]||(z[0]=ae=>v())},{default:ge(()=>[Te(re,{icon:"material-symbols:docs",height:me(Pe).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1},8,["title"])]),He("div",qJ,[He("span",null,Ke(me(s)("comp.bgPanel"))+":",1),Te(ue,{modelValue:ie,clearable:"",onChange:ae=>F(ae,de),onActiveChange:ae=>F(ae,de)},null,8,["modelValue","onChange","onActiveChange"])])])]),_:1},8,["bg"])]),_:1})]),_:1}),Te(Q,{class:"size-full",collapsible:""},{default:ge(()=>[Te(X,{"body-class":"!p-0 flex flex-col",class:"size-full"},{default:ge(()=>[Te(X,{"body-class":"!p-0"},{default:ge(()=>[Te(me(rF),{"model-value":me(n).activeName,options:C.value,onChange:T},{default:ge(({item:ie})=>[Te(me(pF),{"is-dot":ie.isDot},{default:ge(()=>[gt(Ke(ie.label),1)]),_:2},1032,["is-dot"])]),_:1},8,["model-value","options"])]),_:1}),He("div",VJ,[Te(me(Ov),null,{default:ge(()=>[(ke(),Ze(zv,null,[(ke(),Ze(Hv(b.value),Y2(E.value,{onShowDiff:_}),null,16))],1024))]),_:1})]),He("div",zJ,[Te(me(sF),null,{default:ge(({instance:ie,loading:de})=>[Te(W,{id:me(Vp).UPLOAD_CONFIRM,loading:de,type:"primary",class:"w-[200px]",round:"",onClick:ae=>P(ie)},{default:ge(()=>[gt(Ke(me(n).compSubmitBtnText),1)]),_:1},8,["id","loading","onClick"])]),_:1})])]),_:1})]),_:1})]),_:1}),Te(MJ,{ref:"dialogPutTreaty",isAction:!1},null,512),f.value.length?(ke(),Ze(me(ZW),{key:0,ref:"diffDialog",resultTree:f.value,oldMeta:d.value,newMeta:D.value,onRefresh:L},null,8,["resultTree","oldMeta","newMeta"])):dr("",!0)])}}}),vG=an(HJ,[["__scopeId","data-v-3db4fd48"]]),FG=(t,e)=>{const{t:r}=Qt();return Kv(`compEdit_${t}`,{state:()=>({scopeId:t,extraInfo:{},upgradeInfo:{},previewList:[],compDep:[],onlineCompDep:[],affirmCompDep:{},activeName:"preview",compCarouselIndex:0,selectedFolder:{},originalDirectory:{},originalDirectoryList:[],compDialogType:e??"",editCompId:"",compBgColor:"",configStatus:{},compDetail:{},localCompHash:"",remoteCompHash:"",localCompVersion:"",loading:!1,compUpdateType:"",signedUrls:[],markdownValid:!0}),getters:{isInitState:s=>s.compDialogType.trim()==="",isEditComp:s=>s.compDialogType===Pe.DIALOG_TYPE_EDIT,isAddComp:s=>s.compDialogType===Pe.DIALOG_TYPE_ADD,isOnlineUpdate:s=>s.compUpdateType===Pe.COMP_UPDATE_TYPE_ONLINE,isOfflineUpdate:s=>s.compUpdateType===Pe.COMP_UPDATE_TYPE_OFFLINE,isShowRefreshBtn(){return this.isOnlineUpdate||this.isAddComp},prodCompVersion:s=>s.compDetail?.version||"",versionCompareResult(){return!this.localCompVersion||!this.prodCompVersion?Pe.VERSION_COMPARE_GREATER:dl.compareVersions(this.localCompVersion,this.prodCompVersion)},isEditCompFileChange(){return this.compFileIsChange&&this.isEditComp},isNeedAddVersion(){return this.versionCompareResult!==1&&this.isEditCompFileChange},compSubmitBtnText(){return this.isEditComp?r("comp.update"):this.isAddComp?r("comp.upload"):""},previewIsError(s){return this.isInitState||this.loading?!1:!s.previewList[0]?.miniPath?.length},configIsException:s=>{const{errorMsg:i}=s.configStatus;return!!i},configIsError(){return this.isInitState||this.loading||this.isOfflineUpdate?!1:!!(this.isNeedAddVersion||this.configIsException||this.isVersionChangeButFileSame)},extraIsError(s){if(this.isInitState||this.loading)return!1;const i=s.extraInfo.name?.trim()||"";return(s.extraInfo?.description||"").length<3||!ko.validateCompName(i)},compDepIsError(s){if(!s.onlineCompDep.length||this.isOfflineUpdate)return!1;let i=!1;return s.compDep.forEach(n=>{const o=s.onlineCompDep.find(f=>f.name===n.name),l=s.affirmCompDep[n.name]??s.affirmCompDep[n?.parent?.name??""];!(o?.version&&dl.isVersionEqual(n?.version,o.version))&&!l&&(i=!0)}),i},compFileIsChange:s=>s.localCompHash!==s.remoteCompHash,isVersionChangeButFileSame(){return this.versionCompareResult!==Pe.VERSION_COMPARE_SAME&&!this.compFileIsChange&&this.isEditComp},isShowUpgradeLogTab(s){return this.isInitState||this.loading?!1:!!(this.compFileIsChange&&s.editCompId)},upgradeLogIsError(s){if(this.isOfflineUpdate)return!1;const i=s.upgradeInfo?.upgradeLog||"",n=this.versionCompareResult===Pe.VERSION_COMPARE_GREATER;return(i.length||0)<3&&(this.compFileIsChange||n)&&this.isEditComp},markdownIsError(s){return this.hasMdFile?!s.markdownValid:!1},affirmCompDepVersion:s=>s.compDep.map(i=>{const n=s.affirmCompDep[i.name],o=s.affirmCompDep[i?.parent?.name??""],l=n??o??i.version,c=i.parent?{parent:{...i.parent,version:l}}:{};return{...i,version:l,...c}}),localDirectory:s=>{const{srcPath:i,sep:n}=window.__GLOBAL_CONFIG__,o=s.selectedFolder.path;if(!o||Object.keys(s.originalDirectory).length===0)return null;const l=o.replace(Pe.FILE_MANAGER_DIRNAME,"").replaceAll("/",n);return Rc.mapTree(s.originalDirectory,f=>(f.path=f.path.replace(`${i}${n}${l}`,""),f))},onlineDirectory:s=>s.compDetail.files?.length?Rc.convertFlatToTree(s.compDetail.files,{pathSeparator:"\\",createNode:(i,n,o)=>({name:n,path:o.startsWith("\\")?o:"\\"+o,type:i,children:[]})}):null,directory(){return this.localDirectory?this.localDirectory:this.onlineDirectory},hasMdFile(){return this.directory?.children?.find(s=>s.name===Pe.COMP_README_FILENAME)!==void 0}},actions:{setMarkdownValid(s){this.$patch({markdownValid:s})},setSignedUrls(s){this.$patch({signedUrls:s})},setCompUpdateType(s){this.$patch({compUpdateType:s})},setLocalCompVersion(s){this.$patch({localCompVersion:s})},setOriginalDirectory(s){this.$patch({originalDirectory:s})},setOriginalDirectoryList(s){this.$patch({originalDirectoryList:s})},setLoading(s){this.$patch({loading:s})},setLocalCompHash(s){this.$patch({localCompHash:s})},setRemoteCompHash(s){this.$patch({remoteCompHash:s})},setCompDetail(s){this.$patch({compDetail:s})},setUpgradeInfo(s){this.$patch({upgradeInfo:s})},setConfigStatus(s){this.$patch({configStatus:s})},setExtraInfo(s){this.$patch({extraInfo:s})},addPreviewCompItem(s){this.$patch(i=>{i.previewList.push(s)})},delPreviewCompItemById(s){this.$patch(i=>{i.previewList=i.previewList.filter(n=>n._id!==s)})},setPreviewCompList(s){this.$patch({previewList:s})},updatePreviewCompItemById(s,i){this.$patch(n=>{const o=n.previewList.findIndex(l=>l._id===s);o!==-1&&(n.previewList[o]=i)})},initPreviewCompList(){this.$patch(s=>{s.compDialogType===Pe.DIALOG_TYPE_ADD&&(s.previewList=[{_id:fl(),miniPath:[],fullPath:[],activeTab:Pe.COMP_EDIT_TAB_TYPE_MINI,miniEntryUrl:"",fullEntryUrl:""}])})},setCompDep(s){this.$patch({compDep:s})},setOnlineCompDep(s){this.$patch({onlineCompDep:s})},setAffirmCompDep(s){this.$patch({affirmCompDep:s})},setActiveName(s){this.$patch({activeName:s})},setCompCarouselIndex(s){this.$patch({compCarouselIndex:s})},setSelectedFolder(s){this.$patch({selectedFolder:s})},setEditCompId(s){this.$patch({editCompId:s})},setCompBgColor(s){this.$patch({compBgColor:s})},getCompSubmitParams(){if(this.extraIsError)throw new Error("组件信息不完整,请检查组件名称和描述");if(this.previewIsError)throw new Error("预览配置不完整,请检查预览配置");if(this.configIsError)throw new Error("配置检查未通过,请检查配置");const s=this.selectedFolder.path,{name:i,description:n}=this.extraInfo,o=this.previewList.map(f=>({miniPath:f.miniPath,fullPath:f.fullPath,desc:f?.desc||""})),l=this.upgradeInfo?.upgradeLog??"",c=this.isEditComp?{upgradeDesc:l}:{};return{compPath:s,dep:this.affirmCompDepVersion,name:i,desc:n,previewConfigs:o,bgColor:this.compBgColor,...c}}}})};export{vG as C,MJ as _,FG as c,NJ as u};