comp-hub 0.25.17 → 0.25.18
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.
- package/dist/website/container/assets/{index-YhvDyci9.css → index-DZmjDb-3.css} +1 -1
- package/dist/website/container/index.html +2 -2
- package/dist/website/item/assets/@chenglou-BKD48OEU.js +4 -0
- package/dist/website/item/assets/@ctrl-C4Rzlq_k.js +1 -0
- package/dist/website/item/assets/@element-plus-5HYzMPHH.js +1 -0
- package/dist/website/item/assets/@floating-ui-BOzNIQbj.js +1 -0
- package/dist/website/item/assets/@iconify-BPgeTBo_.js +1 -0
- package/dist/website/item/assets/@iconify-vue-r3R3CCwl.js +1 -0
- package/dist/website/item/assets/@intlify-Dtb6NmBn.js +3 -0
- package/dist/website/item/assets/@profoundlogic-Dbp5Yy6B.js +5 -0
- package/dist/website/item/assets/@sxzz-CUumdR8o.js +1 -0
- package/dist/website/item/assets/@vue-C9QaczuC.js +1 -0
- package/dist/website/item/assets/@vueuse-C7-4JdfM.js +1 -0
- package/dist/website/item/assets/_plugin-vue_export-helper-BvSI8h28.js +12 -0
- package/dist/website/item/assets/async-validator-Cp9QasH9.js +12 -0
- package/dist/website/item/assets/axios-B8_nURbH.js +9 -0
- package/dist/website/item/assets/birpc-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/css-tree-BLHriVLA.js +12 -0
- package/dist/website/item/assets/dayjs-Z3PInbbQ.js +1 -0
- package/dist/website/item/assets/diff-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/diff2html-DT_q3g7v.js +101 -0
- package/dist/website/item/assets/{index-C3Gu6wLz.css → element-plus-Cfuf6lH-.css} +1 -1
- package/dist/website/item/assets/element-plus-DBucBpWn.js +39 -0
- package/dist/website/item/assets/highlight.js-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/hookable-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/idb-Dob3nYDb.js +1 -0
- package/dist/website/item/assets/index-6jb9FmNT.js +1 -0
- package/dist/website/item/assets/index-BGH8m-F2.js +1 -0
- package/dist/website/item/assets/index-BI_-2dUB.js +1 -0
- package/dist/website/item/assets/index-BpT42u6b.js +1 -0
- package/dist/website/item/assets/index-BqfcJOru.js +1 -0
- package/dist/website/item/assets/index-BwZfV1A2.js +1 -0
- package/dist/website/item/assets/index-CRGAlkC4.js +1 -0
- package/dist/website/item/assets/index-CUQTn5cW.js +2 -0
- package/dist/website/item/assets/index-DMv3RrWi.js +1 -0
- package/dist/website/item/assets/index-D__3WVgB.js +1 -0
- package/dist/website/item/assets/index-DeU4xv9o.js +1 -0
- package/dist/website/item/assets/index-DjpSekiX.js +1 -0
- package/dist/website/item/assets/index-ZnytBXEa.css +1 -0
- package/dist/website/item/assets/index-jliYxAXa.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BP6wylOE.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BXDFpHny.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BpSg0Jae.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-DfVSdoBY.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-DjzNSY_4.js +1 -0
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-Na9slT-l.js +1 -0
- package/dist/website/item/assets/lodash-es-3Olcxijv.js +1 -0
- package/dist/website/item/assets/lodash-unified-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/lz-string--7IMPK6S.js +1 -0
- package/dist/website/item/assets/memoize-one-BdPwpGay.js +1 -0
- package/dist/website/item/assets/normalize-wheel-es-BikNlmlf.js +1 -0
- package/dist/website/item/assets/perfect-debounce-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/pinia-Bzt0Q3uQ.js +1 -0
- package/dist/website/item/assets/prettier-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/source-map-js-B_zWzY07.js +1 -0
- package/dist/website/item/assets/useCompAttrs-C9FX019z.js +1 -0
- package/dist/website/item/assets/useCompAttrsLocal-ThVku9Cv.js +1 -0
- package/dist/website/item/assets/vue-i18n-DuHeSxKy.js +1 -0
- package/dist/website/item/assets/vue-l0sNRNKZ.js +1 -0
- package/dist/website/item/assets/vue-router-DPdvYShe.js +1 -0
- package/dist/website/item/index.html +21 -2
- package/dist/website/main/assets/@chenglou-BKD48OEU.js +4 -0
- package/dist/website/main/assets/@ctrl-C4Rzlq_k.js +1 -0
- package/dist/website/main/assets/@element-plus-MEP8kzQo.js +1 -0
- package/dist/website/main/assets/@floating-ui-BOzNIQbj.js +1 -0
- package/dist/website/main/assets/@form-create-feqGS1Jj.js +7 -0
- package/dist/website/main/assets/@iconify-C373lf0G.js +1 -0
- package/dist/website/main/assets/@iconify-vue-CB77QM-F.css +1 -0
- package/dist/website/main/assets/@iconify-vue-sb5-HV-8.js +1 -0
- package/dist/website/main/assets/@intlify-Dtb6NmBn.js +3 -0
- package/dist/website/main/assets/@nanostores-cuv3rP3V.js +1 -0
- package/dist/website/main/assets/@profoundlogic-Dbp5Yy6B.js +5 -0
- package/dist/website/main/assets/@socket.io-Dkula2eQ.js +1 -0
- package/dist/website/main/assets/@sxzz-CUumdR8o.js +1 -0
- package/dist/website/main/assets/@tanstack-B1C-iDkv.js +1 -0
- package/dist/website/main/assets/@transloadit-C1Ht0DUJ.js +1 -0
- package/dist/website/main/assets/@uppy-CVofWm7v.js +6 -0
- package/dist/website/main/assets/@viselect-CfuubPTw.js +1 -0
- package/dist/website/main/assets/@vue-fhDHgfUd.js +1 -0
- package/dist/website/main/assets/@vueuse-BzQM40cp.js +1 -0
- package/dist/website/main/assets/{index-Bn5vi5XZ.css → @xterm-DFuMZ0ql.css} +1 -1
- package/dist/website/main/assets/@xterm-DUvcnV0i.js +9 -0
- package/dist/website/main/assets/async-validator-Cp9QasH9.js +12 -0
- package/dist/website/main/assets/axios-CGPwGRlm.js +9 -0
- package/dist/website/main/assets/birpc-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/charenc-DuOFFKym.js +1 -0
- package/dist/website/main/assets/crypt-C-Yx0DM0.js +1 -0
- package/dist/website/main/assets/css-tree-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/dayjs-CODj3Ey3.js +1 -0
- package/dist/website/main/assets/diff-Czv1d0yF.js +13 -0
- package/dist/website/main/assets/diff2html-B2pszkCz.js +107 -0
- package/dist/website/main/assets/diff2html-BgE3edmZ.css +1 -0
- package/dist/website/main/assets/disable-devtool-D3c1TvAN.js +2 -0
- package/dist/website/main/assets/eastasianwidth-BD_cvthz.js +1 -0
- package/dist/website/main/assets/element-plus-BhtJKS0K.js +39 -0
- package/dist/website/main/assets/element-plus-CGVDl28_.css +1 -0
- package/dist/website/main/assets/engine.io-client-DI6V2dVR.js +1 -0
- package/dist/website/main/assets/engine.io-parser-DPmA-eyr.js +1 -0
- package/dist/website/main/assets/highlight-ZgkIHsf0.css +1 -0
- package/dist/website/main/assets/highlight.js-Bwl2mRDt.js +3 -0
- package/dist/website/main/assets/hookable-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/idb-Dob3nYDb.js +1 -0
- package/dist/website/main/assets/index-4HcRtHFq.js +1 -0
- package/dist/website/main/assets/index-B5Bwrnd-.js +5 -0
- package/dist/website/main/assets/index-BDXZ4YLt.js +1 -0
- package/dist/website/main/assets/index-BQWQEa7O.css +1 -0
- package/dist/website/main/assets/index-B_LYOd1t.js +1 -0
- package/dist/website/main/assets/index-Bb2JsGT0.js +1 -0
- package/dist/website/main/assets/index-BhuSlCh5.js +1 -0
- package/dist/website/main/assets/index-BoRu8JTf.js +1 -0
- package/dist/website/main/assets/index-BspcDgbz.js +1 -0
- package/dist/website/main/assets/index-C3llr0fI.js +1 -0
- package/dist/website/main/assets/index-CUFPwy3j.js +1 -0
- package/dist/website/main/assets/index-CZOyLdFS.js +1 -0
- package/dist/website/main/assets/index-Cc1ww5-S.css +1 -0
- package/dist/website/main/assets/index-CeIHQ-n9.js +2 -0
- package/dist/website/main/assets/index-CeKI74UL.css +1 -0
- package/dist/website/main/assets/index-Ck53ravL.js +1 -0
- package/dist/website/main/assets/index-CvX4ROQv.js +1 -0
- package/dist/website/main/assets/index-Cy4Bopc2.js +1 -0
- package/dist/website/main/assets/index-D7gG_u1W.css +1 -0
- package/dist/website/main/assets/index-DPOCYlI9.js +1 -0
- package/dist/website/main/assets/index-DULniEhb.js +1 -0
- package/dist/website/main/assets/index-DYDRL9IM.js +1 -0
- package/dist/website/main/assets/index-DYr8op9I.js +2 -0
- package/dist/website/main/assets/index-DYzYK94h.js +1 -0
- package/dist/website/main/assets/index-DuAc5XJp.js +1 -0
- package/dist/website/main/assets/index-Dy7LCL85.js +1 -0
- package/dist/website/main/assets/index-Dztu-Acq.js +1 -0
- package/dist/website/main/assets/index-Pi6tlbT4.js +4 -0
- package/dist/website/main/assets/index-aKfjhWt0.js +1 -0
- package/dist/website/main/assets/index-bJcpxaVy.js +1 -0
- package/dist/website/main/assets/index-kfXJiyp1.js +1 -0
- package/dist/website/main/assets/index-lBMHAV8o.js +1 -0
- package/dist/website/main/assets/index-qQdfohcs.js +1 -0
- package/dist/website/main/assets/index-rbkKq4oE.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C8gdKJNc.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CCmKpzaE.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CgWidmAh.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CoufeP0j.js +2 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Cpe0QxkJ.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CqPOOcKs.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-js27NZ7Q.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DPWsMIUB.js +1 -0
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-MdS0xY-J.js +7 -0
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-y99hKbpl.js +1 -0
- package/dist/website/main/assets/is-buffer-BmA-AeVY.js +1 -0
- package/dist/website/main/assets/js-cookie-C2b7Ongr.js +1 -0
- package/dist/website/main/assets/lodash-DSEObR3Z.js +1 -0
- package/dist/website/main/assets/lodash-es-3Dei55BW.js +1 -0
- package/dist/website/main/assets/lodash-unified-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/lz-string-DrDDIr3t.js +1 -0
- package/dist/website/main/assets/marked-Ds7eXWqI.js +59 -0
- package/dist/website/main/assets/md5-BFcmaCA5.js +1 -0
- package/dist/website/main/assets/memoize-one-BdPwpGay.js +1 -0
- package/dist/website/main/assets/mime-match-DPWGxner.js +1 -0
- package/dist/website/main/assets/mitt-BN3yQH3p.js +1 -0
- package/dist/website/main/assets/namespace-emitter-D_6Athvt.js +1 -0
- package/dist/website/main/assets/nanoid-DKwX7yNB.js +1 -0
- package/dist/website/main/assets/nanostores-Bxb5zCO9.js +1 -0
- package/dist/website/main/assets/normalize-wheel-es-BikNlmlf.js +1 -0
- package/dist/website/main/assets/nprogress-BgDCIyLK.css +1 -0
- package/dist/website/main/assets/nprogress-DvYEeNZi.js +1 -0
- package/dist/website/main/assets/overlayscrollbars-B4ARb2Jg.js +1 -0
- package/dist/website/main/assets/path-browserify-VLxTPTS7.js +1 -0
- package/dist/website/main/assets/perfect-debounce-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/pinia-Dbinmd9o.js +1 -0
- package/dist/website/main/assets/preact-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/prettier-CXANtD9v.js +184 -0
- package/dist/website/main/assets/socket.io-client-6WpCnOvu.js +1 -0
- package/dist/website/main/assets/socket.io-parser-dKdiPQ_0.js +1 -0
- package/dist/website/main/assets/source-map-js-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/useCacheOssStore-B0MOdXBT.js +1 -0
- package/dist/website/main/assets/useCompEditStore-BPtseuS3.js +1 -0
- package/dist/website/main/assets/useCompEditStore-D1y6qk1p.css +1 -0
- package/dist/website/main/assets/useCompMetaLocalStore-CTrw6UOk.js +1 -0
- package/dist/website/main/assets/useCompMetaStore-CZbYI0xK.js +1 -0
- package/dist/website/main/assets/useKeyword-C1kuAWZi.js +1 -0
- package/dist/website/main/assets/useTeamHeaders-3RiOUcY_.js +1 -0
- package/dist/website/main/assets/useVscodeOpen-8UEdd_uq.js +1 -0
- package/dist/website/main/assets/vanilla-lazyload-CwDt0XVP.js +1 -0
- package/dist/website/main/assets/vue-advanced-cropper-B8N2632q.js +3 -0
- package/dist/website/main/assets/vue-demi-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/vue-i18n-Cl4PTbxU.js +1 -0
- package/dist/website/main/assets/vue-l0sNRNKZ.js +1 -0
- package/dist/website/main/assets/vue-router-Dq9LltUm.js +1 -0
- package/dist/website/main/assets/vue-sonner-tR0c75Mk.js +1 -0
- package/dist/website/main/assets/vuefinder-5wO4Y5ID.js +1 -0
- package/dist/website/main/assets/wildcard-Cd63L__x.js +1 -0
- package/dist/website/main/index.html +56 -2
- package/package.json +3 -2
- package/dist/website/item/assets/_plugin-vue_export-helper-ClmlufYy.js +0 -147
- package/dist/website/item/assets/index-A2e72bYf.js +0 -1
- package/dist/website/item/assets/index-B2r8sxRR.js +0 -1
- package/dist/website/item/assets/index-C6NEN46F.js +0 -1
- package/dist/website/item/assets/index-CXfvRuh5.js +0 -1
- package/dist/website/item/assets/index-CYfmDfPu.js +0 -13
- package/dist/website/item/assets/index-Ckv5tLxs.js +0 -1
- package/dist/website/item/assets/index-Cl6uqF-x.js +0 -1
- package/dist/website/item/assets/index-CmgpBuUf.js +0 -1
- package/dist/website/item/assets/index-CncfqGDl.js +0 -1
- package/dist/website/item/assets/index-DgLkaw9e.js +0 -1
- package/dist/website/item/assets/index-DuvgRKuL.js +0 -1
- package/dist/website/item/assets/index-IbpmdLUc.js +0 -1
- package/dist/website/item/assets/index-sGVojTNg.js +0 -1
- package/dist/website/item/assets/index-uCZVfQfS.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BLB7nimS.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BYSmp_n8.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BYzW_ITp.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-BhO5mDgb.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-CFCH0Q76.js +0 -1
- package/dist/website/item/assets/index.vue_vue_type_script_setup_true_lang-SpXIpkkp.js +0 -1
- package/dist/website/item/assets/useCompAttrs-BL-bjaqx.js +0 -1
- package/dist/website/item/assets/useCompAttrsLocal-Bsj1Z8J3.js +0 -1
- package/dist/website/main/assets/cloud-upload-Cs5rs0fe.js +0 -1
- package/dist/website/main/assets/cloud-upload-j3Y0taC9.css +0 -1
- package/dist/website/main/assets/el-card-BAyktVMS.css +0 -1
- package/dist/website/main/assets/el-dropdown-item-BeIfAqTO.css +0 -1
- package/dist/website/main/assets/el-empty-S7fQQ3B8.css +0 -1
- package/dist/website/main/assets/el-link-CPQZ-olG.css +0 -1
- package/dist/website/main/assets/el-link-CYRikDCA.js +0 -1
- package/dist/website/main/assets/el-loading-Dq8WDDkr.css +0 -1
- package/dist/website/main/assets/el-table-column-B3ZEEuPD.css +0 -1
- package/dist/website/main/assets/el-table-column-R6urXTXE.js +0 -1
- package/dist/website/main/assets/en-C_Tot-hO.js +0 -1
- package/dist/website/main/assets/home-rounded-B4KVwSYb.css +0 -1
- package/dist/website/main/assets/home-rounded-B6ip0c7y.js +0 -1
- package/dist/website/main/assets/index-9cW7WZJA.js +0 -1
- package/dist/website/main/assets/index-B-U892j4.js +0 -1
- package/dist/website/main/assets/index-B6mD6Kkg.js +0 -1
- package/dist/website/main/assets/index-BGMqZ6s6.js +0 -1
- package/dist/website/main/assets/index-Bud_dtZv.js +0 -1
- package/dist/website/main/assets/index-BxyUlJIo.js +0 -1
- package/dist/website/main/assets/index-C1gpYuZp.js +0 -1
- package/dist/website/main/assets/index-C2bAlTIv.js +0 -4
- package/dist/website/main/assets/index-CDNB051F.js +0 -1
- package/dist/website/main/assets/index-CNq68i9N.js +0 -1
- package/dist/website/main/assets/index-CS-qmP9q.js +0 -1
- package/dist/website/main/assets/index-CWkqV3b7.js +0 -1
- package/dist/website/main/assets/index-C_6TIEqJ.css +0 -1
- package/dist/website/main/assets/index-CaxXecF0.js +0 -1
- package/dist/website/main/assets/index-CbOuvPyn.js +0 -1
- package/dist/website/main/assets/index-CgNgaeRC.css +0 -1
- package/dist/website/main/assets/index-ChNPGeka.js +0 -1
- package/dist/website/main/assets/index-CjHODTEb.js +0 -1
- package/dist/website/main/assets/index-Cpt-ElYb.js +0 -1
- package/dist/website/main/assets/index-Cqeo6XX0.js +0 -1
- package/dist/website/main/assets/index-CrjnxYdq.js +0 -1
- package/dist/website/main/assets/index-DMmk1-uH.js +0 -2
- package/dist/website/main/assets/index-DOlF0Z_P.css +0 -1
- package/dist/website/main/assets/index-DPvzUGF_.js +0 -2
- package/dist/website/main/assets/index-Dj51p5I8.css +0 -1
- package/dist/website/main/assets/index-DvpUuDIq.js +0 -1
- package/dist/website/main/assets/index-Dwbqz_We.js +0 -1
- package/dist/website/main/assets/index-DwsxPrpM.js +0 -1
- package/dist/website/main/assets/index-IFbOrHc6.js +0 -1
- package/dist/website/main/assets/index-JZJBRbnu.js +0 -1
- package/dist/website/main/assets/index-YQrh68OP.js +0 -361
- package/dist/website/main/assets/index-d6c7G8Rn.js +0 -1
- package/dist/website/main/assets/index-q7_pRGD0.js +0 -8
- package/dist/website/main/assets/index-r4XZ4Nw3.js +0 -1
- package/dist/website/main/assets/index-ze19z7zX.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-6wuGCBaO.js +0 -2
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BHtswZUO.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Bu8jevdr.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CUQttXIa.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CqTNk_HH.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DDwXMaNL.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DOAvJ6sA.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-CAzxiMOC.js +0 -59
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-Cl1itFTX.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DRm0zssd.js +0 -15
- package/dist/website/main/assets/kid-star-D1M-aC1C.css +0 -1
- package/dist/website/main/assets/kid-star-DCy2yzJb.js +0 -1
- package/dist/website/main/assets/md5-CtJDyuNs.js +0 -1
- package/dist/website/main/assets/settings-BMRZp14Y.js +0 -1
- package/dist/website/main/assets/settings-BhagQj3w.css +0 -1
- package/dist/website/main/assets/supervised-user-circle-CZYpyCV4.css +0 -1
- package/dist/website/main/assets/supervised-user-circle-v2VKksba.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-BKS18Cgx.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-wbwASI26.css +0 -1
- package/dist/website/main/assets/terminal-CysD-avl.js +0 -1
- package/dist/website/main/assets/terminal-DFt3N_TH.css +0 -1
- package/dist/website/main/assets/useCacheOssStore-E3m2bF9c.js +0 -1
- package/dist/website/main/assets/useCompEditStore-N2mMMlha.css +0 -1
- package/dist/website/main/assets/useCompEditStore-eTcWHaeG.js +0 -1
- package/dist/website/main/assets/useCompMetaLocalStore-BwKMTij9.js +0 -1
- package/dist/website/main/assets/useCompMetaStore-BWz1ZyX_.js +0 -1
- package/dist/website/main/assets/useKeyword-Dmz0UrKO.js +0 -1
- package/dist/website/main/assets/useTeamHeaders-kK4p3F9Z.js +0 -1
- package/dist/website/main/assets/useVscodeOpen-Bwp8Sbsw.js +0 -1
- package/dist/website/main/assets/zhCN-0_iHo67e.js +0 -1
- /package/dist/website/container/assets/{index-DY_KlG_O.js → index-C0I-xtR-.js} +0 -0
- /package/dist/website/item/assets/{_plugin-vue_export-helper-8dCw6Y2Z.css → @iconify-vue-8dCw6Y2Z.css} +0 -0
- /package/dist/website/main/assets/{v4-EwEgHOG0.js → uuid-EwEgHOG0.js} +0 -0
- /package/dist/website/main/assets/{index-m9r9dfRk.css → vuefinder-m9r9dfRk.css} +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import{g as oA}from"./dayjs-CODj3Ey3.js";function uA(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 a=Object.getOwnPropertyDescriptor(s,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var lA=Object.create,tp=Object.defineProperty,pA=Object.getOwnPropertyDescriptor,cA=Object.getOwnPropertyNames,hA=Object.getPrototypeOf,dA=Object.prototype.hasOwnProperty,fA=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rp=(t,e)=>{for(var r in e)tp(t,r,{get:e[r],enumerable:!0})},mA=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cA(e))!dA.call(t,i)&&i!==r&&tp(t,i,{get:()=>e[i],enumerable:!(s=pA(e,i))||s.enumerable});return t},yA=(t,e,r)=>(r=t!=null?lA(hA(t)):{},mA(tp(r,"default",{value:t,enumerable:!0}),t)),gA=fA((t,e)=>{var r,s,i,a,u,p,h,m,f,d,D,g,E,x,T,b,A,S,k;E=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,g=/--|\+\+|=>|\.{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,T=/(['"])(?:[^'"\\\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,k=/[\t\v\f\ufeff\p{Zs}]+/yu,m=/\r?\n|[\r\u2028\u2029]/y,f=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,x=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,s=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,a=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,u=/[^<>{}]+/y,S=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,A=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,p=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,h=/^(?:return|throw|yield)$/,d=RegExp(m.source),e.exports=function*(v,{jsx:_=!1}={}){var $,j,H,q,W,F,R,te,ie,re,we,be,Ze,he;for({length:F}=v,q=0,W="",he=[{tag:"JS"}],$=[],we=0,be=!1;q<F;){switch(te=he[he.length-1],te.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(v[q]==="/"&&(S.test(W)||p.test(W))&&(E.lastIndex=q,R=E.exec(v))){q=E.lastIndex,W=R[0],be=!0,yield{type:"RegularExpressionLiteral",value:R[0],closed:R[1]!==void 0&&R[1]!=="\\"};continue}if(g.lastIndex=q,R=g.exec(v)){switch(Ze=R[0],ie=g.lastIndex,re=Ze,Ze){case"(":W==="?NonExpressionParenKeyword"&&he.push({tag:"JSNonExpressionParen",nesting:we}),we++,be=!1;break;case")":we--,be=!0,te.tag==="JSNonExpressionParen"&&we===te.nesting&&(he.pop(),re="?NonExpressionParenEnd",be=!1);break;case"{":g.lastIndex=0,H=!A.test(W)&&(S.test(W)||p.test(W)),$.push(H),be=!1;break;case"}":switch(te.tag){case"InterpolationInTemplate":if($.length===te.nesting){b.lastIndex=q,R=b.exec(v),q=b.lastIndex,W=R[0],R[1]==="${"?(W="?InterpolationInTemplate",be=!1,yield{type:"TemplateMiddle",value:R[0]}):(he.pop(),be=!0,yield{type:"TemplateTail",value:R[0],closed:R[1]==="`"});continue}break;case"InterpolationInJSX":if($.length===te.nesting){he.pop(),q+=1,W="}",yield{type:"JSXPunctuator",value:"}"};continue}}be=$.pop(),re=be?"?ExpressionBraceEnd":"}";break;case"]":be=!0;break;case"++":case"--":re=be?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(_&&(S.test(W)||p.test(W))){he.push({tag:"JSXTag"}),q+=1,W="<",yield{type:"JSXPunctuator",value:Ze};continue}be=!1;break;default:be=!1}q=ie,W=re,yield{type:"Punctuator",value:Ze};continue}if(r.lastIndex=q,R=r.exec(v)){switch(q=r.lastIndex,re=R[0],R[0]){case"for":case"if":case"while":case"with":W!=="."&&W!=="?."&&(re="?NonExpressionParenKeyword")}W=re,be=!p.test(R[0]),yield{type:R[1]==="#"?"PrivateIdentifier":"IdentifierName",value:R[0]};continue}if(T.lastIndex=q,R=T.exec(v)){q=T.lastIndex,W=R[0],be=!0,yield{type:"StringLiteral",value:R[0],closed:R[2]!==void 0};continue}if(D.lastIndex=q,R=D.exec(v)){q=D.lastIndex,W=R[0],be=!0,yield{type:"NumericLiteral",value:R[0]};continue}if(b.lastIndex=q,R=b.exec(v)){q=b.lastIndex,W=R[0],R[1]==="${"?(W="?InterpolationInTemplate",he.push({tag:"InterpolationInTemplate",nesting:$.length}),be=!1,yield{type:"TemplateHead",value:R[0]}):(be=!0,yield{type:"NoSubstitutionTemplate",value:R[0],closed:R[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=q,R=i.exec(v)){switch(q=i.lastIndex,re=R[0],R[0]){case"<":he.push({tag:"JSXTag"});break;case">":he.pop(),W==="/"||te.tag==="JSXTagEnd"?(re="?JSX",be=!0):he.push({tag:"JSXChildren"});break;case"{":he.push({tag:"InterpolationInJSX",nesting:$.length}),re="?InterpolationInJSX",be=!1;break;case"/":W==="<"&&(he.pop(),he[he.length-1].tag==="JSXChildren"&&he.pop(),he.push({tag:"JSXTagEnd"}))}W=re,yield{type:"JSXPunctuator",value:R[0]};continue}if(s.lastIndex=q,R=s.exec(v)){q=s.lastIndex,W=R[0],yield{type:"JSXIdentifier",value:R[0]};continue}if(a.lastIndex=q,R=a.exec(v)){q=a.lastIndex,W=R[0],yield{type:"JSXString",value:R[0],closed:R[2]!==void 0};continue}break;case"JSXChildren":if(u.lastIndex=q,R=u.exec(v)){q=u.lastIndex,W=R[0],yield{type:"JSXText",value:R[0]};continue}switch(v[q]){case"<":he.push({tag:"JSXTag"}),q++,W="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":he.push({tag:"InterpolationInJSX",nesting:$.length}),q++,W="?InterpolationInJSX",be=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(k.lastIndex=q,R=k.exec(v)){q=k.lastIndex,yield{type:"WhiteSpace",value:R[0]};continue}if(m.lastIndex=q,R=m.exec(v)){q=m.lastIndex,be=!1,h.test(W)&&(W="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:R[0]};continue}if(f.lastIndex=q,R=f.exec(v)){q=f.lastIndex,d.test(R[0])&&(be=!1,h.test(W)&&(W="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:R[0],closed:R[1]!==void 0};continue}if(x.lastIndex=q,R=x.exec(v)){q=x.lastIndex,be=!1,yield{type:"SingleLineComment",value:R[0]};continue}j=String.fromCodePoint(v.codePointAt(q)),q+=j.length,W=j,be=!1,yield{type:te.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:j}}}}),DA={};rp(DA,{__debug:()=>oS,check:()=>nS,doc:()=>yy,format:()=>Ay,formatWithCursor:()=>Ey,getSupportInfo:()=>aS,util:()=>gy,version:()=>Nb});var Qn=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),xA=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},EA=Qn("replaceAll",function(){if(typeof this=="string")return xA}),xo=EA,AA=class{diff(e,r,s={}){let i;typeof s=="function"?(i=s,s={}):"callback"in s&&(i=s.callback);let a=this.castInput(e,s),u=this.castInput(r,s),p=this.removeEmpty(this.tokenize(a,s)),h=this.removeEmpty(this.tokenize(u,s));return this.diffWithOptionsObj(p,h,s,i)}diffWithOptionsObj(e,r,s,i){var a;let u=A=>{if(A=this.postProcess(A,s),i){setTimeout(function(){i(A)},0);return}else return A},p=r.length,h=e.length,m=1,f=p+h;s.maxEditLength!=null&&(f=Math.min(f,s.maxEditLength));let d=(a=s.timeout)!==null&&a!==void 0?a:1/0,D=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}],E=this.extractCommon(g[0],r,e,0,s);if(g[0].oldPos+1>=h&&E+1>=p)return u(this.buildValues(g[0].lastComponent,r,e));let x=-1/0,T=1/0,b=()=>{for(let A=Math.max(x,-m);A<=Math.min(T,m);A+=2){let S,k=g[A-1],v=g[A+1];k&&(g[A-1]=void 0);let _=!1;if(v){let j=v.oldPos-A;_=v&&0<=j&&j<p}let $=k&&k.oldPos+1<h;if(!_&&!$){g[A]=void 0;continue}if(!$||_&&k.oldPos<v.oldPos?S=this.addToPath(v,!0,!1,0,s):S=this.addToPath(k,!1,!0,1,s),E=this.extractCommon(S,r,e,A,s),S.oldPos+1>=h&&E+1>=p)return u(this.buildValues(S.lastComponent,r,e))||!0;g[A]=S,S.oldPos+1>=h&&(T=Math.min(T,A-1)),E+1>=p&&(x=Math.max(x,A+1))}m++};if(i)(function A(){setTimeout(function(){if(m>f||Date.now()>D)return i(void 0);b()||A()},0)})();else for(;m<=f&&Date.now()<=D;){let A=b();if(A)return A}}addToPath(e,r,s,i,a){let u=e.lastComponent;return u&&!a.oneChangePerToken&&u.added===r&&u.removed===s?{oldPos:e.oldPos+i,lastComponent:{count:u.count+1,added:r,removed:s,previousComponent:u.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:r,removed:s,previousComponent:u}}}extractCommon(e,r,s,i,a){let u=r.length,p=s.length,h=e.oldPos,m=h-i,f=0;for(;m+1<u&&h+1<p&&this.equals(s[h+1],r[m+1],a);)m++,h++,f++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return f&&!a.oneChangePerToken&&(e.lastComponent={count:f,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=h,m}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=[],a;for(;e;)i.push(e),a=e.previousComponent,delete e.previousComponent,e=a;i.reverse();let u=i.length,p=0,h=0,m=0;for(;p<u;p++){let f=i[p];if(f.removed)f.value=this.join(s.slice(m,m+f.count)),m+=f.count;else{if(!f.added&&this.useLongestToken){let d=r.slice(h,h+f.count);d=d.map(function(D,g){let E=s[m+g];return E.length>D.length?E:D}),f.value=this.join(d)}else f.value=this.join(r.slice(h,h+f.count));h+=f.count,f.added||(m+=f.count)}}return i}},CA=class extends AA{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},TA=new CA;function bA(t,e,r){return TA.diff(t,e,r)}var SA=()=>{},PA=SA,Cm="cr",Tm="crlf",vA="lf",wA=vA,sp="\r",bm=`\r
|
|
2
|
+
`,Eo=`
|
|
3
|
+
`,FA=Eo;function kA(t){let e=t.indexOf(sp);return e!==-1?t.charAt(e+1)===Eo?Tm:Cm:wA}function ip(t){return t===Cm?sp:t===Tm?bm:FA}var IA=new Map([[Eo,/\n/gu],[sp,/\r/gu],[bm,/\r\n/gu]]);function Sm(t,e){let r=IA.get(e);return t.match(r)?.length??0}var NA=/\r\n?/gu;function BA(t){return xo(0,t,NA,Eo)}function LA(t){return this[t<0?this.length+t:t]}var OA=Qn("at",function(){if(Array.isArray(this)||typeof this=="string")return LA}),rt=OA,Hs="string",Mr="array",ys="cursor",Vr="indent",zr="align",Hr="trim",kt="group",Cr="fill",Mt="if-break",Wr="indent-if-break",Jr="line-suffix",Xr="line-suffix-boundary",ct="line",Tr="label",Gt="break-parent",Pm=new Set([ys,Vr,zr,Hr,kt,Cr,Mt,Wr,Jr,Xr,ct,Tr,Gt]);function _A(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 MA(t){if(typeof t=="string")return Hs;if(Array.isArray(t))return Mr;if(!t)return;let{type:e}=t;if(Pm.has(e))return e}var Ws=MA,$A=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function jA(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(Ws(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=$A([...Pm].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
6
|
+
Expected it to be ${s}.`}var RA=class extends Error{name="InvalidDocError";constructor(e){super(jA(e)),this.doc=e}},Pi=RA,ad={};function UA(t,e,r,s){let i=[t];for(;i.length>0;){let a=i.pop();if(a===ad){r(i.pop());continue}r&&i.push(a,ad);let u=Ws(a);if(!u)throw new Pi(a);if(e?.(a)!==!1)switch(u){case Mr:case Cr:{let p=u===Mr?a:a.parts;for(let h=p.length,m=h-1;m>=0;--m)i.push(p[m]);break}case Mt:i.push(a.flatContents,a.breakContents);break;case kt:if(s&&a.expandedStates)for(let p=a.expandedStates.length,h=p-1;h>=0;--h)i.push(a.expandedStates[h]);else i.push(a.contents);break;case zr:case Vr:case Wr:case Tr:case Jr:i.push(a.contents);break;case Hs:case ys:case Hr:case Xr:case ct:case Gt:break;default:throw new Pi(a)}}}var np=UA;function Ao(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(a){if(r.has(a))return r.get(a);let u=i(a);return r.set(a,u),u}function i(a){switch(Ws(a)){case Mr:return e(a.map(s));case Cr:return e({...a,parts:a.parts.map(s)});case Mt:return e({...a,breakContents:s(a.breakContents),flatContents:s(a.flatContents)});case kt:{let{expandedStates:u,contents:p}=a;return u?(u=u.map(s),p=u[0]):p=s(p),e({...a,contents:p,expandedStates:u})}case zr:case Vr:case Wr:case Tr:case Jr:return e({...a,contents:s(a.contents)});case Hs:case ys:case Hr:case Xr:case ct:case Gt:return e(a);default:throw new Pi(a)}}}function ap(t,e,r){let s=r,i=!1;function a(u){if(i)return!1;let p=e(u);p!==void 0&&(i=!0,s=p)}return np(t,a),s}function qA(t){if(t.type===kt&&t.break||t.type===ct&&t.hard||t.type===Gt)return!0}function VA(t){return ap(t,qA,!1)}function od(t){if(t.length>0){let e=rt(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function zA(t){let e=new Set,r=[];function s(a){if(a.type===Gt&&od(r),a.type===kt){if(r.push(a),e.has(a))return!1;e.add(a)}}function i(a){a.type===kt&&r.pop().break&&od(r)}np(t,s,i,!0)}function HA(t){return t.type===ct&&!t.hard?t.soft?"":" ":t.type===Mt?t.flatContents:t}function WA(t){return Ao(t,HA)}function ud(t){for(t=[...t];t.length>=2&&rt(0,t,-2).type===ct&&rt(0,t,-1).type===Gt;)t.length-=2;if(t.length>0){let e=Pn(rt(0,t,-1));t[t.length-1]=e}return t}function Pn(t){switch(Ws(t)){case Vr:case Wr:case kt:case Jr:case Tr:{let e=Pn(t.contents);return{...t,contents:e}}case Mt:return{...t,breakContents:Pn(t.breakContents),flatContents:Pn(t.flatContents)};case Cr:return{...t,parts:ud(t.parts)};case Mr:return ud(t);case Hs:return _A(t);case zr:case ys:case Hr:case Xr:case ct:case Gt:break;default:throw new Pi(t)}return t}function vm(t){return Pn(XA(t))}function JA(t){switch(Ws(t)){case Cr:if(t.parts.every(e=>e===""))return"";break;case kt:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===kt&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case zr:case Vr:case Wr:case Jr:if(!t.contents)return"";break;case Mt:if(!t.flatContents&&!t.breakContents)return"";break;case Mr:{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 Hs:case ys:case Hr:case Xr:case ct:case Tr:case Gt:break;default:throw new Pi(t)}return t}function XA(t){return Ao(t,e=>JA(e))}function KA(t,e=Lm){return Ao(t,r=>typeof r=="string"?Im(e,r.split(`
|
|
7
|
+
`)):r)}function GA(t){if(t.type===ct)return!0}function YA(t){return ap(t,GA,!1)}function Ka(t,e){return t.type===Tr?{...t,contents:e(t.contents)}:e(t)}var QA=PA;function lo(t){return{type:Vr,contents:t}}function vi(t,e){return{type:zr,contents:e,n:t}}function ZA(t){return vi(Number.NEGATIVE_INFINITY,t)}function wm(t){return vi({type:"root"},t)}function eC(t){return vi(-1,t)}function Fm(t,e,r){let s=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)s=lo(s);s=vi(e%r,s),s=vi(Number.NEGATIVE_INFINITY,s)}return s}var Co={type:Gt},Os={type:ys};function tC(t){return{type:Cr,parts:t}}function km(t,e={}){return QA(e.expandedStates),{type:kt,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function rC(t,e){return km(t[0],{...e,expandedStates:t})}function sC(t,e="",r={}){return{type:Mt,breakContents:t,flatContents:e,groupId:r.groupId}}function iC(t,e){return{type:Wr,contents:t,groupId:e.groupId,negate:e.negate}}function Im(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function nC(t,e){return t?{type:Tr,label:t,contents:e}:e}var Nm={type:ct},aC={type:ct,soft:!0},op={type:ct,hard:!0},Or=[op,Co],Bm={type:ct,hard:!0,literal:!0},Lm=[Bm,Co];function hl(t){return{type:Jr,contents:t}}var oC={type:Xr},uC={type:Hr};function Nr(t){if(!t)return"";if(Array.isArray(t)){let e=[];for(let r of t)if(Array.isArray(r))e.push(...Nr(r));else{let s=Nr(r);s!==""&&e.push(s)}return e}return t.type===Mt?{...t,breakContents:Nr(t.breakContents),flatContents:Nr(t.flatContents)}:t.type===kt?{...t,contents:Nr(t.contents),expandedStates:t.expandedStates?.map(Nr)}:t.type===Cr?{type:"fill",parts:t.parts.map(Nr)}:t.contents?{...t,contents:Nr(t.contents)}:t}function lC(t){let e=Object.create(null),r=new Set;return s(Nr(t));function s(a,u,p){if(typeof a=="string")return JSON.stringify(a);if(Array.isArray(a)){let h=a.map(s).filter(Boolean);return h.length===1?h[0]:`[${h.join(", ")}]`}if(a.type===ct){let h=p?.[u+1]?.type===Gt;return a.literal?h?"literalline":"literallineWithoutBreakParent":a.hard?h?"hardline":"hardlineWithoutBreakParent":a.soft?"softline":"line"}if(a.type===Gt)return p?.[u-1]?.type===ct&&p[u-1].hard?void 0:"breakParent";if(a.type===Hr)return"trim";if(a.type===Vr)return"indent("+s(a.contents)+")";if(a.type===zr)return a.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+s(a.contents)+")":a.n<0?"dedent("+s(a.contents)+")":a.n.type==="root"?"markAsRoot("+s(a.contents)+")":"align("+JSON.stringify(a.n)+", "+s(a.contents)+")";if(a.type===Mt)return"ifBreak("+s(a.breakContents)+(a.flatContents?", "+s(a.flatContents):"")+(a.groupId?(a.flatContents?"":', ""')+`, { groupId: ${i(a.groupId)} }`:"")+")";if(a.type===Wr){let h=[];a.negate&&h.push("negate: true"),a.groupId&&h.push(`groupId: ${i(a.groupId)}`);let m=h.length>0?`, { ${h.join(", ")} }`:"";return`indentIfBreak(${s(a.contents)}${m})`}if(a.type===kt){let h=[];a.break&&a.break!=="propagated"&&h.push("shouldBreak: true"),a.id&&h.push(`id: ${i(a.id)}`);let m=h.length>0?`, { ${h.join(", ")} }`:"";return a.expandedStates?`conditionalGroup([${a.expandedStates.map(f=>s(f)).join(",")}]${m})`:`group(${s(a.contents)}${m})`}if(a.type===Cr)return`fill([${a.parts.map(h=>s(h)).join(", ")}])`;if(a.type===Jr)return"lineSuffix("+s(a.contents)+")";if(a.type===Xr)return"lineSuffixBoundary";if(a.type===Tr)return`label(${JSON.stringify(a.label)}, ${s(a.contents)})`;if(a.type===ys)return"cursor";throw new Error("Unknown doc type "+a.type)}function i(a){if(typeof a!="symbol")return JSON.stringify(String(a));if(a in e)return e[a];let u=a.description||"symbol";for(let p=0;;p++){let h=u+(p>0?` #${p}`:"");if(!r.has(h))return r.add(h),e[a]=`Symbol.for(${JSON.stringify(h)})`}}}var pC=()=>/[#*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 cC(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function hC(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 dC="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",fC=/[^\x20-\x7F]/u,mC=new Set(dC);function yC(t){if(!t)return 0;if(!fC.test(t))return t.length;t=t.replace(pC(),r=>mC.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+=cC(s)||hC(s)?2:1)}return e}var up=yC,gC={type:0},DC={type:1},Om={value:"",length:0,queue:[],get root(){return Om}};function _m(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",a=0,u=0,p=0;for(let E of s)switch(E.type){case 0:f(),r.useTabs?h(1):m(r.tabWidth);break;case 3:{let{string:x}=E;f(),i+=x,a+=x.length;break}case 2:{let{width:x}=E;u+=1,p+=x;break}default:throw new Error(`Unexpected indent comment '${E.type}'.`)}return D(),{...t,value:i,length:a,queue:s};function h(E){i+=" ".repeat(E),a+=r.tabWidth*E}function m(E){i+=" ".repeat(E),a+=E}function f(){r.useTabs?d():D()}function d(){u>0&&h(u),g()}function D(){p>0&&m(p),g()}function g(){u=0,p=0}}function xC(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=DC:s={type:2,width:e}:s={type:3,string:e},_m(t,s,r)}function EC(t,e){return _m(t,gC,e)}function AC(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 Mm(t){let e=AC(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var bt=Symbol("MODE_BREAK"),cr=Symbol("MODE_FLAT"),dl=Symbol("DOC_FILL_PRINTED_LENGTH");function ka(t,e,r,s,i,a){if(r===Number.POSITIVE_INFINITY)return!0;let u=e.length,p=!1,h=[t],m="";for(;r>=0;){if(h.length===0){if(u===0)return!0;h.push(e[--u]);continue}let{mode:f,doc:d}=h.pop(),D=Ws(d);switch(D){case Hs:d&&(p&&(m+=" ",r-=1,p=!1),m+=d,r-=up(d));break;case Mr:case Cr:{let g=D===Mr?d:d.parts,E=d[dl]??0;for(let x=g.length-1;x>=E;x--)h.push({mode:f,doc:g[x]});break}case Vr:case zr:case Wr:case Tr:h.push({mode:f,doc:d.contents});break;case Hr:{let{text:g,count:E}=Mm(m);m=g,r+=E;break}case kt:{if(a&&d.break)return!1;let g=d.break?bt:f,E=d.expandedStates&&g===bt?rt(0,d.expandedStates,-1):d.contents;h.push({mode:g,doc:E});break}case Mt:{let g=(d.groupId?i[d.groupId]||cr:f)===bt?d.breakContents:d.flatContents;g&&h.push({mode:f,doc:g});break}case ct:if(f===bt||d.hard)return!0;d.soft||(p=!0);break;case Jr:s=!0;break;case Xr:if(s)return!1;break}}return!1}function To(t,e){let r=Object.create(null),s=e.printWidth,i=ip(e.endOfLine),a=0,u=[{indent:Om,mode:bt,doc:t}],p="",h=!1,m=[],f=[],d=[],D=[],g=0;for(zA(t);u.length>0;){let{indent:A,mode:S,doc:k}=u.pop();switch(Ws(k)){case Hs:{let v=i!==`
|
|
8
|
+
`?xo(0,k,`
|
|
9
|
+
`,i):k;v&&(p+=v,u.length>0&&(a+=up(v)));break}case Mr:for(let v=k.length-1;v>=0;v--)u.push({indent:A,mode:S,doc:k[v]});break;case ys:if(f.length>=2)throw new Error("There are too many 'cursor' in doc.");f.push(g+p.length);break;case Vr:u.push({indent:EC(A,e),mode:S,doc:k.contents});break;case zr:u.push({indent:xC(A,k.n,e),mode:S,doc:k.contents});break;case Hr:b();break;case kt:switch(S){case cr:if(!h){u.push({indent:A,mode:k.break?bt:cr,doc:k.contents});break}case bt:{h=!1;let v={indent:A,mode:cr,doc:k.contents},_=s-a,$=m.length>0;if(!k.break&&ka(v,u,_,$,r))u.push(v);else if(k.expandedStates){let j=rt(0,k.expandedStates,-1);if(k.break){u.push({indent:A,mode:bt,doc:j});break}else for(let H=1;H<k.expandedStates.length+1;H++)if(H>=k.expandedStates.length){u.push({indent:A,mode:bt,doc:j});break}else{let q=k.expandedStates[H],W={indent:A,mode:cr,doc:q};if(ka(W,u,_,$,r)){u.push(W);break}}}else u.push({indent:A,mode:bt,doc:k.contents});break}}k.id&&(r[k.id]=rt(0,u,-1).mode);break;case Cr:{let v=s-a,_=k[dl]??0,{parts:$}=k,j=$.length-_;if(j===0)break;let H=$[_+0],q=$[_+1],W={indent:A,mode:cr,doc:H},F={indent:A,mode:bt,doc:H},R=ka(W,[],v,m.length>0,r,!0);if(j===1){R?u.push(W):u.push(F);break}let te={indent:A,mode:cr,doc:q},ie={indent:A,mode:bt,doc:q};if(j===2){R?u.push(te,W):u.push(ie,F);break}let re=$[_+2],we={indent:A,mode:S,doc:{...k,[dl]:_+2}},be=ka({indent:A,mode:cr,doc:[H,q,re]},[],v,m.length>0,r,!0);u.push(we),be?u.push(te,W):R?u.push(ie,W):u.push(ie,F);break}case Mt:case Wr:{let v=k.groupId?r[k.groupId]:S;if(v===bt){let _=k.type===Mt?k.breakContents:k.negate?k.contents:lo(k.contents);_&&u.push({indent:A,mode:S,doc:_})}if(v===cr){let _=k.type===Mt?k.flatContents:k.negate?lo(k.contents):k.contents;_&&u.push({indent:A,mode:S,doc:_})}break}case Jr:m.push({indent:A,mode:S,doc:k.contents});break;case Xr:m.length>0&&u.push({indent:A,mode:S,doc:op});break;case ct:switch(S){case cr:if(k.hard)h=!0;else{k.soft||(p+=" ",a+=1);break}case bt:if(m.length>0){u.push({indent:A,mode:S,doc:k},...m.reverse()),m.length=0;break}k.literal?(p+=i,a=0,A.root&&(A.root.value&&(p+=A.root.value),a=A.root.length)):(b(),p+=i+A.value,a=A.length);break}break;case Tr:u.push({indent:A,mode:S,doc:k.contents});break;case Gt:break;default:throw new Pi(k)}u.length===0&&m.length>0&&(u.push(...m.reverse()),m.length=0)}let E=d.join("")+p,x=[...D,...f];if(x.length!==2)return{formatted:E};let T=x[0];return{formatted:E,cursorNodeStart:T,cursorNodeText:E.slice(T,rt(0,x,-1))};function b(){let{text:A,count:S}=Mm(p);A&&(d.push(A),g+=A.length),p="",a-=S,f.length>0&&(D.push(...f.map(k=>Math.min(k,g))),f.length=0)}}function CC(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 lp=CC,TC=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return rt(0,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:rt(0,this.stack,-2)}get node(){return rt(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=rt(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?rt(0,e,-2):null}getValue(){return rt(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,a=rt(0,s,-1);for(let u of r)a=a?.[u],s.push(u,a);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,a=rt(0,s,-1);for(let u of r)a=a[u],s.push(u,a);try{for(let u=0;u<a.length;++u)s.push(u,a[u]),e(this,u,a),s.length-=2}finally{s.length=i}}map(e,...r){let s=[];return this.each((i,a,u)=>{s[a]=e(i,a,u)},...r),s}match(...e){let r=this.stack.length-1,s=null,i=this.stack[r--];for(let a of e){if(i===void 0)return!1;let u=null;if(typeof s=="number"&&(u=s,s=this.stack[r--],i=this.stack[r--]),a&&!a(i,s,u))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)}}},bC=TC;function SC(t){return t!==null&&typeof t=="object"}var pp=SC;function Zn(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:a}=e,u=r;for(;u>=0&&u<a;){let p=e.charAt(u);if(t instanceof RegExp){if(!t.test(p))return u}else if(!t.includes(p))return u;i?u--:u++}return u===-1||u===a?u:!1}}var PC=Zn(/\s/u),ds=Zn(" "),$m=Zn(",; "),jm=Zn(/[^\n\r]/u),ld=t=>t===`
|
|
10
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function vC(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(ld(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
12
|
+
`)return e+2;if(ld(i))return e+1}return e}var js=vC;function wC(t,e,r={}){let s=ds(t,r.backwards?e-1:e,r),i=js(t,s,r);return s!==i}var ps=wC;function FC(t){return Array.isArray(t)&&t.length>0}var kC=FC;function*bo(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,i=a=>pp(a)&&s(a);for(let a of r(t)){let u=t[a];if(Array.isArray(u))for(let p of u)i(p)&&(yield p);else i(u)&&(yield u)}}function*IC(t,e){let r=[t];for(let s=0;s<r.length;s++){let i=r[s];for(let a of bo(i,e))yield a,r.push(a)}}function NC(t,e){return bo(t,e).next().done}function Rm(t,e,r){let{cache:s}=r;if(s.has(t))return s.get(t);let{filter:i}=r;if(!i)return[];let a,u=(r.getChildren?.(t,r)??[...bo(t,{getVisitorKeys:r.getVisitorKeys})]).flatMap(m=>(a??(a=[t,...e]),i(m,a)?[m]:Rm(m,a,r))),{locStart:p,locEnd:h}=r;return u.sort((m,f)=>p(m)-p(f)||h(m)-h(f)),s.set(t,u),u}var Um=Rm;function BC(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 cp(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=BC(t)}function vn(t,e){e.leading=!0,e.trailing=!1,cp(t,e)}function Ns(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),cp(t,e)}function wn(t,e){e.leading=!1,e.trailing=!0,cp(t,e)}var qm=new WeakMap;function Vm(t,e,r,s,i=[]){let{locStart:a,locEnd:u}=r,p=a(e),h=u(e),m=Um(t,i,{cache:qm,locStart:a,locEnd:u,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),f,d,D=0,g=m.length;for(;D<g;){let E=D+g>>1,x=m[E],T=a(x),b=u(x);if(T<=p&&h<=b)return Vm(x,e,r,x,[x,...i]);if(b<=p){f=x,D=E+1;continue}if(h<=T){d=x,g=E;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:E}=s,x=vu(E,e,r);f&&vu(E,f,r)!==x&&(f=null),d&&vu(E,d,r)!==x&&(d=null)}return{enclosingNode:s,precedingNode:f,followingNode:d}}var Pu=()=>!1;function LC(t,e){let{comments:r}=t;if(delete t.comments,!kC(r)||!e.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:a={}},originalText:u}=e,{ownLine:p=Pu,endOfLine:h=Pu,remaining:m=Pu}=a,f=r.map((d,D)=>({...Vm(t,d,e),comment:d,text:u,options:e,ast:t,isLastComment:r.length-1===D}));for(let[d,D]of f.entries()){let{comment:g,precedingNode:E,enclosingNode:x,followingNode:T,text:b,options:A,ast:S,isLastComment:k}=D,v;if(i?v=[D]:(g.enclosingNode=x,g.precedingNode=E,g.followingNode=T,v=[g,b,A,S,k]),OC(b,A,f,d))g.placement="ownLine",p(...v)||(T?vn(T,g):E?wn(E,g):Ns(x||S,g));else if(_C(b,A,f,d))g.placement="endOfLine",h(...v)||(E?wn(E,g):T?vn(T,g):Ns(x||S,g));else if(g.placement="remaining",!m(...v))if(E&&T){let _=s.length;_>0&&s[_-1].followingNode!==T&&pd(s,A),s.push(D)}else E?wn(E,g):T?vn(T,g):Ns(x||S,g)}if(pd(s,e),!i)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var zm=t=>!/[\S\n\u2028\u2029]/u.test(t);function OC(t,e,r,s){let{comment:i,precedingNode:a}=r[s],{locStart:u,locEnd:p}=e,h=u(i);if(a)for(let m=s-1;m>=0;m--){let{comment:f,precedingNode:d}=r[m];if(d!==a||!zm(t.slice(p(f),h)))break;h=u(f)}return ps(t,h,{backwards:!0})}function _C(t,e,r,s){let{comment:i,followingNode:a}=r[s],{locStart:u,locEnd:p}=e,h=p(i);if(a)for(let m=s+1;m<r.length;m++){let{comment:f,followingNode:d}=r[m];if(d!==a||!zm(t.slice(h,u(f))))break;h=p(f)}return ps(t,h)}function pd(t,e){let r=t.length;if(r===0)return;let{precedingNode:s,followingNode:i}=t[0],a=e.locStart(i),u;for(u=r;u>0;--u){let{comment:p,precedingNode:h,followingNode:m}=t[u-1],f=e.originalText.slice(e.locEnd(p),a);if(e.printer.isGap?.(f,e)??/^[\s(]*$/u.test(f))a=e.locStart(p);else break}for(let[p,{comment:h}]of t.entries())p<u?wn(s,h):vn(i,h);for(let p of[s,i])p.comments&&p.comments.length>1&&p.comments.sort((h,m)=>e.locStart(h)-e.locStart(m));t.length=0}function vu(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 MC(t,e){let r=e-1;r=ds(t,r,{backwards:!0}),r=js(t,r,{backwards:!0}),r=ds(t,r,{backwards:!0});let s=js(t,r,{backwards:!0});return r!==s}var hp=MC;function Hm(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function $C(t,e){let r=t.node,s=[Hm(t,e)],{printer:i,originalText:a,locStart:u,locEnd:p}=e;if(i.isBlockComment?.(r)){let m=ps(a,p(r))?ps(a,u(r),{backwards:!0})?Or:Nm:" ";s.push(m)}else s.push(Or);let h=js(a,ds(a,p(r)));return h!==!1&&ps(a,h)&&s.push(Or),s}function jC(t,e,r){let s=t.node,i=Hm(t,e),{printer:a,originalText:u,locStart:p}=e,h=a.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||ps(u,p(s),{backwards:!0})){let m=hp(u,p(s));return{doc:hl([Or,m?Or:"",i]),isBlock:h,hasLineSuffix:!0}}return!h||r?.hasLineSuffix?{doc:[hl([" ",i]),Co],isBlock:h,hasLineSuffix:!0}:{doc:[" ",i],isBlock:h,hasLineSuffix:!1}}function RC(t,e){let r=t.node;if(!r)return{};let s=e[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!s.has(p)).length===0)return{leading:"",trailing:""};let i=[],a=[],u;return t.each(()=>{let p=t.node;if(s?.has(p))return;let{leading:h,trailing:m}=p;h?i.push($C(t,e)):m&&(u=jC(t,e,u),a.push(u.doc))},"comments"),{leading:i,trailing:a}}function UC(t,e,r){let{leading:s,trailing:i}=RC(t,r);return!s&&!i?e:Ka(e,a=>[s,a,i])}function qC(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 Wm=class extends Error{name="ConfigError"},cd=class extends Error{name="UndefinedParserError"},VC={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 Jm({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(i=>i.languages??[]),s=[];for(let i of HC(Object.assign({},...t.map(({options:a})=>a),VC)))!e&&i.deprecated||(Array.isArray(i.choices)&&(e||(i.choices=i.choices.filter(a=>!a.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...zC(i.choices,r,t)])),i.pluginDefaults=Object.fromEntries(t.filter(a=>a.defaultOptions?.[i.name]!==void 0).map(a=>[a.name,a.defaultOptions[i.name]])),s.push(i));return{languages:r,options:s}}function*zC(t,e,r){let s=new Set(t.map(i=>i.value));for(let i of e)if(i.parsers){for(let a of i.parsers)if(!s.has(a)){s.add(a);let u=r.find(h=>h.parsers&&Object.prototype.hasOwnProperty.call(h.parsers,a)),p=i.name;u?.name&&(p+=` (plugin: ${u.name})`),yield{value:a,description:p}}}}function HC(t){let e=[];for(let[r,s]of Object.entries(t)){let i={name:r,...s};Array.isArray(i.default)&&(i.default=rt(0,i.default,-1).value),e.push(i)}return e}var WC=Array.prototype.toReversed??function(){return[...this].reverse()},JC=Qn("toReversed",function(){if(Array.isArray(this))return WC}),XC=JC;function KC(){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 GC=KC();function Xm(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 YC(t){return t=Xm(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function QC(t){t=Xm(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 ZC(t){return GC?QC(t):YC(t)}var eT=t=>String(t).split(/[/\\]/u).pop(),tT=t=>String(t).startsWith("file:");function hd(t,e){if(!e)return;let r=eT(e).toLowerCase();return t.find(({filenames:s})=>s?.some(i=>i.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(i=>r.endsWith(i)))}function rT(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 sT=void 0;function dd(t,e){if(e){if(tT(e))try{e=ZC(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function iT(t,e){let r=XC(0,t.plugins).flatMap(s=>s.languages??[]);return(rT(r,e.language)??hd(r,e.physicalFile)??hd(r,e.file)??dd(r,e.physicalFile)??dd(r,e.file)??sT?.(r,e.physicalFile))?.parsers[0]}var Km=iT,Ci={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=>Ci.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${Ci.key(r)}: ${Ci.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>Ci.value({[t]:e})},dp=new Proxy(String,{get:()=>dp}),yr=dp,Gm=()=>dp,nT=(t,e,{descriptor:r})=>{let s=[`${yr.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&s.push(`we now treat it as ${yr.blue(typeof e=="string"?r.key(e):r.pair(e))}`),s.join("; ")+"."},Ym=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ga=Symbol.for("vnopts.VALUE_UNCHANGED"),fd=" ".repeat(2),aT=(t,e,r)=>{let{text:s,list:i}=r.normalizeExpectedResult(r.schemas[t].expected(r)),a=[];return s&&a.push(md(t,e,s,r.descriptor)),i&&a.push([md(t,e,i.title,r.descriptor)].concat(i.values.map(u=>Qm(u,r.loggerPrintWidth))).join(`
|
|
16
|
+
`)),Zm(a,r.loggerPrintWidth)};function md(t,e,r,s){return[`Invalid ${yr.red(s.key(t))} value.`,`Expected ${yr.blue(r)},`,`but received ${e===Ym?yr.gray("nothing"):yr.red(s.value(e))}.`].join(" ")}function Qm({text:t,list:e},r){let s=[];return t&&s.push(`- ${yr.blue(t)}`),e&&s.push([`- ${yr.blue(e.title)}:`].concat(e.values.map(i=>Qm(i,r-fd.length).replace(/^|\n/g,`$&${fd}`))).join(`
|
|
17
|
+
`)),Zm(s,r)}function Zm(t,e){if(t.length===1)return t[0];let[r,s]=t,[i,a]=t.map(u=>u.split(`
|
|
18
|
+
`,1)[0].length);return i>e&&i>a?s:r}var pi=[],wu=[];function Fu(t,e,r){if(t===e)return 0;let s=r?.maxDistance,i=t;t.length>e.length&&(t=e,e=i);let a=t.length,u=e.length;for(;a>0&&t.charCodeAt(~-a)===e.charCodeAt(~-u);)a--,u--;let p=0;for(;p<a&&t.charCodeAt(p)===e.charCodeAt(p);)p++;if(a-=p,u-=p,s!==void 0&&u-a>s)return s;if(a===0)return s!==void 0&&u>s?s:u;let h,m,f,d,D=0,g=0;for(;D<a;)wu[D]=t.charCodeAt(p+D),pi[D]=++D;for(;g<u;){for(h=e.charCodeAt(p+g),f=g++,m=g,D=0;D<a;D++)d=h===wu[D]?f:f+1,f=pi[D],m=pi[D]=f>m?d>m?m+1:d:d>f?f+1:d;if(s!==void 0){let E=m;for(D=0;D<a;D++)pi[D]<E&&(E=pi[D]);if(E>s)return s}}return pi.length=a,wu.length=a,s!==void 0&&m>s?s:m}function oT(t,e,r){if(!Array.isArray(e)||e.length===0)return;let s=r?.maxDistance,i=t.length;for(let h of e)if(h===t)return h;let a,u=Number.POSITIVE_INFINITY,p=new Set;for(let h of e){if(p.has(h))continue;p.add(h);let m=Math.abs(h.length-i);if(m>=u||m>s)continue;let f=Number.isFinite(u)?Math.min(u,s):s,d=f===void 0?Fu(t,h):Fu(t,h,{maxDistance:f});if(d>s)continue;let D=d;if(f!==void 0&&d===f&&f===s&&(D=Fu(t,h)),D<u&&(u=D,a=h,u===0))break}if(!(u>s))return a}var ey=(t,e,{descriptor:r,logger:s,schemas:i})=>{let a=[`Ignored unknown option ${yr.yellow(r.pair({key:t,value:e}))}.`],u=oT(t,Object.keys(i),{maxDistance:3});u&&a.push(`Did you mean ${yr.blue(r.key(u))}?`),s.warn(a.join(" "))},uT=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function lT(t,e){let r=new t(e),s=Object.create(r);for(let i of uT)i in e&&(s[i]=pT(e[i],r,gs.prototype[i].length));return s}var gs=class{static create(e){return lT(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 Ga}};function pT(t,e,r){return typeof t=="function"?(...s)=>t(...s.slice(0,r-1),e,...s.slice(r-1)):()=>t}var cT=class extends gs{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}},hT=class extends gs{expected(){return"anything"}validate(){return!0}},dT=class extends gs{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 a=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);a!==!0&&s.push(a.value)}return s.length===0?!0:{value:s}}deprecated(e,r){let s=[];for(let i of e){let a=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);a!==!1&&s.push(...a.map(({value:u})=>({value:[u]})))}return s}forward(e,r){let s=[];for(let i of e){let a=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);s.push(...a.map(yd))}return s}redirect(e,r){let s=[],i=[];for(let a of e){let u=r.normalizeRedirectResult(this._valueSchema.redirect(a,r),a);"remain"in u&&s.push(u.remain),i.push(...u.redirect.map(yd))}return s.length===0?{redirect:i}:{redirect:i,remain:s}}overlap(e,r){return e.concat(r)}};function yd({from:t,to:e}){return{from:[t],to:e}}var fT=class extends gs{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function mT(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 yT(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 gT(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function DT(t,e){let r=[],s=[];for(let i of t)e(i)?r.push(i):s.push(i);return[r,s]}function xT(t){return t===Math.floor(t)}function ET(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 AT(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function gd(t){return t===void 0?{}:t}function ty(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return CT((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(ty)}}:{text:e}}function Dd(t,e){return t===!0?!0:t===!1?{value:e}:t}function xd(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function Ed(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 fl(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>Ed(r,e)):[Ed(t,e)]}function Ad(t,e){let r=fl(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 CT(t,e){if(!t)throw new Error(e)}var TT=class extends gs{constructor(e){super(e),this._choices=yT(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(ET).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}},bT=class extends gs{expected(){return"a number"}validate(e,r){return typeof e=="number"}},ST=class extends bT{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&xT(e)}},Cd=class extends gs{expected(){return"a string"}validate(e){return typeof e=="string"}},PT=Ci,vT=ey,wT=aT,FT=nT,kT=class{constructor(e,r){let{logger:s=console,loggerPrintWidth:i=80,descriptor:a=PT,unknown:u=vT,invalid:p=wT,deprecated:h=FT,missing:m=()=>!1,required:f=()=>!1,preprocess:d=g=>g,postprocess:D=()=>Ga}=r||{};this._utils={descriptor:a,logger:s||{warn:()=>{}},loggerPrintWidth:i,schemas:mT(e,"name"),normalizeDefaultResult:gd,normalizeExpectedResult:ty,normalizeDeprecatedResult:xd,normalizeForwardResult:fl,normalizeRedirectResult:Ad,normalizeValidateResult:Dd},this._unknownHandler=u,this._invalidHandler=AT(p),this._deprecatedHandler=h,this._identifyMissing=(g,E)=>!(g in E)||m(g,E),this._identifyRequired=f,this._preprocess=d,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=gT()}normalize(e){let r={},s=[this._preprocess(e,this._utils)],i=()=>{for(;s.length!==0;){let a=s.shift(),u=this._applyNormalization(a,r);s.push(...u)}};i();for(let a of Object.keys(this._utils.schemas)){let u=this._utils.schemas[a];if(!(a in r)){let p=gd(u.default(this._utils));"value"in p&&s.push({[a]:p.value})}}i();for(let a of Object.keys(this._utils.schemas)){if(!(a in r))continue;let u=this._utils.schemas[a],p=r[a],h=u.postprocess(p,this._utils);h!==Ga&&(this._applyValidation(h,a,u),r[a]=h)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let s=[],{knownKeys:i,unknownKeys:a}=this._partitionOptionKeys(e);for(let u of i){let p=this._utils.schemas[u],h=p.preprocess(e[u],this._utils);this._applyValidation(h,u,p);let m=({from:D,to:g})=>{s.push(typeof g=="string"?{[g]:D}:{[g.key]:g.value})},f=({value:D,redirectTo:g})=>{let E=xd(p.deprecated(D,this._utils),h,!0);if(E!==!1)if(E===!0)this._hasDeprecationWarned(u)||this._utils.logger.warn(this._deprecatedHandler(u,g,this._utils));else for(let{value:x}of E){let T={key:u,value:x};if(!this._hasDeprecationWarned(T)){let b=typeof g=="string"?{key:g,value:x}:g;this._utils.logger.warn(this._deprecatedHandler(T,b,this._utils))}}};fl(p.forward(h,this._utils),h).forEach(m);let d=Ad(p.redirect(h,this._utils),h);if(d.redirect.forEach(m),"remain"in d){let D=d.remain;r[u]=u in r?p.overlap(r[u],D,this._utils):D,f({value:D})}for(let{from:D,to:g}of d.redirect)f({value:D,redirectTo:g})}for(let u of a){let p=e[u];this._applyUnknownHandler(u,p,r,(h,m)=>{s.push({[h]:m})})}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,Ym,this._utils)}_partitionOptionKeys(e){let[r,s]=DT(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=Dd(s.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(e,r,s,i){let a=this._unknownHandler(e,r,this._utils);if(a)for(let u of Object.keys(a)){if(this._identifyMissing(u,a))continue;let p=a[u];u in this._utils.schemas?i(u,p):s[u]=p}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==Ga){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 a of s){let u=r.override[a];this._applyValidation(u,a,this._utils.schemas[a]),e[a]=u}for(let a of i){let u=r.override[a];this._applyUnknownHandler(a,u,e,(p,h)=>{let m=this._utils.schemas[p];this._applyValidation(h,p,m),e[p]=h})}}}}},ku;function IT(t,e,{logger:r=!1,isCLI:s=!1,passThrough:i=!1,FlagSchema:a,descriptor:u}={}){if(s){if(!a)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=Ci;let p=i?Array.isArray(i)?(D,g)=>i.includes(D)?{[D]:g}:void 0:(D,g)=>({[D]:g}):(D,g,E)=>{let{_:x,...T}=E.schemas;return ey(D,g,{...E,schemas:T})},h=NT(e,{isCLI:s,FlagSchema:a}),m=new kT(h,{logger:r,unknown:p,descriptor:u}),f=r!==!1;f&&ku&&(m._hasDeprecationWarned=ku);let d=m.normalize(t);return f&&(ku=m._hasDeprecationWarned),d}function NT(t,{isCLI:e,FlagSchema:r}){let s=[];e&&s.push(hT.create({name:"_"}));for(let i of t)s.push(BT(i,{isCLI:e,optionInfos:t,FlagSchema:r})),i.alias&&e&&s.push(cT.create({name:i.alias,sourceName:i.name}));return s}function BT(t,{isCLI:e,optionInfos:r,FlagSchema:s}){let{name:i}=t,a={name:i},u,p={};switch(t.type){case"int":u=ST,e&&(a.preprocess=Number);break;case"string":u=Cd;break;case"choice":u=TT,a.choices=t.choices.map(h=>h?.redirect?{...h,redirect:{to:{key:t.name,value:h.redirect}}}:h);break;case"boolean":u=fT;break;case"flag":u=s,a.flags=r.flatMap(h=>[h.alias,h.description&&h.name,h.oppositeDescription&&`no-${h.name}`].filter(Boolean));break;case"path":u=Cd;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?a.validate=(h,m,f)=>t.exception(h)||m.validate(h,f):a.validate=(h,m,f)=>h===void 0||m.validate(h,f),t.redirect&&(p.redirect=h=>h?{to:typeof t.redirect=="string"?t.redirect:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(p.deprecated=!0),e&&!t.array){let h=a.preprocess||(m=>m);a.preprocess=(m,f,d)=>f.preprocess(h(Array.isArray(m)?rt(0,m,-1):m),d)}return t.array?dT.create({...e?{preprocess:h=>Array.isArray(h)?h:[h]}:{},...p,valueSchema:u.create(a)}):u.create({...a,...p})}var LT=IT,OT=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}},_T=Qn("findLast",function(){if(Array.isArray(this))return OT}),ry=_T,MT=Symbol.for("PRETTIER_IS_FRONT_MATTER"),$T=[];function jT(t){return!!t?.[MT]}var fp=jT,sy=new Set(["yaml","toml"]),iy=({node:t})=>fp(t)&&sy.has(t.language);async function RT(t,e,r,s){let{node:i}=r,{language:a}=i;if(!sy.has(a))return;let u=i.value.trim(),p;if(u){let h=a==="yaml"?a:Km(s,{language:a});if(!h)return;p=u?await t(u,{parser:h}):""}else p=u;return wm([i.startDelimiter,i.explicitLanguage??"",Or,p,p?Or:"",i.endDelimiter])}function UT(t,e){return iy({node:t})&&(delete e.end,delete e.raw,delete e.value),e}var qT=UT;function VT({node:t}){return t.raw}var zT=VT,ny=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),HT=t=>Object.keys(t).filter(e=>!ny.has(e));function WT(t,e){let r=t?s=>t(s,ny):HT;return e?new Proxy(r,{apply:(s,i,a)=>fp(a[0])?$T:Reflect.apply(s,i,a)}):r}var Td=WT;function ay(t,e){if(!e)throw new Error("parserName is required.");let r=ry(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 Wm(s)}function JT(t,e){if(!e)throw new Error("astFormat is required.");let r=ry(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 Wm(s)}function mp({plugins:t,parser:e}){let r=ay(t,e);return oy(r,e)}function oy(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}async function XT(t,e){let r=t.printers[e],s=typeof r=="function"?await r():r;return KT(s)}var Iu=new WeakMap;function KT(t){if(Iu.has(t))return Iu.get(t);let{features:e,getVisitorKeys:r,embed:s,massageAstNode:i,print:a,...u}=t;e=ZT(e);let p=e.experimental_frontMatterSupport;r=Td(r,p.massageAstNode||p.embed||p.print);let h=i;i&&p.massageAstNode&&(h=new Proxy(i,{apply(D,g,E){return qT(...E),Reflect.apply(D,g,E)}}));let m=s;if(s){let D;m=new Proxy(s,{get(g,E,x){return E==="getVisitorKeys"?(D??(D=s.getVisitorKeys?Td(s.getVisitorKeys,p.massageAstNode||p.embed):r),D):Reflect.get(g,E,x)},apply:(g,E,x)=>p.embed&&iy(...x)?RT:Reflect.apply(g,E,x)})}let f=a;p.print&&(f=new Proxy(a,{apply(D,g,E){let[x]=E;return fp(x.node)?zT(x):Reflect.apply(D,g,E)}}));let d={features:e,getVisitorKeys:r,embed:m,massageAstNode:h,print:f,...u};return Iu.set(t,d),d}var GT=["clean","embed","print"],YT=Object.fromEntries(GT.map(t=>[t,!1]));function QT(t){return{...YT,...t}}function ZT(t){return{experimental_avoidAstMutation:!1,...t,experimental_frontMatterSupport:QT(t?.experimental_frontMatterSupport)}}var bd={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function eb(t,e={}){let r={...t};if(!r.parser)if(r.filepath){if(r.parser=Km(r,{physicalFile:r.filepath}),!r.parser)throw new cd(`No parser could be inferred for file "${r.filepath}".`)}else throw new cd("No parser and no file path given, couldn't infer a parser.");let s=Jm({plugins:t.plugins,showDeprecated:!0}).options,i={...bd,...Object.fromEntries(s.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},a=ay(r.plugins,r.parser),u=await oy(a,r.parser);r.astFormat=u.astFormat,r.locEnd=u.locEnd,r.locStart=u.locStart;let p=a.printers?.[u.astFormat]?a:JT(r.plugins,u.astFormat),h=await XT(p,u.astFormat);r.printer=h,r.getVisitorKeys=h.getVisitorKeys;let m=p.defaultOptions?Object.fromEntries(Object.entries(p.defaultOptions).filter(([,d])=>d!==void 0)):{},f={...i,...m};for(let[d,D]of Object.entries(f))(r[d]===null||r[d]===void 0)&&(r[d]=D);return r.parser==="json"&&(r.trailingComma="none"),LT(r,s,{passThrough:Object.keys(bd),...e})}var _i=eb;yA(gA());var yp={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(yp.keyword);new Set(yp.strict);new Set(yp.strictBind);var Ia=(t,e)=>r=>t(e(r));function uy(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:Ia(Ia(t.white,t.bgRed),t.bold),gutter:t.gray,marker:Ia(t.red,t.bold),message:Ia(t.red,t.bold),reset:t.reset}}uy(Gm());uy(Gm());function tb(){return new Proxy({},{get:()=>t=>t})}var Sd=/\r\n|[\n\r\u2028\u2029]/;function rb(t,e,r){let s=Object.assign({column:0,line:-1},t.start),i=Object.assign({},s,t.end),{linesAbove:a=2,linesBelow:u=3}=r||{},p=s.line,h=s.column,m=i.line,f=i.column,d=Math.max(p-(a+1),0),D=Math.min(e.length,m+u);p===-1&&(d=0),m===-1&&(D=e.length);let g=m-p,E={};if(g)for(let x=0;x<=g;x++){let T=x+p;if(!h)E[T]=!0;else if(x===0){let b=e[T-1].length;E[T]=[h,b-h+1]}else if(x===g)E[T]=[0,f];else{let b=e[T-x].length;E[T]=[0,b]}}else h===f?h?E[p]=[h,0]:E[p]=!0:E[p]=[h,f-h];return{start:d,end:D,markerLines:E}}function sb(t,e,r={}){let s=tb(),i=t.split(Sd),{start:a,end:u,markerLines:p}=rb(e,i,r),h=e.start&&typeof e.start.column=="number",m=String(u).length,f=t.split(Sd,u).slice(a,u).map((d,D)=>{let g=a+1+D,E=` ${` ${g}`.slice(-m)} |`,x=p[g],T=!p[g+1];if(x){let b="";if(Array.isArray(x)){let A=d.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),S=x[1]||1;b=[`
|
|
19
|
+
`,s.gutter(E.replace(/\d/g," "))," ",A,s.marker("^").repeat(S)].join(""),T&&r.message&&(b+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(E),d.length>0?` ${d}`:"",b].join("")}else return` ${s.gutter(E)}${d.length>0?` ${d}`:""}`}).join(`
|
|
20
|
+
`);return r.message&&!h&&(f=`${" ".repeat(m+1)}${r.message}
|
|
21
|
+
${f}`),f}async function ib(t,e){let r=await mp(e),s=r.preprocess?await r.preprocess(t,e):t;e.originalText=s;let i;try{i=await r.parse(s,e,e)}catch(a){nb(a,t)}return{text:s,ast:i}}function nb(t,e){let{loc:r}=t;if(r){let s=sb(e,r,{});throw t.message+=`
|
|
22
|
+
`+s,t.codeFrame=s,t}throw t}var ea=ib;async function ab(t,e,r,s,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:a}=r,{embed:u}=a;if(!u)return;if(u.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:p}=a,{getVisitorKeys:h}=u,m=[];D();let f=t.stack;for(let{print:g,node:E,pathStack:x}of m)try{t.stack=x;let T=await g(d,e,t,r);T&&i.set(E,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}t.stack=f;function d(g,E){return ob(g,E,r,s)}function D(){let{node:g}=t;if(g===null||typeof g!="object"||p?.(t))return;for(let x of h(g))Array.isArray(g[x])?t.each(D,x):t.call(D,x);let E=u(t,r);if(E){if(typeof E=="function"){m.push({print:E,node:g,pathStack:[...t.stack]});return}i.set(g,E)}}}async function ob(t,e,r,s){let i=await _i({...r,...e,parentParser:r.parser,originalText:t,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:a}=await ea(t,i),u=await s(a,i);return vm(u)}function ub(t,e,r,s){let{originalText:i,[Symbol.for("comments")]:a,locStart:u,locEnd:p,[Symbol.for("printedComments")]:h}=e,{node:m}=t,f=u(m),d=p(m);for(let g of a)u(g)>=f&&p(g)<=d&&h.add(g);let{printPrettierIgnored:D}=e.printer;return D?D(t,e,r,s):i.slice(f,d)}var lb=ub;async function So(t,e){({ast:t}=await ly(t,e));let r=new Map,s=new bC(t),i=new Map;await ab(s,u,e,So,i);let a=await Pd(s,e,u,void 0,i);if(qC(e),e.cursorOffset>=0){if(e.nodeAfterCursor&&!e.nodeBeforeCursor)return[Os,a];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return[a,Os]}return a;function u(h,m){return h===void 0||h===s?p(m):Array.isArray(h)?s.call(()=>p(m),...h):s.call(()=>p(m),h)}function p(h){let m=s.node;if(m==null)return"";let f=pp(m)&&h===void 0;if(f&&r.has(m))return r.get(m);let d=Pd(s,e,u,h,i);return f&&r.set(m,d),d}}function Pd(t,e,r,s,i){let{node:a}=t,{printer:u}=e,p;switch(u.hasPrettierIgnore?.(t)?p=lb(t,e,r,s):i.has(a)?p=i.get(a):p=u.print(t,e,r,s),a){case e.cursorNode:p=Ka(p,h=>[Os,h,Os]);break;case e.nodeBeforeCursor:p=Ka(p,h=>[h,Os]);break;case e.nodeAfterCursor:p=Ka(p,h=>[Os,h]);break}return u.printComment&&!u.willPrintOwnComments?.(t,e)&&(p=UC(t,p,e)),p}async function ly(t,e){let r=t.comments??[];e[Symbol.for("comments")]=r,e[Symbol.for("printedComments")]=new Set,LC(t,e);let{printer:{preprocess:s}}=e;return t=s?await s(t,e):t,{ast:t,comments:r}}function pb(t,e){let{cursorOffset:r,locStart:s,locEnd:i,getVisitorKeys:a}=e,u=g=>s(g)<=r&&i(g)>=r,p=t,h=[t];for(let g of IC(t,{getVisitorKeys:a,filter:u}))h.push(g),p=g;if(NC(p,{getVisitorKeys:a}))return{cursorNode:p};let m,f,d=-1,D=Number.POSITIVE_INFINITY;for(;h.length>0&&(m===void 0||f===void 0);){p=h.pop();let g=m!==void 0,E=f!==void 0;for(let x of bo(p,{getVisitorKeys:a})){if(!g){let T=i(x);T<=r&&T>d&&(m=x,d=T)}if(!E){let T=s(x);T>=r&&T<D&&(f=x,D=T)}}}return{nodeBeforeCursor:m,nodeAfterCursor:f}}var py=pb;function cb(t,e){let{printer:r}=e,s=r.massageAstNode;if(!s)return t;let{getVisitorKeys:i}=r,{ignoredProperties:a}=s;return u(t);function u(p,h){if(!pp(p))return p;if(Array.isArray(p))return p.map(D=>u(D,h)).filter(Boolean);let m={},f=new Set(i(p));for(let D in p)!Object.prototype.hasOwnProperty.call(p,D)||a?.has(D)||(f.has(D)?m[D]=u(p[D],p):m[D]=p[D]);let d=s(p,m,h);if(d!==null)return d??m}}var hb=cb,db=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},fb=Qn("findLastIndex",function(){if(Array.isArray(this))return db}),mb=fb,yb=({parser:t})=>t==="json"||t==="json5"||t==="jsonc"||t==="json-stringify";function gb(t,e){return e=new Set(e),t.find(r=>cy.has(r.type)&&e.has(r))}function vd(t){let e=mb(0,t,r=>r.type!=="Program"&&r.type!=="File");return e===-1?t:t.slice(0,e+1)}function Db(t,e,{locStart:r,locEnd:s}){let[i,...a]=t,[u,...p]=e;if(i===u)return[i,u];let h=r(i);for(let f of vd(p))if(r(f)>=h)u=f;else break;let m=s(u);for(let f of vd(a)){if(s(f)<=m)i=f;else break;if(i===u)break}return[i,u]}function ml(t,e,r,s,i=[],a){let{locStart:u,locEnd:p}=r,h=u(t),m=p(t);if(e>m||e<h||a==="rangeEnd"&&e===h||a==="rangeStart"&&e===m)return;let f=[t,...i],d=Um(t,f,{cache:qm,locStart:u,locEnd:p,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let D of d){let g=ml(D,e,r,s,f,a);if(g)return g}if(s(t,i[0]))return f}function xb(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 cy=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Eb=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function wd(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 xb(e.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return cy.has(e.type);case"graphql":return Eb.has(e.kind);case"vue":return e.tag!=="root"}return!1}function Ab(t,e,r){let{rangeStart:s,rangeEnd:i,locStart:a,locEnd:u}=e,p=t.slice(s,i).search(/\S/u),h=p===-1;if(!h)for(s+=p;i>s&&!/\S/u.test(t[i-1]);--i);let m=ml(r,s,e,(g,E)=>wd(e,g,E),[],"rangeStart");if(!m)return;let f=h?m:ml(r,i,e,g=>wd(e,g),[],"rangeEnd");if(!f)return;let d,D;if(yb(e)){let g=gb(m,f);d=g,D=g}else[d,D]=Db(m,f,e);return[Math.min(a(d),a(D)),Math.max(u(d),u(D))]}var hy="\uFEFF",Fd=Symbol("cursor");async function dy(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:i}=await ea(t,e);e.cursorOffset>=0&&(e={...e,...py(s,e)});let a=await So(s,e);r>0&&(a=Fm([Or,a],r,e.tabWidth));let u=To(a,e);if(r>0){let h=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(h),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>h.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=h+ip(e.endOfLine)}let p=e[Symbol.for("comments")];if(e.cursorOffset>=0){let h,m,f,d;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&u.cursorNodeText)if(f=u.cursorNodeStart,d=u.cursorNodeText,e.cursorNode)h=e.locStart(e.cursorNode),m=i.slice(h,e.locEnd(e.cursorNode));else{if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");h=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let b=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):i.length;m=i.slice(h,b)}else h=0,m=i,f=0,d=u.formatted;let D=e.cursorOffset-h;if(m===d)return{formatted:u.formatted,cursorOffset:f+D,comments:p};let g=m.split("");g.splice(D,0,Fd);let E=d.split(""),x=bA(g,E),T=f;for(let b of x)if(b.removed){if(b.value.includes(Fd))break}else T+=b.count;return{formatted:u.formatted,cursorOffset:T,comments:p}}return{formatted:u.formatted,cursorOffset:-1,comments:p}}async function Cb(t,e){let{ast:r,text:s}=await ea(t,e),[i,a]=Ab(s,e,r)??[0,0],u=s.slice(i,a),p=Math.min(i,s.lastIndexOf(`
|
|
23
|
+
`,i)+1),h=s.slice(p,i).match(/^\s*/u)[0],m=lp(h,e.tabWidth),f=await dy(u,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>i&&e.cursorOffset<=a?e.cursorOffset-i:-1,endOfLine:"lf"},m),d=f.formatted.trimEnd(),{cursorOffset:D}=e;D>a?D+=d.length-u.length:f.cursorOffset>=0&&(D=f.cursorOffset+i);let g=s.slice(0,i)+d+s.slice(a);if(e.endOfLine!=="lf"){let E=ip(e.endOfLine);D>=0&&E===`\r
|
|
24
|
+
`&&(D+=Sm(g.slice(0,D),`
|
|
25
|
+
`)),g=xo(0,g,`
|
|
26
|
+
`,E)}return{formatted:g,cursorOffset:D,comments:f.comments}}function Nu(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function kd(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:i}=e;return r=Nu(t,r,-1),s=Nu(t,s,0),i=Nu(t,i,t.length),{...e,cursorOffset:r,rangeStart:s,rangeEnd:i}}function fy(t,e){let{cursorOffset:r,rangeStart:s,rangeEnd:i,endOfLine:a}=kd(t,e),u=t.charAt(0)===hy;if(u&&(t=t.slice(1),r--,s--,i--),a==="auto"&&(a=kA(t)),t.includes("\r")){let p=h=>Sm(t.slice(0,Math.max(h,0)),`\r
|
|
27
|
+
`);r-=p(r),s-=p(s),i-=p(i),t=BA(t)}return{hasBOM:u,text:t,options:kd(t,{...e,cursorOffset:r,rangeStart:s,rangeEnd:i,endOfLine:a})}}async function Id(t,e){let r=await mp(e);return!r.hasPragma||r.hasPragma(t)}async function Tb(t,e){return(await mp(e)).hasIgnorePragma?.(t)}async function my(t,e){let{hasBOM:r,text:s,options:i}=fy(t,await _i(e));if(i.rangeStart>=i.rangeEnd&&s!==""||i.requirePragma&&!await Id(s,i)||i.checkIgnorePragma&&await Tb(s,i))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<s.length?a=await Cb(s,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Id(s,i)&&(s=i.printer.insertPragma(s)),a=await dy(s,i)),r&&(a.formatted=hy+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function bb(t,e,r){let{text:s,options:i}=fy(t,await _i(e)),a=await ea(s,i);return r&&(r.preprocessForPrint&&(a.ast=await ly(a.ast,i)),r.massage&&(a.ast=hb(a.ast,i))),a}async function Sb(t,e){e=await _i(e);let r=await So(t,e);return To(r,e)}async function Pb(t,e){let r=lC(t),{formatted:s}=await my(r,{...e,parser:"__js_expression"});return s}async function vb(t,e){e=await _i(e);let{ast:r}=await ea(t,e);return e.cursorOffset>=0&&(e={...e,...py(r,e)}),So(r,e)}async function wb(t,e){return To(t,await _i(e))}var yy={};rp(yy,{builders:()=>Fb,printer:()=>kb,utils:()=>Ib});var Fb={join:Im,line:Nm,softline:aC,hardline:Or,literalline:Lm,group:km,conditionalGroup:rC,fill:tC,lineSuffix:hl,lineSuffixBoundary:oC,cursor:Os,breakParent:Co,ifBreak:sC,trim:uC,indent:lo,indentIfBreak:iC,align:vi,addAlignmentToDoc:Fm,markAsRoot:wm,dedentToRoot:ZA,dedent:eC,hardlineWithoutBreakParent:op,literallineWithoutBreakParent:Bm,label:nC,concat:t=>t},kb={printDocToString:To},Ib={willBreak:VA,traverseDoc:np,findInDoc:ap,mapDoc:Ao,removeLines:WA,stripTrailingHardline:vm,replaceEndOfLine:KA,canBreak:YA},Nb="3.8.1",gy={};rp(gy,{addDanglingComment:()=>Ns,addLeadingComment:()=>vn,addTrailingComment:()=>wn,getAlignmentSize:()=>lp,getIndentSize:()=>$b,getMaxContinuousCount:()=>Ub,getNextNonSpaceNonCommentCharacter:()=>Vb,getNextNonSpaceNonCommentCharacterIndex:()=>Zb,getPreferredQuote:()=>Jb,getStringWidth:()=>up,hasNewline:()=>ps,hasNewlineInRange:()=>Kb,hasSpaces:()=>Yb,isNextLineEmpty:()=>iS,isNextLineEmptyAfterIndex:()=>Ep,isPreviousLineEmpty:()=>tS,makeString:()=>sS,skip:()=>Zn,skipEverythingButNewLine:()=>jm,skipInlineComment:()=>gp,skipNewline:()=>js,skipSpaces:()=>ds,skipToLineEnd:()=>$m,skipTrailingComment:()=>Dp,skipWhitespace:()=>PC});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 gp=Bb;function Lb(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?jm(t,e):e}var Dp=Lb;function Ob(t,e){let r=null,s=e;for(;s!==r;)r=s,s=ds(t,s),s=gp(t,s),s=Dp(t,s),s=js(t,s);return s}var xp=Ob;function _b(t,e){let r=null,s=e;for(;s!==r;)r=s,s=$m(t,s),s=gp(t,s),s=ds(t,s);return s=Dp(t,s),s=js(t,s),s!==!1&&ps(t,s)}var Ep=_b;function Mb(t,e){let r=t.lastIndexOf(`
|
|
28
|
+
`);return r===-1?0:lp(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var $b=Mb;function jb(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Rb(t,e){let r=t.matchAll(new RegExp(`(?:${jb(e)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((s,[i])=>Math.max(s,i.length),0)/e.length}var Ub=Rb;function qb(t,e){let r=xp(t,e);return r===!1?"":t.charAt(r)}var Vb=qb,Dy=Object.freeze({character:"'",codePoint:39}),xy=Object.freeze({character:'"',codePoint:34}),zb=Object.freeze({preferred:Dy,alternate:xy}),Hb=Object.freeze({preferred:xy,alternate:Dy});function Wb(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?zb:Hb,{length:i}=t,a=0,u=0;for(let p=0;p<i;p++){let h=t.charCodeAt(p);h===r.codePoint?a++:h===s.codePoint&&u++}return(a>u?s:r).character}var Jb=Wb;function Xb(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
|
|
29
|
+
`)return!0;return!1}var Kb=Xb;function Gb(t,e,r={}){return ds(t,r.backwards?e-1:e,r)!==e}var Yb=Gb;function Qb(t,e,r){return xp(t,r(e))}function Zb(t,e){return arguments.length===2||typeof e=="number"?xp(t,e):Qb(...arguments)}function eS(t,e,r){return hp(t,r(e))}function tS(t,e){return arguments.length===2||typeof e=="number"?hp(t,e):eS(...arguments)}function rS(t,e,r){return Ep(t,r(e))}function sS(t,e,r){let s=e==='"'?"'":'"',i=xo(0,t,/\\(.)|(["'])/gsu,(a,u,p)=>u===s?u:p===e?"\\"+p:p||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}function iS(t,e){return arguments.length===2||typeof e=="number"?Ep(t,e):rS(...arguments)}function Ls(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 Ey=Ls(my);async function Ay(t,e){let{formatted:r}=await Ey(t,{...e,cursorOffset:-1});return r}async function nS(t,e){return await Ay(t,e)===t}var aS=Ls(Jm,0),oS={parse:Ls(bb),formatAST:Ls(Sb),formatDoc:Ls(Pb),printToDoc:Ls(vb),printDocToString:Ls(wb)},uS=Object.defineProperty,Ap=(t,e)=>{for(var r in e)uS(t,r,{get:e[r],enumerable:!0})},Cy={};Ap(Cy,{parsers:()=>ig});var Ty={};Ap(Ty,{__babel_estree:()=>Zv,__js_expression:()=>sf,__ts_expression:()=>nf,__vue_event_binding:()=>tf,__vue_expression:()=>sf,__vue_ts_event_binding:()=>rf,__vue_ts_expression:()=>nf,babel:()=>tf,"babel-flow":()=>eg,"babel-ts":()=>rf});function lS(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 cs=class{line;column;index;constructor(e,r,s){this.line=e,this.column=r,this.index=s}},po=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function Jt(t,e){let{line:r,column:s,index:i}=t;return new cs(r,s+e,i+e)}var Nd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",pS={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Nd},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Nd}},Bd={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"},Ya=t=>t.type==="UpdateExpression"?Bd.UpdateExpression[`${t.prefix}`]:Bd[t.type],cS={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 ${Ya(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Ya(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Ya(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."},hS={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."},dS={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)}\`.`},fS=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),mS=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 ${Ya({type:t})}; please wrap it in parentheses.`},{}),yS=["message"];function Ld(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function gS({toMessage:t,code:e,reasonCode:r,syntaxPlugin:s}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function a(u,p){let h=new SyntaxError;return h.code=e,h.reasonCode=r,h.loc=u,h.pos=u.index,h.syntaxPlugin=s,i&&(h.missingPlugin=p.missingPlugin),Ld(h,"clone",function(m={}){let{line:f,column:d,index:D}=m.loc??u;return a(new cs(f,d,D),Object.assign({},p,m.details))}),Ld(h,"details",p),Object.defineProperty(h,"message",{configurable:!0,get(){let m=`${t(p)} (${u.line}:${u.column})`;return this.message=m,m},set(m){Object.defineProperty(this,"message",{value:m,writable:!0})}}),h}}function dr(t,e){if(Array.isArray(t))return s=>dr(s,t[0]);let r={};for(let s of Object.keys(t)){let i=t[s],a=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:u}=a,p=lS(a,yS),h=typeof u=="string"?()=>u:u;r[s]=gS(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:h},e?{syntaxPlugin:e}:{},p))}return r}var M=Object.assign({},dr(pS),dr(cS),dr(hS),dr(dS),dr`pipelineOperator`(mS));function DS(){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 xS(t){let e=DS();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:ES}=Object,Od=(t,e)=>{t&&ES(t,e,{enumerable:!1,value:t[e]})};function nn(t){return Od(t.loc.start,"index"),Od(t.loc.end,"index"),t}var AS=t=>class extends t{parse(){let e=nn(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(nn)),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:a,raw:u,value:p}=e,h=Object.create(e.constructor.prototype);return h.type="Literal",h.start=r,h.end=s,h.loc=i,h.range=a,h.raw=u,h.value=p,h}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,a){super.parseBlockBody(e,r,s,i,a);let u=e.directives.map(p=>this.directiveToStmt(p));e.body=u.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,a,u,p=!1){let h=this.startNode();h.kind=e.kind,h=super.parseMethod(h,r,s,i,a,u,p),delete h.kind;let{typeParameters:m}=e;m&&(delete e.typeParameters,h.typeParameters=m,this.resetStartLocationFromNode(h,m));let f=this.castNodeTo(h,this.hasPlugin("typescript")&&!h.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return e.value=f,u==="ClassPrivateMethod"&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):u==="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 a=super.parseObjectProperty(e,r,s,i);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}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(M.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(M.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:a}=i;a?.type==="ClassDeclaration"&&a.decorators?.length>0&&a.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,a){let u=super.parseMember(e,r,s,i,a);return u.type==="OptionalMemberExpression"?this.castNodeTo(u,"MemberExpression"):u.optional=!1,u}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 nn(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),nn(e)}resetEndLocation(e,r=this.state.lastTokEndLoc){super.resetEndLocation(e,r),nn(e)}},Na=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},qe={brace:new Na("{"),j_oTag:new Na("<tag"),j_cTag:new Na("</tag"),j_expr:new Na("<tag>...</tag>",!0)},Fe=!0,oe=!0,Bu=!0,an=!0,ts=!0,CS=!0,by=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}},Cp=new Map;function Oe(t,e={}){e.keyword=t;let r=de(t,e);return Cp.set(t,r),r}function Dt(t,e){return de(t,{beforeExpr:Fe,binop:e})}var Fn=-1,Tp=[],bp=[],Sp=[],Pp=[],vp=[],wp=[];function de(t,e={}){return++Fn,bp.push(t),Sp.push(e.binop??-1),Pp.push(e.beforeExpr??!1),vp.push(e.startsExpr??!1),wp.push(e.prefix??!1),Tp.push(new by(t,e)),Fn}function Ie(t,e={}){return++Fn,Cp.set(t,Fn),bp.push(t),Sp.push(e.binop??-1),Pp.push(e.beforeExpr??!1),vp.push(e.startsExpr??!1),wp.push(e.prefix??!1),Tp.push(new by("name",e)),Fn}var TS={bracketL:de("[",{beforeExpr:Fe,startsExpr:oe}),bracketHashL:de("#[",{beforeExpr:Fe,startsExpr:oe}),bracketBarL:de("[|",{beforeExpr:Fe,startsExpr:oe}),bracketR:de("]"),bracketBarR:de("|]"),braceL:de("{",{beforeExpr:Fe,startsExpr:oe}),braceBarL:de("{|",{beforeExpr:Fe,startsExpr:oe}),braceHashL:de("#{",{beforeExpr:Fe,startsExpr:oe}),braceR:de("}"),braceBarR:de("|}"),parenL:de("(",{beforeExpr:Fe,startsExpr:oe}),parenR:de(")"),comma:de(",",{beforeExpr:Fe}),semi:de(";",{beforeExpr:Fe}),colon:de(":",{beforeExpr:Fe}),doubleColon:de("::",{beforeExpr:Fe}),dot:de("."),question:de("?",{beforeExpr:Fe}),questionDot:de("?."),arrow:de("=>",{beforeExpr:Fe}),template:de("template"),ellipsis:de("...",{beforeExpr:Fe}),backQuote:de("`",{startsExpr:oe}),dollarBraceL:de("${",{beforeExpr:Fe,startsExpr:oe}),templateTail:de("...`",{startsExpr:oe}),templateNonTail:de("...${",{beforeExpr:Fe,startsExpr:oe}),at:de("@"),hash:de("#",{startsExpr:oe}),interpreterDirective:de("#!..."),eq:de("=",{beforeExpr:Fe,isAssign:an}),assign:de("_=",{beforeExpr:Fe,isAssign:an}),slashAssign:de("_=",{beforeExpr:Fe,isAssign:an}),xorAssign:de("_=",{beforeExpr:Fe,isAssign:an}),moduloAssign:de("_=",{beforeExpr:Fe,isAssign:an}),incDec:de("++/--",{prefix:ts,postfix:CS,startsExpr:oe}),bang:de("!",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),tilde:de("~",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),doubleCaret:de("^^",{startsExpr:oe}),doubleAt:de("@@",{startsExpr:oe}),pipeline:Dt("|>",0),nullishCoalescing:Dt("??",1),logicalOR:Dt("||",1),logicalAND:Dt("&&",2),bitwiseOR:Dt("|",3),bitwiseXOR:Dt("^",4),bitwiseAND:Dt("&",5),equality:Dt("==/!=/===/!==",6),lt:Dt("</>/<=/>=",7),gt:Dt("</>/<=/>=",7),relational:Dt("</>/<=/>=",7),bitShift:Dt("<</>>/>>>",8),bitShiftL:Dt("<</>>/>>>",8),bitShiftR:Dt("<</>>/>>>",8),plusMin:de("+/-",{beforeExpr:Fe,binop:9,prefix:ts,startsExpr:oe}),modulo:de("%",{binop:10,startsExpr:oe}),star:de("*",{binop:10}),slash:Dt("/",10),exponent:de("**",{beforeExpr:Fe,binop:11,rightAssociative:!0}),_in:Oe("in",{beforeExpr:Fe,binop:7}),_instanceof:Oe("instanceof",{beforeExpr:Fe,binop:7}),_break:Oe("break"),_case:Oe("case",{beforeExpr:Fe}),_catch:Oe("catch"),_continue:Oe("continue"),_debugger:Oe("debugger"),_default:Oe("default",{beforeExpr:Fe}),_else:Oe("else",{beforeExpr:Fe}),_finally:Oe("finally"),_function:Oe("function",{startsExpr:oe}),_if:Oe("if"),_return:Oe("return",{beforeExpr:Fe}),_switch:Oe("switch"),_throw:Oe("throw",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),_try:Oe("try"),_var:Oe("var"),_const:Oe("const"),_with:Oe("with"),_new:Oe("new",{beforeExpr:Fe,startsExpr:oe}),_this:Oe("this",{startsExpr:oe}),_super:Oe("super",{startsExpr:oe}),_class:Oe("class",{startsExpr:oe}),_extends:Oe("extends",{beforeExpr:Fe}),_export:Oe("export"),_import:Oe("import",{startsExpr:oe}),_null:Oe("null",{startsExpr:oe}),_true:Oe("true",{startsExpr:oe}),_false:Oe("false",{startsExpr:oe}),_typeof:Oe("typeof",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),_void:Oe("void",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),_delete:Oe("delete",{beforeExpr:Fe,prefix:ts,startsExpr:oe}),_do:Oe("do",{isLoop:Bu,beforeExpr:Fe}),_for:Oe("for",{isLoop:Bu}),_while:Oe("while",{isLoop:Bu}),_as:Ie("as",{startsExpr:oe}),_assert:Ie("assert",{startsExpr:oe}),_async:Ie("async",{startsExpr:oe}),_await:Ie("await",{startsExpr:oe}),_defer:Ie("defer",{startsExpr:oe}),_from:Ie("from",{startsExpr:oe}),_get:Ie("get",{startsExpr:oe}),_let:Ie("let",{startsExpr:oe}),_meta:Ie("meta",{startsExpr:oe}),_of:Ie("of",{startsExpr:oe}),_sent:Ie("sent",{startsExpr:oe}),_set:Ie("set",{startsExpr:oe}),_source:Ie("source",{startsExpr:oe}),_static:Ie("static",{startsExpr:oe}),_using:Ie("using",{startsExpr:oe}),_yield:Ie("yield",{startsExpr:oe}),_asserts:Ie("asserts",{startsExpr:oe}),_checks:Ie("checks",{startsExpr:oe}),_exports:Ie("exports",{startsExpr:oe}),_global:Ie("global",{startsExpr:oe}),_implements:Ie("implements",{startsExpr:oe}),_intrinsic:Ie("intrinsic",{startsExpr:oe}),_infer:Ie("infer",{startsExpr:oe}),_is:Ie("is",{startsExpr:oe}),_mixins:Ie("mixins",{startsExpr:oe}),_proto:Ie("proto",{startsExpr:oe}),_require:Ie("require",{startsExpr:oe}),_satisfies:Ie("satisfies",{startsExpr:oe}),_keyof:Ie("keyof",{startsExpr:oe}),_readonly:Ie("readonly",{startsExpr:oe}),_unique:Ie("unique",{startsExpr:oe}),_abstract:Ie("abstract",{startsExpr:oe}),_declare:Ie("declare",{startsExpr:oe}),_enum:Ie("enum",{startsExpr:oe}),_module:Ie("module",{startsExpr:oe}),_namespace:Ie("namespace",{startsExpr:oe}),_interface:Ie("interface",{startsExpr:oe}),_type:Ie("type",{startsExpr:oe}),_opaque:Ie("opaque",{startsExpr:oe}),name:de("name",{startsExpr:oe}),placeholder:de("%%",{startsExpr:oe}),string:de("string",{startsExpr:oe}),num:de("num",{startsExpr:oe}),bigint:de("bigint",{startsExpr:oe}),decimal:de("decimal",{startsExpr:oe}),regexp:de("regexp",{startsExpr:oe}),privateName:de("#name",{startsExpr:oe}),eof:de("eof"),jsxName:de("jsxName"),jsxText:de("jsxText",{beforeExpr:Fe}),jsxTagStart:de("jsxTagStart",{startsExpr:oe}),jsxTagEnd:de("jsxTagEnd")};function je(t){return t>=93&&t<=133}function bS(t){return t<=92}function tr(t){return t>=58&&t<=133}function Sy(t){return t>=58&&t<=137}function SS(t){return Pp[t]}function Cn(t){return vp[t]}function PS(t){return t>=29&&t<=33}function _d(t){return t>=129&&t<=131}function vS(t){return t>=90&&t<=92}function Fp(t){return t>=58&&t<=92}function wS(t){return t>=39&&t<=59}function FS(t){return t===34}function kS(t){return wp[t]}function IS(t){return t>=121&&t<=123}function NS(t){return t>=124&&t<=130}function hs(t){return bp[t]}function Qa(t){return Sp[t]}function BS(t){return t===57}function yl(t){return t>=24&&t<=25}function Py(t){return Tp[t]}var kp="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",vy="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",LS=new RegExp("["+kp+"]"),OS=new RegExp("["+kp+vy+"]");kp=vy=null;var wy=[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],_S=[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 gl(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 fr(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&LS.test(String.fromCharCode(t)):gl(t,wy)}function Ms(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&&OS.test(String.fromCharCode(t)):gl(t,wy)||gl(t,_S)}var Ip={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"]},MS=new Set(Ip.keyword),$S=new Set(Ip.strict),jS=new Set(Ip.strictBind);function Fy(t,e){return e&&t==="await"||t==="enum"}function ky(t,e){return Fy(t,e)||$S.has(t)}function Iy(t){return jS.has(t)}function Ny(t,e){return ky(t,e)||Iy(t)}function RS(t){return MS.has(t)}function US(t,e,r){return t===64&&e===64&&fr(r)}var qS=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 VS(t){return qS.has(t)}var Np=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},Bp=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 Np(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 a=i.names.get(e)||0;r&16?a=a|4:(i.firstLexicalName||(i.firstLexicalName=e),a=a|2),i.names.set(e,a),r&8&&this.maybeExportDefined(i,e)}else if(r&4)for(let a=this.scopeStack.length-1;a>=0&&(i=this.scopeStack[a],this.checkRedeclarationInScope(i,e,r,s),i.names.set(e,(i.names.get(e)||0)|1),this.maybeExportDefined(i,e),!(i.flags&1667));--a);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(M.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}}},zS=class extends Np{declareFunctions=new Set},HS=class extends Bp{createScope(e){return new zS(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)}},WS=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ge=dr`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 JS(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Md(t){return t.importKind==="type"||t.importKind==="typeof"}var XS={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function KS(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 GS=/\*?\s*@((?:no)?flow)\b/,YS=t=>class extends t{flowPragma=void 0;getScopeHandler(){return HS}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=GS.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(ge.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 a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._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(ge.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 u=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ge.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(u))):(this.expectContextual(125,ge.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(u,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let i=null,a=!1;return s.forEach(u=>{JS(u)?(i==="CommonJS"&&this.raise(ge.AmbiguousDeclareModuleKind,u),i="ES"):u.type==="DeclareModuleExports"&&(a&&this.raise(ge.DuplicateDeclareModuleExports,u),i==="ES"&&this.raise(ge.AmbiguousDeclareModuleKind,u),i="CommonJS",a=!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(ge.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:XS[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(ge.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,s){WS.has(e)&&this.raise(s?ge.AssignReservedType:ge.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(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=i,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):e&&this.raise(ge.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()!==qe.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()===qe.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:a}){let u=this.state.inType;this.state.inType=!0;let p=this.startNode();p.callProperties=[],p.properties=[],p.indexers=[],p.internalSlots=[];let h,m,f=!1;for(r&&this.match(6)?(this.expect(6),h=9,m=!0):(this.expect(5),h=8,m=!1),p.exact=m;!this.match(h);){let D=!1,g=null,E=null,x=this.startNode();if(i&&this.isContextual(118)){let b=this.lookahead();b.type!==14&&b.type!==17&&(this.next(),g=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 T=this.flowParseVariance();if(this.eat(0))g!=null&&this.unexpected(g),this.eat(0)?(T&&this.unexpected(T.loc.start),p.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,D))):p.indexers.push(this.flowParseObjectTypeIndexer(x,D,T));else if(this.match(10)||this.match(47))g!=null&&this.unexpected(g),T&&this.unexpected(T.loc.start),p.callProperties.push(this.flowParseObjectTypeCallProperty(x,D));else{let b="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();Sy(S.type)&&(b=this.state.value,this.next())}let A=this.flowParseObjectTypeProperty(x,D,g,T,b,s,a??!m);A===null?(f=!0,E=this.state.lastTokStartLoc):p.properties.push(A)}this.flowObjectTypeSemicolon(),E&&!this.match(8)&&!this.match(9)&&this.raise(ge.UnexpectedExplicitInexactInObject,E)}this.expect(h),s&&(p.inexact=f);let d=this.finishNode(p,"ObjectTypeAnnotation");return this.state.inType=u,d}flowParseObjectTypeProperty(e,r,s,i,a,u,p){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(u?p||this.raise(ge.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ge.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(ge.InexactVariance,i),null):(u||this.raise(ge.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),i&&this.raise(ge.SpreadVariance,i),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=s!=null,e.kind=a;let h=!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)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(e),!u&&e.key.name==="constructor"&&e.value.this&&this.raise(ge.ThisParamBannedInConstructor,e.value.this)):(a!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(h=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=h,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"?ge.GetterMayNotHaveThisParam:ge.SetterMayNotHaveThisParam,e.value.this),s!==r&&this.raise(e.kind==="get"?M.BadGetterArity:M.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(M.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,a=this.startNode(),u=this.lookahead(),p=this.state.type===78;return u.type===14||u.type===17?(p&&!e&&this.raise(ge.ThisParamMustBeFirst,a),r=this.parseIdentifier(p),this.eat(17)&&(s=!0,p&&this.raise(ge.ThisParamMayNotBeOptional,a)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),a.name=r,a.optional=s,a.typeAnnotation=i,this.finishNode(a,"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,a=!1,u=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=u,i;case 47:{let p=this.startNode();return p.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),p.params=s.params,p.rest=s.rest,p.this=s._this,this.expect(11),this.expect(19),p.returnType=this.flowParseType(),this.finishNode(p,"FunctionTypeAnnotation")}case 10:{let p=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(je(this.state.type)||this.match(78)){let h=this.lookahead().type;a=h!==17&&h!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=u,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(),p.params=s.params,p.rest=s.rest,p.this=s._this,this.expect(11),this.expect(19),p.returnType=this.flowParseType(),p.typeParameters=null,this.finishNode(p,"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(ge.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(Fp(this.state.type)){let p=hs(this.state.type);return this.next(),super.createIdentifier(r,p)}else if(je(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),a=this.eat(18);s=s||a,this.expect(0),!a&&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=a,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(tr(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)||je(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(je(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||_d(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||_d(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(),a=this.state.noArrowAt,u=this.startNodeAt(r),{consequent:p,failed:h}=this.tryParseConditionalConsequent(),[m,f]=this.getArrowLikeExpressions(p);if(h||f.length>0){let d=[...a];if(f.length>0){this.state=i,this.state.noArrowAt=d;for(let D=0;D<f.length;D++)d.push(f[D].start);({consequent:p,failed:h}=this.tryParseConditionalConsequent()),[m,f]=this.getArrowLikeExpressions(p)}h&&m.length>1&&this.raise(ge.AmbiguousConditionalArrow,i.startLoc),h&&m.length===1&&(this.state=i,d.push(m[0].start),this.state.noArrowAt=d,{consequent:p,failed:h}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(p,!0),this.state.noArrowAt=a,this.expect(14),u.test=e,u.consequent=p,u.alternate=this.forwardNoArrowParamsConversionAt(u,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(u,"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 a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return r?(i.forEach(a=>this.finishArrowValidation(a)),[i,[]]):KS(i,a=>a.params.every(u=>this.isAssignable(u,!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(ge.DeclareClassElement,i):r.value&&this.raise(ge.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(M.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):US(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 a=e[i];a?.type==="TypeCastExpression"&&(e[i]=this.typeCastToParameter(a))}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(ge.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,a,u){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,a,u),r.params&&a){let p=r.params;p.length>0&&this.isThisParam(p[0])&&this.raise(ge.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&a&&r.value.params){let p=r.value.params;p.length>0&&this.isThisParam(p[0])&&this.raise(ge.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(ge.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ge.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,s,i,a,u,p){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let h;this.match(47)&&!u&&(h=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let m=super.parseObjPropValue(e,r,s,i,a,u,p);return h&&((m.value||m).typeParameters=h),m}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(ge.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ge.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ge.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ge.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(ge.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(ge.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,r,s){r.local=Md(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,a){let u=e.imported,p=null;u.type==="Identifier"&&(u.name==="type"?p="type":u.name==="typeof"&&(p="typeof"));let h=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let f=this.parseIdentifier(!0);p!==null&&!tr(this.state.type)?(e.imported=f,e.importKind=p,e.local=this.cloneIdentifier(f)):(e.imported=u,e.importKind=null,e.local=this.parseIdentifier())}else{if(p!==null&&tr(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=p;else{if(r)throw this.raise(M.ImportBindingIsString,e,{importName:u.value});e.imported=u,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(h=!0,e.local=this.cloneIdentifier(e.imported))}let m=Md(e);return s&&m&&this.raise(ge.ImportTypeShorthandOnlyInPureImport,e),(s||m)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),h&&!s&&!m&&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:a}=this.state,u=a[a.length-1];(u===qe.j_oTag||u===qe.j_expr)&&a.pop()}if(i?.error||this.match(47)){s=s||this.state.clone();let a,u=this.tryParse(h=>{a=this.flowParseTypeParameterDeclaration();let m=this.forwardNoArrowParamsConversionAt(a,()=>{let d=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(d,a),d});m.extra?.parenthesized&&h();let f=this.maybeUnwrapTypeCastExpression(m);return f.type!=="ArrowFunctionExpression"&&h(),f.typeParameters=a,this.resetStartLocationFromNode(f,a),m},s),p=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(ge.UnexpectedTypeParameterBeforeAsyncArrowFunction,a),u.node;p=u.node}if(i?.node)return this.state=i.failState,i.node;if(p)return this.state=u.failState,p;throw i?.thrown?i.error:u.thrown?u.error:this.raise(ge.UnexpectedTokenAfterTypeParameter,a)}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 a=0;a<e.params.length;a++)this.isThisParam(e.params[a])&&a>0&&this.raise(ge.ThisParamMustBeFirst,e.params[a]);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(),a=this.tryParse(p=>this.parseAsyncArrowWithTypeParameters(r)||p(),i);if(!a.error&&!a.aborted)return a.node;let u=this.tryParse(()=>super.parseSubscripts(e,r,s),i);if(u.node&&!u.error)return u.node;if(a.node)return this.state=a.failState,a.node;if(u.node)return this.state=u.failState,u.node;throw a.error||u.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 a=this.startNodeAt(r);return a.callee=e,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(r);a.callee=e;let u=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,i.optionalChainMember)));if(u.node)return u.error&&(this.state=u.failState),u.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(ge.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ge.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(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:r,memberName:s}){this.raise(ge.EnumBooleanMemberNotInitialized,e,{memberName:s,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?ge.EnumInvalidMemberInitializerSymbolType:ge.EnumInvalidMemberInitializerPrimaryType:ge.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(ge.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(ge.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:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let u=this.startNode(),{id:p,init:h}=this.flowEnumMemberRaw(),m=p.name;if(m==="")continue;/^[a-z]/.test(m)&&this.raise(ge.EnumInvalidMemberName,p,{memberName:m,suggestion:m[0].toUpperCase()+m.slice(1),enumName:e}),s.has(m)&&this.raise(ge.EnumDuplicateMemberName,p,{memberName:m,enumName:e}),s.add(m);let f={enumName:e,explicitType:r,memberName:m};switch(u.id=p,h.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(h.loc,f,"boolean"),u.init=h.value,i.booleanMembers.push(this.finishNode(u,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(h.loc,f,"number"),u.init=h.value,i.numberMembers.push(this.finishNode(u,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(h.loc,f,"string"),u.init=h.value,i.stringMembers.push(this.finishNode(u,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(h.loc,f);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(h.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(h.loc,f);break;default:i.defaultedMembers.push(this.finishNode(u,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:a}}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(!je(this.state.type))throw this.raise(ge.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(ge.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){let s=r.name,i=r.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:u,hasUnknownMembers:p}=this.flowEnumMembers({enumName:s,explicitType:a});switch(e.hasUnknownMembers=p,a){case"boolean":return e.explicitType=!0,e.members=u.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=u.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=u.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let h=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let m=u.booleanMembers.length,f=u.numberMembers.length,d=u.stringMembers.length,D=u.defaultedMembers.length;if(!m&&!f&&!d&&!D)return h();if(!m&&!f)return e.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!f&&!d&&m>=D){for(let g of u.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(g.loc.start,{enumName:s,memberName:g.id.name});return e.members=u.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!m&&!d&&f>=D){for(let g of u.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(g.loc.start,{enumName:s,memberName:g.id.name});return e.members=u.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(ge.EnumInconsistentMemberValues,i,{enumName:s}),h()}}}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}},QS=/\r\n|[\r\n\u2028\u2029]/,Ba=new RegExp(QS.source,"g");function bi(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $d(t,e,r){for(let s=e;s<r;s++)if(bi(t.charCodeAt(s)))return!0;return!1}var Lu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ou=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function ZS(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 Ir=dr`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 rs(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function Ti(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return Ti(t.object)+"."+Ti(t.property);throw new Error("Node had unexpected type: "+t.type)}var eP=t=>class extends t{jsxReadToken(){let e="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ir.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(Ir.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"}":">"});default:bi(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(M.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):bi(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(Ms(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:Fp(this.state.type)?e.name=hs(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(qe.brace),this.next(),e=this.jsxParseExpressionContainer(e,qe.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(Ir.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Ir.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(qe.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(Ir.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(qe.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(qe.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),a=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){a=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 u=this.startNode();this.setContext(qe.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(u)):s.push(this.jsxParseExpressionContainer(u,qe.j_expr));break}default:this.unexpected()}rs(i)&&!rs(a)&&a!==null?this.raise(Ir.MissingClosingTagFragment,a):!rs(i)&&rs(a)?this.raise(Ir.MissingClosingTagElement,a,{openingTagName:Ti(i.name)}):!rs(i)&&!rs(a)&&Ti(a.name)!==Ti(i.name)&&this.raise(Ir.MissingClosingTagElement,a,{openingTagName:Ti(i.name)})}if(rs(i)?(r.openingFragment=i,r.closingFragment=a):(r.openingElement=i,r.closingElement=a),r.children=s,this.match(47))throw this.raise(Ir.UnwrappedAdjacentJSXElements,this.state.startLoc);return rs(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===qe.j_expr){this.jsxReadToken();return}if(r===qe.j_oTag||r===qe.j_cTag){if(fr(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&r===qe.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,qe.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)r.push(qe.j_oTag);else if(s===144){let i=r[r.length-1];i===qe.j_oTag&&e===56||i===qe.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===qe.j_expr):(this.setContext(qe.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=SS(s)}},tP=class extends Np{tsNames=new Map},rP=class extends Bp{importsStack=[];createScope(e){return this.importsStack.push(new Set),new tP(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(M.VarRedeclaration,s,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let i=this.currentScope(),a=i.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(i,e),i.tsNames.set(e,a|16);return}super.declareName(e,r,s),r&2&&(r&1||(this.checkRedeclarationInScope(i,e,r,s),this.maybeExportDefined(i,e)),a=a|1),r&256&&(a=a|2),r&512&&(a=a|4),r&128&&(a=a|8),a&&i.tsNames.set(e,a)}isRedeclaredInScope(e,r,s){let i=e.tsNames.get(r);if((i&2)>0){if(s&256){let a=!!(s&512),u=(i&4)>0;return a!==u}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 a=this.scopeStack[i].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(e)}},sP=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 Za(t,e){return(t?2:0)|(e?1:0)}var iP=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 a of Object.keys(s))if(i?.[a]!==s[a])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function By(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function nP(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function Si(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function vs(t,e,r){let s=null,i=e.length;for(;s===null&&i>0;)s=e[--i];s===null||s.start>r.start?Si(t,r.comments):By(s,r.comments)}var aP=class extends iP{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,a=r[i];a.start===e.end&&(a.leadingNode=e,i--);let{start:u}=e;for(;i>=0;i--){let p=r[i],h=p.end;if(h>u)p.containingNode=e,this.finalizeComment(p),r.splice(i,1);else{h===u&&(p.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&By(e.leadingNode,r),e.trailingNode!==null&&nP(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":vs(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":vs(s,s.arguments,e);break;case"ImportExpression":vs(s,[s.source,s.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":vs(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":vs(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":vs(s,s.specifiers,e);break;case"TSEnumDeclaration":Si(s,r);break;case"TSEnumBody":vs(s,s.members,e);break;default:Si(s,r)}else Si(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,a=i.length;if(a===0)return;let u=a-1;for(;u>=0;u--){let p=i[u],h=p.end;if(p.start===s)p.leadingNode=e;else if(h===r)p.trailingNode=e;else if(h<r)break}}},oP=class Ly{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:a}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=s,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new cs(i,a,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=[qe.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 cs(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Ly;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}},uP=function(t){return t>=48&&t<=57},jd={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},La={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 Rd(t,e,r,s,i,a){let u=r,p=s,h=i,m="",f=null,d=r,{length:D}=e;for(;;){if(r>=D){a.unterminated(u,p,h),m+=e.slice(d,r);break}let g=e.charCodeAt(r);if(lP(t,g,e,r)){m+=e.slice(d,r);break}if(g===92){m+=e.slice(d,r);let E=pP(e,r,s,i,t==="template",a);E.ch===null&&!f?f={pos:r,lineStart:s,curLine:i}:m+=E.ch,{pos:r,lineStart:s,curLine:i}=E,d=r}else g===8232||g===8233?(++r,++i,s=r):g===10||g===13?t==="template"?(m+=e.slice(d,r)+`
|
|
34
|
+
`,++r,g===13&&e.charCodeAt(r)===10&&++r,++i,d=s=r):a.unterminated(u,p,h):++r}return{pos:r,str:m,firstInvalidLoc:f,lineStart:s,curLine:i}}function lP(t,e,r,s){return t==="template"?e===96||e===36&&r.charCodeAt(s+1)===123:e===(t==="double"?34:39)}function pP(t,e,r,s,i,a){let u=!i;e++;let p=m=>({pos:e,ch:m,lineStart:r,curLine:s}),h=t.charCodeAt(e++);switch(h){case 110:return p(`
|
|
35
|
+
`);case 114:return p("\r");case 120:{let m;return{code:m,pos:e}=Dl(t,e,r,s,2,!1,u,a),p(m===null?null:String.fromCharCode(m))}case 117:{let m;return{code:m,pos:e}=_y(t,e,r,s,u,a),p(m===null?null:String.fromCodePoint(m))}case 116:return p(" ");case 98:return p("\b");case 118:return p("\v");case 102:return p("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++s;case 8232:case 8233:return p("");case 56:case 57:if(i)return p(null);a.strictNumericEscape(e-1,r,s);default:if(h>=48&&h<=55){let m=e-1,f=/^[0-7]+/.exec(t.slice(m,e+2))[0],d=parseInt(f,8);d>255&&(f=f.slice(0,-1),d=parseInt(f,8)),e+=f.length-1;let D=t.charCodeAt(e);if(f!=="0"||D===56||D===57){if(i)return p(null);a.strictNumericEscape(m,r,s)}return p(String.fromCharCode(d))}return p(String.fromCharCode(h))}}function Dl(t,e,r,s,i,a,u,p){let h=e,m;return{n:m,pos:e}=Oy(t,e,r,s,16,i,a,!1,p,!u),m===null&&(u?p.invalidEscapeSequence(h,r,s):e=h-1),{code:m,pos:e}}function Oy(t,e,r,s,i,a,u,p,h,m){let f=e,d=i===16?jd.hex:jd.decBinOct,D=i===16?La.hex:i===10?La.dec:i===8?La.oct:La.bin,g=!1,E=0;for(let x=0,T=a??1/0;x<T;++x){let b=t.charCodeAt(e),A;if(b===95&&p!=="bail"){let S=t.charCodeAt(e-1),k=t.charCodeAt(e+1);if(p){if(Number.isNaN(k)||!D(k)||d.has(S)||d.has(k)){if(m)return{n:null,pos:e};h.unexpectedNumericSeparator(e,r,s)}}else{if(m)return{n:null,pos:e};h.numericSeparatorInEscapeSequence(e,r,s)}++e;continue}if(b>=97?A=b-97+10:b>=65?A=b-65+10:uP(b)?A=b-48:A=1/0,A>=i){if(A<=9&&m)return{n:null,pos:e};if(A<=9&&h.invalidDigit(e,r,s,i))A=0;else if(u)A=0,g=!0;else break}++e,E=E*i+A}return e===f||a!=null&&e-f!==a||g?{n:null,pos:e}:{n:E,pos:e}}function _y(t,e,r,s,i,a){let u=t.charCodeAt(e),p;if(u===123){if(++e,{code:p,pos:e}=Dl(t,e,r,s,t.indexOf("}",e)-e,!0,i,a),++e,p!==null&&p>1114111)if(i)a.invalidCodePoint(e,r,s);else return{code:null,pos:e}}else({code:p,pos:e}=Dl(t,e,r,s,4,!1,i,a));return{code:p,pos:e}}function on(t,e,r){return new cs(r,t-e,t)}var cP=new Set([103,109,115,105,121,117,100,118]),hP=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 po(e.startLoc,e.endLoc)}},dP=class extends aP{isLookahead;tokens=[];constructor(e,r){super(),this.state=new oP,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 hP(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 Lu.lastIndex=e,Lu.test(this.input)?Lu.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 Ou.lastIndex=e,Ou.test(this.input)?Ou.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(M.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Ba.lastIndex=s+2;Ba.test(this.input)&&Ba.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ba.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(s+2,i),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(i+e.length),loc:new po(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}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(;!bi(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,u={type:"CommentLine",value:this.input.slice(r+e,a),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(a),loc:new po(s,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(u),u}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(ZS(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 a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),r?.push(a))}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 a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),r?.push(a))}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(M.UnexpectedDigitAfterHash,this.state.curPosition());fr(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;!bi(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(fr(e)){this.readWord(e);return}}throw this.raise(M.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:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(M.UnterminatedRegExp,Jt(e,1));let m=this.input.charCodeAt(a);if(bi(m))throw this.raise(M.UnterminatedRegExp,Jt(e,1));if(s)s=!1;else{if(m===91)i=!0;else if(m===93&&i)i=!1;else if(m===47&&!i)break;s=m===92}}let u=this.input.slice(r,a);++a;let p="",h=()=>Jt(e,a+2-r);for(;a<this.length;){let m=this.codePointAtPos(a),f=String.fromCharCode(m);if(cP.has(m))m===118?p.includes("u")&&this.raise(M.IncompatibleRegExpUVFlags,h()):m===117&&p.includes("v")&&this.raise(M.IncompatibleRegExpUVFlags,h()),p.includes(f)&&this.raise(M.DuplicateRegExpFlags,h());else if(Ms(m)||m===92)this.raise(M.MalformedRegExpFlags,h());else break;++a,p+=f}this.state.pos=a,this.finishToken(138,{pattern:u,flags:p})}readInt(e,r,s=!1,i=!0){let{n:a,pos:u}=Oy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,s,i,this.errorHandlers_readInt,!1);return this.state.pos=u,a}readRadixNumber(e){let r=this.state.pos,s=this.state.curPosition(),i=!1;this.state.pos+=2;let a=this.readInt(e);a==null&&this.raise(M.InvalidDigit,Jt(s,2),{radix:e});let u=this.input.charCodeAt(this.state.pos);if(u===110)++this.state.pos,i=!0;else if(u===109)throw this.raise(M.InvalidDecimal,s);if(fr(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(i){let p=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,p);return}this.finishToken(135,a)}readNumber(e){let r=this.state.pos,s=this.state.curPosition(),i=!1,a=!1,u=!1;!e&&this.readInt(10)===null&&this.raise(M.InvalidNumber,this.state.curPosition());let p=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(p){let d=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,s),!this.state.strict){let D=d.indexOf("_");D>0&&this.raise(M.ZeroDigitNumericSeparator,Jt(s,D))}u=p&&!/[89]/.test(d)}let h=this.input.charCodeAt(this.state.pos);if(h===46&&!u&&(++this.state.pos,this.readInt(10),i=!0,h=this.input.charCodeAt(this.state.pos)),(h===69||h===101)&&!u&&(h=this.input.charCodeAt(++this.state.pos),(h===43||h===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(M.InvalidOrMissingExponent,s),i=!0,h=this.input.charCodeAt(this.state.pos)),h===110&&((i||p)&&this.raise(M.InvalidBigIntLiteral,s),++this.state.pos,a=!0),fr(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());let m=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,m);return}let f=u?parseInt(m,8):parseFloat(m);this.finishToken(135,f)}readCodePoint(e){let{code:r,pos:s}=_y(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:a}=Rd(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=a,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:a,lineStart:u}=Rd("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=u,this.state.curLine=a,s&&(this.state.firstInvalidTemplateEscapePos=new cs(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 a=this.codePointAtPos(this.state.pos);if(Ms(a))this.state.pos+=a<=65535?1:2;else if(a===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);let u=this.state.curPosition(),p=this.state.pos===s?fr:Ms;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;let h=this.readCodePoint(!0);h!==null&&(p(h)||this.raise(M.EscapedCharNotAnIdentifier,u),r+=String.fromCodePoint(h)),i=this.state.pos}else break}return r+this.input.slice(i,this.state.pos)}readWord(e){let r=this.readWord1(e),s=Cp.get(r);s!==void 0?this.finishToken(s,hs(s)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;Fp(e)&&this.state.containsEsc&&this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:hs(e)})}raise(e,r,s={}){let i=r instanceof cs?r:r.loc.start,a=e(i,s);if(!(this.optionFlags&2048))throw a;return this.isLookahead||this.state.errors.push(a),a}raiseOverwrite(e,r,s={}){let i=r instanceof cs?r:r.loc.start,a=i.index,u=this.state.errors;for(let p=u.length-1;p>=0;p--){let h=u[p];if(h.loc.index===a)return u[p]=e(i,s);if(h.loc.index<a)break}return this.raise(e,r,s)}updateContext(e){}unexpected(e,r){throw this.raise(M.UnexpectedToken,e??this.state.startLoc,{expected:r?hs(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(M.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(M.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,s,i)=>{this.raise(e,on(r,s,i))}}errorHandlers_readInt={invalidDigit:(e,r,s,i)=>this.optionFlags&2048?(this.raise(M.InvalidDigit,on(e,r,s),{radix:i}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(M.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(M.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(M.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(M.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,r,s)=>{this.recordStrictModeErrors(M.StrictNumericEscape,on(e,r,s))},unterminated:(e,r,s)=>{throw this.raise(M.UnterminatedString,on(e-1,r,s))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(e,r,s)=>{throw this.raise(M.UnterminatedTemplate,on(e,r,s))}})},fP=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},mP=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new fP)}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(M.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(e,r,s){let{privateNames:i,loneAccessors:a,undefinedPrivateNames:u}=this.current(),p=i.has(e);if(r&3){let h=p&&a.get(e);if(h){let m=h&4,f=r&4,d=h&3,D=r&3;p=d===D||m!==f,p||a.delete(e)}else p||a.set(e,r)}p&&this.parser.raise(M.PrivateNameRedeclaration,s,{identifierName:e}),i.add(e),u.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(M.InvalidPrivateFieldResolution,r,{identifierName:e})}},Po=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},My=class extends Po{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)}},yP=class{parser;stack=[new Po];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,a=i.length-1,u=i[a];for(;!u.isCertainlyParameterDeclaration();){if(u.canBeArrowParameterDeclaration())u.recordDeclarationError(e,s);else return;u=i[--a]}this.parser.raise(e,s)}recordArrowParameterBindingError(e,r){let{stack:s}=this,i=s[s.length-1],a=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(e,a);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,a);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,s=r.length-1,i=r[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(M.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 a=e.length-2,u=e[a];for(;u.canBeArrowParameterDeclaration();)u.clearDeclarationError(i.index),u=e[--a]})}};function gP(){return new Po(3)}function DP(){return new My(1)}function xP(){return new My(2)}function $y(){return new Po}var EP=class extends dP{addExtra(e,r,s,i=!0){if(!e)return;let{extra:a}=e;a==null&&(a={},e.extra=a),i?a[r]=s:Object.defineProperty(a,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!(Ms(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 $d(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return $d(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(M.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((a=null)=>{throw s.node=a,s});if(this.state.errors.length>r.errors.length){let a=this.state;return this.state=r,this.state.tokensLength=a.tokensLength,{node:i,error:a.errors[r.errors.length],thrown:!1,aborted:!1,failState:a}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let a=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:a};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:a};throw i}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:a,optionalParametersLoc:u,voidPatternLoc:p}=e,h=!!s||!!i||!!u||!!a||!!p;if(!r)return h;s!=null&&this.raise(M.InvalidCoverInitializedName,s),i!=null&&this.raise(M.DuplicateProto,i),a!=null&&this.raise(M.UnexpectedPrivateField,a),u!=null&&this.unexpected(u),p!=null&&this.raise(M.InvalidCoverDiscardElement,p)}isLiteralPropertyName(){return Sy(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 a=this.scope,u=this.getScopeHandler();this.scope=new u(this,e);let p=this.prodParam;this.prodParam=new sP;let h=this.classScope;this.classScope=new mP(this);let m=this.expressionScope;return this.expressionScope=new yP(this),()=>{this.state.labels=r,this.exportedIdentifiers=s,this.inModule=i,this.scope=a,this.prodParam=p,this.classScope=h,this.expressionScope=m}}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)}},eo=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},xl=class{constructor(e,r,s){this.start=r,this.end=0,this.loc=new po(s),e?.optionFlags&128&&(this.range=[r,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},Ud=xl.prototype,AP=class extends EP{startNode(){let e=this.state.startLoc;return new xl(this,e.index,e)}startNodeAt(e){return new xl(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:a,range:u,name:p}=e,h=Object.create(Ud);return h.type=r,h.start=s,h.end=i,h.loc=a,h.range=u,h.name=p,e.extra&&(h.extra=e.extra),h}cloneStringLiteral(e){let{type:r,start:s,end:i,loc:a,range:u,extra:p}=e,h=Object.create(Ud);return h.type=r,h.start=s,h.end=i,h.loc=a,h.range=u,h.extra=p,h.value=e.value,h}},El=t=>t.type==="ParenthesizedExpression"?El(t.expression):t,CP=class extends AP{toAssignable(e,r=!1){let s;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(s=El(e),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(M.InvalidParenthesizedAssignment,e):s.type!=="CallExpression"&&s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(M.InvalidParenthesizedAssignment,e):this.raise(M.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,a=e.properties.length,u=a-1;i<a;i++){let p=e.properties[i],h=i===u;this.toAssignableObjectExpressionProp(p,h,r),h&&p.type==="RestElement"&&e.extra?.trailingCommaLoc&&this.raise(M.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:i,value:a}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(a,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(M.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(M.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"?M.PatternHasAccessor:M.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(M.RestTrailingComma,e)}else this.toAssignable(e,s)}toAssignableList(e,r,s){let i=e.length-1;for(let a=0;a<=i;a++){let u=e[a];u&&(this.toAssignableListItem(e,a,s),u.type==="RestElement"&&(a<i?this.raise(M.RestTrailingComma,u):r&&this.raise(M.RestTrailingComma,r)))}}toAssignableListItem(e,r,s){let i=e[r];if(i.type==="SpreadElement"){this.castNodeTo(i,"RestElement");let a=i.argument;this.checkToRestConversion(a,!0),this.toAssignable(a,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,a)=>i.type!=="ObjectMethod"&&(a===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(M.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,a=[],u=!0;for(;!this.eat(e);)if(u?u=!1:this.expect(12),i&&this.match(12))a.push(null);else{if(this.eat(e))break;if(this.match(21)){let p=this.parseRestBinding();if(s&2&&(p=this.parseFunctionParamType(p)),a.push(p),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let p=[];if(s&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)p.push(this.parseDecorator());a.push(this.parseBindingElement(s,p))}}return a}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(M.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(M.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,a=!1,u=!1,p=!1){let h=e.type;if(this.isObjectMethod(e))return;let m=this.isOptionalMemberExpression(e);if(m||h==="MemberExpression"){m&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(M.InvalidLhsOptionalChaining,e,{ancestor:r})),s!==64&&this.raise(M.InvalidPropertyBindingPattern,e);return}if(h==="Identifier"){this.checkIdentifier(e,s,a);let{name:T}=e;i&&(i.has(T)?this.raise(M.ParamDupe,e):i.add(T));return}else h==="VoidPattern"&&r.type==="CatchClause"&&this.raise(M.VoidPatternCatchClauseParam,e);let f=El(e);p||(p=f.type==="CallExpression"&&(f.callee.type==="Import"||f.callee.type==="Super"));let d=this.isValidLVal(h,p,!(u||e.extra?.parenthesized)&&r.type==="AssignmentExpression",s);if(d===!0)return;if(d===!1){let T=s===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(T,e,{ancestor:r});return}let D,g;typeof d=="string"?(D=d,g=h==="ParenthesizedExpression"):[D,g]=d;let E=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:r,x=e[D];if(Array.isArray(x))for(let T of x)T&&this.checkLVal(T,E,s,i,a,g,!0);else x&&this.checkLVal(x,E,s,i,a,g,p)}checkIdentifier(e,r,s=!1){this.state.strict&&(s?Ny(e.name,this.inModule):Iy(e.name))&&(r===64?this.raise(M.StrictEvalArguments,e,{referenceName:e.name}):this.raise(M.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(M.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(M.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?M.RestTrailingComma:M.ElementAfterRest,this.state.startLoc),!0):!1}},_u=/in(?:stanceof)?|as|satisfies/y;function TP(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function qd(t){if(!t)throw new Error("Assert fail")}var pe=dr`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 bP(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 Vd(t){return t==="private"||t==="public"||t==="protected"}function SP(t){return t==="in"||t==="out"}function Al(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&Al(t.object);case"TSInstantiationExpression":return Al(t.expression);default:return!1}}var PP=t=>class extends t{getScopeHandler(){return rP}tsIsIdentifier(){return je(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(!je(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=pe.InvalidModifierOnTypeMember},a){let u=(h,m,f,d)=>{m===f&&a[d]&&this.raise(pe.InvalidModifiersOrder,h,{orderedModifiers:[f,d]})},p=(h,m,f,d)=>{(a[f]&&m===d||a[d]&&m===f)&&this.raise(pe.IncompatibleModifiers,h,{modifiers:[f,d]})};for(;;){let{startLoc:h}=this.state,m=this.tsParseModifier(e.concat(r??[]),s,a.static);if(!m)break;Vd(m)?a.accessibility?this.raise(pe.DuplicateAccessibilityModifier,h,{modifier:m}):(u(h,m,m,"override"),u(h,m,m,"static"),u(h,m,m,"readonly"),a.accessibility=m):SP(m)?(a[m]&&this.raise(pe.DuplicateModifier,h,{modifier:m}),a[m]=!0,u(h,m,"in","out")):(Object.prototype.hasOwnProperty.call(a,m)?this.raise(pe.DuplicateModifier,h,{modifier:m}):(u(h,m,"static","readonly"),u(h,m,"static","override"),u(h,m,"override","readonly"),u(h,m,"abstract","override"),p(h,m,"declare","override"),p(h,m,"static","abstract")),a[m]=!0),r?.includes(m)&&this.raise(i,h,{modifier:m})}}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 TP(this.tsParseDelimitedListWorker(e,r,!0,s))}tsParseDelimitedListWorker(e,r,s,i){let a=[],u=-1;for(;!this.tsIsListTerminator(e);){u=-1;let p=r();if(p==null)return;if(a.push(p),this.eat(12)){u=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;s&&this.expect(12);return}return i&&(i.value=u),a}tsParseBracketedList(e,r,s,i,a){i||(s?this.expect(0):this.expect(47));let u=this.tsParseDelimitedList(e,r,a);return s?this.expect(3):this.expect(48),u}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.tsParseLiteralTypeNode():(this.raise(pe.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;je(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:pe.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:pe.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:pe.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(pe.EmptyTypeParameters,r),s.value!==-1&&this.addExtra(r,"trailingComma",s.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(e,r){let s=e===19,i="params",a="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[i]=this.tsParseBindingListForSignature(),s?r[a]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(r[a]=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(pe.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(),je(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(pe.ReadonlyForMethodSignature,e);let s=e;s.kind&&this.match(47)&&this.raise(pe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let i="params",a="returnType";if(s.kind==="get")s[i].length>0&&(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(s[i][0])&&this.raise(pe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[i].length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let u=s[i][0];this.isThisParam(u)&&this.raise(pe.AccessorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(pe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(pe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(pe.SetAccessorCannotHaveReturnType,s[a])}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(pe.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,a,u,p,h=tr(this.state.type)?this.lookaheadCharCode():null;if(h===58)i=!0,u=!1,a=this.parseIdentifier(!0),this.expect(14),p=this.tsParseType();else if(h===63){u=!0;let m=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,a=this.createIdentifier(this.startNodeAt(s),m),this.expect(17),this.expect(14),p=this.tsParseType()):(i=!1,p=f,this.expect(17))}else p=this.tsParseType(),u=this.eat(17),i=this.eat(14);if(i){let m;a?(m=this.startNodeAt(s),m.optional=u,m.label=a,m.elementType=p,this.eat(17)&&(m.optional=!0,this.raise(pe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(m=this.startNodeAt(s),m.optional=u,this.raise(pe.InvalidTupleMemberLabel,p),m.label=p,m.elementType=this.tsParseType()),p=this.finishNode(m,"TSNamedTupleMember")}else if(u){let m=this.startNodeAt(s);m.typeAnnotation=p,p=this.finishNode(m,"TSOptionalType")}if(r){let m=this.startNodeAt(e);m.typeAnnotation=p,p=this.finishNode(m,"TSRestType")}return p}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),a=this.startNodeAt(e);return a.expressions=[],a.quasis=s,i.literal=this.finishNode(a,"TemplateLiteral"),this.finishNode(i,"TSLiteralType")}else{let i=[];for(;!r.tail;)i.push(this.tsParseType()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(!1));let a=this.startNodeAt(e);return a.types=i,a.quasis=s,this.finishNode(a,"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(je(e)||e===88||e===84){let r=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":bP(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(pe.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 IS(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(),a=this.eat(s),u=[];do u.push(r());while(this.eat(s));return u.length===1&&!a?u[0]:(i.types=u,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(je(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 p=this.tsParseThisTypeOrThisTypePredicate();return p.type==="TSThisType"?(s.parameterName=p,s.asserts=!0,s.typeAnnotation=null,p=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(p,s),p.asserts=!0),r.typeAnnotation=p,this.finishNode(r,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)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 u=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=u,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(),!je(this.state.type)&&!this.match(78)?!1:(e&&this.raise(M.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(){qd(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(pe.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();Al(i)||this.raise(pe.InvalidHeritageClauseType,i.loc.start,{token:e});let a=e==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(i.type==="TSInstantiationExpression")return i.type=a,i;let u=this.startNodeAtNode(i);return u.expression=i,(this.match(47)||this.match(51))&&(u.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(u,a)}});return s.length||this.raise(pe.EmptyHeritageClauseType,r,{token:e}),s}tsParseInterfaceDeclaration(e,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(e.declare=!0),je(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(pe.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()!==qe.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(pe.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(pe.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(pe.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(je(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)||je(this.state.type)))return this.tsParseAbstractDeclaration(e,i);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(je(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(s)&&je(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(s)&&je(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(pe.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===qe.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return NS(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 a=i.accessibility,u=i.override,p=i.readonly;!(e&4)&&(a||p||u)&&this.raise(pe.UnexpectedParameterModifier,s);let h=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(h);let m=this.parseMaybeDefault(h.loc.start,h);if(a||p||u){let f=this.startNodeAt(s);return r.length&&(f.decorators=r),a&&(f.accessibility=a),p&&(f.readonly=p),u&&(f.override=u),m.type!=="Identifier"&&m.type!=="AssignmentPattern"&&this.raise(pe.UnsupportedParameterPropertyKind,f),f.parameter=m,this.finishNode(f,"TSParameterProperty")}return r.length&&(h.decorators=r),m}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(pe.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(pe.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(pe.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 u=this.startNodeAt(r);return u.expression=e,this.finishNode(u,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return i.stop=!0,e;i.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let u,p=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(e)){let d=this.tsTryParseGenericAsyncArrowFunction(r);if(d)return i.stop=!0,d}let h=this.tsParseTypeArgumentsInExpression();if(!h)return;if(a&&!this.match(10)){u=this.state.curPosition();return}if(yl(this.state.type)){let d=super.parseTaggedTemplateExpression(e,r,i);return d.typeArguments=h,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=h,i.optionalChainMember&&(d.optional=a),this.finishCallExpression(d,i.optionalChainMember)}let m=this.state.type;if(m===48||m===52||m!==10&&Cn(m)&&!this.hasPrecedingLineBreak())return;let f=this.startNodeAt(r);return f.expression=e,f.typeArguments=h,this.finishNode(f,"TSInstantiationExpression")});if(u&&this.unexpected(u,10),p)return p.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(pe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(p.expression=super.stopParseSubscript(e,i))),p}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(Qa(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let a=this.startNodeAt(r);return a.expression=e,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,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(pe.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(je(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(pe.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 a=this.tsParseImportEqualsDeclaration(s,i,!0);return e.attributes=[],e.declaration=a,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,a=super.parseVarStatement(e,r,s||i);if(!i)return a;if(!e.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(pe.UsingDeclarationInAmbientContext,e,r),a;for(let{id:u,init:p}of a.declarations)p&&(r==="var"||r==="let"||u.typeAnnotation?this.raise(pe.InitializerNotAllowedInAmbientContext,p):wP(p,this.hasPlugin("estree"))||this.raise(pe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,p));return a}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 a=s===125?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,r);return a?(s===125&&(a.declare=!0),a):(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=>Vd(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:pe.InvalidModifierOnTypeParameterPositions},r);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,i)&&this.raise(pe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,r)):this.parseClassMemberWithIsStatic(e,r,s,!!r.static)};r.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(e,r,s,i){let a=this.tsTryParseIndexSignature(r);if(a){e.body.push(a),r.abstract&&this.raise(pe.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(pe.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(pe.IndexSignatureHasDeclare,r),r.override&&this.raise(pe.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(pe.NonAbstractClassHasAbstractMethod,r),r.override&&(s.hadSuperClass||this.raise(pe.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(e,r,s,i)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(pe.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(pe.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(pe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let i=je(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 a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(e.typeParameters=a)}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(pe.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:r}=e;this.raise(pe.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(pe.PrivateElementHasAbstract,e),e.accessibility&&this.raise(pe.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(pe.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,r,s,i,a,u){let p=this.tsTryParseTypeParameters(this.tsParseConstModifier);p&&a&&this.raise(pe.ConstructorHasTypeParameters,p);let{declare:h=!1,kind:m}=r;h&&(m==="get"||m==="set")&&this.raise(pe.DeclareAccessor,r,{kind:m}),p&&(r.typeParameters=p),super.pushClassMethod(e,r,s,i,a,u)}pushClassPrivateMethod(e,r,s,i){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(r.typeParameters=a),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,a,u,p){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);return h&&(e.typeParameters=h),super.parseObjPropValue(e,r,s,i,a,u,p)}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,a;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:h}=this.state,m=h[h.length-1];(m===qe.j_oTag||m===qe.j_expr)&&h.pop()}if(!i?.error&&!this.match(47))return super.parseMaybeAssign(e,r);(!s||s===this.state)&&(s=this.state.clone());let u,p=this.tryParse(h=>{u=this.tsParseTypeParameters(this.tsParseConstModifier);let m=super.parseMaybeAssign(e,r);if((m.type!=="ArrowFunctionExpression"||m.extra?.parenthesized)&&h(),u?.params.length!==0&&this.resetStartLocationFromNode(m,u),m.typeParameters=u,this.hasPlugin("jsx")&&m.typeParameters.params.length===1&&!m.typeParameters.extra?.trailingComma){let f=m.typeParameters.params[0];f.constraint||this.raise(pe.SingleTypeParameterWithoutTrailingComma,Jt(f.loc.end,1),{typeParameterName:f.name.name})}return m},s);if(!p.error&&!p.aborted)return u&&this.reportReservedArrowTypeParam(u),p.node;if(!i&&(qd(!this.hasPlugin("jsx")),a=this.tryParse(()=>super.parseMaybeAssign(e,r),s),!a.error))return a.node;if(i?.node)return this.state=i.failState,i.node;if(p.node)return this.state=p.failState,u&&this.reportReservedArrowTypeParam(u),p.node;if(a?.node)return this.state=a.failState,a.node;throw i?.error||p.error||a?.error}reportReservedArrowTypeParam(e){e.params.length===1&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(pe.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(pe.UnexpectedTypeCastInParameter,e):this.raise(pe.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(pe.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(pe.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,r,s,i,a,u,p){let h=super.parseMethod(e,r,s,i,a,u,p);if((h.abstract||h.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?h.value:h).body){let{key:m}=h;this.raise(pe.AbstractMethodHasImplementation,h,{methodName:m.type==="Identifier"&&!h.computed?m.name:`[${this.input.slice(this.offsetToSourcePos(m.start),this.offsetToSourcePos(m.end))}]`})}return h}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,a){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",a=r?"local":"exported",u=e[i],p,h=!1,m=!0,f=u.loc.start;if(this.isContextual(93)){let D=this.parseIdentifier();if(this.isContextual(93)){let g=this.parseIdentifier();tr(this.state.type)?(h=!0,u=D,p=r?this.parseIdentifier():this.parseModuleExportName(),m=!1):(p=g,m=!1)}else tr(this.state.type)?(m=!1,p=r?this.parseIdentifier():this.parseModuleExportName()):(h=!0,u=D)}else tr(this.state.type)&&(h=!0,r?(u=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(u.name,u.loc.start,!0,!0)):u=this.parseModuleExportName());h&&s&&this.raise(r?pe.TypeModifierIsUsedInTypeImports:pe.TypeModifierIsUsedInTypeExports,f),e[i]=u,e[a]=p;let d=r?"importKind":"exportKind";e[d]=h?"type":"value",m&&this.eatContextual(93)&&(e[a]=r?this.parseIdentifier():this.parseModuleExportName()),e[a]||(e[a]=this.cloneIdentifier(e[i])),r&&this.checkIdentifier(e[a],h?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(fr(e)){if(_u.lastIndex=r,_u.test(this.input)){let s=this.codePointAtPos(_u.lastIndex);if(!Ms(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 vP(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:Ry(t.object)}function wP(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!!(jy(t,e)||FP(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||vP(t))}function jy(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function FP(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:s}=t;if(r==="-"&&jy(s,e))return!0}return!1}function Ry(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:Ry(t.object)}var zd=dr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),kP=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 a=this.state.strict,u=this.parsePlaceholder("Identifier");if(u)if(this.match(81)||this.match(133)||this.match(5))e.id=u;else{if(s||!r)return e.id=null,e.body=this.finishPlaceholder(u,"ClassBody"),this.finishNode(e,i);throw this.raise(zd.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,s);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,a),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 a=this.startNode();return a.exported=s,i.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(i,r)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(hs(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(zd.UnexpectedSpace,this.state.lastTokEndLoc)}},IP=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,r=this.startNode();if(this.next(),je(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)}},Hd=["fsharp","hack"],Wd=["^^","@@","^","%","#"];function NP(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(!Hd.includes(e)){let r=Hd.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(!Wd.includes(r)){let s=Wd.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 Uy={estree:AS,jsx:eP,flow:YS,typescript:PP,v8intrinsic:IP,placeholders:kP},BP=Object.keys(Uy),LP=class extends CP{checkProto(e,r,s,i){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return s;let a=e.key;return(a.type==="Identifier"?a.name:a.value)==="__proto__"?r?(this.raise(M.RecordNoProto,a),!0):(s&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=a.loc.start):this.raise(M.DuplicateProto,a)),!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(M.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(M.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 h=this.parseYield(s);return r&&(h=r.call(this,h,s)),h}let a;e?a=!1:(e=new eo,a=!0);let{type:u}=this.state;(u===10||je(u))&&(this.state.potentialArrowAt=this.state.start);let p=this.parseMaybeConditional(e);if(r&&(p=r.call(this,p,s)),PS(this.state.type)){let h=this.startNodeAt(s),m=this.state.value;if(h.operator=m,this.match(29)){this.toAssignable(p,!0),h.left=p;let f=s.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=f&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=f&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=f&&(e.voidPatternLoc=null)}else h.left=p;return this.next(),h.right=this.parseMaybeAssign(),this.checkLVal(p,this.finishNode(h,"AssignmentExpression"),void 0,void 0,void 0,void 0,m==="||="||m==="&&="||m==="??="),h}else a&&this.checkExpressionErrors(e,!0);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Cn(h):Cn(h)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,s),this.parseYield(s)}return p}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 a=this.getPrivateNameSV(e);(s>=Qa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(M.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}let i=this.state.type;if(wS(i)&&(this.prodParam.hasIn||!this.match(58))){let a=Qa(i);if(a>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let u=this.startNodeAt(r);u.left=e,u.operator=this.state.value;let p=i===41||i===42,h=i===40;h&&(a=Qa(42)),this.next(),u.right=this.parseExprOpRightExpr(i,a);let m=this.finishNode(u,p||h?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(h&&(f===41||f===42)||p&&f===40)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(m,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,BS(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return fS.has(r.type)&&!r.extra?.parenthesized&&this.raise(M.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(M.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(M.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let h=this.parseAwait(s);return r||this.checkExponentialAfterUnary(h),h}let a=this.match(34),u=this.startNode();if(kS(this.state.type)){u.operator=this.state.value,u.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),u.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&h){let m=u.argument;m.type==="Identifier"?this.raise(M.StrictDelete,u):this.hasPropertyAsPrivateName(m)&&this.raise(M.DeletePrivateField,u)}if(!a)return r||this.checkExponentialAfterUnary(u),this.finishNode(u,"UnaryExpression")}let p=this.parseUpdate(u,a,e);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Cn(h):Cn(h)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,s),this.parseAwait(s)}return p}parseUpdate(e,r,s){if(r){let u=e;return this.checkLVal(u.argument,this.finishNode(u,"UpdateExpression")),e}let i=this.state.startLoc,a=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return a;for(;FS(this.state.type)&&!this.canInsertSemicolon();){let u=this.startNodeAt(i);u.operator=this.state.value,u.prefix=!1,u.argument=a,this.next(),this.checkLVal(a,a=this.finishNode(u,"UpdateExpression"))}return a}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:a}=this.state;if(!s&&a===15)return this.parseBind(e,r,s,i);if(yl(a))return this.parseTaggedTemplateExpression(e,r,i);let u=!1;if(a===18){if(s&&(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,i);i.optionalChainMember=u=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,i,u);{let p=this.eat(0);return p||u||this.eat(16)?this.parseMember(e,r,i,p,u):this.stopParseSubscript(e,i)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,s,i,a){let u=this.startNodeAt(r);return u.object=e,u.computed=i,i?(u.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(M.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),u.property=this.parsePrivateName()):u.property=this.parseIdentifier(!0),s.optionalChainMember?(u.optional=a,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}parseBind(e,r,s,i){let a=this.startNodeAt(r);return a.object=e,this.next(),a.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),r,s)}parseCoverCallAndAsyncArrowHead(e,r,s,i){let a=this.state.maybeInArrowParameters,u=null;this.state.maybeInArrowParameters=!0,this.next();let p=this.startNodeAt(r);p.callee=e;let{maybeAsyncArrow:h,optionalChainMember:m}=s;h&&(this.expressionScope.enter(xP()),u=new eo),m&&(p.optional=i),i?p.arguments=this.parseCallExpressionArguments():p.arguments=this.parseCallExpressionArguments(e.type!=="Super",p,u);let f=this.finishCallExpression(p,m);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(h&&(this.checkExpressionErrors(u,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=a,f}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(M.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(M.ImportCallArity,e);else for(let s of e.arguments)s.type==="SpreadElement"&&this.raise(M.ImportCallSpreadArgument,s);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,s){let i=[],a=!0,u=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(a)a=!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=u,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&&Si(e,r.innerComments),r.callee.trailingComments&&Si(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(M.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 a=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(a)}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 a=r.callee=this.parseNoCallExpr();if(a.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(M.UnsupportedBind,a)}case 139:return this.raise(M.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 fr(a)||a===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(je(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let a=this.state.potentialArrowAt===this.state.start,u=this.state.containsEsc,p=this.parseIdentifier();if(!u&&p.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(p),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(p));if(je(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(p)):p;if(h===90)return this.resetPreviousNodeTrailingComments(p),this.parseDo(this.startNodeAtNode(p),!0)}return a&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(p),[p],!1)):p}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=Jt(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(M.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(M.PipeTopicUnconfiguredToken,r,{token:hs(i)})}testTopicReferenceConfiguration(e,r,s){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:hs(s)}]);case"smart":return s===27;default:throw this.raise(M.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Za(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(M.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(M.SuperNotAllowed,e):this.scope.allowSuper||this.raise(M.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(M.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Jt(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(M.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(M.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(DP());let i=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let u=this.state.startLoc,p=[],h=new eo,m=!0,f,d;for(;!this.match(11);){if(m)m=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let E=this.state.startLoc;if(f=this.state.startLoc,p.push(this.parseParenItem(this.parseRestBinding(),E)),!this.checkCommaAfterRest(41))break}else p.push(this.parseMaybeAssignAllowInOrVoidPattern(11,h,this.parseParenItem))}let D=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=a;let g=this.startNodeAt(r);return e&&this.shouldParseArrow(p)&&(g=this.parseArrow(g))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(g,p,!1),g):(this.expressionScope.exit(),p.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),f&&this.unexpected(f),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(p,!0),p.length>1?(s=this.startNodeAt(u),s.expressions=p,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,D)):s=p[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(M.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(M.ImportCallNotNewExpression,s)}parseTemplateElement(e){let{start:r,startLoc:s,end:i,value:a}=this.state,u=r+1,p=this.startNodeAt(Jt(s,1));a===null&&(e||this.raise(M.InvalidEscapeSequenceTemplate,Jt(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),m=h?-1:-2,f=i+m;p.value={raw:this.input.slice(u,f).replace(/\r\n?/g,`
|
|
36
|
+
`),cooked:a===null?null:a.slice(1,m)},p.tail=h,this.next();let d=this.finishNode(p,"TemplateElement");return this.resetEndLocation(d,Jt(this.state.lastTokEndLoc,m)),d}parseTemplate(e){let r=this.startNode(),s=this.parseTemplateElement(e),i=[s],a=[];for(;!s.tail;)a.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(e));return r.expressions=a,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,s,i){s&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let u=!1,p=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(e);){if(p)p=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(h);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(i),u=this.checkProto(f,s,u,i)),s&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(M.InvalidRecordProperty,f),h.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=a;let m="ObjectExpression";return r?m="ObjectPattern":s&&(m="RecordExpression"),this.finishNode(h,m)}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(M.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let s=this.startNode(),i=!1,a=!1,u;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(s.decorators=r,r=[]),s.method=!1,e&&(u=this.state.startLoc);let p=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,e),!p&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:m}=s,f=m.name;f==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(m),p=this.eat(55),this.parsePropertyName(s)),(f==="get"||f==="set")&&(a=!0,this.resetPreviousNodeTrailingComments(m),s.kind=f,this.match(55)&&(p=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,u,p,i,!1,a,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"?M.BadGetterArity:M.BadSetterArity,e),e.kind==="set"&&s[s.length-1]?.type==="RestElement"&&this.raise(M.BadSetterRestParameter,e)}parseObjectMethod(e,r,s,i,a){if(a){let u=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(u),u}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 a=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=a):this.raise(M.InvalidCoverInitializedName,a),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,a,u,p){let h=this.parseObjectMethod(e,s,i,a,u)||this.parseObjectProperty(e,r,a,p);return h||this.unexpected(),h}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,a;if(tr(s))a=this.parseIdentifier(!0);else switch(s){case 135:a=this.parseNumericLiteral(i);break;case 134:a=this.parseStringLiteral(i);break;case 136:a=this.parseBigIntLiteral(i);break;case 139:{let u=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=u):this.raise(M.UnexpectedPrivateField,u),a=this.parsePrivateName();break}default:this.unexpected()}e.key=a,s!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,s,i,a,u,p=!1){this.initFunction(e,s),e.generator=r,this.scope.enter(530|(p?576:0)|(a?32:0)),this.prodParam.enter(Za(s,e.generator)),this.parseFunctionParams(e,i);let h=this.parseFunctionBodyAndFinish(e,u,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(e,r,s){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!r,s,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,s,i){this.scope.enter(518);let a=Za(s,!1);!this.match(5)&&this.prodParam.hasIn&&(a|=8),this.prodParam.enter(a),this.initFunction(e,s);let u=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=u,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($y()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let a=this.state.strict,u=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,p=>{let h=!this.isSimpleParamList(e.params);p&&h&&this.raise(M.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let m=!a&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!s&&!h,r,m),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,m)}),this.prodParam.exit(),this.state.labels=u}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 a=!r&&new Set,u={type:"FormalParameters"};for(let p of e.params)this.checkLVal(p,u,5,a,i)}parseExprList(e,r,s,i){let a=[],u=!0;for(;!this.eat(e);){if(u)u=!1;else if(this.expect(12),this.match(e)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(e,r,s))}return a}parseExprListItem(e,r,s,i){let a;if(this.match(12))r||this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","}),a=null;else if(this.match(21)){let u=this.state.startLoc;a=this.parseParenItem(this.parseSpread(s),u)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let u=this.startNode();this.next(),a=this.finishNode(u,"ArgumentPlaceholder")}else a=this.parseMaybeAssignAllowInOrVoidPattern(e,s,this.parseParenItem);return a}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;tr(i)?r=this.state.value:this.unexpected();let a=bS(i);return e?a&&this.replaceToken(132):this.checkReservedWord(r,s,a,!1),this.next(),r}checkReservedWord(e,r,s,i){if(!(e.length>10||!VS(e))){if(s&&RS(e)){this.raise(M.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?i?Ny:ky:Fy)(e,this.inModule)){this.raise(M.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(M.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(M.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(M.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(M.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(M.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(M.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||yl(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(M.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(M.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(M.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(M.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(M.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){}},Mu={kind:1},OP={kind:2},_P=/[\uD800-\uDFFF]/u,$u=/in(?:stanceof)?/y;function MP(t,e,r){for(let s=0;s<t.length;s++){let i=t[s],{type:a}=i;typeof a=="number"&&(i.type=Py(a))}return t}var $P=class extends LP{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=MP(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[a,u]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,u,{localName:a});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===140?i=this.finishNode(e,"Program"):i=this.finishNodeAt(e,"Program",Jt(this.state.startLoc,-1)),i}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),s=this.castNodeTo(e.expression,"DirectiveLiteral"),i=s.value,a=this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end)),u=s.value=a.slice(1,-1);return this.addExtra(s,"raw",a),this.addExtra(s,"rawValue",u),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(fr(e)){if($u.lastIndex=r,$u.test(this.input)){let s=this.codePointAtPos($u.lastIndex);if(!Ms(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(),a=!!(e&2),u=!!(e&4),p=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 u||this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!a&&u);case 80:return a||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()?a?this.recordAwaitIfAllowed()||this.raise(M.AwaitUsingNotInAsyncContext,i):this.raise(M.UnexpectedLexicalDeclaration,i):this.raise(M.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?a||this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(M.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),d=this.codePointAtPos(f);if(d!==91&&(!a&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,f)&&d!==123))break}case 75:a||this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(i,f)}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 f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!p&&this.raise(M.UnexpectedImportExport,this.state.startLoc),this.next();let f;return s===83?f=this.parseImport(i):f=this.parseExport(i,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return a||this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!a&&u)}let h=this.state.value,m=this.parseExpression();return je(s)&&m.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,m,e):this.parseExpressionStatement(i,m,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(M.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(M.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(M.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(M.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 a=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(s,i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==s&&this.raise(M.DecoratorArgumentsOutsideParentheses,a)}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(M.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(Mu),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(Mu);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 h=this.isAwaitUsing(),m=h||this.isForUsing(),f=s&&this.hasFollowingBindingAtom()||m;if(this.match(74)||this.match(75)||f){let d=this.startNode(),D;h?(D="await using",this.recordAwaitIfAllowed()||this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):D=this.state.value,this.next(),this.parseVar(d,!0,D);let g=this.finishNode(d,"VariableDeclaration"),E=this.match(58);return E&&m&&this.raise(M.ForInUsing,g),(E||this.isContextual(102))&&g.declarations.length===1?this.parseForIn(e,g,r):(r!==null&&this.unexpected(r),this.parseFor(e,g))}}let i=this.isContextual(95),a=new eo,u=this.parseExpression(!0,a),p=this.isContextual(102);if(p&&(s&&this.raise(M.ForOfLet,u),r===null&&i&&u.type==="Identifier"&&this.raise(M.ForOfAsync,u)),p||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(u,!0);let h=p?"ForOfStatement":"ForInStatement";return this.checkLVal(u,{type:h}),this.parseForIn(e,u,r)}else this.checkExpressionErrors(a,!0);return r!==null&&this.unexpected(r),this.parseFor(e,u)}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(M.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(OP),this.scope.enter(256);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let a=this.match(61);s&&this.finishNode(s,"SwitchCase"),r.push(s=this.startNode()),s.consequent=[],this.next(),a?s.test=this.parseExpression():(i&&this.raise(M.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(M.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(M.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(Mu),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(M.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 u of this.state.labels)u.name===r&&this.raise(M.LabelRedeclaration,s,{labelName:r});let a=vS(this.state.type)?1:this.match(71)?2:null;for(let u=this.state.labels.length-1;u>=0;u--){let p=this.state.labels[u];if(p.statementStart===e.start)p.statementStart=this.sourceToOffsetPos(this.state.start),p.kind=a;else break}return this.state.labels.push({name:r,kind:a,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,a){let u=e.body=[],p=e.directives=[];this.parseBlockOrModuleBlockBody(u,r?p:void 0,s,i,a)}parseBlockOrModuleBlockBody(e,r,s,i,a){let u=this.state.strict,p=!1,h=!1;for(;!this.match(i);){let m=s?this.parseModuleItem():this.parseStatementListItem();if(r&&!h){if(this.isValidDirective(m)){let f=this.stmtToDirective(m);r.push(f),!p&&f.value.value==="use strict"&&(p=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}e.push(m)}a?.call(this,p),u||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(M.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(M.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 a=e.declarations=[];for(e.kind=s;;){let u=this.startNode();if(this.parseVarId(u,s),u.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,u.init===null&&!i&&(u.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),a.push(this.finishNode(u,"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(M.UsingDeclarationHasBindingPattern,s.loc.start):s.type==="VoidPattern"&&this.raise(M.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),a=i&&!(r&4),u=!!(r&8);this.initFunction(e,u),this.match(55)&&(s&&this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(a));let p=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Za(u,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=p,e}parseFunctionId(e){return e||je(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(gP()),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=[],a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let u=this.startNode();i.length&&(u.decorators=i,this.resetStartLocationFromNode(u,i[0]),i=[]),this.parseClassMember(a,u,s),u.kind==="constructor"&&u.decorators&&u.decorators.length>0&&this.raise(M.DecoratorConstructor,u)}}),this.state.strict=r,this.next(),i.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(a,"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 a=r,u=r,p=r,h=r,m=r,f=a,d=a;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let b=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),b){this.pushClassPrivateMethod(e,u,!0,!1);return}this.isNonstaticConstructor(a)&&this.raise(M.ConstructorIsGenerator,a.key),this.pushClassMethod(e,a,!0,!1,!1,!1);return}let D=!this.state.containsEsc&&je(this.state.type),g=this.parseClassElementName(r),E=D?g.name:null,x=this.isPrivateName(g),T=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(f.kind="method",x){this.pushClassPrivateMethod(e,u,!1,!1);return}let b=this.isNonstaticConstructor(a),A=!1;b&&(a.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(M.DuplicateConstructor,g),b&&this.hasPlugin("typescript")&&r.override&&this.raise(M.OverrideOnConstructor,g),s.hadConstructor=!0,A=s.hadSuperClass),this.pushClassMethod(e,a,!1,!1,b,A)}else if(this.isClassProperty())x?this.pushClassPrivateProperty(e,h):this.pushClassProperty(e,p);else if(E==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(g);let b=this.eat(55);d.optional&&this.unexpected(T),f.kind="method";let A=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(d),A?this.pushClassPrivateMethod(e,u,b,!0):(this.isNonstaticConstructor(a)&&this.raise(M.ConstructorIsAsync,a.key),this.pushClassMethod(e,a,b,!0,!1,!1))}else if((E==="get"||E==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(g),f.kind=E;let b=this.match(139);this.parseClassElementName(a),b?this.pushClassPrivateMethod(e,u,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(M.ConstructorIsAccessor,a.key),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a)}else if(E==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(g);let b=this.match(139);this.parseClassElementName(p),this.pushClassAccessorProperty(e,m,b)}else this.isLineTerminator()?x?this.pushClassPrivateProperty(e,h):this.pushClassProperty(e,p):this.unexpected()}parseClassElementName(e){let{type:r,value:s}=this.state;if((r===132||r===134)&&e.static&&s==="prototype"&&this.raise(M.StaticPrototype,this.state.startLoc),r===139){s==="constructor"&&this.raise(M.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(M.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(M.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(M.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,a,u){e.body.push(this.parseMethod(r,s,i,a,u,"ClassMethod",!0))}pushClassPrivateMethod(e,r,s,i){let a=this.parseMethod(r,s,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(a);let u=a.kind==="get"?a.static?6:2:a.kind==="set"?a.static?5:1:0;this.declareClassPrivateMethodInScope(a,u)}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($y()),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(je(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,i);else if(s||!r)e.id=null;else throw this.raise(M.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),a=!i||this.eat(12),u=a&&this.eatExportStar(e),p=u&&this.maybeParseExportNamespaceSpecifier(e),h=a&&(!p||this.eat(12)),m=i||u;if(u&&!p){if(i&&this.unexpected(),r)throw this.raise(M.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(e);i&&a&&!u&&!f&&this.unexpected(null,5),p&&h&&this.unexpected(null,98);let d;if(m||f){if(d=!1,r)throw this.raise(M.UnsupportedDecoratorExport,e);this.parseExportFrom(e,m)}else d=this.maybeParseExportDeclaration(e);if(m||f||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(M.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(D,"ExportNamedDeclaration")}if(this.eat(65)){let D=e,g=this.parseExportDefaultExpression();if(D.declaration=g,g.type==="ClassDeclaration")this.maybeTakeDecorators(r,g,D);else if(r)throw this.raise(M.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(M.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(M.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(je(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let i=this.nextTokenStart(),a=this.input.charCodeAt(i);if(a===123||this.chStartsBindingIdentifier(a,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||je(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(M.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(M.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(M.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 a=e.declaration;a.type==="Identifier"&&a.name==="from"&&a.end-a.start===4&&!a.extra?.parenthesized&&this.raise(M.ExportDefaultFromAsIdentifier,a)}}else if(e.specifiers?.length)for(let a of e.specifiers){let{exported:u}=a,p=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(a,p),!i&&a.local){let{local:h}=a;h.type!=="Identifier"?this.raise(M.ExportBindingIsString,a,{localName:h.value,exportName:p}):(this.checkReservedWord(h.name,h.loc.start,!0,!1),this.scope.checkLocalExport(h))}}else if(e.declaration){let a=e.declaration;if(a.type==="FunctionDeclaration"||a.type==="ClassDeclaration"){let{id:u}=a;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(e,u.name)}else if(a.type==="VariableDeclaration")for(let u of a.declarations)this.checkDeclaration(u.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(M.DuplicateDefaultExport,e):this.raise(M.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),a=this.match(134),u=this.startNode();u.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(u,a,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=_P.exec(e.value);return r&&this.raise(M.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(M.SourcePhaseImportRequiresDefault,r[0].loc.start):e.phase==="defer"?s!=="ImportNamespaceSpecifier"&&this.raise(M.DeferImportRequiresNamespace,r[0].loc.start):e.module&&(s!=="ImportDefaultSpecifier"&&this.raise(M.ImportReflectionNotBinding,r[0].loc.start),e.assertions?.length>0&&this.raise(M.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 a;if(i.type==="ExportSpecifier"?a=i.local:i.type==="ImportSpecifier"&&(a=i.imported),a!==void 0)return a.type==="Identifier"?a.name!=="default":a.value!=="default"});s!==void 0&&this.raise(M.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:a}=this.state;return(tr(a)?a!==98||this.lookaheadCharCode()===102:a!==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 je(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(M.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(M.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(M.ModuleAttributeDifferentFromType,s.key),r.has(s.key.name)&&this.raise(M.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),r.add(s.key.name),this.expect(14),!this.match(134))throw this.raise(M.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(M.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(tr(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(M.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(134),a=this.isContextual(130);s.imported=this.parseModuleExportName();let u=this.parseImportSpecifier(s,i,e.importKind==="type"||e.importKind==="typeof",a,void 0);e.specifiers.push(u)}}parseImportSpecifier(e,r,s,i,a){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:u}=e;if(r)throw this.raise(M.ImportBindingIsString,e,{importName:u.value});this.checkReservedWord(u.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(u))}return this.finishImportSpecifier(e,"ImportSpecifier",a)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},qy=class extends $P{constructor(e,r,s){let i=xS(e);super(i,r),this.options=i,this.initializeScopes(),this.plugins=s,this.filename=i.sourceFilename,this.startIndex=i.startIndex;let a=0;i.allowAwaitOutsideFunction&&(a|=1),i.allowReturnOutsideFunction&&(a|=2),i.allowImportExportEverywhere&&(a|=8),i.allowSuperOutsideMethod&&(a|=16),i.allowUndeclaredExports&&(a|=64),i.allowNewTargetOutsideFunction&&(a|=4),i.allowYieldOutsideFunction&&(a|=32),i.ranges&&(a|=128),i.tokens&&(a|=256),i.createImportExpressions&&(a|=512),i.createParenthesizedExpressions&&(a|=1024),i.errorRecovery&&(a|=2048),i.attachComment&&(a|=4096),i.annexB&&(a|=8192),this.optionFlags=a}getScopeHandler(){return Bp}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 Vy(t,e){if(e?.sourceType==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=Tn(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Tn(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",Tn(e,t).parse()}catch{}throw r}}else return Tn(e,t).parse()}function zy(t,e){let r=Tn(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function jP(t){let e={};for(let r of Object.keys(t))e[r]=Py(t[r]);return e}jP(TS);function Tn(t,e){let r=qy,s=new Map;if(t?.plugins){for(let i of t.plugins){let a,u;typeof i=="string"?a=i:[a,u]=i,s.has(a)||s.set(a,u||{})}NP(s),r=RP(s)}return new r(t,e,s)}var Jd=new Map;function RP(t){let e=[];for(let i of BP)t.has(i)&&e.push(i);let r=e.join("|"),s=Jd.get(r);if(!s){s=qy;for(let i of e)s=Uy[i](s);Jd.set(r,s)}return s}function Hy(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:a}=e,u=r;for(;u>=0&&u<a;){let p=e.charAt(u);if(t instanceof RegExp){if(!t.test(p))return u}else if(!t.includes(p))return u;i?u--:u++}return u===-1||u===a?u:!1}}var UP=Hy(" "),qP=Hy(/[^\n\r]/u);function VP(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 zP=VP,Xd=t=>t===`
|
|
37
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function HP(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(Xd(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
39
|
+
`)return e+2;if(Xd(i))return e+1}return e}var WP=HP;function JP(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?qP(t,e):e}var XP=JP;function KP(t,e){let r=null,s=e;for(;s!==r;)r=s,s=UP(t,s),s=zP(t,s),s=XP(t,s),s=WP(t,s);return s}var GP=KP;function YP(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 QP(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
40
|
+
`);return e===-1?t:t.slice(0,e)}var Wy=QP,Lp=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),ZP=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}},ev=Lp("findLast",function(){if(Array.isArray(this))return ZP}),tv=ev;function rv(t){return this[t<0?this.length+t:t]}var sv=Lp("at",function(){if(Array.isArray(this)||typeof this=="string")return rv}),iv=sv;function _r(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(_r(r),e):e}function mr(t){return t.range?.[1]??t.end}function nv(t){let e=new Set(t);return r=>e.has(r?.type)}var Op=nv,av=Op(["Block","CommentBlock","MultiLine"]),_p=av,ov=Op(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),uv=ov,ju=new WeakMap;function lv(t){return ju.has(t)||ju.set(t,_p(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),ju.get(t)}var pv=lv;function cv(t){if(!_p(t))return!1;let e=`*${t.value}*`.split(`
|
|
41
|
+
`);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var Ru=new WeakMap;function hv(t){return Ru.has(t)||Ru.set(t,cv(t)),Ru.get(t)}var Kd=hv;function dv(t){if(t.length<2)return;let e;for(let r=t.length-1;r>=0;r--){let s=t[r];if(e&&mr(s)===_r(e)&&Kd(s)&&Kd(e)&&(t.splice(r+1,1),s.value+="*//*"+e.value,s.range=[_r(s),mr(e)]),!uv(s)&&!_p(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}var fv=dv;function mv(t){return t!==null&&typeof t=="object"}var yv=mv,un=null;function kn(t){if(un!==null&&typeof un.property){let e=un;return un=kn.prototype=null,e}return un=kn.prototype=t??Object.create(null),new kn}var gv=10;for(let t=0;t<=gv;t++)kn();function Dv(t){return kn(t)}function xv(t,e="type"){Dv(t);function r(s){let i=s[e],a=t[i];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return a}return r}var Ev=xv,L=[["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"]],Av={AccessorProperty:L[0],AnyTypeAnnotation:L[1],ArgumentPlaceholder:L[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:L[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:L[3],AsExpression:L[4],AssignmentExpression:L[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:L[6],BigIntLiteral:L[1],BigIntLiteralTypeAnnotation:L[1],BigIntTypeAnnotation:L[1],BinaryExpression:L[5],BindExpression:["object","callee"],BlockStatement:L[7],BooleanLiteral:L[1],BooleanLiteralTypeAnnotation:L[1],BooleanTypeAnnotation:L[1],BreakStatement:L[8],CallExpression:L[9],CatchClause:["param","body"],ChainExpression:L[3],ClassAccessorProperty:L[0],ClassBody:L[10],ClassDeclaration:L[11],ClassExpression:L[11],ClassImplements:L[12],ClassMethod:L[13],ClassPrivateMethod:L[13],ClassPrivateProperty:L[14],ClassProperty:L[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:L[15],ConditionalExpression:L[16],ConditionalTypeAnnotation:L[17],ContinueStatement:L[8],DebuggerStatement:L[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:L[18],DeclareEnum:L[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:L[20],DeclareFunction:["id","predicate"],DeclareHook:L[21],DeclareInterface:L[22],DeclareModule:L[19],DeclareModuleExports:L[23],DeclareNamespace:L[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:L[24],DeclareVariable:L[21],Decorator:L[3],Directive:L[18],DirectiveLiteral:L[1],DoExpression:L[10],DoWhileStatement:L[25],EmptyStatement:L[1],EmptyTypeAnnotation:L[1],EnumBigIntBody:L[26],EnumBigIntMember:L[27],EnumBooleanBody:L[26],EnumBooleanMember:L[27],EnumDeclaration:L[19],EnumDefaultedMember:L[21],EnumNumberBody:L[26],EnumNumberMember:L[27],EnumStringBody:L[26],EnumStringMember:L[27],EnumSymbolBody:L[26],ExistsTypeAnnotation:L[1],ExperimentalRestProperty:L[6],ExperimentalSpreadProperty:L[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:L[28],ExportNamedDeclaration:L[20],ExportNamespaceSpecifier:L[28],ExportSpecifier:["local","exported"],ExpressionStatement:L[3],File:["program"],ForInStatement:L[29],ForOfStatement:L[29],ForStatement:["init","test","update","body"],FunctionDeclaration:L[30],FunctionExpression:L[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:L[15],GenericTypeAnnotation:L[12],HookDeclaration:L[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:L[16],ImportAttribute:L[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:L[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:L[33],ImportSpecifier:["imported","local"],IndexedAccessType:L[34],InferredPredicate:L[1],InferTypeAnnotation:L[35],InterfaceDeclaration:L[22],InterfaceExtends:L[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:L[1],IntersectionTypeAnnotation:L[36],JsExpressionRoot:L[37],JsonRoot:L[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:L[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:L[1],JSXExpressionContainer:L[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:L[1],JSXMemberExpression:L[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:L[1],JSXSpreadAttribute:L[6],JSXSpreadChild:L[3],JSXText:L[1],KeyofTypeAnnotation:L[6],LabeledStatement:["label","body"],Literal:L[1],LogicalExpression:L[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:L[21],MatchExpression:L[39],MatchExpressionCase:L[40],MatchIdentifierPattern:L[21],MatchLiteralPattern:L[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:L[6],MatchStatement:L[39],MatchStatementCase:L[40],MatchUnaryPattern:L[6],MatchWildcardPattern:L[1],MemberExpression:L[38],MetaProperty:["meta","property"],MethodDefinition:L[42],MixedTypeAnnotation:L[1],ModuleExpression:L[10],NeverTypeAnnotation:L[1],NewExpression:L[9],NGChainedExpression:L[43],NGEmptyExpression:L[1],NGMicrosyntax:L[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:L[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:L[32],NGPipeExpression:["left","right","arguments"],NGRoot:L[37],NullableTypeAnnotation:L[23],NullLiteral:L[1],NullLiteralTypeAnnotation:L[1],NumberLiteralTypeAnnotation:L[1],NumberTypeAnnotation:L[1],NumericLiteral:L[1],ObjectExpression:["properties"],ObjectMethod:L[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:L[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:L[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:L[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:L[9],OptionalIndexedAccessType:L[34],OptionalMemberExpression:L[38],ParenthesizedExpression:L[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:L[1],PipelineTopicExpression:L[3],Placeholder:L[1],PrivateIdentifier:L[1],PrivateName:L[21],Program:L[7],Property:L[32],PropertyDefinition:L[14],QualifiedTypeIdentifier:L[44],QualifiedTypeofIdentifier:L[44],RegExpLiteral:L[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:L[6],SatisfiesExpression:L[4],SequenceExpression:L[43],SpreadElement:L[6],StaticBlock:L[10],StringLiteral:L[1],StringLiteralTypeAnnotation:L[1],StringTypeAnnotation:L[1],Super:L[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:L[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:L[1],TemplateLiteral:["quasis","expressions"],ThisExpression:L[1],ThisTypeAnnotation:L[1],ThrowStatement:L[6],TopicReference:L[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:L[45],TSAbstractKeyword:L[1],TSAbstractMethodDefinition:L[32],TSAbstractPropertyDefinition:L[45],TSAnyKeyword:L[1],TSArrayType:L[2],TSAsExpression:L[4],TSAsyncKeyword:L[1],TSBigIntKeyword:L[1],TSBooleanKeyword:L[1],TSCallSignatureDeclaration:L[46],TSClassImplements:L[47],TSConditionalType:L[17],TSConstructorType:L[46],TSConstructSignatureDeclaration:L[46],TSDeclareFunction:L[31],TSDeclareKeyword:L[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:L[26],TSEnumDeclaration:L[19],TSEnumMember:["id","initializer"],TSExportAssignment:L[3],TSExportKeyword:L[1],TSExternalModuleReference:L[3],TSFunctionType:L[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:L[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:L[35],TSInstantiationExpression:L[47],TSInterfaceBody:L[10],TSInterfaceDeclaration:L[22],TSInterfaceHeritage:L[47],TSIntersectionType:L[36],TSIntrinsicKeyword:L[1],TSJSDocAllType:L[1],TSJSDocNonNullableType:L[23],TSJSDocNullableType:L[23],TSJSDocUnknownType:L[1],TSLiteralType:L[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:L[10],TSModuleDeclaration:L[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:L[21],TSNeverKeyword:L[1],TSNonNullExpression:L[3],TSNullKeyword:L[1],TSNumberKeyword:L[1],TSObjectKeyword:L[1],TSOptionalType:L[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:L[23],TSPrivateKeyword:L[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:L[1],TSPublicKeyword:L[1],TSQualifiedName:L[5],TSReadonlyKeyword:L[1],TSRestType:L[23],TSSatisfiesExpression:L[4],TSStaticKeyword:L[1],TSStringKeyword:L[1],TSSymbolKeyword:L[1],TSTemplateLiteralType:["quasis","types"],TSThisType:L[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:L[23],TSTypeAssertion:L[4],TSTypeLiteral:L[26],TSTypeOperator:L[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:L[48],TSTypeParameterInstantiation:L[48],TSTypePredicate:L[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:L[1],TSUnionType:L[36],TSUnknownKeyword:L[1],TSVoidKeyword:L[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:L[24],TypeAnnotation:L[23],TypeCastExpression:L[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:L[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:L[48],TypeParameterInstantiation:L[48],TypePredicate:L[49],UnaryExpression:L[6],UndefinedTypeAnnotation:L[1],UnionTypeAnnotation:L[36],UnknownTypeAnnotation:L[1],UpdateExpression:L[6],V8IntrinsicIdentifier:L[1],VariableDeclaration:["declarations"],VariableDeclarator:L[27],Variance:L[1],VoidPattern:L[1],VoidTypeAnnotation:L[1],WhileStatement:L[25],WithStatement:["object","body"],YieldExpression:L[6]},Cv=Ev(Av),Tv=Cv;function to(t,e){if(!yv(t))return t;if(Array.isArray(t)){for(let s=0;s<t.length;s++)t[s]=to(t[s],e);return t}if(e.onEnter){let s=e.onEnter(t)??t;if(s!==t)return to(s,e);t=s}let r=Tv(t);for(let s=0;s<r.length;s++)t[r[s]]=to(t[r[s]],e);return e.onLeave&&(t=e.onLeave(t)||t),t}var bv=to;Op(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Sv(t,e){let{parser:r,text:s}=e,{comments:i}=t,a=r==="oxc"&&e.oxcAstType==="ts";fv(i);let u=t.type==="File"?t.program:t;u.interpreter&&(i.unshift(u.interpreter),delete u.interpreter),a&&t.hashbang&&(i.unshift(t.hashbang),delete t.hashbang),t.type==="Program"&&(t.range=[0,s.length]);let p;return t=bv(t,{onEnter(h){switch(h.type){case"ParenthesizedExpression":{let{expression:m}=h,f=_r(h);if(m.type==="TypeCastExpression")return m.range=[f,mr(h)],m;let d=!1;if(!a){if(!p){p=[];for(let g of i)pv(g)&&p.push(mr(g))}let D=tv(0,p,g=>g<=f);d=D&&s.slice(D,f).trim().length===0}return d?void 0:(m.extra={...m.extra,parenthesized:!0},m)}case"TemplateLiteral":if(h.expressions.length!==h.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||a){let m=_r(h)+1,f=mr(h)-(h.tail?1:2);h.range=[m,f]}break;case"VariableDeclaration":{let m=iv(0,h.declarations,-1);m?.init&&s[mr(m)]!==";"&&(h.range=[_r(h),mr(m)]);break}case"TSParenthesizedType":return h.typeAnnotation;case"TopicReference":t.extra={...t.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break;case"ImportExpression":r==="hermes"&&h.attributes&&!h.options&&(h.options=h.attributes);break}},onLeave(h){switch(h.type){case"LogicalExpression":if(Jy(h))return Cl(h);break;case"TSImportType":!h.source&&h.argument.type==="TSLiteralType"&&(h.source=h.argument.literal,delete h.argument);break}}}),t}function Jy(t){return t.type==="LogicalExpression"&&t.right.type==="LogicalExpression"&&t.operator===t.right.operator}function Cl(t){return Jy(t)?Cl({type:"LogicalExpression",operator:t.operator,left:Cl({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[_r(t.left),mr(t.right.left)]}),right:t.right.right,range:[_r(t),mr(t)]}):t}var Pv=Sv;function vv(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Xy=vv,Gd="Unexpected parseExpression() input: ";function wv(t){let{message:e,loc:r,reasonCode:s}=t;if(!r)return t;let{line:i,column:a}=r,u=t;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",u=void 0);let p=` (${i}:${a})`;return e.endsWith(p)&&(e=e.slice(0,-p.length)),e.startsWith(Gd)&&(e=e.slice(Gd.length)),Xy(e,{loc:{start:{line:i,column:a+1}},cause:u})}var Ky=wv,Fv=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},kv=Lp("replaceAll",function(){if(typeof this=="string")return Fv}),Oa=kv,Iv=/\*\/$/,Nv=/^\/\*\*?/,Bv=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Lv=/(^|\s+)\/\/([^\n\r]*)/g,Yd=/^(\r?\n)+/,Ov=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Qd=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,_v=/(\r?\n|^) *\* ?/g,Mv=[];function $v(t){let e=t.match(Bv);return e?e[0].trimStart():""}function jv(t){t=Oa(0,t.replace(Nv,"").replace(Iv,""),_v,"$1");let e="";for(;e!==t;)e=t,t=Oa(0,t,Ov,`
|
|
42
|
+
$1 $2
|
|
43
|
+
`);t=t.replace(Yd,"").trimEnd();let r=Object.create(null),s=Oa(0,t,Qd,"").replace(Yd,"").trimEnd(),i;for(;i=Qd.exec(t);){let a=Oa(0,i[2],Lv,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...Mv,...Array.isArray(u)?u:[u],a]}else r[i[1]]=a}return{comments:s,pragmas:r}}var Rv=["noformat","noprettier"],Uv=["format","prettier"];function Gy(t){let e=Wy(t);e&&(t=t.slice(e.length+1));let r=$v(t),{pragmas:s,comments:i}=jv(r);return{shebang:e,text:t,pragmas:s,comments:i}}function qv(t){let{pragmas:e}=Gy(t);return Uv.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function Vv(t){let{pragmas:e}=Gy(t);return Rv.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function zv(t){return t=typeof t=="function"?{parse:t}:t,{astFormat:"estree",hasPragma:qv,hasIgnorePragma:Vv,locStart:_r,locEnd:mr,...t}}var ta=zv,Mp="module",Yy="commonjs";function Hv(t){if(typeof t=="string"){if(t=t.toLowerCase(),/\.(?:mjs|mts)$/iu.test(t))return Mp;if(/\.(?:cjs|cts)$/iu.test(t))return Yy}}function Wv(t,e){let{type:r="JsExpressionRoot",rootMarker:s,text:i}=e,{tokens:a,comments:u}=t;return delete t.tokens,delete t.comments,{tokens:a,comments:u,type:r,node:t,range:[0,i.length],rootMarker:s}}var Qy=Wv,Mi=t=>ta(Yv(t)),Jv={sourceType:Mp,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},Zd="v8intrinsic",ef=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$r=(t,e=Jv)=>({...e,plugins:[...e.plugins,...t]}),Xv=/@(?:no)?flow\b/u;function Kv(t,e){if(e?.endsWith(".js.flow"))return!0;let r=Wy(t);r&&(t=t.slice(r.length));let s=GP(t,0);return s!==!1&&(t=t.slice(0,s)),Xv.test(t)}function Gv(t,e,r){let s=t(e,r),i=s.errors.find(a=>!Qv.has(a.reasonCode));if(i)throw i;return s}function Yv({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")&&Kv(r,i))return s.parser="babel-flow",eg.parse(r,s);let a=e,u=s.__babelSourceType??Hv(i);u&&u!==Mp&&(a=a.map(f=>({...f,sourceType:u,...u===Yy?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let p=/%[A-Z]/u.test(r);r.includes("|>")?a=(p?[...ef,Zd]:ef).flatMap(f=>a.map(d=>$r([f],d))):p&&(a=a.map(f=>$r([Zd],f)));let h=t?zy:Vy,m;try{m=YP(a.map(f=>()=>Gv(h,r,f)))}catch({errors:[f]}){throw Ky(f)}return t&&(m=Qy(m,{text:r,rootMarker:s.rootMarker})),Pv(m,{text:r})}}var Qv=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"]),Zy=[$r(["jsx"])],tf=Mi({optionsCombinations:Zy}),rf=Mi({optionsCombinations:[$r(["jsx","typescript"]),$r(["typescript"])]}),sf=Mi({isExpression:!0,optionsCombinations:[$r(["jsx"])]}),nf=Mi({isExpression:!0,optionsCombinations:[$r(["typescript"])]}),eg=Mi({optionsCombinations:[$r(["jsx",["flow",{all:!0}],"flowComments"])]}),Zv=Mi({optionsCombinations:Zy.map(t=>$r(["estree"],t))}),tg={};Ap(tg,{json:()=>rw,"json-stringify":()=>nw,json5:()=>sw,jsonc:()=>iw});function ew(t){return Array.isArray(t)&&t.length>0}var rg=ew,sg={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function tw(t){let e=Vy(t,sg),{program:r}=e;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return e}function vo(t,e={}){let{allowComments:r=!0,allowEmpty:s=!1}=e,i;try{i=zy(t,sg)}catch(a){if(s&&a.code==="BABEL_PARSER_SYNTAX_ERROR"&&a.reasonCode==="ParseExpressionEmptyInput")try{i=tw(t)}catch{}if(!i)throw Ky(a)}if(!r&&rg(i.comments))throw os(i.comments[0],"Comment");return i=Qy(i,{type:"JsonRoot",text:t}),i.node.type==="File"?delete i.node:mi(i.node),i}function os(t,e){let[r,s]=[t.loc.start,t.loc.end].map(({line:i,column:a})=>({line:i,column:a+1}));return Xy(`${e} is not allowed in JSON.`,{loc:{start:r,end:s}})}function mi(t){switch(t.type){case"ArrayExpression":for(let e of t.elements)e!==null&&mi(e);return;case"ObjectExpression":for(let e of t.properties)mi(e);return;case"ObjectProperty":if(t.computed)throw os(t.key,"Computed key");if(t.shorthand)throw os(t.key,"Shorthand property");t.key.type!=="Identifier"&&mi(t.key),mi(t.value);return;case"UnaryExpression":{let{operator:e,argument:r}=t;if(e!=="+"&&e!=="-")throw os(t,`Operator '${t.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw os(r,`Operator '${e}' before '${r.type}'`)}case"Identifier":if(t.name!=="Infinity"&&t.name!=="NaN"&&t.name!=="undefined")throw os(t,`Identifier '${t.name}'`);return;case"TemplateLiteral":if(rg(t.expressions))throw os(t.expressions[0],"'TemplateLiteral' with expression");for(let e of t.quasis)mi(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw os(t,`'${t.type}'`)}}var rw=ta({parse:t=>vo(t),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),sw=ta(t=>vo(t)),iw=ta(t=>vo(t,{allowEmpty:!0})),nw=ta({parse:t=>vo(t,{allowComments:!1}),astFormat:"estree-json"}),ig={...Ty,...tg};const TM=Object.freeze(Object.defineProperty({__proto__:null,default:Cy,parsers:ig},Symbol.toStringTag,{value:"Module"}));var aw=Object.defineProperty,$p=(t,e)=>{for(var r in e)aw(t,r,{get:e[r],enumerable:!0})},ng={};$p(ng,{languages:()=>mx,options:()=>dx,printers:()=>fx});var ow=[{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}],ag={};$p(ag,{canAttachComment:()=>wF,embed:()=>x3,features:()=>ZB,getVisitorKeys:()=>dg,handleComments:()=>lk,hasPrettierIgnore:()=>cc,insertPragma:()=>B3,isBlockComment:()=>or,isGap:()=>ck,massageAstNode:()=>CF,print:()=>Lf,printComment:()=>M3,printPrettierIgnored:()=>Lf,willPrintOwnComments:()=>fk});var jp=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),uw=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},lw=jp("replaceAll",function(){if(typeof this=="string")return uw}),nt=lw;function pw(t){return this[t<0?this.length+t:t]}var cw=jp("at",function(){if(Array.isArray(this)||typeof this=="string")return pw}),$e=cw;function hw(t){return t!==null&&typeof t=="object"}var og=hw;function*dw(t,e){let{getVisitorKeys:r,filter:s=()=>!0}=e,i=a=>og(a)&&s(a);for(let a of r(t)){let u=t[a];if(Array.isArray(u))for(let p of u)i(p)&&(yield p);else i(u)&&(yield u)}}function*fw(t,e){let r=[t];for(let s=0;s<r.length;s++){let i=r[s];for(let a of dw(i,e))yield a,r.push(a)}}function mw(t,{getVisitorKeys:e,predicate:r}){for(let s of fw(t,{getVisitorKeys:e}))if(r(s))return!0;return!1}var yw=()=>/[#*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 gw(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 xw="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",Ew=/[^\x20-\x7F]/u,Aw=new Set(xw);function Cw(t){if(!t)return 0;if(!Ew.test(t))return t.length;t=t.replace(yw(),r=>Aw.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+=gw(s)||Dw(s)?2:1)}return e}var wi=Cw;function Rp(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:a}=e,u=r;for(;u>=0&&u<a;){let p=e.charAt(u);if(t instanceof RegExp){if(!t.test(p))return u}else if(!t.includes(p))return u;i?u--:u++}return u===-1||u===a?u:!1}}var Fi=Rp(" "),Tw=Rp(",; "),bw=Rp(/[^\n\r]/u),af=t=>t===`
|
|
44
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function Sw(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(af(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
46
|
+
`)return e+2;if(af(i))return e+1}return e}var ki=Sw;function Pw(t,e,r={}){let s=Fi(t,r.backwards?e-1:e,r),i=ki(t,s,r);return s!==i}var wt=Pw;function vw(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 Up=vw;function ww(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?bw(t,e):e}var qp=ww;function Fw(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Tw(t,s),s=Up(t,s),s=Fi(t,s);return s=qp(t,s),s=ki(t,s),s!==!1&&wt(t,s)}var Vp=Fw;function kw(t){return Array.isArray(t)&&t.length>0}var He=kw,Iw=()=>{},Nw=Iw,ug=Object.freeze({character:"'",codePoint:39}),lg=Object.freeze({character:'"',codePoint:34}),Bw=Object.freeze({preferred:ug,alternate:lg}),Lw=Object.freeze({preferred:lg,alternate:ug});function Ow(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?Bw:Lw,{length:i}=t,a=0,u=0;for(let p=0;p<i;p++){let h=t.charCodeAt(p);h===r.codePoint?a++:h===s.codePoint&&u++}return(a>u?s:r).character}var pg=Ow,_w=/\\(["'\\])|(["'])/gu;function Mw(t,e){let r=e==='"'?"'":'"',s=nt(0,t,_w,(i,a,u)=>a?a===r?r:i:u===e?"\\"+u:u);return e+s+e}var $w=Mw;function jw(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?"'":pg(r,e.singleQuote);return t.charAt(0)===s?t:$w(r,s)}var Ii=jw,cg=t=>Number.isInteger(t)&&t>=0;function ke(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(ke(r),e):e}function ve(t){return t.range?.[1]??t.end}function wo(t,e){let r=ke(t);return cg(r)&&r===ke(e)}function Rw(t,e){let r=ve(t);return cg(r)&&r===ve(e)}function Uw(t,e){return wo(t,e)&&Rw(t,e)}var ln=null;function In(t){if(ln!==null&&typeof ln.property){let e=ln;return ln=In.prototype=null,e}return ln=In.prototype=t??Object.create(null),new In}var qw=10;for(let t=0;t<=qw;t++)In();function Vw(t){return In(t)}function zw(t,e="type"){Vw(t);function r(s){let i=s[e],a=t[i];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return a}return r}var hg=zw,O=[["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"]],Hw={AccessorProperty:O[0],AnyTypeAnnotation:O[1],ArgumentPlaceholder:O[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:O[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:O[3],AsExpression:O[4],AssignmentExpression:O[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:O[6],BigIntLiteral:O[1],BigIntLiteralTypeAnnotation:O[1],BigIntTypeAnnotation:O[1],BinaryExpression:O[5],BindExpression:["object","callee"],BlockStatement:O[7],BooleanLiteral:O[1],BooleanLiteralTypeAnnotation:O[1],BooleanTypeAnnotation:O[1],BreakStatement:O[8],CallExpression:O[9],CatchClause:["param","body"],ChainExpression:O[3],ClassAccessorProperty:O[0],ClassBody:O[10],ClassDeclaration:O[11],ClassExpression:O[11],ClassImplements:O[12],ClassMethod:O[13],ClassPrivateMethod:O[13],ClassPrivateProperty:O[14],ClassProperty:O[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:O[15],ConditionalExpression:O[16],ConditionalTypeAnnotation:O[17],ContinueStatement:O[8],DebuggerStatement:O[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:O[18],DeclareEnum:O[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:O[20],DeclareFunction:["id","predicate"],DeclareHook:O[21],DeclareInterface:O[22],DeclareModule:O[19],DeclareModuleExports:O[23],DeclareNamespace:O[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:O[24],DeclareVariable:O[21],Decorator:O[3],Directive:O[18],DirectiveLiteral:O[1],DoExpression:O[10],DoWhileStatement:O[25],EmptyStatement:O[1],EmptyTypeAnnotation:O[1],EnumBigIntBody:O[26],EnumBigIntMember:O[27],EnumBooleanBody:O[26],EnumBooleanMember:O[27],EnumDeclaration:O[19],EnumDefaultedMember:O[21],EnumNumberBody:O[26],EnumNumberMember:O[27],EnumStringBody:O[26],EnumStringMember:O[27],EnumSymbolBody:O[26],ExistsTypeAnnotation:O[1],ExperimentalRestProperty:O[6],ExperimentalSpreadProperty:O[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:O[28],ExportNamedDeclaration:O[20],ExportNamespaceSpecifier:O[28],ExportSpecifier:["local","exported"],ExpressionStatement:O[3],File:["program"],ForInStatement:O[29],ForOfStatement:O[29],ForStatement:["init","test","update","body"],FunctionDeclaration:O[30],FunctionExpression:O[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:O[15],GenericTypeAnnotation:O[12],HookDeclaration:O[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:O[16],ImportAttribute:O[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:O[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:O[33],ImportSpecifier:["imported","local"],IndexedAccessType:O[34],InferredPredicate:O[1],InferTypeAnnotation:O[35],InterfaceDeclaration:O[22],InterfaceExtends:O[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:O[1],IntersectionTypeAnnotation:O[36],JsExpressionRoot:O[37],JsonRoot:O[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:O[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:O[1],JSXExpressionContainer:O[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:O[1],JSXMemberExpression:O[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:O[1],JSXSpreadAttribute:O[6],JSXSpreadChild:O[3],JSXText:O[1],KeyofTypeAnnotation:O[6],LabeledStatement:["label","body"],Literal:O[1],LogicalExpression:O[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:O[21],MatchExpression:O[39],MatchExpressionCase:O[40],MatchIdentifierPattern:O[21],MatchLiteralPattern:O[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:O[6],MatchStatement:O[39],MatchStatementCase:O[40],MatchUnaryPattern:O[6],MatchWildcardPattern:O[1],MemberExpression:O[38],MetaProperty:["meta","property"],MethodDefinition:O[42],MixedTypeAnnotation:O[1],ModuleExpression:O[10],NeverTypeAnnotation:O[1],NewExpression:O[9],NGChainedExpression:O[43],NGEmptyExpression:O[1],NGMicrosyntax:O[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:O[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:O[32],NGPipeExpression:["left","right","arguments"],NGRoot:O[37],NullableTypeAnnotation:O[23],NullLiteral:O[1],NullLiteralTypeAnnotation:O[1],NumberLiteralTypeAnnotation:O[1],NumberTypeAnnotation:O[1],NumericLiteral:O[1],ObjectExpression:["properties"],ObjectMethod:O[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:O[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:O[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:O[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:O[9],OptionalIndexedAccessType:O[34],OptionalMemberExpression:O[38],ParenthesizedExpression:O[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:O[1],PipelineTopicExpression:O[3],Placeholder:O[1],PrivateIdentifier:O[1],PrivateName:O[21],Program:O[7],Property:O[32],PropertyDefinition:O[14],QualifiedTypeIdentifier:O[44],QualifiedTypeofIdentifier:O[44],RegExpLiteral:O[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:O[6],SatisfiesExpression:O[4],SequenceExpression:O[43],SpreadElement:O[6],StaticBlock:O[10],StringLiteral:O[1],StringLiteralTypeAnnotation:O[1],StringTypeAnnotation:O[1],Super:O[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:O[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:O[1],TemplateLiteral:["quasis","expressions"],ThisExpression:O[1],ThisTypeAnnotation:O[1],ThrowStatement:O[6],TopicReference:O[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:O[45],TSAbstractKeyword:O[1],TSAbstractMethodDefinition:O[32],TSAbstractPropertyDefinition:O[45],TSAnyKeyword:O[1],TSArrayType:O[2],TSAsExpression:O[4],TSAsyncKeyword:O[1],TSBigIntKeyword:O[1],TSBooleanKeyword:O[1],TSCallSignatureDeclaration:O[46],TSClassImplements:O[47],TSConditionalType:O[17],TSConstructorType:O[46],TSConstructSignatureDeclaration:O[46],TSDeclareFunction:O[31],TSDeclareKeyword:O[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:O[26],TSEnumDeclaration:O[19],TSEnumMember:["id","initializer"],TSExportAssignment:O[3],TSExportKeyword:O[1],TSExternalModuleReference:O[3],TSFunctionType:O[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:O[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:O[35],TSInstantiationExpression:O[47],TSInterfaceBody:O[10],TSInterfaceDeclaration:O[22],TSInterfaceHeritage:O[47],TSIntersectionType:O[36],TSIntrinsicKeyword:O[1],TSJSDocAllType:O[1],TSJSDocNonNullableType:O[23],TSJSDocNullableType:O[23],TSJSDocUnknownType:O[1],TSLiteralType:O[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:O[10],TSModuleDeclaration:O[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:O[21],TSNeverKeyword:O[1],TSNonNullExpression:O[3],TSNullKeyword:O[1],TSNumberKeyword:O[1],TSObjectKeyword:O[1],TSOptionalType:O[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:O[23],TSPrivateKeyword:O[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:O[1],TSPublicKeyword:O[1],TSQualifiedName:O[5],TSReadonlyKeyword:O[1],TSRestType:O[23],TSSatisfiesExpression:O[4],TSStaticKeyword:O[1],TSStringKeyword:O[1],TSSymbolKeyword:O[1],TSTemplateLiteralType:["quasis","types"],TSThisType:O[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:O[23],TSTypeAssertion:O[4],TSTypeLiteral:O[26],TSTypeOperator:O[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:O[48],TSTypeParameterInstantiation:O[48],TSTypePredicate:O[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:O[1],TSUnionType:O[36],TSUnknownKeyword:O[1],TSVoidKeyword:O[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:O[24],TypeAnnotation:O[23],TypeCastExpression:O[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:O[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:O[48],TypeParameterInstantiation:O[48],TypePredicate:O[49],UnaryExpression:O[6],UndefinedTypeAnnotation:O[1],UnionTypeAnnotation:O[36],UnknownTypeAnnotation:O[1],UpdateExpression:O[6],V8IntrinsicIdentifier:O[1],VariableDeclaration:["declarations"],VariableDeclarator:O[27],Variance:O[1],VoidPattern:O[1],VoidTypeAnnotation:O[1],WhileStatement:O[25],WithStatement:["object","body"],YieldExpression:O[6]},Ww=hg(Hw),dg=Ww;function Jw(t){let e=new Set(t);return r=>e.has(r?.type)}var Ae=Jw;function Xw(t){return t.extra?.raw??t.raw}var Ft=Xw,Kw=Ae(["Block","CommentBlock","MultiLine"]),or=Kw,Gw=Ae(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),fg=Gw,Yw=Ae(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),ra=Yw;function Qw(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 Zw(t,e){return e.some(r=>Qw(t,r))}var zp=Zw;function eF({type:t}){return t.startsWith("TS")&&t.endsWith("Keyword")}var mg=eF;function tF({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 Hp=tF;function Tl(t,e){return e(t)||mw(t,{getVisitorKeys:dg,predicate:e})}function Wp(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||_e(t)||ze(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||rr(t)||t.type==="TSNonNullExpression"||t.type==="ChainExpression"}function rF(t){return t.expressions?t.expressions[0]:t.left??t.test??t.callee??t.object??t.tag??t.argument??t.expression}function yg(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 sF=Ae(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ht=Ae(["ArrayExpression"]),ir=Ae(["ObjectExpression"]);function iF(t){return t.type==="LogicalExpression"&&t.operator==="??"}function xr(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function nF(t){return t.type==="BooleanLiteral"||t.type==="Literal"&&typeof t.value=="boolean"}function gg(t){return t.type==="UnaryExpression"&&(t.operator==="+"||t.operator==="-")&&xr(t.argument)}function ot(t){return!!(t&&(t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"))}function Dg(t){return t.type==="RegExpLiteral"||t.type==="Literal"&&!!t.regex}var Jp=Ae(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),aF=Ae(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),fs=Ae(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),qn=Ae(["FunctionExpression","ArrowFunctionExpression"]);function oF(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"}function Uu(t){return _e(t)&&t.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(t.callee.name)}var at=Ae(["JSXElement","JSXFragment"]);function sa(t){return t.method&&t.kind==="init"||t.kind==="get"||t.kind==="set"}function xg(t){return(t.type==="ObjectTypeProperty"||t.type==="ObjectTypeInternalSlot")&&!t.static&&!t.method&&t.kind!=="get"&&t.kind!=="set"&&t.value.type==="FunctionTypeAnnotation"}function uF(t){return(t.type==="TypeAnnotation"||t.type==="TSTypeAnnotation")&&t.typeAnnotation.type==="FunctionTypeAnnotation"&&!t.static&&!wo(t,t.typeAnnotation)}var jr=Ae(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function yi(t){return ze(t)||t.type==="BindExpression"&&!!t.object}var lF=Ae(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Xp(t){return mg(t)||fg(t)||lF(t)||t.type==="GenericTypeAnnotation"&&!t.typeParameters||t.type==="TSTypeReference"&&!t.typeArguments}function pF(t){return t.type==="Identifier"&&(t.name==="beforeEach"||t.name==="beforeAll"||t.name==="afterEach"||t.name==="afterAll")}var cF=["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 hF(t){return zp(t,cF)}function Fo(t,e){if(t?.type!=="CallExpression"||t.optional)return!1;let r=Ut(t);if(r.length===1){if(Uu(t)&&Fo(e))return qn(r[0]);if(pF(t.callee))return Uu(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||ot(r[0]))&&hF(t.callee))return r[2]&&!xr(r[2])?!1:(r.length===2?qn(r[1]):oF(r[1])&&yt(r[1]).length<=1)||Uu(r[1]);return!1}var Eg=t=>e=>(e?.type==="ChainExpression"&&(e=e.expression),t(e)),_e=Eg(Ae(["CallExpression","OptionalCallExpression"])),ze=Eg(Ae(["MemberExpression","OptionalMemberExpression"]));function of(t,e=5){return Ag(t,e)<=e}function Ag(t,e){let r=0;for(let s in t){let i=t[s];if(og(i)&&typeof i.type=="string"&&(r++,r+=Ag(i,e-r)),r>e)return r}return r}var dF=.25;function Kp(t,e){let{printWidth:r}=e;if(se(t))return!1;let s=r*dF;if(t.type==="ThisExpression"||t.type==="Identifier"&&t.name.length<=s||gg(t)&&!se(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:ot(t)?Ii(Ft(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"?Kp(t.argument,{printWidth:r}):t.type==="CallExpression"&&t.arguments.length===0&&t.callee.type==="Identifier"?t.callee.name.length<=s-2:Jp(t)}function sr(t,e){return at(e)?ko(e):se(e,ue.Leading,r=>wt(t,ve(r)))}function uf(t){return t.quasis.some(e=>e.value.raw.includes(`
|
|
48
|
+
`))}function Cg(t,e){return(t.type==="TemplateLiteral"&&uf(t)||t.type==="TaggedTemplateExpression"&&uf(t.quasi))&&!wt(e,ke(t),{backwards:!0})}function Tg(t){if(!se(t))return!1;let e=$e(0,$s(t,ue.Dangling),-1);return e&&!or(e)}function fF(t){if(t.length<=1)return!1;let e=0;for(let r of t)if(qn(r)){if(e+=1,e>1)return!0}else if(_e(r)){for(let s of Ut(r))if(qn(s))return!0}return!1}function bg(t){let{node:e,parent:r,key:s}=t;return s==="callee"&&_e(e)&&_e(r)&&r.arguments.length>0&&e.arguments.length>r.arguments.length}var mF=new Set(["!","-","+","~"]);function er(t,e=2){if(e<=0)return!1;if(t.type==="ChainExpression"||t.type==="TSNonNullExpression")return er(t.expression,e);let r=s=>er(s,e-1);if(Dg(t))return wi(t.pattern??t.regex.pattern)<=5;if(Jp(t)||aF(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(ir(t))return t.properties.every(s=>!s.computed&&(s.shorthand||s.value&&r(s.value)));if(ht(t))return t.elements.every(s=>s===null||r(s));if(Bi(t)){if(t.type==="ImportExpression"||er(t.callee,e)){let s=Ut(t);return s.length<=e&&s.every(r)}return!1}return ze(t)?er(t.object,e)&&er(t.property,e):t.type==="UnaryExpression"&&mF.has(t.operator)||t.type==="UpdateExpression"?er(t.argument,e):!1}function br(t,e="es5"){return t.trailingComma==="es5"&&e==="es5"||t.trailingComma==="all"&&(e==="all"||e==="es5")}function xt(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return xt(t.left,e);case"MemberExpression":case"OptionalMemberExpression":return xt(t.object,e);case"TaggedTemplateExpression":return t.tag.type==="FunctionExpression"?!1:xt(t.tag,e);case"CallExpression":case"OptionalCallExpression":return t.callee.type==="FunctionExpression"?!1:xt(t.callee,e);case"ConditionalExpression":return xt(t.test,e);case"UpdateExpression":return!t.prefix&&xt(t.argument,e);case"BindExpression":return t.object&&xt(t.object,e);case"SequenceExpression":return xt(t.expressions[0],e);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return xt(t.expression,e);default:return e(t)}}var lf={"==":!0,"!=":!0,"===":!0,"!==":!0},_a={"*":!0,"/":!0,"%":!0},bl={">>":!0,">>>":!0,"<<":!0};function Gp(t,e){return!(co(e)!==co(t)||t==="**"||lf[t]&&lf[e]||e==="%"&&_a[t]||t==="%"&&_a[e]||e!==t&&_a[e]&&_a[t]||bl[t]&&bl[e])}var yF=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((t,e)=>t.map(r=>[r,e])));function co(t){return yF.get(t)}function gF(t){return!!bl[t]||t==="|"||t==="^"||t==="&"}function DF(t){if(t.rest)return!0;let e=yt(t);return $e(0,e,-1)?.type==="RestElement"}var qu=new WeakMap;function yt(t){if(qu.has(t))return qu.get(t);let e=[];return t.this&&e.push(t.this),e.push(...t.params),t.rest&&e.push(t.rest),qu.set(t,e),e}function xF(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 Vu=new WeakMap;function Ut(t){if(Vu.has(t))return Vu.get(t);if(t.type==="ChainExpression")return Ut(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,Vu.set(t,e),e}function ho(t,e){let{node:r}=t;if(r.type==="ChainExpression")return t.call(()=>ho(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 pf(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 Ni(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function ko(t){return t?.prettierIgnore||se(t,ue.PrettierIgnore)}var ue={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Sg=(t,e)=>{if(typeof t=="function"&&(e=t,t=0),t||e)return(r,s,i)=>!(t&ue.Leading&&!r.leading||t&ue.Trailing&&!r.trailing||t&ue.Dangling&&(r.leading||r.trailing)||t&ue.Block&&!or(r)||t&ue.Line&&!ra(r)||t&ue.First&&s!==0||t&ue.Last&&s!==i.length-1||t&ue.PrettierIgnore&&!Ni(r)||e&&!e(r))};function se(t,e,r){if(!He(t?.comments))return!1;let s=Sg(e,r);return s?t.comments.some(s):!0}function $s(t,e,r){if(!Array.isArray(t?.comments))return[];let s=Sg(e,r);return s?t.comments.filter(s):t.comments}var Sr=(t,{originalText:e})=>Vp(e,ve(t));function Bi(t){return _e(t)||t.type==="NewExpression"||t.type==="ImportExpression"}function Ds(t){return t&&(t.type==="ObjectProperty"||t.type==="Property"&&!sa(t))}var rr=Ae(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Er=Ae(["TSUnionType","UnionTypeAnnotation"]),ia=Ae(["TSIntersectionType","IntersectionTypeAnnotation"]),ms=Ae(["TSConditionalType","ConditionalTypeAnnotation"]),EF=t=>t?.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const",Sl=Ae(["TSTypeAliasDeclaration","TypeAlias"]);function Pg({key:t,parent:e}){return!(t==="types"&&Er(e)||t==="types"&&ia(e))}var AF=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),ci=t=>{for(let e of t.quasis)delete e.value};function vg(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"&&!Hp({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;ot(i)||xr(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:a}of e.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&ci(a);t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&ci(e.value.expression),t.type==="JSXAttribute"&&t.value?.type==="Literal"&&/["']|"|'/u.test(t.value.value)&&(e.value.value=nt(0,t.value.value,/["']|"|'/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[a,u]of e.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":ht(u.value)&&ci(u.value.elements[0]);break;case"template":u.value.type==="TemplateLiteral"&&ci(u.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")&&ci(e.quasi),t.type==="TemplateLiteral"&&ci(e),t.type==="ChainExpression"&&t.expression.type==="TSNonNullExpression"&&(e.type="TSNonNullExpression",e.expression.type="ChainExpression")}vg.ignoredProperties=AF;var CF=vg,TF=Ae(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),bF=(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&&!sa(e)&&e.value!==e.key,SF=(t,[e])=>!!(t.type==="FunctionExpression"&&e.type==="MethodDefinition"&&e.value===t&&yt(t).length===0&&!t.returnType&&!He(t.typeParameters)&&t.body),cf=(t,[e])=>e?.typeAnnotation===t&&EF(e),PF=(t,[e,...r])=>cf(t,[e])||e?.typeName===t&&cf(e,r);function vF(t,e){return TF(t)||bF(t,e)||SF(t,e)?!1:t.type==="EmptyStatement"?Hp({node:t,parent:e[0]}):!(PF(t,e)||t.type==="TSTypeAnnotation"&&e[0].type==="TSPropertySignature")}var wF=vF;function FF(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 Yp(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=FF(t)}function Ye(t,e){e.leading=!0,e.trailing=!1,Yp(t,e)}function $t(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Yp(t,e)}function We(t,e){e.leading=!1,e.trailing=!0,Yp(t,e)}function kF(t,e){let r=null,s=e;for(;s!==r;)r=s,s=Fi(t,s),s=Up(t,s),s=qp(t,s),s=ki(t,s);return s}var $i=kF;function IF(t,e){let r=$i(t,e);return r===!1?"":t.charAt(r)}var nr=IF;function NF(t,e,r){for(let s=e;s<r;++s)if(t.charAt(s)===`
|
|
50
|
+
`)return!0;return!1}var jt=NF,zu=new WeakMap;function BF(t){return zu.has(t)||zu.set(t,or(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),zu.get(t)}var wg=BF,Qp=(t,e)=>ra(t)||!jt(e,ke(t),ve(t));function LF(t){return[Mg,kg,Lg,HF,$F,Zp,ec,Fg,Ig,GF,JF,XF,rc,_g,YF,Ng,Og,tc,jF,ik,$g,sc].some(e=>e(t))}function OF(t){return[MF,Lg,kg,_g,Zp,ec,Fg,Ig,Og,WF,KF,rc,ek,tc,rk,sk,nk,$g,ok,ak,sc].some(e=>e(t))}function _F(t){return[Mg,Zp,ec,zF,Ng,rc,VF,qF,tc,tk,sc].some(e=>e(t))}function Js(t,e){let r=(t.body||t.properties).find(({type:s})=>s!=="EmptyStatement");r?Ye(r,e):$t(t,e)}function Pl(t,e){t.type==="BlockStatement"?Js(t,e):Ye(t,e)}function MF({comment:t,followingNode:e}){return e&&wg(t)?(Ye(e,t),!0):!1}function Zp({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){if(r?.type!=="IfStatement"||!s)return!1;if(nr(i,ve(t))===")")return We(e,t),!0;if(s.type==="BlockStatement"&&s===r.consequent&&ke(t)>=ve(e)&&ve(t)<=ke(s))return Ye(s,t),!0;if(e===r.consequent&&s===r.alternate){let a=$i(i,ve(r.consequent));if(s.type==="BlockStatement"&&ke(t)>=a&&ve(t)<=ke(s))return Ye(s,t),!0;if(ke(t)<a||r.alternate.type==="BlockStatement")return e.type==="BlockStatement"||Qp(t,i)&&!jt(i,ke(e),ke(t))?(We(e,t),!0):($t(r,t),!0)}return s.type==="BlockStatement"?(Js(s,t),!0):s.type==="IfStatement"?(Pl(s.consequent,t),!0):r.consequent===s?(Ye(s,t),!0):!1}function ec({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return r?.type!=="WhileStatement"||!s?!1:nr(i,ve(t))===")"?(We(e,t),!0):s.type==="BlockStatement"?(Js(s,t),!0):r.body===s?(Ye(s,t),!0):!1}function Fg({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!s?!1:r.type==="CatchClause"&&e?(We(e,t),!0):s.type==="BlockStatement"?(Js(s,t),!0):s.type==="TryStatement"?(Pl(s.finalizer,t),!0):s.type==="CatchClause"?(Pl(s.body,t),!0):!1}function $F({comment:t,enclosingNode:e,followingNode:r}){return ze(e)&&r?.type==="Identifier"?(Ye(e,t),!0):!1}function jF({comment:t,enclosingNode:e,followingNode:r,options:s}){return!s.experimentalTernaries||!(e?.type==="ConditionalExpression"||ms(e))?!1:r?.type==="ConditionalExpression"||ms(r)?($t(e,t),!0):!1}function kg({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i,options:a}){let u=e&&!jt(i,ve(e),ke(t));return(!e||!u)&&(r?.type==="ConditionalExpression"||ms(r))&&s?a.experimentalTernaries&&r.alternate===s&&!(or(t)&&!jt(a.originalText,ke(t),ve(t)))?($t(r,t),!0):(Ye(s,t),!0):!1}var RF=Ae(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Ig({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){if(RF(r)){if(He(r.decorators)&&s?.type!=="Decorator")return We($e(0,r.decorators,-1),t),!0;if(r.body&&s===r.body)return Js(r.body,t),!0;if(s){if(r.superClass&&s===r.superClass&&e&&(e===r.id||e===r.typeParameters))return We(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)?We(e,t):$t(r,t,i),!0}}return!1}var UF=Ae(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Ng({comment:t,precedingNode:e,enclosingNode:r,text:s}){return r&&e&&nr(s,ve(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&e.type==="Identifier"&&r.key===e&&nr(s,ve(e))!==":"||e?.type==="Decorator"&&UF(r)&&(ra(t)||t.placement==="ownLine")?(We(e,t),!0):!1}var Bg=Ae(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function qF({comment:t,precedingNode:e,enclosingNode:r,text:s}){return nr(s,ve(t))!=="("?!1:e&&Bg(r)?(We(e,t),!0):!1}function VF({comment:t,enclosingNode:e,text:r}){if(e?.type!=="ArrowFunctionExpression")return!1;let s=$i(r,ve(t));return s!==!1&&r.slice(s,s+2)==="=>"?($t(e,t),!0):!1}function zF({comment:t,enclosingNode:e,text:r}){return nr(r,ve(t))!==")"?!1:e&&(jg(e)&&yt(e).length===0||Bi(e)&&Ut(e).length===0)?($t(e,t),!0):(e?.type==="MethodDefinition"||e?.type==="TSAbstractMethodDefinition")&&yt(e.value).length===0?($t(e.value,t),!0):!1}function HF({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"&&nr(i,ve(t))===")"?(We(e,t),!0):!1}function Lg({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")&&jg(r)&&nr(i,ve(t))===")"?(We(e,t),!0):!or(t)&&s?.type==="BlockStatement"&&Bg(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===s&&$i(i,ve(t))===ke(s)?(Js(s,t),!0):!1}function Og({comment:t,enclosingNode:e}){return e?.type==="LabeledStatement"?(Ye(e,t),!0):!1}function tc({comment:t,enclosingNode:e}){return(e?.type==="ContinueStatement"||e?.type==="BreakStatement")&&!e.label?(We(e,t),!0):!1}function WF({comment:t,precedingNode:e,enclosingNode:r}){return _e(r)&&e&&r.callee===e&&r.arguments.length>0?(Ye(r.arguments[0],t),!0):!1}function JF({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return Er(r)?(Ni(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(We(e,t),!0):!1):(Er(s)&&Ni(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function XF({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return r&&r.type==="MatchOrPattern"?(Ni(t)&&(s.prettierIgnore=!0,t.unignore=!0),e?(We(e,t),!0):!1):(s&&s.type==="MatchOrPattern"&&Ni(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function KF({comment:t,enclosingNode:e}){return Ds(e)?(Ye(e,t),!0):!1}function rc({comment:t,enclosingNode:e,ast:r,isLastComment:s}){return r?.body?.length===0?(s?$t(r,t):Ye(r,t),!0):e?.type==="Program"&&e.body.length===0&&!He(e.directives)?(s?$t(e,t):Ye(e,t),!0):!1}function GF({comment:t,enclosingNode:e,followingNode:r}){return(e?.type==="ForInStatement"||e?.type==="ForOfStatement")&&r!==e.body?(Ye(e,t),!0):!1}function _g({comment:t,precedingNode:e,enclosingNode:r,text:s}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Ye(r,t),!0;let i=e?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",a=e?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(i||a)&&wt(s,ve(t))?(We(e,t),!0):!1}function YF({comment:t,enclosingNode:e}){return e?.type==="AssignmentPattern"?(Ye(e,t),!0):!1}var QF=Ae(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ZF=Ae(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ek({comment:t,enclosingNode:e,followingNode:r}){return QF(e)&&r&&(ZF(r)||or(t))?(Ye(r,t),!0):!1}function tk({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)&&nr(i,ve(t))===";"?(We(e,t),!0):!1}function Mg({comment:t,enclosingNode:e,followingNode:r}){if(Ni(t)&&e?.type==="TSMappedType"&&r===e.key)return e.prettierIgnore=!0,t.unignore=!0,!0}function $g({comment:t,precedingNode:e,enclosingNode:r}){if(r?.type==="TSMappedType"&&!e)return $t(r,t),!0}function rk({comment:t,enclosingNode:e,followingNode:r}){return!e||e.type!=="SwitchCase"||e.test||!r||r!==e.consequent[0]?!1:(r.type==="BlockStatement"&&ra(t)?Js(r,t):$t(e,t),!0)}function sk({comment:t,precedingNode:e,enclosingNode:r,followingNode:s}){return Er(e)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!s||ia(r))?(We($e(0,e.types,-1),t),!0):!1}function ik({comment:t,enclosingNode:e,precedingNode:r,followingNode:s}){if((e?.type==="ObjectPattern"||e?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return r?We(r,t):$t(e,t),!0}function nk({comment:t,precedingNode:e,enclosingNode:r,followingNode:s,text:i}){return!s&&r?.type==="UnaryExpression"&&(e?.type==="LogicalExpression"||e?.type==="BinaryExpression")&&jt(i,ke(r.argument),ke(e.right))&&Qp(t,i)&&!jt(i,ke(e.right),ke(t))?(We(e.right,t),!0):!1}function ak({enclosingNode:t,followingNode:e,comment:r}){if(t&&(t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty")&&(Er(e)||ia(e)))return Ye(e,r),!0}function sc({enclosingNode:t,precedingNode:e,followingNode:r,comment:s,text:i}){if(rr(t)&&e===t.expression&&!Qp(s,i))return r?Ye(r,s):We(t,s),!0}function ok({comment:t,enclosingNode:e,followingNode:r,precedingNode:s}){return e&&r&&s&&e.type==="ArrowFunctionExpression"&&e.returnType===s&&(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation")?(Ye(r,t),!0):!1}var jg=Ae(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),uk={endOfLine:OF,ownLine:LF,remaining:_F},lk=uk;function pk(t,{parser:e}){if(e==="flow"||e==="hermes"||e==="babel-flow")return t=nt(0,t,/[\s(]/gu,""),t===""||t==="/*"||t==="/*::"}var ck=pk,hk=Ae(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function dk(t){let{key:e,parent:r}=t;if(e==="types"&&Er(r)||e==="argument"&&r.type==="JSXSpreadAttribute"||e==="expression"&&r.type==="JSXSpreadChild"||e==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(e==="id"||e==="typeParameters")&&hk(r)||e==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:s}=t;return ko(s)?!1:Er(s)?Pg(t):!!at(s)}var fk=dk,Xs="string",Rr="array",ji="cursor",Ks="indent",Gs="align",Ys="trim",Yt="group",xs="fill",gr="if-break",Qs="indent-if-break",Zs="line-suffix",Es="line-suffix-boundary",It="line",Kr="label",Gr="break-parent",Rg=new Set([ji,Ks,Gs,Ys,Yt,xs,gr,Qs,Zs,Es,It,Kr,Gr]);function mk(t){if(typeof t=="string")return Xs;if(Array.isArray(t))return Rr;if(!t)return;let{type:e}=t;if(Rg.has(e))return e}var As=mk,yk=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function gk(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(As(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=yk([...Rg].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
52
|
+
Expected it to be ${s}.`}var Dk=class extends Error{name="InvalidDocError";constructor(e){super(gk(e)),this.doc=e}},Vn=Dk,hf={};function xk(t,e,r,s){let i=[t];for(;i.length>0;){let a=i.pop();if(a===hf){r(i.pop());continue}r&&i.push(a,hf);let u=As(a);if(!u)throw new Vn(a);if(e?.(a)!==!1)switch(u){case Rr:case xs:{let p=u===Rr?a:a.parts;for(let h=p.length,m=h-1;m>=0;--m)i.push(p[m]);break}case gr:i.push(a.flatContents,a.breakContents);break;case Yt:if(s&&a.expandedStates)for(let p=a.expandedStates.length,h=p-1;h>=0;--h)i.push(a.expandedStates[h]);else i.push(a.contents);break;case Gs:case Ks:case Qs:case Kr:case Zs:i.push(a.contents);break;case Xs:case ji:case Ys:case Es:case It:case Gr:break;default:throw new Vn(a)}}}var ic=xk;function Ri(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(a){if(r.has(a))return r.get(a);let u=i(a);return r.set(a,u),u}function i(a){switch(As(a)){case Rr:return e(a.map(s));case xs:return e({...a,parts:a.parts.map(s)});case gr:return e({...a,breakContents:s(a.breakContents),flatContents:s(a.flatContents)});case Yt:{let{expandedStates:u,contents:p}=a;return u?(u=u.map(s),p=u[0]):p=s(p),e({...a,contents:p,expandedStates:u})}case Gs:case Ks:case Qs:case Kr:case Zs:return e({...a,contents:s(a.contents)});case Xs:case ji:case Ys:case Es:case It:case Gr:return e(a);default:throw new Vn(a)}}}function Ug(t,e,r){let s=r,i=!1;function a(u){if(i)return!1;let p=e(u);p!==void 0&&(i=!0,s=p)}return ic(t,a),s}function Ek(t){if(t.type===Yt&&t.break||t.type===It&&t.hard||t.type===Gr)return!0}function Et(t){return Ug(t,Ek,!1)}function df(t){if(t.length>0){let e=$e(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function Ak(t){let e=new Set,r=[];function s(a){if(a.type===Gr&&df(r),a.type===Yt){if(r.push(a),e.has(a))return!1;e.add(a)}}function i(a){a.type===Yt&&r.pop().break&&df(r)}ic(t,s,i,!0)}function Ck(t){return t.type===It&&!t.hard?t.soft?"":" ":t.type===gr?t.flatContents:t}function fo(t){return Ri(t,Ck)}function Tk(t){switch(As(t)){case xs:if(t.parts.every(e=>e===""))return"";break;case Yt:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Yt&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case Gs:case Ks:case Qs:case Zs:if(!t.contents)return"";break;case gr:if(!t.flatContents&&!t.breakContents)return"";break;case Rr:{let e=[];for(let r of t){if(!r)continue;let[s,...i]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof $e(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 Xs:case ji:case Ys:case Es:case It:case Kr:case Gr:break;default:throw new Vn(t)}return t}function nc(t){return Ri(t,e=>Tk(e))}function Rs(t,e=Hg){return Ri(t,r=>typeof r=="string"?Be(e,r.split(`
|
|
53
|
+
`)):r)}function bk(t){if(t.type===It)return!0}function Sk(t){return Ug(t,bk,!1)}function vl(t,e){return t.type===Kr?{...t,contents:e(t.contents)}:e(t)}function Pk(t){let e=!0;return ic(t,r=>{switch(As(r)){case Xs:if(r==="")break;case Ys:case Es:case It:case Gr:return e=!1,!1}}),e}var vk=Nw;function G(t){return{type:Ks,contents:t}}function ar(t,e){return{type:Gs,contents:e,n:t}}function wk(t){return ar(Number.NEGATIVE_INFINITY,t)}function qg(t){return ar(-1,t)}function Fk(t,e,r){let s=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)s=G(s);s=ar(e%r,s),s=ar(Number.NEGATIVE_INFINITY,s)}return s}var Ur={type:Gr},Ma={type:ji};function Vg(t){return{type:xs,parts:t}}function U(t,e={}){return vk(e.expandedStates),{type:Yt,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function _s(t,e){return U(t[0],{...e,expandedStates:t})}function xe(t,e="",r={}){return{type:gr,breakContents:t,flatContents:e,groupId:r.groupId}}function zn(t,e){return{type:Qs,contents:t,groupId:e.groupId,negate:e.negate}}function Be(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}function na(t,e){return t?{type:Kr,label:t,contents:e}:e}var ne={type:It},K={type:It,soft:!0},zg={type:It,hard:!0},Y=[zg,Ur],kk={type:It,hard:!0,literal:!0},Hg=[kk,Ur];function ff(t){return{type:Zs,contents:t}}var Ar={type:Es},Ik="cr",Nk="crlf",Bk="\r",Lk=`\r
|
|
54
|
+
`,Ok=`
|
|
55
|
+
`,_k=Ok;function Mk(t){return t===Ik?Bk:t===Nk?Lk:_k}var $k={type:0},jk={type:1},Wg={value:"",length:0,queue:[],get root(){return Wg}};function Jg(t,e,r){let s=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",a=0,u=0,p=0;for(let E of s)switch(E.type){case 0:f(),r.useTabs?h(1):m(r.tabWidth);break;case 3:{let{string:x}=E;f(),i+=x,a+=x.length;break}case 2:{let{width:x}=E;u+=1,p+=x;break}default:throw new Error(`Unexpected indent comment '${E.type}'.`)}return D(),{...t,value:i,length:a,queue:s};function h(E){i+=" ".repeat(E),a+=r.tabWidth*E}function m(E){i+=" ".repeat(E),a+=E}function f(){r.useTabs?d():D()}function d(){u>0&&h(u),g()}function D(){p>0&&m(p),g()}function g(){u=0,p=0}}function Rk(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=jk:s={type:2,width:e}:s={type:3,string:e},Jg(t,s,r)}function Uk(t,e){return Jg(t,$k,e)}function qk(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=qk(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var St=Symbol("MODE_BREAK"),hr=Symbol("MODE_FLAT"),wl=Symbol("DOC_FILL_PRINTED_LENGTH");function $a(t,e,r,s,i,a){if(r===Number.POSITIVE_INFINITY)return!0;let u=e.length,p=!1,h=[t],m="";for(;r>=0;){if(h.length===0){if(u===0)return!0;h.push(e[--u]);continue}let{mode:f,doc:d}=h.pop(),D=As(d);switch(D){case Xs:d&&(p&&(m+=" ",r-=1,p=!1),m+=d,r-=wi(d));break;case Rr:case xs:{let g=D===Rr?d:d.parts,E=d[wl]??0;for(let x=g.length-1;x>=E;x--)h.push({mode:f,doc:g[x]});break}case Ks:case Gs:case Qs:case Kr:h.push({mode:f,doc:d.contents});break;case Ys:{let{text:g,count:E}=Xg(m);m=g,r+=E;break}case Yt:{if(a&&d.break)return!1;let g=d.break?St:f,E=d.expandedStates&&g===St?$e(0,d.expandedStates,-1):d.contents;h.push({mode:g,doc:E});break}case gr:{let g=(d.groupId?i[d.groupId]||hr:f)===St?d.breakContents:d.flatContents;g&&h.push({mode:f,doc:g});break}case It:if(f===St||d.hard)return!0;d.soft||(p=!0);break;case Zs:s=!0;break;case Es:if(s)return!1;break}}return!1}function Kg(t,e){let r=Object.create(null),s=e.printWidth,i=Mk(e.endOfLine),a=0,u=[{indent:Wg,mode:St,doc:t}],p="",h=!1,m=[],f=[],d=[],D=[],g=0;for(Ak(t);u.length>0;){let{indent:A,mode:S,doc:k}=u.pop();switch(As(k)){case Xs:{let v=i!==`
|
|
56
|
+
`?nt(0,k,`
|
|
57
|
+
`,i):k;v&&(p+=v,u.length>0&&(a+=wi(v)));break}case Rr:for(let v=k.length-1;v>=0;v--)u.push({indent:A,mode:S,doc:k[v]});break;case ji:if(f.length>=2)throw new Error("There are too many 'cursor' in doc.");f.push(g+p.length);break;case Ks:u.push({indent:Uk(A,e),mode:S,doc:k.contents});break;case Gs:u.push({indent:Rk(A,k.n,e),mode:S,doc:k.contents});break;case Ys:b();break;case Yt:switch(S){case hr:if(!h){u.push({indent:A,mode:k.break?St:hr,doc:k.contents});break}case St:{h=!1;let v={indent:A,mode:hr,doc:k.contents},_=s-a,$=m.length>0;if(!k.break&&$a(v,u,_,$,r))u.push(v);else if(k.expandedStates){let j=$e(0,k.expandedStates,-1);if(k.break){u.push({indent:A,mode:St,doc:j});break}else for(let H=1;H<k.expandedStates.length+1;H++)if(H>=k.expandedStates.length){u.push({indent:A,mode:St,doc:j});break}else{let q=k.expandedStates[H],W={indent:A,mode:hr,doc:q};if($a(W,u,_,$,r)){u.push(W);break}}}else u.push({indent:A,mode:St,doc:k.contents});break}}k.id&&(r[k.id]=$e(0,u,-1).mode);break;case xs:{let v=s-a,_=k[wl]??0,{parts:$}=k,j=$.length-_;if(j===0)break;let H=$[_+0],q=$[_+1],W={indent:A,mode:hr,doc:H},F={indent:A,mode:St,doc:H},R=$a(W,[],v,m.length>0,r,!0);if(j===1){R?u.push(W):u.push(F);break}let te={indent:A,mode:hr,doc:q},ie={indent:A,mode:St,doc:q};if(j===2){R?u.push(te,W):u.push(ie,F);break}let re=$[_+2],we={indent:A,mode:S,doc:{...k,[wl]:_+2}},be=$a({indent:A,mode:hr,doc:[H,q,re]},[],v,m.length>0,r,!0);u.push(we),be?u.push(te,W):R?u.push(ie,W):u.push(ie,F);break}case gr:case Qs:{let v=k.groupId?r[k.groupId]:S;if(v===St){let _=k.type===gr?k.breakContents:k.negate?k.contents:G(k.contents);_&&u.push({indent:A,mode:S,doc:_})}if(v===hr){let _=k.type===gr?k.flatContents:k.negate?G(k.contents):k.contents;_&&u.push({indent:A,mode:S,doc:_})}break}case Zs:m.push({indent:A,mode:S,doc:k.contents});break;case Es:m.length>0&&u.push({indent:A,mode:S,doc:zg});break;case It:switch(S){case hr:if(k.hard)h=!0;else{k.soft||(p+=" ",a+=1);break}case St:if(m.length>0){u.push({indent:A,mode:S,doc:k},...m.reverse()),m.length=0;break}k.literal?(p+=i,a=0,A.root&&(A.root.value&&(p+=A.root.value),a=A.root.length)):(b(),p+=i+A.value,a=A.length);break}break;case Kr:u.push({indent:A,mode:S,doc:k.contents});break;case Gr:break;default:throw new Vn(k)}u.length===0&&m.length>0&&(u.push(...m.reverse()),m.length=0)}let E=d.join("")+p,x=[...D,...f];if(x.length!==2)return{formatted:E};let T=x[0];return{formatted:E,cursorNodeStart:T,cursorNodeText:E.slice(T,$e(0,x,-1))};function b(){let{text:A,count:S}=Xg(p);A&&(d.push(A),g+=A.length),p="",a-=S,f.length>0&&(D.push(...f.map(k=>Math.min(k,g))),f.length=0)}}function Vk(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 zk=Vk;function Hk(t,e){let r=t.lastIndexOf(`
|
|
58
|
+
`);return r===-1?0:zk(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var Wk=Hk;function Gg(t,e,r){let{node:s}=t;if(s.type==="TemplateLiteral"&&Gk(t)){let h=Xk(t,e,r);if(h)return h}let i="expressions";s.type==="TSTemplateLiteralType"&&(i="types");let a=[],u=t.map(r,i);a.push(Ar,"`");let p=0;return t.each(({index:h,node:m})=>{if(a.push(r()),m.tail)return;let{tabWidth:f}=e,d=m.value.raw,D=d.includes(`
|
|
59
|
+
`)?Wk(d,f):p;p=D;let g=u[h],E=s[i][h],x=jt(e.originalText,ve(m),ke(s.quasis[h+1]));if(!x){let b=Kg(g,{...e,printWidth:Number.POSITIVE_INFINITY}).formatted;b.includes(`
|
|
60
|
+
`)?x=!0:g=b}x&&(se(E)||E.type==="Identifier"||ze(E)||E.type==="ConditionalExpression"||E.type==="SequenceExpression"||rr(E)||jr(E))&&(g=[G([K,g]),K]);let T=D===0&&d.endsWith(`
|
|
61
|
+
`)?ar(Number.NEGATIVE_INFINITY,g):Fk(g,D,f);a.push(U(["${",T,Ar,"}"]))},"quasis"),a.push("`"),a}function Jk(t,e,r){let s=r("quasi"),{node:i}=t,a="",u=$s(i.quasi,ue.Leading)[0];return u&&(jt(e.originalText,ve(i.typeArguments??i.tag),ke(u))?a=K:a=" "),na(s.label&&{tagged:!0,...s.label},[r("tag"),r("typeArguments"),a,Ar,s])}function Xk(t,e,r){let{node:s}=t,i=s.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(a=>a.length>0)){e.__inJestEach=!0;let a=t.map(r,"expressions");e.__inJestEach=!1;let u=a.map(d=>"${"+Kg(d,{...e,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),p=[{hasLineBreak:!1,cells:[]}];for(let d=1;d<s.quasis.length;d++){let D=$e(0,p,-1),g=u[d-1];D.cells.push(g),g.includes(`
|
|
62
|
+
`)&&(D.hasLineBreak=!0),s.quasis[d].value.raw.includes(`
|
|
63
|
+
`)&&p.push({hasLineBreak:!1,cells:[]})}let h=Math.max(i.length,...p.map(d=>d.cells.length)),m=Array.from({length:h}).fill(0),f=[{cells:i},...p.filter(d=>d.cells.length>0)];for(let{cells:d}of f.filter(D=>!D.hasLineBreak))for(let[D,g]of d.entries())m[D]=Math.max(m[D],wi(g));return[Ar,"`",G([Y,Be(Y,f.map(d=>Be(" | ",d.cells.map((D,g)=>d.hasLineBreak?D:D+" ".repeat(m[g]-wi(D))))))]),Y,"`"]}}function Kk(t,e){let{node:r}=t,s=e();return se(r)&&(s=U([G([K,s]),K])),["${",s,Ar,"}"]}function ac(t,e){return t.map(()=>Kk(t,e),"expressions")}function Yg(t,e){return Ri(t,r=>typeof r=="string"?e?nt(0,r,/(\\*)`/gu,"$1$1\\`"):Qg(r):r)}function Qg(t){return nt(0,t,/([\\`]|\$\{)/gu,"\\$1")}function Gk({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 Fl=[(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 Yk(t){let e=s=>s.type==="TemplateLiteral",r=(s,i)=>Ds(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&i==="value";return t.match(e,(s,i)=>ht(s)&&i==="elements",r,...Fl)||t.match(e,r,...Fl)}function Qk(t){return t.match(e=>e.type==="TemplateLiteral",(e,r)=>Ds(e)&&!e.computed&&e.key.type==="Identifier"&&e.key.name==="template"&&r==="value",...Fl)}function Hu(t,e){return se(t,ue.Block|ue.Leading,({value:r})=>r===` ${e} `)}function Zg({node:t,parent:e},r){return Hu(t,r)||Zk(e)&&Hu(e,r)||e.type==="ExpressionStatement"&&Hu(e,r)}function Zk(t){return t.type==="AsConstExpression"||t.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const"}async function e3(t,e,r){let{node:s}=r,i="";for(let[h,m]of s.quasis.entries()){let{raw:f}=m.value;h>0&&(i+="@prettier-placeholder-"+(h-1)+"-id"),i+=f}let a=await t(i,{parser:"scss"}),u=ac(r,e),p=t3(a,u);if(!p)throw new Error("Couldn't insert all the expressions");return["`",G([Y,p]),K,"`"]}function t3(t,e){if(!He(e))return t;let r=0,s=Ri(nc(t),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((a,u)=>u%2===0?Rs(a):(r++,e[a])));return e.length===r?s:null}function r3(t){return t.match(void 0,(e,r)=>r==="quasi"&&e.type==="TaggedTemplateExpression"&&zp(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 ja(t){return t.type==="Identifier"&&t.name==="styled"}function mf(t){return/^[A-Z]/u.test(t.object.name)&&t.property.name==="extend"}function s3({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 ja(e.object)||mf(e);case"CallExpression":return ja(e.callee)||e.callee.type==="MemberExpression"&&(e.callee.object.type==="MemberExpression"&&(ja(e.callee.object.object)||mf(e.callee.object))||e.callee.object.type==="CallExpression"&&ja(e.callee.object.callee));case"Identifier":return e.name==="css";default:return!1}}function i3({parent:t,grandparent:e}){return e?.type==="JSXAttribute"&&t.type==="JSXExpressionContainer"&&e.name.type==="JSXIdentifier"&&e.name.name==="css"}var n3=t=>r3(t)||s3(t)||i3(t)||Yk(t);async function a3(t,e,r){let{node:s}=r,i=s.quasis.length,a=ac(r,e),u=[];for(let p=0;p<i;p++){let h=s.quasis[p],m=p===0,f=p===i-1,d=h.value.cooked,D=d.split(`
|
|
64
|
+
`),g=D.length,E=a[p],x=g>2&&D[0].trim()===""&&D[1].trim()==="",T=g>2&&D[g-1].trim()===""&&D[g-2].trim()==="",b=D.every(S=>/^\s*(?:#[^\n\r]*)?$/u.test(S));if(!f&&/#[^\n\r]*$/u.test(D[g-1]))return null;let A=null;b?A=o3(D):A=await t(d,{parser:"graphql"}),A?(A=Yg(A,!1),!m&&x&&u.push(""),u.push(A),!f&&T&&u.push("")):!m&&!f&&x&&u.push(""),E&&u.push(E)}return["`",G([Y,Be(Y,u)]),Y,"`"]}function o3(t){let e=[],r=!1,s=t.map(i=>i.trim());for(let[i,a]of s.entries())a!==""&&(s[i-1]===""&&r?e.push([Y,a]):e.push(a),r=!0);return e.length===0?null:Be(Y,e)}function u3({node:t,parent:e}){return Zg({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 Wu=0;async function eD(t,e,r,s,i){let{node:a}=s,u=Wu;Wu=Wu+1>>>0;let p=b=>`PRETTIER_HTML_PLACEHOLDER_${b}_${u}_IN_JS`,h=a.quasis.map((b,A,S)=>A===S.length-1?b.value.cooked:b.value.cooked+p(A)).join(""),m=ac(s,r),f=new RegExp(p("(\\d+)"),"gu"),d=0,D=await e(h,{parser:t,__onHtmlRoot(b){d=b.children.length}}),g=Ri(D,b=>{if(typeof b!="string")return b;let A=[],S=b.split(f);for(let k=0;k<S.length;k++){let v=S[k];if(k%2===0){v&&(v=Qg(v),i.__embeddedInHtml&&(v=nt(0,v,/<\/(?=script\b)/giu,"<\\/")),A.push(v));continue}let _=Number(v);A.push(m[_])}return A}),E=/^\s/u.test(h)?" ":"",x=/\s$/u.test(h)?" ":"",T=i.htmlWhitespaceSensitivity==="ignore"?Y:E&&x?ne:null;return T?U(["`",G([T,U(g)]),T,"`"]):na({hug:!1},U(["`",E,d>1?G(U(g)):U(g),x,"`"]))}function l3(t){return Zg(t,"HTML")||t.match(e=>e.type==="TemplateLiteral",(e,r)=>e.type==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="html"&&r==="quasi")}var p3=eD.bind(void 0,"html"),c3=eD.bind(void 0,"angular");async function h3(t,e,r){let{node:s}=r,i=nt(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(h,m)=>"\\".repeat(m.length/2)+"`"),a=d3(i),u=a!=="";u&&(i=nt(0,i,new RegExp(`^${a}`,"gmu"),""));let p=Yg(await t(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",u?G([K,p]):[Hg,wk(p)],K,"`"]}function d3(t){let e=t.match(/^([^\S\n]*)\S/mu);return e===null?"":e[1]}function f3({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 m3=[{test:n3,print:e3},{test:u3,print:a3},{test:l3,print:p3},{test:Qk,print:c3},{test:f3,print:h3}].map(({test:t,print:e})=>({test:t,print:g3(e)}));function y3(t){let{node:e}=t;if(e.type!=="TemplateLiteral"||D3(e))return;let r=m3.find(({test:s})=>s(t));if(r)return e.quasis.length===1&&e.quasis[0].value.raw.trim()===""?"``":r.print}function g3(t){return async(...e)=>{let r=await t(...e);return r&&na({embed:!0,...r.label},r)}}function D3({quasis:t}){return t.some(({value:{cooked:e}})=>e===null)}var x3=y3,E3=/\*\/$/,A3=/^\/\*\*?/,tD=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,C3=/(^|\s+)\/\/([^\n\r]*)/g,yf=/^(\r?\n)+/,T3=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,gf=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,b3=/(\r?\n|^) *\* ?/g,rD=[];function S3(t){let e=t.match(tD);return e?e[0].trimStart():""}function P3(t){let e=t.match(tD)?.[0];return e==null?t:t.slice(e.length)}function v3(t){t=nt(0,t.replace(A3,"").replace(E3,""),b3,"$1");let e="";for(;e!==t;)e=t,t=nt(0,t,T3,`
|
|
65
|
+
$1 $2
|
|
66
|
+
`);t=t.replace(yf,"").trimEnd();let r=Object.create(null),s=nt(0,t,gf,"").replace(yf,"").trimEnd(),i;for(;i=gf.exec(t);){let a=nt(0,i[2],C3,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...rD,...Array.isArray(u)?u:[u],a]}else r[i[1]]=a}return{comments:s,pragmas:r}}function w3({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(a=>Df(a,e[a])).map(a=>` * ${a}
|
|
67
|
+
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let a=e[r[0]];return`/** ${Df(r[0],a)[0]} */`}}let i=t.split(`
|
|
68
|
+
`).map(a=>` * ${a}`).join(`
|
|
69
|
+
`)+`
|
|
70
|
+
`;return`/**
|
|
71
|
+
`+(t?i:"")+(t&&r.length>0?` *
|
|
72
|
+
`:"")+s+" */"}function Df(t,e){return[...rD,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var F3="format";function k3(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
73
|
+
`);return e===-1?t:t.slice(0,e)}var I3=k3;function N3(t){let e=I3(t);e&&(t=t.slice(e.length+1));let r=S3(t),{pragmas:s,comments:i}=v3(r);return{shebang:e,text:t,pragmas:s,comments:i}}function B3(t){let{shebang:e,text:r,pragmas:s,comments:i}=N3(t),a=P3(r),u=w3({pragmas:{[F3]:"",...s},comments:i.trimStart()});return(e?`${e}
|
|
74
|
+
`:"")+u+(a.startsWith(`
|
|
75
|
+
`)?`
|
|
76
|
+
`:`
|
|
77
|
+
|
|
78
|
+
`)+a}function L3(t){if(!or(t))return!1;let e=`*${t.value}*`.split(`
|
|
79
|
+
`);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var Ju=new WeakMap;function O3(t){return Ju.has(t)||Ju.set(t,L3(t)),Ju.get(t)}var _3=O3;function M3(t,e){let r=t.node;if(ra(r))return e.originalText.slice(ke(r),ve(r)).trimEnd();if(_3(r))return $3(r);if(or(r))return["/*",Rs(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function $3(t){let e=t.value.split(`
|
|
80
|
+
`);return["/*",Be(Y,e.map((r,s)=>s===0?r.trimEnd():" "+(s<e.length-1?r.trim():r.trimStart()))),"*/"]}function kl(t,e){if(t.isRoot)return!1;let{node:r,key:s,parent:i}=t;if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&q3(r)&&bn(t))return!0;if(j3(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 a=t.findAncestor(u=>u.type==="ForOfStatement")?.left;if(a&&xt(a,u=>u===r))return!0}if(s==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let a=t.findAncestor(p=>p.type==="ExpressionStatement"||p.type==="ForStatement"||p.type==="ForInStatement"),u=a?a.type==="ExpressionStatement"?a.expression:a.type==="ForStatement"?a.init:a.left:void 0;if(u&&xt(u,p=>p===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 a=t.findAncestor(u=>!rr(u));if(a!==i&&a.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let a=t.findAncestor(u=>u.type==="ExpressionStatement")?.expression;if(a&&xt(a,u=>u===r))return!0}if(r.type==="ObjectExpression"){let a=t.findAncestor(u=>u.type==="ArrowFunctionExpression")?.body;if(a&&a.type!=="SequenceExpression"&&a.type!=="AssignmentExpression"&&xt(a,u=>u===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"&&He(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return sD(t,e)||r.type==="SequenceExpression";case"Decorator":if(s==="expression"&&!z3(r))return!0;break;case"TypeAnnotation":if(t.match(void 0,void 0,(a,u)=>u==="returnType"&&a.type==="ArrowFunctionExpression")&&U3(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,(a,u)=>u==="declarations"&&a.type==="VariableDeclaration",(a,u)=>u==="left"&&a.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"&&R3(t))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let a=t.grandparent;if(a.type==="BinaryExpression"&&a.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!rr(r);case"ConditionalExpression":return rr(r)||iF(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"||rr(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:a,type:u}=r;if(!a&&u!=="TSTypeAssertion")return!0;let p=co(a),h=i.operator,m=co(h);return!!(m>p||s==="right"&&m===p||m===p&&!Gp(h,a)||m<p&&a==="%"&&(h==="+"||h==="-")||gF(h))}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(a=>a.type==="TSFunctionType",(a,u)=>u==="typeAnnotation"&&a.type==="TSTypeAnnotation",(a,u)=>u==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&ms(r)&&i.type===r.type||s==="checkType"&&ms(i))return!0;if(s==="extendsType"&&i.type==="TSConditionalType"){let{typeAnnotation:a}=r.returnType||r.typeAnnotation;if(a.type==="TSTypePredicate"&&a.typeAnnotation&&(a=a.typeAnnotation.typeAnnotation),a.type==="TSInferType"&&a.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Er(i)||ia(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,(u,p)=>p==="typeAnnotation"&&u.type==="TypeAnnotation",(u,p)=>p==="returnType"&&u.type==="ArrowFunctionExpression")||t.match(void 0,(u,p)=>p==="typeAnnotation"&&u.type==="TypePredicate",(u,p)=>p==="typeAnnotation"&&u.type==="TypeAnnotation",(u,p)=>p==="returnType"&&u.type==="ArrowFunctionExpression"))return!0;let a=i.type==="NullableTypeAnnotation"?t.grandparent:i;return a.type==="UnionTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="ArrayTypeAnnotation"||s==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType")||s==="checkType"&&i.type==="ConditionalTypeAnnotation"||s==="extendsType"&&i.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||a.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&yt(r).some(u=>u.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 a=t.grandparent;return a.type==="Program"||a.type==="BlockStatement"}return s==="object"&&ze(i)&&xr(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,(a,u)=>(u==="init"||u==="update")&&a.type==="ForStatement")||s==="value"&&i.type==="Property"&&t.match(void 0,void 0,(a,u)=>u==="properties"&&a.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(V3(t))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(s==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let a=r;for(;a;)switch(a.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":a=a.object;break;case"TaggedTemplateExpression":a=a.tag;break;case"TSNonNullExpression":a=a.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||s==="object"&&ze(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!r.extra?.parenthesized||ht(i)||s==="arguments"&&_e(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==="<"||!ht(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"&&!_e(i)&&!Ds(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return s==="object"&&ze(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var j3=Ae(["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 R3(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 U3(t){return Tl(t,e=>e.type==="ObjectTypeAnnotation"&&Tl(e,r=>r.type==="FunctionTypeAnnotation"))}function q3(t){return ir(t)}function bn(t){let{parent:e,key:r}=t;switch(e.type){case"NGPipeExpression":if(r==="arguments"&&t.isLast)return t.callParent(bn);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(bn);break;case"ConditionalExpression":if(r==="alternate")return t.callParent(bn);break;case"UnaryExpression":if(e.prefix)return t.callParent(bn);break}return!1}function sD(t,e){let{node:r,parent:s}=t;return r.type==="FunctionExpression"||r.type==="ClassExpression"?s.type==="ExportDefaultDeclaration"||!kl(t,e):!Wp(r)||s.type!=="ExportDefaultDeclaration"&&kl(t,e)?!1:t.call(()=>sD(t,e),...yg(r))}function V3(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 Il(t){return t.type==="Identifier"?!0:ze(t)?!t.computed&&!t.optional&&t.property.type==="Identifier"&&Il(t.object):!1}function z3(t){return t.type==="ChainExpression"&&(t=t.expression),Il(t)||_e(t)&&!t.optional&&Il(t.callee)}var Cs=kl;function H3(t,e){let r=e-1;r=Fi(t,r,{backwards:!0}),r=ki(t,r,{backwards:!0}),r=Fi(t,r,{backwards:!0});let s=ki(t,r,{backwards:!0});return r!==s}var W3=H3,J3=()=>!0;function oc(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function X3(t,e){let r=t.node,s=[oc(t,e)],{printer:i,originalText:a,locStart:u,locEnd:p}=e;if(i.isBlockComment?.(r)){let m=wt(a,p(r))?wt(a,u(r),{backwards:!0})?Y:ne:" ";s.push(m)}else s.push(Y);let h=ki(a,Fi(a,p(r)));return h!==!1&&wt(a,h)&&s.push(Y),s}function K3(t,e,r){let s=t.node,i=oc(t,e),{printer:a,originalText:u,locStart:p}=e,h=a.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||wt(u,p(s),{backwards:!0})){let m=W3(u,p(s));return{doc:ff([Y,m?Y:"",i]),isBlock:h,hasLineSuffix:!0}}return!h||r?.hasLineSuffix?{doc:[ff([" ",i]),Ur],isBlock:h,hasLineSuffix:!0}:{doc:[" ",i],isBlock:h,hasLineSuffix:!1}}function Ve(t,e,r={}){let{node:s}=t;if(!He(s?.comments))return"";let{indent:i=!1,marker:a,filter:u=J3}=r,p=[];if(t.each(({node:m})=>{m.leading||m.trailing||m.marker!==a||!u(m)||p.push(oc(t,e))},"comments"),p.length===0)return"";let h=Be(Y,p);return i?G([Y,h]):h}function Io(t,e){let r=t.node;if(!r)return{};let s=e[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!s.has(p)).length===0)return{leading:"",trailing:""};let i=[],a=[],u;return t.each(()=>{let p=t.node;if(s?.has(p))return;let{leading:h,trailing:m}=p;h?i.push(X3(t,e)):m&&(u=K3(t,e,u),a.push(u.doc))},"comments"),{leading:i,trailing:a}}function Kt(t,e,r){let{leading:s,trailing:i}=Io(t,r);return!s&&!i?e:vl(e,a=>[s,a,i])}var mo=class extends Error{name="ArgExpansionBailout"};function ei(t,e,r,s,i){let a=t.node,u=yt(a),p=i&&a.typeParameters?r("typeParameters"):"";if(u.length===0)return[p,"(",Ve(t,e,{filter:g=>nr(e.originalText,ve(g))===")"}),")"];let{parent:h}=t,m=Fo(h),f=iD(a),d=[];if(xF(t,(g,E)=>{let x=E===u.length-1;x&&a.rest&&d.push("..."),d.push(r()),!x&&(d.push(","),m||f?d.push(" "):Sr(u[E],e)?d.push(Y,Y):d.push(ne))}),s&&!Y3(t)){if(Et(p)||Et(d))throw new mo;return U([fo(p),"(",fo(d),")"])}let D=u.every(g=>!He(g.decorators));return f&&D?[p,"(",...d,")"]:m?[p,"(",...d,")"]:(xg(h)||uF(h)||h.type==="TypeAlias"||h.type==="UnionTypeAnnotation"||h.type==="IntersectionTypeAnnotation"||h.type==="FunctionTypeAnnotation"&&h.returnType===a)&&u.length===1&&u[0].name===null&&a.this!==u[0]&&u[0].typeAnnotation&&a.typeParameters===null&&Xp(u[0].typeAnnotation)&&!a.rest?e.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...d,")"]:d:[p,"(",G([K,...d]),xe(!DF(a)&&br(e,"all")?",":""),K,")"]}function iD(t){if(!t)return!1;let e=yt(t);if(e.length!==1)return!1;let[r]=e;return!se(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&fs(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&fs(r.typeAnnotation)&&r!==t.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ir(r.right)&&r.right.properties.length===0||ht(r.right)&&r.right.elements.length===0))}function G3(t){let e;return t.returnType?(e=t.returnType,e.typeAnnotation&&(e=e.typeAnnotation)):t.typeAnnotation&&(e=t.typeAnnotation),e}function Ui(t,e){let r=G3(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&&(fs(r)||Et(e))}function Y3(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 Q3(t){let e=yt(t);return e.length>1&&e.some(r=>r.type==="TSParameterProperty")}function Nn(t,e){return(e==="params"||e==="this"||e==="rest")&&iD(t)}function At(t){let{node:e}=t;return!e.optional||e.type==="Identifier"&&e===t.parent.key?"":_e(e)||ze(e)&&e.computed||e.type==="OptionalIndexedAccessType"?"?.":"?"}function nD(t){return t.node.definite||t.match(void 0,(e,r)=>r==="id"&&e.type==="VariableDeclarator"&&e.definite)?"!":""}var Z3=Ae(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Rt(t){let{node:e}=t;return e.declare||Z3(e)&&t.parent.type!=="DeclareExportDeclaration"?"declare ":""}var eI=Ae(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function No({node:t}){return t.abstract||eI(t)?"abstract ":""}function ss(t,e,r){return t.type==="EmptyStatement"?se(t,ue.Leading)?[" ",e]:e:t.type==="BlockStatement"||r?[" ",e]:G([ne,e])}function Bo(t){return t.accessibility?t.accessibility+" ":""}var tI=/^[\$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]*$/,rI=t=>tI.test(t),sI=rI;function iI(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 Li=iI,nI=0;function aD(t,e,r){let{node:s,parent:i,grandparent:a,key:u}=t,p=u!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),h=s.operator==="|>"&&t.root.extra?.__isUsingHackPipeline,m=Nl(t,e,r,!1,p);if(p)return m;if(h)return U(m);if(u==="callee"&&(_e(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||ze(i)&&!i.computed)return U([G([K,...m]),K]);let f=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&a.type==="JSXAttribute"||s.operator!=="|"&&i.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&e.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&a.type==="NGMicrosyntax"&&a.body.length===1)||s===i.body&&i.type==="ArrowFunctionExpression"||s!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&a.type!=="ReturnStatement"&&a.type!=="ThrowStatement"&&!_e(a)&&a.type!=="NewExpression"||i.type==="TemplateLiteral"||oI(t),d=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Ds(i),D=jr(s.left)&&Gp(s.operator,s.left.operator);if(f||Hn(s)&&!D||!Hn(s)&&d)return U(m);if(m.length===0)return"";let g=at(s.right),E=m.findIndex(k=>typeof k!="string"&&!Array.isArray(k)&&k.type===Yt),x=m.slice(0,E===-1?1:E+1),T=m.slice(x.length,g?-1:void 0),b=Symbol("logicalChain-"+ ++nI),A=U([...x,G(T)],{id:b});if(!g)return A;let S=$e(0,m,-1);return U([A,zn(S,{groupId:b})])}function Nl(t,e,r,s,i){let{node:a}=t;if(!jr(a))return[U(r())];let u=[];Gp(a.operator,a.left.operator)?u=t.call(()=>Nl(t,e,r,!0,i),"left"):u.push(U(r("left")));let p=Hn(a),h=a.right.type==="ChainExpression"?a.right.expression:a.right,m=(a.operator==="|>"||a.type==="NGPipeExpression"||aI(t,e))&&!sr(e.originalText,h),f=!se(h,ue.Leading,wg)&&sr(e.originalText,h),d=a.type==="NGPipeExpression"?"|":a.operator,D=a.type==="NGPipeExpression"&&a.arguments.length>0?U(G([K,": ",Be([ne,": "],t.map(()=>ar(2,U(r())),"arguments"))])):"",g;if(p)g=[d,sr(e.originalText,h)?G([ne,r("right"),D]):[" ",r("right"),D]];else{let T=d==="|>"&&t.root.extra?.__isUsingHackPipeline?t.call(()=>Nl(t,e,r,!0,i),"right"):r("right");if(e.experimentalOperatorPosition==="start"){let b="";if(f)switch(As(T)){case Rr:b=T.splice(0,1)[0];break;case Kr:b=T.contents.splice(0,1)[0];break}g=[ne,b,d," ",T,D]}else g=[m?ne:"",d,m?" ":ne,T,D]}let{parent:E}=t,x=se(a.left,ue.Trailing|ue.Line);if((x||!(i&&a.type==="LogicalExpression")&&E.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(g=U(g,{shouldBreak:x})),e.experimentalOperatorPosition==="start"?u.push(p||f?" ":"",g):u.push(m?"":" ",g),s&&se(a)){let T=nc(Kt(t,u,e));return T.type===xs?T.parts:Array.isArray(T)?T:[T]}return u}function Hn(t){return t.type!=="LogicalExpression"?!1:!!(ir(t.right)&&t.right.properties.length>0||ht(t.right)&&t.right.elements.length>0||at(t.right))}var xf=t=>t.type==="BinaryExpression"&&t.operator==="|";function aI(t,e){return(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&xf(t.node)&&!t.hasAncestor(r=>!xf(r)&&r.type!=="JsExpressionRoot")}function oI(t){if(t.key!=="arguments")return!1;let{parent:e}=t;if(!(_e(e)&&!e.optional&&e.arguments.length===1))return!1;let{callee:r}=e;return r.type==="Identifier"&&r.name==="Boolean"}function oD(t,e,r){let{node:s}=t,{parent:i}=t,a=i.type!=="TypeParameterInstantiation"&&(!ms(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)&&!((Sl(i)||i.type==="VariableDeclarator")&&sr(e.originalText,s))&&!(Sl(i)&&se(i.id,ue.Trailing|ue.Line)),u=uD(s),p=t.map(()=>{let g=r();return u||(g=ar(2,g)),Kt(t,g,e)},"types"),h="",m="";if(Pg(t)&&({leading:h,trailing:m}=Io(t,e)),u)return[h,Be(" | ",p),m];let f=a&&!sr(e.originalText,s),d=[xe([f?ne:"","| "]),Be([ne,"| "],p)];if(Cs(t,e))return[h,U([G(d),K]),m];let D=[h,U(d)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[U([G([xe(["(",K]),D]),K,xe(")")]),m]:[U(a?G(D):D),m]}var uI=Ae(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),lI=Ae(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function uD(t){let{types:e}=t;if(e.some(s=>se(s)))return!1;let r=e.find(s=>lI(s));return r?e.every(s=>s===r||uI(s)):!1}function pI(t){return Xp(t)||fs(t)?!0:Er(t)?uD(t):!1}var cI=new WeakSet;function pt(t,e,r="typeAnnotation"){let{node:{[r]:s}}=t;if(!s)return"";let i=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let a=t.call(lD,r);(a==="=>"||a===":"&&se(s,ue.Leading))&&(i=!0),cI.add(s)}return i?[" ",e(r)]:e(r)}var lD=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 pD(t,e,r){let s=lD(t);return s?[s," ",r("typeAnnotation")]:r("typeAnnotation")}function hI(t,e,r,s){let{node:i}=t,a=i.inexact?"...":"";return se(i,ue.Dangling)?U([r,a,Ve(t,e,{indent:!0}),K,s]):[r,a,s]}function uc(t,e,r){let{node:s}=t,i=[],a="[",u="]",p=s.type==="TupleTypeAnnotation"&&s.types?"types":s.type==="TSTupleType"||s.type==="TupleTypeAnnotation"?"elementTypes":"elements",h=s[p];if(h.length===0)i.push(hI(t,e,a,u));else{let m=$e(0,h,-1),f=m?.type!=="RestElement"&&!s.inexact,d=m===null,D=Symbol("array"),g=!e.__inJestEach&&h.length>1&&h.every((T,b,A)=>{let S=T?.type;if(!ht(T)&&!ir(T))return!1;let k=A[b+1];if(k&&S!==k.type)return!1;let v=ht(T)?"elements":"properties";return T[v]&&T[v].length>1}),E=cD(s,e),x=f?d?",":br(e)?E?xe(",","",{groupId:D}):xe(","):"":"";i.push(U([a,G([K,E?fI(t,e,r,x):[dI(t,e,r,p,s.inexact),x],Ve(t,e)]),K,u],{shouldBreak:g,id:D}))}return i.push(At(t),pt(t,r)),i}function cD(t,e){return ht(t)&&t.elements.length>0&&t.elements.every(r=>r&&(xr(r)||gg(r)&&!se(r.argument))&&!se(r,ue.Trailing|ue.Line,s=>!wt(e.originalText,ke(s),{backwards:!0})))}function hD({node:t},{originalText:e}){let r=ve(t);if(r===ke(t))return!1;let{length:s}=e;for(;r<s&&e[r]!==",";)r=Up(e,qp(e,r+1));return Vp(e,r)}function dI(t,e,r,s,i){let a=[];return t.each(({node:u,isLast:p})=>{a.push(u?U(r()):""),(!p||i)&&a.push([",",ne,u&&hD(t,e)?K:""])},s),i&&a.push("..."),a}function fI(t,e,r,s){let i=[];return t.each(({isLast:a,next:u})=>{i.push([r(),a?s:","]),a||i.push(hD(t,e)?[Y,Y]:se(u,ue.Leading|ue.Line)?Y:ne)},"elements"),Vg(i)}function mI(t,e,r){let{node:s}=t,i=Ut(s);if(i.length===0)return["(",Ve(t,e),")"];let a=i.length-1;if(DI(i)){let d=["("];return ho(t,(D,g)=>{d.push(r()),g!==a&&d.push(", ")}),d.push(")"),d}let u=!1,p=[];ho(t,({node:d},D)=>{let g=r();D===a||(Sr(d,e)?(u=!0,g=[g,",",Y,Y]):g=[g,",",ne]),p.push(g)});let h=!e.parser.startsWith("__ng_")&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"&&br(e,"all")?",":"";function m(){return U(["(",G([ne,...p]),h,ne,")"],{shouldBreak:!0})}if(u||t.parent.type!=="Decorator"&&fF(i))return m();if(gI(i)){let d=p.slice(1);if(d.some(Et))return m();let D;try{D=r(pf(s,0),{expandFirstArg:!0})}catch(g){if(g instanceof mo)return m();throw g}return Et(D)?[Ur,_s([["(",U(D,{shouldBreak:!0}),", ",...d,")"],m()])]:_s([["(",D,", ",...d,")"],["(",U(D,{shouldBreak:!0}),", ",...d,")"],m()])}if(yI(i,p,e)){let d=p.slice(0,-1);if(d.some(Et))return m();let D;try{D=r(pf(s,-1),{expandLastArg:!0})}catch(g){if(g instanceof mo)return m();throw g}return Et(D)?[Ur,_s([["(",...d,U(D,{shouldBreak:!0}),")"],m()])]:_s([["(",...d,D,")"],["(",...d,U(D,{shouldBreak:!0}),")"],m()])}let f=["(",G([K,...p]),xe(h),K,")"];return bg(t)?f:U(f,{shouldBreak:p.some(Et)||u})}function Bn(t,e=!1){return ir(t)&&(t.properties.length>0||se(t))||ht(t)&&(t.elements.length>0||se(t))||t.type==="TSTypeAssertion"&&Bn(t.expression)||rr(t)&&Bn(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||xI(t.body))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&Bn(t.body,!0)||ir(t.body)||ht(t.body)||!e&&(_e(t.body)||t.body.type==="ConditionalExpression")||at(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression"}function yI(t,e,r){let s=$e(0,t,-1);if(t.length===1){let a=$e(0,e,-1);if(a.label?.embed&&a.label?.hug!==!1)return!0}let i=$e(0,t,-2);return!se(s,ue.Leading)&&!se(s,ue.Trailing)&&Bn(s)&&(!i||i.type!==s.type)&&(t.length!==2||i.type!=="ArrowFunctionExpression"||!ht(s))&&!(t.length>1&&cD(s,r))}function gI(t){if(t.length!==2)return!1;let[e,r]=t;return e.type==="ModuleExpression"&&EI(r)?!0:!se(e)&&(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&dD(r)&&!Bn(r)}function dD(t){if(t.type==="ParenthesizedExpression")return dD(t.expression);if(rr(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 Xp(e)&&er(t.expression,1)}return Bi(t)&&Ut(t).length>1?!1:jr(t)?er(t.left,1)&&er(t.right,1):Dg(t)||er(t)}function DI(t){return t.length===2?Ef(t,0):t.length===3?t[0].type==="Identifier"&&Ef(t,1):!1}function Ef(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=>se(i))}function xI(t){return t.type==="BlockStatement"&&(t.body.some(e=>e.type!=="EmptyStatement")||se(t,ue.Dangling))}function EI(t){if(!(t.type==="ObjectExpression"&&t.properties.length===1))return!1;let[e]=t.properties;return Ds(e)?!e.computed&&(e.key.type==="Identifier"&&e.key.name==="type"||ot(e.key)&&e.key.value==="type")&&ot(e.value)&&e.value.value==="module":!1}var Bl=mI;function AI(t,e,r){return[r("object"),U(G([K,fD(t,e,r)]))]}function fD(t,e,r){return["::",r("callee")]}var CI=t=>((t.type==="ChainExpression"||t.type==="TSNonNullExpression")&&(t=t.expression),_e(t)&&Ut(t).length>0);function TI(t){let{node:e,ancestors:r}=t;for(let s of r){if(!(ze(s)&&s.object===e||s.type==="TSNonNullExpression"&&s.expression===e))return s.type==="NewExpression"&&s.callee===e;e=s}return!1}function bI(t,e,r){let s=r("object"),i=mD(t,e,r),{node:a}=t,u=t.findAncestor(m=>!(ze(m)||m.type==="TSNonNullExpression")),p=t.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),h=u.type==="BindExpression"||u.type==="AssignmentExpression"&&u.left.type!=="Identifier"||TI(t)||a.computed||a.object.type==="Identifier"&&a.property.type==="Identifier"&&!ze(p)||(p.type==="AssignmentExpression"||p.type==="VariableDeclarator")&&(CI(a.object)||s.label?.memberChain);return na(s.label,[s,h?i:U(G([K,i]))])}function mD(t,e,r){let s=r("property"),{node:i}=t,a=At(t);return i.computed?!i.property||xr(i.property)?[a,"[",s,"]"]:U([a,"[",G([K,s]),K,"]"]):[a,".",s]}function yD(t,e,r){if(t.node.type==="ChainExpression")return t.call(()=>yD(t,e,r),"expression");let s=(t.parent.type==="ChainExpression"?t.grandparent:t.parent).type==="ExpressionStatement",i=[];function a(R){let{originalText:te}=e,ie=$i(te,ve(R));return te.charAt(ie)===")"?ie!==!1&&Vp(te,ie+1):Sr(R,e)}function u(){let{node:R}=t;if(R.type==="ChainExpression")return t.call(u,"expression");if(_e(R)&&(yi(R.callee)||_e(R.callee))){let te=a(R);i.unshift({node:R,hasTrailingEmptyLine:te,printed:[Kt(t,[At(t),r("typeArguments"),Bl(t,e,r)],e),te?Y:""]}),t.call(u,"callee")}else yi(R)?(i.unshift({node:R,needsParens:Cs(t,e),printed:Kt(t,ze(R)?mD(t,e,r):fD(t,e,r),e)}),t.call(u,"object")):R.type==="TSNonNullExpression"?(i.unshift({node:R,printed:Kt(t,"!",e)}),t.call(u,"expression")):i.unshift({node:R,printed:r()})}let{node:p}=t;i.unshift({node:p,printed:[At(t),r("typeArguments"),Bl(t,e,r)]}),p.callee&&t.call(u,"callee");let h=[],m=[i[0]],f=1;for(;f<i.length&&(i[f].node.type==="TSNonNullExpression"||_e(i[f].node)||ze(i[f].node)&&i[f].node.computed&&xr(i[f].node.property));++f)m.push(i[f]);if(!_e(i[0].node))for(;f+1<i.length&&yi(i[f].node)&&yi(i[f+1].node);++f)m.push(i[f]);h.push(m),m=[];let d=!1;for(;f<i.length;++f){if(d&&yi(i[f].node)){if(i[f].node.computed&&xr(i[f].node.property)){m.push(i[f]);continue}h.push(m),m=[],d=!1}(_e(i[f].node)||i[f].node.type==="ImportExpression")&&(d=!0),m.push(i[f]),se(i[f].node,ue.Trailing)&&(h.push(m),m=[],d=!1)}m.length>0&&h.push(m);function D(R){return/^[A-Z]|^[$_]+$/u.test(R)}function g(R){return R.length<=e.tabWidth}function E(R){let te=R[1][0]?.node.computed;if(R[0].length===1){let re=R[0][0].node;return re.type==="ThisExpression"||re.type==="Identifier"&&(D(re.name)||s&&g(re.name)||te)}let ie=$e(0,R[0],-1).node;return ze(ie)&&ie.property.type==="Identifier"&&(D(ie.property.name)||te)}let x=h.length>=2&&!se(h[1][0].node)&&E(h);function T(R){let te=R.map(ie=>ie.printed);return R.length>0&&$e(0,R,-1).needsParens?["(",...te,")"]:te}function b(R){return R.length===0?"":G([Y,Be(Y,R.map(T))])}let A=h.map(T),S=A,k=x?3:2,v=h.flat(),_=v.slice(1,-1).some(R=>se(R.node,ue.Leading))||v.slice(0,-1).some(R=>se(R.node,ue.Trailing))||h[k]&&se(h[k][0].node,ue.Leading);if(h.length<=k&&!_&&!h.some(R=>$e(0,R,-1).hasTrailingEmptyLine))return bg(t)?S:U(S);let $=$e(0,h[x?1:0],-1).node,j=!_e($)&&a($),H=[T(h[0]),x?h.slice(1,2).map(T):"",j?Y:"",b(h.slice(x?2:1))],q=i.map(({node:R})=>R).filter(_e);function W(){let R=$e(0,$e(0,h,-1),-1).node,te=$e(0,A,-1);return _e(R)&&Et(te)&&q.slice(0,-1).some(ie=>ie.arguments.some(qn))}let F;return _||q.length>2&&q.some(R=>!R.arguments.every(te=>er(te)))||A.slice(0,-1).some(Et)||W()?F=U(H):F=[Et(S)||j?Ur:"",_s([S,H])],na({memberChain:!0},F)}var SI=yD;function yo(t,e,r){let{node:s}=t,i=s.type==="NewExpression",a=At(t),u=Ut(s),p=s.type!=="TSImportType"&&s.typeArguments?r("typeArguments"):"",h=u.length===1&&Cg(u[0],e.originalText);if(h||vI(t)||wI(t)||Fo(s,t.parent)){let d=[];if(ho(t,()=>{d.push(r())}),!(h&&d[0].label?.embed))return[i?"new ":"",Af(t,r),a,p,"(",Be(", ",d),")"]}let m=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!m&&!i&&yi(s.callee)&&!t.call(()=>Cs(t,e),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return SI(t,e,r);let f=[i?"new ":"",Af(t,r),a,p,Bl(t,e,r)];return m||_e(s.callee)?U(f):f}function Af(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 PI=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function vI(t){let{node:e}=t;if(!(e.type==="ImportExpression"||e.type==="TSImportType"||e.type==="TSExternalModuleReference"||e.type==="CallExpression"&&!e.optional&&zp(e.callee,PI)))return!1;let r=Ut(e);return r.length===1&&ot(r[0])&&!se(r[0])}function wI(t){let{node:e}=t;if(e.type!=="CallExpression"||e.optional||e.callee.type!=="Identifier")return!1;let r=Ut(e);return e.callee.name==="require"?(r.length===1&&ot(r[0])||r.length>1)&&!se(r[0]):e.callee.name==="define"&&t.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&ot(r[0])&&r[1].type==="ArrayExpression":!1}function aa(t,e,r,s,i,a){let u=II(t,e,r,s,a),p=a?r(a,{assignmentLayout:u}):"";switch(u){case"break-after-operator":return U([U(s),i,U(G([ne,p]))]);case"never-break-after-operator":return U([U(s),i," ",p]);case"fluid":{let h=Symbol("assignment");return U([U(s),i,U(G(ne),{id:h}),Ar,zn(p,{groupId:h})])}case"break-lhs":return U([s,i," ",U(p)]);case"chain":return[U(s),i,ne,p];case"chain-tail":return[U(s),i,G([ne,p])];case"chain-tail-arrow-chain":return[U(s),i,p];case"only-left":return s}}function FI(t,e,r){let{node:s}=t;return aa(t,e,r,r("left"),[" ",s.operator],"right")}function kI(t,e,r){return aa(t,e,r,r("id")," =","init")}function II(t,e,r,s,i){let{node:a}=t,u=a[i];if(!u)return"only-left";let p=!ro(u);if(t.match(ro,gD,f=>!p||f.type!=="ExpressionStatement"&&f.type!=="VariableDeclaration"))return p?u.type==="ArrowFunctionExpression"&&u.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!p&&ro(u.right)||sr(e.originalText,u))return"break-after-operator";if(a.type==="ImportAttribute"||u.type==="CallExpression"&&u.callee.name==="require"||e.parser==="json5"||e.parser==="jsonc"||e.parser==="json")return"never-break-after-operator";let h=Sk(s);if(BI(a)||_I(a)||DD(a)&&h)return"break-lhs";let m=MI(a,s,e);return t.call(()=>NI(t,e,r,m),i)?"break-after-operator":LI(a)?"break-lhs":!h&&(m||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||nF(u)||xr(u)||u.type==="ClassExpression")?"never-break-after-operator":"fluid"}function NI(t,e,r,s){let i=t.node;if(jr(i)&&!Hn(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!e.experimentalTernaries&&!RI(i))break;return!0;case"ConditionalExpression":{if(!e.experimentalTernaries){let{test:m}=i;return jr(m)&&!Hn(m)}let{consequent:p,alternate:h}=i;return p.type==="ConditionalExpression"||h.type==="ConditionalExpression"}case"ClassExpression":return He(i.decorators)}if(s)return!1;let a=i,u=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,u.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,u.push("expression");else break;return!!(ot(a)||t.call(()=>xD(t,e,r),...u))}function BI(t){if(gD(t)){let e=t.left||t.id;return e.type==="ObjectPattern"&&e.properties.length>2&&e.properties.some(r=>Ds(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function ro(t){return t.type==="AssignmentExpression"}function gD(t){return ro(t)||t.type==="VariableDeclarator"}function LI(t){let e=OI(t);if(He(e)){let r=t.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(e.length>1&&e.some(s=>s[r]||s.default))return!0}return!1}function OI(t){if(Sl(t))return t.typeParameters?.params}function _I(t){if(t.type!=="VariableDeclarator")return!1;let{typeAnnotation:e}=t.id;if(!e||!e.typeAnnotation)return!1;let r=Cf(e.typeAnnotation);return He(r)&&r.length>1&&r.some(s=>He(Cf(s))||s.type==="TSConditionalType")}function DD(t){return t.type==="VariableDeclarator"&&t.init?.type==="ArrowFunctionExpression"}function Cf(t){let e;switch(t.type){case"GenericTypeAnnotation":e=t.typeParameters;break;case"TSTypeReference":e=t.typeArguments;break}return e?.params}function xD(t,e,r,s=!1){let{node:i}=t,a=()=>xD(t,e,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return t.call(a,"expression");if(_e(i)){if(yo(t,e,r).label?.memberChain)return!1;let u=Ut(i);return!(u.length===0||u.length===1&&Kp(u[0],e))||$I(i,r)?!1:t.call(a,"callee")}return ze(i)?t.call(a,"object"):s&&(i.type==="Identifier"||i.type==="ThisExpression")}function MI(t,e,r){return Ds(t)?(e=nc(e),typeof e=="string"&&wi(e)<r.tabWidth+3):!1}function $I(t,e){let r=jI(t);if(He(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(Er(i)||ia(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let s=t.typeParameters?"typeParameters":"typeArguments";if(Et(e(s)))return!0}return!1}function jI(t){return(t.typeParameters??t.typeArguments)?.params}function Tf(t){switch(t.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!t.typeParameters;case"TSTypeReference":return!!t.typeArguments;default:return!1}}function RI(t){return Tf(t.checkType)||Tf(t.extendsType)}var so=new WeakMap;function ED(t){return/^(?:\d+|\d+\.\d+)$/u.test(t)}function bf(t,e){return e.parser==="json"||e.parser==="jsonc"||!ot(t.key)||Ii(Ft(t.key),e).slice(1,-1)!==t.key.value?!1:!!(sI(t.key.value)&&!(e.parser==="babel-ts"&&t.type==="ClassProperty"||(e.parser==="typescript"||e.parser==="oxc-ts")&&t.type==="PropertyDefinition")||ED(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 UI(t,e){let{key:r}=t.node;return(r.type==="Identifier"||xr(r)&&ED(Li(Ft(r)))&&String(r.value)===Li(Ft(r))&&!(e.parser==="typescript"||e.parser==="babel-ts"||e.parser==="oxc-ts"))&&(e.parser==="json"||e.parser==="jsonc"||e.quoteProps==="consistent"&&so.get(t.parent))}function oa(t,e,r){let{node:s}=t;if(s.computed)return["[",r("key"),"]"];let{parent:i}=t,{key:a}=s;if(e.quoteProps==="consistent"&&!so.has(i)){let u=t.siblings.some(p=>!p.computed&&ot(p.key)&&!bf(p,e));so.set(i,u)}if(UI(t,e)){let u=Ii(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),e);return t.call(()=>Kt(t,u,e),"key")}return bf(s,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!so.get(i))?t.call(()=>Kt(t,/^\d/u.test(a.value)?Li(a.value):a.value,e),"key"):r("key")}function Xu(t,e,r){let{node:s}=t;return s.shorthand?r("value"):aa(t,e,r,oa(t,e,r),":","value")}var qI=({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"&&sa(r));function AD(t,e,r,s){if(qI(t))return lc(t,e,r);let{node:i}=t,a=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&s?.expandLastArg){let{parent:f}=t;_e(f)&&(Ut(f).length>1||yt(i).every(d=>d.type==="Identifier"&&!d.typeAnnotation))&&(a=!0)}let u=[Rt(t),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],p=ei(t,e,r,a),h=Lo(t,r),m=Ui(i,h);return u.push(r("typeParameters"),U([m?U(p):p,h]),i.body?" ":"",r("body")),e.semi&&(i.declare||!i.body)&&u.push(";"),u}function Ll(t,e,r){let{node:s}=t,{kind:i}=s,a=s.value||s,u=[];return!i||i==="init"||i==="method"||i==="constructor"?a.async&&u.push("async "):u.push(i," "),a.generator&&u.push("*"),u.push(oa(t,e,r),s.optional?"?":"",s===a?lc(t,e,r):r("value")),u}function lc(t,e,r){let{node:s}=t,i=ei(t,e,r),a=Lo(t,r),u=Q3(s),p=Ui(s,a),h=[r("typeParameters"),U([u?U(i,{shouldBreak:!0}):p?U(i):i,a])];return s.body?h.push(" ",r("body")):h.push(e.semi?";":""),h}function VI(t){let e=yt(t);return e.length===1&&!t.typeParameters&&!se(t,ue.Dangling)&&e[0].type==="Identifier"&&!e[0].typeAnnotation&&!se(e[0])&&!e[0].optional&&!t.predicate&&!t.returnType}function CD(t,e){if(e.arrowParens==="always")return!1;if(e.arrowParens==="avoid"){let{node:r}=t;return VI(r)}return!1}function Lo(t,e){let{node:r}=t,s=[pt(t,e,"returnType")];return r.predicate&&s.push(e("predicate")),s}function TD(t,e,r){let{node:s}=t,i=[];if(s.argument){let p=r("argument");WI(e,s.argument)?p=["(",G([Y,p]),Y,")"]:(jr(s.argument)||e.experimentalTernaries&&s.argument.type==="ConditionalExpression"&&(s.argument.consequent.type==="ConditionalExpression"||s.argument.alternate.type==="ConditionalExpression"))&&(p=U([xe("("),G([K,p]),K,xe(")")])),i.push(" ",p)}let a=se(s,ue.Dangling),u=e.semi&&a&&se(s,ue.Last|ue.Line);return u&&i.push(";"),a&&i.push(" ",Ve(t,e)),!u&&e.semi&&i.push(";"),i}function zI(t,e,r){return["return",TD(t,e,r)]}function HI(t,e,r){return["throw",TD(t,e,r)]}function WI(t,e){if(sr(t.originalText,e)||se(e,ue.Leading,r=>jt(t.originalText,ke(r),ve(r)))&&!at(e))return!0;if(Wp(e)){let r=e,s;for(;s=rF(r);)if(r=s,sr(t.originalText,r))return!0}return!1}function JI(t,e){if(e.semi||SD(t,e)||vD(t,e)||PD(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(()=>bD(t,e),"expression"))}function bD(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(!CD(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(at(r))return!0}return Cs(t,e)?!0:Wp(r)?t.call(()=>bD(t,e),...yg(r)):!1}var pc=({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 SD(t,e){return(e.parentParser==="markdown"||e.parentParser==="mdx")&&pc(t)&&at(t.node.expression)}function PD(t,e){return e.__isHtmlInlineEventHandler&&pc(t)}function vD(t,e){return(e.parser==="__vue_event_binding"||e.parser==="__vue_ts_event_binding")&&pc(t)}var XI=class extends Error{name="UnexpectedNodeError";constructor(e,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(e[s])}.`),this.node=e}},qi=XI;function KI(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var GI=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($e(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=`[${KI([...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
|
+
`)}},YI=GI,io=new YI(`
|
|
84
|
+
\r `),Ku=t=>t===""||t===ne||t===Y||t===K;function QI(t,e,r){let{node:s}=t;if(s.type==="JSXElement"&&fN(s))return[r("openingElement"),r("closingElement")];let i=s.type==="JSXElement"?r("openingElement"):r("openingFragment"),a=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"),a];s.children=s.children.map(S=>mN(S)?{type:"JSXText",value:" ",raw:" "}:S);let u=s.children.some(at),p=s.children.filter(S=>S.type==="JSXExpressionContainer").length>1,h=s.type==="JSXElement"&&s.openingElement.attributes.length>1,m=Et(i)||u||h||p,f=t.parent.rootMarker==="mdx",d=e.singleQuote?"{' '}":'{" "}',D=f?ne:xe([d,K]," "),g=s.openingElement?.name?.name==="fbt",E=ZI(t,e,r,D,g),x=s.children.some(S=>Wn(S));for(let S=E.length-2;S>=0;S--){let k=E[S]===""&&E[S+1]==="",v=E[S]===Y&&E[S+1]===""&&E[S+2]===Y,_=(E[S]===K||E[S]===Y)&&E[S+1]===""&&E[S+2]===D,$=E[S]===D&&E[S+1]===""&&(E[S+2]===K||E[S+2]===Y),j=E[S]===D&&E[S+1]===""&&E[S+2]===D,H=E[S]===K&&E[S+1]===""&&E[S+2]===Y||E[S]===Y&&E[S+1]===""&&E[S+2]===K;v&&x||k||_||j||H?E.splice(S,2):$&&E.splice(S+1,2)}for(;E.length>0&&Ku($e(0,E,-1));)E.pop();for(;E.length>1&&Ku(E[0])&&Ku(E[1]);)E.shift(),E.shift();let T=[""];for(let[S,k]of E.entries()){if(k===D){if(S===1&&Pk(E[S-1])){if(E.length===2){T.push([T.pop(),d]);continue}T.push([d,Y],"");continue}else if(S===E.length-1){T.push([T.pop(),d]);continue}else if(E[S-1]===""&&E[S-2]===Y){T.push([T.pop(),d]);continue}}S%2===0?T.push([T.pop(),k]):T.push(k,""),Et(k)&&(m=!0)}let b=x?Vg(T):U(T,{shouldBreak:!0});if(e.cursorNode?.type==="JSXText"&&s.children.includes(e.cursorNode)?b=[Ma,b,Ma]:e.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(e.nodeBeforeCursor)?b=[Ma,b]:e.nodeAfterCursor?.type==="JSXText"&&s.children.includes(e.nodeAfterCursor)&&(b=[b,Ma]),f)return b;let A=U([i,G([Y,b]),Y,a]);return m?A:_s([U([i,...E,a]),A])}function ZI(t,e,r,s,i){let a="",u=[a];function p(m){a=m,u.push([u.pop(),m])}function h(m){m!==""&&(a=m,u.push(m,""))}return t.each(({node:m,next:f})=>{if(m.type==="JSXText"){let d=Ft(m);if(Wn(m)){let D=io.split(d,!0);D[0]===""&&(D.shift(),/\n/u.test(D[0])?h(Pf(i,D[1],m,f)):h(s),D.shift());let g;if($e(0,D,-1)===""&&(D.pop(),g=D.pop()),D.length===0)return;for(let[E,x]of D.entries())E%2===1?h(ne):p(x);g!==void 0?/\n/u.test(g)?h(Pf(i,a,m,f)):h(s):h(Sf(i,a,m,f))}else/\n/u.test(d)?d.match(/\n/gu).length>1&&h(Y):h(s)}else{let d=r();if(p(d),f&&Wn(f)){let D=io.trim(Ft(f)),[g]=io.split(D);h(Sf(i,g,m,f))}else h(Y)}},"children"),u}function Sf(t,e,r,s){return t?"":r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?e.length===1?K:Y:K}function Pf(t,e,r,s){return t?Y:e.length===1?r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?Y:K:Y}var eN=Ae(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function tN(t,e,r){let{parent:s}=t;if(eN(s))return e;let i=rN(t),a=Cs(t,r);return U([a?"":xe("("),G([K,e]),K,a?"":xe(")")],{shouldBreak:i})}function rN(t){return t.match(void 0,(e,r)=>r==="body"&&e.type==="ArrowFunctionExpression",(e,r)=>r==="arguments"&&_e(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 sN(t,e,r){let{node:s}=t,i=[r("name")];if(s.value){let a;if(ot(s.value)){let u=Ft(s.value),p=nt(0,nt(0,u.slice(1,-1),"'","'"),""",'"'),h=pg(p,e.jsxSingleQuote);p=h==='"'?nt(0,p,'"',"""):nt(0,p,"'","'"),a=t.call(()=>Kt(t,Rs(h+p+h),e),"value")}else a=r("value");i.push("=",a)}return i}function iN(t,e,r){let{node:s}=t,i=(a,u)=>a.type==="JSXEmptyExpression"||!se(a)&&(ht(a)||ir(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(i(a.argument,a)||a.argument.type==="JSXElement")||_e(a)||a.type==="ChainExpression"&&_e(a.expression)||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||at(u)&&(a.type==="ConditionalExpression"||jr(a)));return i(s.expression,t.parent)?U(["{",r("expression"),Ar,"}"]):U(["{",G([K,r("expression")]),K,Ar,"}"])}function nN(t,e,r){let{node:s}=t,i=se(s.name)||se(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!i)return["<",r("name"),r("typeArguments")," />"];if(s.attributes?.length===1&&ot(s.attributes[0].value)&&!s.attributes[0].value.value.includes(`
|
|
85
|
+
`)&&!i&&!se(s.attributes[0]))return U(["<",r("name"),r("typeArguments")," ",...t.map(r,"attributes"),s.selfClosing?" />":">"]);let a=s.attributes?.some(p=>ot(p.value)&&p.value.value.includes(`
|
|
86
|
+
`)),u=e.singleAttributePerLine&&s.attributes.length>1?Y:ne;return U(["<",r("name"),r("typeArguments"),G(t.map(()=>[u,r()],"attributes")),...aN(s,e,i)],{shouldBreak:a})}function aN(t,e,r){return t.selfClosing?[ne,"/>"]:oN(t,e,r)?[">"]:[K,">"]}function oN(t,e,r){let s=t.attributes.length>0&&se($e(0,t.attributes,-1),ue.Trailing);return t.attributes.length===0&&!r||(e.bracketSameLine||e.jsxBracketSameLine)&&(!r||t.attributes.length>0)&&!s}function uN(t,e,r){let{node:s}=t,i=["</"],a=r("name");return se(s.name,ue.Leading|ue.Line)?i.push(G([Y,a]),Y):se(s.name,ue.Leading|ue.Block)?i.push(" ",a):i.push(a),i.push(">"),i}function lN(t,e){let{node:r}=t,s=se(r),i=se(r,ue.Line),a=r.type==="JSXOpeningFragment";return[a?"<":"</",G([i?Y:s&&!a?" ":"",Ve(t,e)]),i?Y:"",">"]}function pN(t,e,r){let s=Kt(t,QI(t,e,r),e);return tN(t,s,e)}function cN(t,e){let{node:r}=t,s=se(r,ue.Line);return[Ve(t,e,{indent:s}),s?Y:""]}function hN(t,e,r){let{node:s}=t;return["{",t.call(({node:i})=>{let a=["...",r()];return se(i)?[G([K,Kt(t,a,e)]),K]:a},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function dN(t,e,r){let{node:s}=t;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return sN(t,e,r);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return Be(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return Be(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hN(t,e,r);case"JSXExpressionContainer":return iN(t,e,r);case"JSXFragment":case"JSXElement":return pN(t,e,r);case"JSXOpeningElement":return nN(t,e,r);case"JSXClosingElement":return uN(t,e,r);case"JSXOpeningFragment":case"JSXClosingFragment":return lN(t,e);case"JSXEmptyExpression":return cN(t,e);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new qi(s,"JSX")}}function fN(t){if(t.children.length===0)return!0;if(t.children.length>1)return!1;let e=t.children[0];return e.type==="JSXText"&&!Wn(e)}function Wn(t){return t.type==="JSXText"&&(io.hasNonWhitespaceCharacter(Ft(t))||!/\n/u.test(Ft(t)))}function mN(t){return t.type==="JSXExpressionContainer"&&ot(t.expression)&&t.expression.value===" "&&!se(t.expression)}function yN(t){let{node:e,parent:r}=t;if(!at(e)||!at(r))return!1;let{index:s,siblings:i}=t,a;for(let u=s;u>0;u--){let p=i[u-1];if(!(p.type==="JSXText"&&!Wn(p))){a=p;break}}return a?.type==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&ko(a.expression)}function gN(t){return ko(t.node)||yN(t)}var cc=gN;function DN(t,e,r){let{node:s}=t;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return r("node");case"NGPipeExpression":return aD(t,e,r);case"NGChainedExpression":return U(Be([";",ne],t.map(()=>AN(t)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return t.map(()=>[t.isFirst?"":vf(t)?" ":[";",ne],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:a}=t,u=vf(t)||xN(t)||(i===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||i===2&&(s.key.name==="else"&&a.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[i-1].key.name==="then"||s.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[r("key"),u?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),s.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new qi(s,"Angular")}}function vf({node:t,index:e}){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1}function xN(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 EN=Ae(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function AN({node:t}){return Tl(t,EN)}function wD(t,e,r){let{node:s}=t;return U([Be(ne,t.map(r,"decorators")),FD(s,e)?Y:ne])}function CN(t,e,r){return kD(t.node)?[Be(Y,t.map(r,"declaration","decorators")),Y]:""}function TN(t,e,r){let{node:s,parent:i}=t,{decorators:a}=s;if(!He(a)||kD(i)||cc(t))return"";let u=s.type==="ClassExpression"||s.type==="ClassDeclaration"||FD(s,e);return[t.key==="declaration"&&sF(i)?Y:u?Ur:"",Be(ne,t.map(r,"decorators")),ne]}function FD(t,e){return t.decorators.some(r=>wt(e.originalText,ve(r)))}function kD(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;let e=t.declaration?.decorators;return He(e)&&wo(t,e[0])}var Gu=new WeakMap;function ID(t){return Gu.has(t)||Gu.set(t,t.type==="ConditionalExpression"&&!xt(t,e=>e.type==="ObjectExpression")),Gu.get(t)}var bN=t=>t.type==="SequenceExpression";function SN(t,e,r,s={}){let i=[],a,u=[],p=!1,h=!s.expandLastArg&&t.node.body.type==="ArrowFunctionExpression",m;(function b(){let{node:A}=t,S=PN(t,e,r,s);if(i.length===0)i.push(S);else{let{leading:k,trailing:v}=Io(t,e);i.push([k,S]),u.unshift(v)}h&&(p||(p=A.returnType&&yt(A).length>0||A.typeParameters||yt(A).some(k=>k.type!=="Identifier"))),!h||A.body.type!=="ArrowFunctionExpression"?(a=r("body",s),m=A.body):t.call(b,"body")})();let f=!sr(e.originalText,m)&&(bN(m)||vN(m,a,e)||!p&&ID(m)),d=t.key==="callee"&&Bi(t.parent),D=Symbol("arrow-chain"),g=wN(t,s,{signatureDocs:i,shouldBreak:p}),E=!1,x=!1,T=!1;return h&&(d||s.assignmentLayout)&&(x=!0,T=!se(t.node,ue.Leading&ue.Line),E=s.assignmentLayout==="chain-tail-arrow-chain"||d&&!f),a=FN(t,e,s,{bodyDoc:a,bodyComments:u,functionBody:m,shouldPutBodyOnSameLine:f}),U([U(x?G([T?K:"",g]):g,{shouldBreak:E,id:D})," =>",h?zn(a,{groupId:D}):U(a),h&&d?xe(K,"",{groupId:D}):""])}function PN(t,e,r,s){let{node:i}=t,a=[];if(i.async&&a.push("async "),CD(t,e))a.push(r(["params",0]));else{let p=s.expandLastArg||s.expandFirstArg,h=Lo(t,r);if(p){if(Et(h))throw new mo;h=U(fo(h))}a.push(U([ei(t,e,r,p,!0),h]))}let u=Ve(t,e,{filter(p){let h=$i(e.originalText,ve(p));return h!==!1&&e.originalText.slice(h,h+2)==="=>"}});return u&&a.push(" ",u),a}function vN(t,e,r){return ht(t)||ir(t)||t.type==="ArrowFunctionExpression"||t.type==="DoExpression"||t.type==="BlockStatement"||at(t)||e.label?.hug!==!1&&(e.label?.embed||Cg(t,r.originalText))}function wN(t,e,{signatureDocs:r,shouldBreak:s}){if(r.length===1)return r[0];let{parent:i,key:a}=t;return a!=="callee"&&Bi(i)||jr(i)?U([r[0]," =>",G([ne,Be([" =>",ne],r.slice(1))])],{shouldBreak:s}):a==="callee"&&Bi(i)||e.assignmentLayout?U(Be([" =>",ne],r),{shouldBreak:s}):U(G(Be([" =>",ne],r)),{shouldBreak:s})}function FN(t,e,r,{bodyDoc:s,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:u}){let{node:p,parent:h}=t,m=r.expandLastArg&&br(e,"all")?xe(","):"",f=(r.expandLastArg||h.type==="JSXExpressionContainer")&&!se(p)?K:"";return u&&ID(a)?[" ",U([xe("","("),G([K,s]),xe("",")"),m,f]),i]:u?[" ",s,i]:[G([ne,s,i]),m,f]}var kN=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}},IN=jp("findLast",function(){if(Array.isArray(this))return kN}),NN=IN;function Ol(t,e,r,s){let{node:i}=t,a=[],u=NN(0,i[s],p=>p.type!=="EmptyStatement");return t.each(({node:p})=>{p.type!=="EmptyStatement"&&(a.push(r()),p!==u&&(a.push(Y),Sr(p,e)&&a.push(Y)))},s),a}function ND(t,e,r){let s=BN(t,e,r),{node:i,parent:a}=t;if(i.type==="Program"&&a?.type!=="ModuleExpression")return s?[s,Y]:"";let u=[];if(i.type==="StaticBlock"&&u.push("static "),u.push("{"),s)u.push(G([Y,s]),Y);else{let p=t.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!p.finalizer||a.type==="TSModuleDeclaration"||a.type==="MatchStatementCase"||i.type==="StaticBlock"||u.push(Y)}return u.push("}"),u}function BN(t,e,r){let{node:s}=t,i=He(s.directives),a=s.body.some(h=>h.type!=="EmptyStatement"),u=se(s,ue.Dangling);if(!i&&!a&&!u)return"";let p=[];return i&&(p.push(Ol(t,e,r,"directives")),(a||u)&&(p.push(Y),Sr($e(0,s.directives,-1),e)&&p.push(Y))),a&&p.push(Ol(t,e,r,"body")),u&&p.push(Ve(t,e)),p}function LN(t){let e=new WeakMap;return function(r){return e.has(r)||e.set(r,Symbol(t)),e.get(r)}}var ON=LN;function hc(t,e,r){let{node:s}=t,i=[],a=s.type==="ObjectTypeAnnotation",u=!BD(t),p=u?ne:Y,h=se(s,ue.Dangling),[m,f]=a&&s.exact?["{|","|}"]:"{}",d;if(_N(t,({node:D,next:g,isLast:E})=>{if(d??(d=D),i.push(r()),u&&a){let{parent:x}=t;x.inexact||!E?i.push(","):br(e)&&i.push(xe(","))}!u&&(MN({node:D,next:g},e)||OD({node:D,next:g},e))&&i.push(";"),E||(i.push(p),Sr(D,e)&&i.push(Y))}),h&&i.push(Ve(t,e)),s.type==="ObjectTypeAnnotation"&&s.inexact){let D;se(s,ue.Dangling)?D=[se(s,ue.Line)||wt(e.originalText,ve($e(0,$s(s),-1)))?Y:ne,"..."]:D=[d?ne:"","..."],i.push(D)}if(u){let D=h||e.objectWrap==="preserve"&&d&&jt(e.originalText,ke(s),ke(d)),g;if(i.length===0)g=m+f;else{let E=e.bracketSpacing?ne:K;g=[m,G([E,...i]),E,f]}return t.match(void 0,(E,x)=>x==="typeAnnotation",(E,x)=>x==="typeAnnotation",Nn)||t.match(void 0,(E,x)=>E.type==="FunctionTypeParam"&&x==="typeAnnotation",Nn)?g:U(g,{shouldBreak:D})}return[m,i.length>0?[G([Y,i]),Y]:"",f]}function BD(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 _N(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:a,index:u})=>({node:a,loc:ke(a),selector:[i,u]}),i)).sort((i,a)=>i.loc-a.loc);for(let[i,{node:a,selector:u}]of s.entries())t.call(()=>e({node:a,next:s[i+1]?.node,isLast:i===s.length-1}),...u)}}function Lr(t,e){let{parent:r}=t;return t.callParent(BD)?e.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?t.isLast?e.semi?xe(";"):"":e.semi||OD({node:t.node,next:t.next},e)?";":xe("",";"):""}var wf=Ae(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),LD=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 MN({node:t,next:e},r){if(r.semi||!wf(t))return!1;if(!t.value&&LD(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(wf(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 $N=Ae(["TSPropertySignature"]);function OD({node:t,next:e},r){return r.semi||!$N(t)?!1:LD(t)?!0:e?e.type==="TSCallSignatureDeclaration":!1}var jN=ON("heritageGroup"),RN=Ae(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function dc(t,e,r){let{node:s}=t,i=RN(s),a=[Rt(t),No(t),i?"interface":"class"],u=MD(t),p=[],h=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&p.push(" ");for(let f of["id","typeParameters"])if(s[f]){let{leading:d,trailing:D}=t.call(()=>Io(t,e),f);p.push(d,r(f),G(D))}}if(s.superClass){let f=[VN(t,e,r),r(s.superTypeArguments?"superTypeArguments":"superTypeParameters")],d=t.call(()=>["extends ",Kt(t,f,e)],"superClass");u?h.push(ne,U(d)):h.push(" ",d)}else h.push(Qu(t,e,r,"extends"));h.push(Qu(t,e,r,"mixins"),Qu(t,e,r,"implements"));let m;return u?(m=jN(s),a.push(U([...p,G(h)],{id:m}))):a.push(...p,...h),!i&&u&&UN(s.body)?a.push(xe(Y," ",{groupId:m})):a.push(" "),a.push(r("body")),a}function UN(t){return t.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(e=>He(t[e])):He(t.body)}function _D(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 qN(t){let{node:e}=t;if(se(e.id,ue.Trailing)||se(e.typeParameters,ue.Trailing)||se(e.superClass)||_D(e))return!0;if(e.superClass)return t.parent.type==="AssignmentExpression"?!1:!(e.superTypeArguments??e.superTypeParameters)&&ze(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")&&ze(r.expression)&&!r.typeArguments:!1}var Yu=new WeakMap;function MD(t){let{node:e}=t;return Yu.has(e)||Yu.set(e,qN(t)),Yu.get(e)}function Qu(t,e,r,s){let{node:i}=t;if(!He(i[s]))return"";let a=Ve(t,e,{marker:s}),u=Be([",",ne],t.map(r,s));if(!_D(i)){let p=[`${s} `,a,u];return MD(t)?[ne,U(p)]:[" ",p]}return[ne,a,a&&Y,s,U(G([ne,u]))]}function VN(t,e,r){let s=r("superClass"),{parent:i}=t;return i.type==="AssignmentExpression"?U(xe(["(",G([K,s]),K,")"],s)):s}function $D(t,e,r){let{node:s}=t,i=[];return He(s.decorators)&&i.push(wD(t,e,r)),i.push(Bo(s)),s.static&&i.push("static "),i.push(No(t)),s.override&&i.push("override "),i.push(Ll(t,e,r)),i}function jD(t,e,r){let{node:s}=t,i=[];He(s.decorators)&&i.push(wD(t,e,r)),i.push(Rt(t),Bo(s)),s.static&&i.push("static "),i.push(No(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(oa(t,e,r),At(t),nD(t),pt(t,r));let a=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[aa(t,e,r,i," =",a?void 0:"value"),e.semi?";":""]}var zN=Ae(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function RD(t){return zN(t)?RD(t.expression):t}var HN=Ae(["FunctionExpression","ArrowFunctionExpression"]);function WN(t){return t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"&&t.name!=="undefined"}function JN(t,e){if(vD(t,e)){let r=RD(t.node.expression);return HN(r)||WN(r)}return!(!e.semi||SD(t,e)||PD(t,e))}function XN(t,e,r){return[r("expression"),JN(t,e)?";":""]}function KN(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=Be([",",ne],s);return e.__isVueForBindingLeft?["(",G([K,U(i)]),K,")"]:i}if(e.__isEmbeddedTypescriptGenericParameters){let s=t.map(r,"program","body",0,"typeParameters","params");return Be([",",ne],s)}}function GN(t,e){let{node:r}=t;switch(r.type){case"RegExpLiteral":return Ff(r);case"BigIntLiteral":return _l(r.extra.raw);case"NumericLiteral":return Li(r.extra.raw);case"StringLiteral":return Rs(Ii(r.extra.raw,e));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return kf(r.extra.raw,e);case"Literal":{if(r.regex)return Ff(r.regex);if(r.bigint)return _l(r.raw);let{value:s}=r;return typeof s=="number"?Li(r.raw):typeof s=="string"?YN(t)?kf(r.raw,e):Rs(Ii(r.raw,e)):String(s)}}}function YN(t){if(t.key!=="expression")return;let{parent:e}=t;return e.type==="ExpressionStatement"&&typeof e.directive=="string"}function _l(t){return t.toLowerCase()}function Ff({pattern:t,flags:e}){return e=[...e].sort().join(""),`/${t}/${e}`}var QN="use strict";function kf(t,e){let r=t.slice(1,-1);if(r===QN||!(r.includes('"')||r.includes("'"))){let s=e.singleQuote?"'":'"';return s+r+s}return t}function ZN(t,e,r){let s=t.originalText.slice(e,r);for(let i of t[Symbol.for("comments")]){let a=ke(i);if(a>r)break;let u=ve(i);if(u<e)continue;let p=a-e,h=u-e;s=s.slice(0,p)+nt(0,s.slice(p,h),/[^\n]/gu," ")+s.slice(h)}return s}var Oo=ZN,UD=Ae(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),eB=Ae(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function fc(t,e,r){let{node:s,parent:i}=t,a=eB(s),u=s.type==="TSEnumBody"||a,p=UD(s),h=a&&s.hasUnknownMembers,m=u?"members":p?"attributes":"properties",f=s[m],d=u||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(T=>T.value&&(T.value.type==="ObjectPattern"||T.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&e.objectWrap==="preserve"&&f.length>0&&tB(s,f[0],e),D=[],g=t.map(({node:T})=>{let b=[...D,U(r())];return D=[",",ne],Sr(T,e)&&D.push(Y),b},m);if(h){let T;if(se(s,ue.Dangling)){let b=se(s,ue.Line);T=[Ve(t,e),b||wt(e.originalText,ve($e(0,$s(s),-1)))?Y:ne,"..."]}else T=["..."];g.push([...D,...T])}let E=!(h||$e(0,f,-1)?.type==="RestElement"),x;if(g.length===0){if(!se(s,ue.Dangling))return["{}",pt(t,r)];x=U(["{",Ve(t,e,{indent:!0}),K,"}",At(t),pt(t,r)])}else{let T=e.bracketSpacing?ne:K;x=["{",G([T,...g]),xe(E&&br(e)?",":""),T,"}",At(t),pt(t,r)]}return t.match(T=>T.type==="ObjectPattern"&&!He(T.decorators),Nn)||fs(s)&&(t.match(void 0,(T,b)=>b==="typeAnnotation",(T,b)=>b==="typeAnnotation",Nn)||t.match(void 0,(T,b)=>T.type==="FunctionTypeParam"&&b==="typeAnnotation",Nn))||!d&&t.match(T=>T.type==="ObjectPattern",T=>T.type==="AssignmentExpression"||T.type==="VariableDeclarator")?x:U(x,{shouldBreak:d})}function tB(t,e,r){let s=r.originalText,i=ke(t),a=ke(e);if(UD(t)){let u=ke(t),p=Oo(r,u,a);i=u+p.lastIndexOf("{")}return jt(s,i,a)}function rB(t,e,r){let{node:s}=t;return["import",s.phase?` ${s.phase}`:"",zD(s),WD(t,e,r),HD(t,e,r),XD(t,e,r),e.semi?";":""]}var qD=t=>t.type==="ExportDefaultDeclaration"||t.type==="DeclareExportDeclaration"&&t.default;function VD(t,e,r){let{node:s}=t,i=[CN(t,e,r),Rt(t),"export",qD(s)?" default":""],{declaration:a,exported:u}=s;return se(s,ue.Dangling)&&(i.push(" ",Ve(t,e)),Tg(s)&&i.push(Y)),a?i.push(" ",r("declaration")):(i.push(nB(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(i.push(" *"),u&&i.push(" as ",r("exported"))):i.push(WD(t,e,r)),i.push(HD(t,e,r),XD(t,e,r))),i.push(iB(s,e)),i}var sB=Ae(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function iB(t,e){return e.semi&&(!t.declaration||qD(t)&&!sB(t.declaration))?";":""}function mc(t,e=!0){return t&&t!=="value"?`${e?" ":""}${t}${e?"":" "}`:""}function zD(t,e){return mc(t.importKind,e)}function nB(t){return mc(t.exportKind)}function HD(t,e,r){let{node:s}=t;return s.source?[JD(s,e)?" from":""," ",r("source")]:""}function WD(t,e,r){let{node:s}=t;if(!JD(s,e))return"";let i=[" "];if(He(s.specifiers)){let a=[],u=[];t.each(()=>{let p=t.node.type;if(p==="ExportNamespaceSpecifier"||p==="ExportDefaultSpecifier"||p==="ImportNamespaceSpecifier"||p==="ImportDefaultSpecifier")a.push(r());else if(p==="ExportSpecifier"||p==="ImportSpecifier")u.push(r());else throw new qi(s,"specifier")},"specifiers"),i.push(Be(", ",a)),u.length>0&&(a.length>0&&i.push(", "),u.length>1||a.length>0||s.specifiers.some(p=>se(p))?i.push(U(["{",G([e.bracketSpacing?ne:K,Be([",",ne],u)]),xe(br(e)?",":""),e.bracketSpacing?ne:K,"}"])):i.push(["{",e.bracketSpacing?" ":"",...u,e.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function JD(t,e){return t.type!=="ImportDeclaration"||He(t.specifiers)||t.importKind==="type"?!0:Oo(e,ke(t),ke(t.source)).trimEnd().endsWith("from")}function aB(t,e){if(t.extra?.deprecatedAssertSyntax)return"assert";let r=Oo(e,ve(t.source),t.attributes?.[0]?ke(t.attributes[0]):ve(t)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||He(t.attributes)?"with":void 0}var oB=t=>{let{attributes:e}=t;if(e.length!==1)return!1;let[r]=e,{type:s,key:i,value:a}=r;return s==="ImportAttribute"&&(i.type==="Identifier"&&i.name==="type"||ot(i)&&i.value==="type")&&ot(a)&&!se(r)&&!se(i)&&!se(a)};function XD(t,e,r){let{node:s}=t;if(!s.source)return"";let i=aB(s,e);if(!i)return"";let a=fc(t,e,r);return oB(s)&&(a=fo(a)),[` ${i} `,a]}function uB(t,e,r){let{node:s}=t,{type:i}=s,a=i.startsWith("Import"),u=a?"imported":"local",p=a?"local":"exported",h=s[u],m=s[p],f="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?f="*":h&&(f=r(u)),m&&!lB(s)&&(d=r(p)),[mc(i==="ImportSpecifier"?s.importKind:s.exportKind,!1),f,f&&d?" as ":"",d]}function lB(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||!Uw(e,r)?!1:ot(e)?e.value===r.value&&Ft(e)===Ft(r):e.type==="Identifier"?e.name===r.name:!1}function Ml(t,e){return["...",e("argument"),pt(t,e)]}function pB(t){let e=[t];for(let r=0;r<e.length;r++){let s=e[r];for(let i of["test","consequent","alternate"]){let a=s[i];if(at(a))return!0;a.type==="ConditionalExpression"&&e.push(a)}}return!1}function cB(t,e,r){let{node:s}=t,i=s.type==="ConditionalExpression",a=i?"alternate":"falseType",{parent:u}=t,p=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return u.type===s.type&&u[a]===s?ar(2,p):p}var hB=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function dB(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let i=0;!r;i++){let a=t.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===s||_e(a)&&a.callee===s||ze(a)&&a.object===s||a.type==="TSNonNullExpression"&&a.expression===s){s=a;continue}a.type==="NewExpression"&&a.callee===s||rr(a)&&a.expression===s?(r=t.getParentNode(i+1),s=a):r=a}return s===e?!1:r[hB.get(r.type)]===s}function fB(t,e,r){let{node:s}=t,i=s.type==="ConditionalExpression",a=i?"consequent":"trueType",u=i?"alternate":"falseType",p=i?["test"]:["checkType","extendsType"],h=s[a],m=s[u],f=[],d=!1,{parent:D}=t,g=D.type===s.type&&p.some(j=>D[j]===s),E=D.type===s.type&&!g,x,T,b=0;do T=x||s,x=t.getParentNode(b),b++;while(x&&x.type===s.type&&p.every(j=>x[j]!==T));let A=x||D,S=T;if(i&&(at(s[p[0]])||at(h)||at(m)||pB(S))){d=!0,E=!0;let j=q=>[xe("("),G([K,q]),K,xe(")")],H=q=>q.type==="NullLiteral"||q.type==="Literal"&&q.value===null||q.type==="Identifier"&&q.name==="undefined";f.push(" ? ",H(h)?r(a):j(r(a))," : ",m.type===s.type||H(m)?r(u):j(r(u)))}else{let j=q=>e.useTabs?G(r(q)):ar(2,r(q)),H=[ne,"? ",h.type===s.type?xe("","("):"",j(a),h.type===s.type?xe("",")"):"",ne,": ",j(u)];f.push(D.type!==s.type||D[u]===s||g?H:e.useTabs?qg(G(H)):ar(Math.max(0,e.tabWidth-2),H))}let k=j=>D===A?U(j):j,v=!d&&(ze(D)||D.type==="NGPipeExpression"&&D.left===s)&&!D.computed,_=dB(t),$=k([cB(t,e,r),E?f:G(f),i&&v&&!_?K:""]);return g||_?U([G([K,$]),K]):$}function mB(t,e){return(ze(e)||e.type==="NGPipeExpression"&&e.left===t)&&!e.computed}function yB(t,e,r,s){return[...t.map(i=>$s(i)),$s(e),$s(r)].flat().some(i=>or(i)&&jt(s.originalText,ke(i),ve(i)))}var gB=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function DB(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,s=e;for(let i=0;!r;i++){let a=t.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===s||_e(a)&&a.callee===s||ze(a)&&a.object===s||a.type==="TSNonNullExpression"&&a.expression===s){s=a;continue}a.type==="NewExpression"&&a.callee===s||rr(a)&&a.expression===s?(r=t.getParentNode(i+1),s=a):r=a}return s===e?!1:r[gB.get(r.type)]===s}var Zu=t=>[xe("("),G([K,t]),K,xe(")")];function yc(t,e,r,s){if(!e.experimentalTernaries)return fB(t,e,r);let{node:i}=t,a=i.type==="ConditionalExpression",u=ms(i),p=a?"consequent":"trueType",h=a?"alternate":"falseType",m=a?["test"]:["checkType","extendsType"],f=i[p],d=i[h],D=m.map(Me=>i[Me]),{parent:g}=t,E=g.type===i.type,x=E&&m.some(Me=>g[Me]===i),T=E&&g[h]===i,b=f.type===i.type,A=d.type===i.type,S=A||T,k=e.tabWidth>2||e.useTabs,v,_,$=0;do _=v||i,v=t.getParentNode($),$++;while(v&&v.type===i.type&&m.every(Me=>v[Me]!==_));let j=v||g,H=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(g.type==="AssignmentExpression"||g.type==="VariableDeclarator"||g.type==="ClassProperty"||g.type==="PropertyDefinition"||g.type==="ClassPrivateProperty"||g.type==="ObjectProperty"||g.type==="Property"),q=(g.type==="ReturnStatement"||g.type==="ThrowStatement")&&!(b||A),W=a&&j.type==="JSXExpressionContainer"&&t.grandparent.type!=="JSXAttribute",F=DB(t),R=mB(i,g),te=u&&Cs(t,e),ie=k?e.useTabs?" ":" ".repeat(e.tabWidth-1):"",re=yB(D,f,d,e)||b||A,we=!S&&!E&&!u&&(W?f.type==="NullLiteral"||f.type==="Literal"&&f.value===null:Kp(f,e)&&of(i.test,3)),be=S||T||u&&!E||E&&a&&of(i.test,1)||we,Ze=[];!b&&se(f,ue.Dangling)&&t.call(()=>{Ze.push(Ve(t,e),Y)},"consequent");let he=[];se(i.test,ue.Dangling)&&t.call(()=>{he.push(Ve(t,e))},"test"),!A&&se(d,ue.Dangling)&&t.call(()=>{he.push(Ve(t,e))},"alternate"),se(i,ue.Dangling)&&he.push(Ve(t,e));let De=Symbol("test"),Z=Symbol("consequent"),gt=Symbol("test-and-consequent"),Re=a?[Zu(r("test")),i.test.type==="ConditionalExpression"?Ur:""]:[r("checkType")," ","extends"," ",ms(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):U(Zu(r("extendsType")))],ut=U([Re," ?"],{id:De}),Ts=r(p),ae=G([b||W&&(at(f)||E||S)?Y:ne,Ze,Ts]),J=be?U([ut,S?ae:xe(ae,U(ae,{id:Z}),{groupId:De})],{id:gt}):[ut,ae],V=r(h),fe=we?xe(V,qg(Zu(V)),{groupId:gt}):V,Se=[J,he.length>0?[G([Y,he]),Y]:A?Y:we?xe(ne," ",{groupId:gt}):ne,":",A?" ":k?be?xe(ie,xe(S||we?" ":ie," "),{groupId:gt}):xe(ie," "):" ",A?fe:U([G(fe),W&&!we?K:""]),R&&!F?K:"",re?Ur:""];return H&&!re?U(G([K,U(Se)])):H||q?U(G(Se)):F||u&&x?U([G([K,Se]),te?K:""]):g===j?U(Se):Se}function xB(t,e,r,s){let{node:i}=t;if(Jp(i))return GN(t,e);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[Ve(t,e),r("node"),Y];case"File":return KN(t,e,r)??r("program");case"ExpressionStatement":return XN(t,e,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!se(i.expression)&&(ir(i.expression)||ht(i.expression))?["(",r("expression"),")"]:U(["(",G([K,r("expression")]),K,")"]);case"AssignmentExpression":return FI(t,e,r);case"VariableDeclarator":return kI(t,e,r);case"BinaryExpression":case"LogicalExpression":return aD(t,e,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return bI(t,e,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return AI(t,e,r);case"Identifier":return[i.name,At(t),nD(t),pt(t,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Ml(t,r);case"RestElement":return Ml(t,r);case"FunctionDeclaration":case"FunctionExpression":return AD(t,e,r,s);case"ArrowFunctionExpression":return SN(t,e,r,s);case"YieldExpression":return[`yield${i.delegate?"*":""}`,i.argument?[" ",r("argument")]:""];case"AwaitExpression":{let a=["await"];if(i.argument){a.push(" ",r("argument"));let{parent:u}=t;if(_e(u)&&u.callee===i||ze(u)&&u.object===i){a=[G([K,...a]),K];let p=t.findAncestor(h=>h.type==="AwaitExpression"||h.type==="BlockStatement");if(p?.type!=="AwaitExpression"||!xt(p.argument,h=>h===i))return U(a)}}return a}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return VD(t,e,r);case"ImportDeclaration":return rB(t,e,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return uB(t,e,r);case"ImportAttribute":return Xu(t,e,r);case"Program":case"BlockStatement":case"StaticBlock":return ND(t,e,r);case"ClassBody":return hc(t,e,r);case"ThrowStatement":return HI(t,e,r);case"ReturnStatement":return zI(t,e,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return yo(t,e,r);case"ObjectExpression":case"ObjectPattern":return fc(t,e,r);case"Property":return sa(i)?Ll(t,e,r):Xu(t,e,r);case"ObjectProperty":return Xu(t,e,r);case"ObjectMethod":return Ll(t,e,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return uc(t,e,r);case"SequenceExpression":{let{parent:a}=t;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let p=[];return t.each(({isFirst:h})=>{h?p.push(r()):p.push(",",G([ne,r()]))},"expressions"),U(p)}let u=Be([",",ne],t.map(r,"expressions"));return(a.type==="ReturnStatement"||a.type==="ThrowStatement")&&t.key==="argument"||a.type==="ArrowFunctionExpression"&&t.key==="body"?U(xe([G([K,u]),K],u)):U(u)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),e.semi?";":""];case"UnaryExpression":{let a=[i.operator];return/[a-z]$/u.test(i.operator)&&a.push(" "),se(i.argument)?a.push(U(["(",G([K,r("argument")]),K,")"])):a.push(r("argument")),a}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return yc(t,e,r,s);case"VariableDeclaration":{let a=t.map(r,"declarations"),u=t.parent,p=u.type==="ForStatement"||u.type==="ForInStatement"||u.type==="ForOfStatement",h=i.declarations.some(f=>f.init),m;return a.length===1&&!se(i.declarations[0])?m=a[0]:a.length>0&&(m=G(a[0])),U([Rt(t),i.kind,m?[" ",m]:"",G(a.slice(1).map(f=>[",",h&&!p?Y:ne,f])),e.semi&&!(p&&u.body!==i)?";":""])}case"WithStatement":return U(["with (",r("object"),")",ss(i.body,r("body"))]);case"IfStatement":{let a=ss(i.consequent,r("consequent")),u=[U(["if (",U([G([K,r("test")]),K]),")",a])];if(i.alternate){let p=se(i.consequent,ue.Trailing|ue.Line)||Tg(i),h=i.consequent.type==="BlockStatement"&&!p;u.push(h?" ":Y),se(i,ue.Dangling)&&u.push(Ve(t,e),p?Y:" "),u.push("else",U(ss(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return u}case"ForStatement":{let a=ss(i.body,r("body")),u=Ve(t,e),p=u?[u,K]:"";return!i.init&&!i.test&&!i.update?[p,U(["for (;;)",a])]:[p,U(["for (",U([G([K,r("init"),";",ne,r("test"),";",i.update?[ne,r("update")]:xe("",ne)]),K]),")",a])]}case"WhileStatement":return U(["while (",U([G([K,r("test")]),K]),")",ss(i.body,r("body"))]);case"ForInStatement":return U(["for (",r("left")," in ",r("right"),")",ss(i.body,r("body"))]);case"ForOfStatement":return U(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",ss(i.body,r("body"))]);case"DoWhileStatement":{let a=ss(i.body,r("body"));return[U(["do",a]),i.body.type==="BlockStatement"?" ":Y,"while (",U([G([K,r("test")]),K]),")",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"&&!se(i.body,ue.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let a=se(i.param,p=>!or(p)||p.leading&&wt(e.originalText,ve(p))||p.trailing&&wt(e.originalText,ke(p),{backwards:!0})),u=r("param");return["catch ",a?["(",G([K,u]),K,") "]:["(",u,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[U(["switch (",G([K,r("discriminant")]),K,")"])," {",i.cases.length>0?G([Y,Be(Y,t.map(({node:a,isLast:u})=>[r(),!u&&Sr(a,e)?Y:""],"cases"))]):"",Y,"}"];case"SwitchCase":{let a=[];i.test?a.push("case ",r("test"),":"):a.push("default:"),se(i,ue.Dangling)&&a.push(" ",Ve(t,e));let u=i.consequent.filter(p=>p.type!=="EmptyStatement");if(u.length>0){let p=Ol(t,e,r,"consequent");a.push(u.length===1&&u[0].type==="BlockStatement"?[" ",p]:G([Y,p]))}return a}case"DebuggerStatement":return["debugger",e.semi?";":""];case"ClassDeclaration":case"ClassExpression":return dc(t,e,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return $D(t,e,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return jD(t,e,r);case"TemplateElement":return Rs(i.value.raw);case"TemplateLiteral":return Gg(t,e,r);case"TaggedTemplateExpression":return Jk(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(Hp(t))return";";default:throw new qi(i,"ESTree")}}function KD(t){return[t("elementType"),"[]"]}var EB=Ae(["SatisfiesExpression","TSSatisfiesExpression"]);function GD(t,e,r){let{parent:s,node:i,key:a}=t,u=i.type==="AsConstExpression"?"const":r("typeAnnotation"),p=[r("expression")," ",EB(i)?"satisfies":"as"," ",u];return a==="callee"&&_e(s)||a==="object"&&ze(s)?U([G([K,...p]),K]):p}function AB(t,e,r){let{node:s}=t,i=[Rt(t),"component"];s.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let a=CB(t,e,r);return s.rendersType?i.push(U([a," ",r("rendersType")])):i.push(U([a])),s.body&&i.push(" ",r("body")),e.semi&&s.type==="DeclareComponent"&&i.push(";"),i}function CB(t,e,r){let{node:s}=t,i=s.params;if(s.rest&&(i=[...i,s.rest]),i.length===0)return["(",Ve(t,e,{filter:u=>nr(e.originalText,ve(u))===")"}),")"];let a=[];return bB(t,(u,p)=>{let h=p===i.length-1;h&&s.rest&&a.push("..."),a.push(r()),!h&&(a.push(","),Sr(i[p],e)?a.push(Y,Y):a.push(ne))}),["(",G([K,...a]),xe(br(e,"all")&&!TB(s,i)?",":""),K,")"]}function TB(t,e){return t.rest||$e(0,e,-1)?.type==="RestElement"}function bB(t,e){let{node:r}=t,s=0,i=a=>e(a,s++);t.each(i,"params"),r.rest&&t.call(i,"rest")}function SB(t,e,r){let{node:s}=t;return s.shorthand?r("local"):[r("name")," as ",r("local")]}function PB(t,e,r){let{node:s}=t,i=[];return s.name&&i.push(r("name"),s.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function YD(t,e,r){return fc(t,e,r)}function vB(t,e,r){let{node:s}=t;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",YD(t,e,r)]}function QD(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 ZD(t,e){let{node:r}=t;return[Rt(t),r.const?"const ":"","enum ",e("id")," ",e("body")]}function ex(t,e,r){let{node:s}=t,i=[No(t)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&i.push("new ");let a=ei(t,e,r,!1,!0),u=[];return s.type==="FunctionTypeAnnotation"?u.push(wB(t)?" => ":": ",r("returnType")):u.push(pt(t,r,"returnType")),Ui(s,u)&&(a=U(a)),i.push(a,u),[U(i),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?Lr(t,e):""]}function wB(t){let{node:e,parent:r}=t;return e.type==="FunctionTypeAnnotation"&&(xg(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&wo(r,e)||r.type==="ObjectTypeCallProperty"||t.getParentNode(2)?.type==="DeclareFunction"))}function FB(t,e,r){let{node:s}=t,i=["hook"];s.id&&i.push(" ",r("id"));let a=ei(t,e,r,!1,!0),u=Lo(t,r),p=Ui(s,u);return i.push(U([p?U(a):a,u]),s.body?" ":"",r("body")),i}function kB(t,e,r){let{node:s}=t,i=[Rt(t),"hook"];return s.id&&i.push(" ",r("id")),e.semi&&i.push(";"),i}function If(t){let{node:e}=t;return e.type==="HookTypeAnnotation"&&t.getParentNode(2)?.type==="DeclareHook"}function IB(t,e,r){let{node:s}=t,i=ei(t,e,r,!1,!0),a=[If(t)?": ":" => ",r("returnType")];return U([If(t)?"":"hook ",Ui(s,a)?U(i):i,a])}function tx(t,e,r){return[r("objectType"),At(t),"[",r("indexType"),"]"]}function rx(t,e,r){return["infer ",r("typeParameter")]}function sx(t,e,r){let s=!1;return U(t.map(({isFirst:i,previous:a,node:u,index:p})=>{let h=r();if(i)return h;let m=fs(u),f=fs(a);return f&&m?[" & ",s?G(h):h]:!f&&!m||sr(e.originalText,u)?e.experimentalOperatorPosition==="start"?G([ne,"& ",h]):G([" &",ne,h]):(p>1&&(s=!0),[" & ",p>1?G(h):h])},"types"))}function NB(t){switch(t){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function BB(t,e,r){let{node:s}=t;return[U([s.variance?r("variance"):"","[",G([r("keyTparam")," in ",r("sourceType")]),"]",NB(s.optional),": ",r("propType")]),Lr(t,e)]}function Nf(t,e){return t==="+"||t==="-"?t+e:e}function LB(t,e,r){let{node:s}=t,i=!1;if(e.objectWrap==="preserve"){let a=ke(s),u=Oo(e,a+1,ke(s.key)),p=a+1+u.search(/\S/u);jt(e.originalText,a,p)&&(i=!0)}return U(["{",G([e.bracketSpacing?ne:K,se(s,ue.Dangling)?U([Ve(t,e),Y]):"",U([s.readonly?[Nf(s.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),s.nameType?[" as ",r("nameType")]:"","]",s.optional?Nf(s.optional,"?"):"",s.typeAnnotation?": ":"",r("typeAnnotation")]),e.semi?xe(";"):""]),e.bracketSpacing?ne:K,"}"],{shouldBreak:i})}function OB(t,e,r){let{node:s}=t;return[U(["match (",G([K,r("argument")]),K,")"])," {",s.cases.length>0?G([Y,Be(Y,t.map(({node:i,isLast:a})=>[r(),!a&&Sr(i,e)?Y:""],"cases"))]):"",Y,"}"]}function _B(t,e,r){let{node:s}=t,i=se(s,ue.Dangling)?[" ",Ve(t,e)]:[],a=s.type==="MatchStatementCase"?[" ",r("body")]:G([ne,r("body"),","]);return[r("pattern"),s.guard?U([G([ne,"if (",r("guard"),")"])]):"",U([" =>",i,a])]}function MB(t,e,r){let{node:s}=t;switch(s.type){case"MatchOrPattern":return RB(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")]:["[",G([K,r("property")]),K,"]"];return U([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")),U(["{",G([K,Be([",",ne],i)]),s.rest?"":xe(","),K,"}"])}case"MatchArrayPattern":{let i=t.map(r,"elements");return s.rest&&i.push(r("rest")),U(["[",G([K,Be([",",ne],i)]),s.rest?"":xe(","),K,"]"])}case"MatchObjectPatternProperty":return s.shorthand?r("pattern"):U([r("key"),":",G([ne,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return s.argument&&i.push(r("argument")),i}}}var ix=Ae(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function $B(t){let{patterns:e}=t;if(e.some(s=>se(s)))return!1;let r=e.find(s=>s.type==="MatchObjectPattern");return r?e.every(s=>s===r||ix(s)):!1}function jB(t){return ix(t)||t.type==="MatchObjectPattern"?!0:t.type==="MatchOrPattern"?$B(t):!1}function RB(t,e,r){let{node:s}=t,{parent:i}=t,a=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!sr(e.originalText,s),u=jB(s),p=t.map(()=>{let m=r();return u||(m=ar(2,m)),Kt(t,m,e)},"patterns");if(u)return Be(" | ",p);let h=[xe(["| "]),Be([ne,"| "],p)];return Cs(t,e)?U([G([xe([K]),h]),K]):i.type==="MatchArrayPattern"&&i.elements.length>1?U([G([xe(["(",K]),h]),K,xe(")")]):U(a?G(h):h)}function UB(t,e,r){let{node:s}=t,i=[Rt(t),"opaque type ",r("id"),r("typeParameters")];if(s.supertype&&i.push(": ",r("supertype")),s.lowerBound||s.upperBound){let a=[];s.lowerBound&&a.push(G([ne,"super ",r("lowerBound")])),s.upperBound&&a.push(G([ne,"extends ",r("upperBound")])),i.push(U(a))}return s.impltype&&i.push(" = ",r("impltype")),i.push(e.semi?";":""),i}function nx(t,e,r){let{node:s}=t;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[r("label"),": "]:[],r("typeAnnotation")]}function ax(t,e,r){let{node:s}=t;return[s.variance?r("variance"):"",r("label"),s.optional?"?":"",": ",r("elementType")]}function ox(t,e,r){let{node:s}=t,i=[Rt(t),"type ",r("id"),r("typeParameters")],a=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[aa(t,e,r,i," =",a),e.semi?";":""]}function qB(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 Ln(t,e,r,s){let{node:i}=t;if(!i[s])return"";if(!Array.isArray(i[s]))return r(s);let a=Fo(t.grandparent),u=t.match(h=>!(h[s].length===1&&fs(h[s][0])),void 0,(h,m)=>m==="typeAnnotation",h=>h.type==="Identifier",DD);if(i[s].length===0||!u&&(a||i[s].length===1&&(i[s][0].type==="NullableTypeAnnotation"||pI(i[s][0]))))return["<",Be(", ",t.map(r,s)),VB(t,e),">"];let p=i.type==="TSTypeParameterInstantiation"?"":qB(t,e,s)?",":br(e)?xe(","):"";return U(["<",G([K,Be([",",ne],t.map(r,s))]),p,K,">"])}function VB(t,e){let{node:r}=t;if(!se(r,ue.Dangling))return"";let s=!se(r,ue.Line),i=Ve(t,e,{indent:!s});return s?i:[i,Y]}function ux(t,e,r){let{node:s}=t,i=[s.const?"const ":""],a=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(a),s.bound&&(s.usesExtendsBound&&i.push(" extends "),i.push(pt(t,r,"bound"))),s.constraint){let u=Symbol("constraint");i.push(" extends",U(G(ne),{id:u}),Ar,zn(r("constraint"),{groupId:u}))}if(s.default){let u=Symbol("default");i.push(" =",U(G(ne),{id:u}),Ar,zn(r("default"),{groupId:u}))}return U(i)}function lx(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 ",pt(t,e)]:""]}function px({node:t},e){let r=t.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",e(r),e("typeArguments")]}function zB(t,e,r){let{node:s}=t;if(fg(s))return s.type.slice(0,-14).toLowerCase();switch(s.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return AB(t,e,r);case"ComponentParameter":return SB(t,e,r);case"ComponentTypeParameter":return PB(t,e,r);case"HookDeclaration":return FB(t,e,r);case"DeclareHook":return kB(t,e,r);case"HookTypeAnnotation":return IB(t,e,r);case"DeclareFunction":return[Rt(t),"function ",r("id"),r("predicate"),e.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",pt(t,r),e.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Rt(t),s.kind??"var"," ",r("id"),e.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return VD(t,e,r);case"DeclareOpaqueType":case"OpaqueType":return UB(t,e,r);case"DeclareTypeAlias":case"TypeAlias":return ox(t,e,r);case"IntersectionTypeAnnotation":return sx(t,e,r);case"UnionTypeAnnotation":return oD(t,e,r);case"ConditionalTypeAnnotation":return yc(t,e,r);case"InferTypeAnnotation":return rx(t,e,r);case"FunctionTypeAnnotation":return ex(t,e,r);case"TupleTypeAnnotation":return uc(t,e,r);case"TupleTypeLabeledElement":return ax(t,e,r);case"TupleTypeSpreadElement":return nx(t,e,r);case"GenericTypeAnnotation":return[r("id"),Ln(t,e,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return tx(t,e,r);case"TypeAnnotation":return pD(t,e,r);case"TypeParameter":return ux(t,e,r);case"TypeofTypeAnnotation":return px(t,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return KD(r);case"DeclareEnum":case"EnumDeclaration":return ZD(t,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return vB(t,e,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return QD(t,r);case"FunctionTypeParam":{let i=s.name?r("name"):t.parent.this===s?"this":"";return[i,At(t),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return dc(t,e,r);case"ObjectTypeAnnotation":return hc(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"),Lr(t,e)];case"ObjectTypeMappedTypeProperty":return BB(t,e,r);case"ObjectTypeIndexer":return[s.static?"static ":"",s.variance?r("variance"):"","[",r("id"),s.id?": ":"",r("key"),"]: ",r("value"),Lr(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"):"",oa(t,e,r),At(t),sa(s)?"":": ",r("value"),Lr(t,e)]}case"ObjectTypeInternalSlot":return[s.static?"static ":"","[[",r("id"),"]]",At(t),s.method?"":": ",r("value"),Lr(t,e)];case"ObjectTypeSpreadProperty":return Ml(t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(s.value);case"StringLiteralTypeAnnotation":return Rs(Ii(Ft(s),e));case"NumberLiteralTypeAnnotation":return Li(Ft(s));case"BigIntLiteralTypeAnnotation":return _l(Ft(s));case"TypeCastExpression":return["(",r("expression"),pt(t,r),")"];case"TypePredicate":return lx(t,r);case"TypeOperator":return[s.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Ln(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 GD(t,e,r);case"MatchExpression":case"MatchStatement":return OB(t,e,r);case"MatchExpressionCase":case"MatchStatementCase":return _B(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 MB(t,e,r)}}function HB(t,e,r){let{node:s}=t,i=s.parameters.length>1?xe(br(e)?",":""):"",a=U([G([K,Be([", ",K],t.map(r,"parameters"))]),i,K]);return[t.key==="body"&&t.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?a:"","]",pt(t,r),Lr(t,e)]}function Bf(t,e,r){let{node:s}=t;return[s.postfix?"":r,pt(t,e),s.postfix?r:""]}function WB(t,e,r){let{node:s}=t,i=[],a=s.kind&&s.kind!=="method"?`${s.kind} `:"";i.push(Bo(s),a,s.computed?"[":"",r("key"),s.computed?"]":"",At(t));let u=ei(t,e,r,!1,!0),p=pt(t,r,"returnType"),h=Ui(s,p);return i.push(h?U(u):u),s.returnType&&i.push(U(p)),[U(i),Lr(t,e)]}function JB(t,e,r){let{node:s}=t;return[Rt(t),s.kind==="global"?"":`${s.kind} `,r("id"),s.body?[" ",U(r("body"))]:e.semi?";":""]}function XB(t,e,r){let{node:s}=t,i=!(ht(s.expression)||ir(s.expression)),a=U(["<",G([K,r("typeAnnotation")]),K,">"]),u=[xe("("),G([K,r("expression")]),K,xe(")")];return i?_s([[a,r("expression")],[a,U(u,{shouldBreak:!0})],[a,r("expression")]]):U([a,r("expression")])}function KB(t,e,r){let{node:s}=t;if(s.type.startsWith("TS")){if(mg(s))return s.type.slice(2,-7).toLowerCase();switch(s.type){case"TSThisType":return"this";case"TSTypeAssertion":return XB(t,e,r);case"TSDeclareFunction":return AD(t,e,r);case"TSExportAssignment":return["export = ",r("expression"),e.semi?";":""];case"TSModuleBlock":return ND(t,e,r);case"TSInterfaceBody":case"TSTypeLiteral":return hc(t,e,r);case"TSTypeAliasDeclaration":return ox(t,e,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return $D(t,e,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return jD(t,e,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Gg(t,e,r);case"TSNamedTupleMember":return ax(t,e,r);case"TSRestType":return nx(t,e,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return dc(t,e,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Ln(t,e,r,"params");case"TSTypeParameter":return ux(t,e,r);case"TSAsExpression":case"TSSatisfiesExpression":return GD(t,e,r);case"TSArrayType":return KD(r);case"TSPropertySignature":return[s.readonly?"readonly ":"",oa(t,e,r),At(t),pt(t,r),Lr(t,e)];case"TSParameterProperty":return[Bo(s),s.static?"static ":"",s.override?"override ":"",s.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return px(t,r);case"TSIndexSignature":return HB(t,e,r);case"TSTypePredicate":return lx(t,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[yo(t,e,r),s.qualifier?[".",r("qualifier")]:"",Ln(t,e,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return tx(t,e,r);case"TSTypeOperator":return[s.operator," ",r("typeAnnotation")];case"TSMappedType":return LB(t,e,r);case"TSMethodSignature":return WB(t,e,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),e.semi?";":""];case"TSEnumDeclaration":return ZD(t,r);case"TSEnumBody":return YD(t,e,r);case"TSEnumMember":return QD(t,r);case"TSImportEqualsDeclaration":return["import ",zD(s,!1),r("id")," = ",r("moduleReference"),e.semi?";":""];case"TSExternalModuleReference":return yo(t,e,r);case"TSModuleDeclaration":return JB(t,e,r);case"TSConditionalType":return yc(t,e,r);case"TSInferType":return rx(t,e,r);case"TSIntersectionType":return sx(t,e,r);case"TSUnionType":return oD(t,e,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ex(t,e,r);case"TSTupleType":return uc(t,e,r);case"TSTypeReference":return[r("typeName"),Ln(t,e,r,"typeArguments")];case"TSTypeAnnotation":return pD(t,e,r);case"TSEmptyBodyFunctionExpression":return lc(t,e,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Bf(t,r,"?");case"TSJSDocNonNullableType":return Bf(t,r,"!");default:throw new qi(s,"TypeScript")}}}function GB(t,e,r,s){for(let i of[DN,dN,zB,KB,xB]){let a=i(t,e,r,s);if(a!==void 0)return a}}var YB=Ae(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function QB(t,e,r,s){t.isRoot&&e.__onHtmlBindingRoot?.(t.node,e);let{node:i}=t,a=cc(t)?e.originalText.slice(ke(i),ve(i)):GB(t,e,r,s);if(!a)return"";if(YB(i))return a;let u=He(i.decorators),p=TN(t,e,r),h=i.type==="ClassExpression";if(u&&!h)return vl(a,d=>U([p,d]));let m=Cs(t,e),f=JI(t,e);return!p&&!m&&!f?a:vl(a,d=>[f?";":"",m?"(":"",m&&h&&u?[G([ne,p,d]),ne]:[p,d],m?")":""])}var Lf=QB,ZB={experimental_avoidAstMutation:!0},e8=[{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}],cx={};$p(cx,{getVisitorKeys:()=>s8,massageAstNode:()=>hx,print:()=>i8});var hi=[[]],t8={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:hi[0],BooleanLiteral:hi[0],StringLiteral:hi[0],NumericLiteral:hi[0],Identifier:hi[0],TemplateLiteral:["quasis"],TemplateElement:hi[0]},r8=hg(t8),s8=r8;function i8(t,e,r){let{node:s}=t;switch(s.type){case"JsonRoot":return[r("node"),Y];case"ArrayExpression":{if(s.elements.length===0)return"[]";let i=t.map(()=>t.node===null?"null":r(),"elements");return["[",G([Y,Be([",",Y],i)]),Y,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",G([Y,Be([",",Y],t.map(r,"properties"))]),Y,"}"];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 Of(t)?JSON.stringify(String(s.value)):JSON.stringify(s.value);case"Identifier":return Of(t)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new qi(s,"JSON")}}function Of(t){return t.key==="key"&&t.parent.type==="ObjectProperty"}var n8=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function hx(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}}hx.ignoredProperties=n8;var pn={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."}},is="JavaScript",a8={arrowParens:{category:is,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:pn.bracketSameLine,objectWrap:pn.objectWrap,bracketSpacing:pn.bracketSpacing,jsxBracketSameLine:{category:is,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:is,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:is,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:is,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:pn.singleQuote,jsxSingleQuote:{category:is,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:is,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:is,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:pn.singleAttributePerLine},dx=a8,fx={estree:ag,"estree-json":cx},mx=[...ow,...e8];const wM=Object.freeze(Object.defineProperty({__proto__:null,default:ng,languages:mx,options:dx,printers:fx},Symbol.toStringTag,{value:"Module"}));var yx=Object.defineProperty,gx=t=>{throw TypeError(t)},o8=(t,e,r)=>e in t?yx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Dx=(t,e)=>{for(var r in e)yx(t,r,{get:e[r],enumerable:!0})},_f=(t,e,r)=>o8(t,typeof e!="symbol"?e+"":e,r),u8=(t,e,r)=>e.has(t)||gx("Cannot "+r),Ra=(t,e,r)=>(u8(t,e,"read from private field"),r?r.call(t):e.get(t)),l8=(t,e,r)=>e.has(t)?gx("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),xx={};Dx(xx,{languages:()=>p1,options:()=>c1,parsers:()=>Lc,printers:()=>y1});var gc=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),p8=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},c8=gc("replaceAll",function(){if(typeof this=="string")return p8}),Ct=c8;function h8(t){return this[t<0?this.length+t:t]}var d8=gc("at",function(){if(Array.isArray(this)||typeof this=="string")return h8}),Vi=d8,f8=()=>{},m8=f8,Ex="string",Ax="array",Cx="cursor",Dc="indent",xc="align",Tx="trim",Ec="group",Ac="fill",Cc="if-break",Tc="indent-if-break",bx="line-suffix",Sx="line-suffix-boundary",zi="line",Px="label",bc="break-parent",vx=new Set([Cx,Dc,xc,Tx,Ec,Ac,Cc,Tc,bx,Sx,zi,Px,bc]);function y8(t){if(typeof t=="string")return Ex;if(Array.isArray(t))return Ax;if(!t)return;let{type:e}=t;if(vx.has(e))return e}var wx=y8,g8=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function D8(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(wx(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=g8([...vx].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
88
|
+
Expected it to be ${s}.`}var x8=class extends Error{name="InvalidDocError";constructor(e){super(D8(e)),this.doc=e}},E8=x8;function Fx(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(a){if(r.has(a))return r.get(a);let u=i(a);return r.set(a,u),u}function i(a){switch(wx(a)){case Ax:return e(a.map(s));case Ac:return e({...a,parts:a.parts.map(s)});case Cc:return e({...a,breakContents:s(a.breakContents),flatContents:s(a.flatContents)});case Ec:{let{expandedStates:u,contents:p}=a;return u?(u=u.map(s),p=u[0]):p=s(p),e({...a,contents:p,expandedStates:u})}case xc:case Dc:case Tc:case Px:case bx:return e({...a,contents:s(a.contents)});case Ex:case Cx:case Tx:case Sx:case zi:case bc:return e(a);default:throw new E8(a)}}}function Dr(t,e=v8){return Fx(t,r=>typeof r=="string"?Hi(e,r.split(`
|
|
89
|
+
`)):r)}var A8=m8;function Pr(t){return{type:Dc,contents:t}}function C8(t,e){return{type:xc,contents:e,n:t}}function T8(t){return C8(Number.NEGATIVE_INFINITY,t)}var ua={type:bc};function kx(t){return{type:Ac,parts:t}}function st(t,e={}){return A8(e.expandedStates),{type:Ec,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Jn(t,e="",r={}){return{type:Cc,breakContents:t,flatContents:e,groupId:r.groupId}}function b8(t,e){return{type:Tc,contents:t,groupId:e.groupId,negate:e.negate}}function Hi(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var Qe={type:zi},mt={type:zi,soft:!0},S8={type:zi,hard:!0},Je=[S8,ua],P8={type:zi,hard:!0,literal:!0},v8=[P8,ua],Ix=Object.freeze({character:"'",codePoint:39}),Nx=Object.freeze({character:'"',codePoint:34}),w8=Object.freeze({preferred:Ix,alternate:Nx}),F8=Object.freeze({preferred:Nx,alternate:Ix});function k8(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?w8:F8,{length:i}=t,a=0,u=0;for(let p=0;p<i;p++){let h=t.charCodeAt(p);h===r.codePoint?a++:h===s.codePoint&&u++}return(a>u?s:r).character}var I8=k8;function N8(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var B8=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(Vi(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=`[${N8([...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(`
|
|
90
|
+
`)){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(`
|
|
91
|
+
`).map(r=>r.slice(e)).join(`
|
|
92
|
+
`)}},L8=B8,O8=[" ",`
|
|
93
|
+
`,"\f","\r"," "],_8=new L8(O8),Qt=_8,M8=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},$8=M8,j8=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),R8=new Set(["if","else if","for","switch","case"]);function Bx(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=Ct(0,i,/'|"|'/gu,'"'))}if(t.kind==="docType"&&(e.value=Ct(0,t.value.toLowerCase(),/\s+/gu," ")),t.kind==="angularControlFlowBlock"&&t.parameters?.children)for(let s of e.parameters.children)R8.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)}Bx.ignoredProperties=j8;var U8=Bx;function la(t,e=!0){return[Pr([mt,t]),e?mt:""]}function Wi(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 Zt(t,e,r,s){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;s&&(r.__onHtmlBindingRoot=(u,p)=>{i=s(u,p)});let a=await e(t,r,e);return i?st(a):la(a)}function q8(t,e,r,s){let{node:i}=r,a=s.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(a)?"":Zt(a,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Wi)}var V8=q8,z8=Array.prototype.toReversed??function(){return[...this].reverse()},H8=gc("toReversed",function(){if(Array.isArray(this))return z8}),W8=H8;function J8(){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 X8=J8();function Lx(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 K8(t){return t=Lx(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function G8(t){t=Lx(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 Y8(t){return X8?G8(t):K8(t)}var Q8=t=>String(t).split(/[/\\]/u).pop(),Z8=t=>String(t).startsWith("file:");function e4(t){return Array.isArray(t)&&t.length>0}var Sc=e4;function Mf(t,e){if(!e)return;let r=Q8(e).toLowerCase();return t.find(({filenames:s})=>s?.some(i=>i.toLowerCase()===r))??t.find(({extensions:s})=>s?.some(i=>r.endsWith(i)))}function t4(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 r4=void 0;function $f(t,e){if(e){if(Z8(e))try{e=Y8(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function s4(t,e){let r=W8(0,t.plugins).flatMap(s=>s.languages??[]);return(t4(r,e.language)??Mf(r,e.physicalFile)??Mf(r,e.file)??$f(r,e.physicalFile)??$f(r,e.file)??r4?.(r,e.physicalFile))?.parsers[0]}var Pc=s4,Ox=Symbol.for("PRETTIER_IS_FRONT_MATTER");function i4(t){return!!t?.[Ox]}var _o=i4,cn=3;function n4(t){let e=t.slice(0,cn);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
94
|
+
`,cn);if(r===-1)return;let s=t.slice(cn,r).trim(),i=t.indexOf(`
|
|
95
|
+
${e}`,r),a=s;if(a||(a=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&a==="yaml"&&(i=t.indexOf(`
|
|
96
|
+
...`,r)),i===-1)return;let u=i+1+cn,p=t.charAt(u+1);if(!/\s?/u.test(p))return;let h=t.slice(0,u),m;return{language:a,explicitLanguage:s||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:h.slice(-cn),raw:h,start:{line:1,column:0,index:0},end:{index:h.length,get line(){return m??(m=h.split(`
|
|
97
|
+
`)),m.length},get column(){return m??(m=h.split(`
|
|
98
|
+
`)),Vi(0,m,-1).length}},[Ox]:!0}}function a4(t){let e=n4(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return Ct(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var o4=a4,u4="inline",jf={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"},l4="normal",Rf={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function p4(t){return t.kind==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pa=p4,c4=t=>Ct(0,t,/^[\t\f\r ]*\n/gu,""),_x=t=>c4(Qt.trimEnd(t)),h4=t=>{let e=t,r=Qt.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let s=Qt.getTrailingWhitespace(e);return s&&(e=e.slice(0,-s.length)),{leadingWhitespace:r,trailingWhitespace:s,text:e}};function Mx(t,e){return!!(t.kind==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.kind==="ieConditionalComment"&&!t.complete||Oi(t)&&t.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||wc(t,e)&&!qr(t,e)&&t.kind!=="interpolation")}function Mo(t){return t.kind==="attribute"||!t.parent||!t.prev?!1:d4(t.prev)}function d4(t){return t.kind==="comment"&&t.value.trim()==="prettier-ignore"}function Xt(t){return t.kind==="text"||t.kind==="comment"}function qr(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"||pa(t)&&(t.name==="script"||t.name==="style"))}function f4(t,e){return t.children&&!qr(t,e)}function m4(t,e){return qr(t,e)||t.kind==="interpolation"||$x(t)}function $x(t){return Hx(t).startsWith("pre")}function y4(t,e){let r=s();if(r&&!t.prev&&t.parent?.tagDefinition?.ignoreFirstLf)return t.kind==="interpolation";return r;function s(){return _o(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:Oi(t.parent)?!0:!(!t.prev&&(t.parent.kind==="root"||Oi(t)&&t.parent||qr(t.parent,e)||$o(t.parent,e)||!S4(t.parent.cssDisplay))||t.prev&&!w4(t.prev.cssDisplay))}}function g4(t,e){return _o(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:Oi(t.parent)?!0:!(!t.next&&(t.parent.kind==="root"||Oi(t)&&t.parent||qr(t.parent,e)||$o(t.parent,e)||!P4(t.parent.cssDisplay))||t.next&&!v4(t.next.cssDisplay))}function D4(t,e){return F4(t.cssDisplay)&&!qr(t,e)}function Ua(t){return _o(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function x4(t){return jx(t)||t.kind==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>A4(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.kind!=="text"&&Ux(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||qx(t.lastChild))}function jx(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 el(t){return Vx(t)||t.prev&&E4(t.prev)||Rx(t)}function E4(t){return Vx(t)||t.kind==="element"&&t.fullName==="br"||Rx(t)}function Rx(t){return Ux(t)&&qx(t)}function Ux(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 qx(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 Vx(t){switch(t.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function vc(t){return t.lastChild?vc(t.lastChild):t}function A4(t){return t.children?.some(e=>e.kind!=="text")}function zx(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 C4(t,e){let{name:r,attrMap:s}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(s,"src"))return;let{type:i,lang:a}=t.attrMap;return!a&&!i?"babel":Pc(e,{language:a})??zx(i)}function T4(t,e){if(!wc(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:s,lang:i}=r;return Pc(e,{language:i})??zx(s)}function b4(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?Pc(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function Uf(t,e){return C4(t,e)??b4(t,e)??T4(t,e)}function ca(t){return t==="block"||t==="list-item"||t.startsWith("table")}function S4(t){return!ca(t)&&t!=="inline-block"}function P4(t){return!ca(t)&&t!=="inline-block"}function v4(t){return!ca(t)}function w4(t){return!ca(t)}function F4(t){return!ca(t)&&t!=="inline-block"}function Oi(t){return Hx(t).startsWith("pre")}function k4(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function I4(t,e){if(Ji(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(k4(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||pa(t))&&Object.prototype.hasOwnProperty.call(jf,t.name))return jf[t.name]}return u4}function Hx(t){return t.kind==="element"&&(!t.namespace||pa(t))&&Object.prototype.hasOwnProperty.call(Rf,t.name)?Rf[t.name]:l4}function Wx(t){return Ct(0,Ct(0,t,"'","'"),""",'"')}function Nt(t){return Wx(t.value)}var N4=new Set(["template","style","script"]);function $o(t,e){return Ji(t,e)&&!N4.has(t.fullName)}function Ji(t,e){return e.parser==="vue"&&t.kind==="element"&&t.parent.kind==="root"&&t.fullName.toLowerCase()!=="html"}function wc(t,e){return Ji(t,e)&&($o(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function B4(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function L4(t,e){let r=t.parent;if(!Ji(r,e))return!1;let s=r.fullName,i=t.fullName;return s==="script"&&i==="setup"||s==="style"&&i==="vars"}function Jx(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?Dr(e):Dr(Qt.dedentString(_x(e)),Je):Hi(Qe,Qt.split(e))}function Xx(t,e){return Ji(t,e)&&t.name==="script"}function O4(t){let{valueSpan:e,value:r}=t;return e.end.offset-e.start.offset===r.length+2}function Kx(t,e){if(O4(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 Gx=/\{\{(.+?)\}\}/su,_4=({node:{value:t}})=>Gx.test(t);async function M4(t,e,r){let s=Nt(r.node),i=[];for(let[a,u]of s.split(Gx).entries())if(a%2===0)i.push(Dr(u));else try{i.push(st(["{{",Pr([Qe,await Zt(u,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Qe,"}}"]))}catch{i.push("{{",Dr(u),"}}")}return i}var tl=t=>(e,r,s)=>Zt(Nt(s.node),e,{parser:t},Wi),$4=[{test(t){let e=t.node.fullName;return e.startsWith("(")&&e.endsWith(")")||e.startsWith("on-")},print:tl("__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:tl("__ng_binding")},{test:t=>t.node.fullName.startsWith("*"),print:tl("__ng_directive")},{test:t=>/^i18n(?:-.+)?$/u.test(t.node.fullName),print:j4},{test:_4,print:M4}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="angular"&&t(r),print:e}));function j4(t,e,{node:r}){let s=Nt(r);return la(kx(Jx(r,s.trim())),!s.includes("@@"))}var R4=$4,U4=({node:t},e)=>!e.parentParser&&t.fullName==="class"&&!t.value.includes("{{"),q4=(t,e,r)=>Nt(r.node).trim().split(/\s+/u).join(" "),V4=["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"],z4=new Set(V4),H4=({node:t},e)=>z4.has(t.fullName)&&!e.parentParser&&!t.value.includes("{{"),W4=(t,e,r)=>Zt(Nt(r.node),t,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function J4(t){let e=[];for(let r of t.split(";")){if(r=Qt.trim(r),!r)continue;let[s,...i]=Qt.split(r);e.push({name:s,value:i})}return e}var X4=J4,K4=({node:t},e)=>t.fullName==="allow"&&!e.parentParser&&t.parent.fullName==="iframe"&&!t.value.includes("{{");function G4(t,e,r){let{node:s}=r,i=X4(Nt(s));return i.length===0?[""]:la(i.map(({name:a,value:u},p)=>[[a,...u].join(" "),p===i.length-1?Jn(";"):[";",Qe]]))}function qf(t){return t===" "||t===`
|
|
99
|
+
`||t==="\f"||t==="\r"||t===" "}var Y4=/^[ \t\n\r\u000c]+/,Q4=/^[, \t\n\r\u000c]+/,Z4=/^[^ \t\n\r\u000c]+/,e6=/[,]+$/,Vf=/^\d+$/,t6=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function r6(t){let e=t.length,r,s,i,a,u,p=0,h;function m(g){let E,x=g.exec(t.substring(p));if(x)return[E]=x,p+=E.length,E}let f=[];for(;;){if(m(Q4),p>=e){if(f.length===0)throw new Error("Must contain one or more image candidate strings.");return f}h=p,r=m(Z4),s=[],r.slice(-1)===","?(r=r.replace(e6,""),D()):d()}function d(){for(m(Y4),i="",a="in descriptor";;){if(u=t.charAt(p),a==="in descriptor")if(qf(u))i&&(s.push(i),i="",a="after descriptor");else if(u===","){p+=1,i&&s.push(i),D();return}else if(u==="(")i+=u,a="in parens";else if(u===""){i&&s.push(i),D();return}else i+=u;else if(a==="in parens")if(u===")")i+=u,a="in descriptor";else if(u===""){s.push(i),D();return}else i+=u;else if(a==="after descriptor"&&!qf(u))if(u===""){D();return}else a="in descriptor",p-=1;p+=1}}function D(){let g=!1,E,x,T,b,A={},S,k,v,_,$;for(b=0;b<s.length;b++)S=s[b],k=S[S.length-1],v=S.substring(0,S.length-1),_=parseInt(v,10),$=parseFloat(v),Vf.test(v)&&k==="w"?((E||x)&&(g=!0),_===0?g=!0:E=_):t6.test(v)&&k==="x"?((E||x||T)&&(g=!0),$<0?g=!0:x=$):Vf.test(v)&&k==="h"?((T||x)&&(g=!0),_===0?g=!0:T=_):g=!0;if(!g)A.source={value:r,startOffset:h},E&&(A.width={value:E}),x&&(A.density={value:x}),T&&(A.height={value:T}),f.push(A);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${S}".`)}}var s6=r6,i6=t=>t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"),Yx={width:"w",height:"h",density:"x"},n6=Object.keys(Yx);function a6(t,e,r){let s=Nt(r.node),i=s6(s),a=n6.filter(g=>i.some(E=>Object.prototype.hasOwnProperty.call(E,g)));if(a.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[u]=a,p=Yx[u],h=i.map(g=>g.source.value),m=Math.max(...h.map(g=>g.length)),f=i.map(g=>g[u]?String(g[u].value):""),d=f.map(g=>{let E=g.indexOf(".");return E===-1?g.length:E}),D=Math.max(...d);return la(Hi([",",Qe],h.map((g,E)=>{let x=[g],T=f[E];if(T){let b=m-g.length+1,A=D-d[E],S=" ".repeat(b+A);x.push(Jn(S," "),T+p)}return x})))}var o6=({node:t},e)=>t.fullName==="style"&&!e.parentParser&&!t.value.includes("{{"),u6=async(t,e,r)=>la(await t(Nt(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),rl=new WeakMap;function l6(t,e){let{root:r}=t;return rl.has(r)||rl.set(r,r.children.some(s=>Xx(s,e)&&["ts","typescript"].includes(s.attrMap.lang))),rl.get(r)}var Xi=l6;function p6(t,e,r){let s=Nt(r.node);return Zt(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Wi)}function c6(t,e,r,s){let i=Nt(r.node),a=Xi(r,s)?"babel-ts":"babel";return Zt(`function _(${i}) {}`,t,{parser:a,__isVueBindings:!0})}async function h6(t,e,r,s){let i=Nt(r.node),{left:a,operator:u,right:p}=d6(i),h=Xi(r,s);return[st(await Zt(`function _(${a}) {}`,t,{parser:h?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",u," ",await Zt(p,t,{parser:h?"__ts_expression":"__js_expression"})]}function d6(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,s=/^\(|\)$/gu,i=t.match(e);if(!i)return;let a={for:i[3].trim()};if(!a.for)return;let u=Ct(0,i[1].trim(),s,""),p=u.match(r);p?(a.alias=u.replace(r,""),a.iterator1=p[1].trim(),p[2]&&(a.iterator2=p[2].trim())):a.alias=u;let h=[a.alias,a.iterator1,a.iterator2];if(!h.some((m,f)=>!m&&(f===0||h.slice(f+1).some(Boolean))))return{left:h.filter(Boolean).join(","),operator:i[2],right:a.for}}var f6=[{test:t=>t.node.fullName==="v-for",print:h6},{test:(t,e)=>t.node.fullName==="generic"&&Xx(t.parent,e),print:p6},{test:({node:t},e)=>B4(t)||L4(t,e),print:c6},{test(t){let e=t.node.fullName;return e.startsWith("@")||e.startsWith("v-on:")},print:m6},{test(t){let e=t.node.fullName;return e.startsWith(":")||e.startsWith(".")||e.startsWith("v-bind:")},print:y6},{test:t=>t.node.fullName.startsWith("v-"),print:Qx}].map(({test:t,print:e})=>({test:(r,s)=>s.parser==="vue"&&t(r,s),print:e}));async function m6(t,e,r,s){try{return await Qx(t,e,r,s)}catch(u){if(u.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw u}let i=Nt(r.node),a=Xi(r,s)?"__vue_ts_event_binding":"__vue_event_binding";return Zt(i,t,{parser:a},Wi)}function y6(t,e,r,s){let i=Nt(r.node),a=Xi(r,s)?"__vue_ts_expression":"__vue_expression";return Zt(i,t,{parser:a},Wi)}function Qx(t,e,r,s){let i=Nt(r.node),a=Xi(r,s)?"__ts_expression":"__js_expression";return Zt(i,t,{parser:a},Wi)}var g6=f6,D6=[{test:i6,print:a6},{test:o6,print:u6},{test:H4,print:W4},{test:U4,print:q4},{test:K4,print:G4},...g6,...R4].map(({test:t,print:e})=>({test:t,print:E6(e)}));function x6(t,e){let{node:r}=t,{value:s}=r;if(s)return Kx(r,e)?[r.rawName,"=",s]:D6.find(({test:i})=>i(t,e))?.print}function E6(t){return async(e,r,s,i)=>{let a=await t(e,r,s,i);if(a)return a=Fx(a,u=>typeof u=="string"?Ct(0,u,'"',"""):u),[s.node.rawName,'="',st(a),'"']}}var A6=x6,ha=t=>t.sourceSpan.start.offset,jo=t=>t.sourceSpan.end.offset;function $l(t,e){return[t.isSelfClosing?"":C6(t,e),On(t,e)]}function C6(t,e){return t.lastChild&&Xn(t.lastChild)?"":[T6(t,e),Fc(t,e)]}function On(t,e){return(t.next?qs(t.next):fa(t.parent))?"":[da(t,e),Us(t,e)]}function T6(t,e){return fa(t)?da(t.lastChild,e):""}function Us(t,e){return Xn(t)?Fc(t.parent,e):Ro(t)?kc(t.next,e):""}function Fc(t,e){if(Zx(t,e))return"";switch(t.kind){case"ieConditionalComment":return"<!";case"element":if(t.hasHtmComponentClosingTag)return"<//";default:return`</${t.rawName}`}}function da(t,e){if(Zx(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 Zx(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Mo(t)||Mx(t.parent,e))}function qs(t){return t.prev&&t.prev.kind!=="docType"&&t.kind!=="angularControlFlowBlock"&&!Xt(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function fa(t){return t.lastChild?.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!Xt(vc(t.lastChild))&&!Oi(t)}function Xn(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&Xt(vc(t))}function Ro(t){return t.next&&!Xt(t.next)&&Xt(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function b6(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function Uo(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function S6(t,e,r){let{node:s}=t;if(!Sc(s.attrs))return s.isSelfClosing?" ":"";let i=s.prev?.kind==="comment"&&b6(s.prev.value),a=typeof i=="boolean"?()=>i:Array.isArray(i)?f=>i.includes(f.rawName):()=>!1,u=t.map(({node:f})=>a(f)?Dr(e.originalText.slice(ha(f),jo(f))):r(),"attrs"),p=s.kind==="element"&&s.fullName==="script"&&s.attrs.length===1&&s.attrs[0].fullName==="src"&&s.children.length===0,h=e.singleAttributePerLine&&s.attrs.length>1&&!Ji(s,e)?Je:Qe,m=[Pr([p?" ":Qe,Hi(h,u)])];return s.firstChild&&Uo(s.firstChild)||s.isSelfClosing&&fa(s.parent)||p?m.push(s.isSelfClosing?" ":""):m.push(e.bracketSameLine?s.isSelfClosing?" ":"":s.isSelfClosing?Qe:mt),m}function P6(t){return t.firstChild&&Uo(t.firstChild)?"":Ic(t)}function jl(t,e,r){let{node:s}=t;return[_n(s,e),S6(t,e,r),s.isSelfClosing?"":P6(s)]}function _n(t,e){return t.prev&&Ro(t.prev)?"":[Vs(t,e),kc(t,e)]}function Vs(t,e){return Uo(t)?Ic(t.parent):qs(t)?da(t.prev,e):""}var zf="<!doctype";function kc(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 zf}let r=ha(t);return e.originalText.slice(r,r+zf.length)}case"angularIcuExpression":return"{";case"element":if(t.condition)return`<!--[if ${t.condition}]><!--><${t.rawName}`;default:return`<${t.rawName}`}}function Ic(t){switch(t.kind){case"ieConditionalComment":return"]>";case"element":if(t.condition)return"><!--<![endif]-->";default:return">"}}function v6(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&Uo(t.firstChild)&&(r-=Ic(t).length);let s=t.endSourceSpan.start.offset;return t.lastChild&&Xn(t.lastChild)?s+=Fc(t,e).length:fa(t)&&(s-=da(t.lastChild,e).length),e.originalText.slice(r,s)}var e1=v6,w6=new Set(["if","else if","for","switch","case"]);function F6(t,e){let{node:r}=t;switch(r.kind){case"element":if(qr(r,e)||r.kind==="interpolation")return;if(!r.isSelfClosing&&wc(r,e)){let s=Uf(r,e);return s?async(i,a)=>{let u=e1(r,e),p=/^\s*$/u.test(u),h="";return p||(h=await i(_x(u),{parser:s,__embeddedInHtml:!0}),p=h===""),[Vs(r,e),st(jl(t,e,a)),p?"":Je,h,p?"":Je,$l(r,e),Us(r,e)]}:void 0}break;case"text":if(qr(r.parent,e)){let s=Uf(r.parent,e);if(s)return async i=>{let a=s==="markdown"?Qt.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,u={parser:s,__embeddedInHtml:!0};if(e.parser==="html"&&s==="babel"){let p="script",{attrMap:h}=r.parent;h&&(h.type==="module"||(h.type==="text/babel"||h.type==="text/jsx")&&h["data-type"]==="module")&&(p="module"),u.__babelSourceType=p}return[ua,Vs(r,e),await i(a,u),Us(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=Xi(t,e)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[Pr([Qe,await s(r.value,i)]),r.parent.next&&qs(r.parent.next)?" ":Qe]};break;case"attribute":return A6(t,e);case"angularControlFlowBlockParameters":return w6.has(t.parent.name)?V8:void 0;case"angularLetDeclarationInitializer":return s=>Zt(r.value,s,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var k6=F6,hn=null;function Mn(t){if(hn!==null&&typeof hn.property){let e=hn;return hn=Mn.prototype=null,e}return hn=Mn.prototype=t??Object.create(null),new Mn}var I6=10;for(let t=0;t<=I6;t++)Mn();function N6(t){return Mn(t)}function B6(t,e="type"){N6(t);function r(s){let i=s[e],a=t[i];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return a}return r}var L6=B6,Ot=[["children"],[]],O6={root:Ot[0],element:["attrs","children"],ieConditionalComment:Ot[0],ieConditionalStartComment:Ot[1],ieConditionalEndComment:Ot[1],interpolation:Ot[0],text:Ot[0],docType:Ot[1],comment:Ot[1],attribute:Ot[1],cdata:Ot[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Ot[0],angularControlFlowBlockParameter:Ot[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:Ot[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},_6=L6(O6,"kind"),M6=_6,$6="format",j6=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,R6=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,U6=t=>R6.test(t),q6=t=>j6.test(t),V6=t=>`<!-- @${$6} -->
|
|
100
|
+
|
|
101
|
+
${t}`,z6=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 t1(t){let e=jo(t);return t.kind==="element"&&!t.endSourceSpan&&Sc(t.children)?Math.max(e,t1(Vi(0,t.children,-1))):e}function dn(t,e,r){let s=t.node;if(Mo(s)){let i=t1(s);return[Vs(s,e),Dr(Qt.trimEnd(e.originalText.slice(ha(s)+(s.prev&&Ro(s.prev)?kc(s).length:0),i-(s.next&&qs(s.next)?da(s,e).length:0)))),Us(s,e)]}return r()}function qa(t,e){return Xt(t)&&Xt(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?el(e)?Je:Qe:"":el(e)?Je:mt:Ro(t)&&(Mo(e)||e.firstChild||e.isSelfClosing||e.kind==="element"&&e.attrs.length>0)||t.kind==="element"&&t.isSelfClosing&&qs(e)?"":!e.isLeadingSpaceSensitive||el(e)||qs(e)&&t.lastChild&&Xn(t.lastChild)&&t.lastChild.lastChild&&Xn(t.lastChild.lastChild)?Je:e.hasLeadingSpaces?Qe:mt}function Nc(t,e,r){let{node:s}=t;if(jx(s))return[ua,...t.map(()=>{let a=t.node,u=a.prev?qa(a.prev,a):"";return[u?[u,Ua(a.prev)?Je:""]:"",dn(t,e,r)]},"children")];let i=s.children.map(()=>Symbol(""));return t.map(({node:a,index:u})=>{if(Xt(a)){if(a.prev&&Xt(a.prev)){let g=qa(a.prev,a);if(g)return Ua(a.prev)?[Je,Je,dn(t,e,r)]:[g,dn(t,e,r)]}return dn(t,e,r)}let p=[],h=[],m=[],f=[],d=a.prev?qa(a.prev,a):"",D=a.next?qa(a,a.next):"";return d&&(Ua(a.prev)?p.push(Je,Je):d===Je?p.push(Je):Xt(a.prev)?h.push(d):h.push(Jn("",mt,{groupId:i[u-1]}))),D&&(Ua(a)?Xt(a.next)&&f.push(Je,Je):D===Je?Xt(a.next)&&f.push(Je):m.push(D)),[...p,st([...h,st([dn(t,e,r),...m],{id:i[u]})]),...f]},"children")}function H6(t,e,r){let{node:s}=t,i=[];if(X6(t)&&i.push("} "),i.push("@",s.name),s.parameters&&i.push(" (",st(r("parameters")),")"),!J6(s)){i.push(" {");let a=r1(s);s.children.length>0?(s.firstChild.hasLeadingSpaces=!0,s.lastChild.hasTrailingSpaces=!0,i.push(Pr([Je,Nc(t,e,r)])),a&&i.push(Je,"}")):a&&i.push("}")}return st(i,{shouldBreak:!0})}function r1(t){return!(t.next?.kind==="angularControlFlowBlock"&&z6.get(t.name)?.has(t.next.name))}var W6=t=>t?.kind==="angularControlFlowBlock"&&(t.name==="case"||t.name==="default");function J6(t){return W6(t)&&t.endSourceSpan&&t.endSourceSpan.start.offset===t.endSourceSpan.end.offset}function X6(t){let{previous:e}=t;return e?.kind==="angularControlFlowBlock"&&!Mo(e)&&!r1(e)}function K6(t,e,r){return[Pr([mt,Hi([";",Qe],t.map(r,"children"))]),mt]}function G6(t,e,r){let{node:s}=t;return[_n(s,e),st([s.switchValue.trim(),", ",s.type,s.cases.length>0?[",",Pr([Qe,Hi(Qe,t.map(r,"cases"))])]:"",mt]),On(s,e)]}function Y6(t,e,r){let{node:s}=t;return[s.value," {",st([Pr([mt,t.map(({node:i,isLast:a})=>{let u=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&u.unshift(Qe),i.hasTrailingSpaces&&!a&&u.push(Qe)),u},"expression")]),mt]),"}"]}function Q6(t,e,r){let{node:s}=t;if(Mx(s,e))return[Vs(s,e),st(jl(t,e,r)),Dr(e1(s,e)),...$l(s,e),Us(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,a=Symbol("element-attr-group-id"),u=f=>st([st(jl(t,e,r),{id:a}),f,$l(s,e)]),p=f=>i?b8(f,{groupId:a}):(qr(s,e)||$o(s,e))&&s.parent.kind==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?f:Pr(f),h=()=>i?Jn(mt,"",{groupId:a}):s.firstChild.hasLeadingSpaces&&s.firstChild.isLeadingSpaceSensitive?Qe:s.firstChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive?T8(mt):mt,m=()=>(s.next?qs(s.next):fa(s.parent))?s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?" ":"":i?Jn(mt,"",{groupId:a}):s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?Qe:(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)?"":mt;return s.children.length===0?u(s.hasDanglingSpaces&&s.isDanglingSpaceSensitive?Qe:""):u([x4(s)?ua:"",p([h(),Nc(t,e,r)]),m()])}var Br=(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 qo(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 Hf(t){return qo(t)[1]==="ng-container"}function Wf(t){return qo(t)[1]==="ng-content"}function no(t){return t===null?null:qo(t)[0]}function $n(t,e){return t?`:${t}:${e}`:e}var Jf={name:"custom-elements"},Xf={name:"no-errors-schema"},gi=(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})({}),Z6=/-+([a-z0-9])/g;function eL(t){return t.replace(Z6,(...e)=>e[1].toUpperCase())}var ao;function Kf(){return ao||(ao={},fn(gi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),fn(gi.STYLE,["*|style"]),fn(gi.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"]),fn(gi.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),fn(gi.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),ao}function fn(t,e){for(let r of e)ao[r.toLowerCase()]=t}var tL=class{},rL="boolean",sL="number",iL="string",nL="object",aL=["[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","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:|"],s1=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"})),oL=Array.from(s1).reduce((t,[e,r])=>(t.set(e,r),t),new Map),uL=class extends tL{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,aL.forEach(t=>{let e=new Map,r=new Set,[s,i]=t.split("|"),a=i.split(","),[u,p]=s.split("^");u.split(",").forEach(m=>{this._schema.set(m.toLowerCase(),e),this._eventSchema.set(m.toLowerCase(),r)});let h=p&&this._schema.get(p.toLowerCase());if(h){for(let[m,f]of h)e.set(m,f);for(let m of this._eventSchema.get(p.toLowerCase()))r.add(m)}a.forEach(m=>{if(m.length>0)switch(m[0]){case"*":r.add(m.substring(1));break;case"!":e.set(m.substring(1),rL);break;case"#":e.set(m.substring(1),sL);break;case"%":e.set(m.substring(1),nL);break;default:e.set(m,iL)}})})}hasProperty(t,e,r){if(r.some(s=>s.name===Xf.name))return!0;if(t.indexOf("-")>-1){if(Hf(t)||Wf(t))return!1;if(r.some(s=>s.name===Jf.name))return!0}return(this._schema.get(t.toLowerCase())||this._schema.get("unknown")).has(e)}hasElement(t,e){return e.some(r=>r.name===Xf.name)||t.indexOf("-")>-1&&(Hf(t)||Wf(t)||e.some(r=>r.name===Jf.name))?!0:this._schema.has(t.toLowerCase())}securityContext(t,e,r){r&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();let s=Kf()[t+"|"+e];return s||(s=Kf()["*|"+e],s||gi.NONE)}getMappedPropName(t){return s1.get(t)??t}getDefaultComponentElementName(){return"ng-component"}validateProperty(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...
|
|
102
|
+
If '${t}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(t){let e=this._schema.get(t.toLowerCase())||this._schema.get("unknown");return Array.from(e.keys()).map(r=>oL.get(r)??r)}allKnownEventsOfElement(t){return Array.from(this._eventSchema.get(t.toLowerCase())??[])}normalizeAnimationStyleProperty(t){return eL(t)}normalizeAnimationStyleValue(t,e,r){let s="",i=r.toString().trim(),a=null;if(lL(t)&&r!==0&&r!=="0")if(typeof r=="number")s="px";else{let u=r.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&(a=`Please provide a CSS unit value for ${e}:${r}`)}return{error:a,value:i+s}}};function lL(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 Pe=class{constructor({closedByChildren:t,implicitNamespacePrefix:e,contentType:r=Br.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:u=!1,canSelfClose:p=!1}={}){this.closedByChildren={},this.closedByParent=!1,t&&t.length>0&&t.forEach(h=>this.closedByChildren[h]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=e||null,this.contentType=r,this.ignoreFirstLf=a,this.preventNamespaceInheritance=u,this.canSelfClose=p??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}},Gf,mn;function Rl(t){return mn||(Gf=new Pe({canSelfClose:!0}),mn=Object.assign(Object.create(null),{base:new Pe({isVoid:!0}),meta:new Pe({isVoid:!0}),area:new Pe({isVoid:!0}),embed:new Pe({isVoid:!0}),link:new Pe({isVoid:!0}),img:new Pe({isVoid:!0}),input:new Pe({isVoid:!0}),param:new Pe({isVoid:!0}),hr:new Pe({isVoid:!0}),br:new Pe({isVoid:!0}),source:new Pe({isVoid:!0}),track:new Pe({isVoid:!0}),wbr:new Pe({isVoid:!0}),p:new Pe({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 Pe({closedByChildren:["tbody","tfoot"]}),tbody:new Pe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Pe({closedByChildren:["tbody"],closedByParent:!0}),tr:new Pe({closedByChildren:["tr"],closedByParent:!0}),td:new Pe({closedByChildren:["td","th"],closedByParent:!0}),th:new Pe({closedByChildren:["td","th"],closedByParent:!0}),col:new Pe({isVoid:!0}),svg:new Pe({implicitNamespacePrefix:"svg"}),foreignObject:new Pe({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Pe({implicitNamespacePrefix:"math"}),li:new Pe({closedByChildren:["li"],closedByParent:!0}),dt:new Pe({closedByChildren:["dt","dd"]}),dd:new Pe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Pe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Pe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Pe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Pe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Pe({closedByChildren:["optgroup"],closedByParent:!0}),option:new Pe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Pe({ignoreFirstLf:!0}),listing:new Pe({ignoreFirstLf:!0}),style:new Pe({contentType:Br.RAW_TEXT}),script:new Pe({contentType:Br.RAW_TEXT}),title:new Pe({contentType:{default:Br.ESCAPABLE_RAW_TEXT,svg:Br.PARSABLE_DATA}}),textarea:new Pe({contentType:Br.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new uL().allKnownElementNames().forEach(e=>{!mn[e]&&no(e)===null&&(mn[e]=new Pe({canSelfClose:!1}))})),mn[t]??Gf}function go(t){return t>=9&&t<=32||t==160}function Vo(t){return 48<=t&&t<=57}function Kn(t){return t>=97&&t<=122||t>=65&&t<=90}function pL(t){return t>=97&&t<=102||t>=65&&t<=70||Vo(t)}function Do(t){return t===10||t===13}function Yf(t){return 48<=t&&t<=55}function sl(t){return t===39||t===34||t===96}var Ul=class i1{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,a=this.line,u=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==10){a--;let p=r.substring(0,i-1).lastIndexOf(`
|
|
103
|
+
`);u=p>0?i-p:i}else u--;for(;i<s&&e>0;){let p=r.charCodeAt(i);i++,e--,p==10?(a++,u=0):u++}return new i1(this.file,i,a,u)}getContext(e,r){let s=this.file.content,i=this.offset;if(i!=null){i>s.length-1&&(i=s.length-1);let a=i,u=0,p=0;for(;u<e&&i>0&&(i--,u++,!(s[i]==`
|
|
104
|
+
`&&++p==r)););for(u=0,p=0;u<e&&a<s.length-1&&(a++,u++,!(s[a]==`
|
|
105
|
+
`&&++p==r)););return{before:s.substring(i,this.offset),after:s.substring(this.offset,a+1)}}return null}},n1=class{constructor(t,e){this.content=t,this.url=e}},Te=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)}},Qf=(function(t){return t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR",t})({}),Di=class extends Error{constructor(t,e,r=Qf.ERROR,s){super(e),this.span=t,this.msg=e,this.level=r,this.relatedError=s,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let t=this.span.start.getContext(100,3);return t?`${this.msg} ("${t.before}[${Qf[this.level]} ->]${t.after}")`:this.msg}toString(){let t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}},ti=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},cL=class extends ti{constructor(e,r,s,i){super(r,i),this.value=e,this.tokens=s,this.kind="text"}visit(e,r){return e.visitText(this,r)}},hL=class extends ti{constructor(t,e,r,s){super(e,s),this.value=t,this.tokens=r,this.kind="cdata"}visit(t,e){return t.visitCdata(this,e)}},dL=class extends ti{constructor(t,e,r,s,i,a){super(s,a),this.switchValue=t,this.type=e,this.cases=r,this.switchValueSourceSpan=i,this.kind="expansion"}visit(t,e){return t.visitExpansion(this,e)}},fL=class{constructor(t,e,r,s,i){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i,this.kind="expansionCase"}visit(t,e){return t.visitExpansionCase(this,e)}},mL=class extends ti{constructor(t,e,r,s,i,a,u){super(r,u),this.name=t,this.value=e,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.kind="attribute"}visit(t,e){return t.visitAttribute(this,e)}get nameSpan(){return this.keySpan}},ws=class extends ti{constructor(e,r,s,i,a,u,p,h=null,m=null,f,d){super(u,d),this.name=e,this.attrs=r,this.directives=s,this.children=i,this.isSelfClosing=a,this.startSourceSpan=p,this.endSourceSpan=h,this.nameSpan=m,this.isVoid=f,this.kind="element"}visit(e,r){return e.visitElement(this,r)}},yL=class{constructor(t,e){this.value=t,this.sourceSpan=e,this.kind="comment"}visit(t,e){return t.visitComment(this,e)}},gL=class{constructor(t,e){this.value=t,this.sourceSpan=e,this.kind="docType"}visit(t,e){return t.visitDocType(this,e)}},di=class extends ti{constructor(e,r,s,i,a,u,p=null,h){super(i,h),this.name=e,this.parameters=r,this.children=s,this.nameSpan=a,this.startSourceSpan=u,this.endSourceSpan=p,this.kind="block"}visit(e,r){return e.visitBlock(this,r)}},ns=class extends ti{constructor(e,r,s,i,a,u,p,h,m,f=null,d){super(h,d),this.componentName=e,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=a,this.children=u,this.isSelfClosing=p,this.startSourceSpan=m,this.endSourceSpan=f,this.kind="component"}visit(e,r){return e.visitComponent(this,r)}},DL=class{constructor(t,e,r,s,i=null){this.name=t,this.attrs=e,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i,this.kind="directive"}visit(t,e){return t.visitDirective(this,e)}},Zf=class{constructor(t,e){this.expression=t,this.sourceSpan=e,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,e){return t.visitBlockParameter(this,e)}},em=class{constructor(t,e,r,s,i){this.name=t,this.value=e,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,e){return t.visitLetDeclaration(this,e)}};function a1(t,e,r=null){let s=[],i=t.visit?a=>t.visit(a,r)||a.visit(t,r):a=>a.visit(t,r);return e.forEach(a=>{let u=i(a);u&&s.push(u)}),s}var xL=class{constructor(){}visitElement(t,e){this.visitChildren(e,r=>{r(t.attrs),r(t.directives),r(t.children)})}visitAttribute(t,e){}visitText(t,e){}visitCdata(t,e){}visitComment(t,e){}visitDocType(t,e){}visitExpansion(t,e){return this.visitChildren(e,r=>{r(t.cases)})}visitExpansionCase(t,e){}visitBlock(t,e){this.visitChildren(e,r=>{r(t.parameters),r(t.children)})}visitBlockParameter(t,e){}visitLetDeclaration(t,e){}visitComponent(t,e){this.visitChildren(e,r=>{r(t.attrs),r(t.children)})}visitDirective(t,e){this.visitChildren(e,r=>{r(t.attrs)})}visitChildren(t,e){let r=[],s=this;function i(a){a&&r.push(a1(s,a,t))}return e(i),Array.prototype.concat.apply([],r)}},Gn={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:""},EL="";Gn.ngsp=EL;var z=(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})({}),AL=class{constructor(t,e,r){this.tokens=t,this.errors=e,this.nonNormalizedIcuExpressions=r}};function CL(t,e,r,s={}){let i=new PL(new n1(t,e),r,s);return i.tokenize(),new AL(BL(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var TL=/\r\n?/g;function Fs(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function tm(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function bL(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var ql=(function(t){return t.HEX="hexadecimal",t.DEC="decimal",t})(ql||{}),SL=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],yn={start:"{{",end:"}}"},PL=class{constructor(e,r,s){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(a=>a.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 LL(e,i):new o1(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(a){this.handleError(a)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(TL,`
|
|
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(z.TEXT,z.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(z.EOF),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>go(s)?!e:NL(s)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(z.BLOCK_OPEN_START,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ue),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Ue);else{r.type=z.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(z.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(r.parts[0]==="case"||r.parts[0]==="default")?(this._beginToken(z.BLOCK_OPEN_END),this._endToken([]),this._beginToken(z.BLOCK_CLOSE),this._endToken([])):r.type=z.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(z.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(sm);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(z.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&&sl(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(sm)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(z.LET_START,e),go(this._cursor.peek()))this._attemptCharCodeUntilFn(Ue);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=z.INCOMPLETE_LET;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ue),!this._attemptCharCode(61)){r.type=z.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(s=>Ue(s)&&!Do(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(z.LET_END),this._endToken([]),this._cursor.advance()):(r.type=z.INCOMPLETE_LET,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(s=>Kn(s)||s===36||s===95||r&&Vo(s)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(z.LET_VALUE,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;sl(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(kL(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 Di(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 Di(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 Di(r,e);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(e){if(e instanceof Bc&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Di)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return IL(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Fs(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(Fs(this._cursor.peek()),this._cursor.getSpan(r))}_requireStrCaseInsensitive(e){let r=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Fs(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(Fs(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&&SL.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(z.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(wL),this._cursor.peek()!=59){this._cursor.advance();let u=s?ql.HEX:ql.DEC;throw this._createError(bL(u,this._cursor.getChars(r)),this._cursor.getSpan())}let a=this._cursor.getChars(i);this._cursor.advance();try{let u=parseInt(a,s?16:10);this._endToken([String.fromCodePoint(u),this._cursor.getChars(r)])}catch{throw this._createError(tm(this._cursor.getChars(r)),this._cursor.getSpan())}}else{let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(FL),this._cursor.peek()!=59)this._beginToken(e,r),this._cursor=s,this._endToken(["&"]);else{let i=this._cursor.getChars(s);this._cursor.advance();let a=Gn.hasOwnProperty(i)&&Gn[i];if(!a)throw this._createError(tm(i),this._cursor.getSpan(r));this._endToken([a,`&${i};`])}}}_consumeRawText(e,r){this._beginToken(e?z.ESCAPABLE_RAW_TEXT:z.RAW_TEXT);let s=[];for(;;){let i=this._cursor.clone(),a=r();if(this._cursor=i,a)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(z.ESCAPABLE_RAW_TEXT),this._beginToken(z.ESCAPABLE_RAW_TEXT)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(z.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(z.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(z.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(z.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(z.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(z.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let r=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!vL(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 a=this._cursor.getChars(i);return[s,a]}_consumeTagOpen(e){let r,s,i,a,u=[];try{if(this._selectorlessEnabled&&Va(this._cursor.peek()))a=this._consumeComponentOpenStart(e),[i,s,r]=a.parts,s&&(i+=`:${s}`),r&&(i+=`:${r}`),this._attemptCharCodeUntilFn(Ue);else{if(!Kn(this._cursor.peek()))throw this._createError(Fs(this._cursor.peek()),this._cursor.getSpan(e));a=this._consumeTagOpenStart(e),s=a.parts[0],r=i=a.parts[1],this._attemptCharCodeUntilFn(Ue)}for(;!nm(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let h=this._cursor.clone(),m=h.clone();m.advance(),Va(m.peek())&&this._consumeDirective(h,m)}else{let h=this._consumeAttribute();u.push(h)}a.type===z.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(h){if(h instanceof Di){a?a.type=a.type===z.COMPONENT_OPEN_START?z.INCOMPLETE_COMPONENT_OPEN:z.INCOMPLETE_TAG_OPEN:(this._beginToken(z.TEXT,e),this._endToken(["<"]));return}throw h}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===z.TAG_OPEN_END_VOID)return;let p=this._getTagContentType(r,s,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(s,r),p===Br.RAW_TEXT?this._consumeRawTextWithTagClose(s,a,i,!1):p===Br.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,a,i,!0)}_consumeRawTextWithTagClose(e,r,s,i){this._consumeRawText(i,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Ue),!this._attemptStrCaseInsensitive(e&&r.type!==z.COMPONENT_OPEN_START?`${e}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Ue),this._attemptCharCode(62))),this._beginToken(r.type===z.COMPONENT_OPEN_START?z.COMPONENT_CLOSE:z.TAG_CLOSE),this._requireCharCodeUntilFn(a=>a===62,3),this._cursor.advance(),this._endToken(r.parts),this._handleFullNameStackForTagClose(e,s)}_consumeTagOpenStart(e){this._beginToken(z.TAG_OPEN_START,e);let r=this._consumePrefixAndName(ks);return this._endToken(r)}_consumeComponentOpenStart(e){this._beginToken(z.COMPONENT_OPEN_START,e);let r=this._consumeComponentName();return this._endToken(r)}_consumeComponentName(){let e=this._cursor.clone();for(;im(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(ks)),[r,s,i]}_consumeAttribute(){let[e,r]=this._consumeAttributeName(),s;return this._attemptCharCodeUntilFn(Ue),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ue),s=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ue),{prefix:e,name:r,value:s}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Fs(e),this._cursor.getSpan());this._beginToken(z.ATTR_NAME);let r;if(this._openDirectiveCount>0){let i=0;r=a=>{if(this._openDirectiveCount>0){if(a===40)i++;else if(a===41){if(i===0)return!0;i--}}return ks(a)}}else if(e===91){let i=0;r=a=>(a===91?i++:a===93&&i--,i<=0?ks(a):Do(a))}else r=ks;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(z.ATTR_VALUE_TEXT,z.ATTR_VALUE_INTERPOLATION,s,s),this._consumeQuote(r)}else{let r=()=>ks(this._cursor.peek());e=this._consumeWithInterpolation(z.ATTR_VALUE_TEXT,z.ATTR_VALUE_INTERPOLATION,r,r)}return e}_consumeQuote(e){this._beginToken(z.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?z.TAG_OPEN_END_VOID:z.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?z.COMPONENT_OPEN_END_VOID:z.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==62&&!Va(r.peek());)r.advance();if(Va(r.peek())){this._beginToken(z.COMPONENT_CLOSE,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(Ue),this._requireCharCode(62),this._endToken(s);return}}if(this._beginToken(z.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Ue),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Ue),this._requireCharCode(62),this._endToken([]);else{let[r,s]=this._consumePrefixAndName(ks);this._attemptCharCodeUntilFn(Ue),this._requireCharCode(62),this._endToken([r,s]),this._handleFullNameStackForTagClose(r,s)}}_consumeExpansionFormStart(){this._beginToken(z.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(z.EXPANSION_FORM_START),this._beginToken(z.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(Ue),this._beginToken(z.RAW_TEXT);let s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ue)}_consumeExpansionCaseStart(){this._beginToken(z.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ue),this._beginToken(z.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Ue),this._expansionCaseStack.push(z.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(z.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Ue),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(z.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,s,i){this._beginToken(e);let a=[];for(;!s();){let p=this._cursor.clone();this._attemptStr(yn.start)?(this._endToken([this._processCarriageReturns(a.join(""))],p),a.length=0,this._consumeInterpolation(r,p,i),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(e),this._beginToken(e)):a.push(this._readChar())}this._inInterpolation=!1;let u=this._processCarriageReturns(a.join(""));return this._endToken([u]),u}_consumeInterpolation(e,r,s){let i=[];this._beginToken(e,r),i.push(yn.start);let a=this._cursor.clone(),u=null,p=!1;for(;this._cursor.peek()!==0&&(s===null||!s());){let h=this._cursor.clone();if(this._isTagStart()){this._cursor=h,i.push(this._getProcessedChars(a,h)),this._endToken(i);return}if(u===null)if(this._attemptStr(yn.end)){i.push(this._getProcessedChars(a,h)),i.push(yn.end),this._endToken(i);return}else this._attemptStr("//")&&(p=!0);let m=this._cursor.peek();this._cursor.advance(),m===92?this._cursor.advance():m===u?u=null:!p&&u===null&&sl(m)&&(u=m)}i.push(this._getProcessedChars(a,this._cursor)),this._endToken(i)}_consumeDirective(e,r){for(this._requireCharCode(64),this._cursor.advance();im(this._cursor.peek());)this._cursor.advance();this._beginToken(z.DIRECTIVE_NAME,e);let s=this._cursor.getChars(r);if(this._endToken([s]),this._attemptCharCodeUntilFn(Ue),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(z.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ue);!nm(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ue),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Fs(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(z.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ue)}}_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]===z.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===z.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),r=this._attemptStr(yn.start);return this._cursor=e,!r}_handleFullNameStackForTagOpen(e,r){let s=$n(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===s)&&this._fullNameStack.push(s)}_handleFullNameStackForTagClose(e,r){let s=$n(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===s&&this._fullNameStack.pop()}};function Ue(t){return!go(t)||t===0}function ks(t){return go(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function vL(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function wL(t){return t===59||t===0||!pL(t)}function FL(t){return t===59||t===0||!Kn(t)}function kL(t){return t!==125}function IL(t,e){return rm(t)===rm(e)}function rm(t){return t>=97&&t<=122?t-97+65:t}function NL(t){return Kn(t)||Vo(t)||t===95}function sm(t){return t!==59&&Ue(t)}function Va(t){return t===95||t>=65&&t<=90}function im(t){return Kn(t)||Vo(t)||t===95}function nm(t){return t===47||t===62||t===60||t===0}function BL(t){let e=[],r;for(let s=0;s<t.length;s++){let i=t[s];r&&r.type===z.TEXT&&i.type===z.TEXT||r&&r.type===z.ATTR_VALUE_TEXT&&i.type===z.ATTR_VALUE_TEXT?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,e.push(r))}return e}var o1=class Vl{constructor(e,r){if(e instanceof Vl){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 Vl(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 Te(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 Bc('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Do(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 Ul(e.file,e.state.offset,e.state.line,e.state.column)}},LL=class zl extends o1{constructor(e,r){e instanceof zl?(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 zl(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(Yf(e())){let r="",s=0,i=this.clone();for(;Yf(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 Do(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 Bc("Invalid hexadecimal escape sequence",e);return i}},Bc=class extends Error{constructor(e,r){super(e),this.msg=e,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},it=class u1 extends Di{static create(e,r,s){return new u1(e,r,s)}constructor(e,r,s){super(r,s),this.elementName=e}},OL=class{constructor(t,e){this.rootNodes=t,this.errors=e}},_L=class{constructor(t){this.getTagDefinition=t}parse(t,e,r,s=!1,i){let a=g=>(E,...x)=>g(E.toLowerCase(),...x),u=s?this.getTagDefinition:a(this.getTagDefinition),p=g=>u(g).getContentType(),h=s?i:a(i),m=CL(t,e,i?(g,E,x,T)=>{let b=h(g,E,x,T);return b!==void 0?b:p(g)}:p,r),f=r&&r.canSelfClose||!1,d=r&&r.allowHtmComponentClosingTags||!1,D=new ML(m.tokens,u,f,d,s);return D.build(),new OL(D.rootNodes,[...m.errors,...D.errors])}},ML=class l1{constructor(e,r,s,i,a){this.tokens=e,this.tagDefinitionResolver=r,this.canSelfClose=s,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=a,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==z.EOF;)this._peek.type===z.TAG_OPEN_START||this._peek.type===z.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===z.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===z.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===z.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===z.TEXT||this._peek.type===z.RAW_TEXT||this._peek.type===z.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===z.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===z.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===z.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===z.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===z.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===z.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===z.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===z.COMPONENT_OPEN_START||this._peek.type===z.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===z.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof di&&this.errors.push(it.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(z.CDATA_END);this._addToParent(new hL(s,new Te(e.sourceSpan.start,(i||r).sourceSpan.end),[r]))}_consumeComment(e){let r=this._advanceIf(z.RAW_TEXT),s=this._advanceIf(z.COMMENT_END),i=r!=null?r.parts[0].trim():null,a=s==null?e.sourceSpan:new Te(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new yL(i,a))}_consumeDocType(e){let r=this._advanceIf(z.RAW_TEXT),s=this._advanceIf(z.DOC_TYPE_END),i=r!=null?r.parts[0].trim():null,a=new Te(e.sourceSpan.start,(s||r||e).sourceSpan.end);this._addToParent(new gL(i,a))}_consumeExpansion(e){let r=this._advance(),s=this._advance(),i=[];for(;this._peek.type===z.EXPANSION_CASE_VALUE;){let u=this._parseExpansionCase();if(!u)return;i.push(u)}if(this._peek.type!==z.EXPANSION_FORM_END){this.errors.push(it.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let a=new Te(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new dL(r.parts[0],s.parts[0],i,a,r.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==z.EXPANSION_CASE_EXP_START)return this.errors.push(it.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:z.EOF,parts:[],sourceSpan:i.sourceSpan});let a=new l1(s,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(a.build(),a.errors.length>0)return this.errors=this.errors.concat(a.errors),null;let u=new Te(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart),p=new Te(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new fL(e.parts[0],a.rootNodes,u,e.sourceSpan,p)}_collectExpansionExpTokens(e){let r=[],s=[z.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===z.EXPANSION_FORM_START||this._peek.type===z.EXPANSION_CASE_EXP_START)&&s.push(this._peek.type),this._peek.type===z.EXPANSION_CASE_EXP_END)if(am(s,z.EXPANSION_CASE_EXP_START)){if(s.pop(),s.length===0)return r}else return this.errors.push(it.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===z.EXPANSION_FORM_END)if(am(s,z.EXPANSION_FORM_START))s.pop();else return this.errors.push(it.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===z.EOF)return this.errors.push(it.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 a;let u=this._getContainer();u!=null&&u.children.length===0&&!((a=this._getTagDefinition(u))===null||a===void 0)&&a.ignoreFirstLf&&(i=i.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[i]})}for(;this._peek.type===z.INTERPOLATION||this._peek.type===z.TEXT||this._peek.type===z.ENCODED_ENTITY;)e=this._advance(),r.push(e),e.type===z.INTERPOLATION?i+=e.parts.join("").replace(/&([^;]+);/g,om):e.type===z.ENCODED_ENTITY?i+=e.parts[0]:i+=e.parts.join("");if(i.length>0){let u=e.sourceSpan;this._addToParent(new cL(i,new Te(s.start,u.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 a=this._getElementFullName(e,this._getClosestElementLikeParent()),u=this._getTagDefinition(a),p=!1;if(this._peek.type===z.TAG_OPEN_END_VOID){this._advance(),p=!0;let x=this._getTagDefinition(a);this.canSelfClose||x?.canSelfClose||no(a)!==null||x?.isVoid||this.errors.push(it.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===z.TAG_OPEN_END&&(this._advance(),p=!1);let h=this._peek.sourceSpan.fullStart,m=new Te(e.sourceSpan.start,h,e.sourceSpan.fullStart),f=new Te(e.sourceSpan.start,h,e.sourceSpan.fullStart),d=new Te(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),D=new ws(a,s,i,[],p,m,f,void 0,d,u?.isVoid??!1),g=this._getContainer(),E=g!==null&&!!(!((r=this._getTagDefinition(g))===null||r===void 0)&&r.isClosedByChild(D.name));this._pushContainer(D,E),p?this._popContainer(a,ws,m):e.type===z.INCOMPLETE_TAG_OPEN&&(this._popContainer(a,ws,null),this.errors.push(it.create(a,m,`Opening tag "${a}" not terminated.`)))}_consumeComponentStartTag(e){var r;let s=e.parts[0],i=[],a=[];this._consumeAttributesAndDirectives(i,a);let u=this._getClosestElementLikeParent(),p=this._getComponentTagName(e,u),h=this._getComponentFullName(e,u),m=this._peek.type===z.COMPONENT_OPEN_END_VOID;this._advance();let f=this._peek.sourceSpan.fullStart,d=new Te(e.sourceSpan.start,f,e.sourceSpan.fullStart),D=new Te(e.sourceSpan.start,f,e.sourceSpan.fullStart),g=new ns(s,p,h,i,a,[],m,d,D,void 0),E=this._getContainer(),x=E!==null&&g.tagName!==null&&!!(!((r=this._getTagDefinition(E))===null||r===void 0)&&r.isClosedByChild(g.tagName));this._pushContainer(g,x),m?this._popContainer(h,ns,d):e.type===z.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(h,ns,null),this.errors.push(it.create(h,d,`Opening tag "${h}" not terminated.`)))}_consumeAttributesAndDirectives(e,r){for(;this._peek.type===z.ATTR_NAME||this._peek.type===z.DIRECTIVE_NAME;)this._peek.type===z.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,ns,e.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],i;s instanceof ns&&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 a=`Unexpected closing tag "${r}"${i}`;this.errors.push(it.create(r,e.sourceSpan,a))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof ws?this.tagDefinitionResolver(e.name):e instanceof ns&&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(it.create(s,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(s,ws,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(it.create(s,e.sourceSpan,i))}}_popContainer(e,r,s){let i=!1;for(let u=this._containerStack.length-1;u>=0;u--){var a;let p=this._containerStack[u],h=p instanceof ns?p.fullName:p.name;if(no(h)?h===e:(h===e||e===null)&&p instanceof r)return p.endSourceSpan=s,p.sourceSpan.end=s!==null?s.end:p.sourceSpan.end,this._containerStack.splice(u,this._containerStack.length-u),!i;(p instanceof di||!(!((a=this._getTagDefinition(p))===null||a===void 0)&&a.closedByParent))&&(i=!0)}return!1}_consumeAttr(e){let r=$n(e.parts[0],e.parts[1]),s=e.sourceSpan.end,i;this._peek.type===z.ATTR_QUOTE&&(i=this._advance());let a="",u=[],p,h;if(this._peek.type===z.ATTR_VALUE_TEXT)for(p=this._peek.sourceSpan,h=this._peek.sourceSpan.end;this._peek.type===z.ATTR_VALUE_TEXT||this._peek.type===z.ATTR_VALUE_INTERPOLATION||this._peek.type===z.ENCODED_ENTITY;){let f=this._advance();u.push(f),f.type===z.ATTR_VALUE_INTERPOLATION?a+=f.parts.join("").replace(/&([^;]+);/g,om):f.type===z.ENCODED_ENTITY?a+=f.parts[0]:a+=f.parts.join(""),h=s=f.sourceSpan.end}this._peek.type===z.ATTR_QUOTE&&(h=s=this._advance().sourceSpan.end);let m=p&&h&&new Te(i?.sourceSpan.start??p.start,h,i?.sourceSpan.fullStart??p.fullStart);return new mL(r,a,new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,m,u.length>0?u:void 0,void 0)}_consumeDirective(e){let r=[],s=e.sourceSpan.end,i=null;if(this._advance(),this._peek.type===z.DIRECTIVE_OPEN){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===z.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===z.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(it.create(null,e.sourceSpan,"Unterminated directive definition"))}let a=new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),u=new Te(a.start,i===null?e.sourceSpan.end:i.end,a.fullStart);return new DL(e.parts[0],r,u,a,i)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===z.BLOCK_PARAMETER;){let p=this._advance();r.push(new Zf(p.parts[0],p.sourceSpan))}this._peek.type===z.BLOCK_OPEN_END&&this._advance();let s=this._peek.sourceSpan.fullStart,i=new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),a=new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),u=new di(e.parts[0],r,[],i,e.sourceSpan,a);this._pushContainer(u,!1)}_consumeBlockClose(e){this._popContainer(null,di,e.sourceSpan)||this.errors.push(it.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 "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===z.BLOCK_PARAMETER;){let p=this._advance();r.push(new Zf(p.parts[0],p.sourceSpan))}let s=this._peek.sourceSpan.fullStart,i=new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),a=new Te(e.sourceSpan.start,s,e.sourceSpan.fullStart),u=new di(e.parts[0],r,[],i,e.sourceSpan,a);this._pushContainer(u,!1),this._popContainer(null,di,null),this.errors.push(it.create(e.parts[0],i,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],s,i;if(this._peek.type!==z.LET_VALUE){this.errors.push(it.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==z.LET_END){this.errors.push(it.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let a=i.sourceSpan.fullStart,u=new Te(e.sourceSpan.start,a,e.sourceSpan.fullStart),p=e.sourceSpan.toString().lastIndexOf(r),h=new Te(e.sourceSpan.start.moveBy(p),e.sourceSpan.end),m=new em(r,s.parts[0],u,h,s.sourceSpan);this._addToParent(m)}_consumeIncompleteLet(e){let r=e.parts[0]??"",s=r?` "${r}"`:"";if(r.length>0){let i=e.sourceSpan.toString().lastIndexOf(r),a=new Te(e.sourceSpan.start.moveBy(i),e.sourceSpan.end),u=new Te(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),p=new em(r,"",e.sourceSpan,a,u);this._addToParent(p)}this.errors.push(it.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 ws||r instanceof ns)return r}return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r){return $n(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:$n(s,i||"ng-component")}_getPrefix(e,r){var s;let i,a;if(e.type===z.COMPONENT_OPEN_START||e.type===z.INCOMPLETE_COMPONENT_OPEN||e.type===z.COMPONENT_CLOSE?(i=e.parts[1],a=e.parts[2]):(i=e.parts[0],a=e.parts[1]),i=i||((s=this._getTagDefinition(a))===null||s===void 0?void 0:s.implicitNamespacePrefix)||"",!i&&r){let u=r instanceof ws?r.name:r.tagName;if(u!==null){let p=qo(u)[1],h=this._getTagDefinition(p);h!==null&&!h.preventNamespaceInheritance&&(i=no(u))}}return i}};function am(t,e){return t.length>0&&t[t.length-1]===e}function om(t,e){return Gn[e]!==void 0?Gn[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 $L=class extends _L{constructor(){super(Rl)}parse(t,e,r,s=!1,i){return super.parse(t,e,r,s,i)}},il=null,jL=()=>(il||(il=new $L),il);function Hl(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a,tokenizeAngularBlocks:u=!1,tokenizeAngularLetDeclaration:p=!1,enableAngularSelectorlessSyntax:h=!1}=e;return jL().parse(t,"angular-html-parser",{tokenizeExpansionForms:u,canSelfClose:r,allowHtmComponentClosingTags:s,tokenizeBlocks:u,tokenizeLet:p,selectorlessEnabled:h},i,a)}var RL=[qL,VL,HL,JL,XL,YL,KL,GL,QL,WL];function UL(t,e){for(let r of RL)r(t,e);return t}function qL(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 VL(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 a=i.prev,u=i.firstChild;r.removeChild(a),s--;let p=new Te(a.sourceSpan.start,u.sourceSpan.end),h=new Te(p.start,i.sourceSpan.end);i.condition=a.condition,i.sourceSpan=h,i.startSourceSpan=p,i.removeChild(u)}})}function zL(t,e,r){t.walk(s=>{if(s.children)for(let i=0;i<s.children.length;i++){let a=s.children[i];if(a.kind!=="text"&&!e(a))continue;a.kind!=="text"&&(a.kind="text",a.value=r(a));let u=a.prev;!u||u.kind!=="text"||(u.value+=a.value,u.sourceSpan=new Te(u.sourceSpan.start,a.sourceSpan.end),s.removeChild(a),i--)}})}function HL(t){return zL(t,e=>e.kind==="cdata",e=>`<![CDATA[${e.value}]]>`)}function WL(t){let e=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!Qt.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 a=i.prev,u=i.next;a.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+u.value,a.sourceSpan=new Te(a.sourceSpan.start,u.sourceSpan.end),a.isTrailingSpaceSensitive=u.isTrailingSpaceSensitive,a.hasTrailingSpaces=u.hasTrailingSpaces,r.removeChild(i),s--,r.removeChild(u)}})}function JL(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(s=>{if(f4(s,e))for(let i of s.children){if(i.kind!=="text")continue;let a=i.sourceSpan.start,u=null,p=i.value.split(r);for(let h=0;h<p.length;h++,a=u){let m=p[h];if(h%2===0){u=a.moveBy(m.length),m.length>0&&s.insertChildBefore(i,{kind:"text",value:m,sourceSpan:new Te(a,u)});continue}u=a.moveBy(m.length+4),s.insertChildBefore(i,{kind:"interpolation",sourceSpan:new Te(a,u),children:m.length===0?[]:[{kind:"text",value:m,sourceSpan:new Te(a.moveBy(2),u.moveBy(-2))}]})}s.removeChild(i)}})}function XL(t,e){t.walk(r=>{let s=r.$children;if(!s)return;if(s.length===0||s.length===1&&s[0].kind==="text"&&Qt.trim(s[0].value).length===0){r.hasDanglingSpaces=s.length>0,r.$children=[];return}let i=m4(r,e),a=$x(r);if(!i)for(let u=0;u<s.length;u++){let p=s[u];if(p.kind!=="text")continue;let{leadingWhitespace:h,text:m,trailingWhitespace:f}=h4(p.value),d=p.prev,D=p.next;m?(p.value=m,p.sourceSpan=new Te(p.sourceSpan.start.moveBy(h.length),p.sourceSpan.end.moveBy(-f.length)),h&&(d&&(d.hasTrailingSpaces=!0),p.hasLeadingSpaces=!0),f&&(p.hasTrailingSpaces=!0,D&&(D.hasLeadingSpaces=!0))):(r.removeChild(p),u--,(h||f)&&(d&&(d.hasTrailingSpaces=!0),D&&(D.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=i,r.isIndentationSensitive=a})}function KL(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 GL(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 YL(t,e){t.walk(r=>{r.cssDisplay=I4(r,e)})}function QL(t,e){t.walk(r=>{let{children:s}=r;if(s){if(s.length===0){r.isDanglingSpaceSensitive=D4(r,e);return}for(let i of s)i.isLeadingSpaceSensitive=y4(i,e),i.isTrailingSpaceSensitive=g4(i,e);for(let i=0;i<s.length;i++){let a=s[i];a.isLeadingSpaceSensitive=(i===0||a.prev.isTrailingSpaceSensitive)&&a.isLeadingSpaceSensitive,a.isTrailingSpaceSensitive=(i===s.length-1||a.next.isLeadingSpaceSensitive)&&a.isTrailingSpaceSensitive}}})}var ZL=UL;function e9(t,e,r){let{node:s}=t;switch(s.kind){case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(s),[st(Nc(t,e,r)),Je];case"element":case"ieConditionalComment":return Q6(t,e,r);case"angularControlFlowBlock":return H6(t,e,r);case"angularControlFlowBlockParameters":return K6(t,e,r);case"angularControlFlowBlockParameter":return Qt.trim(s.expression);case"angularLetDeclaration":return st(["@let ",st([s.id," =",st(Pr([Qe,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return s.value;case"angularIcuExpression":return G6(t,e,r);case"angularIcuCase":return Y6(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[_n(s),On(s)];case"interpolation":return[_n(s,e),...t.map(r,"children"),On(s,e)];case"text":{if(s.parent.kind==="interpolation"){let p=/\n[^\S\n]*$/u,h=p.test(s.value),m=h?s.value.replace(p,""):s.value;return[Dr(m),h?Je:""]}let i=Vs(s,e),a=Jx(s),u=Us(s,e);return a[0]=[i,a[0]],a.push([a.pop(),u]),kx(a)}case"docType":return[st([_n(s,e)," ",Ct(0,s.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),On(s,e)];case"comment":return[Vs(s,e),Dr(e.originalText.slice(ha(s),jo(s))),Us(s,e)];case"attribute":{if(s.value===null)return s.rawName;let i=Wx(s.value),a=Kx(s,e)?"":I8(i,'"');return[s.rawName,"=",a,Dr(a==='"'?Ct(0,i,'"',"""):Ct(0,i,"'","'")),a]}default:throw new $8(s,"HTML")}}var t9={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:ZL,print:e9,insertPragma:V6,massageAstNode:U8,embed:k6,getVisitorKeys:M6},r9=t9,p1=[{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}],um={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."}},lm="HTML",s9={bracketSameLine:um.bracketSameLine,htmlWhitespaceSensitivity:{category:lm,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:um.singleAttributePerLine,vueIndentScriptAndStyle:{category:lm,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},c1=s9,Lc={};Dx(Lc,{angular:()=>I9,html:()=>w9,lwc:()=>B9,mjml:()=>k9,vue:()=>N9});function i9(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var n9=i9,a9={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function h1(t){return{...a9,...t}}function d1(t){let{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,shouldParseAsRawText:i,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:u}=t;return{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,getTagContentType:i?(...p)=>i(...p)?Br.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:u}}var nl=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"])]]),o9=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"]),za={attrs:!0,children:!0,cases:!0,expression:!0},pm=new Set(["parent"]),xi,Wl,Jl,u9=class Sn{constructor(e={}){l8(this,xi),_f(this,"kind"),_f(this,"parent");for(let r of new Set([...pm,...Object.keys(e)]))this.setProperty(r,e[r]);if(_o(e))for(let r of Object.getOwnPropertySymbols(e))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in za&&(r=r.map(s=>this.createChild(s))),!pm.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let s in za){let i=this[s];if(i){let a=p9(i,u=>u.map(e));r!==i&&(r||(r=new Sn({parent:this.parent})),r.setProperty(s,a))}}if(r)for(let s in this)s in za||(r[s]=this[s]);return e(r||this)}walk(e){for(let r in za){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 Sn?e.clone():new Sn(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 Sn(this)}get $children(){return this[Ra(this,xi,Wl)]}set $children(e){this[Ra(this,xi,Wl)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return Vi(1,this.$children,-1)}get prev(){let e=Ra(this,xi,Jl);return e[e.indexOf(this)-1]}get next(){let e=Ra(this,xi,Jl);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]))}};xi=new WeakSet,Wl=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Jl=function(){return this.parent?.$children??[]};var l9=u9;function p9(t,e){let r=t.map(e);return r.some((s,i)=>s!==t[i])?r:t}var c9=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:d9},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:f9},{regex:/^<!\s*\[endif\]$/u,parse:m9}];function h9(t,e){if(t.value)for(let{regex:r,parse:s}of c9){let i=t.value.match(r);if(i)return s(t,i,e)}return null}function d9(t,e,r){let{openingTagSuffix:s,condition:i,data:a}=e.groups,u=4+s.length,p=t.sourceSpan.start.moveBy(u),h=p.moveBy(a.length),[m,f]=(()=>{try{return[!0,r(a,p).children]}catch{return[!1,[{kind:"text",value:a,sourceSpan:new Te(p,h)}]]}})();return{kind:"ieConditionalComment",complete:m,children:f,condition:Ct(0,i.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new Te(t.sourceSpan.start,p),endSourceSpan:new Te(h,t.sourceSpan.end)}}function f9(t,e){let{condition:r}=e.groups;return{kind:"ieConditionalStartComment",condition:Ct(0,r.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function m9(t){return{kind:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var y9=class extends xL{visitExpansionCase(e,r){r.parseOptions.name==="angular"&&this.visitChildren(r,s=>{s(e.expression)})}visit(e,{parseOptions:r}){A9(e),C9(e,r),b9(e,r),T9(e)}};function g9(t,e,r,s){a1(new y9,t.children,{parseOptions:r}),e&&t.children.unshift(e);let i=new l9(t);return i.walk(a=>{if(a.kind==="comment"){let u=h9(a,s);u&&a.parent.replaceChild(a,u)}D9(a),x9(a),E9(a)}),i}function D9(t){if(t.kind==="block"){if(t.name=Ct(0,t.name.toLowerCase(),/\s+/gu," ").trim(),t.kind="angularControlFlowBlock",!Sc(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.kind="angularControlFlowBlockParameter";t.parameters={kind:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new Te(t.parameters[0].sourceSpan.start,Vi(0,t.parameters,-1).sourceSpan.end)}}}function x9(t){t.kind==="letDeclaration"&&(t.kind="angularLetDeclaration",t.id=t.name,t.init={kind:"angularLetDeclarationInitializer",sourceSpan:new Te(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function E9(t){t.kind==="expansion"&&(t.kind="angularIcuExpression"),t.kind==="expansionCase"&&(t.kind="angularIcuCase")}function cm(t,e){let r=t.toLowerCase();return e(r)?r:t}function hm(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 A9(t){switch(t.kind){case"element":hm(t);for(let e of t.attrs)hm(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 C9(t,e){if(t.kind==="element"){let r=Rl(e.isTagNameCaseSensitive?t.name:t.name.toLowerCase());!t.namespace||t.namespace===r.implicitNamespacePrefix||pa(t)?t.tagDefinition=r:t.tagDefinition=Rl("")}}function T9(t){t.sourceSpan&&t.endSourceSpan&&(t.sourceSpan=new Te(t.sourceSpan.start,t.endSourceSpan.end))}function b9(t,e){if(t.kind==="element"&&(e.normalizeTagName&&(!t.namespace||t.namespace===t.tagDefinition.implicitNamespacePrefix||pa(t))&&(t.name=cm(t.name,r=>o9.has(r))),e.normalizeAttributeName))for(let r of t.attrs)r.namespace||(r.name=cm(r.name,s=>nl.has(t.name)&&(nl.get("*").has(s)||nl.get(t.name).has(s))))}function f1(t,e){let{rootNodes:r,errors:s}=Hl(t,d1(e));return s.length>0&&Xl(s[0]),{parseOptions:e,rootNodes:r}}function S9(t,e){let r=d1(e),{rootNodes:s,errors:i}=Hl(t,r);if(s.some(h=>h.kind==="docType"&&h.value==="html"||h.kind==="element"&&h.name.toLowerCase()==="html"))return f1(t,Oc);let a,u=()=>a??(a=Hl(t,{...r,getTagContentType:void 0})),p=h=>{let{offset:m}=h.startSourceSpan.start;return u().rootNodes.find(f=>f.kind==="element"&&f.startSourceSpan.start.offset===m)??h};for(let[h,m]of s.entries())if(m.kind==="element"){if(m.isVoid)i=u().errors,s[h]=p(m);else if(P9(m)){let{endSourceSpan:f,startSourceSpan:d}=m,D=u().errors.find(g=>g.span.start.offset>d.start.offset&&g.span.start.offset<f.end.offset);D&&Xl(D),s[h]=p(m)}}return i.length>0&&Xl(i[0]),{parseOptions:e,rootNodes:s}}function P9(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 Xl(t){let{msg:e,span:{start:r,end:s}}=t;throw n9(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:s.line+1,column:s.col+1}},cause:t})}function v9(t,e,r,s,i,a){let{offset:u}=s,p=Ct(0,e.slice(0,u),/[^\n]/gu," ")+r,h=m1(p,t,{...i,shouldParseFrontMatter:!1},a);h.sourceSpan=new Te(s,Vi(0,h.children,-1).sourceSpan.end);let m=h.children[0];return m.length===u?h.children.shift():(m.sourceSpan=new Te(m.sourceSpan.start.moveBy(u),m.sourceSpan.end),m.value=m.value.slice(u)),h}function m1(t,e,r,s={}){let{frontMatter:i,content:a}=r.shouldParseFrontMatter?o4(t):{content:t},u=new n1(t,s.filepath),p=new Ul(u,0,0,0),h=p.moveBy(t.length),{parseOptions:m,rootNodes:f}=e(a,r),d={kind:"root",sourceSpan:new Te(p,h),children:f},D;if(i){let[g,E]=[i.start,i.end].map(x=>new Ul(u,x.index,x.line-1,x.column));D={...i,kind:"frontMatter",sourceSpan:new Te(g,E)}}return g9(d,D,m,(g,E)=>v9(e,t,g,E,m,s))}var Oc=h1({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function ma(t){let e=h1(t),r=e.name==="vue"?S9:f1;return{parse:(s,i)=>m1(s,r,e,i),hasPragma:U6,hasIgnorePragma:q6,astFormat:"html",locStart:ha,locEnd:jo}}var w9=ma(Oc),F9=new Set(["mj-style","mj-raw"]),k9=ma({...Oc,name:"mjml",shouldParseAsRawText:t=>F9.has(t)}),I9=ma({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),N9=ma({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,s){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||s.some(({name:i,value:a})=>i==="lang"&&a!=="html"&&a!==""&&a!==void 0))}}),B9=ma({name:"lwc",canSelfClose:!1}),y1={html:r9};const $M=Object.freeze(Object.defineProperty({__proto__:null,default:xx,languages:p1,options:c1,parsers:Lc,printers:y1},Symbol.toStringTag,{value:"Module"}));var L9=Object.create,_c=Object.defineProperty,O9=Object.getOwnPropertyDescriptor,_9=Object.getOwnPropertyNames,M9=Object.getPrototypeOf,$9=Object.prototype.hasOwnProperty,ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),g1=(t,e)=>{for(var r in e)_c(t,r,{get:e[r],enumerable:!0})},j9=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _9(e))!$9.call(t,i)&&i!==r&&_c(t,i,{get:()=>e[i],enumerable:!(s=O9(e,i))||s.enumerable});return t},Ki=(t,e,r)=>(r=t!=null?L9(M9(t)):{},j9(_c(r,"default",{value:t,enumerable:!0}),t)),R9=ee((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}),D1=ee(()=>{}),Mc=ee((t,e)=>{var r=R9(),s=D1(),i=class x1 extends Error{constructor(u,p,h,m,f,d){super(u),this.name="CssSyntaxError",this.reason=u,f&&(this.file=f),m&&(this.source=m),d&&(this.plugin=d),typeof p<"u"&&typeof h<"u"&&(typeof p=="number"?(this.line=p,this.column=h):(this.line=p.line,this.column=p.column,this.endLine=h.line,this.endColumn=h.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,x1)}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(u){if(!this.source)return"";let p=this.source;u==null&&(u=r.isColorSupported);let h=x=>x,m=x=>x,f=x=>x;if(u){let{bold:x,gray:T,red:b}=r.createColors(!0);m=A=>x(b(A)),h=A=>T(A),s&&(f=A=>s(A))}let d=p.split(/\r?\n/),D=Math.max(this.line-3,0),g=Math.min(this.line+2,d.length),E=String(g).length;return d.slice(D,g).map((x,T)=>{let b=D+1+T,A=" "+(" "+b).slice(-E)+" | ";if(b===this.line){if(x.length>160){let k=20,v=Math.max(0,this.column-k),_=Math.max(this.column+k,this.endColumn+k),$=x.slice(v,_),j=h(A.replace(/\d/g," "))+x.slice(0,Math.min(this.column-1,k-1)).replace(/[^\t]/g," ");return m(">")+h(A)+f($)+`
|
|
111
|
+
`+j+m("^")}let S=h(A.replace(/\d/g," "))+x.slice(0,this.column-1).replace(/[^\t]/g," ");return m(">")+h(A)+f(x)+`
|
|
112
|
+
`+S+m("^")}return" "+h(A)+f(x)}).join(`
|
|
113
|
+
`)}toString(){let u=this.showSourceCode();return u&&(u=`
|
|
114
|
+
|
|
115
|
+
`+u+`
|
|
116
|
+
`),this.name+": "+this.message+u}};e.exports=i,i.default=i}),$c=ee((t,e)=>{var r={after:`
|
|
117
|
+
`,beforeClose:`
|
|
118
|
+
`,beforeComment:`
|
|
119
|
+
`,beforeDecl:`
|
|
120
|
+
`,beforeOpen:" ",beforeRule:`
|
|
121
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function s(a){return a[0].toUpperCase()+a.slice(1)}var i=class{constructor(a){this.builder=a}atrule(a,u){let p="@"+a.name,h=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:h&&(p+=" "),a.nodes)this.block(a,p+h);else{let m=(a.raws.between||"")+(u?";":"");this.builder(p+h+m,a)}}beforeAfter(a,u){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):u==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let h=a.parent,m=0;for(;h&&h.type!=="root";)m+=1,h=h.parent;if(p.includes(`
|
|
122
|
+
`)){let f=this.raw(a,null,"indent");if(f.length)for(let d=0;d<m;d++)p+=f}return p}block(a,u){let p=this.raw(a,"between","beforeOpen");this.builder(u+p+"{",a,"start");let h;a.nodes&&a.nodes.length?(this.body(a),h=this.raw(a,"after")):h=this.raw(a,"after","emptyBody"),h&&this.builder(h),this.builder("}",a,"end")}body(a){let u=a.nodes.length-1;for(;u>0&&a.nodes[u].type==="comment";)u-=1;let p=this.raw(a,"semicolon");for(let h=0;h<a.nodes.length;h++){let m=a.nodes[h],f=this.raw(m,"before");f&&this.builder(f),this.stringify(m,u!==h||p)}}comment(a){let u=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+u+a.text+p+"*/",a)}decl(a,u){let p=this.raw(a,"between","colon"),h=a.prop+p+this.rawValue(a,"value");a.important&&(h+=a.raws.important||" !important"),u&&(h+=";"),this.builder(h,a)}document(a){this.body(a)}raw(a,u,p){let h;if(p||(p=u),u&&(h=a.raws[u],typeof h<"u"))return h;let m=a.parent;if(p==="before"&&(!m||m.type==="root"&&m.first===a||m&&m.type==="document"))return"";if(!m)return r[p];let f=a.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[p]<"u")return f.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(a,p);{let d="raw"+s(p);this[d]?h=this[d](f,a):f.walk(D=>{if(h=D.raws[u],typeof h<"u")return!1})}return typeof h>"u"&&(h=r[p]),f.rawCache[p]=h,h}rawBeforeClose(a){let u;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return u=p.raws.after,u.includes(`
|
|
123
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(a,u){let p;return a.walkComments(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(`
|
|
124
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(u,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,u){let p;return a.walkDecls(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(`
|
|
125
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(u,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(a){let u;return a.walk(p=>{if(p.type!=="decl"&&(u=p.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(a){let u;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return u=p.raws.before,u.includes(`
|
|
126
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(a){let u;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return u=p.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(a){let u;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(u=p.raws.after,typeof u<"u"))return!1}),u}rawIndent(a){if(a.raws.indent)return a.raws.indent;let u;return a.walk(p=>{let h=p.parent;if(h&&h!==a&&h.parent&&h.parent===a&&typeof p.raws.before<"u"){let m=p.raws.before.split(`
|
|
127
|
+
`);return u=m[m.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(a){let u;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(u=p.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(a,u){let p=a[u],h=a.raws[u];return h&&h.value===p?h.raw:p}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,u){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,u)}};e.exports=i,i.default=i}),zo=ee((t,e)=>{var r=$c();function s(i,a){new r(a).stringify(i)}e.exports=s,s.default=s}),jc=ee((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")}),Ho=ee((t,e)=>{var r=Mc(),s=$c(),i=zo(),{isClean:a,my:u}=jc();function p(f,d){let D=new f.constructor;for(let g in f){if(!Object.prototype.hasOwnProperty.call(f,g)||g==="proxyCache")continue;let E=f[g],x=typeof E;g==="parent"&&x==="object"?d&&(D[g]=d):g==="source"?D[g]=E:Array.isArray(E)?D[g]=E.map(T=>p(T,D)):(x==="object"&&E!==null&&(E=p(E)),D[g]=E)}return D}function h(f,d){if(d&&typeof d.offset<"u")return d.offset;let D=1,g=1,E=0;for(let x=0;x<f.length;x++){if(g===d.line&&D===d.column){E=x;break}f[x]===`
|
|
128
|
+
`?(D=1,g+=1):D+=1}return E}var m=class{get proxyOf(){return this}constructor(f={}){this.raws={},this[a]=!1,this[u]=!0;for(let d in f)if(d==="nodes"){this.nodes=[];for(let D of f[d])typeof D.clone=="function"?this.append(D.clone()):this.append(D)}else this[d]=f[d]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let d=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let d in f)this[d]=f[d];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let d=p(this);for(let D in f)d[D]=f[D];return d}cloneAfter(f={}){let d=this.clone(f);return this.parent.insertAfter(this,d),d}cloneBefore(f={}){let d=this.clone(f);return this.parent.insertBefore(this,d),d}error(f,d={}){if(this.source){let{end:D,start:g}=this.rangeBy(d);return this.source.input.error(f,{column:g.column,line:g.line},{column:D.column,line:D.line},d)}return new r(f)}getProxyProcessor(){return{get(f,d){return d==="proxyOf"?f:d==="root"?()=>f.root().toProxy():f[d]},set(f,d,D){return f[d]===D||(f[d]=D,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&f.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let f=this;for(;f=f.parent;)f[a]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f={}){let d=this.source.start;if(f.index)d=this.positionInside(f.index);else if(f.word){let D="document"in this.source.input?this.source.input.document:this.source.input.css,g=D.slice(h(D,this.source.start),h(D,this.source.end)).indexOf(f.word);g!==-1&&(d=this.positionInside(g))}return d}positionInside(f){let d=this.source.start.column,D=this.source.start.line,g="document"in this.source.input?this.source.input.document:this.source.input.css,E=h(g,this.source.start),x=E+f;for(let T=E;T<x;T++)g[T]===`
|
|
129
|
+
`?(d=1,D+=1):d+=1;return{column:d,line:D,offset:x}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f={}){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:h(d,this.source.start)},g=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:h(d,this.source.end)+1}:{column:D.column+1,line:D.line,offset:D.offset+1};if(f.word){let E=d.slice(h(d,this.source.start),h(d,this.source.end)).indexOf(f.word);E!==-1&&(D=this.positionInside(E),g=this.positionInside(E+f.word.length))}else f.start?D={column:f.start.column,line:f.start.line,offset:h(d,f.start)}:f.index&&(D=this.positionInside(f.index)),f.end?g={column:f.end.column,line:f.end.line,offset:h(d,f.end)}:typeof f.endIndex=="number"?g=this.positionInside(f.endIndex):f.index&&(g=this.positionInside(f.index+1));return(g.line<D.line||g.line===D.line&&g.column<=D.column)&&(g={column:D.column+1,line:D.line,offset:D.offset+1}),{end:g,start:D}}raw(f,d){return new s().raw(this,f,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let d=this,D=!1;for(let g of f)g===this?D=!0:D?(this.parent.insertAfter(d,g),d=g):this.parent.insertBefore(d,g);D||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,d){let D={},g=d==null;d=d||new Map;let E=0;for(let x in this){if(!Object.prototype.hasOwnProperty.call(this,x)||x==="parent"||x==="proxyCache")continue;let T=this[x];if(Array.isArray(T))D[x]=T.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,d):b);else if(typeof T=="object"&&T.toJSON)D[x]=T.toJSON(null,d);else if(x==="source"){if(T==null)continue;let b=d.get(T.input);b==null&&(b=E,d.set(T.input,E),E++),D[x]={end:T.end,inputId:b,start:T.start}}else D[x]=T}return g&&(D.inputs=[...d.keys()].map(x=>x.toJSON())),D}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let d="";return f(this,D=>{d+=D}),d}warn(f,d,D={}){let g={node:this};for(let E in D)g[E]=D[E];return f.warn(d,g)}};e.exports=m,m.default=m}),ya=ee((t,e)=>{var r=Ho(),s=class extends r{constructor(i){super(i),this.type="comment"}};e.exports=s,s.default=s}),Wo=ee((t,e)=>{var r=Ho(),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}),ri=ee((t,e)=>{var r=ya(),s=Wo(),i=Ho(),{isClean:a,my:u}=jc(),p,h,m,f;function d(E){return E.map(x=>(x.nodes&&(x.nodes=d(x.nodes)),delete x.source,x))}function D(E){if(E[a]=!1,E.proxyOf.nodes)for(let x of E.proxyOf.nodes)D(x)}var g=class E1 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 T of x){let b=this.normalize(T,this.last);for(let A of b)this.proxyOf.nodes.push(A)}return this.markDirty(),this}cleanRaws(x){if(super.cleanRaws(x),this.nodes)for(let T of this.nodes)T.cleanRaws(x)}each(x){if(!this.proxyOf.nodes)return;let T=this.getIterator(),b,A;for(;this.indexes[T]<this.proxyOf.nodes.length&&(b=this.indexes[T],A=x(this.proxyOf.nodes[b],b),A!==!1);)this.indexes[T]+=1;return delete this.indexes[T],A}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,T){return T==="proxyOf"?x:x[T]?T==="each"||typeof T=="string"&&T.startsWith("walk")?(...b)=>x[T](...b.map(A=>typeof A=="function"?(S,k)=>A(S.toProxy(),k):A)):T==="every"||T==="some"?b=>x[T]((A,...S)=>b(A.toProxy(),...S)):T==="root"?()=>x.root().toProxy():T==="nodes"?x.nodes.map(b=>b.toProxy()):T==="first"||T==="last"?x[T].toProxy():x[T]:x[T]},set(x,T,b){return x[T]===b||(x[T]=b,(T==="name"||T==="params"||T==="selector")&&x.markDirty()),!0}}}index(x){return typeof x=="number"?x:(x.proxyOf&&(x=x.proxyOf),this.proxyOf.nodes.indexOf(x))}insertAfter(x,T){let b=this.index(x),A=this.normalize(T,this.proxyOf.nodes[b]).reverse();b=this.index(x);for(let k of A)this.proxyOf.nodes.splice(b+1,0,k);let S;for(let k in this.indexes)S=this.indexes[k],b<S&&(this.indexes[k]=S+A.length);return this.markDirty(),this}insertBefore(x,T){let b=this.index(x),A=b===0?"prepend":!1,S=this.normalize(T,this.proxyOf.nodes[b],A).reverse();b=this.index(x);for(let v of S)this.proxyOf.nodes.splice(b,0,v);let k;for(let v in this.indexes)k=this.indexes[v],b<=k&&(this.indexes[v]=k+S.length);return this.markDirty(),this}normalize(x,T){if(typeof x=="string")x=d(h(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 f(x)];else if(x.name)x=[new p(x)];else if(x.text)x=[new r(x)];else throw new Error("Unknown node type in node creation");return x.map(b=>(b[u]||E1.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[a]&&D(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&T&&typeof T.raws.before<"u"&&(b.raws.before=T.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...x){x=x.reverse();for(let T of x){let b=this.normalize(T,this.first,"prepend").reverse();for(let A of b)this.proxyOf.nodes.unshift(A);for(let A in this.indexes)this.indexes[A]=this.indexes[A]+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 T;for(let b in this.indexes)T=this.indexes[b],T>=x&&(this.indexes[b]=T-1);return this.markDirty(),this}replaceValues(x,T,b){return b||(b=T,T={}),this.walkDecls(A=>{T.props&&!T.props.includes(A.prop)||T.fast&&!A.value.includes(T.fast)||(A.value=A.value.replace(x,b))}),this.markDirty(),this}some(x){return this.nodes.some(x)}walk(x){return this.each((T,b)=>{let A;try{A=x(T,b)}catch(S){throw T.addToError(S)}return A!==!1&&T.walk&&(A=T.walk(x)),A})}walkAtRules(x,T){return T?x instanceof RegExp?this.walk((b,A)=>{if(b.type==="atrule"&&x.test(b.name))return T(b,A)}):this.walk((b,A)=>{if(b.type==="atrule"&&b.name===x)return T(b,A)}):(T=x,this.walk((b,A)=>{if(b.type==="atrule")return T(b,A)}))}walkComments(x){return this.walk((T,b)=>{if(T.type==="comment")return x(T,b)})}walkDecls(x,T){return T?x instanceof RegExp?this.walk((b,A)=>{if(b.type==="decl"&&x.test(b.prop))return T(b,A)}):this.walk((b,A)=>{if(b.type==="decl"&&b.prop===x)return T(b,A)}):(T=x,this.walk((b,A)=>{if(b.type==="decl")return T(b,A)}))}walkRules(x,T){return T?x instanceof RegExp?this.walk((b,A)=>{if(b.type==="rule"&&x.test(b.selector))return T(b,A)}):this.walk((b,A)=>{if(b.type==="rule"&&b.selector===x)return T(b,A)}):(T=x,this.walk((b,A)=>{if(b.type==="rule")return T(b,A)}))}};g.registerParse=E=>{h=E},g.registerRule=E=>{f=E},g.registerAtRule=E=>{p=E},g.registerRoot=E=>{m=E},e.exports=g,g.default=g,g.rebuild=E=>{E.type==="atrule"?Object.setPrototypeOf(E,p.prototype):E.type==="rule"?Object.setPrototypeOf(E,f.prototype):E.type==="decl"?Object.setPrototypeOf(E,s.prototype):E.type==="comment"?Object.setPrototypeOf(E,r.prototype):E.type==="root"&&Object.setPrototypeOf(E,m.prototype),E[u]=!0,E.nodes&&E.nodes.forEach(x=>{g.rebuild(x)})}}),U9=ee((t,e)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(a,u=21)=>(p=u)=>{let h="",m=p|0;for(;m--;)h+=a[Math.random()*a.length|0];return h},i=(a=21)=>{let u="",p=a|0;for(;p--;)u+=r[Math.random()*64|0];return u};e.exports={nanoid:i,customAlphabet:s}}),q9=ee(()=>{}),A1=ee((t,e)=>{e.exports=class{}}),ga=ee((t,e)=>{var{nanoid:r}=U9(),{isAbsolute:s,resolve:i}={},{SourceMapConsumer:a,SourceMapGenerator:u}=q9(),{fileURLToPath:p,pathToFileURL:h}={},m=Mc(),f=A1(),d=D1(),D=Symbol("lineToIndexCache"),g=!!(a&&u),E=!!(i&&s);function x(b){if(b[D])return b[D];let A=b.css.split(`
|
|
130
|
+
`),S=new Array(A.length),k=0;for(let v=0,_=A.length;v<_;v++)S[v]=k,k+=A[v].length+1;return b[D]=S,S}var T=class{get from(){return this.file||this.id}constructor(b,A={}){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,A.document&&(this.document=A.document.toString()),A.from&&(!E||/^\w+:\/\//.test(A.from)||s(A.from)?this.file=A.from:this.file=i(A.from)),E&&g){let S=new f(this.css,A);if(S.text){this.map=S;let k=S.consumer().file;!this.file&&k&&(this.file=this.mapResolve(k))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(b,A,S,k={}){let v,_,$,j,H;if(A&&typeof A=="object"){let W=A,F=S;if(typeof W.offset=="number"){j=W.offset;let R=this.fromOffset(j);A=R.line,S=R.col}else A=W.line,S=W.column,j=this.fromLineAndColumn(A,S);if(typeof F.offset=="number"){$=F.offset;let R=this.fromOffset($);_=R.line,v=R.col}else _=F.line,v=F.column,$=this.fromLineAndColumn(F.line,F.column)}else if(S)j=this.fromLineAndColumn(A,S);else{j=A;let W=this.fromOffset(j);A=W.line,S=W.col}let q=this.origin(A,S,_,v);return q?H=new m(b,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,k.plugin):H=new m(b,_===void 0?A:{column:S,line:A},_===void 0?S:{column:v,line:_},this.css,this.file,k.plugin),H.input={column:S,endColumn:v,endLine:_,endOffset:$,line:A,offset:j,source:this.css},this.file&&(h&&(H.input.url=h(this.file).toString()),H.input.file=this.file),H}fromLineAndColumn(b,A){return x(this)[b-1]+A-1}fromOffset(b){let A=x(this),S=A[A.length-1],k=0;if(b>=S)k=A.length-1;else{let v=A.length-2,_;for(;k<v;)if(_=k+(v-k>>1),b<A[_])v=_-1;else if(b>=A[_+1])k=_+1;else{k=_;break}}return{col:b-A[k]+1,line:k+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:i(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,A,S,k){if(!this.map)return!1;let v=this.map.consumer(),_=v.originalPositionFor({column:A,line:b});if(!_.source)return!1;let $;typeof S=="number"&&($=v.originalPositionFor({column:k,line:S}));let j;s(_.source)?j=h(_.source):j=new URL(_.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let H={column:_.column,endColumn:$&&$.column,endLine:$&&$.line,line:_.line,url:j.toString()};if(j.protocol==="file:")if(p)H.file=p(j);else throw new Error("file: protocol is not available in this PostCSS build");let q=v.sourceContentFor(_.source);return q&&(H.source=q),H}toJSON(){let b={};for(let A of["hasBOM","css","file","id"])this[A]!=null&&(b[A]=this[A]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}};e.exports=T,T.default=T,d&&d.registerInput&&d.registerInput(T)}),Rc=ee((t,e)=>{var r=ri(),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)}),Da=ee((t,e)=>{var r=ri(),s,i,a=class extends r{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,p,h){let m=super.normalize(u);if(p){if(h==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let f of m)f.raws.before=p.raws.before}return m}removeChild(u,p){let h=this.index(u);return!p&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(u)}toResult(u={}){return new s(new i,this,u).stringify()}};a.registerLazyResult=u=>{s=u},a.registerProcessor=u=>{i=u},e.exports=a,a.default=a,r.registerRoot(a)}),C1=ee((t,e)=>{var r={comma(s){return r.split(s,[","],!0)},space(s){let i=[" ",`
|
|
131
|
+
`," "];return r.split(s,i)},split(s,i,a){let u=[],p="",h=!1,m=0,f=!1,d="",D=!1;for(let g of s)D?D=!1:g==="\\"?D=!0:f?g===d&&(f=!1):g==='"'||g==="'"?(f=!0,d=g):g==="("?m+=1:g===")"?m>0&&(m-=1):m===0&&i.includes(g)&&(h=!0),h?(p!==""&&u.push(p.trim()),p="",h=!1):p+=g;return(a||p!=="")&&u.push(p.trim()),u}};e.exports=r,r.default=r}),Uc=ee((t,e)=>{var r=ri(),s=C1(),i=class extends r{get selectors(){return s.comma(this.selector)}set selectors(a){let u=this.selector?this.selector.match(/,\s*/):null,p=u?u[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p)}constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}};e.exports=i,i.default=i,r.registerRule(i)}),qc=ee((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;e.exports=function(u,p={}){let h=u.css.valueOf(),m=p.ignoreErrors,f,d,D,g,E,x,T,b,A,S,k=h.length,v=0,_=[],$=[];function j(){return v}function H(R){throw u.error("Unclosed "+R,v)}function q(){return $.length===0&&v>=k}function W(R){if($.length)return $.pop();if(v>=k)return;let te=R?R.ignoreUnclosed:!1;switch(f=h.charCodeAt(v),f){case 10:case 32:case 9:case 13:case 12:{g=v;do g+=1,f=h.charCodeAt(g);while(f===32||f===10||f===9||f===13||f===12);x=["space",h.slice(v,g)],v=g-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let ie=String.fromCharCode(f);x=[ie,ie,v];break}case 40:{if(S=_.length?_.pop()[1]:"",A=h.charCodeAt(v+1),S==="url"&&A!==39&&A!==34&&A!==32&&A!==10&&A!==9&&A!==12&&A!==13){g=v;do{if(T=!1,g=h.indexOf(")",g+1),g===-1)if(m||te){g=v;break}else H("bracket");for(b=g;h.charCodeAt(b-1)===92;)b-=1,T=!T}while(T);x=["brackets",h.slice(v,g+1),v,g],v=g}else g=h.indexOf(")",v+1),d=h.slice(v,g+1),g===-1||i.test(d)?x=["(","(",v]:(x=["brackets",d,v,g],v=g);break}case 39:case 34:{E=f===39?"'":'"',g=v;do{if(T=!1,g=h.indexOf(E,g+1),g===-1)if(m||te){g=v+1;break}else H("string");for(b=g;h.charCodeAt(b-1)===92;)b-=1,T=!T}while(T);x=["string",h.slice(v,g+1),v,g],v=g;break}case 64:{r.lastIndex=v+1,r.test(h),r.lastIndex===0?g=h.length-1:g=r.lastIndex-2,x=["at-word",h.slice(v,g+1),v,g],v=g;break}case 92:{for(g=v,D=!0;h.charCodeAt(g+1)===92;)g+=1,D=!D;if(f=h.charCodeAt(g+1),D&&f!==47&&f!==32&&f!==10&&f!==9&&f!==13&&f!==12&&(g+=1,a.test(h.charAt(g)))){for(;a.test(h.charAt(g+1));)g+=1;h.charCodeAt(g+1)===32&&(g+=1)}x=["word",h.slice(v,g+1),v,g],v=g;break}default:{f===47&&h.charCodeAt(v+1)===42?(g=h.indexOf("*/",v+2)+1,g===0&&(m||te?g=h.length:H("comment")),x=["comment",h.slice(v,g+1),v,g],v=g):(s.lastIndex=v+1,s.test(h),s.lastIndex===0?g=h.length-1:g=s.lastIndex-2,x=["word",h.slice(v,g+1),v,g],_.push(x),v=g);break}}return v++,x}function F(R){$.push(R)}return{back:F,endOfFile:q,nextToken:W,position:j}}}),Vc=ee((t,e)=>{var r=Rc(),s=ya(),i=Wo(),a=Da(),u=Uc(),p=qc(),h={empty:!0,space:!0};function m(d){for(let D=d.length-1;D>=0;D--){let g=d[D],E=g[3]||g[2];if(E)return E}}var f=class{constructor(d){this.input=d,this.root=new a,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 g,E,x,T=!1,b=!1,A=[],S=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),g=d[0],g==="("||g==="["?S.push(g==="("?")":"]"):g==="{"&&S.length>0?S.push("}"):g===S[S.length-1]&&S.pop(),S.length===0)if(g===";"){D.source.end=this.getPosition(d[2]),D.source.end.offset++,this.semicolon=!0;break}else if(g==="{"){b=!0;break}else if(g==="}"){if(A.length>0){for(x=A.length-1,E=A[x];E&&E[0]==="space";)E=A[--x];E&&(D.source.end=this.getPosition(E[3]||E[2]),D.source.end.offset++)}this.end(d);break}else A.push(d);else A.push(d);if(this.tokenizer.endOfFile()){T=!0;break}}D.raws.between=this.spacesAndCommentsFromEnd(A),A.length?(D.raws.afterName=this.spacesAndCommentsFromStart(A),this.raw(D,"params",A),T&&(d=A[A.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 g=0,E;for(let x=D-1;x>=0&&(E=d[x],!(E[0]!=="space"&&(g+=1,g===2)));x--);throw this.input.error("Missed semicolon",E[0]==="word"?E[3]+1:E[2])}colon(d){let D=0,g,E,x;for(let[T,b]of d.entries()){if(E=b,x=E[0],x==="("&&(D+=1),x===")"&&(D-=1),D===0&&x===":")if(!g)this.doubleColon(E);else{if(g[0]==="word"&&g[1]==="progid")continue;return T}g=E}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 g=d[1].slice(2,-2);if(/^\s*$/.test(g))D.text="",D.raws.left=g,D.raws.right="";else{let E=g.match(/^(\s*)([^]*\S)(\s*)$/);D.text=E[2],D.raws.left=E[1],D.raws.right=E[3]}}createTokenizer(){this.tokenizer=p(this.input)}decl(d,D){let g=new i;this.init(g,d[0][2]);let E=d[d.length-1];for(E[0]===";"&&(this.semicolon=!0,d.pop()),g.source.end=this.getPosition(E[3]||E[2]||m(d)),g.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),g.raws.before+=d.shift()[1];for(g.source.start=this.getPosition(d[0][2]),g.prop="";d.length;){let A=d[0][0];if(A===":"||A==="space"||A==="comment")break;g.prop+=d.shift()[1]}g.raws.between="";let x;for(;d.length;)if(x=d.shift(),x[0]===":"){g.raws.between+=x[1];break}else x[0]==="word"&&/\w/.test(x[1])&&this.unknownWord([x]),g.raws.between+=x[1];(g.prop[0]==="_"||g.prop[0]==="*")&&(g.raws.before+=g.prop[0],g.prop=g.prop.slice(1));let T=[],b;for(;d.length&&(b=d[0][0],!(b!=="space"&&b!=="comment"));)T.push(d.shift());this.precheckMissedSemicolon(d);for(let A=d.length-1;A>=0;A--){if(x=d[A],x[1].toLowerCase()==="!important"){g.important=!0;let S=this.stringFrom(d,A);S=this.spacesFromEnd(d)+S,S!==" !important"&&(g.raws.important=S);break}else if(x[1].toLowerCase()==="important"){let S=d.slice(0),k="";for(let v=A;v>0;v--){let _=S[v][0];if(k.trim().startsWith("!")&&_!=="space")break;k=S.pop()[1]+k}k.trim().startsWith("!")&&(g.important=!0,g.raws.important=k,d=S)}if(x[0]!=="space"&&x[0]!=="comment")break}d.some(A=>A[0]!=="space"&&A[0]!=="comment")&&(g.raws.between+=T.map(A=>A[1]).join(""),T=[]),this.raw(g,"value",T.concat(d),D),g.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 u;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,g=null,E=!1,x=null,T=[],b=d[1].startsWith("--"),A=[],S=d;for(;S;){if(g=S[0],A.push(S),g==="("||g==="[")x||(x=S),T.push(g==="("?")":"]");else if(b&&E&&g==="{")x||(x=S),T.push("}");else if(T.length===0)if(g===";")if(E){this.decl(A,b);return}else break;else if(g==="{"){this.rule(A);return}else if(g==="}"){this.tokenizer.back(A.pop()),D=!0;break}else g===":"&&(E=!0);else g===T[T.length-1]&&(T.pop(),T.length===0&&(x=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(D=!0),T.length>0&&this.unclosedBracket(x),D&&E){if(!b)for(;A.length&&(S=A[A.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(A.pop());this.decl(A,b)}else this.unknownWord(A)}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,g,E){let x,T,b=g.length,A="",S=!0,k,v;for(let _=0;_<b;_+=1)x=g[_],T=x[0],T==="space"&&_===b-1&&!E?S=!1:T==="comment"?(v=g[_-1]?g[_-1][0]:"empty",k=g[_+1]?g[_+1][0]:"empty",!h[v]&&!h[k]?A.slice(-1)===","?S=!1:A+=x[1]:S=!1):A+=x[1];if(!S){let _=g.reduce(($,j)=>$+j[1],"");d.raws[D]={raw:_,value:A}}d[D]=A}rule(d){d.pop();let D=new u;this.init(D,d[0][2]),D.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(D,"selector",d),this.current=D}spacesAndCommentsFromEnd(d){let D,g="";for(;d.length&&(D=d[d.length-1][0],!(D!=="space"&&D!=="comment"));)g=d.pop()[1]+g;return g}spacesAndCommentsFromStart(d){let D,g="";for(;d.length&&(D=d[0][0],!(D!=="space"&&D!=="comment"));)g+=d.shift()[1];return g}spacesFromEnd(d){let D,g="";for(;d.length&&(D=d[d.length-1][0],D==="space");)g=d.pop()[1]+g;return g}stringFrom(d,D){let g="";for(let E=D;E<d.length;E++)g+=d[E][1];return d.splice(D,d.length-D),g}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=f}),Jo=ee((t,e)=>{var r=ri(),s=ga(),i=Vc();function a(u,p){let h=new s(u,p),m=new i(h);try{m.parse()}catch(f){throw f}return m.root}e.exports=a,a.default=a,r.registerParse(a)}),V9=ee((t,e)=>{var r=qc(),s=ga();e.exports={isInlineComment(i){if(i[0]==="word"&&i[1].slice(0,2)==="//"){let a=i,u=[],p,h;for(;i;){if(/\r?\n/.test(i[1])){if(/['"].*\r?\n/.test(i[1])){u.push(i[1].substring(0,i[1].indexOf(`
|
|
132
|
+
`))),h=i[1].substring(i[1].indexOf(`
|
|
133
|
+
`));let f=this.input.css.valueOf().substring(this.tokenizer.position());h+=f,p=i[3]+f.length-h.length}else this.tokenizer.back(i);break}u.push(i[1]),p=i[2],i=this.tokenizer.nextToken({ignoreUnclosed:!0})}let m=["comment",u.join(""),a[2],p];return this.inlineComment(m),h&&(this.input=new s(h),this.tokenizer=r(this.input)),!0}else if(i[1]==="/"){let a=this.tokenizer.nextToken({ignoreUnclosed:!0});if(a[0]==="comment"&&/^\/\*/.test(a[1]))return a[0]="word",a[1]=a[1].slice(1),i[1]="//",this.tokenizer.back(a),e.exports.isInlineComment.bind(this)(i)}return!1}}}),z9=ee((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 a=s.map(m=>m[1]),[u]=s,p=s.pop(),h=["word",a.join(""),u[2],p[2]];return this.tokenizer.back(r),this.tokenizer.back(h),!0}}}),H9=ee((t,e)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,s=/\.[0-9]/,i=a=>{let[,u]=a,[p]=u;return(p==="."||p==="#")&&r.test(u)===!1&&s.test(u)===!1};e.exports={isMixinToken:i}}),W9=ee((t,e)=>{var r=qc(),s=/^url\((.+)\)/;e.exports=i=>{let{name:a,params:u=""}=i;if(a==="import"&&u.length){i.import=!0;let p=r({css:u});for(i.filename=u.replace(s,"$1");!p.endOfFile();){let[h,m]=p.nextToken();if(h==="word"&&m==="url")return;if(h==="brackets"){i.options=m,i.filename=u.replace(m,"").trim();break}}}}}),J9=ee((t,e)=>{var r=/:$/,s=/^:(\s+)?/;e.exports=i=>{let{name:a,params:u=""}=i;if(i.name.slice(-1)===":"){if(r.test(a)){let[p]=a.match(r);i.name=a.replace(p,""),i.raws.afterName=p+(i.raws.afterName||""),i.variable=!0,i.value=i.params}if(s.test(u)){let[p]=u.match(s);i.value=u.replace(p,""),i.raws.afterName=(i.raws.afterName||"")+p,i.variable=!0}}}}),X9=ee((t,e)=>{var r=ya(),s=Vc(),{isInlineComment:i}=V9(),{interpolation:a}=z9(),{isMixinToken:u}=H9(),p=W9(),h=J9(),m=/(!\s*important)$/i;e.exports=class extends s{constructor(...f){super(...f),this.lastNode=null}atrule(f){a.bind(this)(f)||(super.atrule(f),p(this.lastNode),h(this.lastNode))}decl(...f){super.decl(...f),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(f){f[0][1]=` ${f[0][1]}`;let d=f.findIndex(x=>x[0]==="("),D=f.reverse().find(x=>x[0]===")"),g=f.reverse().indexOf(D),E=f.splice(d,g).map(x=>x[1]).join("");for(let x of f.reverse())this.tokenizer.back(x);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=E}init(f,d,D){super.init(f,d,D),this.lastNode=f}inlineComment(f){let d=new r,D=f[1].slice(2);if(this.init(d,f[2]),d.source.end=this.getPosition(f[3]||f[2]),d.inline=!0,d.raws.begin="//",/^\s*$/.test(D))d.text="",d.raws.left=D,d.raws.right="";else{let g=D.match(/^(\s*)([^]*[^\s])(\s*)$/);[,d.raws.left,d.text,d.raws.right]=g}}mixin(f){let[d]=f,D=d[1].slice(0,1),g=f.findIndex(A=>A[0]==="brackets"),E=f.findIndex(A=>A[0]==="("),x="";if((g<0||g>3)&&E>0){let A=f.reduce((W,F,R)=>F[0]===")"?R:W),S=f.slice(E,A+E).map(W=>W[1]).join(""),[k]=f.slice(E),v=[k[2],k[3]],[_]=f.slice(A,A+1),$=[_[2],_[3]],j=["brackets",S].concat(v,$),H=f.slice(0,E),q=f.slice(A+1);f=H,f.push(j),f=f.concat(q)}let T=[];for(let A of f)if((A[1]==="!"||T.length)&&T.push(A),A[1]==="important")break;if(T.length){let[A]=T,S=f.indexOf(A),k=T[T.length-1],v=[A[2],A[3]],_=[k[4],k[5]],$=["word",T.map(j=>j[1]).join("")].concat(v,_);f.splice(S,T.length,$)}let b=f.findIndex(A=>m.test(A[1]));b>0&&([,x]=f[b],f.splice(b,1));for(let A of f.reverse())this.tokenizer.back(A);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(f){i.bind(this)(f)||super.other(f)}rule(f){let d=f[f.length-1],D=f[f.length-2];if(D[0]==="at-word"&&d[0]==="{"&&(this.tokenizer.back(d),a.bind(this)(D))){let g=this.tokenizer.nextToken();f=f.slice(0,f.length-2).concat([g]);for(let E of f.reverse())this.tokenizer.back(E);return}super.rule(f),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(f){let[d]=f;if(f[0][1]==="each"&&f[1][0]==="("){this.each(f);return}if(u(d)){this.mixin(f);return}super.unknownWord(f)}}}),K9=ee((t,e)=>{var r=$c();e.exports=class extends r{atrule(s,i){if(!s.mixin&&!s.variable&&!s.function){super.atrule(s,i);return}let a=`${s.function?"":s.raws.identifier||"@"}${s.name}`,u=s.params?this.rawValue(s,"params"):"",p=s.raws.important||"";if(s.variable&&(u=s.value),typeof s.raws.afterName<"u"?a+=s.raws.afterName:u&&(a+=" "),s.nodes)this.block(s,a+u+p);else{let h=(s.raws.between||"")+p+(i?";":"");this.builder(a+u+h,s)}}comment(s){if(s.inline){let i=this.raw(s,"left","commentLeft"),a=this.raw(s,"right","commentRight");this.builder(`//${i}${s.text}${a}`,s)}else super.comment(s)}}}),G9=ee((t,e)=>{var r=ga(),s=X9(),i=K9();e.exports={parse(a,u){let p=new r(a,u),h=new s(p);return h.parse(),h.root.walk(m=>{let f=p.css.lastIndexOf(m.source.input.css);if(f===0)return;if(f+m.source.input.css.length!==p.css.length)throw new Error("Invalid state detected in postcss-less");let d=f+m.source.start.offset,D=p.fromOffset(f+m.source.start.offset);if(m.source.start={offset:d,line:D.line,column:D.col},m.source.end){let g=f+m.source.end.offset,E=p.fromOffset(f+m.source.end.offset);m.source.end={offset:g,line:E.line,column:E.col}}}),h.root},stringify(a,u){new i(u).stringify(a)},nodeToString(a){let u="";return e.exports.stringify(a,p=>{u+=p}),u}}}),zc=ee((t,e)=>{var r=ri(),s,i,a=class extends r{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new s(new i,this,u).stringify()}};a.registerLazyResult=u=>{s=u},a.registerProcessor=u=>{i=u},e.exports=a,a.default=a}),Y9=ee((t,e)=>{var r=Rc(),s=ya(),i=Wo(),a=ga(),u=A1(),p=Da(),h=Uc();function m(f,d){if(Array.isArray(f))return f.map(E=>m(E));let{inputs:D,...g}=f;if(D){d=[];for(let E of D){let x={...E,__proto__:a.prototype};x.map&&(x.map={...x.map,__proto__:u.prototype}),d.push(x)}}if(g.nodes&&(g.nodes=f.nodes.map(E=>m(E,d))),g.source){let{inputId:E,...x}=g.source;g.source=x,E!=null&&(g.source.input=d[E])}if(g.type==="root")return new p(g);if(g.type==="decl")return new i(g);if(g.type==="rule")return new h(g);if(g.type==="comment")return new s(g);if(g.type==="atrule")return new r(g);throw new Error("Unknown node type: "+f.type)}e.exports=m,m.default=m}),T1=ee((t,e)=>{e.exports=class{generate(){}}}),b1=ee((t,e)=>{var r=class{constructor(s,i={}){if(this.type="warning",this.text=s,i.node&&i.node.source){let a=i.node.rangeBy(i);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in i)this[a]=i[a]}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}),Hc=ee((t,e)=>{var r=b1(),s=class{get content(){return this.css}constructor(i,a,u){this.processor=i,this.messages=[],this.root=a,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(i,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let u=new r(i,a);return this.messages.push(u),u}warnings(){return this.messages.filter(i=>i.type==="warning")}};e.exports=s,s.default=s}),S1=ee((t,e)=>{var r={};e.exports=function(s){r[s]||(r[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),P1=ee((t,e)=>{var r=ri(),s=zc(),i=T1(),a=Jo(),u=Hc(),p=Da(),h=zo(),{isClean:m,my:f}=jc();S1();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},g={Once:!0,postcssPlugin:!0,prepare:!0},E=0;function x(v){return typeof v=="object"&&typeof v.then=="function"}function T(v){let _=!1,$=d[v.type];return v.type==="decl"?_=v.prop.toLowerCase():v.type==="atrule"&&(_=v.name.toLowerCase()),_&&v.append?[$,$+"-"+_,E,$+"Exit",$+"Exit-"+_]:_?[$,$+"-"+_,$+"Exit",$+"Exit-"+_]:v.append?[$,E,$+"Exit"]:[$,$+"Exit"]}function b(v){let _;return v.type==="document"?_=["Document",E,"DocumentExit"]:v.type==="root"?_=["Root",E,"RootExit"]:_=T(v),{eventIndex:0,events:_,iterator:0,node:v,visitorIndex:0,visitors:[]}}function A(v){return v[m]=!1,v.nodes&&v.nodes.forEach(_=>A(_)),v}var S={},k=class v1{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(_,$,j){this.stringified=!1,this.processed=!1;let H;if(typeof $=="object"&&$!==null&&($.type==="root"||$.type==="document"))H=A($);else if($ instanceof v1||$ instanceof u)H=A($.root),$.map&&(typeof j.map>"u"&&(j.map={}),j.map.inline||(j.map.inline=!1),j.map.prev=$.map);else{let q=a;j.syntax&&(q=j.syntax.parse),j.parser&&(q=j.parser),q.parse&&(q=q.parse);try{H=q($,j)}catch(W){this.processed=!0,this.error=W}H&&!H[f]&&r.rebuild(H)}this.result=new u(_,H,j),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(q=>typeof q=="object"&&q.prepare?{...q,...q.prepare(this.result)}:q)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(_){return this.async().catch(_)}finally(_){return this.async().then(_,_)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(_,$){let j=this.result.lastPlugin;try{$&&$.addToError(_),this.error=_,_.name==="CssSyntaxError"&&!_.plugin?(_.plugin=j.postcssPlugin,_.setMessage()):j.postcssVersion}catch(H){console&&console.error&&console.error(H)}return _}prepareVisitors(){this.listeners={};let _=($,j,H)=>{this.listeners[j]||(this.listeners[j]=[]),this.listeners[j].push([$,H])};for(let $ of this.plugins)if(typeof $=="object")for(let j in $){if(!D[j]&&/^[A-Z]/.test(j))throw new Error(`Unknown event ${j} in ${$.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!g[j])if(typeof $[j]=="object")for(let H in $[j])H==="*"?_($,j,$[j][H]):_($,j+"-"+H.toLowerCase(),$[j][H]);else typeof $[j]=="function"&&_($,j,$[j])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let _=0;_<this.plugins.length;_++){let $=this.plugins[_],j=this.runOnRoot($);if(x(j))try{await j}catch(H){throw this.handleError(H)}}if(this.prepareVisitors(),this.hasListener){let _=this.result.root;for(;!_[m];){_[m]=!0;let $=[b(_)];for(;$.length>0;){let j=this.visitTick($);if(x(j))try{await j}catch(H){let q=$[$.length-1].node;throw this.handleError(H,q)}}}if(this.listeners.OnceExit)for(let[$,j]of this.listeners.OnceExit){this.result.lastPlugin=$;try{if(_.type==="document"){let H=_.nodes.map(q=>j(q,this.helpers));await Promise.all(H)}else await j(_,this.helpers)}catch(H){throw this.handleError(H)}}}return this.processed=!0,this.stringify()}runOnRoot(_){this.result.lastPlugin=_;try{if(typeof _=="object"&&_.Once){if(this.result.root.type==="document"){let $=this.result.root.nodes.map(j=>_.Once(j,this.helpers));return x($[0])?Promise.all($):$}return _.Once(this.result.root,this.helpers)}else if(typeof _=="function")return _(this.result.root,this.result)}catch($){throw this.handleError($)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let _=this.result.opts,$=h;_.syntax&&($=_.syntax.stringify),_.stringifier&&($=_.stringifier),$.stringify&&($=$.stringify);let j=new i($,this.result.root,this.result.opts).generate();return this.result.css=j[0],this.result.map=j[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 _ of this.plugins){let $=this.runOnRoot(_);if(x($))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let _=this.result.root;for(;!_[m];)_[m]=!0,this.walkSync(_);if(this.listeners.OnceExit)if(_.type==="document")for(let $ of _.nodes)this.visitSync(this.listeners.OnceExit,$);else this.visitSync(this.listeners.OnceExit,_)}return this.result}then(_,$){return this.async().then(_,$)}toString(){return this.css}visitSync(_,$){for(let[j,H]of _){this.result.lastPlugin=j;let q;try{q=H($,this.helpers)}catch(W){throw this.handleError(W,$.proxyOf)}if($.type!=="root"&&$.type!=="document"&&!$.parent)return!0;if(x(q))throw this.getAsyncError()}}visitTick(_){let $=_[_.length-1],{node:j,visitors:H}=$;if(j.type!=="root"&&j.type!=="document"&&!j.parent){_.pop();return}if(H.length>0&&$.visitorIndex<H.length){let[W,F]=H[$.visitorIndex];$.visitorIndex+=1,$.visitorIndex===H.length&&($.visitors=[],$.visitorIndex=0),this.result.lastPlugin=W;try{return F(j.toProxy(),this.helpers)}catch(R){throw this.handleError(R,j)}}if($.iterator!==0){let W=$.iterator,F;for(;F=j.nodes[j.indexes[W]];)if(j.indexes[W]+=1,!F[m]){F[m]=!0,_.push(b(F));return}$.iterator=0,delete j.indexes[W]}let q=$.events;for(;$.eventIndex<q.length;){let W=q[$.eventIndex];if($.eventIndex+=1,W===E){j.nodes&&j.nodes.length&&(j[m]=!0,$.iterator=j.getIterator());return}else if(this.listeners[W]){$.visitors=this.listeners[W];return}}_.pop()}walkSync(_){_[m]=!0;let $=T(_);for(let j of $)if(j===E)_.nodes&&_.each(H=>{H[m]||this.walkSync(H)});else{let H=this.listeners[j];if(H&&this.visitSync(H,_.toProxy()))return}}warnings(){return this.sync().warnings()}};k.registerPostcss=v=>{S=v},e.exports=k,k.default=k,p.registerLazyResult(k),s.registerLazyResult(k)}),Q9=ee((t,e)=>{var r=T1(),s=Jo(),i=Hc(),a=zo();S1();var u=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 p,h=s;try{p=h(this._css,this._opts)}catch(m){this.error=m}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(p,h,m){h=h.toString(),this.stringified=!1,this._processor=p,this._css=h,this._opts=m,this._map=void 0;let f,d=a;this.result=new i(this._processor,f,this._opts),this.result.css=h;let D=this;Object.defineProperty(this.result,"root",{get(){return D.root}});let g=new r(d,f,this._opts,h);if(g.isMap()){let[E,x]=g.generate();E&&(this.result.css=E),x&&(this.result.map=x)}else g.clearAnnotation(),this.result.css=g.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,h){return this.async().then(p,h)}toString(){return this._css}warnings(){return[]}};e.exports=u,u.default=u}),Z9=ee((t,e)=>{var r=zc(),s=P1(),i=Q9(),a=Da(),u=class{constructor(p=[]){this.version="8.5.6",this.plugins=this.normalize(p)}normalize(p){let h=[];for(let m of p)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))h=h.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)h.push(m);else if(typeof m=="function")h.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return h}process(p,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new i(this,p,h):new s(this,p,h)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}};e.exports=u,u.default=u,a.registerProcessor(u),r.registerProcessor(u)}),Wc=ee((t,e)=>{var r=Rc(),s=ya(),i=ri(),a=Mc(),u=Wo(),p=zc(),h=Y9(),m=ga(),f=P1(),d=C1(),D=Ho(),g=Jo(),E=Z9(),x=Hc(),T=Da(),b=Uc(),A=zo(),S=b1();function k(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new E(v)}k.plugin=function(v,_){let $=!1;function j(...q){console&&console.warn&&!$&&($=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
134
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let W=_(...q);return W.postcssPlugin=v,W.postcssVersion=new E().version,W}let H;return Object.defineProperty(j,"postcss",{get(){return H||(H=j()),H}}),j.process=function(q,W,F){return k([j(F)]).process(q,W)},j},k.stringify=A,k.parse=g,k.fromJSON=h,k.list=d,k.comment=v=>new s(v),k.atRule=v=>new r(v),k.decl=v=>new u(v),k.rule=v=>new b(v),k.root=v=>new T(v),k.document=v=>new p(v),k.CssSyntaxError=a,k.Declaration=u,k.Container=i,k.Processor=E,k.Document=p,k.Comment=s,k.Warning=S,k.AtRule=r,k.Result=x,k.Input=m,k.Rule=b,k.Root=T,k.Node=D,f.registerPostcss(k),e.exports=k,k.default=k}),eO=ee((t,e)=>{var{Container:r}=Wc(),s=class extends r{constructor(i){super(i),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};e.exports=s}),tO=ee((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i,u=/[\n\f\r]/g;e.exports=function(p,h={}){let m=p.css.valueOf(),f=h.ignoreErrors,d,D,g,E,x,T,b,A,S,k=m.length,v=0,_=[],$=[],j;function H(){return v}function q(ie){throw p.error("Unclosed "+ie,v)}function W(){return $.length===0&&v>=k}function F(){let ie=1,re=!1,we=!1;for(;ie>0;)D+=1,m.length<=D&&q("interpolation"),d=m.charCodeAt(D),A=m.charCodeAt(D+1),re?!we&&d===re?(re=!1,we=!1):d===92?we=!we:we&&(we=!1):d===39||d===34?re=d:d===125?ie-=1:d===35&&A===123&&(ie+=1)}function R(ie){if($.length)return $.pop();if(v>=k)return;let re=ie?ie.ignoreUnclosed:!1;switch(d=m.charCodeAt(v),d){case 10:case 32:case 9:case 13:case 12:{D=v;do D+=1,d=m.charCodeAt(D);while(d===32||d===10||d===9||d===13||d===12);S=["space",m.slice(v,D)],v=D-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let we=String.fromCharCode(d);S=[we,we,v];break}case 44:{S=["word",",",v,v+1];break}case 40:{if(b=_.length?_.pop()[1]:"",A=m.charCodeAt(v+1),b==="url"&&A!==39&&A!==34){for(j=1,T=!1,D=v+1;D<=m.length-1;){if(A=m.charCodeAt(D),A===92)T=!T;else if(A===40)j+=1;else if(A===41&&(j-=1,j===0))break;D+=1}E=m.slice(v,D+1),S=["brackets",E,v,D],v=D}else D=m.indexOf(")",v+1),E=m.slice(v,D+1),D===-1||i.test(E)?S=["(","(",v]:(S=["brackets",E,v,D],v=D);break}case 39:case 34:{for(g=d,D=v,T=!1;D<k&&(D++,D===k&&q("string"),d=m.charCodeAt(D),A=m.charCodeAt(D+1),!(!T&&d===g));)d===92?T=!T:T?T=!1:d===35&&A===123&&F();S=["string",m.slice(v,D+1),v,D],v=D;break}case 64:{r.lastIndex=v+1,r.test(m),r.lastIndex===0?D=m.length-1:D=r.lastIndex-2,S=["at-word",m.slice(v,D+1),v,D],v=D;break}case 92:{for(D=v,x=!0;m.charCodeAt(D+1)===92;)D+=1,x=!x;if(d=m.charCodeAt(D+1),x&&d!==47&&d!==32&&d!==10&&d!==9&&d!==13&&d!==12&&(D+=1,a.test(m.charAt(D)))){for(;a.test(m.charAt(D+1));)D+=1;m.charCodeAt(D+1)===32&&(D+=1)}S=["word",m.slice(v,D+1),v,D],v=D;break}default:A=m.charCodeAt(v+1),d===35&&A===123?(D=v,F(),E=m.slice(v,D+1),S=["word",E,v,D],v=D):d===47&&A===42?(D=m.indexOf("*/",v+2)+1,D===0&&(f||re?D=m.length:q("comment")),S=["comment",m.slice(v,D+1),v,D],v=D):d===47&&A===47?(u.lastIndex=v+1,u.test(m),u.lastIndex===0?D=m.length-1:D=u.lastIndex-2,E=m.slice(v,D+1),S=["comment",E,v,D,"inline"],v=D):(s.lastIndex=v+1,s.test(m),s.lastIndex===0?D=m.length-1:D=s.lastIndex-2,S=["word",m.slice(v,D+1),v,D],_.push(S),v=D);break}return v++,S}function te(ie){$.push(ie)}return{back:te,endOfFile:W,nextToken:R,position:H}}}),rO=ee((t,e)=>{var{Comment:r}=Wc(),s=Vc(),i=eO(),a=tO(),u=class extends s{atrule(p){let h=p[1],m=p;for(;!this.tokenizer.endOfFile();){let f=this.tokenizer.nextToken();if(f[0]==="word"&&f[2]===m[3]+1)h+=f[1],m=f;else{this.tokenizer.back(f);break}}super.atrule(["at-word",h,p[2],m[3]])}comment(p){if(p[4]==="inline"){let h=new r;this.init(h,p[2]),h.raws.inline=!0;let m=this.input.fromOffset(p[3]);h.source.end={column:m.col,line:m.line,offset:p[3]+1};let f=p[1].slice(2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/),D=d[2].replace(/(\*\/|\/\*)/g,"*//*");h.text=D,h.raws.left=d[1],h.raws.right=d[3],h.raws.text=d[2]}}else super.comment(p)}createTokenizer(){this.tokenizer=a(this.input)}raw(p,h,m,f){if(super.raw(p,h,m,f),p.raws[h]){let d=p.raws[h].raw;p.raws[h].raw=m.reduce((D,g)=>{if(g[0]==="comment"&&g[4]==="inline"){let E=g[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return D+"/*"+E+"*/"}else return D+g[1]},""),d!==p.raws[h].raw&&(p.raws[h].scss=d)}}rule(p){let h=!1,m=0,f="";for(let d of p)if(h)d[0]!=="comment"&&d[0]!=="{"&&(f+=d[1]);else{if(d[0]==="space"&&d[1].includes(`
|
|
135
|
+
`))break;d[0]==="("?m+=1:d[0]===")"?m-=1:m===0&&d[0]===":"&&(h=!0)}if(!h||f.trim()===""||/^[#:A-Za-z-]/.test(f))super.rule(p);else{p.pop();let d=new i;this.init(d,p[0][2]);let D;for(let E=p.length-1;E>=0;E--)if(p[E][0]!=="space"){D=p[E];break}if(D[3]){let E=this.input.fromOffset(D[3]);d.source.end={column:E.col,line:E.line,offset:D[3]+1}}else{let E=this.input.fromOffset(D[2]);d.source.end={column:E.col,line:E.line,offset:D[2]+1}}for(;p[0][0]!=="word";)d.raws.before+=p.shift()[1];if(p[0][2]){let E=this.input.fromOffset(p[0][2]);d.source.start={column:E.col,line:E.line,offset:p[0][2]}}for(d.prop="";p.length;){let E=p[0][0];if(E===":"||E==="space"||E==="comment")break;d.prop+=p.shift()[1]}d.raws.between="";let g;for(;p.length;)if(g=p.shift(),g[0]===":"){d.raws.between+=g[1];break}else d.raws.between+=g[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1)),d.raws.between+=this.spacesAndCommentsFromStart(p),this.precheckMissedSemicolon(p);for(let E=p.length-1;E>0;E--){if(g=p[E],g[1]==="!important"){d.important=!0;let x=this.stringFrom(p,E);x=this.spacesFromEnd(p)+x,x!==" !important"&&(d.raws.important=x);break}else if(g[1]==="important"){let x=p.slice(0),T="";for(let b=E;b>0;b--){let A=x[b][0];if(T.trim().indexOf("!")===0&&A!=="space")break;T=x.pop()[1]+T}T.trim().indexOf("!")===0&&(d.important=!0,d.raws.important=T,p=x)}if(g[0]!=="space"&&g[0]!=="comment")break}this.raw(d,"value",p),d.value.includes(":")&&this.checkMissedSemicolon(p),this.current=d}}};e.exports=u}),sO=ee((t,e)=>{var{Input:r}=Wc(),s=rO();e.exports=function(i,a){let u=new r(i,a),p=new s(u);return p.parse(),p.root}}),w1=ee(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}),F1=ee(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=w1(),r=s(e);function s(a){return a&&a.__esModule?a:{default:a}}function i(a){var u=this;this.constructor(a),this.nodes=a.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(p){p.parent=u})}i.prototype=Object.create(r.default.prototype),i.constructor=r.default,i.prototype.walk=function(a,u){for(var p=typeof a=="string"||a instanceof RegExp,h=p?u:a,m=typeof a=="string"?new RegExp(a):a,f=0;f<this.nodes.length;f++){var d=this.nodes[f],D=p?m.test(d.type):!0;if(D&&h&&h(d,f,this.nodes)===!1||d.nodes&&d.walk(a,u)===!1)return!1}return!0},i.prototype.each=function(){for(var a=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],u=0;u<this.nodes.length;u++){var p=this.nodes[u];if(a(p,u,this.nodes)===!1)return!1}return!0},t.default=i}),iO=ee(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseMediaFeature=u,t.parseMediaQuery=p,t.parseMediaList=h;var e=w1(),r=a(e),s=F1(),i=a(s);function a(m){return m&&m.__esModule?m:{default:m}}function u(m){var f=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[{mode:"normal",character:null}],D=[],g=0,E="",x=null,T=null,b=f,A=m;m[0]==="("&&m[m.length-1]===")"&&(A=m.substring(1,m.length-1),b++);for(var S=0;S<A.length;S++){var k=A[S];if((k==="'"||k==='"')&&(d[g].isCalculationEnabled===!0?(d.push({mode:"string",isCalculationEnabled:!1,character:k}),g++):d[g].mode==="string"&&d[g].character===k&&A[S-1]!=="\\"&&(d.pop(),g--)),k==="{"?(d.push({mode:"interpolation",isCalculationEnabled:!0}),g++):k==="}"&&(d.pop(),g--),d[g].mode==="normal"&&k===":"){var v=A.substring(S+1);T={type:"value",before:/^(\s*)/.exec(v)[1],after:/(\s*)$/.exec(v)[1],value:v.trim()},T.sourceIndex=T.before.length+S+1+b,x={type:"colon",sourceIndex:S+b,after:T.before,value:":"};break}E+=k}return E={type:"media-feature",before:/^(\s*)/.exec(E)[1],after:/(\s*)$/.exec(E)[1],value:E.trim()},E.sourceIndex=E.before.length+b,D.push(E),x!==null&&(x.before=E.after,D.push(x)),T!==null&&D.push(T),D}function p(m){var f=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[],D=0,g=!1,E=void 0;function x(){return{before:"",after:"",value:""}}E=x();for(var T=0;T<m.length;T++){var b=m[T];g?(E.value+=b,(b==="{"||b==="(")&&D++,(b===")"||b==="}")&&D--):b.search(/\s/)!==-1?E.before+=b:(b==="("&&(E.type="media-feature-expression",D++),E.value=b,E.sourceIndex=f+T,g=!0),g&&D===0&&(b===")"||T===m.length-1||m[T+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(E.value)!==-1&&(E.type="keyword"),E.type==="media-feature-expression"&&(E.nodes=u(E.value,E.sourceIndex)),d.push(Array.isArray(E.nodes)?new i.default(E):new r.default(E)),E=x(),g=!1)}for(var A=0;A<d.length;A++)if(E=d[A],A>0&&(d[A-1].after=E.before),E.type===void 0){if(A>0){if(d[A-1].type==="media-feature-expression"){E.type="keyword";continue}if(d[A-1].value==="not"||d[A-1].value==="only"){E.type="media-type";continue}if(d[A-1].value==="and"){E.type="media-feature-expression";continue}d[A-1].type==="media-type"&&(d[A+1]?E.type=d[A+1].type==="media-feature-expression"?"keyword":"media-feature-expression":E.type="media-feature-expression")}if(A===0){if(!d[A+1]){E.type="media-type";continue}if(d[A+1]&&(d[A+1].type==="media-feature-expression"||d[A+1].type==="keyword")){E.type="media-type";continue}if(d[A+2]){if(d[A+2].type==="media-feature-expression"){E.type="media-type",d[A+1].type="keyword";continue}if(d[A+2].type==="keyword"){E.type="keyword",d[A+1].type="media-type";continue}}if(d[A+3]&&d[A+3].type==="media-feature-expression"){E.type="keyword",d[A+1].type="media-type",d[A+2].type="keyword";continue}}}return d}function h(m){var f=[],d=0,D=0,g=/^(\s*)url\s*\(/.exec(m);if(g!==null){for(var E=g[0].length,x=1;x>0;){var T=m[E];T==="("&&x++,T===")"&&x--,E++}f.unshift(new r.default({type:"url",value:m.substring(0,E).trim(),sourceIndex:g[1].length,before:g[1],after:/^(\s*)/.exec(m.substring(E))[1]})),d=E}for(var b=d;b<m.length;b++){var A=m[b];if(A==="("&&D++,A===")"&&D--,D===0&&A===","){var S=m.substring(d,b),k=/^(\s*)/.exec(S)[1];f.push(new i.default({type:"media-query",value:S.trim(),sourceIndex:d+k.length,nodes:p(S,d),before:k,after:/(\s*)$/.exec(S)[1]})),d=b+1}}var v=m.substring(d),_=/^(\s*)/.exec(v)[1];return f.push(new i.default({type:"media-query",value:v.trim(),sourceIndex:d+_.length,nodes:p(v,d),before:_,after:/(\s*)$/.exec(v)[1]})),f}}),nO=ee(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var e=F1(),r=i(e),s=iO();function i(u){return u&&u.__esModule?u:{default:u}}function a(u){return new r.default({nodes:(0,s.parseMediaList)(u),type:"media-query-list",value:u.trim()})}}),k1=ee((t,e)=>{e.exports=function(r,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(r)?r.map(function(a){return a}):r;return i(r,1);function i(a,u){return a.reduce(function(p,h){return Array.isArray(h)&&u<s?p.concat(i(h,u+1)):p.concat(h)},[])}}}),I1=ee((t,e)=>{e.exports=function(r,s){for(var i=-1,a=[];(i=r.indexOf(s,i+1))!==-1;)a.push(i);return a}}),N1=ee((t,e)=>{function r(a,u){for(var p=1,h=a.length,m=a[0],f=a[0],d=1;d<h;++d)if(f=m,m=a[d],u(m,f)){if(d===p){p++;continue}a[p++]=m}return a.length=p,a}function s(a){for(var u=1,p=a.length,h=a[0],m=a[0],f=1;f<p;++f,m=h)if(m=h,h=a[f],h!==m){if(f===u){u++;continue}a[u++]=h}return a.length=u,a}function i(a,u,p){return a.length===0?a:u?(p||a.sort(u),r(a,u)):(p||a.sort(),s(a))}e.exports=i}),Gi=ee((t,e)=>{t.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};function s(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}var i=function u(p,h){if((typeof p>"u"?"undefined":r(p))!=="object")return p;var m=new p.constructor;for(var f in p)if(p.hasOwnProperty(f)){var d=p[f],D=typeof d>"u"?"undefined":r(d);f==="parent"&&D==="object"?h&&(m[f]=h):d instanceof Array?m[f]=d.map(function(g){return u(g,m)}):m[f]=u(d,m)}return m},a=(function(){function u(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,u);for(var h in p)this[h]=p[h];var m=p.spaces;m=m===void 0?{}:m;var f=m.before,d=f===void 0?"":f,D=m.after,g=D===void 0?"":D;this.spaces={before:d,after:g}}return u.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},u.prototype.replaceWith=function(){if(this.parent){for(var p in arguments)this.parent.insertBefore(this,arguments[p]);this.remove()}return this},u.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},u.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},u.prototype.clone=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=i(this);for(var m in p)h[m]=p[m];return h},u.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},u})();t.default=a,e.exports=t.default}),Bt=ee(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"}),Jc=ee((t,e)=>{t.__esModule=!0;var r=(function(){function g(E,x){for(var T=0;T<x.length;T++){var b=x[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}return function(E,x,T){return x&&g(E.prototype,x),T&&g(E,T),E}})(),s=Gi(),i=h(s),a=Bt(),u=p(a);function p(g){if(g&&g.__esModule)return g;var E={};if(g!=null)for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(E[x]=g[x]);return E.default=g,E}function h(g){return g&&g.__esModule?g:{default:g}}function m(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function f(g,E){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:g}function d(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(g,E):g.__proto__=E)}var D=(function(g){d(E,g);function E(x){m(this,E);var T=f(this,g.call(this,x));return T.nodes||(T.nodes=[]),T}return E.prototype.append=function(x){return x.parent=this,this.nodes.push(x),this},E.prototype.prepend=function(x){return x.parent=this,this.nodes.unshift(x),this},E.prototype.at=function(x){return this.nodes[x]},E.prototype.index=function(x){return typeof x=="number"?x:this.nodes.indexOf(x)},E.prototype.removeChild=function(x){x=this.index(x),this.at(x).parent=void 0,this.nodes.splice(x,1);var T=void 0;for(var b in this.indexes)T=this.indexes[b],T>=x&&(this.indexes[b]=T-1);return this},E.prototype.removeAll=function(){for(var b=this.nodes,x=Array.isArray(b),T=0,b=x?b:b[Symbol.iterator]();;){var A;if(x){if(T>=b.length)break;A=b[T++]}else{if(T=b.next(),T.done)break;A=T.value}var S=A;S.parent=void 0}return this.nodes=[],this},E.prototype.empty=function(){return this.removeAll()},E.prototype.insertAfter=function(x,T){var b=this.index(x);this.nodes.splice(b+1,0,T);var A=void 0;for(var S in this.indexes)A=this.indexes[S],b<=A&&(this.indexes[S]=A+this.nodes.length);return this},E.prototype.insertBefore=function(x,T){var b=this.index(x);this.nodes.splice(b,0,T);var A=void 0;for(var S in this.indexes)A=this.indexes[S],b<=A&&(this.indexes[S]=A+this.nodes.length);return this},E.prototype.each=function(x){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var T=this.lastEach;if(this.indexes[T]=0,!!this.length){for(var b=void 0,A=void 0;this.indexes[T]<this.length&&(b=this.indexes[T],A=x(this.at(b),b),A!==!1);)this.indexes[T]+=1;if(delete this.indexes[T],A===!1)return!1}},E.prototype.walk=function(x){return this.each(function(T,b){var A=x(T,b);if(A!==!1&&T.length&&(A=T.walk(x)),A===!1)return!1})},E.prototype.walkAttributes=function(x){var T=this;return this.walk(function(b){if(b.type===u.ATTRIBUTE)return x.call(T,b)})},E.prototype.walkClasses=function(x){var T=this;return this.walk(function(b){if(b.type===u.CLASS)return x.call(T,b)})},E.prototype.walkCombinators=function(x){var T=this;return this.walk(function(b){if(b.type===u.COMBINATOR)return x.call(T,b)})},E.prototype.walkComments=function(x){var T=this;return this.walk(function(b){if(b.type===u.COMMENT)return x.call(T,b)})},E.prototype.walkIds=function(x){var T=this;return this.walk(function(b){if(b.type===u.ID)return x.call(T,b)})},E.prototype.walkNesting=function(x){var T=this;return this.walk(function(b){if(b.type===u.NESTING)return x.call(T,b)})},E.prototype.walkPseudos=function(x){var T=this;return this.walk(function(b){if(b.type===u.PSEUDO)return x.call(T,b)})},E.prototype.walkTags=function(x){var T=this;return this.walk(function(b){if(b.type===u.TAG)return x.call(T,b)})},E.prototype.walkUniversals=function(x){var T=this;return this.walk(function(b){if(b.type===u.UNIVERSAL)return x.call(T,b)})},E.prototype.split=function(x){var T=this,b=[];return this.reduce(function(A,S,k){var v=x.call(T,S);return b.push(S),v?(A.push(b),b=[]):k===T.length-1&&A.push(b),A},[])},E.prototype.map=function(x){return this.nodes.map(x)},E.prototype.reduce=function(x,T){return this.nodes.reduce(x,T)},E.prototype.every=function(x){return this.nodes.every(x)},E.prototype.some=function(x){return this.nodes.some(x)},E.prototype.filter=function(x){return this.nodes.filter(x)},E.prototype.sort=function(x){return this.nodes.sort(x)},E.prototype.toString=function(){return this.map(String).join("")},r(E,[{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}}]),E})(i.default);t.default=D,e.exports=t.default}),aO=ee((t,e)=>{t.__esModule=!0;var r=Jc(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.ROOT,g}return d.prototype.toString=function(){var D=this.reduce(function(g,E){var x=String(E);return x?g+x+",":""},"").slice(0,-1);return this.trailingComma?D+",":D},d})(s.default);t.default=m,e.exports=t.default}),oO=ee((t,e)=>{t.__esModule=!0;var r=Jc(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.SELECTOR,g}return d})(s.default);t.default=m,e.exports=t.default}),xa=ee((t,e)=>{t.__esModule=!0;var r=(function(){function f(d,D){for(var g=0;g<D.length;g++){var E=D[g];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(d,E.key,E)}}return function(d,D,g){return D&&f(d.prototype,D),g&&f(d,g),d}})(),s=Gi(),i=a(s);function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(){return u(this,d),p(this,f.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=m,e.exports=t.default}),uO=ee((t,e)=>{t.__esModule=!0;var r=xa(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.CLASS,g}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},d})(s.default);t.default=m,e.exports=t.default}),lO=ee((t,e)=>{t.__esModule=!0;var r=Gi(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.COMMENT,g}return d})(s.default);t.default=m,e.exports=t.default}),pO=ee((t,e)=>{t.__esModule=!0;var r=xa(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.ID,g}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},d})(s.default);t.default=m,e.exports=t.default}),cO=ee((t,e)=>{t.__esModule=!0;var r=xa(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.TAG,g}return d})(s.default);t.default=m,e.exports=t.default}),hO=ee((t,e)=>{t.__esModule=!0;var r=Gi(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.STRING,g}return d})(s.default);t.default=m,e.exports=t.default}),dO=ee((t,e)=>{t.__esModule=!0;var r=Jc(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.PSEUDO,g}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=m,e.exports=t.default}),fO=ee((t,e)=>{t.__esModule=!0;var r=xa(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.ATTRIBUTE,g.raws={},g}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=m,e.exports=t.default}),mO=ee((t,e)=>{t.__esModule=!0;var r=xa(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.UNIVERSAL,g.value="*",g}return d})(s.default);t.default=m,e.exports=t.default}),yO=ee((t,e)=>{t.__esModule=!0;var r=Gi(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.COMBINATOR,g}return d})(s.default);t.default=m,e.exports=t.default}),gO=ee((t,e)=>{t.__esModule=!0;var r=Gi(),s=a(r),i=Bt();function a(f){return f&&f.__esModule?f:{default:f}}function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function h(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var m=(function(f){h(d,f);function d(D){u(this,d);var g=p(this,f.call(this,D));return g.type=i.NESTING,g.value="&",g}return d})(s.default);t.default=m,e.exports=t.default}),DO=ee((t,e)=>{t.__esModule=!0,t.default=r;function r(s){return s.sort(function(i,a){return i-a})}e.exports=t.default}),xO=ee((t,e)=>{t.__esModule=!0,t.default=W;var r=39,s=34,i=92,a=47,u=10,p=32,h=12,m=9,f=13,d=43,D=62,g=126,E=124,x=44,T=40,b=41,A=91,S=93,k=59,v=42,_=58,$=38,j=64,H=/[ \n\t\r\{\(\)'"\\;/]/g,q=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function W(F){for(var R=[],te=F.css.valueOf(),ie=void 0,re=void 0,we=void 0,be=void 0,Ze=void 0,he=void 0,De=void 0,Z=void 0,gt=void 0,Re=void 0,ut=void 0,Ts=te.length,ae=-1,J=1,V=0,fe=function(Se,Me){if(F.safe)te+=Me,re=te.length-1;else throw F.error("Unclosed "+Se,J,V-ae,V)};V<Ts;){switch(ie=te.charCodeAt(V),ie===u&&(ae=V,J+=1),ie){case u:case p:case m:case f:case h:re=V;do re+=1,ie=te.charCodeAt(re),ie===u&&(ae=re,J+=1);while(ie===p||ie===u||ie===m||ie===f||ie===h);R.push(["space",te.slice(V,re),J,V-ae,V]),V=re-1;break;case d:case D:case g:case E:re=V;do re+=1,ie=te.charCodeAt(re);while(ie===d||ie===D||ie===g||ie===E);R.push(["combinator",te.slice(V,re),J,V-ae,V]),V=re-1;break;case v:R.push(["*","*",J,V-ae,V]);break;case $:R.push(["&","&",J,V-ae,V]);break;case x:R.push([",",",",J,V-ae,V]);break;case A:R.push(["[","[",J,V-ae,V]);break;case S:R.push(["]","]",J,V-ae,V]);break;case _:R.push([":",":",J,V-ae,V]);break;case k:R.push([";",";",J,V-ae,V]);break;case T:R.push(["(","(",J,V-ae,V]);break;case b:R.push([")",")",J,V-ae,V]);break;case r:case s:we=ie===r?"'":'"',re=V;do for(Re=!1,re=te.indexOf(we,re+1),re===-1&&fe("quote",we),ut=re;te.charCodeAt(ut-1)===i;)ut-=1,Re=!Re;while(Re);R.push(["string",te.slice(V,re+1),J,V-ae,J,re-ae,V]),V=re;break;case j:H.lastIndex=V+1,H.test(te),H.lastIndex===0?re=te.length-1:re=H.lastIndex-2,R.push(["at-word",te.slice(V,re+1),J,V-ae,J,re-ae,V]),V=re;break;case i:for(re=V,De=!0;te.charCodeAt(re+1)===i;)re+=1,De=!De;ie=te.charCodeAt(re+1),De&&ie!==a&&ie!==p&&ie!==u&&ie!==m&&ie!==f&&ie!==h&&(re+=1),R.push(["word",te.slice(V,re+1),J,V-ae,J,re-ae,V]),V=re;break;default:ie===a&&te.charCodeAt(V+1)===v?(re=te.indexOf("*/",V+2)+1,re===0&&fe("comment","*/"),he=te.slice(V,re+1),be=he.split(`
|
|
136
|
+
`),Ze=be.length-1,Ze>0?(Z=J+Ze,gt=re-be[Ze].length):(Z=J,gt=ae),R.push(["comment",he,J,V-ae,Z,re-gt,V]),ae=gt,J=Z,V=re):(q.lastIndex=V+1,q.test(te),q.lastIndex===0?re=te.length-1:re=q.lastIndex-2,R.push(["word",te.slice(V,re+1),J,V-ae,J,re-ae,V]),V=re);break}V++}return R}e.exports=t.default}),EO=ee((t,e)=>{t.__esModule=!0;var r=(function(){function ae(J,V){for(var fe=0;fe<V.length;fe++){var Se=V[fe];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(J,Se.key,Se)}}return function(J,V,fe){return V&&ae(J.prototype,V),fe&&ae(J,fe),J}})(),s=k1(),i=Re(s),a=I1(),u=Re(a),p=N1(),h=Re(p),m=aO(),f=Re(m),d=oO(),D=Re(d),g=uO(),E=Re(g),x=lO(),T=Re(x),b=pO(),A=Re(b),S=cO(),k=Re(S),v=hO(),_=Re(v),$=dO(),j=Re($),H=fO(),q=Re(H),W=mO(),F=Re(W),R=yO(),te=Re(R),ie=gO(),re=Re(ie),we=DO(),be=Re(we),Ze=xO(),he=Re(Ze),De=Bt(),Z=gt(De);function gt(ae){if(ae&&ae.__esModule)return ae;var J={};if(ae!=null)for(var V in ae)Object.prototype.hasOwnProperty.call(ae,V)&&(J[V]=ae[V]);return J.default=ae,J}function Re(ae){return ae&&ae.__esModule?ae:{default:ae}}function ut(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}var Ts=(function(){function ae(J){ut(this,ae),this.input=J,this.lossy=J.options.lossless===!1,this.position=0,this.root=new f.default;var V=new D.default;return this.root.append(V),this.current=V,this.lossy?this.tokens=(0,he.default)({safe:J.safe,css:J.css.trim()}):this.tokens=(0,he.default)(J),this.loop()}return ae.prototype.attribute=function(){var J="",V=void 0,fe=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)J+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~J.indexOf("]")&&this.error("Expected a closing square bracket.");var Se=J.split(/((?:[*~^$|]?=))([^]*)/),Me=Se[0].split(/(\|)/g),Tt={operator:Se[1],value:Se[2],source:{start:{line:fe[2],column:fe[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:fe[4]};if(Me.length>1?(Me[0]===""&&(Me[0]=!0),Tt.attribute=this.parseValue(Me[2]),Tt.namespace=this.parseNamespace(Me[0])):Tt.attribute=this.parseValue(Se[0]),V=new q.default(Tt),Se[2]){var Vt=Se[2].split(/(\s+i\s*?)$/),zt=Vt[0].trim();V.value=this.lossy?zt:Vt[0],Vt[1]&&(V.insensitive=!0,this.lossy||(V.raws.insensitive=Vt[1])),V.quoted=zt[0]==="'"||zt[0]==='"',V.raws.unquoted=V.quoted?zt.slice(1,-1):zt}this.newNode(V),this.position++},ae.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var J=new te.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"?(J.spaces.before=this.parseSpace(this.currToken[1]),J.source.start.line=this.nextToken[2],J.source.start.column=this.nextToken[3],J.source.end.column=this.nextToken[3],J.source.end.line=this.nextToken[2],J.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?J.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?J.value=this.currToken[1]:this.currToken[0]==="space"&&(J.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(J)},ae.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var J=new D.default;this.current.parent.append(J),this.current=J,this.position++},ae.prototype.comment=function(){var J=new T.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(J),this.position++},ae.prototype.error=function(J){throw new this.input.error(J)},ae.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},ae.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},ae.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},ae.prototype.namespace=function(){var J=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(J);if(this.nextToken[0]==="*")return this.position++,this.universal(J)},ae.prototype.nesting=function(){this.newNode(new re.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++},ae.prototype.parentheses=function(){var J=this.current.last;if(J&&J.type===Z.PSEUDO){var V=new D.default,fe=this.current;J.append(V),this.current=V;var Se=1;for(this.position++;this.position<this.tokens.length&&Se;)this.currToken[0]==="("&&Se++,this.currToken[0]===")"&&Se--,Se?this.parse():(V.parent.source.end.line=this.currToken[2],V.parent.source.end.column=this.currToken[3],this.position++);Se&&this.error("Expected closing parenthesis."),this.current=fe}else{var Me=1;for(this.position++,J.value+="(";this.position<this.tokens.length&&Me;)this.currToken[0]==="("&&Me++,this.currToken[0]===")"&&Me--,J.value+=this.parseParenthesisToken(this.currToken),this.position++;Me&&this.error("Expected closing parenthesis.")}},ae.prototype.pseudo=function(){for(var J=this,V="",fe=this.currToken;this.currToken&&this.currToken[0]===":";)V+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var Se=void 0;this.splitWord(!1,function(Me,Tt){V+=Me,Se=new j.default({value:V,source:{start:{line:fe[2],column:fe[3]},end:{line:J.currToken[4],column:J.currToken[5]}},sourceIndex:fe[4]}),J.newNode(Se),Tt>1&&J.nextToken&&J.nextToken[0]==="("&&J.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},ae.prototype.space=function(){var J=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(J[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(J[1]),this.position++):this.combinator()},ae.prototype.string=function(){var J=this.currToken;this.newNode(new _.default({value:this.currToken[1],source:{start:{line:J[2],column:J[3]},end:{line:J[4],column:J[5]}},sourceIndex:J[6]})),this.position++},ae.prototype.universal=function(J){var V=this.nextToken;if(V&&V[1]==="|")return this.position++,this.namespace();this.newNode(new F.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]}),J),this.position++},ae.prototype.splitWord=function(J,V){for(var fe=this,Se=this.nextToken,Me=this.currToken[1];Se&&Se[0]==="word";){this.position++;var Tt=this.currToken[1];if(Me+=Tt,Tt.lastIndexOf("\\")===Tt.length-1){var Vt=this.nextToken;Vt&&Vt[0]==="space"&&(Me+=this.parseSpace(Vt[1]," "),this.position++)}Se=this.nextToken}var zt=(0,u.default)(Me,"."),Yr=(0,u.default)(Me,"#"),si=(0,u.default)(Me,"#{");si.length&&(Yr=Yr.filter(function(Ee){return!~si.indexOf(Ee)}));var ce=(0,be.default)((0,h.default)((0,i.default)([[0],zt,Yr])));ce.forEach(function(Ee,bs){var Le=ce[bs+1]||Me.length,ii=Me.slice(Ee,Le);if(bs===0&&V)return V.call(fe,ii,ce.length);var dt=void 0;~zt.indexOf(Ee)?dt=new E.default({value:ii.slice(1),source:{start:{line:fe.currToken[2],column:fe.currToken[3]+Ee},end:{line:fe.currToken[4],column:fe.currToken[3]+(Le-1)}},sourceIndex:fe.currToken[6]+ce[bs]}):~Yr.indexOf(Ee)?dt=new A.default({value:ii.slice(1),source:{start:{line:fe.currToken[2],column:fe.currToken[3]+Ee},end:{line:fe.currToken[4],column:fe.currToken[3]+(Le-1)}},sourceIndex:fe.currToken[6]+ce[bs]}):dt=new k.default({value:ii,source:{start:{line:fe.currToken[2],column:fe.currToken[3]+Ee},end:{line:fe.currToken[4],column:fe.currToken[3]+(Le-1)}},sourceIndex:fe.currToken[6]+ce[bs]}),fe.newNode(dt,J)}),this.position++},ae.prototype.word=function(J){var V=this.nextToken;return V&&V[1]==="|"?(this.position++,this.namespace()):this.splitWord(J)},ae.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},ae.prototype.parse=function(J){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":J&&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}},ae.prototype.parseNamespace=function(J){if(this.lossy&&typeof J=="string"){var V=J.trim();return V.length?V:!0}return J},ae.prototype.parseSpace=function(J,V){return this.lossy?V||"":J},ae.prototype.parseValue=function(J){return this.lossy&&J&&typeof J=="string"?J.trim():J},ae.prototype.parseParenthesisToken=function(J){return this.lossy?J[0]==="space"?this.parseSpace(J[1]," "):this.parseValue(J[1]):J[1]},ae.prototype.newNode=function(J,V){return V&&(J.namespace=this.parseNamespace(V)),this.spaces&&(J.spaces.before=this.spaces,this.spaces=""),this.current.append(J)},r(ae,[{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]}}]),ae})();t.default=Ts,e.exports=t.default}),AO=ee((t,e)=>{t.__esModule=!0;var r=(function(){function h(m,f){for(var d=0;d<f.length;d++){var D=f[d];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(m,D.key,D)}}return function(m,f,d){return f&&h(m.prototype,f),d&&h(m,d),m}})(),s=EO(),i=a(s);function a(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}var p=(function(){function h(m){return u(this,h),this.func=m||function(){},this}return h.prototype.process=function(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=new i.default({css:m,error:function(D){throw new Error(D)},options:f});return this.res=d,this.func(d),this},r(h,[{key:"result",get:function(){return String(this.res)}}]),h})();t.default=p,e.exports=t.default}),vr=ee((t,e)=>{var r=function(s,i){let a=new s.constructor;for(let u in s){if(!s.hasOwnProperty(u))continue;let p=s[u],h=typeof p;u==="parent"&&h==="object"?i&&(a[u]=i):u==="source"?a[u]=p:p instanceof Array?a[u]=p.map(m=>r(m,a)):u!=="before"&&u!=="after"&&u!=="between"&&u!=="semicolon"&&(h==="object"&&p!==null&&(p=r(p)),a[u]=p)}return a};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 a in s)i[a]=s[a];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 a=this[i];a instanceof Array?s[i]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON():u):typeof a=="object"&&a.toJSON?s[i]=a.toJSON():s[i]=a}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(),a=this.source.start.column,u=this.source.start.line;for(let p=0;p<s;p++)i[p]===`
|
|
137
|
+
`?(a=1,u+=1):a+=1;return{line:u,column:a}}positionBy(s){let i=this.source.start;if(Object(s).index)i=this.positionInside(s.index);else if(Object(s).word){let a=this.toString().indexOf(s.word);a!==-1&&(i=this.positionInside(a))}return i}}}),qt=ee((t,e)=>{var r=vr(),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 a=this.lastEach,u,p;if(this.indexes[a]=0,!!this.nodes){for(;this.indexes[a]<this.nodes.length&&(u=this.indexes[a],p=i(this.nodes[u],u),p!==!1);)this.indexes[a]+=1;return delete this.indexes[a],p}}walk(i){return this.each((a,u)=>{let p=i(a,u);return p!==!1&&a.walk&&(p=a.walk(i)),p})}walkType(i,a){if(!i||!a)throw new Error("Parameters {type} and {callback} are required.");let u=typeof i=="function";return this.walk((p,h)=>{if(u&&p instanceof i||!u&&p.type===i)return a.call(this,p,h)})}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 a of this.nodes)a.cleanRaws(i)}insertAfter(i,a){let u=this.index(i),p;this.nodes.splice(u+1,0,a);for(let h in this.indexes)p=this.indexes[h],u<=p&&(this.indexes[h]=p+this.nodes.length);return this}insertBefore(i,a){let u=this.index(i),p;this.nodes.splice(u,0,a);for(let h in this.indexes)p=this.indexes[h],u<=p&&(this.indexes[h]=p+this.nodes.length);return this}removeChild(i){i=this.index(i),this.nodes[i].parent=void 0,this.nodes.splice(i,1);let a;for(let u in this.indexes)a=this.indexes[u],a>=i&&(this.indexes[u]=a-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 a="walk"+i.name;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!s.prototype[a]&&(s.prototype[a]=function(u){return this.walkType(i,u)})},e.exports=s}),CO=ee((t,e)=>{var r=qt();e.exports=class extends r{constructor(s){super(s),this.type="root"}}}),TO=ee((t,e)=>{var r=qt();e.exports=class extends r{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),bO=ee((t,e)=>{var r=qt(),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}),SO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="colon"}};r.registerWalker(i),e.exports=i}),PO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="comma"}};r.registerWalker(i),e.exports=i}),vO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="comment",this.inline=Object(a).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),wO=ee((t,e)=>{var r=qt(),s=class extends r{constructor(i){super(i),this.type="func",this.unbalanced=-1}};r.registerWalker(s),e.exports=s}),FO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="number",this.unit=Object(a).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),kO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="operator"}};r.registerWalker(i),e.exports=i}),IO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="paren",this.parenType=""}};r.registerWalker(i),e.exports=i}),NO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="string"}toString(){let a=this.quoted?this.raws.quote:"";return[this.raws.before,a,this.value+"",a,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),BO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="word"}};r.registerWalker(i),e.exports=i}),LO=ee((t,e)=>{var r=qt(),s=vr(),i=class extends s{constructor(a){super(a),this.type="unicode-range"}};r.registerWalker(i),e.exports=i}),OO=ee((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}),_O=ee((t,e)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,u=/^[a-f0-9?\-]/i,p=OO();e.exports=function(h,m){m=m||{};let f=[],d=h.valueOf(),D=d.length,g=-1,E=1,x=0,T=0,b=null,A,S,k,v,_,$,j,H,q,W,F;function R(te){let ie=`Unclosed ${te} at line: ${E}, column: ${x-g}, token: ${x}`;throw new p(ie)}for(;x<D;){switch(A=d.charCodeAt(x),A===10&&(g=x,E+=1),A){case 10:case 32:case 9:case 13:case 12:S=x;do S+=1,A=d.charCodeAt(S),A===10&&(g=S,E+=1);while(A===32||A===10||A===9||A===13||A===12);f.push(["space",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;break;case 58:S=x+1,f.push(["colon",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;break;case 44:S=x+1,f.push(["comma",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;break;case 123:f.push(["{","{",E,x-g,E,S-g,x]);break;case 125:f.push(["}","}",E,x-g,E,S-g,x]);break;case 40:T++,b=!b&&T===1&&f.length>0&&f[f.length-1][0]==="word"&&f[f.length-1][1]==="url",f.push(["(","(",E,x-g,E,S-g,x]);break;case 41:T--,b=b&&T>0,f.push([")",")",E,x-g,E,S-g,x]);break;case 39:case 34:k=A===39?"'":'"',S=x;do for(q=!1,S=d.indexOf(k,S+1),S===-1&&R("quote"),W=S;d.charCodeAt(W-1)===92;)W-=1,q=!q;while(q);f.push(["string",d.slice(x,S+1),E,x-g,E,S-g,x]),x=S;break;case 64:r.lastIndex=x+1,r.test(d),r.lastIndex===0?S=d.length-1:S=r.lastIndex-2,f.push(["atword",d.slice(x,S+1),E,x-g,E,S-g,x]),x=S;break;case 92:S=x,A=d.charCodeAt(S+1),f.push(["word",d.slice(x,S+1),E,x-g,E,S-g,x]),x=S;break;case 43:case 45:case 42:if(S=x+1,F=d.slice(x+1,S+1),d.slice(x-1,x),A===45&&F.charCodeAt(0)===45){S++,f.push(["word",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;break}f.push(["operator",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;break;default:if(A===47&&(d.charCodeAt(x+1)===42||m.loose&&!b&&d.charCodeAt(x+1)===47)){if(d.charCodeAt(x+1)===42)S=d.indexOf("*/",x+2)+1,S===0&&R("comment");else{let te=d.indexOf(`
|
|
138
|
+
`,x+2);S=te!==-1?te-1:D}$=d.slice(x,S+1),v=$.split(`
|
|
139
|
+
`),_=v.length-1,_>0?(j=E+_,H=S-v[_].length):(j=E,H=g),f.push(["comment",$,E,x-g,j,S-H,x]),g=H,E=j,x=S}else if(A===35&&!a.test(d.slice(x+1,x+2)))S=x+1,f.push(["#",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;else if((A===117||A===85)&&d.charCodeAt(x+1)===43){S=x+2;do S+=1,A=d.charCodeAt(S);while(S<D&&u.test(d.slice(S,S+1)));f.push(["unicoderange",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1}else if(A===47)S=x+1,f.push(["operator",d.slice(x,S),E,x-g,E,S-g,x]),x=S-1;else{let te=s;if(A>=48&&A<=57&&(te=i),te.lastIndex=x+1,te.test(d),te.lastIndex===0?S=d.length-1:S=te.lastIndex-2,te===i||A===46){let ie=d.charCodeAt(S),re=d.charCodeAt(S+1),we=d.charCodeAt(S+2);(ie===101||ie===69)&&(re===45||re===43)&&we>=48&&we<=57&&(i.lastIndex=S+2,i.test(d),i.lastIndex===0?S=d.length-1:S=i.lastIndex-2)}f.push(["word",d.slice(x,S+1),E,x-g,E,S-g,x]),x=S}break}x++}return f}}),MO=ee((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}),$O=ee((t,e)=>{var r=CO(),s=TO(),i=bO(),a=SO(),u=PO(),p=vO(),h=wO(),m=FO(),f=kO(),d=IO(),D=NO(),g=BO(),E=LO(),x=_O(),T=k1(),b=I1(),A=N1(),S=MO();function k(v){return v.sort((_,$)=>_-$)}e.exports=class{constructor(v,_){let $={loose:!1};this.cache=[],this.input=v,this.options=Object.assign({},$,_),this.position=0,this.unbalanced=0,this.root=new r;let j=new s;this.root.append(j),this.current=j,this.tokens=x(v,this.options)}parse(){return this.loop()}colon(){let v=this.currToken;this.newNode(new a({value:v[1],source:{start:{line:v[2],column:v[3]},end:{line:v[4],column:v[5]}},sourceIndex:v[6]})),this.position++}comma(){let v=this.currToken;this.newNode(new u({value:v[1],source:{start:{line:v[2],column:v[3]},end:{line:v[4],column:v[5]}},sourceIndex:v[6]})),this.position++}comment(){let v=!1,_=this.currToken[1].replace(/\/\*|\*\//g,""),$;this.options.loose&&_.startsWith("//")&&(_=_.substring(2),v=!0),$=new p({value:_,inline:v,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($),this.position++}error(v,_){throw new S(v+` at line: ${_[2]}, column ${_[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 v=this.currToken[1],_;if(v==="+"||v==="-"){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 _=new f({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(_)}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 v=1,_=this.position+1,$=this.currToken,j;for(;_<this.tokens.length&&v;){let H=this.tokens[_];H[0]==="("&&v++,H[0]===")"&&v--,_++}if(v&&this.error("Expected closing parenthesis",$),j=this.current.last,j&&j.type==="func"&&j.unbalanced<0&&(j.unbalanced=0,this.current=j),this.current.unbalanced++,this.newNode(new d({value:$[1],source:{start:{line:$[2],column:$[3]},end:{line:$[4],column:$[5]}},sourceIndex:$[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 H=this.nextToken,q=this.currToken[1],W={line:this.currToken[2],column:this.currToken[3]};for(;H&&H[0]!==")"&&this.current.unbalanced;)this.position++,q+=this.currToken[1],H=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new g({value:q,source:{start:W,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let v=this.currToken;this.newNode(new d({value:v[1],source:{start:{line:v[2],column:v[3]},end:{line:v[4],column:v[5]}},sourceIndex:v[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",v),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let v=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=v[1],this.position++):(this.spaces=v[1],this.position++)}unicodeRange(){let v=this.currToken;this.newNode(new E({value:v[1],source:{start:{line:v[2],column:v[3]},end:{line:v[4],column:v[5]}},sourceIndex:v[6]})),this.position++}splitWord(){let v=this.nextToken,_=this.currToken[1],$=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,j=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,H,q;if(!j.test(_))for(;v&&v[0]==="word";){this.position++;let W=this.currToken[1];_+=W,v=this.nextToken}H=b(_,"@"),q=k(A(T([[0],H]))),q.forEach((W,F)=>{let R=q[F+1]||_.length,te=_.slice(W,R),ie;if(~H.indexOf(W))ie=new i({value:te.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+W},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+q[F]});else if($.test(this.currToken[1])){let re=te.replace($,"");ie=new m({value:te.replace(re,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+W},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+q[F],unit:re})}else ie=new(v&&v[0]==="("?h:g)({value:te,source:{start:{line:this.currToken[2],column:this.currToken[3]+W},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+q[F]}),ie.type==="word"?(ie.isHex=/^#(.+)/.test(te),ie.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(te)):this.cache.push(this.current);this.newNode(ie)}),this.position++}string(){let v=this.currToken,_=this.currToken[1],$=/^(\"|\')/,j=$.test(_),H="",q;j&&(H=_.match($)[0],_=_.slice(1,_.length-1)),q=new D({value:_,source:{start:{line:v[2],column:v[3]},end:{line:v[4],column:v[5]}},sourceIndex:v[6],quoted:j}),q.raws.quote=H,this.newNode(q),this.position++}word(){return this.splitWord()}newNode(v){return this.spaces&&(v.raws.before+=this.spaces,this.spaces=""),this.current.append(v)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),B1={};g1(B1,{languages:()=>d0,options:()=>f0,parsers:()=>rh,printers:()=>C0});var L1=(t,e)=>(r,s,...i)=>r|1&&s==null?void 0:(e.call(s)??s[t]).apply(s,i),jO=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},RO=L1("replaceAll",function(){if(typeof this=="string")return jO}),Ge=RO;function UO(t){return this[t<0?this.length+t:t]}var qO=L1("at",function(){if(Array.isArray(this)||typeof this=="string")return UO}),zs=qO,VO=()=>{},zO=VO,O1="string",_1="array",M1="cursor",Xo="indent",Xc="align",$1="trim",Ko="group",Go="fill",Yo="if-break",j1="indent-if-break",Kc="line-suffix",R1="line-suffix-boundary",Yi="line",U1="label",Gc="break-parent",q1=new Set([M1,Xo,Xc,$1,Ko,Go,Yo,j1,Kc,R1,Yi,U1,Gc]);function HO(t){if(typeof t=="string")return O1;if(Array.isArray(t))return _1;if(!t)return;let{type:e}=t;if(q1.has(e))return e}var jn=HO,WO=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function JO(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(jn(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=WO([...q1].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
141
|
+
Expected it to be ${s}.`}var XO=class extends Error{name="InvalidDocError";constructor(t){super(JO(t)),this.doc=t}},KO=XO;function GO(t,e){if(typeof t=="string")return e(t);let r=new Map;return s(t);function s(a){if(r.has(a))return r.get(a);let u=i(a);return r.set(a,u),u}function i(a){switch(jn(a)){case _1:return e(a.map(s));case Go:return e({...a,parts:a.parts.map(s)});case Yo:return e({...a,breakContents:s(a.breakContents),flatContents:s(a.flatContents)});case Ko:{let{expandedStates:u,contents:p}=a;return u?(u=u.map(s),p=u[0]):p=s(p),e({...a,contents:p,expandedStates:u})}case Xc:case Xo:case j1:case U1:case Kc:return e({...a,contents:s(a.contents)});case O1:case M1:case $1:case R1:case Yi:case Gc:return e(a);default:throw new KO(a)}}}function YO(t){return t.type===Yi&&!t.hard?t.soft?"":" ":t.type===Yo?t.flatContents:t}function QO(t){return GO(t,YO)}var ZO=zO;function _t(t){return{type:Xo,contents:t}}function e5(t,e){return{type:Xc,contents:e,n:t}}function Yn(t){return e5(-1,t)}var Yc={type:Gc};function oo(t){return{type:Go,parts:t}}function Wt(t,e={}){return ZO(e.expandedStates),{type:Ko,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function V1(t,e="",r={}){return{type:Yo,breakContents:t,flatContents:e,groupId:r.groupId}}function ls(t,e){let r=[];for(let s=0;s<e.length;s++)s!==0&&r.push(t),r.push(e[s]);return r}var ft={type:Yi},Ht={type:Yi,soft:!0},t5={type:Yi,hard:!0},tt=[t5,Yc];function r5(t){return{type:Kc,contents:t}}function s5(t){return Array.isArray(t)&&t.length>0}var Qo=s5,z1=Object.freeze({character:"'",codePoint:39}),H1=Object.freeze({character:'"',codePoint:34}),i5=Object.freeze({preferred:z1,alternate:H1}),n5=Object.freeze({preferred:H1,alternate:z1});function a5(t,e){let{preferred:r,alternate:s}=e===!0||e==="'"?i5:n5,{length:i}=t,a=0,u=0;for(let p=0;p<i;p++){let h=t.charCodeAt(p);h===r.codePoint?a++:h===s.codePoint&&u++}return(a>u?s:r).character}var o5=a5,u5=/\\(["'\\])|(["'])/gu;function l5(t,e){let r=e==='"'?"'":'"',s=Ge(0,t,u5,(i,a,u)=>a?a===r?r:i:u===e?"\\"+u:u);return e+s+e}var p5=l5;function c5(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?"'":o5(r,e.singleQuote);return t.charAt(0)===s?t:p5(r,s)}var W1=c5,h5=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},d5=h5,J1=Symbol.for("PRETTIER_IS_FRONT_MATTER");function f5(t){return!!t?.[J1]}var Kl=f5,gn=3;function m5(t){let e=t.slice(0,gn);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
142
|
+
`,gn);if(r===-1)return;let s=t.slice(gn,r).trim(),i=t.indexOf(`
|
|
143
|
+
${e}`,r),a=s;if(a||(a=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&a==="yaml"&&(i=t.indexOf(`
|
|
144
|
+
...`,r)),i===-1)return;let u=i+1+gn,p=t.charAt(u+1);if(!/\s?/u.test(p))return;let h=t.slice(0,u),m;return{language:a,explicitLanguage:s||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:h.slice(-gn),raw:h,start:{line:1,column:0,index:0},end:{index:h.length,get line(){return m??(m=h.split(`
|
|
145
|
+
`)),m.length},get column(){return m??(m=h.split(`
|
|
146
|
+
`)),zs(0,m,-1).length}},[J1]:!0}}function y5(t){let e=m5(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return Ge(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var Zo=y5,g5=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function X1(t,e,r){if(t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||Kl(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||r.type==="css-root"&&zs(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=D5(t.value)),t.type==="selector-combinator"&&(e.value=Ge(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=Ge(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=Ge(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=zs(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=Ge(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(s,i,a)=>{let u=Number(i);return Number.isNaN(u)?s:u+a.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"}}}X1.ignoredProperties=g5;function D5(t){return Ge(0,Ge(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var x5=X1;function K1(){}K1.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var E5=K1,Dn=null;function Rn(t){if(Dn!==null&&typeof Dn.property){let e=Dn;return Dn=Rn.prototype=null,e}return Dn=Rn.prototype=t??Object.create(null),new Rn}var A5=10;for(let t=0;t<=A5;t++)Rn();function C5(t){return Rn(t)}function T5(t,e="type"){C5(t);function r(s){let i=s[e],a=t[i];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return a}return r}var b5=T5,Ne=[[],["nodes"],["group"]],S5={"css-root":["frontMatter","nodes"],"css-comment":Ne[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":Ne[1],"media-query":Ne[1],"media-type":Ne[0],"media-feature-expression":Ne[1],"media-feature":Ne[0],"media-colon":Ne[0],"media-value":Ne[0],"media-keyword":Ne[0],"media-url":Ne[0],"media-unknown":Ne[0],"selector-root":Ne[1],"selector-selector":Ne[1],"selector-comment":Ne[0],"selector-string":Ne[0],"selector-tag":Ne[0],"selector-id":Ne[0],"selector-class":Ne[0],"selector-attribute":Ne[0],"selector-combinator":Ne[1],"selector-universal":Ne[0],"selector-pseudo":Ne[1],"selector-nesting":Ne[0],"selector-unknown":Ne[0],"value-value":Ne[2],"value-root":Ne[2],"value-comment":Ne[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":Ne[2],"value-paren":Ne[0],"value-number":Ne[0],"value-operator":Ne[0],"value-word":Ne[0],"value-colon":Ne[0],"value-comma":Ne[0],"value-string":Ne[0],"value-atword":Ne[0],"value-unicode-range":Ne[0],"value-unknown":Ne[0]},P5=b5(S5),v5=P5;function w5(t,e){let r=0;for(let s=0;s<t.line-1;++s)r=e.indexOf(`
|
|
147
|
+
`,r)+1;return r+t.column}var G1=w5;function Qc(t){return(e,r,s)=>{let i=!!s?.backwards;if(r===!1)return!1;let{length:a}=e,u=r;for(;u>=0&&u<a;){let p=e.charAt(u);if(t instanceof RegExp){if(!t.test(p))return u}else if(!t.includes(p))return u;i?u--:u++}return u===-1||u===a?u:!1}}var Y1=Qc(" "),F5=Qc(",; "),Q1=Qc(/[^\n\r]/u);function Z1(t,e){let{value:r}=t;return r==="-"||r==="--"||r.charAt(0)!=="-"?e:e-(r.charAt(1)==="-"?2:1)}function e0(t,e){if(typeof t.source?.start?.offset=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.type==="value-word"?Z1(t,t.sourceIndex):t.sourceIndex;if(t.source?.start)return G1(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Zc(t,e){if(t.type==="css-comment"&&t.inline)return Q1(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=G1(t.source.end,e);return t.type==="value-word"?Z1(t,r):r}if(Qo(t.nodes))return Zc(zs(0,t.nodes,-1),e)}return null}function t0(t,e){t.source&&(t.source.startOffset=e0(t,e),t.source.endOffset=Zc(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"?r0(s,k5(t),s.text||s.value):t0(s,e))}}function r0(t,e,r){t.source&&(t.source.startOffset=e0(t,r)+e,t.source.endOffset=Zc(t,r)+e);for(let s in t){let i=t[s];s==="source"||!i||typeof i!="object"||r0(i,e,r)}}function k5(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 I5(t){let e="initial",r="initial",s,i=!1,a=[];for(let u=0;u<t.length;u++){let p=t[u];switch(e){case"initial":if(p==="'"){e="single-quotes";continue}if(p==='"'){e="double-quotes";continue}if((p==="u"||p==="U")&&t.slice(u,u+4).toLowerCase()==="url("){e="url",u+=3;continue}if(p==="*"&&t[u-1]==="/"){e="comment-block";continue}if(p==="/"&&t[u-1]==="/"){e="comment-inline",s=u-1;continue}continue;case"single-quotes":if(p==="'"&&t[u-1]!=="\\"&&(e=r,r="initial"),p===`
|
|
148
|
+
`||p==="\r")return t;continue;case"double-quotes":if(p==='"'&&t[u-1]!=="\\"&&(e=r,r="initial"),p===`
|
|
149
|
+
`||p==="\r")return t;continue;case"url":if(p===")"&&(e="initial"),p===`
|
|
150
|
+
`||p==="\r")return t;if(p==="'"){e="single-quotes",r="url";continue}if(p==='"'){e="double-quotes",r="url";continue}continue;case"comment-block":p==="/"&&t[u-1]==="*"&&(e="initial");continue;case"comment-inline":(p==='"'||p==="'"||p==="*")&&(i=!0),(p===`
|
|
151
|
+
`||p==="\r")&&(i&&a.push([s,u]),e="initial",i=!1);continue}}for(let[u,p]of a)t=t.slice(0,u)+Ge(0,t.slice(u,p),/["'*]/gu," ")+t.slice(p);return t}var Pt=t=>t.source?.startOffset,vt=t=>t.source?.endOffset,N5=/\*\/$/,B5=/^\/\*\*?/,s0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,L5=/(^|\s+)\/\/([^\n\r]*)/g,dm=/^(\r?\n)+/,O5=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,fm=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,_5=/(\r?\n|^) *\* ?/g,i0=[];function M5(t){let e=t.match(s0);return e?e[0].trimStart():""}function $5(t){let e=t.match(s0)?.[0];return e==null?t:t.slice(e.length)}function j5(t){t=Ge(0,t.replace(B5,"").replace(N5,""),_5,"$1");let e="";for(;e!==t;)e=t,t=Ge(0,t,O5,`
|
|
152
|
+
$1 $2
|
|
153
|
+
`);t=t.replace(dm,"").trimEnd();let r=Object.create(null),s=Ge(0,t,fm,"").replace(dm,"").trimEnd(),i;for(;i=fm.exec(t);){let a=Ge(0,i[2],L5,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...i0,...Array.isArray(u)?u:[u],a]}else r[i[1]]=a}return{comments:s,pragmas:r}}function R5({comments:t="",pragmas:e={}}){let r=Object.keys(e),s=r.flatMap(a=>mm(a,e[a])).map(a=>` * ${a}
|
|
154
|
+
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let a=e[r[0]];return`/** ${mm(r[0],a)[0]} */`}}let i=t.split(`
|
|
155
|
+
`).map(a=>` * ${a}`).join(`
|
|
156
|
+
`)+`
|
|
157
|
+
`;return`/**
|
|
158
|
+
`+(t?i:"")+(t&&r.length>0?` *
|
|
159
|
+
`:"")+s+" */"}function mm(t,e){return[...i0,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var U5=["noformat","noprettier"],q5=["format","prettier"],V5="format";function z5(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
160
|
+
`);return e===-1?t:t.slice(0,e)}var H5=z5;function eh(t){let e=H5(t);e&&(t=t.slice(e.length+1));let r=M5(t),{pragmas:s,comments:i}=j5(r);return{shebang:e,text:t,pragmas:s,comments:i}}function W5(t){let{pragmas:e}=eh(t);return q5.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function J5(t){let{pragmas:e}=eh(t);return U5.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function X5(t){let{shebang:e,text:r,pragmas:s,comments:i}=eh(t),a=$5(r),u=R5({pragmas:{[V5]:"",...s},comments:i.trimStart()});return(e?`${e}
|
|
161
|
+
`:"")+u+(a.startsWith(`
|
|
162
|
+
`)?`
|
|
163
|
+
`:`
|
|
164
|
+
|
|
165
|
+
`)+a}var K5=t=>W5(Zo(t).content),G5=t=>J5(Zo(t).content),Y5=t=>{let{frontMatter:e,content:r}=Zo(t);return(e?e.raw+`
|
|
166
|
+
|
|
167
|
+
`:"")+X5(r)},Q5=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 Z5(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var e_=new Set(["initial","inherit","unset","revert"]);function t_(t){return e_.has(t.toLowerCase())}function r_(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function xn(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function uo(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function s_(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 Un(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 i_(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 n_(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function a_(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function o_(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function u_(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function l_(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function p_(t){return t.type==="value-word"&&t.value==="in"}function Gl(t){return t.type==="value-operator"&&t.value==="*"}function Ei(t){return t?.type==="value-operator"&&t.value==="/"}function us(t){return t.type==="value-operator"&&t.value==="+"}function Ai(t){return t.type==="value-operator"&&t.value==="-"}function c_(t){return t.type==="value-operator"&&t.value==="%"}function al(t){return Gl(t)||Ei(t)||us(t)||Ai(t)||c_(t)}function h_(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function d_(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Yl(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function ym(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function ol(t){return t.name.startsWith("prettier-placeholder")}function f_(t){return t.prop.startsWith("@prettier-placeholder")}function m_(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function y_(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function g_(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function as(t){return t?.raws?.before===""}function th(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function ul(t){return t.type==="value-paren_group"&&t.groups?.[0]&&th(t.groups[0])}function n0(t,e){if(e.parser!=="scss")return!1;let{node:r}=t;if(r.groups.length===0)return!1;let s=t.grandparent;return!ul(r)&&!(s&&ul(s))?!1:!!(t.findAncestor(i=>i.type==="css-decl")?.prop?.startsWith("$")||ul(s)||s.type==="value-func")}function Ha(t){return t.type==="value-comment"&&t.inline}function ll(t){return t.type==="value-word"&&t.value==="#"}function gm(t){return t.type==="value-word"&&t.value==="{"}function pl(t){return t.type==="value-word"&&t.value==="}"}function Wa(t){return["value-word","value-atword"].includes(t.type)}function Ql(t){return t?.type==="value-colon"}function D_(t,e){if(!th(e))return!1;let{groups:r}=e,s=r.indexOf(t);return s===-1?!1:Ql(r[s+1])}function x_(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function E_(t){return t.type!=="value-func"?!1:Q5.has(t.value.toLowerCase())}function En(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function Ja(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function A_(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 Xa(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function C_(t,e,r){let{node:s}=t,i=t.parent,a=t.grandparent,u=Z5(t),p=u&&i.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),h=t.findAncestor(T=>T.type==="css-atrule"),m=h&&Yl(h,e),f=s.groups.some(T=>Ha(T)),d=t.map(r,"groups"),D=[""],g=uo(t,"url"),E=!1,x=!1;for(let T=0;T<s.groups.length;++T){let b=s.groups[T-1],A=s.groups[T],S=s.groups[T+1],k=s.groups[T+2];if(Ha(A)&&!S){D.push([D.pop(),r5([" ",d[T]])]);continue}if(D.push([D.pop(),d[T]]),g){(S&&us(S)||us(A))&&D.push([D.pop()," "]);continue}if(Un(t,"forward")&&A.type==="value-word"&&A.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&S.type==="value-operator"&&S.value==="*"||Un(t,"utility")&&A.type==="value-word"&&S&&S.type==="value-operator"&&S.value==="*"||!S||A.type==="value-word"&&Ja(S)&&vt(A)===Pt(S))continue;if(A.type==="value-string"&&A.quoted){let q=A.value.lastIndexOf("#{"),W=A.value.lastIndexOf("}");q!==-1&&W!==-1?E=q>W:q!==-1?E=!0:W!==-1&&(E=!1)}if(E||Ql(A)||Ql(S)||A.type==="value-atword"&&(A.value===""||A.value.endsWith("["))||S.type==="value-word"&&S.value.startsWith("]")||A.value==="~"||e.parser==="less"&&(S?.type==="value-word"&&S.value==="["||A.type==="value-word"&&A.value==="["&&(S?.type==="value-atword"||S?.type==="value-word")||A.type==="value-word"&&A.value==="]["&&S?.type==="value-word")||A.type!=="value-string"&&A.value&&A.value.includes("\\")&&S&&S.type!=="value-comment"||b?.value&&b.value.indexOf("\\")===b.value.length-1&&A.type==="value-operator"&&A.value==="/"||A.value==="\\"||m_(A,S)||ll(A)||gm(A)||pl(S)||gm(S)&&as(S)||pl(A)&&as(S)||A.value==="--"&&ll(S))continue;let v=al(A),_=al(S);if((v&&ll(S)||_&&pl(A))&&as(S)||!b&&Ei(A)||uo(t,"calc")&&(us(A)||us(S)||Ai(A)||Ai(S))&&as(S))continue;let $=(us(A)||Ai(A))&&T===0&&(S.type==="value-number"||S.isHex)&&a&&E_(a)&&!as(S);if(e.parser==="scss"&&v&&A.value==="-"&&S.type==="value-func"&&vt(A)!==Pt(S)){D.push([D.pop()," "]);continue}let j=k?.type==="value-func"||k&&Wa(k)||A.type==="value-func"||Wa(A),H=S.type==="value-func"||Wa(S)||b?.type==="value-func"||b&&Wa(b);if(!(!(Gl(S)||Gl(A))&&!uo(t,"calc")&&!$&&(Ei(S)&&!j||Ei(A)&&!H||us(S)&&!j||us(A)&&!H||Ai(S)||Ai(A))&&(as(S)||v&&(!b||b&&al(b))))&&!((e.parser==="scss"||e.parser==="less")&&v&&A.value==="-"&&Xa(S)&&vt(A)===Pt(S.open)&&S.open.value==="(")){if(Ha(A)){if(i.type==="value-paren_group"){D.push(Yn(tt),"");continue}D.push(tt,"");continue}if(m&&(h_(S)||d_(S)||l_(S)||p_(A)||u_(A))){D.push([D.pop()," "]);continue}if(h&&h.name.toLowerCase()==="namespace"){D.push([D.pop()," "]);continue}if(p){A.source&&S.source&&A.source.start.line!==S.source.start.line?(D.push(tt,""),x=!0):D.push([D.pop()," "]);continue}if(!(u&&(u==="font"||u.startsWith("--"))&&(Ei(S)&&as(S)&&Dm(A)||Ei(A)&&as(A)&&Dm(b)))){if(_){D.push([D.pop()," "]);continue}if(S?.value!=="..."&&!(Ja(A)&&Ja(S)&&vt(A)===Pt(S))){if(Ja(A)&&Xa(S)&&vt(A)===Pt(S.open)){D.push(Ht,"");continue}if(A.value==="with"&&Xa(S)){D=[[oo(D)," "]];continue}if(!(A.value?.endsWith("#")&&S.value==="{"&&Xa(S.group))&&!(Ha(S)&&!k)){if(!h&&A.type==="value-comment"&&!A.inline&&s.groups.slice(0,T).every(q=>q.type==="value-comment")){D.push(Yn(ft),"");continue}D.push(ft,"")}}}}}return f&&D.push([D.pop(),Yc]),x&&D.unshift("",tt),m?Wt(_t(D)):i_(t)?Wt(oo(D)):Wt(_t(oo(D)))}function Dm(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 T_=C_;function b_(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 S_=b_,Zl=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 a0(t){let e=t.toLowerCase();return Zl.has(e)?Zl.get(e):t}var o0=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,P_=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,v_=/[a-z]+/giu,w_=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,F_=new RegExp(o0.source+`|(${w_.source})?(${P_.source})(${v_.source})?`,"giu");function pr(t,e){return Ge(0,t,o0,r=>W1(r,e))}function k_(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 fi(t){return Ge(0,t,F_,(e,r,s,i,a)=>!s&&i&&(a??(a=""),a=a.toLowerCase(),!a||a==="n"||Zl.has(a))?u0(i)+(a?a0(a):""):e)}function u0(t){return S_(t).replace(/\.0(?=$|e)/u,"")}function I_(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var xm=t=>t===`
|
|
168
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function N_(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===`
|
|
169
|
+
`)return e-2;if(xm(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
170
|
+
`)return e+2;if(xm(i))return e+1}return e}var l0=N_;function B_(t,e,r={}){let s=Y1(t,r.backwards?e-1:e,r),i=l0(t,s,r);return s!==i}var p0=B_;function L_(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 O_=L_;function __(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Q1(t,e):e}var M_=__;function $_(t,e){let r=null,s=e;for(;s!==r;)r=s,s=F5(t,s),s=O_(t,s),s=Y1(t,s);return s=M_(t,s),s=l0(t,s),s!==!1&&p0(t,s)}var c0=$_;function j_({node:t,parent:e},r){return!!(t.source&&r.originalText.slice(Pt(t),Pt(e.close)).trimEnd().endsWith(","))}function R_(t,e){return a_(t.grandparent)&&j_(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(r=>r.type==="value-comment"))&&I_(e)&&t.callParent(()=>n0(t,e))?V1(","):""}function U_(t,e,r){let{node:s,parent:i}=t,a=t.map(({node:g})=>typeof g=="string"?g:r(),"groups");if(i&&n_(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"):"",ls(",",a),s.close?r("close"):""];if(!s.open){let g=h0(t),E=V_(ls(",",a),2),x=ls(g?tt:ft,E);return _t(g?[tt,x]:Wt([q_(t)?Ht:"",oo(x)]))}let u=t.map(({node:g,isLast:E,index:x})=>{let T=a[x];th(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&g.groups[2]?.type==="value-paren_group"&&jn(T)===Ko&&jn(T.contents)===Xo&&jn(T.contents.contents)===Go&&(T=Wt(Yn(T)));let b=[T,E?R_(t,e):","];if(!E&&g.type==="value-comma_group"&&Qo(g.groups)){let A=zs(0,g.groups,-1);!A.source&&A.close&&(A=A.close),A.source&&c0(e.originalText,vt(A))&&b.push(tt)}return b},"groups"),p=D_(s,i),h=A_(s,i),m=n0(t,e),f=h||m&&!p,d=h||p,D=Wt([s.open?r("open"):"",_t([Ht,ls(ft,u)]),Ht,s.close?r("close"):""],{shouldBreak:f});return d?Yn(D):D}function h0(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 q_(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 V_(t,e){let r=[];for(let s=0;s<t.length;s+=e)r.push(t.slice(s,s+e));return r}function z_(t,e,r){let s=[];return t.each(()=>{let{node:i,previous:a}=t;if(a?.type==="css-comment"&&a.text.trim()==="prettier-ignore"?s.push(e.originalText.slice(Pt(i),vt(i))):s.push(r()),t.isLast)return;let{next:u}=t;u.type==="css-comment"&&!p0(e.originalText,Pt(u),{backwards:!0})&&!Kl(i)||u.type==="css-atrule"&&u.name==="else"&&i.type!=="css-comment"?s.push(" "):(s.push(e.__isHTMLStyleAttribute?ft:tt),c0(e.originalText,vt(i))&&!Kl(i)&&s.push(tt))},"nodes"),s}var An=z_;function H_(t,e,r){let{node:s}=t;switch(s.type){case"css-root":{let i=An(t,e,r),a=s.raws.after.trim();return a.startsWith(";")&&(a=a.slice(1).trim()),[s.frontMatter?[r("frontMatter"),tt,s.nodes.length>0?tt:""]:"",i,a?` ${a}`:"",s.nodes.length>0?tt:""]}case"css-comment":{let i=s.inline||s.raws.inline,a=e.originalText.slice(Pt(s),vt(s));return i?a.trimEnd():a}case"css-rule":return[r("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&En(s.selector.value)?ft:s.selector?" ":"","{",s.nodes.length>0?_t([tt,An(t,e,r)]):"",tt,"}",o_(s)?";":""]:";"];case"css-decl":{let i=t.parent,{between:a}=s.raws,u=a.trim(),p=u===":",h=typeof s.value=="string"&&/^ *$/u.test(s.value),m=typeof s.value=="string"?s.value:r("value");return m=y_(s)?QO(m):m,!p&&En(u)&&!t.call(()=>h0(t),"value","group","group")&&(m=_t([tt,Yn(m)])),[Ge(0,s.raws.before,/[\s;]/gu,""),i.type==="css-atrule"&&i.variable||s_(t)?s.prop:xn(s.prop),u.startsWith("//")?" ":"",u,s.extend||h?"":" ",e.parser==="less"&&s.extend&&s.selector?["extend(",r("selector"),")"]:"",m,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?[" {",_t([Ht,An(t,e,r)]),Ht,"}"]:f_(s)&&!i.raws.semicolon&&e.originalText[vt(s)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?V1(";"):";"]}case"css-atrule":{let i=t.parent,a=ol(s)&&!i.raws.semicolon&&e.originalText[vt(s)-1]!==";";if(e.parser==="less"){if(s.mixin)return[r("selector"),s.important?" !important":"",a?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:r("params"),a?"":";"];if(s.variable)return["@",s.name,": ",s.value?r("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",_t([s.nodes.length>0?Ht:"",An(t,e,r)]),Ht,"}"]:"",a?"":";"]}let u=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",ym(s)||s.name.endsWith(":")||ol(s)?s.name:xn(s.name),s.params?[ym(s)?"":ol(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(s.raws.afterName)?[tt,tt]:/^\s*\n/u.test(s.raws.afterName)?tt:" ":" ",typeof s.params=="string"?s.params:r("params")]:"",s.selector?_t([" ",r("selector")]):"",s.value?Wt([" ",r("value"),Yl(s,e)?g_(s)?" ":ft:""]):s.name==="else"?" ":"",s.nodes?[Yl(s,e)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&En(s.selector.value)||!s.selector&&typeof s.params=="string"&&En(s.params)?ft:" ","{",_t([s.nodes.length>0?Ht:"",An(t,e,r)]),Ht,"}"]:a||u?"":";"]}case"media-query-list":{let i=[];return t.each(({node:a})=>{a.type==="media-query"&&a.value===""||i.push(r())},"nodes"),Wt(_t(ls(ft,i)))}case"media-query":return[ls(" ",t.map(r,"nodes")),t.isLast?"":","];case"media-type":return fi(pr(s.value,e));case"media-feature-expression":return s.nodes?["(",...t.map(r,"nodes"),")"]:s.value;case"media-feature":return xn(pr(Ge(0,s.value,/ +/gu," "),e));case"media-colon":return[s.value," "];case"media-value":return fi(pr(s.value,e));case"media-keyword":return pr(s.value,e);case"media-url":return pr(Ge(0,Ge(0,s.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return s.value;case"selector-root":return Wt([Un(t,"custom-selector")?[t.findAncestor(i=>i.type==="css-atrule").customSelector,ft]:"",ls([",",Un(t,["extend","custom-selector","nest"])?ft:tt],t.map(r,"nodes"))]);case"selector-selector":{let i=s.nodes.length>2;return Wt((i?_t:a=>a)(t.map(r,"nodes")))}case"selector-comment":return s.value;case"selector-string":return pr(s.value,e);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?s.value:fi(r_(t,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",fi(pr(s.value,e))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?k_(pr(s.value.trim(),e),e):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let u=t.parent;return[u.type==="selector-selector"&&u.nodes[0]===s?"":ft,s.value,t.isLast?"":" "]}let i=s.value.trim().startsWith("(")?ft:"",a=fi(pr(s.value.trim(),e))||ft;return[i,a]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[xn(s.value),Qo(s.nodes)?Wt(["(",_t([Ht,ls([",",ft],t.map(r,"nodes"))]),Ht,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(t.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return fi(pr(xn(s.value),e));let i=t.parent;if(i.raws?.selector){let u=Pt(i),p=u+i.raws.selector.length;return e.originalText.slice(u,p).trim()}let a=t.grandparent;if(i.type==="value-paren_group"&&a?.type==="value-func"&&a.value==="selector"){let u=vt(i.open)+1,p=Pt(i.close),h=e.originalText.slice(u,p).trim();return En(h)?[Yc,h]:h}return s.value}case"value-value":case"value-root":return r("group");case"value-comment":return e.originalText.slice(Pt(s),vt(s));case"value-comma_group":return T_(t,e,r);case"value-paren_group":return U_(t,e,r);case"value-func":return[s.value,Un(t,"supports")&&x_(s)?" ":"",r("group")];case"value-paren":return s.value;case"value-number":return[u0(s.value),a0(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||t_(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:i}=t;return Wt([s.value,typeof i?.value=="string"&&i.value.endsWith("\\")||uo(t,"url")?"":ft])}case"value-string":return W1(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 d5(s,"PostCSS")}}var W_={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:H_,embed:E5,insertPragma:Y5,massageAstNode:x5,getVisitorKeys:v5},J_=W_,d0=[{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}],X_={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},K_={singleQuote:X_.singleQuote},f0=K_,rh={};g1(rh,{css:()=>v7,less:()=>w7,scss:()=>F7});var G_=Ki(Jo()),Y_=Ki(G9()),Q_=Ki(sO());function Z_(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var e7=Z_;function t7(t){return t!==null&&typeof t=="object"}var eu=t7,r7=Ki(nO());function Ea(t,e,r){if(eu(t)){delete t.parent;for(let s in t)Ea(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 m0(t){if(eu(t)){delete t.parent;for(let e in t)m0(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var s7=r7.default.default;function i7(t){let e;try{e=s7(t)}catch{return{type:"selector-unknown",value:t}}return Ea(m0(e),"media-")}var n7=i7,a7=Ki(AO());function o7(t){if(/\/[/*]/u.test(Ge(0,t,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new a7.default(r=>{e=r}).process(t)}catch{return{type:"selector-unknown",value:t}}return Ea(e,"selector-")}var Bs=o7,u7=Ki($O()),l7=t=>{for(;t.parent;)t=t.parent;return t},y0=l7;function p7(t){return y0(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var c7=p7;function h7(t){if(Qo(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 d7=h7;function f7(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var m7=f7;function y7(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var g7=y7,Em=t=>t.type==="paren"&&t.value===")";function D7(t,e){let{nodes:r}=t,s={open:null,close:null,groups:[],type:"paren_group"},i=[s],a=s,u={groups:[],type:"comma_group"},p=[u];for(let h=0;h<r.length;++h){let m=r[h];if(e.parser==="scss"&&m.type==="number"&&m.unit===".."&&m.value.endsWith(".")&&(m.value=m.value.slice(0,-1),m.unit="..."),m.type==="func"&&m.value==="selector"&&(m.group.groups=[Bs(y0(t).text.slice(m.group.open.sourceIndex+1,m.group.close.sourceIndex))]),m.type==="func"&&m.value==="url"){let f=m.group?.groups??[],d=[];for(let D=0;D<f.length;D++){let g=f[D];g.type==="comma_group"?d=[...d,...g.groups]:d.push(g)}(d7(d)||!m7(d)&&!g7(d[0],e))&&(m.group.groups=[c7(m)])}if(m.type==="paren"&&m.value==="(")s={open:m,close:null,groups:[],type:"paren_group"},i.push(s),u={groups:[],type:"comma_group"},p.push(u);else if(Em(m)){if(u.groups.length>0&&s.groups.push(u),s.close=m,p.length===1)throw new Error("Unbalanced parenthesis");p.pop(),u=zs(0,p,-1),u.groups.push(s),i.pop(),s=zs(0,i,-1)}else if(m.type==="comma"){if(h===r.length-3&&r[h+1].type==="comment"&&Em(r[h+2]))continue;s.groups.push(u),u={groups:[],type:"comma_group"},p[p.length-1]=u}else u.groups.push(m)}return u.groups.length>0&&s.groups.push(u),a}function ep(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?ep(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(ep)}:t}function g0(t,e){if(eu(t))for(let r in t)r!=="parent"&&(g0(t[r],e),r==="nodes"&&(t.group=ep(D7(t,e)),delete t[r]));return t}function x7(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let r=null;try{r=new u7.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}r.text=t;let s=g0(r,e);return Ea(s,"value-",/^selector-/u)}var Is=x7,E7=new Set(["import","use","forward"]);function A7(t){return E7.has(t)}var C7=A7;function T7(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var b7=T7,S7=/(\s*)(!default).*$/u,P7=/(\s*)(!global).*$/u;function D0(t,e){if(eu(t)){delete t.parent;for(let a in t)D0(t[a],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 a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),p="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),h=Ge(0,u,/[^\n]/gu," ")+p,m;e.parser==="scss"?m=A0:e.parser==="less"?m=E0:m=x0;let f;try{f=m(h,{...e})}catch{}f?.nodes?.length===1&&f.nodes[0].type==="css-rule"&&(a=f.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}: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=Is(r,e),t):(b7(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Bs(r),t);if(s.trim().length>0){let a=s.match(S7);a&&(s=s.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=s.match(P7);if(u&&(s=s.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};t.value=Is(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=Bs(s.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Bs(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=a,t.selector=Bs(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let a=t.name.split(":");t.name=a[0];let u=a.slice(1).join(":");t.params&&(u+=t.params),t.value=Is(u,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=Is(a,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:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:i},t):a==="extend"||a==="nest"?(t.selector=Bs(i),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(i)?t.params=Is(i,e):(t.selector=Bs(i),delete t.params),t):C7(u)?(t.import=!0,delete t.filename,t.params=Is(i,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=Is(i,e),delete t.params,t):["media","custom-media"].includes(u)?i.includes("#{")?{type:"media-unknown",value:i}:(t.params=n7(i),t):(t.params=i,t)}}return t}function sh(t,e,r){let{frontMatter:s,content:i}=Zo(e),a;try{a=t(i,{map:!1})}catch(u){let{name:p,reason:h,line:m,column:f}=u;throw typeof m!="number"?u:e7(`${p}: ${h}`,{loc:{start:{line:m,column:f}},cause:u})}return r.originalText=e,a=D0(Ea(a,"css-"),r),t0(a,e),s&&(a.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),a}function x0(t,e={}){return sh(G_.default.default,t,e)}function E0(t,e={}){return sh(r=>Y_.default.parse(I5(r)),t,e)}function A0(t,e={}){return sh(Q_.default,t,e)}var ih={astFormat:"postcss",hasPragma:K5,hasIgnorePragma:G5,locStart:Pt,locEnd:vt},v7={...ih,parse:x0},w7={...ih,parse:E0},F7={...ih,parse:A0},C0={postcss:J_};const jM=Object.freeze(Object.defineProperty({__proto__:null,default:B1,languages:d0,options:f0,parsers:rh,printers:C0},Symbol.toStringTag,{value:"Module"}));var cl={exports:{}},Am;function k7(){return Am||(Am=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,a=Object.prototype.hasOwnProperty,u=(o,n)=>{for(var l in n)r(o,l,{get:n[l],enumerable:!0})},p=(o,n,l,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let y of i(n))!a.call(o,y)&&y!==l&&r(o,y,{get:()=>n[y],enumerable:!(c=s(n,y))||c.enumerable});return o},h=o=>p(r({},"__esModule",{value:!0}),o),m={};u(m,{parsers:()=>aA});var f={};u(f,{__babel_estree:()=>ZE,__js_expression:()=>ed,__ts_expression:()=>td,__vue_event_binding:()=>Qh,__vue_expression:()=>ed,__vue_ts_event_binding:()=>Zh,__vue_ts_expression:()=>td,babel:()=>Qh,"babel-flow":()=>rd,"babel-ts":()=>Zh});function d(o,n){if(o==null)return{};var l={};for(var c in o)if({}.hasOwnProperty.call(o,c)){if(n.indexOf(c)!==-1)continue;l[c]=o[c]}return l}var D=class{line;column;index;constructor(o,n,l){this.line=o,this.column=n,this.index=l}},g=class{start;end;filename;identifierName;constructor(o,n){this.start=o,this.end=n}};function E(o,n){let{line:l,column:c,index:y}=o;return new D(l,c+n,y+n)}var x="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",T={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"},A=o=>o.type==="UpdateExpression"?b.UpdateExpression[`${o.prefix}`]:b[o.type],S={AccessorIsGenerator:({kind:o})=>`A ${o}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:o})=>`Missing initializer in ${o} 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:o})=>`\`${o}\` 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:o,exportName:n})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
171
|
+
- Did you mean \`export { '${o}' as '${n}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:o})=>`'${o==="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:o})=>`Unsyntactic ${o==="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:o})=>`A string literal cannot be used as an imported binding.
|
|
172
|
+
- Did you mean \`import { "${o}" 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:o})=>`Expected number in radix ${o}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:o})=>`Escape sequence in keyword ${o}.`,InvalidIdentifier:({identifierName:o})=>`Invalid identifier ${o}.`,InvalidLhs:({ancestor:o})=>`Invalid left-hand side in ${A(o)}.`,InvalidLhsBinding:({ancestor:o})=>`Binding invalid left-hand side in ${A(o)}.`,InvalidLhsOptionalChaining:({ancestor:o})=>`Invalid optional chaining in the left-hand side of ${A(o)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:o})=>`Unexpected character '${o}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:o})=>`Private name #${o} 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:o})=>`Label '${o}' 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:o})=>`This experimental syntax requires enabling the parser plugin: ${o.map(n=>JSON.stringify(n)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:o})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${o.map(n=>JSON.stringify(n)).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:o})=>`Duplicate key "${o}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:o})=>`An export name cannot include a lone surrogate, found '\\u${o.toString(16)}'.`,ModuleExportUndefined:({localName:o})=>`Export '${o}' 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:o})=>`Private names are only allowed in property accesses (\`obj.#${o}\`) or in \`in\` expressions (\`#${o} in obj\`).`,PrivateNameRedeclaration:({identifierName:o})=>`Duplicate private name #${o}.`,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:o})=>`Unexpected keyword '${o}'.`,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:o})=>`Unexpected reserved word '${o}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:o,unexpected:n})=>`Unexpected token${n?` '${n}'.`:""}${o?`, expected "${o}"`:""}`,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:o,onlyValidPropertyName:n})=>`The only valid meta property for ${o} is ${o}.${n}.`,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:o})=>`Identifier '${o}' 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."},k={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:o})=>`Assigning to '${o}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:o})=>`Binding '${o}' 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."},v={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:o})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(o)}\`.`},_=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),$=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:o})=>`Invalid topic token ${o}. In order to use ${o} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${o}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:o})=>`Hack-style pipe body cannot be an unparenthesized ${A({type:o})}; please wrap it in parentheses.`},{}),j=["message"];function H(o,n,l){Object.defineProperty(o,n,{enumerable:!1,configurable:!0,value:l})}function q({toMessage:o,code:n,reasonCode:l,syntaxPlugin:c}){let y=l==="MissingPlugin"||l==="MissingOneOfPlugins";return function C(P,w){let B=new SyntaxError;return B.code=n,B.reasonCode=l,B.loc=P,B.pos=P.index,B.syntaxPlugin=c,y&&(B.missingPlugin=w.missingPlugin),H(B,"clone",function(I={}){let{line:X,column:Q,index:ye}=I.loc??P;return C(new D(X,Q,ye),Object.assign({},w,I.details))}),H(B,"details",w),Object.defineProperty(B,"message",{configurable:!0,get(){let I=`${o(w)} (${P.line}:${P.column})`;return this.message=I,I},set(I){Object.defineProperty(this,"message",{value:I,writable:!0})}}),B}}function W(o,n){if(Array.isArray(o))return c=>W(c,o[0]);let l={};for(let c of Object.keys(o)){let y=o[c],C=typeof y=="string"?{message:()=>y}:typeof y=="function"?{message:y}:y,{message:P}=C,w=d(C,j),B=typeof P=="string"?()=>P:P;l[c]=q(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:c,toMessage:B},n?{syntaxPlugin:n}:{},w))}return l}var F=Object.assign({},W(T),W(S),W(k),W(v),W`pipelineOperator`($));function R(){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 te(o){let n=R();if(o==null)return n;if(o.annexB!=null&&o.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let l of Object.keys(n))o[l]!=null&&(n[l]=o[l]);if(n.startLine===1)o.startIndex==null&&n.startColumn>0?n.startIndex=n.startColumn:o.startColumn==null&&n.startIndex>0&&(n.startColumn=n.startIndex);else if(o.startColumn==null||o.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(n.sourceType==="commonjs"){if(o.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(o.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(o.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return n}var{defineProperty:ie}=Object,re=(o,n)=>{o&&ie(o,n,{enumerable:!1,value:o[n]})};function we(o){return re(o.loc.start,"index"),re(o.loc.end,"index"),o}var be=o=>class extends o{parse(){let n=we(super.parse());return this.optionFlags&256&&(n.tokens=n.tokens.map(we)),n}parseRegExpLiteral({pattern:n,flags:l}){let c=null;try{c=new RegExp(n,l)}catch{}let y=this.estreeParseLiteral(c);return y.regex={pattern:n,flags:l},y}parseBigIntLiteral(n){let l;try{l=BigInt(n)}catch{l=null}let c=this.estreeParseLiteral(l);return c.bigint=String(c.value||n),c}parseDecimalLiteral(n){let l=this.estreeParseLiteral(null);return l.decimal=String(l.value||n),l}estreeParseLiteral(n){return this.parseLiteral(n,"Literal")}parseStringLiteral(n){return this.estreeParseLiteral(n)}parseNumericLiteral(n){return this.estreeParseLiteral(n)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(n){return this.estreeParseLiteral(n)}estreeParseChainExpression(n,l){let c=this.startNodeAtNode(n);return c.expression=n,this.finishNodeAt(c,"ChainExpression",l)}directiveToStmt(n){let l=n.value;delete n.value,this.castNodeTo(l,"Literal"),l.raw=l.extra.raw,l.value=l.extra.expressionValue;let c=this.castNodeTo(n,"ExpressionStatement");return c.expression=l,c.directive=l.extra.rawValue,delete l.extra,c}fillOptionalPropertiesForTSESLint(n){}cloneEstreeStringLiteral(n){let{start:l,end:c,loc:y,range:C,raw:P,value:w}=n,B=Object.create(n.constructor.prototype);return B.type="Literal",B.start=l,B.end=c,B.loc=y,B.range=C,B.raw=P,B.value=w,B}initFunction(n,l){super.initFunction(n,l),n.expression=!1}checkDeclaration(n){n!=null&&this.isObjectProperty(n)?this.checkDeclaration(n.value):super.checkDeclaration(n)}getObjectOrClassMethodParams(n){return n.value.params}isValidDirective(n){return n.type==="ExpressionStatement"&&n.expression.type==="Literal"&&typeof n.expression.value=="string"&&!n.expression.extra?.parenthesized}parseBlockBody(n,l,c,y,C){super.parseBlockBody(n,l,c,y,C);let P=n.directives.map(w=>this.directiveToStmt(w));n.body=P.concat(n.body),delete n.directives}parsePrivateName(){let n=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(n)}convertPrivateNameToPrivateIdentifier(n){let l=super.getPrivateNameSV(n);return delete n.id,n.name=l,this.castNodeTo(n,"PrivateIdentifier")}isPrivateName(n){return n.type==="PrivateIdentifier"}getPrivateNameSV(n){return n.name}parseLiteral(n,l){let c=super.parseLiteral(n,l);return c.raw=c.extra.raw,delete c.extra,c}parseFunctionBody(n,l,c=!1){super.parseFunctionBody(n,l,c),n.expression=n.body.type!=="BlockStatement"}parseMethod(n,l,c,y,C,P,w=!1){let B=this.startNode();B.kind=n.kind,B=super.parseMethod(B,l,c,y,C,P,w),delete B.kind;let{typeParameters:I}=n;I&&(delete n.typeParameters,B.typeParameters=I,this.resetStartLocationFromNode(B,I));let X=this.castNodeTo(B,this.hasPlugin("typescript")&&!B.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return n.value=X,P==="ClassPrivateMethod"&&(n.computed=!1),this.hasPlugin("typescript")&&n.abstract?(delete n.abstract,this.finishNode(n,"TSAbstractMethodDefinition")):P==="ObjectMethod"?(n.kind==="method"&&(n.kind="init"),n.shorthand=!1,this.finishNode(n,"Property")):this.finishNode(n,"MethodDefinition")}nameIsConstructor(n){return n.type==="Literal"?n.value==="constructor":super.nameIsConstructor(n)}parseClassProperty(...n){let l=super.parseClassProperty(...n);return l.abstract&&this.hasPlugin("typescript")?(delete l.abstract,this.castNodeTo(l,"TSAbstractPropertyDefinition")):this.castNodeTo(l,"PropertyDefinition"),l}parseClassPrivateProperty(...n){let l=super.parseClassPrivateProperty(...n);return l.abstract&&this.hasPlugin("typescript")?this.castNodeTo(l,"TSAbstractPropertyDefinition"):this.castNodeTo(l,"PropertyDefinition"),l.computed=!1,l}parseClassAccessorProperty(n){let l=super.parseClassAccessorProperty(n);return l.abstract&&this.hasPlugin("typescript")?(delete l.abstract,this.castNodeTo(l,"TSAbstractAccessorProperty")):this.castNodeTo(l,"AccessorProperty"),l}parseObjectProperty(n,l,c,y){let C=super.parseObjectProperty(n,l,c,y);return C&&(C.kind="init",this.castNodeTo(C,"Property")),C}finishObjectProperty(n){return n.kind="init",this.finishNode(n,"Property")}isValidLVal(n,l,c,y){return n==="Property"?"value":super.isValidLVal(n,l,c,y)}isAssignable(n,l){return n!=null&&this.isObjectProperty(n)?this.isAssignable(n.value,l):super.isAssignable(n,l)}toAssignable(n,l=!1){if(n!=null&&this.isObjectProperty(n)){let{key:c,value:y}=n;this.isPrivateName(c)&&this.classScope.usePrivateName(this.getPrivateNameSV(c),c.loc.start),this.toAssignable(y,l)}else super.toAssignable(n,l)}toAssignableObjectExpressionProp(n,l,c){n.type==="Property"&&(n.kind==="get"||n.kind==="set")?this.raise(F.PatternHasAccessor,n.key):n.type==="Property"&&n.method?this.raise(F.PatternHasMethod,n.key):super.toAssignableObjectExpressionProp(n,l,c)}finishCallExpression(n,l){let c=super.finishCallExpression(n,l);return c.callee.type==="Import"?(this.castNodeTo(c,"ImportExpression"),c.source=c.arguments[0],c.options=c.arguments[1]??null,delete c.arguments,delete c.callee):c.type==="OptionalCallExpression"?this.castNodeTo(c,"CallExpression"):c.optional=!1,c}toReferencedArguments(n){n.type!=="ImportExpression"&&super.toReferencedArguments(n)}parseExport(n,l){let c=this.state.lastTokStartLoc,y=super.parseExport(n,l);switch(y.type){case"ExportAllDeclaration":y.exported=null;break;case"ExportNamedDeclaration":y.specifiers.length===1&&y.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(y,"ExportAllDeclaration"),y.exported=y.specifiers[0].exported,delete y.specifiers);case"ExportDefaultDeclaration":{let{declaration:C}=y;C?.type==="ClassDeclaration"&&C.decorators?.length>0&&C.start===y.start&&this.resetStartLocation(y,c)}break}return y}stopParseSubscript(n,l){let c=super.stopParseSubscript(n,l);return l.optionalChainMember?this.estreeParseChainExpression(c,n.loc.end):c}parseMember(n,l,c,y,C){let P=super.parseMember(n,l,c,y,C);return P.type==="OptionalMemberExpression"?this.castNodeTo(P,"MemberExpression"):P.optional=!1,P}isOptionalMemberExpression(n){return n.type==="ChainExpression"?n.expression.type==="MemberExpression":super.isOptionalMemberExpression(n)}hasPropertyAsPrivateName(n){return n.type==="ChainExpression"&&(n=n.expression),super.hasPropertyAsPrivateName(n)}isObjectProperty(n){return n.type==="Property"&&n.kind==="init"&&!n.method}isObjectMethod(n){return n.type==="Property"&&(n.method||n.kind==="get"||n.kind==="set")}castNodeTo(n,l){let c=super.castNodeTo(n,l);return this.fillOptionalPropertiesForTSESLint(c),c}cloneIdentifier(n){let l=super.cloneIdentifier(n);return this.fillOptionalPropertiesForTSESLint(l),l}cloneStringLiteral(n){return n.type==="Literal"?this.cloneEstreeStringLiteral(n):super.cloneStringLiteral(n)}finishNodeAt(n,l,c){return we(super.finishNodeAt(n,l,c))}finishNode(n,l){let c=super.finishNode(n,l);return this.fillOptionalPropertiesForTSESLint(c),c}resetStartLocation(n,l){super.resetStartLocation(n,l),we(n)}resetEndLocation(n,l=this.state.lastTokEndLoc){super.resetEndLocation(n,l),we(n)}},Ze=class{constructor(o,n){this.token=o,this.preserveSpace=!!n}token;preserveSpace},he={brace:new Ze("{"),j_oTag:new Ze("<tag"),j_cTag:new Ze("</tag"),j_expr:new Ze("<tag>...</tag>",!0)},De=!0,Z=!0,gt=!0,Re=!0,ut=!0,Ts=!0,ae=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(o,n={}){this.label=o,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.rightAssociative=!!n.rightAssociative,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop!=null?n.binop:null}},J=new Map;function V(o,n={}){n.keyword=o;let l=ce(o,n);return J.set(o,l),l}function fe(o,n){return ce(o,{beforeExpr:De,binop:n})}var Se=-1,Me=[],Tt=[],Vt=[],zt=[],Yr=[],si=[];function ce(o,n={}){return++Se,Tt.push(o),Vt.push(n.binop??-1),zt.push(n.beforeExpr??!1),Yr.push(n.startsExpr??!1),si.push(n.prefix??!1),Me.push(new ae(o,n)),Se}function Ee(o,n={}){return++Se,J.set(o,Se),Tt.push(o),Vt.push(n.binop??-1),zt.push(n.beforeExpr??!1),Yr.push(n.startsExpr??!1),si.push(n.prefix??!1),Me.push(new ae("name",n)),Se}var bs={bracketL:ce("[",{beforeExpr:De,startsExpr:Z}),bracketHashL:ce("#[",{beforeExpr:De,startsExpr:Z}),bracketBarL:ce("[|",{beforeExpr:De,startsExpr:Z}),bracketR:ce("]"),bracketBarR:ce("|]"),braceL:ce("{",{beforeExpr:De,startsExpr:Z}),braceBarL:ce("{|",{beforeExpr:De,startsExpr:Z}),braceHashL:ce("#{",{beforeExpr:De,startsExpr:Z}),braceR:ce("}"),braceBarR:ce("|}"),parenL:ce("(",{beforeExpr:De,startsExpr:Z}),parenR:ce(")"),comma:ce(",",{beforeExpr:De}),semi:ce(";",{beforeExpr:De}),colon:ce(":",{beforeExpr:De}),doubleColon:ce("::",{beforeExpr:De}),dot:ce("."),question:ce("?",{beforeExpr:De}),questionDot:ce("?."),arrow:ce("=>",{beforeExpr:De}),template:ce("template"),ellipsis:ce("...",{beforeExpr:De}),backQuote:ce("`",{startsExpr:Z}),dollarBraceL:ce("${",{beforeExpr:De,startsExpr:Z}),templateTail:ce("...`",{startsExpr:Z}),templateNonTail:ce("...${",{beforeExpr:De,startsExpr:Z}),at:ce("@"),hash:ce("#",{startsExpr:Z}),interpreterDirective:ce("#!..."),eq:ce("=",{beforeExpr:De,isAssign:Re}),assign:ce("_=",{beforeExpr:De,isAssign:Re}),slashAssign:ce("_=",{beforeExpr:De,isAssign:Re}),xorAssign:ce("_=",{beforeExpr:De,isAssign:Re}),moduloAssign:ce("_=",{beforeExpr:De,isAssign:Re}),incDec:ce("++/--",{prefix:ut,postfix:Ts,startsExpr:Z}),bang:ce("!",{beforeExpr:De,prefix:ut,startsExpr:Z}),tilde:ce("~",{beforeExpr:De,prefix:ut,startsExpr:Z}),doubleCaret:ce("^^",{startsExpr:Z}),doubleAt:ce("@@",{startsExpr:Z}),pipeline:fe("|>",0),nullishCoalescing:fe("??",1),logicalOR:fe("||",1),logicalAND:fe("&&",2),bitwiseOR:fe("|",3),bitwiseXOR:fe("^",4),bitwiseAND:fe("&",5),equality:fe("==/!=/===/!==",6),lt:fe("</>/<=/>=",7),gt:fe("</>/<=/>=",7),relational:fe("</>/<=/>=",7),bitShift:fe("<</>>/>>>",8),bitShiftL:fe("<</>>/>>>",8),bitShiftR:fe("<</>>/>>>",8),plusMin:ce("+/-",{beforeExpr:De,binop:9,prefix:ut,startsExpr:Z}),modulo:ce("%",{binop:10,startsExpr:Z}),star:ce("*",{binop:10}),slash:fe("/",10),exponent:ce("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:V("in",{beforeExpr:De,binop:7}),_instanceof:V("instanceof",{beforeExpr:De,binop:7}),_break:V("break"),_case:V("case",{beforeExpr:De}),_catch:V("catch"),_continue:V("continue"),_debugger:V("debugger"),_default:V("default",{beforeExpr:De}),_else:V("else",{beforeExpr:De}),_finally:V("finally"),_function:V("function",{startsExpr:Z}),_if:V("if"),_return:V("return",{beforeExpr:De}),_switch:V("switch"),_throw:V("throw",{beforeExpr:De,prefix:ut,startsExpr:Z}),_try:V("try"),_var:V("var"),_const:V("const"),_with:V("with"),_new:V("new",{beforeExpr:De,startsExpr:Z}),_this:V("this",{startsExpr:Z}),_super:V("super",{startsExpr:Z}),_class:V("class",{startsExpr:Z}),_extends:V("extends",{beforeExpr:De}),_export:V("export"),_import:V("import",{startsExpr:Z}),_null:V("null",{startsExpr:Z}),_true:V("true",{startsExpr:Z}),_false:V("false",{startsExpr:Z}),_typeof:V("typeof",{beforeExpr:De,prefix:ut,startsExpr:Z}),_void:V("void",{beforeExpr:De,prefix:ut,startsExpr:Z}),_delete:V("delete",{beforeExpr:De,prefix:ut,startsExpr:Z}),_do:V("do",{isLoop:gt,beforeExpr:De}),_for:V("for",{isLoop:gt}),_while:V("while",{isLoop:gt}),_as:Ee("as",{startsExpr:Z}),_assert:Ee("assert",{startsExpr:Z}),_async:Ee("async",{startsExpr:Z}),_await:Ee("await",{startsExpr:Z}),_defer:Ee("defer",{startsExpr:Z}),_from:Ee("from",{startsExpr:Z}),_get:Ee("get",{startsExpr:Z}),_let:Ee("let",{startsExpr:Z}),_meta:Ee("meta",{startsExpr:Z}),_of:Ee("of",{startsExpr:Z}),_sent:Ee("sent",{startsExpr:Z}),_set:Ee("set",{startsExpr:Z}),_source:Ee("source",{startsExpr:Z}),_static:Ee("static",{startsExpr:Z}),_using:Ee("using",{startsExpr:Z}),_yield:Ee("yield",{startsExpr:Z}),_asserts:Ee("asserts",{startsExpr:Z}),_checks:Ee("checks",{startsExpr:Z}),_exports:Ee("exports",{startsExpr:Z}),_global:Ee("global",{startsExpr:Z}),_implements:Ee("implements",{startsExpr:Z}),_intrinsic:Ee("intrinsic",{startsExpr:Z}),_infer:Ee("infer",{startsExpr:Z}),_is:Ee("is",{startsExpr:Z}),_mixins:Ee("mixins",{startsExpr:Z}),_proto:Ee("proto",{startsExpr:Z}),_require:Ee("require",{startsExpr:Z}),_satisfies:Ee("satisfies",{startsExpr:Z}),_keyof:Ee("keyof",{startsExpr:Z}),_readonly:Ee("readonly",{startsExpr:Z}),_unique:Ee("unique",{startsExpr:Z}),_abstract:Ee("abstract",{startsExpr:Z}),_declare:Ee("declare",{startsExpr:Z}),_enum:Ee("enum",{startsExpr:Z}),_module:Ee("module",{startsExpr:Z}),_namespace:Ee("namespace",{startsExpr:Z}),_interface:Ee("interface",{startsExpr:Z}),_type:Ee("type",{startsExpr:Z}),_opaque:Ee("opaque",{startsExpr:Z}),name:ce("name",{startsExpr:Z}),placeholder:ce("%%",{startsExpr:Z}),string:ce("string",{startsExpr:Z}),num:ce("num",{startsExpr:Z}),bigint:ce("bigint",{startsExpr:Z}),decimal:ce("decimal",{startsExpr:Z}),regexp:ce("regexp",{startsExpr:Z}),privateName:ce("#name",{startsExpr:Z}),eof:ce("eof"),jsxName:ce("jsxName"),jsxText:ce("jsxText",{beforeExpr:De}),jsxTagStart:ce("jsxTagStart",{startsExpr:Z}),jsxTagEnd:ce("jsxTagEnd")};function Le(o){return o>=93&&o<=133}function ii(o){return o<=92}function dt(o){return o>=58&&o<=133}function nh(o){return o>=58&&o<=137}function S0(o){return zt[o]}function Qi(o){return Yr[o]}function P0(o){return o>=29&&o<=33}function ah(o){return o>=129&&o<=131}function v0(o){return o>=90&&o<=92}function tu(o){return o>=58&&o<=92}function w0(o){return o>=39&&o<=59}function F0(o){return o===34}function k0(o){return si[o]}function I0(o){return o>=121&&o<=123}function N0(o){return o>=124&&o<=130}function Qr(o){return Tt[o]}function Aa(o){return Vt[o]}function B0(o){return o===57}function ru(o){return o>=24&&o<=25}function oh(o){return Me[o]}var su="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",uh="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",L0=new RegExp("["+su+"]"),O0=new RegExp("["+su+uh+"]");su=uh=null;var lh=[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],_0=[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 iu(o,n){let l=65536;for(let c=0,y=n.length;c<y;c+=2){if(l+=n[c],l>o)return!1;if(l+=n[c+1],l>=o)return!0}return!1}function ur(o){return o<65?o===36:o<=90?!0:o<97?o===95:o<=122?!0:o<=65535?o>=170&&L0.test(String.fromCharCode(o)):iu(o,lh)}function Ss(o){return o<48?o===36:o<58?!0:o<65?!1:o<=90?!0:o<97?o===95:o<=122?!0:o<=65535?o>=170&&O0.test(String.fromCharCode(o)):iu(o,lh)||iu(o,_0)}var nu={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"]},M0=new Set(nu.keyword),$0=new Set(nu.strict),j0=new Set(nu.strictBind);function ph(o,n){return n&&o==="await"||o==="enum"}function ch(o,n){return ph(o,n)||$0.has(o)}function hh(o){return j0.has(o)}function dh(o,n){return ch(o,n)||hh(o)}function R0(o){return M0.has(o)}function U0(o,n,l){return o===64&&n===64&&ur(l)}var q0=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 V0(o){return q0.has(o)}var au=class{flags=0;names=new Map;firstLexicalName="";constructor(o){this.flags=o}},ou=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(o,n){this.parser=o,this.inModule=n}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 o=this.currentThisScopeFlags();return(o&64)>0&&(o&2)===0}get inStaticBlock(){for(let o=this.scopeStack.length-1;;o--){let{flags:n}=this.scopeStack[o];if(n&128)return!0;if(n&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(o){return new au(o)}enter(o){this.scopeStack.push(this.createScope(o))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(o){return!!(o.flags&130||!this.parser.inModule&&o.flags&1)}declareName(o,n,l){let c=this.currentScope();if(n&8||n&16){this.checkRedeclarationInScope(c,o,n,l);let y=c.names.get(o)||0;n&16?y=y|4:(c.firstLexicalName||(c.firstLexicalName=o),y=y|2),c.names.set(o,y),n&8&&this.maybeExportDefined(c,o)}else if(n&4)for(let y=this.scopeStack.length-1;y>=0&&(c=this.scopeStack[y],this.checkRedeclarationInScope(c,o,n,l),c.names.set(o,(c.names.get(o)||0)|1),this.maybeExportDefined(c,o),!(c.flags&1667));--y);this.parser.inModule&&c.flags&1&&this.undefinedExports.delete(o)}maybeExportDefined(o,n){this.parser.inModule&&o.flags&1&&this.undefinedExports.delete(n)}checkRedeclarationInScope(o,n,l,c){this.isRedeclaredInScope(o,n,l)&&this.parser.raise(F.VarRedeclaration,c,{identifierName:n})}isRedeclaredInScope(o,n,l){if(!(l&1))return!1;if(l&8)return o.names.has(n);let c=o.names.get(n)||0;return l&16?(c&2)>0||!this.treatFunctionsAsVarInScope(o)&&(c&1)>0:(c&2)>0&&!(o.flags&8&&o.firstLexicalName===n)||!this.treatFunctionsAsVarInScope(o)&&(c&4)>0}checkLocalExport(o){let{name:n}=o;this.scopeStack[0].names.has(n)||this.undefinedExports.set(n,o.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let o=this.scopeStack.length-1;;o--){let{flags:n}=this.scopeStack[o];if(n&1667)return n}}currentThisScopeFlags(){for(let o=this.scopeStack.length-1;;o--){let{flags:n}=this.scopeStack[o];if(n&1731&&!(n&4))return n}}},z0=class extends au{declareFunctions=new Set},H0=class extends ou{createScope(o){return new z0(o)}declareName(o,n,l){let c=this.currentScope();if(n&2048){this.checkRedeclarationInScope(c,o,n,l),this.maybeExportDefined(c,o),c.declareFunctions.add(o);return}super.declareName(o,n,l)}isRedeclaredInScope(o,n,l){if(super.isRedeclaredInScope(o,n,l))return!0;if(l&2048&&!o.declareFunctions.has(n)){let c=o.names.get(n);return(c&4)>0||(c&2)>0}return!1}checkLocalExport(o){this.scopeStack[0].declareFunctions.has(o.name)||super.checkLocalExport(o)}},W0=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),me=W`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:o})=>`Cannot overwrite reserved type ${o}.`,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:o,enumName:n})=>`Boolean enum members need to be initialized. Use either \`${o} = true,\` or \`${o} = false,\` in enum \`${n}\`.`,EnumDuplicateMemberName:({memberName:o,enumName:n})=>`Enum member names need to be unique, but the name \`${o}\` has already been used before in enum \`${n}\`.`,EnumInconsistentMemberValues:({enumName:o})=>`Enum \`${o}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:o,enumName:n})=>`Enum type \`${o}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${n}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:o})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${o}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:o,memberName:n,explicitType:l})=>`Enum \`${o}\` has type \`${l}\`, so the initializer of \`${n}\` needs to be a ${l} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:o,memberName:n})=>`Symbol enum members cannot be initialized. Use \`${n},\` in enum \`${o}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:o,memberName:n})=>`The enum member initializer for \`${n}\` needs to be a literal (either a boolean, number, or string) in enum \`${o}\`.`,EnumInvalidMemberName:({enumName:o,memberName:n,suggestion:l})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${n}\`, consider using \`${l}\`, in enum \`${o}\`.`,EnumNumberMemberNotInitialized:({enumName:o,memberName:n})=>`Number enum members need to be initialized, e.g. \`${n} = 1\` in enum \`${o}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:o})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${o}\`.`,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:o})=>`Unexpected reserved type ${o}.`,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:o,suggestion:n})=>`\`declare export ${o}\` is not supported. Use \`${n}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function J0(o){return o.type==="DeclareExportAllDeclaration"||o.type==="DeclareExportDeclaration"&&(!o.declaration||o.declaration.type!=="TypeAlias"&&o.declaration.type!=="InterfaceDeclaration")}function fh(o){return o.importKind==="type"||o.importKind==="typeof"}var X0={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function K0(o,n){let l=[],c=[];for(let y=0;y<o.length;y++)(n(o[y],y,o)?l:c).push(o[y]);return[l,c]}var G0=/\*?\s*@((?:no)?flow)\b/,Y0=o=>class extends o{flowPragma=void 0;getScopeHandler(){return H0}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(n,l){n!==134&&n!==13&&n!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(n,l)}addComment(n){if(this.flowPragma===void 0){let l=G0.exec(n.value);if(l)if(l[1]==="flow")this.flowPragma="flow";else if(l[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(n)}flowParseTypeInitialiser(n){let l=this.state.inType;this.state.inType=!0,this.expect(n||14);let c=this.flowParseType();return this.state.inType=l,c}flowParsePredicate(){let n=this.startNode(),l=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>l.index+1&&this.raise(me.UnexpectedSpaceBetweenModuloChecks,l),this.eat(10)?(n.value=super.parseExpression(),this.expect(11),this.finishNode(n,"DeclaredPredicate")):this.finishNode(n,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let n=this.state.inType;this.state.inType=!0,this.expect(14);let l=null,c=null;return this.match(54)?(this.state.inType=n,c=this.flowParsePredicate()):(l=this.flowParseType(),this.state.inType=n,this.match(54)&&(c=this.flowParsePredicate())),[l,c]}flowParseDeclareClass(n){return this.next(),this.flowParseInterfaceish(n,!0),this.finishNode(n,"DeclareClass")}flowParseDeclareFunction(n){this.next();let l=n.id=this.parseIdentifier(),c=this.startNode(),y=this.startNode();this.match(47)?c.typeParameters=this.flowParseTypeParameterDeclaration():c.typeParameters=null,this.expect(10);let C=this.flowParseFunctionTypeParams();return c.params=C.params,c.rest=C.rest,c.this=C._this,this.expect(11),[c.returnType,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),y.typeAnnotation=this.finishNode(c,"FunctionTypeAnnotation"),l.typeAnnotation=this.finishNode(y,"TypeAnnotation"),this.resetEndLocation(l),this.semicolon(),this.scope.declareName(n.id.name,2048,n.id.loc.start),this.finishNode(n,"DeclareFunction")}flowParseDeclare(n,l){if(this.match(80))return this.flowParseDeclareClass(n);if(this.match(68))return this.flowParseDeclareFunction(n);if(this.match(74))return this.flowParseDeclareVariable(n);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(n):(l&&this.raise(me.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(n));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(n);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(n);if(this.isContextual(129))return this.flowParseDeclareInterface(n);if(this.match(82))return this.flowParseDeclareExportDeclaration(n,l);throw this.unexpected()}flowParseDeclareVariable(n){return this.next(),n.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(n.id.name,5,n.id.loc.start),this.semicolon(),this.finishNode(n,"DeclareVariable")}flowParseDeclareModule(n){this.scope.enter(0),this.match(134)?n.id=super.parseExprAtom():n.id=this.parseIdentifier();let l=n.body=this.startNode(),c=l.body=[];for(this.expect(5);!this.match(8);){let P=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(me.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),c.push(super.parseImport(P))):(this.expectContextual(125,me.UnsupportedStatementInDeclareModule),c.push(this.flowParseDeclare(P,!0)))}this.scope.exit(),this.expect(8),this.finishNode(l,"BlockStatement");let y=null,C=!1;return c.forEach(P=>{J0(P)?(y==="CommonJS"&&this.raise(me.AmbiguousDeclareModuleKind,P),y="ES"):P.type==="DeclareModuleExports"&&(C&&this.raise(me.DuplicateDeclareModuleExports,P),y==="ES"&&this.raise(me.AmbiguousDeclareModuleKind,P),y="CommonJS",C=!0)}),n.kind=y||"CommonJS",this.finishNode(n,"DeclareModule")}flowParseDeclareExportDeclaration(n,l){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?n.declaration=this.flowParseDeclare(this.startNode()):(n.declaration=this.flowParseType(),this.semicolon()),n.default=!0,this.finishNode(n,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!l){let c=this.state.value;throw this.raise(me.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:c,suggestion:X0[c]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return n.declaration=this.flowParseDeclare(this.startNode()),n.default=!1,this.finishNode(n,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return n=this.parseExport(n,null),n.type==="ExportNamedDeclaration"?(n.default=!1,delete n.exportKind,this.castNodeTo(n,"DeclareExportDeclaration")):this.castNodeTo(n,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(n){return this.next(),this.expectContextual(111),n.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(n,"DeclareModuleExports")}flowParseDeclareTypeAlias(n){this.next();let l=this.flowParseTypeAlias(n);return this.castNodeTo(l,"DeclareTypeAlias"),l}flowParseDeclareOpaqueType(n){this.next();let l=this.flowParseOpaqueType(n,!0);return this.castNodeTo(l,"DeclareOpaqueType"),l}flowParseDeclareInterface(n){return this.next(),this.flowParseInterfaceish(n,!1),this.finishNode(n,"DeclareInterface")}flowParseInterfaceish(n,l){if(n.id=this.flowParseRestrictedIdentifier(!l,!0),this.scope.declareName(n.id.name,l?17:8201,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.extends=[],this.eat(81))do n.extends.push(this.flowParseInterfaceExtends());while(!l&&this.eat(12));if(l){if(n.implements=[],n.mixins=[],this.eatContextual(117))do n.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do n.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}n.body=this.flowParseObjectType({allowStatic:l,allowExact:!1,allowSpread:!1,allowProto:l,allowInexact:!1})}flowParseInterfaceExtends(){let n=this.startNode();return n.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,this.finishNode(n,"InterfaceExtends")}flowParseInterface(n){return this.flowParseInterfaceish(n,!1),this.finishNode(n,"InterfaceDeclaration")}checkNotUnderscore(n){n==="_"&&this.raise(me.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(n,l,c){W0.has(n)&&this.raise(c?me.AssignReservedType:me.UnexpectedReservedType,l,{reservedType:n})}flowParseRestrictedIdentifier(n,l){return this.checkReservedType(this.state.value,this.state.startLoc,l),this.parseIdentifier(n)}flowParseTypeAlias(n){return n.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(n.id.name,8201,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(n,"TypeAlias")}flowParseOpaqueType(n,l){return this.expectContextual(130),n.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(n.id.name,8201,n.id.loc.start),this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,n.supertype=null,this.match(14)&&(n.supertype=this.flowParseTypeInitialiser(14)),n.impltype=null,l||(n.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(n,"OpaqueType")}flowParseTypeParameter(n=!1){let l=this.state.startLoc,c=this.startNode(),y=this.flowParseVariance(),C=this.flowParseTypeAnnotatableIdentifier();return c.name=C.name,c.variance=y,c.bound=C.typeAnnotation,this.match(29)?(this.eat(29),c.default=this.flowParseType()):n&&this.raise(me.MissingTypeParamDefault,l),this.finishNode(c,"TypeParameter")}flowParseTypeParameterDeclaration(){let n=this.state.inType,l=this.startNode();l.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let c=!1;do{let y=this.flowParseTypeParameter(c);l.params.push(y),y.default&&(c=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=n,this.finishNode(l,"TypeParameterDeclaration")}flowInTopLevelContext(n){if(this.curContext()!==he.brace){let l=this.state.context;this.state.context=[l[0]];try{return n()}finally{this.state.context=l}}else return n()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let n=this.startNode(),l=this.state.inType;return this.state.inType=!0,n.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let c=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)n.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=c}),this.state.inType=l,!this.state.inType&&this.curContext()===he.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(n,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let n=this.startNode(),l=this.state.inType;for(n.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)n.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=l,this.finishNode(n,"TypeParameterInstantiation")}flowParseInterfaceType(){let n=this.startNode();if(this.expectContextual(129),n.extends=[],this.eat(81))do n.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return n.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(n,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(n,l,c){return n.static=l,this.lookahead().type===14?(n.id=this.flowParseObjectPropertyKey(),n.key=this.flowParseTypeInitialiser()):(n.id=null,n.key=this.flowParseType()),this.expect(3),n.value=this.flowParseTypeInitialiser(),n.variance=c,this.finishNode(n,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(n,l){return n.static=l,n.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(n.method=!0,n.optional=!1,n.value=this.flowParseObjectTypeMethodish(this.startNodeAt(n.loc.start))):(n.method=!1,this.eat(17)&&(n.optional=!0),n.value=this.flowParseTypeInitialiser()),this.finishNode(n,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(n){for(n.params=[],n.rest=null,n.typeParameters=null,n.this=null,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(n.this=this.flowParseFunctionTypeParam(!0),n.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)n.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),n.returnType=this.flowParseTypeInitialiser(),this.finishNode(n,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(n,l){let c=this.startNode();return n.static=l,n.value=this.flowParseObjectTypeMethodish(c),this.finishNode(n,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:n,allowExact:l,allowSpread:c,allowProto:y,allowInexact:C}){let P=this.state.inType;this.state.inType=!0;let w=this.startNode();w.callProperties=[],w.properties=[],w.indexers=[],w.internalSlots=[];let B,I,X=!1;for(l&&this.match(6)?(this.expect(6),B=9,I=!0):(this.expect(5),B=8,I=!1),w.exact=I;!this.match(B);){let ye=!1,Ce=null,et=null,lt=this.startNode();if(y&&this.isContextual(118)){let Ke=this.lookahead();Ke.type!==14&&Ke.type!==17&&(this.next(),Ce=this.state.startLoc,n=!1)}if(n&&this.isContextual(106)){let Ke=this.lookahead();Ke.type!==14&&Ke.type!==17&&(this.next(),ye=!0)}let Xe=this.flowParseVariance();if(this.eat(0))Ce!=null&&this.unexpected(Ce),this.eat(0)?(Xe&&this.unexpected(Xe.loc.start),w.internalSlots.push(this.flowParseObjectTypeInternalSlot(lt,ye))):w.indexers.push(this.flowParseObjectTypeIndexer(lt,ye,Xe));else if(this.match(10)||this.match(47))Ce!=null&&this.unexpected(Ce),Xe&&this.unexpected(Xe.loc.start),w.callProperties.push(this.flowParseObjectTypeCallProperty(lt,ye));else{let Ke="init";if(this.isContextual(99)||this.isContextual(104)){let bu=this.lookahead();nh(bu.type)&&(Ke=this.state.value,this.next())}let Lt=this.flowParseObjectTypeProperty(lt,ye,Ce,Xe,Ke,c,C??!I);Lt===null?(X=!0,et=this.state.lastTokStartLoc):w.properties.push(Lt)}this.flowObjectTypeSemicolon(),et&&!this.match(8)&&!this.match(9)&&this.raise(me.UnexpectedExplicitInexactInObject,et)}this.expect(B),c&&(w.inexact=X);let Q=this.finishNode(w,"ObjectTypeAnnotation");return this.state.inType=P,Q}flowParseObjectTypeProperty(n,l,c,y,C,P,w){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(P?w||this.raise(me.InexactInsideExact,this.state.lastTokStartLoc):this.raise(me.InexactInsideNonObject,this.state.lastTokStartLoc),y&&this.raise(me.InexactVariance,y),null):(P||this.raise(me.UnexpectedSpreadType,this.state.lastTokStartLoc),c!=null&&this.unexpected(c),y&&this.raise(me.SpreadVariance,y),n.argument=this.flowParseType(),this.finishNode(n,"ObjectTypeSpreadProperty"));{n.key=this.flowParseObjectPropertyKey(),n.static=l,n.proto=c!=null,n.kind=C;let B=!1;return this.match(47)||this.match(10)?(n.method=!0,c!=null&&this.unexpected(c),y&&this.unexpected(y.loc.start),n.value=this.flowParseObjectTypeMethodish(this.startNodeAt(n.loc.start)),(C==="get"||C==="set")&&this.flowCheckGetterSetterParams(n),!P&&n.key.name==="constructor"&&n.value.this&&this.raise(me.ThisParamBannedInConstructor,n.value.this)):(C!=="init"&&this.unexpected(),n.method=!1,this.eat(17)&&(B=!0),n.value=this.flowParseTypeInitialiser(),n.variance=y),n.optional=B,this.finishNode(n,"ObjectTypeProperty")}}flowCheckGetterSetterParams(n){let l=n.kind==="get"?0:1,c=n.value.params.length+(n.value.rest?1:0);n.value.this&&this.raise(n.kind==="get"?me.GetterMayNotHaveThisParam:me.SetterMayNotHaveThisParam,n.value.this),c!==l&&this.raise(n.kind==="get"?F.BadGetterArity:F.BadSetterArity,n),n.kind==="set"&&n.value.rest&&this.raise(F.BadSetterRestParameter,n)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(n,l){n??(n=this.state.startLoc);let c=l||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let y=this.startNodeAt(n);y.qualification=c,y.id=this.flowParseRestrictedIdentifier(!0),c=this.finishNode(y,"QualifiedTypeIdentifier")}return c}flowParseGenericType(n,l){let c=this.startNodeAt(n);return c.typeParameters=null,c.id=this.flowParseQualifiedTypeIdentifier(n,l),this.match(47)&&(c.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(c,"GenericTypeAnnotation")}flowParseTypeofType(){let n=this.startNode();return this.expect(87),n.argument=this.flowParsePrimaryType(),this.finishNode(n,"TypeofTypeAnnotation")}flowParseTupleType(){let n=this.startNode();for(n.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(n.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(n,"TupleTypeAnnotation")}flowParseFunctionTypeParam(n){let l=null,c=!1,y=null,C=this.startNode(),P=this.lookahead(),w=this.state.type===78;return P.type===14||P.type===17?(w&&!n&&this.raise(me.ThisParamMustBeFirst,C),l=this.parseIdentifier(w),this.eat(17)&&(c=!0,w&&this.raise(me.ThisParamMayNotBeOptional,C)),y=this.flowParseTypeInitialiser()):y=this.flowParseType(),C.name=l,C.optional=c,C.typeAnnotation=y,this.finishNode(C,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(n){let l=this.startNodeAt(n.loc.start);return l.name=null,l.optional=!1,l.typeAnnotation=n,this.finishNode(l,"FunctionTypeParam")}flowParseFunctionTypeParams(n=[]){let l=null,c=null;for(this.match(78)&&(c=this.flowParseFunctionTypeParam(!0),c.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)n.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(l=this.flowParseFunctionTypeParam(!1)),{params:n,rest:l,_this:c}}flowIdentToTypeAnnotation(n,l,c){switch(c.name){case"any":return this.finishNode(l,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(l,"BooleanTypeAnnotation");case"mixed":return this.finishNode(l,"MixedTypeAnnotation");case"empty":return this.finishNode(l,"EmptyTypeAnnotation");case"number":return this.finishNode(l,"NumberTypeAnnotation");case"string":return this.finishNode(l,"StringTypeAnnotation");case"symbol":return this.finishNode(l,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(c.name),this.flowParseGenericType(n,c)}}flowParsePrimaryType(){let n=this.state.startLoc,l=this.startNode(),c,y,C=!1,P=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,y=this.flowParseTupleType(),this.state.noAnonFunctionType=P,y;case 47:{let w=this.startNode();return w.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),c=this.flowParseFunctionTypeParams(),w.params=c.params,w.rest=c.rest,w.this=c._this,this.expect(11),this.expect(19),w.returnType=this.flowParseType(),this.finishNode(w,"FunctionTypeAnnotation")}case 10:{let w=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Le(this.state.type)||this.match(78)){let B=this.lookahead().type;C=B!==17&&B!==14}else C=!0;if(C){if(this.state.noAnonFunctionType=!1,y=this.flowParseType(),this.state.noAnonFunctionType=P,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),y;this.eat(12)}return y?c=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(y)]):c=this.flowParseFunctionTypeParams(),w.params=c.params,w.rest=c.rest,w.this=c._this,this.expect(11),this.expect(19),w.returnType=this.flowParseType(),w.typeParameters=null,this.finishNode(w,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return l.value=this.match(85),this.next(),this.finishNode(l,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",l);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",l);throw this.raise(me.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(l,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(l,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(l,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(l,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tu(this.state.type)){let w=Qr(this.state.type);return this.next(),super.createIdentifier(l,w)}else if(Le(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,l,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let n=this.state.startLoc,l=this.flowParsePrimaryType(),c=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let y=this.startNodeAt(n),C=this.eat(18);c=c||C,this.expect(0),!C&&this.match(3)?(y.elementType=l,this.next(),l=this.finishNode(y,"ArrayTypeAnnotation")):(y.objectType=l,y.indexType=this.flowParseType(),this.expect(3),c?(y.optional=C,l=this.finishNode(y,"OptionalIndexedAccessType")):l=this.finishNode(y,"IndexedAccessType"))}return l}flowParsePrefixType(){let n=this.startNode();return this.eat(17)?(n.typeAnnotation=this.flowParsePrefixType(),this.finishNode(n,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let n=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let l=this.startNodeAt(n.loc.start);return l.params=[this.reinterpretTypeAsFunctionTypeParam(n)],l.rest=null,l.this=null,l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}return n}flowParseIntersectionType(){let n=this.startNode();this.eat(45);let l=this.flowParseAnonFunctionWithoutParens();for(n.types=[l];this.eat(45);)n.types.push(this.flowParseAnonFunctionWithoutParens());return n.types.length===1?l:this.finishNode(n,"IntersectionTypeAnnotation")}flowParseUnionType(){let n=this.startNode();this.eat(43);let l=this.flowParseIntersectionType();for(n.types=[l];this.eat(43);)n.types.push(this.flowParseIntersectionType());return n.types.length===1?l:this.finishNode(n,"UnionTypeAnnotation")}flowParseType(){let n=this.state.inType;this.state.inType=!0;let l=this.flowParseUnionType();return this.state.inType=n,l}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let n=this.state.startLoc,l=this.parseIdentifier();return this.flowParseGenericType(n,l)}else return this.flowParseType()}flowParseTypeAnnotation(){let n=this.startNode();return n.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(n,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(n){let l=n?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(l.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(l)),l}typeCastToParameter(n){return n.expression.typeAnnotation=n.typeAnnotation,this.resetEndLocation(n.expression,n.typeAnnotation.loc.end),n.expression}flowParseVariance(){let n=null;return this.match(53)?(n=this.startNode(),this.state.value==="+"?n.kind="plus":n.kind="minus",this.next(),this.finishNode(n,"Variance")):n}parseFunctionBody(n,l,c=!1){if(l){this.forwardNoArrowParamsConversionAt(n,()=>super.parseFunctionBody(n,!0,c));return}super.parseFunctionBody(n,!1,c)}parseFunctionBodyAndFinish(n,l,c=!1){if(this.match(14)){let y=this.startNode();[y.typeAnnotation,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.returnType=y.typeAnnotation?this.finishNode(y,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(n,l,c)}parseStatementLike(n){if(this.state.strict&&this.isContextual(129)){let c=this.lookahead();if(dt(c.type)){let y=this.startNode();return this.next(),this.flowParseInterface(y)}}else if(this.isContextual(126)){let c=this.startNode();return this.next(),this.flowParseEnumDeclaration(c)}let l=super.parseStatementLike(n);return this.flowPragma===void 0&&!this.isValidDirective(l)&&(this.flowPragma=null),l}parseExpressionStatement(n,l,c){if(l.type==="Identifier"){if(l.name==="declare"){if(this.match(80)||Le(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(n)}else if(Le(this.state.type)){if(l.name==="interface")return this.flowParseInterface(n);if(l.name==="type")return this.flowParseTypeAlias(n);if(l.name==="opaque")return this.flowParseOpaqueType(n,!1)}}return super.parseExpressionStatement(n,l,c)}shouldParseExportDeclaration(){let{type:n}=this.state;return n===126||ah(n)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:n}=this.state;return n===126||ah(n)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}return super.parseExportDefaultExpression()}parseConditional(n,l,c){if(!this.match(17))return n;if(this.state.maybeInArrowParameters){let Q=this.lookaheadCharCode();if(Q===44||Q===61||Q===58||Q===41)return this.setOptionalParametersError(c),n}this.expect(17);let y=this.state.clone(),C=this.state.noArrowAt,P=this.startNodeAt(l),{consequent:w,failed:B}=this.tryParseConditionalConsequent(),[I,X]=this.getArrowLikeExpressions(w);if(B||X.length>0){let Q=[...C];if(X.length>0){this.state=y,this.state.noArrowAt=Q;for(let ye=0;ye<X.length;ye++)Q.push(X[ye].start);({consequent:w,failed:B}=this.tryParseConditionalConsequent()),[I,X]=this.getArrowLikeExpressions(w)}B&&I.length>1&&this.raise(me.AmbiguousConditionalArrow,y.startLoc),B&&I.length===1&&(this.state=y,Q.push(I[0].start),this.state.noArrowAt=Q,{consequent:w,failed:B}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(w,!0),this.state.noArrowAt=C,this.expect(14),P.test=n,P.consequent=w,P.alternate=this.forwardNoArrowParamsConversionAt(P,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(P,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let n=this.parseMaybeAssignAllowIn(),l=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:n,failed:l}}getArrowLikeExpressions(n,l){let c=[n],y=[];for(;c.length!==0;){let C=c.pop();C.type==="ArrowFunctionExpression"&&C.body.type!=="BlockStatement"?(C.typeParameters||!C.returnType?this.finishArrowValidation(C):y.push(C),c.push(C.body)):C.type==="ConditionalExpression"&&(c.push(C.consequent),c.push(C.alternate))}return l?(y.forEach(C=>this.finishArrowValidation(C)),[y,[]]):K0(y,C=>C.params.every(P=>this.isAssignable(P,!0)))}finishArrowValidation(n){this.toAssignableList(n.params,n.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(n,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(n,l){let c;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(n.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),c=l(),this.state.noArrowParamsConversionAt.pop()):c=l(),c}parseParenItem(n,l){let c=super.parseParenItem(n,l);if(this.eat(17)&&(c.optional=!0,this.resetEndLocation(n)),this.match(14)){let y=this.startNodeAt(l);return y.expression=c,y.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(y,"TypeCastExpression")}return c}assertModuleNodeAllowed(n){n.type==="ImportDeclaration"&&(n.importKind==="type"||n.importKind==="typeof")||n.type==="ExportNamedDeclaration"&&n.exportKind==="type"||n.type==="ExportAllDeclaration"&&n.exportKind==="type"||super.assertModuleNodeAllowed(n)}parseExportDeclaration(n){if(this.isContextual(130)){n.exportKind="type";let l=this.startNode();return this.next(),this.match(5)?(n.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(n),null):this.flowParseTypeAlias(l)}else if(this.isContextual(131)){n.exportKind="type";let l=this.startNode();return this.next(),this.flowParseOpaqueType(l,!1)}else if(this.isContextual(129)){n.exportKind="type";let l=this.startNode();return this.next(),this.flowParseInterface(l)}else if(this.isContextual(126)){n.exportKind="value";let l=this.startNode();return this.next(),this.flowParseEnumDeclaration(l)}else return super.parseExportDeclaration(n)}eatExportStar(n){return super.eatExportStar(n)?!0:this.isContextual(130)&&this.lookahead().type===55?(n.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(n){let{startLoc:l}=this.state,c=super.maybeParseExportNamespaceSpecifier(n);return c&&n.exportKind==="type"&&this.unexpected(l),c}parseClassId(n,l,c){super.parseClassId(n,l,c),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(n,l,c){let{startLoc:y}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(n,l))return;l.declare=!0}super.parseClassMember(n,l,c),l.declare&&(l.type!=="ClassProperty"&&l.type!=="ClassPrivateProperty"&&l.type!=="PropertyDefinition"?this.raise(me.DeclareClassElement,y):l.value&&this.raise(me.DeclareClassFieldInitializer,l.value))}isIterator(n){return n==="iterator"||n==="asyncIterator"}readIterator(){let n=super.readWord1(),l="@@"+n;(!this.isIterator(n)||!this.state.inType)&&this.raise(F.InvalidIdentifier,this.state.curPosition(),{identifierName:l}),this.finishToken(132,l)}getTokenFromCode(n){let l=this.input.charCodeAt(this.state.pos+1);n===123&&l===124?this.finishOp(6,2):this.state.inType&&(n===62||n===60)?this.finishOp(n===62?48:47,1):this.state.inType&&n===63?l===46?this.finishOp(18,2):this.finishOp(17,1):U0(n,l,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(n)}isAssignable(n,l){return n.type==="TypeCastExpression"?this.isAssignable(n.expression,l):super.isAssignable(n,l)}toAssignable(n,l=!1){!l&&n.type==="AssignmentExpression"&&n.left.type==="TypeCastExpression"&&(n.left=this.typeCastToParameter(n.left)),super.toAssignable(n,l)}toAssignableList(n,l,c){for(let y=0;y<n.length;y++){let C=n[y];C?.type==="TypeCastExpression"&&(n[y]=this.typeCastToParameter(C))}super.toAssignableList(n,l,c)}toReferencedList(n,l){for(let c=0;c<n.length;c++){let y=n[c];y&&y.type==="TypeCastExpression"&&!y.extra?.parenthesized&&(n.length>1||!l)&&this.raise(me.TypeCastInPattern,y.typeAnnotation)}return n}parseArrayLike(n,l,c){let y=super.parseArrayLike(n,l,c);return c!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(y.elements),y}isValidLVal(n,l,c,y){return n==="TypeCastExpression"||super.isValidLVal(n,l,c,y)}parseClassProperty(n){return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(n)}parseClassPrivateProperty(n){return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(n)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(n){return!this.match(14)&&super.isNonstaticConstructor(n)}pushClassMethod(n,l,c,y,C,P){if(l.variance&&this.unexpected(l.variance.loc.start),delete l.variance,this.match(47)&&(l.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(n,l,c,y,C,P),l.params&&C){let w=l.params;w.length>0&&this.isThisParam(w[0])&&this.raise(me.ThisParamBannedInConstructor,l)}else if(l.type==="MethodDefinition"&&C&&l.value.params){let w=l.value.params;w.length>0&&this.isThisParam(w[0])&&this.raise(me.ThisParamBannedInConstructor,l)}}pushClassPrivateMethod(n,l,c,y){l.variance&&this.unexpected(l.variance.loc.start),delete l.variance,this.match(47)&&(l.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(n,l,c,y)}parseClassSuper(n){if(super.parseClassSuper(n),n.superClass&&(this.match(47)||this.match(51))&&(n.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let l=n.implements=[];do{let c=this.startNode();c.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?c.typeParameters=this.flowParseTypeParameterInstantiation():c.typeParameters=null,l.push(this.finishNode(c,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(n){super.checkGetterSetterParams(n);let l=this.getObjectOrClassMethodParams(n);if(l.length>0){let c=l[0];this.isThisParam(c)&&n.kind==="get"?this.raise(me.GetterMayNotHaveThisParam,c):this.isThisParam(c)&&this.raise(me.SetterMayNotHaveThisParam,c)}}parsePropertyNamePrefixOperator(n){n.variance=this.flowParseVariance()}parseObjPropValue(n,l,c,y,C,P,w){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance;let B;this.match(47)&&!P&&(B=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let I=super.parseObjPropValue(n,l,c,y,C,P,w);return B&&((I.value||I).typeParameters=B),I}parseFunctionParamType(n){return this.eat(17)&&(n.type!=="Identifier"&&this.raise(me.PatternIsOptional,n),this.isThisParam(n)&&this.raise(me.ThisParamMayNotBeOptional,n),n.optional=!0),this.match(14)?n.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(n)&&this.raise(me.ThisParamAnnotationRequired,n),this.match(29)&&this.isThisParam(n)&&this.raise(me.ThisParamNoDefault,n),this.resetEndLocation(n),n}parseMaybeDefault(n,l){let c=super.parseMaybeDefault(n,l);return c.type==="AssignmentPattern"&&c.typeAnnotation&&c.right.start<c.typeAnnotation.start&&this.raise(me.TypeBeforeInitializer,c.typeAnnotation),c}checkImportReflection(n){super.checkImportReflection(n),n.module&&n.importKind!=="value"&&this.raise(me.ImportReflectionHasImportType,n.specifiers[0].loc.start)}parseImportSpecifierLocal(n,l,c){l.local=fh(n)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),n.specifiers.push(this.finishImportSpecifier(l,c))}isPotentialImportPhase(n){if(super.isPotentialImportPhase(n))return!0;if(this.isContextual(130)){if(!n)return!0;let l=this.lookaheadCharCode();return l===123||l===42}return!n&&this.isContextual(87)}applyImportPhase(n,l,c,y){if(super.applyImportPhase(n,l,c,y),l){if(!c&&this.match(65))return;n.exportKind=c==="type"?c:"value"}else c==="type"&&this.match(55)&&this.unexpected(),n.importKind=c==="type"||c==="typeof"?c:"value"}parseImportSpecifier(n,l,c,y,C){let P=n.imported,w=null;P.type==="Identifier"&&(P.name==="type"?w="type":P.name==="typeof"&&(w="typeof"));let B=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let X=this.parseIdentifier(!0);w!==null&&!dt(this.state.type)?(n.imported=X,n.importKind=w,n.local=this.cloneIdentifier(X)):(n.imported=P,n.importKind=null,n.local=this.parseIdentifier())}else{if(w!==null&&dt(this.state.type))n.imported=this.parseIdentifier(!0),n.importKind=w;else{if(l)throw this.raise(F.ImportBindingIsString,n,{importName:P.value});n.imported=P,n.importKind=null}this.eatContextual(93)?n.local=this.parseIdentifier():(B=!0,n.local=this.cloneIdentifier(n.imported))}let I=fh(n);return c&&I&&this.raise(me.ImportTypeShorthandOnlyInPureImport,n),(c||I)&&this.checkReservedType(n.local.name,n.local.loc.start,!0),B&&!c&&!I&&this.checkReservedWord(n.local.name,n.loc.start,!0,!0),this.finishImportSpecifier(n,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(n,l){let c=n.kind;c!=="get"&&c!=="set"&&this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(n,l)}parseVarId(n,l){super.parseVarId(n,l),this.match(14)&&(n.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n.id))}parseAsyncArrowFromCallExpression(n,l){if(this.match(14)){let c=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,n.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=c}return super.parseAsyncArrowFromCallExpression(n,l)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(n,l){let c=null,y;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),y=this.tryParse(()=>super.parseMaybeAssign(n,l),c),!y.error)return y.node;let{context:C}=this.state,P=C[C.length-1];(P===he.j_oTag||P===he.j_expr)&&C.pop()}if(y?.error||this.match(47)){c=c||this.state.clone();let C,P=this.tryParse(B=>{C=this.flowParseTypeParameterDeclaration();let I=this.forwardNoArrowParamsConversionAt(C,()=>{let Q=super.parseMaybeAssign(n,l);return this.resetStartLocationFromNode(Q,C),Q});I.extra?.parenthesized&&B();let X=this.maybeUnwrapTypeCastExpression(I);return X.type!=="ArrowFunctionExpression"&&B(),X.typeParameters=C,this.resetStartLocationFromNode(X,C),I},c),w=null;if(P.node&&this.maybeUnwrapTypeCastExpression(P.node).type==="ArrowFunctionExpression"){if(!P.error&&!P.aborted)return P.node.async&&this.raise(me.UnexpectedTypeParameterBeforeAsyncArrowFunction,C),P.node;w=P.node}if(y?.node)return this.state=y.failState,y.node;if(w)return this.state=P.failState,w;throw y?.thrown?y.error:P.thrown?P.error:this.raise(me.UnexpectedTokenAfterTypeParameter,C)}return super.parseMaybeAssign(n,l)}parseArrow(n){if(this.match(14)){let l=this.tryParse(()=>{let c=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let y=this.startNode();return[y.typeAnnotation,n.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=c,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),y});if(l.thrown)return null;l.error&&(this.state=l.failState),n.returnType=l.node.typeAnnotation?this.finishNode(l.node,"TypeAnnotation"):null}return super.parseArrow(n)}shouldParseArrow(n){return this.match(14)||super.shouldParseArrow(n)}setArrowFunctionParameters(n,l){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(n.start))?n.params=l:super.setArrowFunctionParameters(n,l)}checkParams(n,l,c,y=!0){if(!(c&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(n.start)))){for(let C=0;C<n.params.length;C++)this.isThisParam(n.params[C])&&C>0&&this.raise(me.ThisParamMustBeFirst,n.params[C]);super.checkParams(n,l,c,y)}}parseParenAndDistinguishExpression(n){return super.parseParenAndDistinguishExpression(n&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(n,l,c){if(n.type==="Identifier"&&n.name==="async"&&this.state.noArrowAt.includes(l.index)){this.next();let y=this.startNodeAt(l);y.callee=n,y.arguments=super.parseCallExpressionArguments(),n=this.finishNode(y,"CallExpression")}else if(n.type==="Identifier"&&n.name==="async"&&this.match(47)){let y=this.state.clone(),C=this.tryParse(w=>this.parseAsyncArrowWithTypeParameters(l)||w(),y);if(!C.error&&!C.aborted)return C.node;let P=this.tryParse(()=>super.parseSubscripts(n,l,c),y);if(P.node&&!P.error)return P.node;if(C.node)return this.state=C.failState,C.node;if(P.node)return this.state=P.failState,P.node;throw C.error||P.error}return super.parseSubscripts(n,l,c)}parseSubscript(n,l,c,y){if(this.match(18)&&this.isLookaheadToken_lt()){if(y.optionalChainMember=!0,c)return y.stop=!0,n;this.next();let C=this.startNodeAt(l);return C.callee=n,C.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),C.arguments=this.parseCallExpressionArguments(),C.optional=!0,this.finishCallExpression(C,!0)}else if(!c&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let C=this.startNodeAt(l);C.callee=n;let P=this.tryParse(()=>(C.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),C.arguments=super.parseCallExpressionArguments(),y.optionalChainMember&&(C.optional=!1),this.finishCallExpression(C,y.optionalChainMember)));if(P.node)return P.error&&(this.state=P.failState),P.node}return super.parseSubscript(n,l,c,y)}parseNewCallee(n){super.parseNewCallee(n);let l=null;this.shouldParseTypes()&&this.match(47)&&(l=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),n.typeArguments=l}parseAsyncArrowWithTypeParameters(n){let l=this.startNodeAt(n);if(this.parseFunctionParams(l,!1),!!this.parseArrow(l))return super.parseArrowExpression(l,void 0,!0)}readToken_mult_modulo(n){let l=this.input.charCodeAt(this.state.pos+1);if(n===42&&l===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(n)}readToken_pipe_amp(n){let l=this.input.charCodeAt(this.state.pos+1);if(n===124&&l===125){this.finishOp(9,2);return}super.readToken_pipe_amp(n)}parseTopLevel(n,l){let c=super.parseTopLevel(n,l);return this.state.hasFlowComment&&this.raise(me.UnterminatedFlowComment,this.state.curPosition()),c}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(me.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let n=this.skipFlowComment();n&&(this.state.pos+=n,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:n}=this.state,l=2;for(;[32,9].includes(this.input.charCodeAt(n+l));)l++;let c=this.input.charCodeAt(l+n),y=this.input.charCodeAt(l+n+1);return c===58&&y===58?l+2:this.input.slice(l+n,l+n+12)==="flow-include"?l+12:c===58&&y!==58?l:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(F.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(n,{enumName:l,memberName:c}){this.raise(me.EnumBooleanMemberNotInitialized,n,{memberName:c,enumName:l})}flowEnumErrorInvalidMemberInitializer(n,l){return this.raise(l.explicitType?l.explicitType==="symbol"?me.EnumInvalidMemberInitializerSymbolType:me.EnumInvalidMemberInitializerPrimaryType:me.EnumInvalidMemberInitializerUnknownType,n,l)}flowEnumErrorNumberMemberNotInitialized(n,l){this.raise(me.EnumNumberMemberNotInitialized,n,l)}flowEnumErrorStringMemberInconsistentlyInitialized(n,l){this.raise(me.EnumStringMemberInconsistentlyInitialized,n,l)}flowEnumMemberInit(){let n=this.state.startLoc,l=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let c=this.parseNumericLiteral(this.state.value);return l()?{type:"number",loc:c.loc.start,value:c}:{type:"invalid",loc:n}}case 134:{let c=this.parseStringLiteral(this.state.value);return l()?{type:"string",loc:c.loc.start,value:c}:{type:"invalid",loc:n}}case 85:case 86:{let c=this.parseBooleanLiteral(this.match(85));return l()?{type:"boolean",loc:c.loc.start,value:c}:{type:"invalid",loc:n}}default:return{type:"invalid",loc:n}}}flowEnumMemberRaw(){let n=this.state.startLoc,l=this.parseIdentifier(!0),c=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:n};return{id:l,init:c}}flowEnumCheckExplicitTypeMismatch(n,l,c){let{explicitType:y}=l;y!==null&&y!==c&&this.flowEnumErrorInvalidMemberInitializer(n,l)}flowEnumMembers({enumName:n,explicitType:l}){let c=new Set,y={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},C=!1;for(;!this.match(8);){if(this.eat(21)){C=!0;break}let P=this.startNode(),{id:w,init:B}=this.flowEnumMemberRaw(),I=w.name;if(I==="")continue;/^[a-z]/.test(I)&&this.raise(me.EnumInvalidMemberName,w,{memberName:I,suggestion:I[0].toUpperCase()+I.slice(1),enumName:n}),c.has(I)&&this.raise(me.EnumDuplicateMemberName,w,{memberName:I,enumName:n}),c.add(I);let X={enumName:n,explicitType:l,memberName:I};switch(P.id=w,B.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(B.loc,X,"boolean"),P.init=B.value,y.booleanMembers.push(this.finishNode(P,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(B.loc,X,"number"),P.init=B.value,y.numberMembers.push(this.finishNode(P,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(B.loc,X,"string"),P.init=B.value,y.stringMembers.push(this.finishNode(P,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(B.loc,X);case"none":switch(l){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(B.loc,X);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(B.loc,X);break;default:y.defaultedMembers.push(this.finishNode(P,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:y,hasUnknownMembers:C}}flowEnumStringMembers(n,l,{enumName:c}){if(n.length===0)return l;if(l.length===0)return n;if(l.length>n.length){for(let y of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(y,{enumName:c});return l}else{for(let y of l)this.flowEnumErrorStringMemberInconsistentlyInitialized(y,{enumName:c});return n}}flowEnumParseExplicitType({enumName:n}){if(!this.eatContextual(102))return null;if(!Le(this.state.type))throw this.raise(me.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:n});let{value:l}=this.state;return this.next(),l!=="boolean"&&l!=="number"&&l!=="string"&&l!=="symbol"&&this.raise(me.EnumInvalidExplicitType,this.state.startLoc,{enumName:n,invalidEnumType:l}),l}flowEnumBody(n,l){let c=l.name,y=l.loc.start,C=this.flowEnumParseExplicitType({enumName:c});this.expect(5);let{members:P,hasUnknownMembers:w}=this.flowEnumMembers({enumName:c,explicitType:C});switch(n.hasUnknownMembers=w,C){case"boolean":return n.explicitType=!0,n.members=P.booleanMembers,this.expect(8),this.finishNode(n,"EnumBooleanBody");case"number":return n.explicitType=!0,n.members=P.numberMembers,this.expect(8),this.finishNode(n,"EnumNumberBody");case"string":return n.explicitType=!0,n.members=this.flowEnumStringMembers(P.stringMembers,P.defaultedMembers,{enumName:c}),this.expect(8),this.finishNode(n,"EnumStringBody");case"symbol":return n.members=P.defaultedMembers,this.expect(8),this.finishNode(n,"EnumSymbolBody");default:{let B=()=>(n.members=[],this.expect(8),this.finishNode(n,"EnumStringBody"));n.explicitType=!1;let I=P.booleanMembers.length,X=P.numberMembers.length,Q=P.stringMembers.length,ye=P.defaultedMembers.length;if(!I&&!X&&!Q&&!ye)return B();if(!I&&!X)return n.members=this.flowEnumStringMembers(P.stringMembers,P.defaultedMembers,{enumName:c}),this.expect(8),this.finishNode(n,"EnumStringBody");if(!X&&!Q&&I>=ye){for(let Ce of P.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ce.loc.start,{enumName:c,memberName:Ce.id.name});return n.members=P.booleanMembers,this.expect(8),this.finishNode(n,"EnumBooleanBody")}else if(!I&&!Q&&X>=ye){for(let Ce of P.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ce.loc.start,{enumName:c,memberName:Ce.id.name});return n.members=P.numberMembers,this.expect(8),this.finishNode(n,"EnumNumberBody")}else return this.raise(me.EnumInconsistentMemberValues,y,{enumName:c}),B()}}}flowParseEnumDeclaration(n){let l=this.parseIdentifier();return n.id=l,n.body=this.flowEnumBody(this.startNode(),l),this.finishNode(n,"EnumDeclaration")}jsxParseOpeningElementAfterName(n){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(n.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(n)}isLookaheadToken_lt(){let n=this.nextTokenStart();if(this.input.charCodeAt(n)===60){let l=this.input.charCodeAt(n+1);return l!==60&&l!==61}return!1}reScan_lt_gt(){let{type:n}=this.state;n===47?(this.state.pos-=1,this.readToken_lt()):n===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:n}=this.state;return n===51?(this.state.pos-=2,this.finishOp(47,1),47):n}maybeUnwrapTypeCastExpression(n){return n.type==="TypeCastExpression"?n.expression:n}},Q0=/\r\n|[\r\n\u2028\u2029]/,Ca=new RegExp(Q0.source,"g");function ni(o){switch(o){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function mh(o,n,l){for(let c=n;c<l;c++)if(ni(o.charCodeAt(c)))return!0;return!1}var uu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,lu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Z0(o){switch(o){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 wr=W`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:o})=>`Expected corresponding JSX closing tag for <${o}>.`,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:o,HTMLEntity:n})=>`Unexpected token \`${o}\`. Did you mean \`${n}\` or \`{'${o}'}\`?`,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 Zr(o){return o?o.type==="JSXOpeningFragment"||o.type==="JSXClosingFragment":!1}function ai(o){if(o.type==="JSXIdentifier")return o.name;if(o.type==="JSXNamespacedName")return o.namespace.name+":"+o.name.name;if(o.type==="JSXMemberExpression")return ai(o.object)+"."+ai(o.property);throw new Error("Node had unexpected type: "+o.type)}var e2=o=>class extends o{jsxReadToken(){let n="",l=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(wr.UnterminatedJsxContent,this.state.startLoc);let c=this.input.charCodeAt(this.state.pos);switch(c){case 60:case 123:if(this.state.pos===this.state.start){c===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(c);return}n+=this.input.slice(l,this.state.pos),this.finishToken(142,n);return;case 38:n+=this.input.slice(l,this.state.pos),n+=this.jsxReadEntity(),l=this.state.pos;break;case 62:case 125:this.raise(wr.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:c===125?"}":">"});default:ni(c)?(n+=this.input.slice(l,this.state.pos),n+=this.jsxReadNewLine(!0),l=this.state.pos):++this.state.pos}}}jsxReadNewLine(n){let l=this.input.charCodeAt(this.state.pos),c;return++this.state.pos,l===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,c=n?`
|
|
173
|
+
`:`\r
|
|
174
|
+
`):c=String.fromCharCode(l),++this.state.curLine,this.state.lineStart=this.state.pos,c}jsxReadString(n){let l="",c=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(F.UnterminatedString,this.state.startLoc);let y=this.input.charCodeAt(this.state.pos);if(y===n)break;y===38?(l+=this.input.slice(c,this.state.pos),l+=this.jsxReadEntity(),c=this.state.pos):ni(y)?(l+=this.input.slice(c,this.state.pos),l+=this.jsxReadNewLine(!1),c=this.state.pos):++this.state.pos}l+=this.input.slice(c,this.state.pos++),this.finishToken(134,l)}jsxReadEntity(){let n=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let l=10;this.codePointAtPos(this.state.pos)===120&&(l=16,++this.state.pos);let c=this.readInt(l,void 0,!1,"bail");if(c!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(c)}else{let l=0,c=!1;for(;l++<10&&this.state.pos<this.length&&!(c=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(c){this.input.slice(n,this.state.pos);let y;++this.state.pos}}return this.state.pos=n,"&"}jsxReadWord(){let n,l=this.state.pos;do n=this.input.charCodeAt(++this.state.pos);while(Ss(n)||n===45);this.finishToken(141,this.input.slice(l,this.state.pos))}jsxParseIdentifier(){let n=this.startNode();return this.match(141)?n.name=this.state.value:tu(this.state.type)?n.name=Qr(this.state.type):this.unexpected(),this.next(),this.finishNode(n,"JSXIdentifier")}jsxParseNamespacedName(){let n=this.state.startLoc,l=this.jsxParseIdentifier();if(!this.eat(14))return l;let c=this.startNodeAt(n);return c.namespace=l,c.name=this.jsxParseIdentifier(),this.finishNode(c,"JSXNamespacedName")}jsxParseElementName(){let n=this.state.startLoc,l=this.jsxParseNamespacedName();if(l.type==="JSXNamespacedName")return l;for(;this.eat(16);){let c=this.startNodeAt(n);c.object=l,c.property=this.jsxParseIdentifier(),l=this.finishNode(c,"JSXMemberExpression")}return l}jsxParseAttributeValue(){let n;switch(this.state.type){case 5:return n=this.startNode(),this.setContext(he.brace),this.next(),n=this.jsxParseExpressionContainer(n,he.j_oTag),n.expression.type==="JSXEmptyExpression"&&this.raise(wr.AttributeIsEmpty,n),n;case 143:case 134:return this.parseExprAtom();default:throw this.raise(wr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let n=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(n,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(n){return this.next(),n.expression=this.parseExpression(),this.setContext(he.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadChild")}jsxParseExpressionContainer(n,l){if(this.match(8))n.expression=this.jsxParseEmptyExpression();else{let c=this.parseExpression();c.type==="SequenceExpression"&&!c.extra?.parenthesized&&this.raise(wr.UnexpectedSequenceExpression,c.expressions[1]),n.expression=c}return this.setContext(l),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXExpressionContainer")}jsxParseAttribute(){let n=this.startNode();return this.match(5)?(this.setContext(he.brace),this.next(),this.expect(21),n.argument=this.parseMaybeAssignAllowIn(),this.setContext(he.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(n,"JSXSpreadAttribute")):(n.name=this.jsxParseNamespacedName(),n.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(n,"JSXAttribute"))}jsxParseOpeningElementAt(n){let l=this.startNodeAt(n);return this.eat(144)?this.finishNode(l,"JSXOpeningFragment"):(l.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(l))}jsxParseOpeningElementAfterName(n){let l=[];for(;!this.match(56)&&!this.match(144);)l.push(this.jsxParseAttribute());return n.attributes=l,n.selfClosing=this.eat(56),this.expect(144),this.finishNode(n,"JSXOpeningElement")}jsxParseClosingElementAt(n){let l=this.startNodeAt(n);return this.eat(144)?this.finishNode(l,"JSXClosingFragment"):(l.name=this.jsxParseElementName(),this.expect(144),this.finishNode(l,"JSXClosingElement"))}jsxParseElementAt(n){let l=this.startNodeAt(n),c=[],y=this.jsxParseOpeningElementAt(n),C=null;if(!y.selfClosing){e:for(;;)switch(this.state.type){case 143:if(n=this.state.startLoc,this.next(),this.eat(56)){C=this.jsxParseClosingElementAt(n);break e}c.push(this.jsxParseElementAt(n));break;case 142:c.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let P=this.startNode();this.setContext(he.brace),this.next(),this.match(21)?c.push(this.jsxParseSpreadChild(P)):c.push(this.jsxParseExpressionContainer(P,he.j_expr));break}default:this.unexpected()}Zr(y)&&!Zr(C)&&C!==null?this.raise(wr.MissingClosingTagFragment,C):!Zr(y)&&Zr(C)?this.raise(wr.MissingClosingTagElement,C,{openingTagName:ai(y.name)}):!Zr(y)&&!Zr(C)&&ai(C.name)!==ai(y.name)&&this.raise(wr.MissingClosingTagElement,C,{openingTagName:ai(y.name)})}if(Zr(y)?(l.openingFragment=y,l.closingFragment=C):(l.openingElement=y,l.closingElement=C),l.children=c,this.match(47))throw this.raise(wr.UnwrappedAdjacentJSXElements,this.state.startLoc);return Zr(y)?this.finishNode(l,"JSXFragment"):this.finishNode(l,"JSXElement")}jsxParseElement(){let n=this.state.startLoc;return this.next(),this.jsxParseElementAt(n)}setContext(n){let{context:l}=this.state;l[l.length-1]=n}parseExprAtom(n){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(n)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(n){let l=this.curContext();if(l===he.j_expr){this.jsxReadToken();return}if(l===he.j_oTag||l===he.j_cTag){if(ur(n)){this.jsxReadWord();return}if(n===62){++this.state.pos,this.finishToken(144);return}if((n===34||n===39)&&l===he.j_oTag){this.jsxReadString(n);return}}if(n===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(n)}updateContext(n){let{context:l,type:c}=this.state;if(c===56&&n===143)l.splice(-2,2,he.j_cTag),this.state.canStartJSXElement=!1;else if(c===143)l.push(he.j_oTag);else if(c===144){let y=l[l.length-1];y===he.j_oTag&&n===56||y===he.j_cTag?(l.pop(),this.state.canStartJSXElement=l[l.length-1]===he.j_expr):(this.setContext(he.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=S0(c)}},t2=class extends au{tsNames=new Map},r2=class extends ou{importsStack=[];createScope(o){return this.importsStack.push(new Set),new t2(o)}enter(o){o===1024&&this.importsStack.push(new Set),super.enter(o)}exit(){let o=super.exit();return o===1024&&this.importsStack.pop(),o}hasImport(o,n){let l=this.importsStack.length;if(this.importsStack[l-1].has(o))return!0;if(!n&&l>1){for(let c=0;c<l-1;c++)if(this.importsStack[c].has(o))return!0}return!1}declareName(o,n,l){if(n&4096){this.hasImport(o,!0)&&this.parser.raise(F.VarRedeclaration,l,{identifierName:o}),this.importsStack[this.importsStack.length-1].add(o);return}let c=this.currentScope(),y=c.tsNames.get(o)||0;if(n&1024){this.maybeExportDefined(c,o),c.tsNames.set(o,y|16);return}super.declareName(o,n,l),n&2&&(n&1||(this.checkRedeclarationInScope(c,o,n,l),this.maybeExportDefined(c,o)),y=y|1),n&256&&(y=y|2),n&512&&(y=y|4),n&128&&(y=y|8),y&&c.tsNames.set(o,y)}isRedeclaredInScope(o,n,l){let c=o.tsNames.get(n);if((c&2)>0){if(l&256){let y=!!(l&512),C=(c&4)>0;return y!==C}return!0}return l&128&&(c&8)>0?o.names.get(n)&2?!!(l&1):!1:l&2&&(c&1)>0?!0:super.isRedeclaredInScope(o,n,l)}checkLocalExport(o){let{name:n}=o;if(this.hasImport(n))return;let l=this.scopeStack.length;for(let c=l-1;c>=0;c--){let y=this.scopeStack[c].tsNames.get(n);if((y&1)>0||(y&16)>0)return}super.checkLocalExport(o)}},s2=class{stacks=[];enter(o){this.stacks.push(o)}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 Ta(o,n){return(o?2:0)|(n?1:0)}var i2=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(o){return o+this.startIndex}offsetToSourcePos(o){return o-this.startIndex}hasPlugin(o){if(typeof o=="string")return this.plugins.has(o);{let[n,l]=o;if(!this.hasPlugin(n))return!1;let c=this.plugins.get(n);for(let y of Object.keys(l))if(c?.[y]!==l[y])return!1;return!0}}getPluginOption(o,n){return this.plugins.get(o)?.[n]}};function yh(o,n){o.trailingComments===void 0?o.trailingComments=n:o.trailingComments.unshift(...n)}function n2(o,n){o.leadingComments===void 0?o.leadingComments=n:o.leadingComments.unshift(...n)}function oi(o,n){o.innerComments===void 0?o.innerComments=n:o.innerComments.unshift(...n)}function Ps(o,n,l){let c=null,y=n.length;for(;c===null&&y>0;)c=n[--y];c===null||c.start>l.start?oi(o,l.comments):yh(c,l.comments)}var a2=class extends i2{addComment(o){this.filename&&(o.loc.filename=this.filename);let{commentsLen:n}=this.state;this.comments.length!==n&&(this.comments.length=n),this.comments.push(o),this.state.commentsLen++}processComment(o){let{commentStack:n}=this.state,l=n.length;if(l===0)return;let c=l-1,y=n[c];y.start===o.end&&(y.leadingNode=o,c--);let{start:C}=o;for(;c>=0;c--){let P=n[c],w=P.end;if(w>C)P.containingNode=o,this.finalizeComment(P),n.splice(c,1);else{w===C&&(P.trailingNode=o);break}}}finalizeComment(o){let{comments:n}=o;if(o.leadingNode!==null||o.trailingNode!==null)o.leadingNode!==null&&yh(o.leadingNode,n),o.trailingNode!==null&&n2(o.trailingNode,n);else{let l=o.containingNode,c=o.start;if(this.input.charCodeAt(this.offsetToSourcePos(c)-1)===44)switch(l.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ps(l,l.properties,o);break;case"CallExpression":case"OptionalCallExpression":Ps(l,l.arguments,o);break;case"ImportExpression":Ps(l,[l.source,l.options??null],o);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ps(l,l.params,o);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ps(l,l.elements,o);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ps(l,l.specifiers,o);break;case"TSEnumDeclaration":oi(l,n);break;case"TSEnumBody":Ps(l,l.members,o);break;default:oi(l,n)}else oi(l,n)}}finalizeRemainingComments(){let{commentStack:o}=this.state;for(let n=o.length-1;n>=0;n--)this.finalizeComment(o[n]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(o){let{commentStack:n}=this.state,{length:l}=n;if(l===0)return;let c=n[l-1];c.leadingNode===o&&(c.leadingNode=null)}takeSurroundingComments(o,n,l){let{commentStack:c}=this.state,y=c.length;if(y===0)return;let C=y-1;for(;C>=0;C--){let P=c[C],w=P.end;if(P.start===l)P.leadingNode=o;else if(w===n)P.trailingNode=o;else if(w<n)break}}},o2=class T0{flags=1024;get strict(){return(this.flags&1)>0}set strict(n){n?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:n,sourceType:l,startIndex:c,startLine:y,startColumn:C}){this.strict=n===!1?!1:n===!0?!0:l==="module",this.startIndex=c,this.curLine=y,this.lineStart=-C,this.startLoc=this.endLoc=new D(y,C,c)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(n){n?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(n){n?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(n){n?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(n){n?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(n){n?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(n){n?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(n){n?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(n){n?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(n){n?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=[he.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(n){n?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(n){n?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(n){n?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 n=new T0;return n.flags=this.flags,n.startIndex=this.startIndex,n.curLine=this.curLine,n.lineStart=this.lineStart,n.startLoc=this.startLoc,n.endLoc=this.endLoc,n.errors=this.errors.slice(),n.potentialArrowAt=this.potentialArrowAt,n.noArrowAt=this.noArrowAt.slice(),n.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),n.topicContext=this.topicContext,n.labels=this.labels.slice(),n.commentsLen=this.commentsLen,n.commentStack=this.commentStack.slice(),n.pos=this.pos,n.type=this.type,n.value=this.value,n.start=this.start,n.end=this.end,n.lastTokEndLoc=this.lastTokEndLoc,n.lastTokStartLoc=this.lastTokStartLoc,n.context=this.context.slice(),n.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,n.strictErrors=this.strictErrors,n.tokensLength=this.tokensLength,n}},u2=function(o){return o>=48&&o<=57},gh={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ba={bin:o=>o===48||o===49,oct:o=>o>=48&&o<=55,dec:o=>o>=48&&o<=57,hex:o=>o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102};function Dh(o,n,l,c,y,C){let P=l,w=c,B=y,I="",X=null,Q=l,{length:ye}=n;for(;;){if(l>=ye){C.unterminated(P,w,B),I+=n.slice(Q,l);break}let Ce=n.charCodeAt(l);if(l2(o,Ce,n,l)){I+=n.slice(Q,l);break}if(Ce===92){I+=n.slice(Q,l);let et=p2(n,l,c,y,o==="template",C);et.ch===null&&!X?X={pos:l,lineStart:c,curLine:y}:I+=et.ch,{pos:l,lineStart:c,curLine:y}=et,Q=l}else Ce===8232||Ce===8233?(++l,++y,c=l):Ce===10||Ce===13?o==="template"?(I+=n.slice(Q,l)+`
|
|
175
|
+
`,++l,Ce===13&&n.charCodeAt(l)===10&&++l,++y,Q=c=l):C.unterminated(P,w,B):++l}return{pos:l,str:I,firstInvalidLoc:X,lineStart:c,curLine:y}}function l2(o,n,l,c){return o==="template"?n===96||n===36&&l.charCodeAt(c+1)===123:n===(o==="double"?34:39)}function p2(o,n,l,c,y,C){let P=!y;n++;let w=I=>({pos:n,ch:I,lineStart:l,curLine:c}),B=o.charCodeAt(n++);switch(B){case 110:return w(`
|
|
176
|
+
`);case 114:return w("\r");case 120:{let I;return{code:I,pos:n}=pu(o,n,l,c,2,!1,P,C),w(I===null?null:String.fromCharCode(I))}case 117:{let I;return{code:I,pos:n}=Eh(o,n,l,c,P,C),w(I===null?null:String.fromCodePoint(I))}case 116:return w(" ");case 98:return w("\b");case 118:return w("\v");case 102:return w("\f");case 13:o.charCodeAt(n)===10&&++n;case 10:l=n,++c;case 8232:case 8233:return w("");case 56:case 57:if(y)return w(null);C.strictNumericEscape(n-1,l,c);default:if(B>=48&&B<=55){let I=n-1,X=/^[0-7]+/.exec(o.slice(I,n+2))[0],Q=parseInt(X,8);Q>255&&(X=X.slice(0,-1),Q=parseInt(X,8)),n+=X.length-1;let ye=o.charCodeAt(n);if(X!=="0"||ye===56||ye===57){if(y)return w(null);C.strictNumericEscape(I,l,c)}return w(String.fromCharCode(Q))}return w(String.fromCharCode(B))}}function pu(o,n,l,c,y,C,P,w){let B=n,I;return{n:I,pos:n}=xh(o,n,l,c,16,y,C,!1,w,!P),I===null&&(P?w.invalidEscapeSequence(B,l,c):n=B-1),{code:I,pos:n}}function xh(o,n,l,c,y,C,P,w,B,I){let X=n,Q=y===16?gh.hex:gh.decBinOct,ye=y===16?ba.hex:y===10?ba.dec:y===8?ba.oct:ba.bin,Ce=!1,et=0;for(let lt=0,Xe=C??1/0;lt<Xe;++lt){let Ke=o.charCodeAt(n),Lt;if(Ke===95&&w!=="bail"){let bu=o.charCodeAt(n-1),Su=o.charCodeAt(n+1);if(w){if(Number.isNaN(Su)||!ye(Su)||Q.has(bu)||Q.has(Su)){if(I)return{n:null,pos:n};B.unexpectedNumericSeparator(n,l,c)}}else{if(I)return{n:null,pos:n};B.numericSeparatorInEscapeSequence(n,l,c)}++n;continue}if(Ke>=97?Lt=Ke-97+10:Ke>=65?Lt=Ke-65+10:u2(Ke)?Lt=Ke-48:Lt=1/0,Lt>=y){if(Lt<=9&&I)return{n:null,pos:n};if(Lt<=9&&B.invalidDigit(n,l,c,y))Lt=0;else if(P)Lt=0,Ce=!0;else break}++n,et=et*y+Lt}return n===X||C!=null&&n-X!==C||Ce?{n:null,pos:n}:{n:et,pos:n}}function Eh(o,n,l,c,y,C){let P=o.charCodeAt(n),w;if(P===123){if(++n,{code:w,pos:n}=pu(o,n,l,c,o.indexOf("}",n)-n,!0,y,C),++n,w!==null&&w>1114111)if(y)C.invalidCodePoint(n,l,c);else return{code:null,pos:n}}else({code:w,pos:n}=pu(o,n,l,c,4,!1,y,C));return{code:w,pos:n}}function Zi(o,n,l){return new D(l,o-n,o)}var c2=new Set([103,109,115,105,121,117,100,118]),h2=class{constructor(o){let n=o.startIndex||0;this.type=o.type,this.value=o.value,this.start=n+o.start,this.end=n+o.end,this.loc=new g(o.startLoc,o.endLoc)}},d2=class extends a2{isLookahead;tokens=[];constructor(o,n){super(),this.state=new o2,this.state.init(o),this.input=n,this.length=n.length,this.comments=[],this.isLookahead=!1}pushToken(o){this.tokens.length=this.state.tokensLength,this.tokens.push(o),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new h2(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(o){return this.match(o)?(this.next(),!0):!1}match(o){return this.state.type===o}createLookaheadState(o){return{pos:o.pos,value:null,type:o.type,start:o.start,end:o.end,context:[this.curContext()],inType:o.inType,startLoc:o.startLoc,lastTokEndLoc:o.lastTokEndLoc,curLine:o.curLine,lineStart:o.lineStart,curPosition:o.curPosition}}lookahead(){let o=this.state;this.state=this.createLookaheadState(o),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let n=this.state;return this.state=o,n}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(o){return uu.lastIndex=o,uu.test(this.input)?uu.lastIndex:o}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(o){return this.input.charCodeAt(this.nextTokenStartSince(o))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(o){return lu.lastIndex=o,lu.test(this.input)?lu.lastIndex:o}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(o){let n=this.input.charCodeAt(o);if((n&64512)===55296&&++o<this.input.length){let l=this.input.charCodeAt(o);(l&64512)===56320&&(n=65536+((n&1023)<<10)+(l&1023))}return n}setStrict(o){this.state.strict=o,o&&(this.state.strictErrors.forEach(([n,l])=>this.raise(n,l)),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(o){let n;this.isLookahead||(n=this.state.curPosition());let l=this.state.pos,c=this.input.indexOf(o,l+2);if(c===-1)throw this.raise(F.UnterminatedComment,this.state.curPosition());for(this.state.pos=c+o.length,Ca.lastIndex=l+2;Ca.test(this.input)&&Ca.lastIndex<=c;)++this.state.curLine,this.state.lineStart=Ca.lastIndex;if(this.isLookahead)return;let y={type:"CommentBlock",value:this.input.slice(l+2,c),start:this.sourceToOffsetPos(l),end:this.sourceToOffsetPos(c+o.length),loc:new g(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(y),y}skipLineComment(o){let n=this.state.pos,l;this.isLookahead||(l=this.state.curPosition());let c=this.input.charCodeAt(this.state.pos+=o);if(this.state.pos<this.length)for(;!ni(c)&&++this.state.pos<this.length;)c=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let y=this.state.pos,C={type:"CommentLine",value:this.input.slice(n+o,y),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(y),loc:new g(l,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(C),C}skipSpace(){let o=this.state.pos,n=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let l=this.input.charCodeAt(this.state.pos);switch(l){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 c=this.skipBlockComment("*/");c!==void 0&&(this.addComment(c),n?.push(c));break}case 47:{let c=this.skipLineComment(2);c!==void 0&&(this.addComment(c),n?.push(c));break}default:break e}break;default:if(Z0(l))++this.state.pos;else if(l===45&&!this.inModule&&this.optionFlags&8192){let c=this.state.pos;if(this.input.charCodeAt(c+1)===45&&this.input.charCodeAt(c+2)===62&&(o===0||this.state.lineStart>o)){let y=this.skipLineComment(3);y!==void 0&&(this.addComment(y),n?.push(y))}else break e}else if(l===60&&!this.inModule&&this.optionFlags&8192){let c=this.state.pos;if(this.input.charCodeAt(c+1)===33&&this.input.charCodeAt(c+2)===45&&this.input.charCodeAt(c+3)===45){let y=this.skipLineComment(4);y!==void 0&&(this.addComment(y),n?.push(y))}else break e}else break e}}if(n?.length>0){let l=this.state.pos,c={start:this.sourceToOffsetPos(o),end:this.sourceToOffsetPos(l),comments:n,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}finishToken(o,n){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let l=this.state.type;this.state.type=o,this.state.value=n,this.isLookahead||this.updateContext(l)}replaceToken(o){this.state.type=o,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let o=this.state.pos+1,n=this.codePointAtPos(o);if(n>=48&&n<=57)throw this.raise(F.UnexpectedDigitAfterHash,this.state.curPosition());ur(n)?(++this.state.pos,this.finishToken(139,this.readWord1(n))):n===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let o=this.input.charCodeAt(this.state.pos+1);if(o>=48&&o<=57){this.readNumber(!0);return}o===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 o=this.input.charCodeAt(this.state.pos+1);if(o!==33)return!1;let n=this.state.pos;for(this.state.pos+=1;!ni(o)&&++this.state.pos<this.length;)o=this.input.charCodeAt(this.state.pos);let l=this.input.slice(n+2,this.state.pos);return this.finishToken(28,l),!0}readToken_mult_modulo(o){let n=o===42?55:54,l=1,c=this.input.charCodeAt(this.state.pos+1);o===42&&c===42&&(l++,c=this.input.charCodeAt(this.state.pos+2),n=57),c===61&&!this.state.inType&&(l++,n=o===37?33:30),this.finishOp(n,l)}readToken_pipe_amp(o){let n=this.input.charCodeAt(this.state.pos+1);if(n===o){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(o===124?41:42,2);return}if(o===124&&n===62){this.finishOp(39,2);return}if(n===61){this.finishOp(30,2);return}this.finishOp(o===124?43:45,1)}readToken_caret(){let o=this.input.charCodeAt(this.state.pos+1);o===61&&!this.state.inType?this.finishOp(32,2):o===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(o){let n=this.input.charCodeAt(this.state.pos+1);if(n===o){this.finishOp(34,2);return}n===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:o}=this.state,n=this.input.charCodeAt(o+1);if(n===60){if(this.input.charCodeAt(o+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(n===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:o}=this.state,n=this.input.charCodeAt(o+1);if(n===62){let l=this.input.charCodeAt(o+2)===62?3:2;if(this.input.charCodeAt(o+l)===61){this.finishOp(30,l+1);return}this.finishOp(52,l);return}if(n===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(o){let n=this.input.charCodeAt(this.state.pos+1);if(n===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(o===61&&n===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(o===61?29:35,1)}readToken_question(){let o=this.input.charCodeAt(this.state.pos+1),n=this.input.charCodeAt(this.state.pos+2);o===63?n===61?this.finishOp(30,3):this.finishOp(40,2):o===46&&!(n>=48&&n<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(o){switch(o){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 n=this.input.charCodeAt(this.state.pos+1);if(n===120||n===88){this.readRadixNumber(16);return}if(n===111||n===79){this.readRadixNumber(8);return}if(n===98||n===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(o);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(o);return;case 124:case 38:this.readToken_pipe_amp(o);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(o);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(o);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(o)){this.readWord(o);return}}throw this.raise(F.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(o)})}finishOp(o,n){let l=this.input.slice(this.state.pos,this.state.pos+n);this.state.pos+=n,this.finishToken(o,l)}readRegexp(){let o=this.state.startLoc,n=this.state.start+1,l,c,{pos:y}=this.state;for(;;++y){if(y>=this.length)throw this.raise(F.UnterminatedRegExp,E(o,1));let B=this.input.charCodeAt(y);if(ni(B))throw this.raise(F.UnterminatedRegExp,E(o,1));if(l)l=!1;else{if(B===91)c=!0;else if(B===93&&c)c=!1;else if(B===47&&!c)break;l=B===92}}let C=this.input.slice(n,y);++y;let P="",w=()=>E(o,y+2-n);for(;y<this.length;){let B=this.codePointAtPos(y),I=String.fromCharCode(B);if(c2.has(B))B===118?P.includes("u")&&this.raise(F.IncompatibleRegExpUVFlags,w()):B===117&&P.includes("v")&&this.raise(F.IncompatibleRegExpUVFlags,w()),P.includes(I)&&this.raise(F.DuplicateRegExpFlags,w());else if(Ss(B)||B===92)this.raise(F.MalformedRegExpFlags,w());else break;++y,P+=I}this.state.pos=y,this.finishToken(138,{pattern:C,flags:P})}readInt(o,n,l=!1,c=!0){let{n:y,pos:C}=xh(this.input,this.state.pos,this.state.lineStart,this.state.curLine,o,n,l,c,this.errorHandlers_readInt,!1);return this.state.pos=C,y}readRadixNumber(o){let n=this.state.pos,l=this.state.curPosition(),c=!1;this.state.pos+=2;let y=this.readInt(o);y==null&&this.raise(F.InvalidDigit,E(l,2),{radix:o});let C=this.input.charCodeAt(this.state.pos);if(C===110)++this.state.pos,c=!0;else if(C===109)throw this.raise(F.InvalidDecimal,l);if(ur(this.codePointAtPos(this.state.pos)))throw this.raise(F.NumberIdentifier,this.state.curPosition());if(c){let P=this.input.slice(n,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,P);return}this.finishToken(135,y)}readNumber(o){let n=this.state.pos,l=this.state.curPosition(),c=!1,y=!1,C=!1;!o&&this.readInt(10)===null&&this.raise(F.InvalidNumber,this.state.curPosition());let P=this.state.pos-n>=2&&this.input.charCodeAt(n)===48;if(P){let X=this.input.slice(n,this.state.pos);if(this.recordStrictModeErrors(F.StrictOctalLiteral,l),!this.state.strict){let Q=X.indexOf("_");Q>0&&this.raise(F.ZeroDigitNumericSeparator,E(l,Q))}C=P&&!/[89]/.test(X)}let w=this.input.charCodeAt(this.state.pos);if(w===46&&!C&&(++this.state.pos,this.readInt(10),c=!0,w=this.input.charCodeAt(this.state.pos)),(w===69||w===101)&&!C&&(w=this.input.charCodeAt(++this.state.pos),(w===43||w===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(F.InvalidOrMissingExponent,l),c=!0,w=this.input.charCodeAt(this.state.pos)),w===110&&((c||P)&&this.raise(F.InvalidBigIntLiteral,l),++this.state.pos,y=!0),ur(this.codePointAtPos(this.state.pos)))throw this.raise(F.NumberIdentifier,this.state.curPosition());let B=this.input.slice(n,this.state.pos).replace(/[_mn]/g,"");if(y){this.finishToken(136,B);return}let I=C?parseInt(B,8):parseFloat(B);this.finishToken(135,I)}readCodePoint(o){let{code:n,pos:l}=Eh(this.input,this.state.pos,this.state.lineStart,this.state.curLine,o,this.errorHandlers_readCodePoint);return this.state.pos=l,n}readString(o){let{str:n,pos:l,curLine:c,lineStart:y}=Dh(o===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=l+1,this.state.lineStart=y,this.state.curLine=c,this.finishToken(134,n)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let o=this.input[this.state.pos],{str:n,firstInvalidLoc:l,pos:c,curLine:y,lineStart:C}=Dh("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=c+1,this.state.lineStart=C,this.state.curLine=y,l&&(this.state.firstInvalidTemplateEscapePos=new D(l.curLine,l.pos-l.lineStart,this.sourceToOffsetPos(l.pos))),this.input.codePointAt(c)===96?this.finishToken(24,l?null:o+n+"`"):(this.state.pos++,this.finishToken(25,l?null:o+n+"${"))}recordStrictModeErrors(o,n){let l=n.index;this.state.strict&&!this.state.strictErrors.has(l)?this.raise(o,n):this.state.strictErrors.set(l,[o,n])}readWord1(o){this.state.containsEsc=!1;let n="",l=this.state.pos,c=this.state.pos;for(o!==void 0&&(this.state.pos+=o<=65535?1:2);this.state.pos<this.length;){let y=this.codePointAtPos(this.state.pos);if(Ss(y))this.state.pos+=y<=65535?1:2;else if(y===92){this.state.containsEsc=!0,n+=this.input.slice(c,this.state.pos);let C=this.state.curPosition(),P=this.state.pos===l?ur:Ss;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(F.MissingUnicodeEscape,this.state.curPosition()),c=this.state.pos-1;continue}++this.state.pos;let w=this.readCodePoint(!0);w!==null&&(P(w)||this.raise(F.EscapedCharNotAnIdentifier,C),n+=String.fromCodePoint(w)),c=this.state.pos}else break}return n+this.input.slice(c,this.state.pos)}readWord(o){let n=this.readWord1(o),l=J.get(n);l!==void 0?this.finishToken(l,Qr(l)):this.finishToken(132,n)}checkKeywordEscapes(){let{type:o}=this.state;tu(o)&&this.state.containsEsc&&this.raise(F.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Qr(o)})}raise(o,n,l={}){let c=n instanceof D?n:n.loc.start,y=o(c,l);if(!(this.optionFlags&2048))throw y;return this.isLookahead||this.state.errors.push(y),y}raiseOverwrite(o,n,l={}){let c=n instanceof D?n:n.loc.start,y=c.index,C=this.state.errors;for(let P=C.length-1;P>=0;P--){let w=C[P];if(w.loc.index===y)return C[P]=o(c,l);if(w.loc.index<y)break}return this.raise(o,n,l)}updateContext(o){}unexpected(o,n){throw this.raise(F.UnexpectedToken,o??this.state.startLoc,{expected:n?Qr(n):null})}expectPlugin(o,n){if(this.hasPlugin(o))return!0;throw this.raise(F.MissingPlugin,n??this.state.startLoc,{missingPlugin:[o]})}expectOnePlugin(o){if(!o.some(n=>this.hasPlugin(n)))throw this.raise(F.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:o})}errorBuilder(o){return(n,l,c)=>{this.raise(o,Zi(n,l,c))}}errorHandlers_readInt={invalidDigit:(o,n,l,c)=>this.optionFlags&2048?(this.raise(F.InvalidDigit,Zi(o,n,l),{radix:c}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(F.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(F.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(F.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(F.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(o,n,l)=>{this.recordStrictModeErrors(F.StrictNumericEscape,Zi(o,n,l))},unterminated:(o,n,l)=>{throw this.raise(F.UnterminatedString,Zi(o-1,n,l))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(F.StrictNumericEscape),unterminated:(o,n,l)=>{throw this.raise(F.UnterminatedTemplate,Zi(o,n,l))}})},f2=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},m2=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(o){this.parser=o}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new f2)}exit(){let o=this.stack.pop(),n=this.current();for(let[l,c]of Array.from(o.undefinedPrivateNames))n?n.undefinedPrivateNames.has(l)||n.undefinedPrivateNames.set(l,c):this.parser.raise(F.InvalidPrivateFieldResolution,c,{identifierName:l})}declarePrivateName(o,n,l){let{privateNames:c,loneAccessors:y,undefinedPrivateNames:C}=this.current(),P=c.has(o);if(n&3){let w=P&&y.get(o);if(w){let B=w&4,I=n&4,X=w&3,Q=n&3;P=X===Q||B!==I,P||y.delete(o)}else P||y.set(o,n)}P&&this.parser.raise(F.PrivateNameRedeclaration,l,{identifierName:o}),c.add(o),C.delete(o)}usePrivateName(o,n){let l;for(l of this.stack)if(l.privateNames.has(o))return;l?l.undefinedPrivateNames.set(o,n):this.parser.raise(F.InvalidPrivateFieldResolution,n,{identifierName:o})}},Sa=class{constructor(o=0){this.type=o}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ah=class extends Sa{declarationErrors=new Map;constructor(o){super(o)}recordDeclarationError(o,n){let l=n.index;this.declarationErrors.set(l,[o,n])}clearDeclarationError(o){this.declarationErrors.delete(o)}iterateErrors(o){this.declarationErrors.forEach(o)}},y2=class{parser;stack=[new Sa];constructor(o){this.parser=o}enter(o){this.stack.push(o)}exit(){this.stack.pop()}recordParameterInitializerError(o,n){let l=n.loc.start,{stack:c}=this,y=c.length-1,C=c[y];for(;!C.isCertainlyParameterDeclaration();){if(C.canBeArrowParameterDeclaration())C.recordDeclarationError(o,l);else return;C=c[--y]}this.parser.raise(o,l)}recordArrowParameterBindingError(o,n){let{stack:l}=this,c=l[l.length-1],y=n.loc.start;if(c.isCertainlyParameterDeclaration())this.parser.raise(o,y);else if(c.canBeArrowParameterDeclaration())c.recordDeclarationError(o,y);else return}recordAsyncArrowParametersError(o){let{stack:n}=this,l=n.length-1,c=n[l];for(;c.canBeArrowParameterDeclaration();)c.type===2&&c.recordDeclarationError(F.AwaitBindingIdentifier,o),c=n[--l]}validateAsPattern(){let{stack:o}=this,n=o[o.length-1];n.canBeArrowParameterDeclaration()&&n.iterateErrors(([l,c])=>{this.parser.raise(l,c);let y=o.length-2,C=o[y];for(;C.canBeArrowParameterDeclaration();)C.clearDeclarationError(c.index),C=o[--y]})}};function g2(){return new Sa(3)}function D2(){return new Ah(1)}function x2(){return new Ah(2)}function Ch(){return new Sa}var E2=class extends d2{addExtra(o,n,l,c=!0){if(!o)return;let{extra:y}=o;y==null&&(y={},o.extra=y),c?y[n]=l:Object.defineProperty(y,n,{enumerable:c,value:l})}isContextual(o){return this.state.type===o&&!this.state.containsEsc}isUnparsedContextual(o,n){if(this.input.startsWith(n,o)){let l=this.input.charCodeAt(o+n.length);return!(Ss(l)||(l&64512)===55296)}return!1}isLookaheadContextual(o){let n=this.nextTokenStart();return this.isUnparsedContextual(n,o)}eatContextual(o){return this.isContextual(o)?(this.next(),!0):!1}expectContextual(o,n){if(!this.eatContextual(o)){if(n!=null)throw this.raise(n,this.state.startLoc);this.unexpected(null,o)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return mh(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return mh(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(o=!0){(o?this.isLineTerminator():this.eat(13))||this.raise(F.MissingSemicolon,this.state.lastTokEndLoc)}expect(o,n){this.eat(o)||this.unexpected(n,o)}tryParse(o,n=this.state.clone()){let l={node:null};try{let c=o((y=null)=>{throw l.node=y,l});if(this.state.errors.length>n.errors.length){let y=this.state;return this.state=n,this.state.tokensLength=y.tokensLength,{node:c,error:y.errors[n.errors.length],thrown:!1,aborted:!1,failState:y}}return{node:c,error:null,thrown:!1,aborted:!1,failState:null}}catch(c){let y=this.state;if(this.state=n,c instanceof SyntaxError)return{node:null,error:c,thrown:!0,aborted:!1,failState:y};if(c===l)return{node:l.node,error:null,thrown:!1,aborted:!0,failState:y};throw c}}checkExpressionErrors(o,n){if(!o)return!1;let{shorthandAssignLoc:l,doubleProtoLoc:c,privateKeyLoc:y,optionalParametersLoc:C,voidPatternLoc:P}=o,w=!!l||!!c||!!C||!!y||!!P;if(!n)return w;l!=null&&this.raise(F.InvalidCoverInitializedName,l),c!=null&&this.raise(F.DuplicateProto,c),y!=null&&this.raise(F.UnexpectedPrivateField,y),C!=null&&this.unexpected(C),P!=null&&this.raise(F.InvalidCoverDiscardElement,P)}isLiteralPropertyName(){return nh(this.state.type)}isPrivateName(o){return o.type==="PrivateName"}getPrivateNameSV(o){return o.id.name}hasPropertyAsPrivateName(o){return(o.type==="MemberExpression"||o.type==="OptionalMemberExpression")&&this.isPrivateName(o.property)}isObjectProperty(o){return o.type==="ObjectProperty"}isObjectMethod(o){return o.type==="ObjectMethod"}initializeScopes(o=this.options.sourceType==="module"){let n=this.state.labels;this.state.labels=[];let l=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let c=this.inModule;this.inModule=o;let y=this.scope,C=this.getScopeHandler();this.scope=new C(this,o);let P=this.prodParam;this.prodParam=new s2;let w=this.classScope;this.classScope=new m2(this);let B=this.expressionScope;return this.expressionScope=new y2(this),()=>{this.state.labels=n,this.exportedIdentifiers=l,this.inModule=c,this.scope=y,this.prodParam=P,this.classScope=w,this.expressionScope=B}}enterInitialScopes(){let o=0;(this.inModule||this.optionFlags&1)&&(o|=2),this.optionFlags&32&&(o|=1);let n=!this.inModule&&this.options.sourceType==="commonjs";(n||this.optionFlags&2)&&(o|=4),this.prodParam.enter(o);let l=n?514:1;this.optionFlags&4&&(l|=512),this.optionFlags&16&&(l|=48),this.scope.enter(l)}checkDestructuringPrivate(o){let{privateKeyLoc:n}=o;n!==null&&this.expectPlugin("destructuringPrivate",n)}},Pa=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},cu=class{constructor(o,n,l){this.start=n,this.end=0,this.loc=new g(l),o?.optionFlags&128&&(this.range=[n,0]),o?.filename&&(this.loc.filename=o.filename)}type=""},Th=cu.prototype,A2=class extends E2{startNode(){let o=this.state.startLoc;return new cu(this,o.index,o)}startNodeAt(o){return new cu(this,o.index,o)}startNodeAtNode(o){return this.startNodeAt(o.loc.start)}finishNode(o,n){return this.finishNodeAt(o,n,this.state.lastTokEndLoc)}finishNodeAt(o,n,l){return o.type=n,o.end=l.index,o.loc.end=l,this.optionFlags&128&&(o.range[1]=l.index),this.optionFlags&4096&&this.processComment(o),o}resetStartLocation(o,n){o.start=n.index,o.loc.start=n,this.optionFlags&128&&(o.range[0]=n.index)}resetEndLocation(o,n=this.state.lastTokEndLoc){o.end=n.index,o.loc.end=n,this.optionFlags&128&&(o.range[1]=n.index)}resetStartLocationFromNode(o,n){this.resetStartLocation(o,n.loc.start)}castNodeTo(o,n){return o.type=n,o}cloneIdentifier(o){let{type:n,start:l,end:c,loc:y,range:C,name:P}=o,w=Object.create(Th);return w.type=n,w.start=l,w.end=c,w.loc=y,w.range=C,w.name=P,o.extra&&(w.extra=o.extra),w}cloneStringLiteral(o){let{type:n,start:l,end:c,loc:y,range:C,extra:P}=o,w=Object.create(Th);return w.type=n,w.start=l,w.end=c,w.loc=y,w.range=C,w.extra=P,w.value=o.value,w}},hu=o=>o.type==="ParenthesizedExpression"?hu(o.expression):o,C2=class extends A2{toAssignable(o,n=!1){let l;switch((o.type==="ParenthesizedExpression"||o.extra?.parenthesized)&&(l=hu(o),n?l.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(F.InvalidParenthesizedAssignment,o):l.type!=="CallExpression"&&l.type!=="MemberExpression"&&!this.isOptionalMemberExpression(l)&&this.raise(F.InvalidParenthesizedAssignment,o):this.raise(F.InvalidParenthesizedAssignment,o)),o.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(o,"ObjectPattern");for(let c=0,y=o.properties.length,C=y-1;c<y;c++){let P=o.properties[c],w=c===C;this.toAssignableObjectExpressionProp(P,w,n),w&&P.type==="RestElement"&&o.extra?.trailingCommaLoc&&this.raise(F.RestTrailingComma,o.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:c,value:y}=o;this.isPrivateName(c)&&this.classScope.usePrivateName(this.getPrivateNameSV(c),c.loc.start),this.toAssignable(y,n);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(o,"ArrayPattern"),this.toAssignableList(o.elements,o.extra?.trailingCommaLoc,n);break;case"AssignmentExpression":o.operator!=="="&&this.raise(F.MissingEqInAssignment,o.left.loc.end),this.castNodeTo(o,"AssignmentPattern"),delete o.operator,o.left.type==="VoidPattern"&&this.raise(F.VoidPatternInitializer,o.left),this.toAssignable(o.left,n);break;case"ParenthesizedExpression":this.toAssignable(l,n);break}}toAssignableObjectExpressionProp(o,n,l){if(o.type==="ObjectMethod")this.raise(o.kind==="get"||o.kind==="set"?F.PatternHasAccessor:F.PatternHasMethod,o.key);else if(o.type==="SpreadElement"){this.castNodeTo(o,"RestElement");let c=o.argument;this.checkToRestConversion(c,!1),this.toAssignable(c,l),n||this.raise(F.RestTrailingComma,o)}else this.toAssignable(o,l)}toAssignableList(o,n,l){let c=o.length-1;for(let y=0;y<=c;y++){let C=o[y];C&&(this.toAssignableListItem(o,y,l),C.type==="RestElement"&&(y<c?this.raise(F.RestTrailingComma,C):n&&this.raise(F.RestTrailingComma,n)))}}toAssignableListItem(o,n,l){let c=o[n];if(c.type==="SpreadElement"){this.castNodeTo(c,"RestElement");let y=c.argument;this.checkToRestConversion(y,!0),this.toAssignable(y,l)}else this.toAssignable(c,l)}isAssignable(o,n){switch(o.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let l=o.properties.length-1;return o.properties.every((c,y)=>c.type!=="ObjectMethod"&&(y===l||c.type!=="SpreadElement")&&this.isAssignable(c))}case"ObjectProperty":return this.isAssignable(o.value);case"SpreadElement":return this.isAssignable(o.argument);case"ArrayExpression":return o.elements.every(l=>l===null||this.isAssignable(l));case"AssignmentExpression":return o.operator==="=";case"ParenthesizedExpression":return this.isAssignable(o.expression);case"MemberExpression":case"OptionalMemberExpression":return!n;default:return!1}}toReferencedList(o,n){return o}toReferencedListDeep(o,n){this.toReferencedList(o,n);for(let l of o)l?.type==="ArrayExpression"&&this.toReferencedListDeep(l.elements)}parseSpread(o){let n=this.startNode();return this.next(),n.argument=this.parseMaybeAssignAllowIn(o,void 0),this.finishNode(n,"SpreadElement")}parseRestBinding(){let o=this.startNode();this.next();let n=this.parseBindingAtom();return n.type==="VoidPattern"&&this.raise(F.UnexpectedVoidPattern,n),o.argument=n,this.finishNode(o,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let o=this.startNode();return this.next(),o.elements=this.parseBindingList(3,93,1),this.finishNode(o,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(o,n,l){let c=l&1,y=[],C=!0;for(;!this.eat(o);)if(C?C=!1:this.expect(12),c&&this.match(12))y.push(null);else{if(this.eat(o))break;if(this.match(21)){let P=this.parseRestBinding();if(l&2&&(P=this.parseFunctionParamType(P)),y.push(P),!this.checkCommaAfterRest(n)){this.expect(o);break}}else{let P=[];if(l&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(F.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)P.push(this.parseDecorator());y.push(this.parseBindingElement(l,P))}}return y}parseBindingRestProperty(o){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(o.argument=this.parseVoidPattern(null),this.raise(F.UnexpectedVoidPattern,o.argument)):o.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(o,"RestElement")}parseBindingProperty(){let{type:o,startLoc:n}=this.state;if(o===21)return this.parseBindingRestProperty(this.startNode());let l=this.startNode();return o===139?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),l.key=this.parsePrivateName()):this.parsePropertyName(l),l.method=!1,this.parseObjPropValue(l,n,!1,!1,!0,!1)}parseBindingElement(o,n){let l=this.parseMaybeDefault();return o&2&&this.parseFunctionParamType(l),n.length&&(l.decorators=n,this.resetStartLocationFromNode(l,n[0])),this.parseMaybeDefault(l.loc.start,l)}parseFunctionParamType(o){return o}parseMaybeDefault(o,n){if(o??(o=this.state.startLoc),n=n??this.parseBindingAtom(),!this.eat(29))return n;let l=this.startNodeAt(o);return n.type==="VoidPattern"&&this.raise(F.VoidPatternInitializer,n),l.left=n,l.right=this.parseMaybeAssignAllowIn(),this.finishNode(l,"AssignmentPattern")}isValidLVal(o,n,l,c){switch(o){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(!n&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(o){return o.type==="OptionalMemberExpression"}checkLVal(o,n,l=64,c=!1,y=!1,C=!1,P=!1){let w=o.type;if(this.isObjectMethod(o))return;let B=this.isOptionalMemberExpression(o);if(B||w==="MemberExpression"){B&&(this.expectPlugin("optionalChainingAssign",o.loc.start),n.type!=="AssignmentExpression"&&this.raise(F.InvalidLhsOptionalChaining,o,{ancestor:n})),l!==64&&this.raise(F.InvalidPropertyBindingPattern,o);return}if(w==="Identifier"){this.checkIdentifier(o,l,y);let{name:lt}=o;c&&(c.has(lt)?this.raise(F.ParamDupe,o):c.add(lt));return}else w==="VoidPattern"&&n.type==="CatchClause"&&this.raise(F.VoidPatternCatchClauseParam,o);let I=hu(o);P||(P=I.type==="CallExpression"&&(I.callee.type==="Import"||I.callee.type==="Super"));let X=this.isValidLVal(w,P,!(C||o.extra?.parenthesized)&&n.type==="AssignmentExpression",l);if(X===!0)return;if(X===!1){let lt=l===64?F.InvalidLhs:F.InvalidLhsBinding;this.raise(lt,o,{ancestor:n});return}let Q,ye;typeof X=="string"?(Q=X,ye=w==="ParenthesizedExpression"):[Q,ye]=X;let Ce=w==="ArrayPattern"||w==="ObjectPattern"?{type:w}:n,et=o[Q];if(Array.isArray(et))for(let lt of et)lt&&this.checkLVal(lt,Ce,l,c,y,ye,!0);else et&&this.checkLVal(et,Ce,l,c,y,ye,P)}checkIdentifier(o,n,l=!1){this.state.strict&&(l?dh(o.name,this.inModule):hh(o.name))&&(n===64?this.raise(F.StrictEvalArguments,o,{referenceName:o.name}):this.raise(F.StrictEvalArgumentsBinding,o,{bindingName:o.name})),n&8192&&o.name==="let"&&this.raise(F.LetInLexicalBinding,o),n&64||this.declareNameFromIdentifier(o,n)}declareNameFromIdentifier(o,n){this.scope.declareName(o.name,n,o.loc.start)}checkToRestConversion(o,n){switch(o.type){case"ParenthesizedExpression":this.checkToRestConversion(o.expression,n);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(n)break;default:this.raise(F.InvalidRestAssignmentPattern,o)}}checkCommaAfterRest(o){return this.match(12)?(this.raise(this.lookaheadCharCode()===o?F.RestTrailingComma:F.ElementAfterRest,this.state.startLoc),!0):!1}},du=/in(?:stanceof)?|as|satisfies/y;function T2(o){if(o==null)throw new Error(`Unexpected ${o} value.`);return o}function bh(o){if(!o)throw new Error("Assert fail")}var le=W`typescript`({AbstractMethodHasImplementation:({methodName:o})=>`Method '${o}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:o})=>`Property '${o}' 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:o})=>`'declare' is not allowed in ${o}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:o})=>`Accessibility modifier already seen: '${o}'.`,DuplicateModifier:({modifier:o})=>`Duplicate modifier: '${o}'.`,EmptyHeritageClauseType:({token:o})=>`'${o}' 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:o})=>`'${o[0]}' modifier cannot be used with '${o[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:o})=>`Index signatures cannot have an accessibility modifier ('${o}').`,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:o})=>`'${o}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:o=>`'${o}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:o})=>`'${o}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:o})=>`'${o}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:o})=>`'${o}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:o=>`'${o}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:o})=>`'${o[0]}' modifier must precede '${o[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:o})=>`Private elements cannot have an accessibility modifier ('${o}').`,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:o})=>`Single type parameter ${o} should have a trailing comma. Example usage: <${o},>.`,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:o})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${o}.`,UsingDeclarationInAmbientContext:o=>`'${o}' declarations are not allowed in ambient contexts.`});function b2(o){switch(o){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 Sh(o){return o==="private"||o==="public"||o==="protected"}function S2(o){return o==="in"||o==="out"}function fu(o){if(o.extra?.parenthesized)return!1;switch(o.type){case"Identifier":return!0;case"MemberExpression":return!o.computed&&fu(o.object);case"TSInstantiationExpression":return fu(o.expression);default:return!1}}var P2=o=>class extends o{getScopeHandler(){return r2}tsIsIdentifier(){return Le(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(n,l,c){if(!Le(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let y=this.state.value;if(n.includes(y)){if(c&&this.match(106)||l&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return y}}tsParseModifiers({allowedModifiers:n,disallowedModifiers:l,stopOnStartOfClassStaticBlock:c,errorTemplate:y=le.InvalidModifierOnTypeMember},C){let P=(B,I,X,Q)=>{I===X&&C[Q]&&this.raise(le.InvalidModifiersOrder,B,{orderedModifiers:[X,Q]})},w=(B,I,X,Q)=>{(C[X]&&I===Q||C[Q]&&I===X)&&this.raise(le.IncompatibleModifiers,B,{modifiers:[X,Q]})};for(;;){let{startLoc:B}=this.state,I=this.tsParseModifier(n.concat(l??[]),c,C.static);if(!I)break;Sh(I)?C.accessibility?this.raise(le.DuplicateAccessibilityModifier,B,{modifier:I}):(P(B,I,I,"override"),P(B,I,I,"static"),P(B,I,I,"readonly"),C.accessibility=I):S2(I)?(C[I]&&this.raise(le.DuplicateModifier,B,{modifier:I}),C[I]=!0,P(B,I,"in","out")):(Object.prototype.hasOwnProperty.call(C,I)?this.raise(le.DuplicateModifier,B,{modifier:I}):(P(B,I,"static","readonly"),P(B,I,"static","override"),P(B,I,"override","readonly"),P(B,I,"abstract","override"),w(B,I,"declare","override"),w(B,I,"static","abstract")),C[I]=!0),l?.includes(I)&&this.raise(y,B,{modifier:I})}}tsIsListTerminator(n){switch(n){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(n,l){let c=[];for(;!this.tsIsListTerminator(n);)c.push(l());return c}tsParseDelimitedList(n,l,c){return T2(this.tsParseDelimitedListWorker(n,l,!0,c))}tsParseDelimitedListWorker(n,l,c,y){let C=[],P=-1;for(;!this.tsIsListTerminator(n);){P=-1;let w=l();if(w==null)return;if(C.push(w),this.eat(12)){P=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(n))break;c&&this.expect(12);return}return y&&(y.value=P),C}tsParseBracketedList(n,l,c,y,C){y||(c?this.expect(0):this.expect(47));let P=this.tsParseDelimitedList(n,l,C);return c?this.expect(3):this.expect(48),P}tsParseImportType(){let n=this.startNode();return this.expect(83),this.expect(10),this.match(134)?n.argument=this.tsParseLiteralTypeNode():(this.raise(le.UnsupportedImportTypeArgument,this.state.startLoc),n.argument=this.tsParseNonConditionalType()),this.eat(12)?n.options=this.tsParseImportTypeOptions():n.options=null,this.expect(11),this.eat(16)&&(n.qualifier=this.tsParseEntityName(3)),this.match(47)&&(n.typeArguments=this.tsParseTypeArguments()),this.finishNode(n,"TSImportType")}tsParseImportTypeOptions(){let n=this.startNode();this.expect(5);let l=this.startNode();return this.isContextual(76)?(l.method=!1,l.key=this.parseIdentifier(!0),l.computed=!1,l.shorthand=!1):this.unexpected(null,76),this.expect(14),l.value=this.tsParseImportTypeWithPropertyValue(),n.properties=[this.finishObjectProperty(l)],this.eat(12),this.expect(8),this.finishNode(n,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let n=this.startNode(),l=[];for(this.expect(5);!this.match(8);){let c=this.state.type;Le(c)||c===134?l.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return n.properties=l,this.next(),this.finishNode(n,"ObjectExpression")}tsParseEntityName(n){let l;if(n&1&&this.match(78))if(n&2)l=this.parseIdentifier(!0);else{let c=this.startNode();this.next(),l=this.finishNode(c,"ThisExpression")}else l=this.parseIdentifier(!!(n&1));for(;this.eat(16);){let c=this.startNodeAtNode(l);c.left=l,c.right=this.parseIdentifier(!!(n&1)),l=this.finishNode(c,"TSQualifiedName")}return l}tsParseTypeReference(){let n=this.startNode();return n.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(n.typeArguments=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeReference")}tsParseThisTypePredicate(n){this.next();let l=this.startNodeAtNode(n);return l.parameterName=n,l.typeAnnotation=this.tsParseTypeAnnotation(!1),l.asserts=!1,this.finishNode(l,"TSTypePredicate")}tsParseThisTypeNode(){let n=this.startNode();return this.next(),this.finishNode(n,"TSThisType")}tsParseTypeQuery(){let n=this.startNode();return this.expect(87),this.match(83)?n.exprName=this.tsParseImportType():n.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(n.typeArguments=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:le.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:le.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:le.InvalidModifierOnTypeParameter});tsParseTypeParameter(n){let l=this.startNode();return n(l),l.name=this.tsParseTypeParameterName(),l.constraint=this.tsEatThenParseType(81),l.default=this.tsEatThenParseType(29),this.finishNode(l,"TSTypeParameter")}tsTryParseTypeParameters(n){if(this.match(47))return this.tsParseTypeParameters(n)}tsParseTypeParameters(n){let l=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let c={value:-1};return l.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,n),!1,!0,c),l.params.length===0&&this.raise(le.EmptyTypeParameters,l),c.value!==-1&&this.addExtra(l,"trailingComma",c.value),this.finishNode(l,"TSTypeParameterDeclaration")}tsFillSignature(n,l){let c=n===19,y="params",C="returnType";l.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),l[y]=this.tsParseBindingListForSignature(),c?l[C]=this.tsParseTypeOrTypePredicateAnnotation(n):this.match(n)&&(l[C]=this.tsParseTypeOrTypePredicateAnnotation(n))}tsParseBindingListForSignature(){let n=super.parseBindingList(11,41,2);for(let l of n){let{type:c}=l;(c==="AssignmentPattern"||c==="TSParameterProperty")&&this.raise(le.UnsupportedSignatureParameterKind,l,{type:c})}return n}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(n,l){return this.tsFillSignature(14,l),this.tsParseTypeMemberSemicolon(),this.finishNode(l,n)}tsIsUnambiguouslyIndexSignature(){return this.next(),Le(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(n){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let l=this.parseIdentifier();l.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(l),this.expect(3),n.parameters=[l];let c=this.tsTryParseTypeAnnotation();return c&&(n.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSIndexSignature")}tsParsePropertyOrMethodSignature(n,l){if(this.eat(17)&&(n.optional=!0),this.match(10)||this.match(47)){l&&this.raise(le.ReadonlyForMethodSignature,n);let c=n;c.kind&&this.match(47)&&this.raise(le.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,c),this.tsParseTypeMemberSemicolon();let y="params",C="returnType";if(c.kind==="get")c[y].length>0&&(this.raise(F.BadGetterArity,this.state.curPosition()),this.isThisParam(c[y][0])&&this.raise(le.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(c.kind==="set"){if(c[y].length!==1)this.raise(F.BadSetterArity,this.state.curPosition());else{let P=c[y][0];this.isThisParam(P)&&this.raise(le.AccessorCannotDeclareThisParameter,this.state.curPosition()),P.type==="Identifier"&&P.optional&&this.raise(le.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),P.type==="RestElement"&&this.raise(le.SetAccessorCannotHaveRestParameter,this.state.curPosition())}c[C]&&this.raise(le.SetAccessorCannotHaveReturnType,c[C])}else c.kind="method";return this.finishNode(c,"TSMethodSignature")}else{let c=n;l&&(c.readonly=!0);let y=this.tsTryParseTypeAnnotation();return y&&(c.typeAnnotation=y),this.tsParseTypeMemberSemicolon(),this.finishNode(c,"TSPropertySignature")}}tsParseTypeMember(){let n=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",n);if(this.match(77)){let c=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",n):(n.key=this.createIdentifier(c,"new"),this.tsParsePropertyOrMethodSignature(n,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},n),this.tsTryParseIndexSignature(n)||(super.parsePropertyName(n),!n.computed&&n.key.type==="Identifier"&&(n.key.name==="get"||n.key.name==="set")&&this.tsTokenCanFollowModifier()&&(n.kind=n.key.name,super.parsePropertyName(n),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(n,!!n.readonly))}tsParseTypeLiteral(){let n=this.startNode();return n.members=this.tsParseObjectTypeMembers(),this.finishNode(n,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let n=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),n}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 n=this.startNode();return this.expect(5),this.match(53)?(n.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(n.readonly=!0),this.expect(0),n.key=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(58),n.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(n.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(n.optional=!0),n.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(n,"TSMappedType")}tsParseTupleType(){let n=this.startNode();n.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let l=!1;return n.elementTypes.forEach(c=>{let{type:y}=c;l&&y!=="TSRestType"&&y!=="TSOptionalType"&&!(y==="TSNamedTupleMember"&&c.optional)&&this.raise(le.OptionalTypeBeforeRequired,c),l||(l=y==="TSNamedTupleMember"&&c.optional||y==="TSOptionalType")}),this.finishNode(n,"TSTupleType")}tsParseTupleElementType(){let n=this.state.startLoc,l=this.eat(21),{startLoc:c}=this.state,y,C,P,w,B=dt(this.state.type)?this.lookaheadCharCode():null;if(B===58)y=!0,P=!1,C=this.parseIdentifier(!0),this.expect(14),w=this.tsParseType();else if(B===63){P=!0;let I=this.state.value,X=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(y=!0,C=this.createIdentifier(this.startNodeAt(c),I),this.expect(17),this.expect(14),w=this.tsParseType()):(y=!1,w=X,this.expect(17))}else w=this.tsParseType(),P=this.eat(17),y=this.eat(14);if(y){let I;C?(I=this.startNodeAt(c),I.optional=P,I.label=C,I.elementType=w,this.eat(17)&&(I.optional=!0,this.raise(le.TupleOptionalAfterType,this.state.lastTokStartLoc))):(I=this.startNodeAt(c),I.optional=P,this.raise(le.InvalidTupleMemberLabel,w),I.label=w,I.elementType=this.tsParseType()),w=this.finishNode(I,"TSNamedTupleMember")}else if(P){let I=this.startNodeAt(c);I.typeAnnotation=w,w=this.finishNode(I,"TSOptionalType")}if(l){let I=this.startNodeAt(n);I.typeAnnotation=w,w=this.finishNode(I,"TSRestType")}return w}tsParseParenthesizedType(){let n=this.startNode();return this.expect(10),n.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(n,"TSParenthesizedType")}tsParseFunctionOrConstructorType(n,l){let c=this.startNode();return n==="TSConstructorType"&&(c.abstract=!!l,l&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,c)),this.finishNode(c,n)}tsParseLiteralTypeNode(){let n=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:n.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(n,"TSLiteralType")}tsParseTemplateLiteralType(){{let n=this.state.startLoc,l=this.parseTemplateElement(!1),c=[l];if(l.tail){let y=this.startNodeAt(n),C=this.startNodeAt(n);return C.expressions=[],C.quasis=c,y.literal=this.finishNode(C,"TemplateLiteral"),this.finishNode(y,"TSLiteralType")}else{let y=[];for(;!l.tail;)y.push(this.tsParseType()),this.readTemplateContinuation(),c.push(l=this.parseTemplateElement(!1));let C=this.startNodeAt(n);return C.types=y,C.quasis=c,this.finishNode(C,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let n=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(n):n}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 n=this.startNode(),l=this.lookahead();return l.type!==135&&l.type!==136&&this.unexpected(),n.literal=this.parseMaybeUnary(),this.finishNode(n,"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 n=this.state.startLoc;this.next();let l=this.tsParseType();return this.expect(11),this.addExtra(l,"parenthesized",!0),this.addExtra(l,"parenStart",n.index),l}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:n}=this.state;if(Le(n)||n===88||n===84){let l=n===88?"TSVoidKeyword":n===84?"TSNullKeyword":b2(this.state.value);if(l!==void 0&&this.lookaheadCharCode()!==46){let c=this.startNode();return this.next(),this.finishNode(c,l)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:n}=this.state,l=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let c=this.startNodeAt(n);c.elementType=l,this.expect(3),l=this.finishNode(c,"TSArrayType")}else{let c=this.startNodeAt(n);c.objectType=l,c.indexType=this.tsParseType(),this.expect(3),l=this.finishNode(c,"TSIndexedAccessType")}return l}tsParseTypeOperator(){let n=this.startNode(),l=this.state.value;return this.next(),n.operator=l,n.typeAnnotation=this.tsParseTypeOperatorOrHigher(),l==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(n),this.finishNode(n,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(n){switch(n.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(le.UnexpectedReadonly,n)}}tsParseInferType(){let n=this.startNode();this.expectContextual(115);let l=this.startNode();return l.name=this.tsParseTypeParameterName(),l.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),n.typeParameter=this.finishNode(l,"TSTypeParameter"),this.finishNode(n,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let n=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return n}}tsParseTypeOperatorOrHigher(){return I0(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(n,l,c){let y=this.startNode(),C=this.eat(c),P=[];do P.push(l());while(this.eat(c));return P.length===1&&!C?P[0]:(y.types=P,this.finishNode(y,n))}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(Le(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:n}=this.state,l=n.length;try{return this.parseObjectLike(8,!0),n.length===l}catch{return!1}}if(this.match(0)){this.next();let{errors:n}=this.state,l=n.length;try{return super.parseBindingList(3,93,1),n.length===l}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(n){return this.tsInType(()=>{let l=this.startNode();this.expect(n);let c=this.startNode(),y=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(y&&this.match(78)){let w=this.tsParseThisTypeOrThisTypePredicate();return w.type==="TSThisType"?(c.parameterName=w,c.asserts=!0,c.typeAnnotation=null,w=this.finishNode(c,"TSTypePredicate")):(this.resetStartLocationFromNode(w,c),w.asserts=!0),l.typeAnnotation=w,this.finishNode(l,"TSTypeAnnotation")}let C=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!C)return y?(c.parameterName=this.parseIdentifier(),c.asserts=y,c.typeAnnotation=null,l.typeAnnotation=this.finishNode(c,"TSTypePredicate"),this.finishNode(l,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,l);let P=this.tsParseTypeAnnotation(!1);return c.parameterName=C,c.typeAnnotation=P,c.asserts=y,l.typeAnnotation=this.finishNode(c,"TSTypePredicate"),this.finishNode(l,"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 n=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),n}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let n=this.state.containsEsc;return this.next(),!Le(this.state.type)&&!this.match(78)?!1:(n&&this.raise(F.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(n=!0,l=this.startNode()){return this.tsInType(()=>{n&&this.expect(14),l.typeAnnotation=this.tsParseType()}),this.finishNode(l,"TSTypeAnnotation")}tsParseType(){bh(this.state.inType);let n=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return n;let l=this.startNodeAtNode(n);return l.checkType=n,l.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),l.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),l.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(l,"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(le.ReservedTypeAssertion,this.state.startLoc);let n=this.startNode();return n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),n.expression=this.parseMaybeUnary(),this.finishNode(n,"TSTypeAssertion")}tsParseHeritageClause(n){let l=this.state.startLoc,c=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let y=super.parseExprSubscripts();fu(y)||this.raise(le.InvalidHeritageClauseType,y.loc.start,{token:n});let C=n==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(y.type==="TSInstantiationExpression")return y.type=C,y;let P=this.startNodeAtNode(y);return P.expression=y,(this.match(47)||this.match(51))&&(P.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(P,C)}});return c.length||this.raise(le.EmptyHeritageClauseType,l,{token:n}),c}tsParseInterfaceDeclaration(n,l={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),l.declare&&(n.declare=!0),Le(this.state.type)?(n.id=this.parseIdentifier(),this.checkIdentifier(n.id,130)):(n.id=null,this.raise(le.MissingInterfaceName,this.state.startLoc)),n.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(n.extends=this.tsParseHeritageClause("extends"));let c=this.startNode();return c.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),n.body=this.finishNode(c,"TSInterfaceBody"),this.finishNode(n,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(n){return n.id=this.parseIdentifier(),this.checkIdentifier(n.id,2),n.typeAnnotation=this.tsInType(()=>{if(n.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let l=this.startNode();return this.next(),this.finishNode(l,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(n,"TSTypeAliasDeclaration")}tsInTopLevelContext(n){if(this.curContext()!==he.brace){let l=this.state.context;this.state.context=[l[0]];try{return n()}finally{this.state.context=l}}else return n()}tsInType(n){let l=this.state.inType;this.state.inType=!0;try{return n()}finally{this.state.inType=l}}tsInDisallowConditionalTypesContext(n){let l=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return n()}finally{this.state.inDisallowConditionalTypesContext=l}}tsInAllowConditionalTypesContext(n){let l=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return n()}finally{this.state.inDisallowConditionalTypesContext=l}}tsEatThenParseType(n){if(this.match(n))return this.tsNextThenParseType()}tsExpectThenParseType(n){return this.tsInType(()=>(this.expect(n),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let n=this.startNode();return n.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(n.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(n,"TSEnumMember")}tsParseEnumDeclaration(n,l={}){return l.const&&(n.const=!0),l.declare&&(n.declare=!0),this.expectContextual(126),n.id=this.parseIdentifier(),this.checkIdentifier(n.id,n.const?8971:8459),n.body=this.tsParseEnumBody(),this.finishNode(n,"TSEnumDeclaration")}tsParseEnumBody(){let n=this.startNode();return this.expect(5),n.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(n,"TSEnumBody")}tsParseModuleBlock(){let n=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(n.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(n,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(n,l=!1){return n.id=this.tsParseEntityName(1),n.id.type==="Identifier"&&this.checkIdentifier(n.id,1024),this.scope.enter(1024),this.prodParam.enter(0),n.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(n,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(n){return this.isContextual(112)?(n.kind="global",n.id=this.parseIdentifier()):this.match(134)?(n.kind="module",n.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),n.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(n,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(n,l,c){n.id=l||this.parseIdentifier(),this.checkIdentifier(n.id,4096),this.expect(29);let y=this.tsParseModuleReference();return n.importKind==="type"&&y.type!=="TSExternalModuleReference"&&this.raise(le.ImportAliasHasImportType,y),n.moduleReference=y,this.semicolon(),this.finishNode(n,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let n=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),n.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExternalModuleReference")}tsLookAhead(n){let l=this.state.clone(),c=n();return this.state=l,c}tsTryParseAndCatch(n){let l=this.tryParse(c=>n()||c());if(!(l.aborted||!l.node))return l.error&&(this.state=l.failState),l.node}tsTryParse(n){let l=this.state.clone(),c=n();if(c!==void 0&&c!==!1)return c;this.state=l}tsTryParseDeclare(n){if(this.isLineTerminator())return;let l=this.state.type;return this.tsInAmbientContext(()=>{switch(l){case 68:return n.declare=!0,super.parseFunctionStatement(n,!1,!1);case 80:return n.declare=!0,this.parseClass(n,!0,!1);case 126:return this.tsParseEnumDeclaration(n,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(n);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(n.declare=!0,this.parseVarStatement(n,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(n,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(le.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),n.declare=!0,this.parseVarStatement(n,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(le.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),n.declare=!0,this.next(),this.parseVarStatement(n,"await using",!0);break;case 129:{let c=this.tsParseInterfaceDeclaration(n,{declare:!0});if(c)return c}default:if(Le(l))return this.tsParseDeclaration(n,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(n,l,c,y){switch(l){case 124:if(this.tsCheckLineTerminator(c)&&(this.match(80)||Le(this.state.type)))return this.tsParseAbstractDeclaration(n,y);break;case 127:if(this.tsCheckLineTerminator(c)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(n);if(Le(this.state.type))return n.kind="module",this.tsParseModuleOrNamespaceDeclaration(n)}break;case 128:if(this.tsCheckLineTerminator(c)&&Le(this.state.type))return n.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(n);break;case 130:if(this.tsCheckLineTerminator(c)&&Le(this.state.type))return this.tsParseTypeAliasDeclaration(n);break}}tsCheckLineTerminator(n){return n?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(n){if(!this.match(47))return;let l=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let c=this.tsTryParseAndCatch(()=>{let y=this.startNodeAt(n);return y.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(y),y.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),y});if(this.state.maybeInArrowParameters=l,!!c)return super.parseArrowExpression(c,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let n=this.startNode();return n.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),n.params.length===0?this.raise(le.EmptyTypeArguments,n):!this.state.inType&&this.curContext()===he.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(n,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return N0(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(n,l){let c=l.length?l[0].loc.start:this.state.startLoc,y={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},y);let C=y.accessibility,P=y.override,w=y.readonly;!(n&4)&&(C||w||P)&&this.raise(le.UnexpectedParameterModifier,c);let B=this.parseMaybeDefault();n&2&&this.parseFunctionParamType(B);let I=this.parseMaybeDefault(B.loc.start,B);if(C||w||P){let X=this.startNodeAt(c);return l.length&&(X.decorators=l),C&&(X.accessibility=C),w&&(X.readonly=w),P&&(X.override=P),I.type!=="Identifier"&&I.type!=="AssignmentPattern"&&this.raise(le.UnsupportedParameterPropertyKind,X),X.parameter=I,this.finishNode(X,"TSParameterProperty")}return l.length&&(B.decorators=l),I}isSimpleParameter(n){return n.type==="TSParameterProperty"&&super.isSimpleParameter(n.parameter)||super.isSimpleParameter(n)}tsDisallowOptionalPattern(n){for(let l of n.params)l.type!=="Identifier"&&l.optional&&!this.state.isAmbientContext&&this.raise(le.PatternIsOptional,l)}setArrowFunctionParameters(n,l,c){super.setArrowFunctionParameters(n,l,c),this.tsDisallowOptionalPattern(n)}parseFunctionBodyAndFinish(n,l,c=!1){this.match(14)&&(n.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let y=l==="FunctionDeclaration"?"TSDeclareFunction":l==="ClassMethod"||l==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return y&&!this.match(5)&&this.isLineTerminator()?this.finishNode(n,y):y==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(le.DeclareFunctionHasImplementation,n),n.declare)?super.parseFunctionBodyAndFinish(n,y,c):(this.tsDisallowOptionalPattern(n),super.parseFunctionBodyAndFinish(n,l,c))}registerFunctionStatementId(n){!n.body&&n.id?this.checkIdentifier(n.id,1024):super.registerFunctionStatementId(n)}tsCheckForInvalidTypeCasts(n){n.forEach(l=>{l?.type==="TSTypeCastExpression"&&this.raise(le.UnexpectedTypeAnnotation,l.typeAnnotation)})}toReferencedList(n,l){return this.tsCheckForInvalidTypeCasts(n),n}parseArrayLike(n,l,c){let y=super.parseArrayLike(n,l,c);return y.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(y.elements),y}parseSubscript(n,l,c,y){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let P=this.startNodeAt(l);return P.expression=n,this.finishNode(P,"TSNonNullExpression")}let C=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(c)return y.stop=!0,n;y.optionalChainMember=C=!0,this.next()}if(this.match(47)||this.match(51)){let P,w=this.tsTryParseAndCatch(()=>{if(!c&&this.atPossibleAsyncArrow(n)){let Q=this.tsTryParseGenericAsyncArrowFunction(l);if(Q)return y.stop=!0,Q}let B=this.tsParseTypeArgumentsInExpression();if(!B)return;if(C&&!this.match(10)){P=this.state.curPosition();return}if(ru(this.state.type)){let Q=super.parseTaggedTemplateExpression(n,l,y);return Q.typeArguments=B,Q}if(!c&&this.eat(10)){let Q=this.startNodeAt(l);return Q.callee=n,Q.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Q.arguments),Q.typeArguments=B,y.optionalChainMember&&(Q.optional=C),this.finishCallExpression(Q,y.optionalChainMember)}let I=this.state.type;if(I===48||I===52||I!==10&&Qi(I)&&!this.hasPrecedingLineBreak())return;let X=this.startNodeAt(l);return X.expression=n,X.typeArguments=B,this.finishNode(X,"TSInstantiationExpression")});if(P&&this.unexpected(P,10),w)return w.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(le.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(w.expression=super.stopParseSubscript(n,y))),w}return super.parseSubscript(n,l,c,y)}parseNewCallee(n){super.parseNewCallee(n);let{callee:l}=n;l.type==="TSInstantiationExpression"&&!l.extra?.parenthesized&&(n.typeArguments=l.typeArguments,n.callee=l.expression)}parseExprOp(n,l,c){let y;if(Aa(58)>c&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(y=this.isContextual(120)))){let C=this.startNodeAt(l);return C.expression=n,C.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(y&&this.raise(F.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(C,y?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(C,l,c)}return super.parseExprOp(n,l,c)}checkReservedWord(n,l,c,y){this.state.isAmbientContext||super.checkReservedWord(n,l,c,y)}checkImportReflection(n){super.checkImportReflection(n),n.module&&n.importKind!=="value"&&this.raise(le.ImportReflectionHasImportType,n.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(n){if(super.isPotentialImportPhase(n))return!0;if(this.isContextual(130)){let l=this.lookaheadCharCode();return n?l===123||l===42:l!==61}return!n&&this.isContextual(87)}applyImportPhase(n,l,c,y){super.applyImportPhase(n,l,c,y),l?n.exportKind=c==="type"?"type":"value":n.importKind=c==="type"||c==="typeof"?c:"value"}parseImport(n){if(this.match(134))return n.importKind="value",super.parseImport(n);let l;if(Le(this.state.type)&&this.lookaheadCharCode()===61)return n.importKind="value",this.tsParseImportEqualsDeclaration(n);if(this.isContextual(130)){let c=this.parseMaybeImportPhase(n,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(n,c);l=super.parseImportSpecifiersAndAfter(n,c)}else l=super.parseImport(n);return l.importKind==="type"&&l.specifiers.length>1&&l.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(le.TypeImportCannotSpecifyDefaultAndNamed,l),l}parseExport(n,l){if(this.match(83)){let c=this.startNode();this.next();let y=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?y=this.parseMaybeImportPhase(c,!1):c.importKind="value";let C=this.tsParseImportEqualsDeclaration(c,y,!0);return n.attributes=[],n.declaration=C,n.exportKind="value",n.source=null,n.specifiers=[],this.finishNode(n,"ExportNamedDeclaration")}else if(this.eat(29)){let c=n;return c.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(c,"TSExportAssignment")}else if(this.eatContextual(93)){let c=n;return this.expectContextual(128),c.id=this.parseIdentifier(),this.semicolon(),this.finishNode(c,"TSNamespaceExportDeclaration")}else return super.parseExport(n,l)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let n=this.startNode();return this.next(),n.abstract=!0,this.parseClass(n,!0,!0)}if(this.match(129)){let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return super.parseExportDefaultExpression()}parseVarStatement(n,l,c=!1){let{isAmbientContext:y}=this.state,C=super.parseVarStatement(n,l,c||y);if(!y)return C;if(!n.declare&&(l==="using"||l==="await using"))return this.raiseOverwrite(le.UsingDeclarationInAmbientContext,n,l),C;for(let{id:P,init:w}of C.declarations)w&&(l==="var"||l==="let"||P.typeAnnotation?this.raise(le.InitializerNotAllowedInAmbientContext,w):w2(w,this.hasPlugin("estree"))||this.raise(le.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,w));return C}parseStatementContent(n,l){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let c=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(c,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let c=this.state.type,y=this.startNode();this.next();let C=c===125?this.tsTryParseDeclare(y):this.tsParseAbstractDeclaration(y,l);return C?(c===125&&(C.declare=!0),C):(y.expression=this.createIdentifier(this.startNodeAt(y.loc.start),c===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(y,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let c=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(c)}break}case 129:{let c=this.tsParseInterfaceDeclaration(this.startNode());if(c)return c;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let c=this.startNode();return this.next(),this.tsParseDeclaration(c,127,!1,l)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let c=this.startNode();return this.next(),this.tsParseDeclaration(c,128,!1,l)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let c=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(c)}break}}return super.parseStatementContent(n,l)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(n,l){return l.some(c=>Sh(c)?n.accessibility===c:!!n[c])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(n,l,c){let y=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:y,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:le.InvalidModifierOnTypeParameterPositions},l);let C=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(l,y)&&this.raise(le.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(n,l)):this.parseClassMemberWithIsStatic(n,l,c,!!l.static)};l.declare?this.tsInAmbientContext(C):C()}parseClassMemberWithIsStatic(n,l,c,y){let C=this.tsTryParseIndexSignature(l);if(C){n.body.push(C),l.abstract&&this.raise(le.IndexSignatureHasAbstract,l),l.accessibility&&this.raise(le.IndexSignatureHasAccessibility,l,{modifier:l.accessibility}),l.declare&&this.raise(le.IndexSignatureHasDeclare,l),l.override&&this.raise(le.IndexSignatureHasOverride,l);return}!this.state.inAbstractClass&&l.abstract&&this.raise(le.NonAbstractClassHasAbstractMethod,l),l.override&&(c.hadSuperClass||this.raise(le.OverrideNotInSubClass,l)),super.parseClassMemberWithIsStatic(n,l,c,y)}parsePostMemberNameModifiers(n){this.eat(17)&&(n.optional=!0),n.readonly&&this.match(10)&&this.raise(le.ClassMethodHasReadonly,n),n.declare&&this.match(10)&&this.raise(le.ClassMethodHasDeclare,n)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(n,l,c){if(!this.match(17))return n;if(this.state.maybeInArrowParameters){let y=this.lookaheadCharCode();if(y===44||y===61||y===58||y===41)return this.setOptionalParametersError(c),n}return super.parseConditional(n,l,c)}parseParenItem(n,l){let c=super.parseParenItem(n,l);if(this.eat(17)&&(c.optional=!0,this.resetEndLocation(n)),this.match(14)){let y=this.startNodeAt(l);return y.expression=n,y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(y,"TSTypeCastExpression")}return n}parseExportDeclaration(n){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(n));let l=this.state.startLoc,c=this.eatContextual(125);if(c&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(le.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let y=Le(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(n);return y?((y.type==="TSInterfaceDeclaration"||y.type==="TSTypeAliasDeclaration"||c)&&(n.exportKind="type"),c&&y.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(y,l),y.declare=!0),y):null}parseClassId(n,l,c,y){if((!l||c)&&this.isContextual(113))return;super.parseClassId(n,l,c,n.declare?1024:8331);let C=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);C&&(n.typeParameters=C)}parseClassPropertyAnnotation(n){n.optional||(this.eat(35)?n.definite=!0:this.eat(17)&&(n.optional=!0));let l=this.tsTryParseTypeAnnotation();l&&(n.typeAnnotation=l)}parseClassProperty(n){if(this.parseClassPropertyAnnotation(n),this.state.isAmbientContext&&!(n.readonly&&!n.typeAnnotation)&&this.match(29)&&this.raise(le.DeclareClassFieldHasInitializer,this.state.startLoc),n.abstract&&this.match(29)){let{key:l}=n;this.raise(le.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:l.type==="Identifier"&&!n.computed?l.name:`[${this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end))}]`})}return super.parseClassProperty(n)}parseClassPrivateProperty(n){return n.abstract&&this.raise(le.PrivateElementHasAbstract,n),n.accessibility&&this.raise(le.PrivateElementHasAccessibility,n,{modifier:n.accessibility}),this.parseClassPropertyAnnotation(n),super.parseClassPrivateProperty(n)}parseClassAccessorProperty(n){return this.parseClassPropertyAnnotation(n),n.optional&&this.raise(le.AccessorCannotBeOptional,n),super.parseClassAccessorProperty(n)}pushClassMethod(n,l,c,y,C,P){let w=this.tsTryParseTypeParameters(this.tsParseConstModifier);w&&C&&this.raise(le.ConstructorHasTypeParameters,w);let{declare:B=!1,kind:I}=l;B&&(I==="get"||I==="set")&&this.raise(le.DeclareAccessor,l,{kind:I}),w&&(l.typeParameters=w),super.pushClassMethod(n,l,c,y,C,P)}pushClassPrivateMethod(n,l,c,y){let C=this.tsTryParseTypeParameters(this.tsParseConstModifier);C&&(l.typeParameters=C),super.pushClassPrivateMethod(n,l,c,y)}declareClassPrivateMethodInScope(n,l){n.type!=="TSDeclareMethod"&&(n.type==="MethodDefinition"&&n.value.body==null||super.declareClassPrivateMethodInScope(n,l))}parseClassSuper(n){super.parseClassSuper(n),n.superClass&&(this.match(47)||this.match(51))&&(n.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(n.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(n,l,c,y,C,P,w){let B=this.tsTryParseTypeParameters(this.tsParseConstModifier);return B&&(n.typeParameters=B),super.parseObjPropValue(n,l,c,y,C,P,w)}parseFunctionParams(n,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&(n.typeParameters=c),super.parseFunctionParams(n,l)}parseVarId(n,l){super.parseVarId(n,l),n.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(n.definite=!0);let c=this.tsTryParseTypeAnnotation();c&&(n.id.typeAnnotation=c,this.resetEndLocation(n.id))}parseAsyncArrowFromCallExpression(n,l){return this.match(14)&&(n.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(n,l)}parseMaybeAssign(n,l){let c,y,C;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),y=this.tryParse(()=>super.parseMaybeAssign(n,l),c),!y.error)return y.node;let{context:B}=this.state,I=B[B.length-1];(I===he.j_oTag||I===he.j_expr)&&B.pop()}if(!y?.error&&!this.match(47))return super.parseMaybeAssign(n,l);(!c||c===this.state)&&(c=this.state.clone());let P,w=this.tryParse(B=>{P=this.tsParseTypeParameters(this.tsParseConstModifier);let I=super.parseMaybeAssign(n,l);if((I.type!=="ArrowFunctionExpression"||I.extra?.parenthesized)&&B(),P?.params.length!==0&&this.resetStartLocationFromNode(I,P),I.typeParameters=P,this.hasPlugin("jsx")&&I.typeParameters.params.length===1&&!I.typeParameters.extra?.trailingComma){let X=I.typeParameters.params[0];X.constraint||this.raise(le.SingleTypeParameterWithoutTrailingComma,E(X.loc.end,1),{typeParameterName:X.name.name})}return I},c);if(!w.error&&!w.aborted)return P&&this.reportReservedArrowTypeParam(P),w.node;if(!y&&(bh(!this.hasPlugin("jsx")),C=this.tryParse(()=>super.parseMaybeAssign(n,l),c),!C.error))return C.node;if(y?.node)return this.state=y.failState,y.node;if(w.node)return this.state=w.failState,P&&this.reportReservedArrowTypeParam(P),w.node;if(C?.node)return this.state=C.failState,C.node;throw y?.error||w.error||C?.error}reportReservedArrowTypeParam(n){n.params.length===1&&!n.params[0].constraint&&!n.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(le.ReservedArrowTypeParam,n)}parseMaybeUnary(n,l){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(n,l)}parseArrow(n){if(this.match(14)){let l=this.tryParse(c=>{let y=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&c(),y});if(l.aborted)return;l.thrown||(l.error&&(this.state=l.failState),n.returnType=l.node)}return super.parseArrow(n)}parseFunctionParamType(n){this.eat(17)&&(n.optional=!0);let l=this.tsTryParseTypeAnnotation();return l&&(n.typeAnnotation=l),this.resetEndLocation(n),n}isAssignable(n,l){switch(n.type){case"TSTypeCastExpression":return this.isAssignable(n.expression,l);case"TSParameterProperty":return!0;default:return super.isAssignable(n,l)}}toAssignable(n,l=!1){switch(n.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(n,l);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":l?this.expressionScope.recordArrowParameterBindingError(le.UnexpectedTypeCastInParameter,n):this.raise(le.UnexpectedTypeCastInParameter,n),this.toAssignable(n.expression,l);break;case"AssignmentExpression":!l&&n.left.type==="TSTypeCastExpression"&&(n.left=this.typeCastToParameter(n.left));default:super.toAssignable(n,l)}}toAssignableParenthesizedExpression(n,l){switch(n.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(n.expression,l);break;default:super.toAssignable(n,l)}}checkToRestConversion(n,l){switch(n.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(n.expression,!1);break;default:super.checkToRestConversion(n,l)}}isValidLVal(n,l,c,y){switch(n){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(y!==64||!c)&&["expression",!0];default:return super.isValidLVal(n,l,c,y)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(n,l){if(this.match(47)||this.match(51)){let c=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let y=super.parseMaybeDecoratorArguments(n,l);return y.typeArguments=c,y}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(n,l)}checkCommaAfterRest(n){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===n?(this.next(),!1):super.checkCommaAfterRest(n)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(n,l){let c=super.parseMaybeDefault(n,l);return c.type==="AssignmentPattern"&&c.typeAnnotation&&c.right.start<c.typeAnnotation.start&&this.raise(le.TypeAnnotationAfterAssign,c.typeAnnotation),c}getTokenFromCode(n){if(this.state.inType){if(n===62){this.finishOp(48,1);return}if(n===60){this.finishOp(47,1);return}}super.getTokenFromCode(n)}reScan_lt_gt(){let{type:n}=this.state;n===47?(this.state.pos-=1,this.readToken_lt()):n===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:n}=this.state;return n===51?(this.state.pos-=2,this.finishOp(47,1),47):n}toAssignableListItem(n,l,c){let y=n[l];y.type==="TSTypeCastExpression"&&(n[l]=this.typeCastToParameter(y)),super.toAssignableListItem(n,l,c)}typeCastToParameter(n){return n.expression.typeAnnotation=n.typeAnnotation,this.resetEndLocation(n.expression,n.typeAnnotation.loc.end),n.expression}shouldParseArrow(n){return this.match(14)?n.every(l=>this.isAssignable(l,!0)):super.shouldParseArrow(n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(n){if(this.match(47)||this.match(51)){let l=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());l&&(n.typeArguments=l)}return super.jsxParseOpeningElementAfterName(n)}getGetterSetterExpectedParamCount(n){let l=super.getGetterSetterExpectedParamCount(n),c=this.getObjectOrClassMethodParams(n)[0];return c&&this.isThisParam(c)?l+1:l}parseCatchClauseParam(){let n=super.parseCatchClauseParam(),l=this.tsTryParseTypeAnnotation();return l&&(n.typeAnnotation=l,this.resetEndLocation(n)),n}tsInAmbientContext(n){let{isAmbientContext:l,strict:c}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return n()}finally{this.state.isAmbientContext=l,this.state.strict=c}}parseClass(n,l,c){let y=this.state.inAbstractClass;this.state.inAbstractClass=!!n.abstract;try{return super.parseClass(n,l,c)}finally{this.state.inAbstractClass=y}}tsParseAbstractDeclaration(n,l){if(this.match(80))return n.abstract=!0,this.maybeTakeDecorators(l,this.parseClass(n,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(n.abstract=!0,this.raise(le.NonClassMethodPropertyHasAbstractModifier,n),this.tsParseInterfaceDeclaration(n));throw this.unexpected(null,80)}parseMethod(n,l,c,y,C,P,w){let B=super.parseMethod(n,l,c,y,C,P,w);if((B.abstract||B.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?B.value:B).body){let{key:I}=B;this.raise(le.AbstractMethodHasImplementation,B,{methodName:I.type==="Identifier"&&!B.computed?I.name:`[${this.input.slice(this.offsetToSourcePos(I.start),this.offsetToSourcePos(I.end))}]`})}return B}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(n,l,c,y){return!l&&y?(this.parseTypeOnlyImportExportSpecifier(n,!1,c),this.finishNode(n,"ExportSpecifier")):(n.exportKind="value",super.parseExportSpecifier(n,l,c,y))}parseImportSpecifier(n,l,c,y,C){return!l&&y?(this.parseTypeOnlyImportExportSpecifier(n,!0,c),this.finishNode(n,"ImportSpecifier")):(n.importKind="value",super.parseImportSpecifier(n,l,c,y,c?4098:4096))}parseTypeOnlyImportExportSpecifier(n,l,c){let y=l?"imported":"local",C=l?"local":"exported",P=n[y],w,B=!1,I=!0,X=P.loc.start;if(this.isContextual(93)){let ye=this.parseIdentifier();if(this.isContextual(93)){let Ce=this.parseIdentifier();dt(this.state.type)?(B=!0,P=ye,w=l?this.parseIdentifier():this.parseModuleExportName(),I=!1):(w=Ce,I=!1)}else dt(this.state.type)?(I=!1,w=l?this.parseIdentifier():this.parseModuleExportName()):(B=!0,P=ye)}else dt(this.state.type)&&(B=!0,l?(P=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(P.name,P.loc.start,!0,!0)):P=this.parseModuleExportName());B&&c&&this.raise(l?le.TypeModifierIsUsedInTypeImports:le.TypeModifierIsUsedInTypeExports,X),n[y]=P,n[C]=w;let Q=l?"importKind":"exportKind";n[Q]=B?"type":"value",I&&this.eatContextual(93)&&(n[C]=l?this.parseIdentifier():this.parseModuleExportName()),n[C]||(n[C]=this.cloneIdentifier(n[y])),l&&this.checkIdentifier(n[C],B?4098:4096)}fillOptionalPropertiesForTSESLint(n){switch(n.type){case"ExpressionStatement":n.directive??(n.directive=void 0);return;case"RestElement":n.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":n.decorators??(n.decorators=[]),n.optional??(n.optional=!1),n.typeAnnotation??(n.typeAnnotation=void 0);return;case"TSParameterProperty":n.accessibility??(n.accessibility=void 0),n.decorators??(n.decorators=[]),n.override??(n.override=!1),n.readonly??(n.readonly=!1),n.static??(n.static=!1);return;case"TSEmptyBodyFunctionExpression":n.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":n.declare??(n.declare=!1),n.returnType??(n.returnType=void 0),n.typeParameters??(n.typeParameters=void 0);return;case"Property":n.optional??(n.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":n.optional??(n.optional=!1);case"TSIndexSignature":n.accessibility??(n.accessibility=void 0),n.readonly??(n.readonly=!1),n.static??(n.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":n.declare??(n.declare=!1),n.definite??(n.definite=!1),n.readonly??(n.readonly=!1),n.typeAnnotation??(n.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":n.accessibility??(n.accessibility=void 0),n.decorators??(n.decorators=[]),n.override??(n.override=!1),n.optional??(n.optional=!1);return;case"ClassExpression":n.id??(n.id=null);case"ClassDeclaration":n.abstract??(n.abstract=!1),n.declare??(n.declare=!1),n.decorators??(n.decorators=[]),n.implements??(n.implements=[]),n.superTypeArguments??(n.superTypeArguments=void 0),n.typeParameters??(n.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":n.declare??(n.declare=!1);return;case"VariableDeclarator":n.definite??(n.definite=!1);return;case"TSEnumDeclaration":n.const??(n.const=!1),n.declare??(n.declare=!1);return;case"TSEnumMember":n.computed??(n.computed=!1);return;case"TSImportType":n.qualifier??(n.qualifier=null),n.options??(n.options=null),n.typeArguments??(n.typeArguments=null);return;case"TSInterfaceDeclaration":n.declare??(n.declare=!1),n.extends??(n.extends=[]);return;case"TSMappedType":n.optional??(n.optional=!1),n.readonly??(n.readonly=void 0);return;case"TSModuleDeclaration":n.declare??(n.declare=!1),n.global??(n.global=n.kind==="global");return;case"TSTypeParameter":n.const??(n.const=!1),n.in??(n.in=!1),n.out??(n.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(n,l){if(ur(n)){if(du.lastIndex=l,du.test(this.input)){let c=this.codePointAtPos(du.lastIndex);if(!Ss(c)&&c!==92)return!1}return!0}else return n===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let n=this.nextTokenInLineStart(),l=this.codePointAtPos(n);return this.chStartsBindingIdentifierAndNotRelationalOperator(l,n)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let n=this.nextTokenInLineStart(),l=this.codePointAtPos(n);return this.chStartsBindingIdentifier(l,n)||l===34||l===39}};function v2(o){if(o.type!=="MemberExpression")return!1;let{computed:n,property:l}=o;return n&&l.type!=="StringLiteral"&&(l.type!=="TemplateLiteral"||l.expressions.length>0)?!1:vh(o.object)}function w2(o,n){let{type:l}=o;if(o.extra?.parenthesized)return!1;if(n){if(l==="Literal"){let{value:c}=o;if(typeof c=="string"||typeof c=="boolean")return!0}}else if(l==="StringLiteral"||l==="BooleanLiteral")return!0;return!!(Ph(o,n)||F2(o,n)||l==="TemplateLiteral"&&o.expressions.length===0||v2(o))}function Ph(o,n){return n?o.type==="Literal"&&(typeof o.value=="number"||"bigint"in o):o.type==="NumericLiteral"||o.type==="BigIntLiteral"}function F2(o,n){if(o.type==="UnaryExpression"){let{operator:l,argument:c}=o;if(l==="-"&&Ph(c,n))return!0}return!1}function vh(o){return o.type==="Identifier"?!0:o.type!=="MemberExpression"||o.computed?!1:vh(o.object)}var wh=W`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),k2=o=>class extends o{parsePlaceholder(n){if(this.match(133)){let l=this.startNode();return this.next(),this.assertNoSpace(),l.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(l,n)}}finishPlaceholder(n,l){let c=n;return(!c.expectedNode||!c.type)&&(c=this.finishNode(c,"Placeholder")),c.expectedNode=l,c}getTokenFromCode(n){n===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(n)}parseExprAtom(n){return this.parsePlaceholder("Expression")||super.parseExprAtom(n)}parseIdentifier(n){return this.parsePlaceholder("Identifier")||super.parseIdentifier(n)}checkReservedWord(n,l,c,y){n!==void 0&&super.checkReservedWord(n,l,c,y)}cloneIdentifier(n){let l=super.cloneIdentifier(n);return l.type==="Placeholder"&&(l.expectedNode=n.expectedNode),l}cloneStringLiteral(n){return n.type==="Placeholder"?this.cloneIdentifier(n):super.cloneStringLiteral(n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(n,l,c,y){return n==="Placeholder"||super.isValidLVal(n,l,c,y)}toAssignable(n,l){n&&n.type==="Placeholder"&&n.expectedNode==="Expression"?n.expectedNode="Pattern":super.toAssignable(n,l)}chStartsBindingIdentifier(n,l){if(super.chStartsBindingIdentifier(n,l))return!0;let c=this.nextTokenStart();return this.input.charCodeAt(c)===37&&this.input.charCodeAt(c+1)===37}verifyBreakContinue(n,l){n.label&&n.label.type==="Placeholder"||super.verifyBreakContinue(n,l)}parseExpressionStatement(n,l){if(l.type!=="Placeholder"||l.extra?.parenthesized)return super.parseExpressionStatement(n,l);if(this.match(14)){let y=n;return y.label=this.finishPlaceholder(l,"Identifier"),this.next(),y.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(y,"LabeledStatement")}this.semicolon();let c=n;return c.name=l.name,this.finishPlaceholder(c,"Statement")}parseBlock(n,l,c){return this.parsePlaceholder("BlockStatement")||super.parseBlock(n,l,c)}parseFunctionId(n){return this.parsePlaceholder("Identifier")||super.parseFunctionId(n)}parseClass(n,l,c){let y=l?"ClassDeclaration":"ClassExpression";this.next();let C=this.state.strict,P=this.parsePlaceholder("Identifier");if(P)if(this.match(81)||this.match(133)||this.match(5))n.id=P;else{if(c||!l)return n.id=null,n.body=this.finishPlaceholder(P,"ClassBody"),this.finishNode(n,y);throw this.raise(wh.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(n,l,c);return super.parseClassSuper(n),n.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!n.superClass,C),this.finishNode(n,y)}parseExport(n,l){let c=this.parsePlaceholder("Identifier");if(!c)return super.parseExport(n,l);let y=n;if(!this.isContextual(98)&&!this.match(12))return y.specifiers=[],y.source=null,y.declaration=this.finishPlaceholder(c,"Declaration"),this.finishNode(y,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let C=this.startNode();return C.exported=c,y.specifiers=[this.finishNode(C,"ExportDefaultSpecifier")],super.parseExport(y,l)}isExportDefaultSpecifier(){if(this.match(65)){let n=this.nextTokenStart();if(this.isUnparsedContextual(n,"from")&&this.input.startsWith(Qr(133),this.nextTokenStartSince(n+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(n,l){return n.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(n,l)}checkExport(n){let{specifiers:l}=n;l?.length&&(n.specifiers=l.filter(c=>c.exported.type==="Placeholder")),super.checkExport(n),n.specifiers=l}parseImport(n){let l=this.parsePlaceholder("Identifier");if(!l)return super.parseImport(n);if(n.specifiers=[],!this.isContextual(98)&&!this.match(12))return n.source=this.finishPlaceholder(l,"StringLiteral"),this.semicolon(),this.finishNode(n,"ImportDeclaration");let c=this.startNodeAtNode(l);return c.local=l,n.specifiers.push(this.finishNode(c,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(n)||this.parseNamedImportSpecifiers(n)),this.expectContextual(98),n.source=this.parseImportSource(),this.semicolon(),this.finishNode(n,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(wh.UnexpectedSpace,this.state.lastTokEndLoc)}},I2=o=>class extends o{parseV8Intrinsic(){if(this.match(54)){let n=this.state.startLoc,l=this.startNode();if(this.next(),Le(this.state.type)){let c=this.parseIdentifierName(),y=this.createIdentifier(l,c);if(this.castNodeTo(y,"V8IntrinsicIdentifier"),this.match(10))return y}this.unexpected(n)}}parseExprAtom(n){return this.parseV8Intrinsic()||super.parseExprAtom(n)}},Fh=["fsharp","hack"],kh=["^^","@@","^","%","#"];function N2(o){if(o.has("decorators")){if(o.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let n=o.get("decorators").decoratorsBeforeExport;if(n!=null&&typeof n!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let l=o.get("decorators").allowCallParenthesized;if(l!=null&&typeof l!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(o.has("flow")&&o.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(o.has("placeholders")&&o.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(o.has("pipelineOperator")){let n=o.get("pipelineOperator").proposal;if(!Fh.includes(n)){let l=Fh.map(c=>`"${c}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${l}.`)}if(n==="hack"){if(o.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(o.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let l=o.get("pipelineOperator").topicToken;if(!kh.includes(l)){let c=kh.map(y=>`"${y}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${c}.`)}}}if(o.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(o.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(!o.has("deprecatedImportAssert")&&o.has("importAttributes")&&o.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(o.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(o.has("asyncDoExpressions")&&!o.has("doExpressions")){let n=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw n.missingPlugins="doExpressions",n}if(o.has("optionalChainingAssign")&&o.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(o.has("discardBinding")&&o.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(o.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(o.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 Ih={estree:be,jsx:e2,flow:Y0,typescript:P2,v8intrinsic:I2,placeholders:k2},B2=Object.keys(Ih),L2=class extends C2{checkProto(o,n,l,c){if(o.type==="SpreadElement"||this.isObjectMethod(o)||o.computed||o.shorthand)return l;let y=o.key;return(y.type==="Identifier"?y.name:y.value)==="__proto__"?n?(this.raise(F.RecordNoProto,y),!0):(l&&(c?c.doubleProtoLoc===null&&(c.doubleProtoLoc=y.loc.start):this.raise(F.DuplicateProto,y)),!0):l}shouldExitDescending(o,n){return o.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(o.start)===n}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(F.ParseExpressionEmptyInput,this.state.startLoc);let o=this.parseExpression();if(!this.match(140))throw this.raise(F.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),o.comments=this.comments,o.errors=this.state.errors,this.optionFlags&256&&(o.tokens=this.tokens),o}parseExpression(o,n){return o?this.disallowInAnd(()=>this.parseExpressionBase(n)):this.allowInAnd(()=>this.parseExpressionBase(n))}parseExpressionBase(o){let n=this.state.startLoc,l=this.parseMaybeAssign(o);if(this.match(12)){let c=this.startNodeAt(n);for(c.expressions=[l];this.eat(12);)c.expressions.push(this.parseMaybeAssign(o));return this.toReferencedList(c.expressions),this.finishNode(c,"SequenceExpression")}return l}parseMaybeAssignDisallowIn(o,n){return this.disallowInAnd(()=>this.parseMaybeAssign(o,n))}parseMaybeAssignAllowIn(o,n){return this.allowInAnd(()=>this.parseMaybeAssign(o,n))}setOptionalParametersError(o){o.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(o,n){let l=this.state.startLoc,c=this.isContextual(108);if(c&&this.prodParam.hasYield){this.next();let w=this.parseYield(l);return n&&(w=n.call(this,w,l)),w}let y;o?y=!1:(o=new Pa,y=!0);let{type:C}=this.state;(C===10||Le(C))&&(this.state.potentialArrowAt=this.state.start);let P=this.parseMaybeConditional(o);if(n&&(P=n.call(this,P,l)),P0(this.state.type)){let w=this.startNodeAt(l),B=this.state.value;if(w.operator=B,this.match(29)){this.toAssignable(P,!0),w.left=P;let I=l.index;o.doubleProtoLoc!=null&&o.doubleProtoLoc.index>=I&&(o.doubleProtoLoc=null),o.shorthandAssignLoc!=null&&o.shorthandAssignLoc.index>=I&&(o.shorthandAssignLoc=null),o.privateKeyLoc!=null&&o.privateKeyLoc.index>=I&&(this.checkDestructuringPrivate(o),o.privateKeyLoc=null),o.voidPatternLoc!=null&&o.voidPatternLoc.index>=I&&(o.voidPatternLoc=null)}else w.left=P;return this.next(),w.right=this.parseMaybeAssign(),this.checkLVal(P,this.finishNode(w,"AssignmentExpression"),void 0,void 0,void 0,void 0,B==="||="||B==="&&="||B==="??="),w}else y&&this.checkExpressionErrors(o,!0);if(c){let{type:w}=this.state;if((this.hasPlugin("v8intrinsic")?Qi(w):Qi(w)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(F.YieldNotInGeneratorFunction,l),this.parseYield(l)}return P}parseMaybeConditional(o){let n=this.state.startLoc,l=this.state.potentialArrowAt,c=this.parseExprOps(o);return this.shouldExitDescending(c,l)?c:this.parseConditional(c,n,o)}parseConditional(o,n,l){if(this.eat(17)){let c=this.startNodeAt(n);return c.test=o,c.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),c.alternate=this.parseMaybeAssign(),this.finishNode(c,"ConditionalExpression")}return o}parseMaybeUnaryOrPrivate(o){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(o)}parseExprOps(o){let n=this.state.startLoc,l=this.state.potentialArrowAt,c=this.parseMaybeUnaryOrPrivate(o);return this.shouldExitDescending(c,l)?c:this.parseExprOp(c,n,-1)}parseExprOp(o,n,l){if(this.isPrivateName(o)){let y=this.getPrivateNameSV(o);(l>=Aa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(F.PrivateInExpectedIn,o,{identifierName:y}),this.classScope.usePrivateName(y,o.loc.start)}let c=this.state.type;if(w0(c)&&(this.prodParam.hasIn||!this.match(58))){let y=Aa(c);if(y>l){if(c===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return o;this.checkPipelineAtInfixOperator(o,n)}let C=this.startNodeAt(n);C.left=o,C.operator=this.state.value;let P=c===41||c===42,w=c===40;w&&(y=Aa(42)),this.next(),C.right=this.parseExprOpRightExpr(c,y);let B=this.finishNode(C,P||w?"LogicalExpression":"BinaryExpression"),I=this.state.type;if(w&&(I===41||I===42)||P&&I===40)throw this.raise(F.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(B,n,l)}}return o}parseExprOpRightExpr(o,n){switch(this.state.startLoc,o){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(n))}default:return this.parseExprOpBaseRightExpr(o,n)}}parseExprOpBaseRightExpr(o,n){let l=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),l,B0(o)?n-1:n)}parseHackPipeBody(){let{startLoc:o}=this.state,n=this.parseMaybeAssign();return _.has(n.type)&&!n.extra?.parenthesized&&this.raise(F.PipeUnparenthesizedBody,o,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(F.PipeTopicUnused,o),n}checkExponentialAfterUnary(o){this.match(57)&&this.raise(F.UnexpectedTokenUnaryExponentiation,o.argument)}parseMaybeUnary(o,n){let l=this.state.startLoc,c=this.isContextual(96);if(c&&this.recordAwaitIfAllowed()){this.next();let w=this.parseAwait(l);return n||this.checkExponentialAfterUnary(w),w}let y=this.match(34),C=this.startNode();if(k0(this.state.type)){C.operator=this.state.value,C.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let w=this.match(89);if(this.next(),C.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(o,!0),this.state.strict&&w){let B=C.argument;B.type==="Identifier"?this.raise(F.StrictDelete,C):this.hasPropertyAsPrivateName(B)&&this.raise(F.DeletePrivateField,C)}if(!y)return n||this.checkExponentialAfterUnary(C),this.finishNode(C,"UnaryExpression")}let P=this.parseUpdate(C,y,o);if(c){let{type:w}=this.state;if((this.hasPlugin("v8intrinsic")?Qi(w):Qi(w)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(F.AwaitNotInAsyncContext,l),this.parseAwait(l)}return P}parseUpdate(o,n,l){if(n){let C=o;return this.checkLVal(C.argument,this.finishNode(C,"UpdateExpression")),o}let c=this.state.startLoc,y=this.parseExprSubscripts(l);if(this.checkExpressionErrors(l,!1))return y;for(;F0(this.state.type)&&!this.canInsertSemicolon();){let C=this.startNodeAt(c);C.operator=this.state.value,C.prefix=!1,C.argument=y,this.next(),this.checkLVal(y,y=this.finishNode(C,"UpdateExpression"))}return y}parseExprSubscripts(o){let n=this.state.startLoc,l=this.state.potentialArrowAt,c=this.parseExprAtom(o);return this.shouldExitDescending(c,l)?c:this.parseSubscripts(c,n)}parseSubscripts(o,n,l){let c={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(o),stop:!1};do o=this.parseSubscript(o,n,l,c),c.maybeAsyncArrow=!1;while(!c.stop);return o}parseSubscript(o,n,l,c){let{type:y}=this.state;if(!l&&y===15)return this.parseBind(o,n,l,c);if(ru(y))return this.parseTaggedTemplateExpression(o,n,c);let C=!1;if(y===18){if(l&&(this.raise(F.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(o,c);c.optionalChainMember=C=!0,this.next()}if(!l&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(o,n,c,C);{let P=this.eat(0);return P||C||this.eat(16)?this.parseMember(o,n,c,P,C):this.stopParseSubscript(o,c)}}stopParseSubscript(o,n){return n.stop=!0,o}parseMember(o,n,l,c,y){let C=this.startNodeAt(n);return C.object=o,C.computed=c,c?(C.property=this.parseExpression(),this.expect(3)):this.match(139)?(o.type==="Super"&&this.raise(F.SuperPrivateField,n),this.classScope.usePrivateName(this.state.value,this.state.startLoc),C.property=this.parsePrivateName()):C.property=this.parseIdentifier(!0),l.optionalChainMember?(C.optional=y,this.finishNode(C,"OptionalMemberExpression")):this.finishNode(C,"MemberExpression")}parseBind(o,n,l,c){let y=this.startNodeAt(n);return y.object=o,this.next(),y.callee=this.parseNoCallExpr(),c.stop=!0,this.parseSubscripts(this.finishNode(y,"BindExpression"),n,l)}parseCoverCallAndAsyncArrowHead(o,n,l,c){let y=this.state.maybeInArrowParameters,C=null;this.state.maybeInArrowParameters=!0,this.next();let P=this.startNodeAt(n);P.callee=o;let{maybeAsyncArrow:w,optionalChainMember:B}=l;w&&(this.expressionScope.enter(x2()),C=new Pa),B&&(P.optional=c),c?P.arguments=this.parseCallExpressionArguments():P.arguments=this.parseCallExpressionArguments(o.type!=="Super",P,C);let I=this.finishCallExpression(P,B);return w&&this.shouldParseAsyncArrow()&&!c?(l.stop=!0,this.checkDestructuringPrivate(C),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),I=this.parseAsyncArrowFromCallExpression(this.startNodeAt(n),I)):(w&&(this.checkExpressionErrors(C,!0),this.expressionScope.exit()),this.toReferencedArguments(I)),this.state.maybeInArrowParameters=y,I}toReferencedArguments(o,n){this.toReferencedListDeep(o.arguments,n)}parseTaggedTemplateExpression(o,n,l){let c=this.startNodeAt(n);return c.tag=o,c.quasi=this.parseTemplate(!0),l.optionalChainMember&&this.raise(F.OptionalChainingNoTemplate,n),this.finishNode(c,"TaggedTemplateExpression")}atPossibleAsyncArrow(o){return o.type==="Identifier"&&o.name==="async"&&this.state.lastTokEndLoc.index===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.offsetToSourcePos(o.start)===this.state.potentialArrowAt}finishCallExpression(o,n){if(o.callee.type==="Import")if(o.arguments.length===0||o.arguments.length>2)this.raise(F.ImportCallArity,o);else for(let l of o.arguments)l.type==="SpreadElement"&&this.raise(F.ImportCallSpreadArgument,l);return this.finishNode(o,n?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(o,n,l){let c=[],y=!0,C=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(y)y=!1;else if(this.expect(12),this.match(11)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}c.push(this.parseExprListItem(11,!1,l,o))}return this.state.inFSharpPipelineDirectBody=C,c}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(o,n){return this.resetPreviousNodeTrailingComments(n),this.expect(19),this.parseArrowExpression(o,n.arguments,!0,n.extra?.trailingCommaLoc),n.innerComments&&oi(o,n.innerComments),n.callee.trailingComments&&oi(o,n.callee.trailingComments),o}parseNoCallExpr(){let o=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),o,!0)}parseExprAtom(o){let n,l=null,{type:c}=this.state;switch(c){case 79:return this.parseSuper();case 83:return n=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(n):this.match(10)?this.optionFlags&512?this.parseImportCall(n):this.finishNode(n,"Import"):(this.raise(F.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(n,"Import"));case 78:return n=this.startNode(),this.next(),this.finishNode(n,"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 y=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(y)}case 0:return this.parseArrayLike(3,!1,o);case 5:return this.parseObjectLike(8,!1,!1,o);case 68:return this.parseFunctionOrFunctionSent();case 26:l=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(l,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{n=this.startNode(),this.next(),n.object=null;let y=n.callee=this.parseNoCallExpr();if(y.type==="MemberExpression")return this.finishNode(n,"BindExpression");throw this.raise(F.UnsupportedBind,y)}case 139:return this.raise(F.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 y=this.getPluginOption("pipelineOperator","proposal");if(y)return this.parseTopicReference(y);throw this.unexpected()}case 47:{let y=this.input.codePointAt(this.nextTokenStart());throw ur(y)||y===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Le(c)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let y=this.state.potentialArrowAt===this.state.start,C=this.state.containsEsc,P=this.parseIdentifier();if(!C&&P.name==="async"&&!this.canInsertSemicolon()){let{type:w}=this.state;if(w===68)return this.resetPreviousNodeTrailingComments(P),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(P));if(Le(w))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(P)):P;if(w===90)return this.resetPreviousNodeTrailingComments(P),this.parseDo(this.startNodeAtNode(P),!0)}return y&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(P),[P],!1)):P}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(o,n){let l=this.getPluginOption("pipelineOperator","proposal");if(l)return this.state.type=o,this.state.value=n,this.state.pos--,this.state.end--,this.state.endLoc=E(this.state.endLoc,-1),this.parseTopicReference(l);throw this.unexpected()}parseTopicReference(o){let n=this.startNode(),l=this.state.startLoc,c=this.state.type;return this.next(),this.finishTopicReference(n,l,o,c)}finishTopicReference(o,n,l,c){if(this.testTopicReferenceConfiguration(l,n,c))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(F.PipeTopicUnbound,n),this.registerTopicReference(),this.finishNode(o,"TopicReference");throw this.raise(F.PipeTopicUnconfiguredToken,n,{token:Qr(c)})}testTopicReferenceConfiguration(o,n,l){switch(o){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Qr(l)}]);case"smart":return l===27;default:throw this.raise(F.PipeTopicRequiresHackPipes,n)}}parseAsyncArrowUnaryFunction(o){this.prodParam.enter(Ta(!0,this.prodParam.hasYield));let n=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(F.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(o,n,!0)}parseDo(o,n){this.expectPlugin("doExpressions"),n&&this.expectPlugin("asyncDoExpressions"),o.async=n,this.next();let l=this.state.labels;return this.state.labels=[],n?(this.prodParam.enter(2),o.body=this.parseBlock(),this.prodParam.exit()):o.body=this.parseBlock(),this.state.labels=l,this.finishNode(o,"DoExpression")}parseSuper(){let o=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(F.SuperNotAllowed,o):this.scope.allowSuper||this.raise(F.UnexpectedSuper,o),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(F.UnsupportedSuper,o),this.finishNode(o,"Super")}parsePrivateName(){let o=this.startNode(),n=this.startNodeAt(E(this.state.startLoc,1)),l=this.state.value;return this.next(),o.id=this.createIdentifier(n,l),this.finishNode(o,"PrivateName")}parseFunctionOrFunctionSent(){let o=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let n=this.createIdentifier(this.startNodeAtNode(o),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(o,n,"sent")}return this.parseFunction(o)}parseMetaProperty(o,n,l){o.meta=n;let c=this.state.containsEsc;return o.property=this.parseIdentifier(!0),(o.property.name!==l||c)&&this.raise(F.UnsupportedMetaProperty,o.property,{target:n.name,onlyValidPropertyName:l}),this.finishNode(o,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(o){if(this.next(),this.isContextual(105)||this.isContextual(97)){let n=this.isContextual(105);return this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),o.phase=n?"source":"defer",this.parseImportCall(o)}else{let n=this.createIdentifierAt(this.startNodeAtNode(o),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(F.ImportMetaOutsideModule,n),this.sawUnambiguousESM=!0),this.parseMetaProperty(o,n,"meta")}}parseLiteralAtNode(o,n,l){return this.addExtra(l,"rawValue",o),this.addExtra(l,"raw",this.input.slice(this.offsetToSourcePos(l.start),this.state.end)),l.value=o,this.next(),this.finishNode(l,n)}parseLiteral(o,n){let l=this.startNode();return this.parseLiteralAtNode(o,n,l)}parseStringLiteral(o){return this.parseLiteral(o,"StringLiteral")}parseNumericLiteral(o){return this.parseLiteral(o,"NumericLiteral")}parseBigIntLiteral(o){{let n;try{n=BigInt(o)}catch{n=null}return this.parseLiteral(n,"BigIntLiteral")}}parseDecimalLiteral(o){return this.parseLiteral(o,"DecimalLiteral")}parseRegExpLiteral(o){let n=this.startNode();return this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.pattern=o.pattern,n.flags=o.flags,this.next(),this.finishNode(n,"RegExpLiteral")}parseBooleanLiteral(o){let n=this.startNode();return n.value=o,this.next(),this.finishNode(n,"BooleanLiteral")}parseNullLiteral(){let o=this.startNode();return this.next(),this.finishNode(o,"NullLiteral")}parseParenAndDistinguishExpression(o){let n=this.state.startLoc,l;this.next(),this.expressionScope.enter(D2());let c=this.state.maybeInArrowParameters,y=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let C=this.state.startLoc,P=[],w=new Pa,B=!0,I,X;for(;!this.match(11);){if(B)B=!1;else if(this.expect(12,w.optionalParametersLoc===null?null:w.optionalParametersLoc),this.match(11)){X=this.state.startLoc;break}if(this.match(21)){let Ce=this.state.startLoc;if(I=this.state.startLoc,P.push(this.parseParenItem(this.parseRestBinding(),Ce)),!this.checkCommaAfterRest(41))break}else P.push(this.parseMaybeAssignAllowInOrVoidPattern(11,w,this.parseParenItem))}let Q=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=c,this.state.inFSharpPipelineDirectBody=y;let ye=this.startNodeAt(n);return o&&this.shouldParseArrow(P)&&(ye=this.parseArrow(ye))?(this.checkDestructuringPrivate(w),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(ye,P,!1),ye):(this.expressionScope.exit(),P.length||this.unexpected(this.state.lastTokStartLoc),X&&this.unexpected(X),I&&this.unexpected(I),this.checkExpressionErrors(w,!0),this.toReferencedListDeep(P,!0),P.length>1?(l=this.startNodeAt(C),l.expressions=P,this.finishNode(l,"SequenceExpression"),this.resetEndLocation(l,Q)):l=P[0],this.wrapParenthesis(n,l))}wrapParenthesis(o,n){if(!(this.optionFlags&1024))return this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",o.index),this.takeSurroundingComments(n,o.index,this.state.lastTokEndLoc.index),n;let l=this.startNodeAt(o);return l.expression=n,this.finishNode(l,"ParenthesizedExpression")}shouldParseArrow(o){return!this.canInsertSemicolon()}parseArrow(o){if(this.eat(19))return o}parseParenItem(o,n){return o}parseNewOrNewTarget(){let o=this.startNode();if(this.next(),this.match(16)){let n=this.createIdentifier(this.startNodeAtNode(o),"new");this.next();let l=this.parseMetaProperty(o,n,"target");return this.scope.allowNewTarget||this.raise(F.UnexpectedNewTarget,l),l}return this.parseNew(o)}parseNew(o){if(this.parseNewCallee(o),this.eat(10)){let n=this.parseExprList(11);this.toReferencedList(n),o.arguments=n}else o.arguments=[];return this.finishNode(o,"NewExpression")}parseNewCallee(o){let n=this.match(83),l=this.parseNoCallExpr();o.callee=l,n&&(l.type==="Import"||l.type==="ImportExpression")&&this.raise(F.ImportCallNotNewExpression,l)}parseTemplateElement(o){let{start:n,startLoc:l,end:c,value:y}=this.state,C=n+1,P=this.startNodeAt(E(l,1));y===null&&(o||this.raise(F.InvalidEscapeSequenceTemplate,E(this.state.firstInvalidTemplateEscapePos,1)));let w=this.match(24),B=w?-1:-2,I=c+B;P.value={raw:this.input.slice(C,I).replace(/\r\n?/g,`
|
|
177
|
+
`),cooked:y===null?null:y.slice(1,B)},P.tail=w,this.next();let X=this.finishNode(P,"TemplateElement");return this.resetEndLocation(X,E(this.state.lastTokEndLoc,B)),X}parseTemplate(o){let n=this.startNode(),l=this.parseTemplateElement(o),c=[l],y=[];for(;!l.tail;)y.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),c.push(l=this.parseTemplateElement(o));return n.expressions=y,n.quasis=c,this.finishNode(n,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(o,n,l,c){l&&this.expectPlugin("recordAndTuple");let y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let C=!1,P=!0,w=this.startNode();for(w.properties=[],this.next();!this.match(o);){if(P)P=!1;else if(this.expect(12),this.match(o)){this.addTrailingCommaExtraToNode(w);break}let I;n?I=this.parseBindingProperty():(I=this.parsePropertyDefinition(c),C=this.checkProto(I,l,C,c)),l&&!this.isObjectProperty(I)&&I.type!=="SpreadElement"&&this.raise(F.InvalidRecordProperty,I),w.properties.push(I)}this.next(),this.state.inFSharpPipelineDirectBody=y;let B="ObjectExpression";return n?B="ObjectPattern":l&&(B="RecordExpression"),this.finishNode(w,B)}addTrailingCommaExtraToNode(o){this.addExtra(o,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(o,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(o){return!o.computed&&o.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(o){let n=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(F.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)n.push(this.parseDecorator());let l=this.startNode(),c=!1,y=!1,C;if(this.match(21))return n.length&&this.unexpected(),this.parseSpread();n.length&&(l.decorators=n,n=[]),l.method=!1,o&&(C=this.state.startLoc);let P=this.eat(55);this.parsePropertyNamePrefixOperator(l);let w=this.state.containsEsc;if(this.parsePropertyName(l,o),!P&&!w&&this.maybeAsyncOrAccessorProp(l)){let{key:B}=l,I=B.name;I==="async"&&!this.hasPrecedingLineBreak()&&(c=!0,this.resetPreviousNodeTrailingComments(B),P=this.eat(55),this.parsePropertyName(l)),(I==="get"||I==="set")&&(y=!0,this.resetPreviousNodeTrailingComments(B),l.kind=I,this.match(55)&&(P=!0,this.raise(F.AccessorIsGenerator,this.state.curPosition(),{kind:I}),this.next()),this.parsePropertyName(l))}return this.parseObjPropValue(l,C,P,c,!1,y,o)}getGetterSetterExpectedParamCount(o){return o.kind==="get"?0:1}getObjectOrClassMethodParams(o){return o.params}checkGetterSetterParams(o){let n=this.getGetterSetterExpectedParamCount(o),l=this.getObjectOrClassMethodParams(o);l.length!==n&&this.raise(o.kind==="get"?F.BadGetterArity:F.BadSetterArity,o),o.kind==="set"&&l[l.length-1]?.type==="RestElement"&&this.raise(F.BadSetterRestParameter,o)}parseObjectMethod(o,n,l,c,y){if(y){let C=this.parseMethod(o,n,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(C),C}if(l||n||this.match(10))return c&&this.unexpected(),o.kind="method",o.method=!0,this.parseMethod(o,n,l,!1,!1,"ObjectMethod")}parseObjectProperty(o,n,l,c){if(o.shorthand=!1,this.eat(14))return o.value=l?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,c),this.finishObjectProperty(o);if(!o.computed&&o.key.type==="Identifier"){if(this.checkReservedWord(o.key.name,o.key.loc.start,!0,!1),l)o.value=this.parseMaybeDefault(n,this.cloneIdentifier(o.key));else if(this.match(29)){let y=this.state.startLoc;c!=null?c.shorthandAssignLoc===null&&(c.shorthandAssignLoc=y):this.raise(F.InvalidCoverInitializedName,y),o.value=this.parseMaybeDefault(n,this.cloneIdentifier(o.key))}else o.value=this.cloneIdentifier(o.key);return o.shorthand=!0,this.finishObjectProperty(o)}}finishObjectProperty(o){return this.finishNode(o,"ObjectProperty")}parseObjPropValue(o,n,l,c,y,C,P){let w=this.parseObjectMethod(o,l,c,y,C)||this.parseObjectProperty(o,n,y,P);return w||this.unexpected(),w}parsePropertyName(o,n){if(this.eat(0))o.computed=!0,o.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:l,value:c}=this.state,y;if(dt(l))y=this.parseIdentifier(!0);else switch(l){case 135:y=this.parseNumericLiteral(c);break;case 134:y=this.parseStringLiteral(c);break;case 136:y=this.parseBigIntLiteral(c);break;case 139:{let C=this.state.startLoc;n!=null?n.privateKeyLoc===null&&(n.privateKeyLoc=C):this.raise(F.UnexpectedPrivateField,C),y=this.parsePrivateName();break}default:this.unexpected()}o.key=y,l!==139&&(o.computed=!1)}}initFunction(o,n){o.id=null,o.generator=!1,o.async=n}parseMethod(o,n,l,c,y,C,P=!1){this.initFunction(o,l),o.generator=n,this.scope.enter(530|(P?576:0)|(y?32:0)),this.prodParam.enter(Ta(l,o.generator)),this.parseFunctionParams(o,c);let w=this.parseFunctionBodyAndFinish(o,C,!0);return this.prodParam.exit(),this.scope.exit(),w}parseArrayLike(o,n,l){n&&this.expectPlugin("recordAndTuple");let c=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let y=this.startNode();return this.next(),y.elements=this.parseExprList(o,!n,l,y),this.state.inFSharpPipelineDirectBody=c,this.finishNode(y,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(o,n,l,c){this.scope.enter(518);let y=Ta(l,!1);!this.match(5)&&this.prodParam.hasIn&&(y|=8),this.prodParam.enter(y),this.initFunction(o,l);let C=this.state.maybeInArrowParameters;return n&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(o,n,c)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(o,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=C,this.finishNode(o,"ArrowFunctionExpression")}setArrowFunctionParameters(o,n,l){this.toAssignableList(n,l,!1),o.params=n}parseFunctionBodyAndFinish(o,n,l=!1){return this.parseFunctionBody(o,!1,l),this.finishNode(o,n)}parseFunctionBody(o,n,l=!1){let c=n&&!this.match(5);if(this.expressionScope.enter(Ch()),c)o.body=this.parseMaybeAssign(),this.checkParams(o,!1,n,!1);else{let y=this.state.strict,C=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),o.body=this.parseBlock(!0,!1,P=>{let w=!this.isSimpleParamList(o.params);P&&w&&this.raise(F.IllegalLanguageModeDirective,(o.kind==="method"||o.kind==="constructor")&&o.key?o.key.loc.end:o);let B=!y&&this.state.strict;this.checkParams(o,!this.state.strict&&!n&&!l&&!w,n,B),this.state.strict&&o.id&&this.checkIdentifier(o.id,65,B)}),this.prodParam.exit(),this.state.labels=C}this.expressionScope.exit()}isSimpleParameter(o){return o.type==="Identifier"}isSimpleParamList(o){for(let n=0,l=o.length;n<l;n++)if(!this.isSimpleParameter(o[n]))return!1;return!0}checkParams(o,n,l,c=!0){let y=!n&&new Set,C={type:"FormalParameters"};for(let P of o.params)this.checkLVal(P,C,5,y,c)}parseExprList(o,n,l,c){let y=[],C=!0;for(;!this.eat(o);){if(C)C=!1;else if(this.expect(12),this.match(o)){c&&this.addTrailingCommaExtraToNode(c),this.next();break}y.push(this.parseExprListItem(o,n,l))}return y}parseExprListItem(o,n,l,c){let y;if(this.match(12))n||this.raise(F.UnexpectedToken,this.state.curPosition(),{unexpected:","}),y=null;else if(this.match(21)){let C=this.state.startLoc;y=this.parseParenItem(this.parseSpread(l),C)}else if(this.match(17)){this.expectPlugin("partialApplication"),c||this.raise(F.UnexpectedArgumentPlaceholder,this.state.startLoc);let C=this.startNode();this.next(),y=this.finishNode(C,"ArgumentPlaceholder")}else y=this.parseMaybeAssignAllowInOrVoidPattern(o,l,this.parseParenItem);return y}parseIdentifier(o){let n=this.startNode(),l=this.parseIdentifierName(o);return this.createIdentifier(n,l)}createIdentifier(o,n){return o.name=n,o.loc.identifierName=n,this.finishNode(o,"Identifier")}createIdentifierAt(o,n,l){return o.name=n,o.loc.identifierName=n,this.finishNodeAt(o,"Identifier",l)}parseIdentifierName(o){let n,{startLoc:l,type:c}=this.state;dt(c)?n=this.state.value:this.unexpected();let y=ii(c);return o?y&&this.replaceToken(132):this.checkReservedWord(n,l,y,!1),this.next(),n}checkReservedWord(o,n,l,c){if(!(o.length>10||!V0(o))){if(l&&R0(o)){this.raise(F.UnexpectedKeyword,n,{keyword:o});return}if((this.state.strict?c?dh:ch:ph)(o,this.inModule)){this.raise(F.UnexpectedReservedWord,n,{reservedWord:o});return}else if(o==="yield"){if(this.prodParam.hasYield){this.raise(F.YieldBindingIdentifier,n);return}}else if(o==="await"){if(this.prodParam.hasAwait){this.raise(F.AwaitBindingIdentifier,n);return}if(this.scope.inStaticBlock){this.raise(F.AwaitBindingIdentifierInStaticBlock,n);return}this.expressionScope.recordAsyncArrowParametersError(n)}else if(o==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(F.ArgumentsInClass,n);return}}}recordAwaitIfAllowed(){let o=this.prodParam.hasAwait;return o&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),o}parseAwait(o){let n=this.startNodeAt(o);return this.expressionScope.recordParameterInitializerError(F.AwaitExpressionFormalParameter,n),this.eat(55)&&this.raise(F.ObsoleteAwaitStar,n),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(n.argument=this.parseMaybeUnary(null,!0)),this.finishNode(n,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:o}=this.state;return o===53||o===10||o===0||ru(o)||o===102&&!this.state.containsEsc||o===138||o===56||this.hasPlugin("v8intrinsic")&&o===54}parseYield(o){let n=this.startNodeAt(o);this.expressionScope.recordParameterInitializerError(F.YieldInParameter,n);let l=!1,c=null;if(!this.hasPrecedingLineBreak())switch(l=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!l)break;default:c=this.parseMaybeAssign()}return n.delegate=l,n.argument=c,this.finishNode(n,"YieldExpression")}parseImportCall(o){if(this.next(),o.source=this.parseMaybeAssignAllowIn(),o.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(o.source);else if(o.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(o.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(F.ImportCallArity,o)}}return this.expect(11),this.finishNode(o,"ImportExpression")}checkPipelineAtInfixOperator(o,n){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&o.type==="SequenceExpression"&&this.raise(F.PipelineHeadSequenceExpression,n)}parseSmartPipelineBodyInStyle(o,n){if(this.isSimpleReference(o)){let l=this.startNodeAt(n);return l.callee=o,this.finishNode(l,"PipelineBareFunction")}else{let l=this.startNodeAt(n);return this.checkSmartPipeTopicBodyEarlyErrors(n),l.expression=o,this.finishNode(l,"PipelineTopicExpression")}}isSimpleReference(o){switch(o.type){case"MemberExpression":return!o.computed&&this.isSimpleReference(o.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(o){if(this.match(19))throw this.raise(F.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(F.PipelineTopicUnused,o)}withTopicBindingContext(o){let n=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return o()}finally{this.state.topicContext=n}}withSmartMixTopicForbiddingContext(o){return o()}withSoloAwaitPermittingContext(o){let n=this.state.soloAwait;this.state.soloAwait=!0;try{return o()}finally{this.state.soloAwait=n}}allowInAnd(o){let n=this.prodParam.currentFlags();if(8&~n){this.prodParam.enter(n|8);try{return o()}finally{this.prodParam.exit()}}return o()}disallowInAnd(o){let n=this.prodParam.currentFlags();if(8&n){this.prodParam.enter(n&-9);try{return o()}finally{this.prodParam.exit()}}return o()}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(o){let n=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let l=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let c=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,o);return this.state.inFSharpPipelineDirectBody=l,c}parseModuleExpression(){this.expectPlugin("moduleBlocks");let o=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let n=this.startNodeAt(this.state.endLoc);this.next();let l=this.initializeScopes(!0);this.enterInitialScopes();try{o.body=this.parseProgram(n,8,"module")}finally{l()}return this.finishNode(o,"ModuleExpression")}parseVoidPattern(o){this.expectPlugin("discardBinding");let n=this.startNode();return o!=null&&(o.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(n,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(o,n,l){if(n!=null&&this.match(88)){let c=this.lookaheadCharCode();if(c===44||c===(o===3?93:o===8?125:41)||c===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(n))}return this.parseMaybeAssignAllowIn(n,l)}parsePropertyNamePrefixOperator(o){}},mu={kind:1},O2={kind:2},_2=/[\uD800-\uDFFF]/u,yu=/in(?:stanceof)?/y;function M2(o,n,l){for(let c=0;c<o.length;c++){let y=o[c],{type:C}=y;typeof C=="number"&&(y.type=oh(C))}return o}var $2=class extends L2{parseTopLevel(o,n){return o.program=this.parseProgram(n,140,this.options.sourceType==="module"?"module":"script"),o.comments=this.comments,this.optionFlags&256&&(o.tokens=M2(this.tokens,this.input,this.startIndex)),this.finishNode(o,"File")}parseProgram(o,n,l){if(o.sourceType=l,o.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(o,!0,!0,n),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[y,C]of Array.from(this.scope.undefinedExports))this.raise(F.ModuleExportUndefined,C,{localName:y});this.addExtra(o,"topLevelAwait",this.state.hasTopLevelAwait)}let c;return n===140?c=this.finishNode(o,"Program"):c=this.finishNodeAt(o,"Program",E(this.state.startLoc,-1)),c}stmtToDirective(o){let n=this.castNodeTo(o,"Directive"),l=this.castNodeTo(o.expression,"DirectiveLiteral"),c=l.value,y=this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end)),C=l.value=y.slice(1,-1);return this.addExtra(l,"raw",y),this.addExtra(l,"rawValue",C),this.addExtra(l,"expressionValue",c),n.value=l,delete o.expression,n}parseInterpreterDirective(){if(!this.match(28))return null;let o=this.startNode();return o.value=this.state.value,this.next(),this.finishNode(o,"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 o=this.nextTokenInLineStart(),n=this.codePointAtPos(o);if(this.isUnparsedContextual(o,"of")){let l=this.lookaheadCharCodeSince(o+2);if(l!==61&&l!==58&&l!==59)return!1}return!!(this.chStartsBindingIdentifier(n,o)||this.isUnparsedContextual(o,"void"))}nextTokenIsIdentifierOnSameLine(){let o=this.nextTokenInLineStart(),n=this.codePointAtPos(o);return this.chStartsBindingIdentifier(n,o)}isAwaitUsing(){if(!this.isContextual(96))return!1;let o=this.nextTokenInLineStart();if(this.isUnparsedContextual(o,"using")){o=this.nextTokenInLineStartSince(o+5);let n=this.codePointAtPos(o);if(this.chStartsBindingIdentifier(n,o))return!0}return!1}chStartsBindingIdentifier(o,n){if(ur(o)){if(yu.lastIndex=n,yu.test(this.input)){let l=this.codePointAtPos(yu.lastIndex);if(!Ss(l)&&l!==92)return!1}return!0}else return o===92}chStartsBindingPattern(o){return o===91||o===123}hasFollowingBindingAtom(){let o=this.nextTokenStart(),n=this.codePointAtPos(o);return this.chStartsBindingPattern(n)||this.chStartsBindingIdentifier(n,o)}hasInLineFollowingBindingIdentifierOrBrace(){let o=this.nextTokenInLineStart(),n=this.codePointAtPos(o);return n===123||this.chStartsBindingIdentifier(n,o)}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(o=!1){let n=0;return this.options.annexB&&!this.state.strict&&(n|=4,o&&(n|=8)),this.parseStatementLike(n)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(o){let n=null;return this.match(26)&&(n=this.parseDecorators(!0)),this.parseStatementContent(o,n)}parseStatementContent(o,n){let l=this.state.type,c=this.startNode(),y=!!(o&2),C=!!(o&4),P=o&1;switch(l){case 60:return this.parseBreakContinueStatement(c,!0);case 63:return this.parseBreakContinueStatement(c,!1);case 64:return this.parseDebuggerStatement(c);case 90:return this.parseDoWhileStatement(c);case 91:return this.parseForStatement(c);case 68:if(this.lookaheadCharCode()===46)break;return C||this.raise(this.state.strict?F.StrictFunction:this.options.annexB?F.SloppyFunctionAnnexB:F.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(c,!1,!y&&C);case 80:return y||this.unexpected(),this.parseClass(this.maybeTakeDecorators(n,c),!0);case 69:return this.parseIfStatement(c);case 70:return this.parseReturnStatement(c);case 71:return this.parseSwitchStatement(c);case 72:return this.parseThrowStatement(c);case 73:return this.parseTryStatement(c);case 96:if(this.isAwaitUsing())return this.allowsUsing()?y?this.recordAwaitIfAllowed()||this.raise(F.AwaitUsingNotInAsyncContext,c):this.raise(F.UnexpectedLexicalDeclaration,c):this.raise(F.UnexpectedUsingDeclaration,c),this.next(),this.parseVarStatement(c,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?y||this.raise(F.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(F.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(c,"using");case 100:{if(this.state.containsEsc)break;let I=this.nextTokenStart(),X=this.codePointAtPos(I);if(X!==91&&(!y&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(X,I)&&X!==123))break}case 75:y||this.raise(F.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let I=this.state.value;return this.parseVarStatement(c,I)}case 92:return this.parseWhileStatement(c);case 76:return this.parseWithStatement(c);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(c);case 83:{let I=this.lookaheadCharCode();if(I===40||I===46)break}case 82:{!(this.optionFlags&8)&&!P&&this.raise(F.UnexpectedImportExport,this.state.startLoc),this.next();let I;return l===83?I=this.parseImport(c):I=this.parseExport(c,n),this.assertModuleNodeAllowed(I),I}default:if(this.isAsyncFunction())return y||this.raise(F.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(c,!0,!y&&C)}let w=this.state.value,B=this.parseExpression();return Le(l)&&B.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(c,w,B,o):this.parseExpressionStatement(c,B,n)}assertModuleNodeAllowed(o){!(this.optionFlags&8)&&!this.inModule&&this.raise(F.ImportOutsideModule,o)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(o,n,l){return o&&(n.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(F.DecoratorsBeforeAfterExport,n.decorators[0]),n.decorators.unshift(...o)):n.decorators=o,this.resetStartLocationFromNode(n,o[0]),l&&this.resetStartLocationFromNode(l,n)),n}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(o){let n=[];do n.push(this.parseDecorator());while(this.match(26));if(this.match(82))o||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(F.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(F.UnexpectedLeadingDecorator,this.state.startLoc);return n}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let o=this.startNode();if(this.next(),this.hasPlugin("decorators")){let n=this.state.startLoc,l;if(this.match(10)){let c=this.state.startLoc;this.next(),l=this.parseExpression(),this.expect(11),l=this.wrapParenthesis(c,l);let y=this.state.startLoc;o.expression=this.parseMaybeDecoratorArguments(l,c),this.getPluginOption("decorators","allowCallParenthesized")===!1&&o.expression!==l&&this.raise(F.DecoratorArgumentsOutsideParentheses,y)}else{for(l=this.parseIdentifier(!1);this.eat(16);){let c=this.startNodeAt(n);c.object=l,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),c.property=this.parsePrivateName()):c.property=this.parseIdentifier(!0),c.computed=!1,l=this.finishNode(c,"MemberExpression")}o.expression=this.parseMaybeDecoratorArguments(l,n)}}else o.expression=this.parseExprSubscripts();return this.finishNode(o,"Decorator")}parseMaybeDecoratorArguments(o,n){if(this.eat(10)){let l=this.startNodeAt(n);return l.callee=o,l.arguments=this.parseCallExpressionArguments(),this.toReferencedList(l.arguments),this.finishNode(l,"CallExpression")}return o}parseBreakContinueStatement(o,n){return this.next(),this.isLineTerminator()?o.label=null:(o.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(o,n),this.finishNode(o,n?"BreakStatement":"ContinueStatement")}verifyBreakContinue(o,n){let l;for(l=0;l<this.state.labels.length;++l){let c=this.state.labels[l];if((o.label==null||c.name===o.label.name)&&(c.kind!=null&&(n||c.kind===1)||o.label&&n))break}if(l===this.state.labels.length){let c=n?"BreakStatement":"ContinueStatement";this.raise(F.IllegalBreakContinue,o,{type:c})}}parseDebuggerStatement(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let o=this.parseExpression();return this.expect(11),o}parseDoWhileStatement(o){return this.next(),this.state.labels.push(mu),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),o.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(o,"DoWhileStatement")}parseForStatement(o){this.next(),this.state.labels.push(mu);let n=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(n=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return n!==null&&this.unexpected(n),this.parseFor(o,null);let l=this.isContextual(100);{let w=this.isAwaitUsing(),B=w||this.isForUsing(),I=l&&this.hasFollowingBindingAtom()||B;if(this.match(74)||this.match(75)||I){let X=this.startNode(),Q;w?(Q="await using",this.recordAwaitIfAllowed()||this.raise(F.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Q=this.state.value,this.next(),this.parseVar(X,!0,Q);let ye=this.finishNode(X,"VariableDeclaration"),Ce=this.match(58);return Ce&&B&&this.raise(F.ForInUsing,ye),(Ce||this.isContextual(102))&&ye.declarations.length===1?this.parseForIn(o,ye,n):(n!==null&&this.unexpected(n),this.parseFor(o,ye))}}let c=this.isContextual(95),y=new Pa,C=this.parseExpression(!0,y),P=this.isContextual(102);if(P&&(l&&this.raise(F.ForOfLet,C),n===null&&c&&C.type==="Identifier"&&this.raise(F.ForOfAsync,C)),P||this.match(58)){this.checkDestructuringPrivate(y),this.toAssignable(C,!0);let w=P?"ForOfStatement":"ForInStatement";return this.checkLVal(C,{type:w}),this.parseForIn(o,C,n)}else this.checkExpressionErrors(y,!0);return n!==null&&this.unexpected(n),this.parseFor(o,C)}parseFunctionStatement(o,n,l){return this.next(),this.parseFunction(o,1|(l?2:0)|(n?8:0))}parseIfStatement(o){return this.next(),o.test=this.parseHeaderExpression(),o.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),o.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(o,"IfStatement")}parseReturnStatement(o){return this.prodParam.hasReturn||this.raise(F.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")}parseSwitchStatement(o){this.next(),o.discriminant=this.parseHeaderExpression();let n=o.cases=[];this.expect(5),this.state.labels.push(O2),this.scope.enter(256);let l;for(let c;!this.match(8);)if(this.match(61)||this.match(65)){let y=this.match(61);l&&this.finishNode(l,"SwitchCase"),n.push(l=this.startNode()),l.consequent=[],this.next(),y?l.test=this.parseExpression():(c&&this.raise(F.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),c=!0,l.test=null),this.expect(14)}else l?l.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),l&&this.finishNode(l,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(o,"SwitchStatement")}parseThrowStatement(o){return this.next(),this.hasPrecedingLineBreak()&&this.raise(F.NewlineAfterThrow,this.state.lastTokEndLoc),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")}parseCatchClauseParam(){let o=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&o.type==="Identifier"?8:0),this.checkLVal(o,{type:"CatchClause"},9),o}parseTryStatement(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.match(62)){let n=this.startNode();this.next(),this.match(10)?(this.expect(10),n.param=this.parseCatchClauseParam(),this.expect(11)):(n.param=null,this.scope.enter(0)),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),o.handler=this.finishNode(n,"CatchClause")}return o.finalizer=this.eat(67)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(F.NoCatchOrFinally,o),this.finishNode(o,"TryStatement")}parseVarStatement(o,n,l=!1){return this.next(),this.parseVar(o,!1,n,l),this.semicolon(),this.finishNode(o,"VariableDeclaration")}parseWhileStatement(o){return this.next(),o.test=this.parseHeaderExpression(),this.state.labels.push(mu),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(o,"WhileStatement")}parseWithStatement(o){return this.state.strict&&this.raise(F.StrictWith,this.state.startLoc),this.next(),o.object=this.parseHeaderExpression(),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(o,"WithStatement")}parseEmptyStatement(o){return this.next(),this.finishNode(o,"EmptyStatement")}parseLabeledStatement(o,n,l,c){for(let C of this.state.labels)C.name===n&&this.raise(F.LabelRedeclaration,l,{labelName:n});let y=v0(this.state.type)?1:this.match(71)?2:null;for(let C=this.state.labels.length-1;C>=0;C--){let P=this.state.labels[C];if(P.statementStart===o.start)P.statementStart=this.sourceToOffsetPos(this.state.start),P.kind=y;else break}return this.state.labels.push({name:n,kind:y,statementStart:this.sourceToOffsetPos(this.state.start)}),o.body=c&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),o.label=l,this.finishNode(o,"LabeledStatement")}parseExpressionStatement(o,n,l){return o.expression=n,this.semicolon(),this.finishNode(o,"ExpressionStatement")}parseBlock(o=!1,n=!0,l){let c=this.startNode();return o&&this.state.strictErrors.clear(),this.expect(5),n&&this.scope.enter(0),this.parseBlockBody(c,o,!1,8,l),n&&this.scope.exit(),this.finishNode(c,"BlockStatement")}isValidDirective(o){return o.type==="ExpressionStatement"&&o.expression.type==="StringLiteral"&&!o.expression.extra.parenthesized}parseBlockBody(o,n,l,c,y){let C=o.body=[],P=o.directives=[];this.parseBlockOrModuleBlockBody(C,n?P:void 0,l,c,y)}parseBlockOrModuleBlockBody(o,n,l,c,y){let C=this.state.strict,P=!1,w=!1;for(;!this.match(c);){let B=l?this.parseModuleItem():this.parseStatementListItem();if(n&&!w){if(this.isValidDirective(B)){let I=this.stmtToDirective(B);n.push(I),!P&&I.value.value==="use strict"&&(P=!0,this.setStrict(!0));continue}w=!0,this.state.strictErrors.clear()}o.push(B)}y?.call(this,P),C||this.setStrict(!1),this.next()}parseFor(o,n){return o.init=n,this.semicolon(!1),o.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),o.update=this.match(11)?null:this.parseExpression(),this.expect(11),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(o,"ForStatement")}parseForIn(o,n,l){let c=this.match(58);return this.next(),c?l!==null&&this.unexpected(l):o.await=l!==null,n.type==="VariableDeclaration"&&n.declarations[0].init!=null&&(!c||!this.options.annexB||this.state.strict||n.kind!=="var"||n.declarations[0].id.type!=="Identifier")&&this.raise(F.ForInOfLoopInitializer,n,{type:c?"ForInStatement":"ForOfStatement"}),n.type==="AssignmentPattern"&&this.raise(F.InvalidLhs,n,{ancestor:{type:"ForStatement"}}),o.left=n,o.right=c?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(o,c?"ForInStatement":"ForOfStatement")}parseVar(o,n,l,c=!1){let y=o.declarations=[];for(o.kind=l;;){let C=this.startNode();if(this.parseVarId(C,l),C.init=this.eat(29)?n?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,C.init===null&&!c&&(C.id.type!=="Identifier"&&!(n&&(this.match(58)||this.isContextual(102)))?this.raise(F.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(l==="const"||l==="using"||l==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(F.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:l})),y.push(this.finishNode(C,"VariableDeclarator")),!this.eat(12))break}return o}parseVarId(o,n){let l=this.parseBindingAtom();n==="using"||n==="await using"?(l.type==="ArrayPattern"||l.type==="ObjectPattern")&&this.raise(F.UsingDeclarationHasBindingPattern,l.loc.start):l.type==="VoidPattern"&&this.raise(F.UnexpectedVoidPattern,l.loc.start),this.checkLVal(l,{type:"VariableDeclarator"},n==="var"?5:8201),o.id=l}parseAsyncFunctionExpression(o){return this.parseFunction(o,8)}parseFunction(o,n=0){let l=n&2,c=!!(n&1),y=c&&!(n&4),C=!!(n&8);this.initFunction(o,C),this.match(55)&&(l&&this.raise(F.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),o.generator=!0),c&&(o.id=this.parseFunctionId(y));let P=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Ta(C,o.generator)),c||(o.id=this.parseFunctionId()),this.parseFunctionParams(o,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(o,c?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),c&&!l&&this.registerFunctionStatementId(o),this.state.maybeInArrowParameters=P,o}parseFunctionId(o){return o||Le(this.state.type)?this.parseIdentifier():null}parseFunctionParams(o,n){this.expect(10),this.expressionScope.enter(g2()),o.params=this.parseBindingList(11,41,2|(n?4:0)),this.expressionScope.exit()}registerFunctionStatementId(o){o.id&&this.scope.declareName(o.id.name,!this.options.annexB||this.state.strict||o.generator||o.async?this.scope.treatFunctionsAsVar?5:8201:17,o.id.loc.start)}parseClass(o,n,l){this.next();let c=this.state.strict;return this.state.strict=!0,this.parseClassId(o,n,l),this.parseClassSuper(o),o.body=this.parseClassBody(!!o.superClass,c),this.finishNode(o,n?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(o){return o.type==="Identifier"&&o.name==="constructor"||o.type==="StringLiteral"&&o.value==="constructor"}isNonstaticConstructor(o){return!o.computed&&!o.static&&this.nameIsConstructor(o.key)}parseClassBody(o,n){this.classScope.enter();let l={hadConstructor:!1,hadSuperClass:o},c=[],y=this.startNode();if(y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(c.length>0)throw this.raise(F.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){c.push(this.parseDecorator());continue}let C=this.startNode();c.length&&(C.decorators=c,this.resetStartLocationFromNode(C,c[0]),c=[]),this.parseClassMember(y,C,l),C.kind==="constructor"&&C.decorators&&C.decorators.length>0&&this.raise(F.DecoratorConstructor,C)}}),this.state.strict=n,this.next(),c.length)throw this.raise(F.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(y,"ClassBody")}parseClassMemberFromModifier(o,n){let l=this.parseIdentifier(!0);if(this.isClassMethod()){let c=n;return c.kind="method",c.computed=!1,c.key=l,c.static=!1,this.pushClassMethod(o,c,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let c=n;return c.computed=!1,c.key=l,c.static=!1,o.body.push(this.parseClassProperty(c)),!0}return this.resetPreviousNodeTrailingComments(l),!1}parseClassMember(o,n,l){let c=this.isContextual(106);if(c){if(this.parseClassMemberFromModifier(o,n))return;if(this.eat(5)){this.parseClassStaticBlock(o,n);return}}this.parseClassMemberWithIsStatic(o,n,l,c)}parseClassMemberWithIsStatic(o,n,l,c){let y=n,C=n,P=n,w=n,B=n,I=y,X=y;if(n.static=c,this.parsePropertyNamePrefixOperator(n),this.eat(55)){I.kind="method";let Xe=this.match(139);if(this.parseClassElementName(I),this.parsePostMemberNameModifiers(I),Xe){this.pushClassPrivateMethod(o,C,!0,!1);return}this.isNonstaticConstructor(y)&&this.raise(F.ConstructorIsGenerator,y.key),this.pushClassMethod(o,y,!0,!1,!1,!1);return}let Q=!this.state.containsEsc&&Le(this.state.type),ye=this.parseClassElementName(n),Ce=Q?ye.name:null,et=this.isPrivateName(ye),lt=this.state.startLoc;if(this.parsePostMemberNameModifiers(X),this.isClassMethod()){if(I.kind="method",et){this.pushClassPrivateMethod(o,C,!1,!1);return}let Xe=this.isNonstaticConstructor(y),Ke=!1;Xe&&(y.kind="constructor",l.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(F.DuplicateConstructor,ye),Xe&&this.hasPlugin("typescript")&&n.override&&this.raise(F.OverrideOnConstructor,ye),l.hadConstructor=!0,Ke=l.hadSuperClass),this.pushClassMethod(o,y,!1,!1,Xe,Ke)}else if(this.isClassProperty())et?this.pushClassPrivateProperty(o,w):this.pushClassProperty(o,P);else if(Ce==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(ye);let Xe=this.eat(55);X.optional&&this.unexpected(lt),I.kind="method";let Ke=this.match(139);this.parseClassElementName(I),this.parsePostMemberNameModifiers(X),Ke?this.pushClassPrivateMethod(o,C,Xe,!0):(this.isNonstaticConstructor(y)&&this.raise(F.ConstructorIsAsync,y.key),this.pushClassMethod(o,y,Xe,!0,!1,!1))}else if((Ce==="get"||Ce==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(ye),I.kind=Ce;let Xe=this.match(139);this.parseClassElementName(y),Xe?this.pushClassPrivateMethod(o,C,!1,!1):(this.isNonstaticConstructor(y)&&this.raise(F.ConstructorIsAccessor,y.key),this.pushClassMethod(o,y,!1,!1,!1,!1)),this.checkGetterSetterParams(y)}else if(Ce==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(ye);let Xe=this.match(139);this.parseClassElementName(P),this.pushClassAccessorProperty(o,B,Xe)}else this.isLineTerminator()?et?this.pushClassPrivateProperty(o,w):this.pushClassProperty(o,P):this.unexpected()}parseClassElementName(o){let{type:n,value:l}=this.state;if((n===132||n===134)&&o.static&&l==="prototype"&&this.raise(F.StaticPrototype,this.state.startLoc),n===139){l==="constructor"&&this.raise(F.ConstructorClassPrivateField,this.state.startLoc);let c=this.parsePrivateName();return o.key=c,c}return this.parsePropertyName(o),o.key}parseClassStaticBlock(o,n){this.scope.enter(720);let l=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let c=n.body=[];this.parseBlockOrModuleBlockBody(c,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=l,o.body.push(this.finishNode(n,"StaticBlock")),n.decorators?.length&&this.raise(F.DecoratorStaticBlock,n)}pushClassProperty(o,n){!n.computed&&this.nameIsConstructor(n.key)&&this.raise(F.ConstructorClassField,n.key),o.body.push(this.parseClassProperty(n))}pushClassPrivateProperty(o,n){let l=this.parseClassPrivateProperty(n);o.body.push(l),this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),0,l.key.loc.start)}pushClassAccessorProperty(o,n,l){!l&&!n.computed&&this.nameIsConstructor(n.key)&&this.raise(F.ConstructorClassField,n.key);let c=this.parseClassAccessorProperty(n);o.body.push(c),l&&this.classScope.declarePrivateName(this.getPrivateNameSV(c.key),0,c.key.loc.start)}pushClassMethod(o,n,l,c,y,C){o.body.push(this.parseMethod(n,l,c,y,C,"ClassMethod",!0))}pushClassPrivateMethod(o,n,l,c){let y=this.parseMethod(n,l,c,!1,!1,"ClassPrivateMethod",!0);o.body.push(y);let C=y.kind==="get"?y.static?6:2:y.kind==="set"?y.static?5:1:0;this.declareClassPrivateMethodInScope(y,C)}declareClassPrivateMethodInScope(o,n){this.classScope.declarePrivateName(this.getPrivateNameSV(o.key),n,o.key.loc.start)}parsePostMemberNameModifiers(o){}parseClassPrivateProperty(o){return this.parseInitializer(o),this.semicolon(),this.finishNode(o,"ClassPrivateProperty")}parseClassProperty(o){return this.parseInitializer(o),this.semicolon(),this.finishNode(o,"ClassProperty")}parseClassAccessorProperty(o){return this.parseInitializer(o),this.semicolon(),this.finishNode(o,"ClassAccessorProperty")}parseInitializer(o){this.scope.enter(592),this.expressionScope.enter(Ch()),this.prodParam.enter(0),o.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(o,n,l,c=8331){if(Le(this.state.type))o.id=this.parseIdentifier(),n&&this.declareNameFromIdentifier(o.id,c);else if(l||!n)o.id=null;else throw this.raise(F.MissingClassName,this.state.startLoc)}parseClassSuper(o){o.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(o,n){let l=this.parseMaybeImportPhase(o,!0),c=this.maybeParseExportDefaultSpecifier(o,l),y=!c||this.eat(12),C=y&&this.eatExportStar(o),P=C&&this.maybeParseExportNamespaceSpecifier(o),w=y&&(!P||this.eat(12)),B=c||C;if(C&&!P){if(c&&this.unexpected(),n)throw this.raise(F.UnsupportedDecoratorExport,o);return this.parseExportFrom(o,!0),this.sawUnambiguousESM=!0,this.finishNode(o,"ExportAllDeclaration")}let I=this.maybeParseExportNamedSpecifiers(o);c&&y&&!C&&!I&&this.unexpected(null,5),P&&w&&this.unexpected(null,98);let X;if(B||I){if(X=!1,n)throw this.raise(F.UnsupportedDecoratorExport,o);this.parseExportFrom(o,B)}else X=this.maybeParseExportDeclaration(o);if(B||I||X){let Q=o;if(this.checkExport(Q,!0,!1,!!Q.source),Q.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(n,Q.declaration,Q);else if(n)throw this.raise(F.UnsupportedDecoratorExport,o);return this.sawUnambiguousESM=!0,this.finishNode(Q,"ExportNamedDeclaration")}if(this.eat(65)){let Q=o,ye=this.parseExportDefaultExpression();if(Q.declaration=ye,ye.type==="ClassDeclaration")this.maybeTakeDecorators(n,ye,Q);else if(n)throw this.raise(F.UnsupportedDecoratorExport,o);return this.checkExport(Q,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(Q,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(o){return this.eat(55)}maybeParseExportDefaultSpecifier(o,n){if(n||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",n?.loc.start);let l=n||this.parseIdentifier(!0),c=this.startNodeAtNode(l);return c.exported=l,o.specifiers=[this.finishNode(c,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(o){if(this.isContextual(93)){o.specifiers??(o.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),o.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(o){if(this.match(5)){let n=o;n.specifiers||(n.specifiers=[]);let l=n.exportKind==="type";return n.specifiers.push(...this.parseExportSpecifiers(l)),n.source=null,n.attributes=[],n.declaration=null,!0}return!1}maybeParseExportDeclaration(o){return this.shouldParseExportDeclaration()?(o.specifiers=[],o.source=null,o.attributes=[],o.declaration=this.parseExportDeclaration(o),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let o=this.nextTokenInLineStart();return this.isUnparsedContextual(o,"function")}parseExportDefaultExpression(){let o=this.startNode();if(this.match(68))return this.next(),this.parseFunction(o,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(o,13);if(this.match(80))return this.parseClass(o,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(F.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(F.UnsupportedDefaultExport,this.state.startLoc);let n=this.parseMaybeAssignAllowIn();return this.semicolon(),n}parseExportDeclaration(o){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:o}=this.state;if(Le(o)){if(o===95&&!this.state.containsEsc||o===100)return!1;if((o===130||o===129)&&!this.state.containsEsc){let c=this.nextTokenStart(),y=this.input.charCodeAt(c);if(y===123||this.chStartsBindingIdentifier(y,c)&&!this.input.startsWith("from",c))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let n=this.nextTokenStart(),l=this.isUnparsedContextual(n,"from");if(this.input.charCodeAt(n)===44||Le(this.state.type)&&l)return!0;if(this.match(65)&&l){let c=this.input.charCodeAt(this.nextTokenStartSince(n+4));return c===34||c===39}return!1}parseExportFrom(o,n){this.eatContextual(98)?(o.source=this.parseImportSource(),this.checkExport(o),this.maybeParseImportAttributes(o),this.checkJSONModuleImport(o)):n&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:o}=this.state;return o===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(F.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(F.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(F.UsingDeclarationExport,this.state.startLoc),!0):o===74||o===75||o===68||o===80||this.isLet()||this.isAsyncFunction()}checkExport(o,n,l,c){if(n){if(l){if(this.checkDuplicateExports(o,"default"),this.hasPlugin("exportDefaultFrom")){let y=o.declaration;y.type==="Identifier"&&y.name==="from"&&y.end-y.start===4&&!y.extra?.parenthesized&&this.raise(F.ExportDefaultFromAsIdentifier,y)}}else if(o.specifiers?.length)for(let y of o.specifiers){let{exported:C}=y,P=C.type==="Identifier"?C.name:C.value;if(this.checkDuplicateExports(y,P),!c&&y.local){let{local:w}=y;w.type!=="Identifier"?this.raise(F.ExportBindingIsString,y,{localName:w.value,exportName:P}):(this.checkReservedWord(w.name,w.loc.start,!0,!1),this.scope.checkLocalExport(w))}}else if(o.declaration){let y=o.declaration;if(y.type==="FunctionDeclaration"||y.type==="ClassDeclaration"){let{id:C}=y;if(!C)throw new Error("Assertion failure");this.checkDuplicateExports(o,C.name)}else if(y.type==="VariableDeclaration")for(let C of y.declarations)this.checkDeclaration(C.id)}}}checkDeclaration(o){if(o.type==="Identifier")this.checkDuplicateExports(o,o.name);else if(o.type==="ObjectPattern")for(let n of o.properties)this.checkDeclaration(n);else if(o.type==="ArrayPattern")for(let n of o.elements)n&&this.checkDeclaration(n);else o.type==="ObjectProperty"?this.checkDeclaration(o.value):o.type==="RestElement"?this.checkDeclaration(o.argument):o.type==="AssignmentPattern"&&this.checkDeclaration(o.left)}checkDuplicateExports(o,n){this.exportedIdentifiers.has(n)&&(n==="default"?this.raise(F.DuplicateDefaultExport,o):this.raise(F.DuplicateExport,o,{exportName:n})),this.exportedIdentifiers.add(n)}parseExportSpecifiers(o){let n=[],l=!0;for(this.expect(5);!this.eat(8);){if(l)l=!1;else if(this.expect(12),this.eat(8))break;let c=this.isContextual(130),y=this.match(134),C=this.startNode();C.local=this.parseModuleExportName(),n.push(this.parseExportSpecifier(C,y,o,c))}return n}parseExportSpecifier(o,n,l,c){return this.eatContextual(93)?o.exported=this.parseModuleExportName():n?o.exported=this.cloneStringLiteral(o.local):o.exported||(o.exported=this.cloneIdentifier(o.local)),this.finishNode(o,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let o=this.parseStringLiteral(this.state.value),n=_2.exec(o.value);return n&&this.raise(F.ModuleExportNameHasLoneSurrogate,o,{surrogateCharCode:n[0].charCodeAt(0)}),o}return this.parseIdentifier(!0)}isJSONModuleImport(o){return o.assertions!=null?o.assertions.some(({key:n,value:l})=>l.value==="json"&&(n.type==="Identifier"?n.name==="type":n.value==="type")):!1}checkImportReflection(o){let{specifiers:n}=o,l=n.length===1?n[0].type:null;o.phase==="source"?l!=="ImportDefaultSpecifier"&&this.raise(F.SourcePhaseImportRequiresDefault,n[0].loc.start):o.phase==="defer"?l!=="ImportNamespaceSpecifier"&&this.raise(F.DeferImportRequiresNamespace,n[0].loc.start):o.module&&(l!=="ImportDefaultSpecifier"&&this.raise(F.ImportReflectionNotBinding,n[0].loc.start),o.assertions?.length>0&&this.raise(F.ImportReflectionHasAssertion,n[0].loc.start))}checkJSONModuleImport(o){if(this.isJSONModuleImport(o)&&o.type!=="ExportAllDeclaration"){let{specifiers:n}=o;if(n!=null){let l=n.find(c=>{let y;if(c.type==="ExportSpecifier"?y=c.local:c.type==="ImportSpecifier"&&(y=c.imported),y!==void 0)return y.type==="Identifier"?y.name!=="default":y.value!=="default"});l!==void 0&&this.raise(F.ImportJSONBindingNotDefault,l.loc.start)}}}isPotentialImportPhase(o){return o?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(o,n,l,c){n||(this.hasPlugin("importReflection")&&(o.module=!1),l==="source"?(this.expectPlugin("sourcePhaseImports",c),o.phase="source"):l==="defer"?(this.expectPlugin("deferredImportEvaluation",c),o.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(o.phase=null))}parseMaybeImportPhase(o,n){if(!this.isPotentialImportPhase(n))return this.applyImportPhase(o,n,null),null;let l=this.startNode(),c=this.parseIdentifierName(!0),{type:y}=this.state;return(dt(y)?y!==98||this.lookaheadCharCode()===102:y!==12)?(this.applyImportPhase(o,n,c,l.loc.start),null):(this.applyImportPhase(o,n,null),this.createIdentifier(l,c))}isPrecedingIdImportPhase(o){let{type:n}=this.state;return Le(n)?n!==98||this.lookaheadCharCode()===102:n!==12}parseImport(o){return this.match(134)?this.parseImportSourceAndAttributes(o):this.parseImportSpecifiersAndAfter(o,this.parseMaybeImportPhase(o,!1))}parseImportSpecifiersAndAfter(o,n){o.specifiers=[];let l=!this.maybeParseDefaultImportSpecifier(o,n)||this.eat(12),c=l&&this.maybeParseStarImportSpecifier(o);return l&&!c&&this.parseNamedImportSpecifiers(o),this.expectContextual(98),this.parseImportSourceAndAttributes(o)}parseImportSourceAndAttributes(o){return o.specifiers??(o.specifiers=[]),o.source=this.parseImportSource(),this.maybeParseImportAttributes(o),this.checkImportReflection(o),this.checkJSONModuleImport(o),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(o,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(o,n,l){n.local=this.parseIdentifier(),o.specifiers.push(this.finishImportSpecifier(n,l))}finishImportSpecifier(o,n,l=8201){return this.checkLVal(o.local,{type:n},l),this.finishNode(o,n)}parseImportAttributes(){this.expect(5);let o=[],n=new Set;do{if(this.match(8))break;let l=this.startNode(),c=this.state.value;if(n.has(c)&&this.raise(F.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:c}),n.add(c),this.match(134)?l.key=this.parseStringLiteral(c):l.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(F.ModuleAttributeInvalidValue,this.state.startLoc);l.value=this.parseStringLiteral(this.state.value),o.push(this.finishNode(l,"ImportAttribute"))}while(this.eat(12));return this.expect(8),o}parseModuleAttributes(){let o=[],n=new Set;do{let l=this.startNode();if(l.key=this.parseIdentifier(!0),l.key.name!=="type"&&this.raise(F.ModuleAttributeDifferentFromType,l.key),n.has(l.key.name)&&this.raise(F.ModuleAttributesWithDuplicateKeys,l.key,{key:l.key.name}),n.add(l.key.name),this.expect(14),!this.match(134))throw this.raise(F.ModuleAttributeInvalidValue,this.state.startLoc);l.value=this.parseStringLiteral(this.state.value),o.push(this.finishNode(l,"ImportAttribute"))}while(this.eat(12));return o}maybeParseImportAttributes(o){let n;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),n=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(F.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(o,"deprecatedAssertSyntax",!0),this.next(),n=this.parseImportAttributes()):n=[];o.attributes=n}maybeParseDefaultImportSpecifier(o,n){if(n){let l=this.startNodeAtNode(n);return l.local=n,o.specifiers.push(this.finishImportSpecifier(l,"ImportDefaultSpecifier")),!0}else if(dt(this.state.type))return this.parseImportSpecifierLocal(o,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(o){if(this.match(55)){let n=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(o,n,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(o){let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else{if(this.eat(14))throw this.raise(F.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let l=this.startNode(),c=this.match(134),y=this.isContextual(130);l.imported=this.parseModuleExportName();let C=this.parseImportSpecifier(l,c,o.importKind==="type"||o.importKind==="typeof",y,void 0);o.specifiers.push(C)}}parseImportSpecifier(o,n,l,c,y){if(this.eatContextual(93))o.local=this.parseIdentifier();else{let{imported:C}=o;if(n)throw this.raise(F.ImportBindingIsString,o,{importName:C.value});this.checkReservedWord(C.name,o.loc.start,!0,!0),o.local||(o.local=this.cloneIdentifier(C))}return this.finishImportSpecifier(o,"ImportSpecifier",y)}isThisParam(o){return o.type==="Identifier"&&o.name==="this"}},Nh=class extends $2{constructor(o,n,l){let c=te(o);super(c,n),this.options=c,this.initializeScopes(),this.plugins=l,this.filename=c.sourceFilename,this.startIndex=c.startIndex;let y=0;c.allowAwaitOutsideFunction&&(y|=1),c.allowReturnOutsideFunction&&(y|=2),c.allowImportExportEverywhere&&(y|=8),c.allowSuperOutsideMethod&&(y|=16),c.allowUndeclaredExports&&(y|=64),c.allowNewTargetOutsideFunction&&(y|=4),c.allowYieldOutsideFunction&&(y|=32),c.ranges&&(y|=128),c.tokens&&(y|=256),c.createImportExpressions&&(y|=512),c.createParenthesizedExpressions&&(y|=1024),c.errorRecovery&&(y|=2048),c.attachComment&&(y|=4096),c.annexB&&(y|=8192),this.optionFlags=y}getScopeHandler(){return ou}parse(){this.enterInitialScopes();let o=this.startNode(),n=this.startNode();this.nextToken(),o.errors=null;let l=this.parseTopLevel(o,n);return l.errors=this.state.errors,l.comments.length=this.state.commentsLen,l}};function Bh(o,n){if(n?.sourceType==="unambiguous"){n=Object.assign({},n);try{n.sourceType="module";let l=en(n,o),c=l.parse();if(l.sawUnambiguousESM)return c;if(l.ambiguousScriptDifferentAst)try{return n.sourceType="script",en(n,o).parse()}catch{}else c.program.sourceType="script";return c}catch(l){try{return n.sourceType="script",en(n,o).parse()}catch{}throw l}}else return en(n,o).parse()}function Lh(o,n){let l=en(n,o);return l.options.strictMode&&(l.state.strict=!0),l.getExpression()}function j2(o){let n={};for(let l of Object.keys(o))n[l]=oh(o[l]);return n}j2(bs);function en(o,n){let l=Nh,c=new Map;if(o?.plugins){for(let y of o.plugins){let C,P;typeof y=="string"?C=y:[C,P]=y,c.has(C)||c.set(C,P||{})}N2(c),l=R2(c)}return new l(o,n,c)}var Oh=new Map;function R2(o){let n=[];for(let y of B2)o.has(y)&&n.push(y);let l=n.join("|"),c=Oh.get(l);if(!c){c=Nh;for(let y of n)c=Ih[y](c);Oh.set(l,c)}return c}function _h(o){return(n,l,c)=>{let y=!!c?.backwards;if(l===!1)return!1;let{length:C}=n,P=l;for(;P>=0&&P<C;){let w=n.charAt(P);if(o instanceof RegExp){if(!o.test(w))return P}else if(!o.includes(w))return P;y?P--:P++}return P===-1||P===C?P:!1}}var U2=_h(" "),q2=_h(/[^\n\r]/u);function V2(o,n){if(n===!1)return!1;if(o.charAt(n)==="/"&&o.charAt(n+1)==="*"){for(let l=n+2;l<o.length;++l)if(o.charAt(l)==="*"&&o.charAt(l+1)==="/")return l+2}return n}var z2=V2,Mh=o=>o===`
|
|
178
|
+
`||o==="\r"||o==="\u2028"||o==="\u2029";function H2(o,n,l){let c=!!l?.backwards;if(n===!1)return!1;let y=o.charAt(n);if(c){if(o.charAt(n-1)==="\r"&&y===`
|
|
179
|
+
`)return n-2;if(Mh(y))return n-1}else{if(y==="\r"&&o.charAt(n+1)===`
|
|
180
|
+
`)return n+2;if(Mh(y))return n+1}return n}var W2=H2;function J2(o,n){return n===!1?!1:o.charAt(n)==="/"&&o.charAt(n+1)==="/"?q2(o,n):n}var X2=J2;function K2(o,n){let l=null,c=n;for(;c!==l;)l=c,c=U2(o,c),c=z2(o,c),c=X2(o,c),c=W2(o,c);return c}var G2=K2;function Y2(o){let n=[];for(let l of o)try{return l()}catch(c){n.push(c)}throw Object.assign(new Error("All combinations failed"),{errors:n})}function Q2(o){if(!o.startsWith("#!"))return"";let n=o.indexOf(`
|
|
181
|
+
`);return n===-1?o:o.slice(0,n)}var $h=Q2,gu=(o,n)=>(l,c,...y)=>l|1&&c==null?void 0:(n.call(c)??c[o]).apply(c,y),Z2=Array.prototype.findLast??function(o){for(let n=this.length-1;n>=0;n--){let l=this[n];if(o(l,n,this))return l}},eE=gu("findLast",function(){if(Array.isArray(this))return Z2}),tE=eE;function rE(o){return this[o<0?this.length+o:o]}var sE=gu("at",function(){if(Array.isArray(this)||typeof this=="string")return rE}),iE=sE;function Fr(o){let n=o.range?.[0]??o.start,l=(o.declaration?.decorators??o.decorators)?.[0];return l?Math.min(Fr(l),n):n}function lr(o){return o.range?.[1]??o.end}function nE(o){let n=new Set(o);return l=>n.has(l?.type)}var Du=nE,aE=Du(["Block","CommentBlock","MultiLine"]),xu=aE,oE=Du(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),uE=oE,Eu=new WeakMap;function lE(o){return Eu.has(o)||Eu.set(o,xu(o)&&o.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(o.value)),Eu.get(o)}var pE=lE;function cE(o){if(!xu(o))return!1;let n=`*${o.value}*`.split(`
|
|
182
|
+
`);return n.length>1&&n.every(l=>l.trimStart()[0]==="*")}var Au=new WeakMap;function hE(o){return Au.has(o)||Au.set(o,cE(o)),Au.get(o)}var jh=hE;function dE(o){if(o.length<2)return;let n;for(let l=o.length-1;l>=0;l--){let c=o[l];if(n&&lr(c)===Fr(n)&&jh(c)&&jh(n)&&(o.splice(l+1,1),c.value+="*//*"+n.value,c.range=[Fr(c),lr(n)]),!uE(c)&&!xu(c))throw new TypeError(`Unknown comment type: "${c.type}".`);n=c}}var fE=dE;function mE(o){return o!==null&&typeof o=="object"}var yE=mE,tn=null;function rn(o){if(tn!==null&&typeof tn.property){let n=tn;return tn=rn.prototype=null,n}return tn=rn.prototype=o??Object.create(null),new rn}var gE=10;for(let o=0;o<=gE;o++)rn();function DE(o){return rn(o)}function xE(o,n="type"){DE(o);function l(c){let y=c[n],C=o[y];if(!Array.isArray(C))throw Object.assign(new Error(`Missing visitor keys for '${y}'.`),{node:c});return C}return l}var EE=xE,N=[["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"]],AE={AccessorProperty:N[0],AnyTypeAnnotation:N[1],ArgumentPlaceholder:N[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:N[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:N[3],AsExpression:N[4],AssignmentExpression:N[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:N[6],BigIntLiteral:N[1],BigIntLiteralTypeAnnotation:N[1],BigIntTypeAnnotation:N[1],BinaryExpression:N[5],BindExpression:["object","callee"],BlockStatement:N[7],BooleanLiteral:N[1],BooleanLiteralTypeAnnotation:N[1],BooleanTypeAnnotation:N[1],BreakStatement:N[8],CallExpression:N[9],CatchClause:["param","body"],ChainExpression:N[3],ClassAccessorProperty:N[0],ClassBody:N[10],ClassDeclaration:N[11],ClassExpression:N[11],ClassImplements:N[12],ClassMethod:N[13],ClassPrivateMethod:N[13],ClassPrivateProperty:N[14],ClassProperty:N[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:N[15],ConditionalExpression:N[16],ConditionalTypeAnnotation:N[17],ContinueStatement:N[8],DebuggerStatement:N[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:N[18],DeclareEnum:N[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:N[20],DeclareFunction:["id","predicate"],DeclareHook:N[21],DeclareInterface:N[22],DeclareModule:N[19],DeclareModuleExports:N[23],DeclareNamespace:N[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:N[24],DeclareVariable:N[21],Decorator:N[3],Directive:N[18],DirectiveLiteral:N[1],DoExpression:N[10],DoWhileStatement:N[25],EmptyStatement:N[1],EmptyTypeAnnotation:N[1],EnumBigIntBody:N[26],EnumBigIntMember:N[27],EnumBooleanBody:N[26],EnumBooleanMember:N[27],EnumDeclaration:N[19],EnumDefaultedMember:N[21],EnumNumberBody:N[26],EnumNumberMember:N[27],EnumStringBody:N[26],EnumStringMember:N[27],EnumSymbolBody:N[26],ExistsTypeAnnotation:N[1],ExperimentalRestProperty:N[6],ExperimentalSpreadProperty:N[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:N[28],ExportNamedDeclaration:N[20],ExportNamespaceSpecifier:N[28],ExportSpecifier:["local","exported"],ExpressionStatement:N[3],File:["program"],ForInStatement:N[29],ForOfStatement:N[29],ForStatement:["init","test","update","body"],FunctionDeclaration:N[30],FunctionExpression:N[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:N[15],GenericTypeAnnotation:N[12],HookDeclaration:N[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:N[16],ImportAttribute:N[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:N[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:N[33],ImportSpecifier:["imported","local"],IndexedAccessType:N[34],InferredPredicate:N[1],InferTypeAnnotation:N[35],InterfaceDeclaration:N[22],InterfaceExtends:N[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:N[1],IntersectionTypeAnnotation:N[36],JsExpressionRoot:N[37],JsonRoot:N[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:N[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:N[1],JSXExpressionContainer:N[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:N[1],JSXMemberExpression:N[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:N[1],JSXSpreadAttribute:N[6],JSXSpreadChild:N[3],JSXText:N[1],KeyofTypeAnnotation:N[6],LabeledStatement:["label","body"],Literal:N[1],LogicalExpression:N[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:N[21],MatchExpression:N[39],MatchExpressionCase:N[40],MatchIdentifierPattern:N[21],MatchLiteralPattern:N[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:N[6],MatchStatement:N[39],MatchStatementCase:N[40],MatchUnaryPattern:N[6],MatchWildcardPattern:N[1],MemberExpression:N[38],MetaProperty:["meta","property"],MethodDefinition:N[42],MixedTypeAnnotation:N[1],ModuleExpression:N[10],NeverTypeAnnotation:N[1],NewExpression:N[9],NGChainedExpression:N[43],NGEmptyExpression:N[1],NGMicrosyntax:N[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:N[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:N[32],NGPipeExpression:["left","right","arguments"],NGRoot:N[37],NullableTypeAnnotation:N[23],NullLiteral:N[1],NullLiteralTypeAnnotation:N[1],NumberLiteralTypeAnnotation:N[1],NumberTypeAnnotation:N[1],NumericLiteral:N[1],ObjectExpression:["properties"],ObjectMethod:N[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:N[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:N[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:N[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:N[9],OptionalIndexedAccessType:N[34],OptionalMemberExpression:N[38],ParenthesizedExpression:N[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:N[1],PipelineTopicExpression:N[3],Placeholder:N[1],PrivateIdentifier:N[1],PrivateName:N[21],Program:N[7],Property:N[32],PropertyDefinition:N[14],QualifiedTypeIdentifier:N[44],QualifiedTypeofIdentifier:N[44],RegExpLiteral:N[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:N[6],SatisfiesExpression:N[4],SequenceExpression:N[43],SpreadElement:N[6],StaticBlock:N[10],StringLiteral:N[1],StringLiteralTypeAnnotation:N[1],StringTypeAnnotation:N[1],Super:N[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:N[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:N[1],TemplateLiteral:["quasis","expressions"],ThisExpression:N[1],ThisTypeAnnotation:N[1],ThrowStatement:N[6],TopicReference:N[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:N[45],TSAbstractKeyword:N[1],TSAbstractMethodDefinition:N[32],TSAbstractPropertyDefinition:N[45],TSAnyKeyword:N[1],TSArrayType:N[2],TSAsExpression:N[4],TSAsyncKeyword:N[1],TSBigIntKeyword:N[1],TSBooleanKeyword:N[1],TSCallSignatureDeclaration:N[46],TSClassImplements:N[47],TSConditionalType:N[17],TSConstructorType:N[46],TSConstructSignatureDeclaration:N[46],TSDeclareFunction:N[31],TSDeclareKeyword:N[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:N[26],TSEnumDeclaration:N[19],TSEnumMember:["id","initializer"],TSExportAssignment:N[3],TSExportKeyword:N[1],TSExternalModuleReference:N[3],TSFunctionType:N[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:N[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:N[35],TSInstantiationExpression:N[47],TSInterfaceBody:N[10],TSInterfaceDeclaration:N[22],TSInterfaceHeritage:N[47],TSIntersectionType:N[36],TSIntrinsicKeyword:N[1],TSJSDocAllType:N[1],TSJSDocNonNullableType:N[23],TSJSDocNullableType:N[23],TSJSDocUnknownType:N[1],TSLiteralType:N[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:N[10],TSModuleDeclaration:N[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:N[21],TSNeverKeyword:N[1],TSNonNullExpression:N[3],TSNullKeyword:N[1],TSNumberKeyword:N[1],TSObjectKeyword:N[1],TSOptionalType:N[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:N[23],TSPrivateKeyword:N[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:N[1],TSPublicKeyword:N[1],TSQualifiedName:N[5],TSReadonlyKeyword:N[1],TSRestType:N[23],TSSatisfiesExpression:N[4],TSStaticKeyword:N[1],TSStringKeyword:N[1],TSSymbolKeyword:N[1],TSTemplateLiteralType:["quasis","types"],TSThisType:N[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:N[23],TSTypeAssertion:N[4],TSTypeLiteral:N[26],TSTypeOperator:N[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:N[48],TSTypeParameterInstantiation:N[48],TSTypePredicate:N[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:N[1],TSUnionType:N[36],TSUnknownKeyword:N[1],TSVoidKeyword:N[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:N[24],TypeAnnotation:N[23],TypeCastExpression:N[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:N[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:N[48],TypeParameterInstantiation:N[48],TypePredicate:N[49],UnaryExpression:N[6],UndefinedTypeAnnotation:N[1],UnionTypeAnnotation:N[36],UnknownTypeAnnotation:N[1],UpdateExpression:N[6],V8IntrinsicIdentifier:N[1],VariableDeclaration:["declarations"],VariableDeclarator:N[27],Variance:N[1],VoidPattern:N[1],VoidTypeAnnotation:N[1],WhileStatement:N[25],WithStatement:["object","body"],YieldExpression:N[6]},CE=EE(AE),TE=CE;function va(o,n){if(!yE(o))return o;if(Array.isArray(o)){for(let c=0;c<o.length;c++)o[c]=va(o[c],n);return o}if(n.onEnter){let c=n.onEnter(o)??o;if(c!==o)return va(c,n);o=c}let l=TE(o);for(let c=0;c<l.length;c++)o[l[c]]=va(o[l[c]],n);return n.onLeave&&(o=n.onLeave(o)||o),o}var bE=va;Du(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function SE(o,n){let{parser:l,text:c}=n,{comments:y}=o,C=l==="oxc"&&n.oxcAstType==="ts";fE(y);let P=o.type==="File"?o.program:o;P.interpreter&&(y.unshift(P.interpreter),delete P.interpreter),C&&o.hashbang&&(y.unshift(o.hashbang),delete o.hashbang),o.type==="Program"&&(o.range=[0,c.length]);let w;return o=bE(o,{onEnter(B){switch(B.type){case"ParenthesizedExpression":{let{expression:I}=B,X=Fr(B);if(I.type==="TypeCastExpression")return I.range=[X,lr(B)],I;let Q=!1;if(!C){if(!w){w=[];for(let Ce of y)pE(Ce)&&w.push(lr(Ce))}let ye=tE(0,w,Ce=>Ce<=X);Q=ye&&c.slice(ye,X).trim().length===0}return Q?void 0:(I.extra={...I.extra,parenthesized:!0},I)}case"TemplateLiteral":if(B.expressions.length!==B.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(l==="flow"||l==="hermes"||l==="espree"||l==="typescript"||C){let I=Fr(B)+1,X=lr(B)-(B.tail?1:2);B.range=[I,X]}break;case"VariableDeclaration":{let I=iE(0,B.declarations,-1);I?.init&&c[lr(I)]!==";"&&(B.range=[Fr(B),lr(I)]);break}case"TSParenthesizedType":return B.typeAnnotation;case"TopicReference":o.extra={...o.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(B.types.length===1)return B.types[0];break;case"ImportExpression":l==="hermes"&&B.attributes&&!B.options&&(B.options=B.attributes);break}},onLeave(B){switch(B.type){case"LogicalExpression":if(Rh(B))return Cu(B);break;case"TSImportType":!B.source&&B.argument.type==="TSLiteralType"&&(B.source=B.argument.literal,delete B.argument);break}}}),o}function Rh(o){return o.type==="LogicalExpression"&&o.right.type==="LogicalExpression"&&o.operator===o.right.operator}function Cu(o){return Rh(o)?Cu({type:"LogicalExpression",operator:o.operator,left:Cu({type:"LogicalExpression",operator:o.operator,left:o.left,right:o.right.left,range:[Fr(o.left),lr(o.right.left)]}),right:o.right.right,range:[Fr(o),lr(o)]}):o}var PE=SE;function vE(o,n){let l=new SyntaxError(o+" ("+n.loc.start.line+":"+n.loc.start.column+")");return Object.assign(l,n)}var Uh=vE,qh="Unexpected parseExpression() input: ";function wE(o){let{message:n,loc:l,reasonCode:c}=o;if(!l)return o;let{line:y,column:C}=l,P=o;(c==="MissingPlugin"||c==="MissingOneOfPlugins")&&(n="Unexpected token.",P=void 0);let w=` (${y}:${C})`;return n.endsWith(w)&&(n=n.slice(0,-w.length)),n.startsWith(qh)&&(n=n.slice(qh.length)),Uh(n,{loc:{start:{line:y,column:C+1}},cause:P})}var Vh=wE,FE=String.prototype.replaceAll??function(o,n){return o.global?this.replace(o,n):this.split(o).join(n)},kE=gu("replaceAll",function(){if(typeof this=="string")return FE}),wa=kE,IE=/\*\/$/,NE=/^\/\*\*?/,BE=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,LE=/(^|\s+)\/\/([^\n\r]*)/g,zh=/^(\r?\n)+/,OE=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Hh=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,_E=/(\r?\n|^) *\* ?/g,ME=[];function $E(o){let n=o.match(BE);return n?n[0].trimStart():""}function jE(o){o=wa(0,o.replace(NE,"").replace(IE,""),_E,"$1");let n="";for(;n!==o;)n=o,o=wa(0,o,OE,`
|
|
183
|
+
$1 $2
|
|
184
|
+
`);o=o.replace(zh,"").trimEnd();let l=Object.create(null),c=wa(0,o,Hh,"").replace(zh,"").trimEnd(),y;for(;y=Hh.exec(o);){let C=wa(0,y[2],LE,"");if(typeof l[y[1]]=="string"||Array.isArray(l[y[1]])){let P=l[y[1]];l[y[1]]=[...ME,...Array.isArray(P)?P:[P],C]}else l[y[1]]=C}return{comments:c,pragmas:l}}var RE=["noformat","noprettier"],UE=["format","prettier"];function Wh(o){let n=$h(o);n&&(o=o.slice(n.length+1));let l=$E(o),{pragmas:c,comments:y}=jE(l);return{shebang:n,text:o,pragmas:c,comments:y}}function qE(o){let{pragmas:n}=Wh(o);return UE.some(l=>Object.prototype.hasOwnProperty.call(n,l))}function VE(o){let{pragmas:n}=Wh(o);return RE.some(l=>Object.prototype.hasOwnProperty.call(n,l))}function zE(o){return o=typeof o=="function"?{parse:o}:o,{astFormat:"estree",hasPragma:qE,hasIgnorePragma:VE,locStart:Fr,locEnd:lr,...o}}var sn=zE,Tu="module",Jh="commonjs";function HE(o){if(typeof o=="string"){if(o=o.toLowerCase(),/\.(?:mjs|mts)$/iu.test(o))return Tu;if(/\.(?:cjs|cts)$/iu.test(o))return Jh}}function WE(o,n){let{type:l="JsExpressionRoot",rootMarker:c,text:y}=n,{tokens:C,comments:P}=o;return delete o.tokens,delete o.comments,{tokens:C,comments:P,type:l,node:o,range:[0,y.length],rootMarker:c}}var Xh=WE,ui=o=>sn(YE(o)),JE={sourceType:Tu,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},Kh="v8intrinsic",Gh=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],kr=(o,n=JE)=>({...n,plugins:[...n.plugins,...o]}),XE=/@(?:no)?flow\b/u;function KE(o,n){if(n?.endsWith(".js.flow"))return!0;let l=$h(o);l&&(o=o.slice(l.length));let c=G2(o,0);return c!==!1&&(o=o.slice(0,c)),XE.test(o)}function GE(o,n,l){let c=o(n,l),y=c.errors.find(C=>!QE.has(C.reasonCode));if(y)throw y;return c}function YE({isExpression:o=!1,optionsCombinations:n}){return(l,c={})=>{let{filepath:y}=c;if(typeof y!="string"&&(y=void 0),(c.parser==="babel"||c.parser==="__babel_estree")&&KE(l,y))return c.parser="babel-flow",rd.parse(l,c);let C=n,P=c.__babelSourceType??HE(y);P&&P!==Tu&&(C=C.map(X=>({...X,sourceType:P,...P===Jh?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let w=/%[A-Z]/u.test(l);l.includes("|>")?C=(w?[...Gh,Kh]:Gh).flatMap(X=>C.map(Q=>kr([X],Q))):w&&(C=C.map(X=>kr([Kh],X)));let B=o?Lh:Bh,I;try{I=Y2(C.map(X=>()=>GE(B,l,X)))}catch({errors:[X]}){throw Vh(X)}return o&&(I=Xh(I,{text:l,rootMarker:c.rootMarker})),PE(I,{text:l})}}var QE=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"]),Yh=[kr(["jsx"])],Qh=ui({optionsCombinations:Yh}),Zh=ui({optionsCombinations:[kr(["jsx","typescript"]),kr(["typescript"])]}),ed=ui({isExpression:!0,optionsCombinations:[kr(["jsx"])]}),td=ui({isExpression:!0,optionsCombinations:[kr(["typescript"])]}),rd=ui({optionsCombinations:[kr(["jsx",["flow",{all:!0}],"flowComments"])]}),ZE=ui({optionsCombinations:Yh.map(o=>kr(["estree"],o))}),sd={};u(sd,{json:()=>rA,"json-stringify":()=>nA,json5:()=>sA,jsonc:()=>iA});function eA(o){return Array.isArray(o)&&o.length>0}var id=eA,nd={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function tA(o){let n=Bh(o,nd),{program:l}=n;if(l.body.length===0&&l.directives.length===0&&!l.interpreter)return n}function Fa(o,n={}){let{allowComments:l=!0,allowEmpty:c=!1}=n,y;try{y=Lh(o,nd)}catch(C){if(c&&C.code==="BABEL_PARSER_SYNTAX_ERROR"&&C.reasonCode==="ParseExpressionEmptyInput")try{y=tA(o)}catch{}if(!y)throw Vh(C)}if(!l&&id(y.comments))throw es(y.comments[0],"Comment");return y=Xh(y,{type:"JsonRoot",text:o}),y.node.type==="File"?delete y.node:li(y.node),y}function es(o,n){let[l,c]=[o.loc.start,o.loc.end].map(({line:y,column:C})=>({line:y,column:C+1}));return Uh(`${n} is not allowed in JSON.`,{loc:{start:l,end:c}})}function li(o){switch(o.type){case"ArrayExpression":for(let n of o.elements)n!==null&&li(n);return;case"ObjectExpression":for(let n of o.properties)li(n);return;case"ObjectProperty":if(o.computed)throw es(o.key,"Computed key");if(o.shorthand)throw es(o.key,"Shorthand property");o.key.type!=="Identifier"&&li(o.key),li(o.value);return;case"UnaryExpression":{let{operator:n,argument:l}=o;if(n!=="+"&&n!=="-")throw es(o,`Operator '${o.operator}'`);if(l.type==="NumericLiteral"||l.type==="Identifier"&&(l.name==="Infinity"||l.name==="NaN"))return;throw es(l,`Operator '${n}' before '${l.type}'`)}case"Identifier":if(o.name!=="Infinity"&&o.name!=="NaN"&&o.name!=="undefined")throw es(o,`Identifier '${o.name}'`);return;case"TemplateLiteral":if(id(o.expressions))throw es(o.expressions[0],"'TemplateLiteral' with expression");for(let n of o.quasis)li(n);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw es(o,`'${o.type}'`)}}var rA=sn({parse:o=>Fa(o),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),sA=sn(o=>Fa(o)),iA=sn(o=>Fa(o,{allowEmpty:!0})),nA=sn({parse:o=>Fa(o,{allowComments:!1}),astFormat:"estree-json"}),aA={...f,...sd};return h(m)})})(cl)),cl.exports}var b0=k7();const I7=oA(b0),RM=uA({__proto__:null,default:I7},[b0]);export{RM as E,Ay as J,TM as _,wM as d,jM as g,$M as h};
|