comp-hub 0.28.2 → 0.28.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/README.md +132 -132
  2. package/bin/cli.js +54 -54
  3. package/bin/lib/commands.js +173 -173
  4. package/bin/lib/constants.js +22 -22
  5. package/bin/lib/http.js +62 -62
  6. package/bin/lib/startup.js +183 -183
  7. package/bin/lib/utils.js +112 -112
  8. package/dist/index.js +17 -17
  9. package/dist/website/container/assets/index-CVxgDysj.js +14 -0
  10. package/dist/website/container/assets/index-h6S5dyy4.css +1 -0
  11. package/dist/website/container/index.html +32 -32
  12. package/dist/website/container/js/vue2-sfc-loader.js +260 -260
  13. package/dist/website/container/js/vue3-sfc-loader.js +289 -289
  14. package/dist/website/item/assets/index-CGgDhzaN.js +39 -0
  15. package/dist/website/item/assets/index-lq3uP4DP.css +1 -0
  16. package/dist/website/item/index.html +30 -30
  17. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js +1 -0
  18. package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js} +1 -1
  19. package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-CW16Y3Jx.js → BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js} +1 -1
  20. package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-Bvp_ZzUC.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-gAGMSPxq.js} +1 -1
  21. package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js} +1 -1
  22. package/dist/website/main/assets/{LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js → LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js} +1 -1
  23. package/dist/website/main/assets/{PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js → PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js} +1 -1
  24. package/dist/website/main/assets/{cloud-upload-BRjLuSi4.js → cloud-upload-Cdco6849.js} +1 -1
  25. package/dist/website/main/assets/{core-B1GcTOER.js → core-CcVTMiBP.js} +1 -1
  26. package/dist/website/main/assets/{el-table-column-8qfe8CVK.js → el-table-column-CGzXlVpD.js} +1 -1
  27. package/dist/website/main/assets/{home-rounded-8qNxvN2I.js → home-rounded-BhKYWFxg.js} +1 -1
  28. package/dist/website/main/assets/{index-BbWYQKfr.css → index-B-RD5UzD.css} +1 -1
  29. package/dist/website/main/assets/index-BGAeKS26.js +2 -0
  30. package/dist/website/main/assets/index-BUoUeU3q.js +1 -0
  31. package/dist/website/main/assets/index-BXRWapP9.js +1 -0
  32. package/dist/website/main/assets/index-Bb4dzB_t.js +1 -0
  33. package/dist/website/main/assets/index-BbVoROfE.js +1 -0
  34. package/dist/website/main/assets/index-BjMNHNZQ.js +1 -0
  35. package/dist/website/main/assets/{index-0Y9kW7YJ.js → index-BoIy-5_p.js} +1 -1
  36. package/dist/website/main/assets/index-C1KlLhF1.js +1 -0
  37. package/dist/website/main/assets/index-CEizeGti.js +1 -0
  38. package/dist/website/main/assets/index-CKuqpXAR.js +1 -0
  39. package/dist/website/main/assets/{index-DoTR7Juh.css → index-CNqahi2L.css} +1 -1
  40. package/dist/website/main/assets/index-CP6sOfKF.css +1 -0
  41. package/dist/website/main/assets/index-Cacmn-le.js +1 -0
  42. package/dist/website/main/assets/index-Car8xTN1.js +1 -0
  43. package/dist/website/main/assets/{index-BbT8J87U.js → index-Cd1GqG9-.js} +14 -14
  44. package/dist/website/main/assets/index-Cdv-VxRL.js +2 -0
  45. package/dist/website/main/assets/{index-DxyEzkir.css → index-Cl0SK7oa.css} +1 -1
  46. package/dist/website/main/assets/index-CmSN0r9I.css +1 -0
  47. package/dist/website/main/assets/{index-DAzjyaU7.js → index-D26LViqE.js} +1 -1
  48. package/dist/website/main/assets/index-D4vHIupw.js +1 -0
  49. package/dist/website/main/assets/index-D62zqHYv.js +1 -0
  50. package/dist/website/main/assets/{index-D14ffQA8.js → index-DGh9vJu4.js} +1 -1
  51. package/dist/website/main/assets/index-DJ4AvgpT.css +1 -0
  52. package/dist/website/main/assets/{index-DZjtRMOp.js → index-DKb_LuTB.js} +2 -2
  53. package/dist/website/main/assets/index-DNWHN_5F.js +1 -0
  54. package/dist/website/main/assets/index-D_mLoa5V.js +1 -0
  55. package/dist/website/main/assets/{index-CYFm50TZ.js → index-DcbQ_ahf.js} +1 -1
  56. package/dist/website/main/assets/index-Dp1XrCJD.js +1 -0
  57. package/dist/website/main/assets/index-DroKXXhR.js +1 -0
  58. package/dist/website/main/assets/index-JcGCRZej.js +1 -0
  59. package/dist/website/main/assets/{index-B0VzfFN6.js → index-RTrUAzmO.js} +1 -1
  60. package/dist/website/main/assets/index-VFwGpUE-.css +1 -0
  61. package/dist/website/main/assets/{index-BrvU6RCl.js → index-WPdppQti.js} +1 -1
  62. package/dist/website/main/assets/index-XEEaWsyW.js +1 -0
  63. package/dist/website/main/assets/{index-D0mMVLUA.js → index-eyM0Chsl.js} +1 -1
  64. package/dist/website/main/assets/index-gswaBdwW.js +4 -0
  65. package/dist/website/main/assets/index-tCnrZXQC.js +1 -0
  66. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-0kHDvgX-.js +2 -0
  67. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CK2dnh4X.js +1 -0
  68. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BNtjpWNo.js → index.vue_vue_type_script_setup_true_lang-CVJdloX3.js} +1 -1
  69. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-DX9EV5b8.js → index.vue_vue_type_script_setup_true_lang-CgaIiyg6.js} +1 -1
  70. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BcOOhzBa.js → index.vue_vue_type_script_setup_true_lang-DhkIAGmf.js} +1 -1
  71. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-ZQHD5QfX.js → index.vue_vue_type_script_setup_true_lang-Q7u6DEB4.js} +1 -1
  72. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-_M-s3_Ie.js +1 -0
  73. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-CDQojDH9.js → index.vue_vue_type_style_index_0_lang-CIN0y80j.js} +1 -1
  74. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-BrQNRrgu.js → index.vue_vue_type_style_index_0_lang-DTKsCZO_.js} +1 -1
  75. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-Dao6jw6s.js → index.vue_vue_type_style_index_0_lang-iFwx3NZQ.js} +1 -1
  76. package/dist/website/main/assets/{kid-star-Cr1NlTdT.js → kid-star-DD-9HSxX.js} +1 -1
  77. package/dist/website/main/assets/{md5-DzJRYP5-.js → md5-ohq5q_Pj.js} +1 -1
  78. package/dist/website/main/assets/{settings-BFJXTJ9K.js → settings-f8ZwrSyv.js} +1 -1
  79. package/dist/website/main/assets/{supervised-user-circle-Bnx5icEm.js → supervised-user-circle-C6l0wkza.js} +1 -1
  80. package/dist/website/main/assets/{sync-saved-locally-rounded-DtyOT0dw.js → sync-saved-locally-rounded-Cgz-NvDy.js} +1 -1
  81. package/dist/website/main/assets/{terminal-D72IJB2N.js → terminal-DIdElzFh.js} +1 -1
  82. package/dist/website/main/assets/{useCacheOssStore-DApHt9lQ.js → useCacheOssStore-OAoLDVbw.js} +1 -1
  83. package/dist/website/main/assets/useCompEditStore-CA87jjE-.js +368 -0
  84. package/dist/website/main/assets/useCompEditStore-CiX1ghqX.css +1 -0
  85. package/dist/website/main/assets/{useCompMetaLocalStore-eE-CBcE9.js → useCompMetaLocalStore-BKTMp_k8.js} +1 -1
  86. package/dist/website/main/assets/{useKeyword-BLg7A4PR.js → useKeyword-CmJvOYMB.js} +1 -1
  87. package/dist/website/main/assets/{useMessage-Cx6Ix45S.js → useMessage-DRWIT9X-.js} +1 -1
  88. package/dist/website/main/assets/{useTeamHeaders-Cc060CP0.js → useTeamHeaders-DxHN7-t0.js} +1 -1
  89. package/dist/website/main/assets/useVscodeOpen-PzIPfNxl.js +1 -0
  90. package/dist/website/main/assets/vendor-core-BKehvho7.js +3 -0
  91. package/dist/website/main/assets/{vendor-ui-DXwyveTF.js → vendor-ui-CGT0cG1n.js} +2 -2
  92. package/dist/website/main/index.html +6 -5
  93. package/package.json +45 -45
  94. package/dist/website/container/assets/index-7l-rYyHX.css +0 -1
  95. package/dist/website/container/assets/index-QLp4vG1I.js +0 -14
  96. package/dist/website/item/assets/index-Dbdwi_To.js +0 -40
  97. package/dist/website/item/assets/index-Dt7E5e5b.css +0 -1
  98. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-C2LcEFL4.js +0 -1
  99. package/dist/website/main/assets/index-BbWodQCE.js +0 -1
  100. package/dist/website/main/assets/index-BjHkHge5.js +0 -1
  101. package/dist/website/main/assets/index-BmKipP5M.js +0 -1
  102. package/dist/website/main/assets/index-BtOXjKjQ.js +0 -2
  103. package/dist/website/main/assets/index-C0K8T0Xx.js +0 -1
  104. package/dist/website/main/assets/index-C1sEhRir.js +0 -1
  105. package/dist/website/main/assets/index-CDnNjG3p.css +0 -1
  106. package/dist/website/main/assets/index-CIC11BH9.js +0 -2
  107. package/dist/website/main/assets/index-CIsQpojO.js +0 -1
  108. package/dist/website/main/assets/index-CduGhjwk.js +0 -1
  109. package/dist/website/main/assets/index-ColU6pai.js +0 -1
  110. package/dist/website/main/assets/index-Cr00Cnja.js +0 -1
  111. package/dist/website/main/assets/index-CzTcYkCn.css +0 -1
  112. package/dist/website/main/assets/index-D-uwf4yo.css +0 -1
  113. package/dist/website/main/assets/index-DF7kFkvq.js +0 -1
  114. package/dist/website/main/assets/index-DFTKmQf7.js +0 -4
  115. package/dist/website/main/assets/index-DIAvnYXs.js +0 -1
  116. package/dist/website/main/assets/index-DLG3xPU-.js +0 -1
  117. package/dist/website/main/assets/index-DMimQ8qZ.js +0 -1
  118. package/dist/website/main/assets/index-DSgvaoRk.js +0 -1
  119. package/dist/website/main/assets/index-DbhO-url.js +0 -1
  120. package/dist/website/main/assets/index-DqvpfDy3.js +0 -1
  121. package/dist/website/main/assets/index-FFTkVbVX.css +0 -1
  122. package/dist/website/main/assets/index-gm-0wl9c.js +0 -1
  123. package/dist/website/main/assets/index-tfdENYSZ.js +0 -1
  124. package/dist/website/main/assets/index-wQUKmtT3.js +0 -1
  125. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Bin3s9j1.js +0 -1
  126. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CVSKP8Ny.js +0 -1
  127. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-D96-vCRS.js +0 -2
  128. package/dist/website/main/assets/useCompEditStore-DWHXDEWk.js +0 -307
  129. package/dist/website/main/assets/useCompEditStore-DqsRNPtJ.css +0 -1
  130. package/dist/website/main/assets/useVscodeOpen-DCcaXYnx.js +0 -1
  131. package/dist/website/main/assets/vendor-core-CzvSW5ae.js +0 -3
@@ -0,0 +1,4 @@
1
+ import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-CGT0cG1n.js";import{y as ce,M as me,t as H,p as J,J as Le,m as Nt,j as St}from"./index-Cd1GqG9-.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BKehvho7.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{m as ye}from"./md5-ohq5q_Pj.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-CVJdloX3.js";import"./useCacheOssStore-OAoLDVbw.js";const kt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],We=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
+ `).replace(/[\r\f]/g,`
3
+ `):e}let pe=null,Ut;function It(){return pe===null&&(pe=new Intl.Segmenter(Ut,{granularity:"word"})),pe}const zt=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function Re(e){return zt.test(e)}function Te(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Z(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Te(x))return!0;t++;continue}}if(Te(n))return!0}}return!1}function $t(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const jt=new Set([" "," ","⁠","\uFEFF"]);function Gt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&jt.has(t)}function Kt(e){return!$t(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ht=new Set([":",".","،","؛"]),Jt=new Set(["၏"]),qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Qt(e){if(ke(e))return!0;let t=!1;for(const n of e){if(ee.has(n)){t=!0;continue}if(!(t&&fe.test(n)))return!1}return t}function Yt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Xt(e){if(ke(e))return!0;for(const t of e)if(!de.has(t)&&!Oe.has(t)&&!fe.test(t))return!1;return e.length>0}function ke(e){let t=!1;for(const n of e)if(!(n==="\\"||fe.test(n))){if(de.has(n)||ee.has(n)||Oe.has(n)){t=!0;continue}return!1}return t}function et(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function Zt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(fe.test(r)){n--;continue}if(de.has(r)||Oe.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function e0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Ue(e,t){return e&&t!==null&&Ht.has(t)}function t0(e){const t=Ne(e);return t!==null&&Jt.has(t)}function n0(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function Me(e){let t=e.length;for(;t>0;){const n=et(e,t),r=e.slice(n,t);if(qt.has(r))return!0;if(!ee.has(r))return!1;t=n}return!1}function s0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
4
+ `)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const x0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function G(e){return e.length===1?e[0]:e.join("")}function r0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),G(n)}function i0(e,t,n,r){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=s0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),x}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const l0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function o0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:l0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function a0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function u0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!o0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!ge(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=G(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function c0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!a0(i))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],l=e.starts[a];let o=a;for(;o<e.len&&!ge(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(G(u)),n.push(!0),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}const F0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,ze=/[,:;]+$/;function tt(e){for(const t of e)if(Ze.test(t))return!0;return!1}function ue(e){if(e.length===0)return!1;for(const t of e)if(!(Ze.test(t)||F0.has(t)))return!1;return!0}function f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(i)&&tt(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ue(e.texts[l]);)u.push(e.texts[l]),l++;t.push(G(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(i)){const l=[i];let o=ze.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ie.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=ze.test(c),F++}t.push(G(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=G(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(G(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const i=Zt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function $e(e,t,n){const r=It();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],E=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const p of i0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Pe(s,o,F,N)],o[N]=null),i[N].push(p.text),a[N]=a[N]||p.isWordLike,c[N]=c[N]||D,E[N]=E[N]||_,m[N]=R,S[N]=V,d[N]=Ue(E[N],y)};const g=p.kind==="text",C=e0(p.text,p.isWordLike,p.kind),D=Z(p.text),_=Re(p.text),y=Ne(p.text),R=Me(p.text),V=t0(p.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Yt(p.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&p.isWordLike&&_&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!p.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(Qt(p.text)||p.text==="-"&&a[N])?M():(s[x]=p.text,i[x]=[p.text],a[x]=p.isWordLike,u[x]=p.kind,l[x]=p.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,E[x]=_,m[x]=R,S[x]=V,d[x]=Ue(_,y),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(i[f])}for(let f=1;f<x;f++)u[f]==="text"&&!a[f]&&ke(s[f])&&u[f-1]==="text"&&!c[f-1]&&(s[f-1]+=s[f],a[f-1]=a[f-1]||a[f],s[f]="");const A=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const p=s[f];if(p.length!==0){if(u[f]==="text"&&!a[f]&&Xt(p)&&L>=0&&u[L]==="text"){const g=A[L]??[];g.push(p),A[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const p=A[f];p!=null&&(s[f]=r0(p,s[f]))}let h=0;for(let f=0;f<x;f++){const p=s[f];p.length!==0&&(h!==f&&(s[h]=p,a[h]=a[f],u[h]=u[f],l[h]=l[f]),h++)}s.length=h,a.length=h,u.length=h,l.length=h;const O=S0({len:h,texts:s,isWordLike:a,kinds:u,starts:l}),v=E0(d0(N0(f0(c0(u0(O))))));for(let f=0;f<v.len-1;f++){const p=n0(v.texts[f]);p!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!Re(v.texts[f+1])||(v.texts[f]=p.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=p.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+p.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(G(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],E=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(E==="text"){const d=Gt(c),A=Kt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=A;continue}o(),s=[c],i=m,a=S,u=d,l=A;continue}o(),t.push(c),n.push(m),r.push(E),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function h0(e,t,n="normal",r="normal"){const x=Rt(n),s=x.mode==="pre-wrap"?Pt(e):Tt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?A0($e(s,t,x)):$e(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let se=null;const je=new Map;let xe=null;const C0=96,m0=new RegExp("\\p{Emoji_Presentation}","u"),B0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Ae=null;const Ge=new Map;function we(){if(se!==null)return se;if(typeof OffscreenCanvas<"u")return se=new OffscreenCanvas(1,1).getContext("2d"),se;if(typeof document<"u")return se=document.createElement("canvas").getContext("2d"),se;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function M0(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:we().measureText(e).width,containsCJK:Z(e)},t.set(e,n)),n}function Se(){if(xe!==null)return xe;if(typeof navigator>"u")return xe={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},xe;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return xe={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},xe}function g0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function D0(e){return m0.test(e)||e.includes("️")}function L0(e){return B0.test(e)}function v0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const r=we();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return Ge.set(e,n),n}function O0(e){let t=0;const n=nt();for(const r of n.segment(e))D0(r.segment)&&t++;return t}function k0(e,t){return t.emojiCount===void 0&&(t.emojiCount=O0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-k0(e,t)*n}function w0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=nt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=Q(F,n);o.push(Y(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>C0){const o=[];let F=null,c=0;for(const E of i){const m=Q(E,n),S=Y(E,m,r);if(F===null)o.push(S);else{const d=F+E,A=Q(d,n);o.push(Y(d,A,r)-c)}F=E,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=Q(u,n),c=Y(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function b0(e,t){const n=we();n.font=e;const r=M0(e),x=g0(e),s=t?v0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function _0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function st(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function xt(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!_0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function W0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function be(e,t){return t===0?0:e+t}function R0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function T0(e,t,n,r,x){const s=t==="tab"?x+R0(e,n):e.lineEndFitAdvances[n];return be(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return be(r,x)}function Ke(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return be(r,s)}function P0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function U0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function I0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function z0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,E=0,m=0,S=0,d=-1,A=0;function L(){d=-1,A=0}function h(C=m,D=S,_=o){l++,n?.(_,c,E,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,E=0,m=C+1,S=0,o=D}function v(C,D,_){F=!0,c=C,E=D,m=C,S=D+1,o=_}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function p(C,D){const _=s[C];for(let y=D;y<_.length;y++){const R=_[y];F?o+R>u?(h(),v(C,y,R)):(o+=R,m=C,S=y+1):v(C,y,R)}F&&m===C&&S===_.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=xt(e,g),g>=r.length));){const C=r[g],D=x[g],_=st(D);if(!F){C>u&&s[g]!==null?p(g,0):O(g,C),_&&(d=g+1,A=o-C),g++;continue}if(o+C>u){if(_){f(g,C),h(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){h();continue}h(d,0,A);continue}if(C>u&&s[g]!==null){h(),p(g,0),g++;continue}h();continue}f(g,C),_&&(d=g+1,A=o-C),g++}return F&&h(),l}function $0(e,t,n){if(e.simpleLineWalkFastPath)return z0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Se(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,E=!1,m=0,S=0,d=0,A=0,L=-1,h=0,O=0,v=null;function f(){L=-1,h=0,O=0,v=null}function p(N=d,M=A,B=c){F++,n?.(B,m,S,N,M),c=0,E=!1,f()}function g(N,M){E=!0,m=N,S=0,d=N+1,A=0,c=M}function C(N,M,B){E=!0,m=N,S=M,d=N,A=M+1,c=B}function D(N,M){if(!E){g(N,M);return}c+=M,d=N+1,A=0}function _(N,M,B,w,I,z){if(!M)return;const K=Ve(e,N,B,I),ne=Ke(e,N,B,I,w);L=B+1,h=c-z+K,O=c-z+ne,v=N}function y(N,M){const B=s[N];for(let w=M;w<B.length;w++){const I=B[w];if(!E)C(N,w,I);else{const z=P0(e,!0,I),K=c+z;U0(e,K)>o?(p(),C(N,w,I)):(c=K,d=N,A=w+1)}}E&&d===N&&A===B.length&&(d=N+1,A=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=I0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,A=B,f(),B===M.length?(d=N+1,A=0,!0):(p(N,B,w+i),y(N,B),!0))}function V(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){V(M);continue}E=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,A=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!E&&(B=xt(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],I=st(w),z=W0(e,E,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],ne=z+K,Ee=T0(e,w,B,z,K);if(w==="soft-hyphen"){E&&(d=B+1,A=0,L=B+1,h=c+i,O=c+i,v=w),B++;continue}if(!E){Ee>o&&s[B]!==null?y(B,0):g(B,K),_(w,I,B,K,z,ne),B++;continue}if(c+Ee>o){const it=c+Ve(e,w,B,z),lt=c+Ke(e,w,B,z,K);if(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&h<=o){p(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(I&&it<=o){D(B,ne),p(B+1,0,lt),B++;continue}if(L>=0&&h<=o){if(d>L||d===L&&A>0){p();continue}const _e=L;p(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){p(),y(B,0),B++;continue}p();continue}D(B,ne),_(w,I,B,K,z,ne),B++}if(E){const w=L===M.consumedEndSegmentIndex?O:c;p(M.consumedEndSegmentIndex,0,w)}}return F}let he=null,He=new WeakMap;function j0(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function Je(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=j0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function G0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function qe(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function K0(e,t,n,r,x,s){let i="";const a=G0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=Je(u,e.segments,t);i=qe(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=Je(x,e.segments,t);i=qe(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ce=null;function H0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function J0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function q0(e,t){const n=[];let r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,E){r=[F],x=c,s=E,i=Me(F),a=de.has(F)}function o(F,c){r.push(F),s=s||c;const E=Me(F);F.length===1&&ee.has(F)?i=i||E:i=E,a=!1}for(const F of H0().segment(e)){const c=F.segment,E=Z(c);if(r.length===0){l(c,F.index,E);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&E&&i){o(c,E);continue}if(!s&&!E){o(c,E);continue}u(),l(c,F.index,E)}return u(),n}function Q0(e,t,n){return e}function Y0(e,t,n,r,x){const s=Se(),{cache:i,emojiCorrection:a}=b0(t,L0(e.normalized)),u=Y("-",Q("-",i),a)+0,o=Y(" ",Q(" ",i),a)*8;if(e.len===0)return J0();const F=[],c=[],E=[],m=[];let S=e.chunks.length<=1&&!0;const d=n?[]:null,A=[],L=[],h=n?[]:null,O=Array.from({length:e.len});function v(C,D,_,y,R,V,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(_),E.push(y),m.push(R),d?.push(V),A.push(N),h!==null&&h.push(C)}function f(C,D,_,y,R){const V=Q(C,i),N=Q0(Y(C,V,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=w0(C,V,i,a,I);v(C,N,B,w,D,_,z);return}v(C,N,B,w,D,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],R=e.starts[C];if(y==="soft-hyphen"){v(D,0,u,u,y,R,null);continue}if(y==="hard-break"){v(D,0,0,0,y,R,null);continue}if(y==="tab"){v(D,0,0,0,y,R,null);continue}const V=Q(D,i);if(y==="text"&&V.containsCJK){const M=q0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,_,!Z(w.text))}continue}f(D,y,R,_,!0)}const p=X0(e.chunks,O,F.length),g=d===null?null:_t(e.normalized,d);return h!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p,segments:h}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p}}function X0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function Z0(e,t,n,r){const x="normal",i=h0(e,Se(),r?.whiteSpace,x);return Y0(i,t,n,x,0)}function en(e,t,n){return Z0(e,t,!0,n)}function tn(e,t,n,r,x,s,i){return{text:K0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function nn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=$0(e,t,(i,a,u,l,o)=>{r.push(tn(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const sn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",rn=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=q(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=en(x.label,xn),{lines:i}=nn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,i=>(j(),le("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:At({width:n.value+"px"})},$(i.label),5),W("span",sn,$(i.value||i.defaultValue),1),i.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[ae($(i.handlerText),1)]),_:2},1032,["onClick"])):ht("",!0)]))),128))])}}});function ln(e){const n=new DOMParser().parseFromString(e,"text/xml");return{code:n.querySelector("Code")?.textContent||"",message:n.querySelector("Message")?.textContent||"",maxSize:n.querySelector("MaxSizeAllowed")?.textContent||"",proposedSize:n.querySelector("ProposedSize")?.textContent||""}}const on={class:"p-2"},an={class:"flex gap-2 flex-1"},un={class:"flex gap-2 flex-1"},cn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x={OLD:"old",NEW:"new"},s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),window?.umami?.track(J.USER_UPDATE_EMAIL_SUCCESS),r.setEmail(a.value.newEmail),m()}).catch(S=>{window?.umami?.track(J.USER_UPDATE_EMAIL_FAILED,{error:String(S)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:A}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),A()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),A()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",on,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h),api:i.value,"onUpdate:api":d[3]||(d[3]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(h=>[W("div",an,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(h=>[W("div",un,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Fn={class:"p-2"},fn={class:"flex gap-2 flex-1"},dn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=re("baseForm"),s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),window?.umami?.track(J.USER_UPDATE_PASSWORD_SUCCESS),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).catch(d=>{window?.umami?.track(J.USER_UPDATE_PASSWORD_FAILED,{error:String(d)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",Fn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),api:i.value,"onUpdate:api":d[1]||(d[1]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(h=>[W("div",fn,[b(A,{"model-value":String(h.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:F},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Nn={class:"p-2"},Sn=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=Le(),s=U(!1),i=U({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=q(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(J.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(E=>{window?.umami?.track(J.USER_UPDATE_NICKNAME_FAILED,{error:String(E)})}).finally(()=>{i.value.submitBtn.loading=!1})}function o(E){return n(`formCreate.${E}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(E,m)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px"},{default:T(()=>[W("div",Nn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),En=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,r=gt(),x=Ct(),s=mt(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const A=S[0];A.uid=at(),F.value.handleStart(A);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:rt(),onError:a},o=U(null),F=U(),c=q(()=>({...l,...me.convertKeysToCamelCase(x),...n})),E=q(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),X(Bt(Mt(k(ot),{...c.value,ref:m},E.value))))}}),{i18n:pn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function rt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?Qe(r)?n?n(r):!0:!1:Qe(r)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function hn(e,t){return fetch(e,{method:"POST",body:t})}const Cn=["src"],mn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),r=Le(),x=U([]),s=U(!1),i=re("avatarUpload"),a=U(),u=q(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=rt({custom(A){return A.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(A){a.value?.(),P.error(A.message)}async function F(A){if(A.start(),a.value=A.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(A){H.v1User.usercontrollerChangeavatar({avatar:A}).then(()=>{r.updateAvatar(A),d(),P.success(n("user.avatarModified")),window?.umami?.track(J.USER_UPDATE_AVATAR_SUCCESS)}).catch(L=>{window?.umami?.track(J.USER_UPDATE_AVATAR_FAILED,{error:String(L)})}).finally(()=>{a.value?.()})}function E(){i.value?.clearFiles()}async function m(A){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:h}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:h});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:p}=An(O.data,A.file),g=await hn(v,p);if(g.ok)c(f);else{const C=await g.text(),D=ln(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,E()}return t({open:S,close:d}),(A,L)=>{const h=oe("Icon"),O=ct,v=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=p=>s.value=p),width:"400px",onClose:E},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(En),Dt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=p=>x.value=p),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:p})=>[p?(j(),le("img",{key:0,src:p,class:"size-full"},null,8,Cn)):(j(),X(h,{key:1,icon:"material-symbols:add-2-rounded","font-size":"2rem"}))]),_:1},16,["file-list"])]),_:1},8,["label"]),b(O,null,{default:T(()=>[b(k(Xe),null,{default:T(({instance:p,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(p)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Bn=St(mn,[["__scopeId","data-v-6ea47d01"]]),Mn={class:"h-full p-[10px]"},gn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Dn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Ln={class:"flex flex-col gap-10"},vn={class:"flex items-center"},On={class:"size-[48px] flex items-center justify-center"},kn={class:"flex-1"},wn={class:"text-sm text-gray-500"},bn={class:"flex items-center"},_n={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},Jn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),r=Le(),x=q(()=>n.userInfo),s=re("emailDialog"),i=re("passwordDialog"),a=re("nicknameDialog"),u=re("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled")),window?.umami?.track(J.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=q(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?vt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Lt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const E=Ft,m=ft,S=oe("Icon"),d=De,A=dt;return j(),le("div",Mn,[W("div",gn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",Dn,[b(Ot,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[ae($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(E),b(k(rn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Ln,[W("div",vn,[W("div",On,[b(S,{icon:"material-symbols:lock"})]),W("div",kn,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",wn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",bn,[W("div",_n,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:L,loading:h})=>[b(A,{loading:h,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(cn,{ref:"emailDialog"},null,512),b(dn,{ref:"passwordDialog"},null,512),b(Sn,{ref:"nicknameDialog"},null,512),b(Bn,{ref:"avatarDialog"},null,512)])}}});export{Jn as default};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./index.vue_vue_type_style_index_0_lang-DTKsCZO_.js";import{v as o,ab as t,l as r,r as s}from"./vendor-core-BKehvho7.js";import"./vendor-xterm-DbWxaMay.js";import"./index-Cd1GqG9-.js";import"./vendor-ui-CGT0cG1n.js";const a={class:"size-full"},d=o({__name:"index",setup(n){return(_,c)=>(t(),r("div",a,[s(e)]))}});export{d as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C1KlLhF1.js","./vendor-ui-CGT0cG1n.js","./vendor-core-BKehvho7.js","./index-Cd1GqG9-.js","./index-B-RD5UzD.css"])))=>i.map(i=>d[i]);
2
+ import{v as ce,aA as b,ab as ie,j as ye,aO as Y,i as G,r as K,ax as O,ap as oe,q as Me,u as Ne,af as P,w as re,H as A,aF as ae,aM as Pe,l as Ae,$ as Re,g as M}from"./vendor-core-BKehvho7.js";import{p as q,c as y}from"./index-DcbQ_ahf.js";import{_ as Fe,z as j,q as v,u as w,J as le,t as V,p as N,V as Be,N as Ge}from"./index-Cd1GqG9-.js";import{c as k}from"./useCompMetaLocalStore-BKTMp_k8.js";import{D as ke,K as x,F as J,J as X,aD as Ve}from"./vendor-ui-CGT0cG1n.js";/* empty css */import{u as me}from"./useVscodeOpen-PzIPfNxl.js";import{_ as xe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{u as be}from"./useCacheOssStore-OAoLDVbw.js";import{u as $e}from"./useTeamHeaders-DxHN7-t0.js";import{_ as He}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import{u as Ue,c as We,b as Ye,I as m,a as ne,e as Ke}from"./useMessage-DRWIT9X-.js";const je={class:"flex justify-between items-center"},ze={class:"h-[65vh]"},qe=ce({__name:"index",setup(C,{expose:e}){const{t}=b(),n=Ne(()=>Fe(()=>import("./index-C1KlLhF1.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),{openCompPathInVscode:d}=me(),{cwd:_}=window.__GLOBAL_CONFIG__,r=P(!1),s=P(null),l=P(_);function i(){d(l.value,"./package.json")}const p=h=>{r.value=!0,s.value=h},u=()=>{r.value=!1,s.value=null},E=h=>{s.value&&s.value(h)};return e({open:p,close:u}),(h,g)=>{const R=ke;return ie(),ye(O(xe),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=D=>r.value=D),width:"50%","show-close":""},{header:Y(()=>[G("div",je,[G("span",null,[G("span",null,oe(O(t)("file.projectPath"))+":",1),K(R,{href:"javascript:void(0)",type:"primary",underline:"always",title:l.value,class:"truncate",onClick:i},{default:Y(()=>[Me(oe(l.value),1)]),_:1},8,["title"])])])]),default:Y(()=>[G("div",ze,[K(O(n),{onSelect:E})])]),_:1},8,["modelValue"])}}}),Ct=(C,e)=>re(`compListStore_${C}`,{state:()=>({scopeId:C,list:[],localList:[],loading:!1,listType:e??w.COMP_LIST_TYPE_REMOTE}),getters:{isEmpty:t=>t.list.length===0,isRemote:t=>t.listType===w.COMP_LIST_TYPE_REMOTE,isLocal:t=>t.listType===w.COMP_LIST_TYPE_LOCAL},actions:{setLocalList(t){this.$patch(n=>{n.localList=t})},setLoading(t){this.$patch(n=>{n.loading=t})},setList(t){this.$patch(n=>{n.list=t})},delCompListById(t){this.$patch(n=>{n.list=n.list.filter(d=>d._id!==t)})},updateCompListItemById(t,n){this.$patch(d=>{d.list=d.list.map(_=>{if(_._id===t){const r={..._,...n};return y(t)().setDetail(r.version,r),r}return _})})},async getListDeps(t){const n=j(),r=t.map(i=>i.dep).map(i=>q(i,n.deps)).reduce((i,p)=>[...i,...p],[]).map(i=>i.name),s=await v.v1Module.modulecontrollerPrebuild({deps:[...new Set(r)]}),{entryNameToFile:l={}}=s.data;return l},async initCompMetas(t){const n=j(),d=await v.v1Comp.compcontrollerLocalcompsbyids({compIds:t.map(s=>s._id)}),{compInfos:_=[]}=d.data,r=await this.getListDeps(t);t.forEach(s=>{const i=q(s.dep,n.deps).reduce((E,h)=>(r[h.name]&&(E[h.name]=r[h.name]),E),{}),p=y(s._id)();p.setLatestVersion(s.version),p.setDetail(s.version,s);const u=_.filter(E=>E.id===s._id);p.setLocalCompInfo(u),p.setDepEntryNameToFile(s.version,i)})},async initCompMetasLocal(t){t.forEach(n=>{k(n._id)().setDetail(n)})},async renderList(t){t.length&&(this.isRemote?await this.initCompMetas(t):await this.initCompMetasLocal(t)),this.setList(t)}}});async function se(C){const e=j();async function t(i){const{objectId:p,version:u,files:E}=i,h={objectId:p,version:u,files:E.map(D=>D.path)},g=await v.v1Comp.compcontrollerCompfilesosssignedurl(h),{signedUrls:R}=g.data;return R}async function n(i){const{dep:p}=i,u=q(p,e.deps).map(g=>g.name),E=await v.v1Module.modulecontrollerPrebuild({deps:u}),{entryNameToFile:h={}}=E.data;return h}const{version:d,_id:_}=C,r=y(_)();let s=null,l=null;r.versionToFileAccessPath[d]||(s=await t(C),r.setVersionToFileAccessPath(d,s)),r.depEntryNameToFile[d]||(l=await n(C),r.setDepEntryNameToFile(d,l))}const pe=()=>{const C=le();function e(){const t=C.isRealUserLogin();return t||C.logoutDialog(),t}return{isLogin:e}};function Je(){const{isLogin:C}=pe(),e=A(w.PROVIDE_KEY_CALLBACKS),t=A(w.PROVIDE_KEY_COMP_LIST_STORE),{t:n}=b();async function d(_){if(!C()||!t.isRemote)return;const{id:r,isCollect:s}=_,l=t.list.find(p=>p._id===r);if(!l||!s&&await x.confirm(n("comp.uncollectConfirm",{name:l.name}),n("comp.uncollect"),{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;const i=J.service({fullscreen:!0});V.v1Comp.compcontrollerCollect({compId:l._id,isCollect:s}).then(()=>{X.success(l.isCollect?n("message.success.uncollect"):n("message.success.collect")),window?.umami?.track(N.COMP_COLLECT_TOGGLE,{compId:l._id,name:l.name,action:s?"collect":"uncollect"});const p={...l,isCollect:s};s?t.updateCompListItemById(l._id,{...p,collectCount:l.collectCount+1}):(t.updateCompListItemById(l._id,{...p,collectCount:l.collectCount-1}),e.get(w.COMP_METHOD_KEY_AFTER_COMP_CANCEL_COLLECT)?.(l._id))}).finally(()=>{i.close()})}return{onCollect:d}}const Xe=(C="")=>{if(!C)throw new Error("createTeamHomeStore scopeId is required");return re(`teamHome_${C}`,{state:()=>({teamDetail:{},loading:!1,selectedRows:[],selectedRowsToLeafNodeMap:{},dataSourceCopy:[],canSaveCopy:!1}),getters:{teamName:e=>e.teamDetail.name,creator:e=>({nickname:e.teamDetail?.creatorId?.nickname||e.teamDetail?.creatorId?.account||"",avatar:e.teamDetail?.creatorId?.avatar||""}),creatorNickname:e=>e.teamDetail?.creatorNickname||"",memberCount:e=>e.teamDetail?.memberCount||0,compCount:e=>e.teamDetail?.compCount||0,totalDownloadCount:e=>e.teamDetail?.totalDownloadCount||0,isCreator:e=>e.teamDetail.isCreator,isMember:e=>e.teamDetail.isMember,isOutMember:e=>!e.teamDetail.isCreator&&!e.teamDetail.isMember,description:e=>e.teamDetail.description||"",isPublic:e=>e.teamDetail.isPublic,isApplyNeedAudit:e=>e.teamDetail.isApplyNeedAudit,isAllowCompAuthorDelete:e=>e.teamDetail.isAllowCompAuthorDelete,isShowRepeatComp:e=>e.teamDetail.isShowRepeatComp,code:e=>e.teamDetail.code||"",menuGroup:e=>e.teamDetail.menuGroup||[]},actions:{setCanSaveCopy(e){this.$patch(t=>{t.canSaveCopy=e})},setLoading(e){this.$patch(t=>{t.loading=e})},setTeamDetail(e){this.$patch(t=>{t.teamDetail=e})},setSelectedRows(e){this.$patch(t=>{t.selectedRows=e})},setDataSourceCopy(e){this.$patch(t=>{t.dataSourceCopy=e})},setSelectedRowsToLeafNodeMap(e){this.$patch(t=>{t.selectedRowsToLeafNodeMap=e})},addSelectedRowsToLeafNodeMap(e){this.$patch(t=>{t.selectedRowsToLeafNodeMap={...t.selectedRowsToLeafNodeMap,...e}})},delSelectedRowsToLeafNodeMap(e){this.$patch(t=>{const n={...t.selectedRowsToLeafNodeMap};e.forEach(d=>{delete n[d]}),t.selectedRowsToLeafNodeMap=n})},getSelectedGroupLeafNodes(e=""){return e?Be.getTreeAllChildren(this.menuGroup,e).filter(n=>n.children?.length===0).map(n=>n.id):[]}}})};function Qe(){const{isLogin:C}=pe(),e=A(w.PROVIDE_KEY_CALLBACKS),t=A(w.PROVIDE_KEY_COMP_LIST_STORE),{t:n}=b(),{headers:d,teamId:_}=$e();async function r(s){const l=J.service({fullscreen:!0});try{if(!C())return;const i=t.list.find(u=>u._id===s);if(!i){console.error("组件不存在");return}if(!i.name){console.error("组件名称不能为空");return}if(await x.confirm(n("comp.deleteConfirm",{name:i.name}),n("common.info"),{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;if(_){const u=Xe(_)();await V.v1Team.teamcontrollerRemovemyteamcomp({compIds:[s]},{headers:d}).then(()=>{t.delCompListById(s),u.setTeamDetail({...u.teamDetail,compCount:u.teamDetail.compCount-1}),e.get(w.COMP_METHOD_KEY_AFTER_COMP_DEL)?.(s)})}else await V.v1Comp.compcontrollerDeletemycomp({compId:s}).then(()=>{t.delCompListById(s),e.get(w.COMP_METHOD_KEY_AFTER_COMP_DEL)?.(s)});X.success(n("message.success.delete")),window?.umami?.track(N.COMP_DELETE,{compId:s,compName:i.name,teamId:_||void 0})}finally{l.close()}}return{onDelete:r}}function Ze(C){const e=P(),t=A(w.PROVIDE_KEY_COMP_LIST_STORE),{t:n}=b();async function d(r){if(!t.isRemote)return;const s=J.service({lock:!0,text:n("comp.downloading")});try{if(await x.confirm(n("comp.downloadPathConfirm",{path:r.path}),n("common.info"),{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;const i=t.list.find(E=>E._id===e.value?.id);if(!i)return;const p=await v.v1Comp.compcontrollerDownload({compId:e.value?.id??"",savePath:r.path,compName:i.name??"",version:e.value?.version??""}),{isRepeat:u=!1}=p.data;if(u){if(await x.confirm(n("comp.downloadCoverConfirm",{name:i.name??""}),n("common.info"),{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"){s.close();return}await v.v1Comp.compcontrollerDownload({compId:e.value?.id??"",savePath:r.path,compName:i.name??"",isCover:!0,version:e.value?.version??""})}X.success(n("message.success.download")),window?.umami?.track(N.COMP_DOWNLOAD_SUCCESS,{compId:i._id,compName:i.name,savePath:r.path,version:e.value?.version,isCover:u}),t.updateCompListItemById(i._id,{totalDownloadCount:i.totalDownloadCount+1}),await _(i._id),C?.()}catch(l){window?.umami?.track(N.COMP_DOWNLOAD_FAILED,{compId:e.value?.id,error:String(l)})}finally{s.close()}}async function _(r){const s=y(r)(),l=await v.v1Comp.compcontrollerLocalcompsbyids({compIds:[r]}),{compInfos:i=[]}=l.data,p=i.filter(u=>u.id===r);s.setLocalCompInfo(p)}return{currDownloadCompItem:e,affirmDownload:d}}const et=["src"],Tt=ce({__name:"index",props:{compType:{},iuid:{default:-1}},emits:["preview","previewLocal","update"],setup(C,{expose:e,emit:t}){const n=C,d=t,{t:_,locale:r}=b(),s=A(w.PROVIDE_KEY_COMP_LIST_STORE),l=j(),i=le(),p=Ue(!1,window.__GLOBAL_CONFIG__.subPort),u=We(!1,window.__GLOBAL_CONFIG__.subPort),E=Ve(),h=E.value,{instanceUid:g,messageListener:R,sendMessageToTargetIframe:D}=Ke(),{createIframeParams:de}=Ye(),{addListener:I}=R(),{openCompPathInVscode:ue,handlePath:fe}=me(),Q=be(),$=ae("iframe"),Z=ae("dialogVueFinder"),{onCollect:_e}=Je(),{onDelete:Ce}=Qe(),{currDownloadCompItem:Te,affirmDownload:ee}=Ze(()=>Z.value?.close()),z=P(0),te=P({}),Ee=(()=>{const o={topOrigin:window.location.origin,compType:n.compType,userId:i.userId??"",instanceUid:[g.value,n.iuid].filter(Boolean).join(",")??""},a=new URLSearchParams({params:de(o),isDark:h.toString()}).toString();return`${p}/${w.WEBSITE_PATH_CONTAINER}/${n.compType}/?${a}`})(),Ie=M(()=>z.value?{height:`${z.value+10}px`}:{});function H(o){try{const a=$.value?.contentWindow;if(a)return a[o]}catch(a){console.log("findIframeByCompId error",a.message)}return null}async function Le(o){if(!s.isLocal)return;const a=s.list.find(W=>W._id===o);if(!a)return;const c=k(o)(),{data:f}=await v.v1Comp.compcontrollerDep({compPath:a.path}),{thirdParty:T}=f;c.setDep(T);const L=T.map(W=>W.name),S=await v.v1Module.modulecontrollerPrebuild({deps:L}),{entryNameToFile:B={}}=S.data;c.setDepToFile(B)}async function he(o){const a=s.list.find(c=>c._id===o);if(a){const c=H(o);if(c&&s.isRemote){await se(a);const f=y(a._id)(),T=f.depEntryNameToFile[a.version],L=f.versionToFileAccessPath[a.version],S={item:a,depEntryNameToFile:T,versionToFileAccessPath:L};D(c,m.ITEM_INIT_SET,S,u)}}}function we(o){o.forEach(a=>{const c=H(a._id);c&&s.isRemote&&se(a).then(()=>{const f=y(a._id)(),T=f.depEntryNameToFile[a.version],L=f.versionToFileAccessPath[a.version],S={item:a,depEntryNameToFile:T,versionToFileAccessPath:L};D(c,m.ITEM_INIT_SET,S,u)})})}async function Se(o){const a=s.list.find(c=>c._id===o);if(a){const c=H(o);if(c){await Le(o);const f=k(o)(),{dep:T,depToFile:L}=f,S={item:a,dep:T,depToFile:L};D(c,m.ITEM_INIT_SET_LOCAL,S,u)}}}function U(o,a,c){const f=$.value?.contentWindow;return f?(D(f,o,a,c),!0):!1}function ve(o,a,c){const f=$.value?.contentWindow;if(!f)return;const T=f.length??0;for(let L=0;L<T;L++){const S=f[L];S&&D(S,o,a,c)}}function F(o,a,c,f){const T=f?.origin??p;I(o,()=>{const{stopWatch:L,triggerCallback:S}=ne(c,()=>{const B=f?.transform?f.transform(c.value):c.value;if(U(a,B,T)){f?.onAfterSend?.(B);return}L()});S()})}function De(o,a){if(a){const c=H(a);c&&o(c)}else o($.value?.contentWindow)}return F(m.LIST_INIT_GET,m.LIST_INIT,M(()=>s.list)),F(m.SETTING_DATA_GET,m.SETTING_DATA_SET,M(()=>l.deps)),F(m.ITEM_SITE_PATH_GET,m.ITEM_SITE_PATH_SET,M(()=>s.list),{transform:o=>o.map(a=>{const c=k(a._id)();return{compId:a._id,fullPath:fe(c.detail.fullPath,1)}})}),F(m.LOCALE_GET,m.LOCALE_SET,M(()=>r.value),{origin:u}),F(m.THEME_CHANGE_GET,m.THEME_CHANGE_SET,M(()=>E.value),{transform:o=>({isDark:o}),origin:p,onAfterSend:o=>ve(m.THEME_CHANGE_SET,o,u)}),I(m.ACTION_COLLECT,_e),I(m.ACTION_DOWNLOAD,async o=>{const{version:a}=o;Te.value=o,await x.confirm(_("comp.downloadVersionConfirm",{version:a}),_("common.info"),{confirmButtonText:_("common.confirm"),cancelButtonText:_("common.cancel"),type:"warning"}).catch(()=>{})==="confirm"&&Z.value?.open(ee)}),I(m.ACTION_PREVIEW,o=>{window?.umami?.track(N.COMP_PREVIEW,{compId:o}),d("preview",o)}),I(m.ACTION_PREVIEW_LOCAL,o=>{d("previewLocal",o)}),I(m.ACTION_UPDATE,o=>{window?.umami?.track(N.COMP_UPDATE,{compId:o}),d("update",o)}),I(m.UPDATE_IFRAME_HEIGHT,o=>{z.value=o}),I(m.ITEM_INIT_GET,o=>{he(o)}),I(m.ITEM_INIT_GET_LOCAL,o=>{Se(o)}),I(m.ACTION_DELETE,Ce),I(m.ITEM_VERSION_CHANGE,async o=>{const{compId:a,version:c}=o;window?.umami?.track(N.COMP_VERSION_CHANGE,{compId:a,version:c});const T=y(a)().detail[c];if(T){const{totalDownloadCount:tt,collectCount:ot,isCollect:at,...Oe}=T;s.updateCompListItemById(a,{...Oe,_id:a});return}const{data:L}=await V.v1Comp.compcontrollerCompdetail({compId:a,version:c}),{totalDownloadCount:S,collectCount:B,isCollect:W,...ge}=L;s.updateCompListItemById(a,{...ge,_id:a})}),I(m.ITEM_VERSION_LIST_GET,async o=>{let a=te.value[o];a||(a=(await V.v1Comp.compcontrollerVersions({compId:o})).data.rows??[],te.value[o]=a),U(m.ITEM_VERSION_LIST_SET,{compId:o,versionList:a},p)}),I(m.LOCAL_EXIST_GET,o=>{const a=y(o)(),{stopWatch:c,triggerCallback:f}=ne(M(()=>a.isLocalExist),T=>{U(m.LOCAL_EXIST_SET,{compId:T,exist:a.isLocalExist},p)||c()});f(o)}),I(m.ACTION_OPEN_VSCODE_LOCAL,o=>{const c=k(o)().detail.fullPath;ue(c,`./${w.COMP_CONFIG_FILENAME}`)}),I(m.OSS_FILE_SIGN_URL_GET,async({objectId:o})=>{let a=Q.getCacheUrl(o);a||(a=(await v.v1Oss.osscontrollerFilesignurl({objectId:o})).data.signUrl,Q.setCacheUrl(o,a)),U(m.OSS_FILE_SIGN_URL_SET,{objectId:o,signUrl:a},p)}),Pe(()=>s.list,(o,a)=>{const{modifiedItems:c}=Ge.findChangedArrayItems(o,a);we(c)},{deep:!0}),e({sendMessageToTargetIframeByCompId:De}),(o,a)=>(ie(),Ae("div",{style:Re(Ie.value),class:"min-h-[390px]"},[K(O(He),{isEmpty:O(s).isEmpty,loading:O(s).loading,class:"size-full"},{default:Y(()=>[G("iframe",{ref:"iframe",class:"size-full min-h-[390px]",src:O(Ee),frameborder:"0"},null,8,et)]),_:1},8,["isEmpty","loading"]),K(qe,{ref:"dialogVueFinder",onDownload:O(ee)},null,8,["onDownload"])],4))}});export{qe as _,Tt as a,Xe as b,Ct as c};
@@ -0,0 +1 @@
1
+ import{J as A,u}from"./index-Cd1GqG9-.js";import{c as m}from"./useCompMetaLocalStore-BKTMp_k8.js";import{aD as g}from"./vendor-ui-CGT0cG1n.js";import{u as O}from"./useVscodeOpen-PzIPfNxl.js";import{v as h,aF as C,aM as w,ab as k,l as D,i as N,ax as v,g as B}from"./vendor-core-BKehvho7.js";import{c as F,b as G,I as o,a as W,e as b}from"./useMessage-DRWIT9X-.js";const $={class:"size-full"},x=["src"],J=h({__name:"index",props:{compType:{},version:{},compAttrs:{},iuid:{}},setup(d){const s=d,f=A(),n=F(!1,window.__GLOBAL_CONFIG__.subPort),{instanceUid:I,messageListener:T,sendMessageToTargetIframe:l}=b(),{addListener:i}=T(),{createIframeParams:E}=G(),{openCompPathInVscode:S,handlePath:L}=O(),P=g().value,p=C("iframe"),M=(()=>{const e={topOrigin:window.location.origin,userId:f.userId??"",instanceUid:[I.value,s.iuid].join(",")??"",compId:s.compAttrs?._id??"",isSfc:!0},t={params:E(e),isDark:P.toString()},a=new URLSearchParams(t).toString();return`${n}/${u.WEBSITE_PATH_ITEM}/${s.compType}?${a}`})();async function _(){const e=p.value?.contentWindow;if(e){const t=m(s.compAttrs?._id)(),{dep:a,depToFile:r}=t,c={item:s.compAttrs,dep:a,depToFile:r};l(e,o.ITEM_INIT_SET_LOCAL,c,n)}}return i(o.ITEM_INIT_GET_LOCAL,()=>{_()}),i(o.ITEM_SITE_PATH_GET,e=>{const t=m(e)(),{stopWatch:a,triggerCallback:r}=W(B(()=>t.detail.fullPath),()=>{const c=p.value?.contentWindow;c?l(c,o.ITEM_SITE_PATH_SET,L(t.detail.fullPath,1),n):a()});r(e)}),i(o.ACTION_OPEN_VSCODE_LOCAL,e=>{const a=m(e)().detail.fullPath;S(a,`./${u.COMP_CONFIG_FILENAME}`)}),w(()=>s.compAttrs,e=>{e&&_()}),(e,t)=>(k(),D("div",$,[N("iframe",{ref:"iframe",class:"size-full",src:v(M),frameborder:"0"},null,8,x)]))}});export{J as _};
@@ -1 +1 @@
1
- import{c as i}from"./vendor-ui-DXwyveTF.js";import{q as l}from"./index-BbT8J87U.js";import{u}from"./useCacheOssStore-DApHt9lQ.js";import{v as f,ay as m,aM as d,aN as h,ab as p,j as x,X as g,ax as v,af as _}from"./vendor-core-CzvSW5ae.js";function B(n){const t=document.createElement("canvas"),e=t.getContext("2d");if(!e)return"";t.width=100,t.height=100,e.fillStyle="#fff",e.font="60px serif";const r=e.measureText(n),a=r.width,s=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=(t.width-a)/2,c=(t.height+s)/2-r.actualBoundingBoxDescent;return e.fillText(n,o,c),t.toDataURL()}const S=f({__name:"index",props:{src:{type:String,default:""},text:{type:String,default:""}},setup(n){const t=n,e=u(),r=m(),a=_("");return d(()=>t.text,s=>{!s||t.src||(a.value=B(s))},{immediate:!0}),h(async()=>{if(!t.src)return;const s=e.getCacheUrl(t.src);if(s){a.value=s;return}const o=await l.v1Oss.osscontrollerFilesignurl({objectId:t.src}),{signUrl:c}=o.data;a.value=c,e.setCacheUrl(t.src,c)}),(s,o)=>{const c=i;return p(),x(c,g({class:"border border-gray-400"},v(r),{src:a.value}),null,16,["src"])}}});export{S as _};
1
+ import{c as i}from"./vendor-ui-CGT0cG1n.js";import{q as l}from"./index-Cd1GqG9-.js";import{u}from"./useCacheOssStore-OAoLDVbw.js";import{v as f,ay as m,aM as d,aN as h,ab as p,j as x,X as g,ax as v,af as _}from"./vendor-core-BKehvho7.js";function B(n){const t=document.createElement("canvas"),e=t.getContext("2d");if(!e)return"";t.width=100,t.height=100,e.fillStyle="#fff",e.font="60px serif";const r=e.measureText(n),a=r.width,s=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=(t.width-a)/2,c=(t.height+s)/2-r.actualBoundingBoxDescent;return e.fillText(n,o,c),t.toDataURL()}const S=f({__name:"index",props:{src:{type:String,default:""},text:{type:String,default:""}},setup(n){const t=n,e=u(),r=m(),a=_("");return d(()=>t.text,s=>{!s||t.src||(a.value=B(s))},{immediate:!0}),h(async()=>{if(!t.src)return;const s=e.getCacheUrl(t.src);if(s){a.value=s;return}const o=await l.v1Oss.osscontrollerFilesignurl({objectId:t.src}),{signUrl:c}=o.data;a.value=c,e.setCacheUrl(t.src,c)}),(s,o)=>{const c=i;return p(),x(c,g({class:"border border-gray-400"},v(r),{src:a.value}),null,16,["src"])}}});export{S as _};
@@ -1 +1 @@
1
- import{v as a,ab as w,l as B,i as e,Z as l}from"./vendor-core-CzvSW5ae.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA5CAYAAABwDahPAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxEAABcRAcom8z8AAAZeSURBVGhD3ZpPbxNHGMafd9YJ9GTzCcgHoMWcKiEqG1DBOEnjXJAqVYpziVQ1YJNzqziCXhOi/jkgIQchFZCoklTFiUnVrCWaXh2pd8gnaHypaBzP28PurNezf7w2IY76nDyz69nfM/O+74w3Ad6TJjYKI9lqIan3R9X1jcKI3ucn0jveRWObhRyEzIEpDcJZllR7kVlO6/d1U7Y6lyegzMzLlcxSUb/u1jsbmNgojLSELAKUByHuXGAByaJWySz2ZEDBqzYzHlUyi/nOu9oSekdUTWwURsZe3lppGfwaRAUdniF6np9stZB0wwMAEaaym3Mr7j63+jIwWr1VagmuAzSlX3PgmXoykK0WksTC1PvRxURPBrLVQnLs5e06Ec13zLgSCzDIhhcARxvegSfyjmkryES0JwAYr87mBdgEcF6/BrjhhQ0fbQWiwCv5mYhkYLw6m2cSZd9Zhz88QwAy3EAv8ErKxMR2IYEoBhz4IAXBqzAKUD/wSkSYah4YJkKf0DO8FfsdCcwhK8Ai3w+8I0YdYQZGtwrp3uC16sMCDEP/lqNKZqnIjEd6fxS59wZfAxPbhQRJXtP7HUWBV9dCVMks5ns1oW9svgYOD3gtWsIGwMP6zFLU9a/r6sUEA7v6ruwxMF6dzRMhpfcDQfAq1tXMUwNSLAw3cWbzs/nQc4xSFBMM7A4NtzzHko41ntguJFoH/MZ39gPh223JtHyqKUrrkwv7+tejKLs5t0IEz+6u4NcvL3vG7ViBwwNZ7AteikZL8uXNsbvFfuERsBJh8NANEMi75DoskwceMNLV8W99zzG9qpJZzDMwjQjwcIeQf80nq5p46nwnfGVsoWuy9qqxzbmccaplhsHDbWC0etvsTN4u8CzQYkxXx+55DljHKYJK3ib/7e7uBi+B9c3ReznXWAORAAB50HKBBMF31nkWhjdfBiABAExk19cweKvfTuBH1RsLb7SxBiK7ClHSgUf7IBYADwLu6wMNSsrAeQeeLeggeGbsvY+q069EtlpIRoUHCMTWOfykSJBEIhhe27RYQBKdiNhXEkDMAfTCuxPaWgnB3U+YxymVA3b1CYe3VkCE7ozHLauMRoK3q9OhPsRgZYeQDt+5abkTGsKI9NL1uGSHkA5vwerwDAIknSwDsben65HhWYABz6+iQYoA4MaLb9gLq4dVO7TeQpypTd45EclshRBTrQ0bAA8LnllgGMbAT6FKyoDpDSO9GqmzkgBafCJOolAGJGBGg7dXh4zz157/cCJWgdSHzC939wEj7rsSHXuCfY3F3kHsdLI2OT3QXLDLKMAQa5HhIQDQ2aFmc+DHaseA0eL7HngL1Auvkh00dfXZw1LnkMcrx0Bl8us6d1QjJ1R8KpPVDwgQaP7qs/KRm7hU3s6lyttd/0zrGAAAYir5w9vVR4Nv3yvmrzx9vJYqlxPu8frVJw+3S0KK1ZY0zIsPXoWacJJY6drqkgmmVHR4a3+ww2wPLSr9/sXnfb1qSZW30syxElik1KozqCEl0jszl3yP8R4D11eXRpiN12yvgBdezwlvWzLtMRslNI212vRk1yp1qfxbTjCKgOGauHbISlCDWaR3Zj72mPAYAIBPf/6uBBbzbbjo8J1vNQQkaBeSTEDsQ8IEYgA4CRgJhkgzKElMcQvWC6/GZlCDwR4TvgYA4NPnP5rtpewBXt3vgenW9inh3mc1mCi9M3PBMdGRxG4dGB/kJNNuOLwC8MJbn8Ng9XZXeIApTi0yL37/l5PYgQZqk9P7ApQHqKHDttsuaA2e+4LV2z4TBxGHYMdEoAEA2Lo5UycYacmWiSB4p+0LHwTXre0Dr54FioPQ/c+sALB1c7puCKTB2A2FtwY+Yni1clqb0QCjCPupkZQqlxPG6aE1sJHyhWfxHuD1iSIA2INEbmf2XB29GFC68tPTIktRAlH86OD9YNuFQN3PwPrwv8187c4FZ2/p2QAApJ48GRGHQysgYW08oXB6W8Hp7TB47BEh/8eXH3pea/ZlQCn1eDUNUInYSPUGq7eD4GkPLVHamT0XeDR5JwNKqfKvSQiRZ0aenB9FQbB62wdeYl2yWPnzq4+C/1vA1pEYcCtVriYlRI6Y0gwjSUzxbvCSUQOMuiCYxj8w3THeTUduwE8XH7xKEnHCOgcpxRCLxeq16eiw/0v9Bxd2PEmpXS32AAAAAElFTkSuQmCC",t={class:"flex items-end gap"},z=a({__name:"index",props:{logoClass:{type:String,default:"h-[40px]"}},setup(s){return(c,A)=>(w(),B("div",t,[e("img",{src:n,alt:"logo",class:l(s.logoClass)},null,2),A[0]||(A[0]=e("span",{class:"text-gray-800 dark:text-white font-bold text-xl truncate"},"omp Hub",-1))]))}});export{z as _};
1
+ import{v as a,ab as w,l as B,i as e,Z as l}from"./vendor-core-BKehvho7.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA5CAYAAABwDahPAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxEAABcRAcom8z8AAAZeSURBVGhD3ZpPbxNHGMafd9YJ9GTzCcgHoMWcKiEqG1DBOEnjXJAqVYpziVQ1YJNzqziCXhOi/jkgIQchFZCoklTFiUnVrCWaXh2pd8gnaHypaBzP28PurNezf7w2IY76nDyz69nfM/O+74w3Ad6TJjYKI9lqIan3R9X1jcKI3ucn0jveRWObhRyEzIEpDcJZllR7kVlO6/d1U7Y6lyegzMzLlcxSUb/u1jsbmNgojLSELAKUByHuXGAByaJWySz2ZEDBqzYzHlUyi/nOu9oSekdUTWwURsZe3lppGfwaRAUdniF6np9stZB0wwMAEaaym3Mr7j63+jIwWr1VagmuAzSlX3PgmXoykK0WksTC1PvRxURPBrLVQnLs5e06Ec13zLgSCzDIhhcARxvegSfyjmkryES0JwAYr87mBdgEcF6/BrjhhQ0fbQWiwCv5mYhkYLw6m2cSZd9Zhz88QwAy3EAv8ErKxMR2IYEoBhz4IAXBqzAKUD/wSkSYah4YJkKf0DO8FfsdCcwhK8Ai3w+8I0YdYQZGtwrp3uC16sMCDEP/lqNKZqnIjEd6fxS59wZfAxPbhQRJXtP7HUWBV9dCVMks5ns1oW9svgYOD3gtWsIGwMP6zFLU9a/r6sUEA7v6ruwxMF6dzRMhpfcDQfAq1tXMUwNSLAw3cWbzs/nQc4xSFBMM7A4NtzzHko41ntguJFoH/MZ39gPh223JtHyqKUrrkwv7+tejKLs5t0IEz+6u4NcvL3vG7ViBwwNZ7AteikZL8uXNsbvFfuERsBJh8NANEMi75DoskwceMNLV8W99zzG9qpJZzDMwjQjwcIeQf80nq5p46nwnfGVsoWuy9qqxzbmccaplhsHDbWC0etvsTN4u8CzQYkxXx+55DljHKYJK3ib/7e7uBi+B9c3ReznXWAORAAB50HKBBMF31nkWhjdfBiABAExk19cweKvfTuBH1RsLb7SxBiK7ClHSgUf7IBYADwLu6wMNSsrAeQeeLeggeGbsvY+q069EtlpIRoUHCMTWOfykSJBEIhhe27RYQBKdiNhXEkDMAfTCuxPaWgnB3U+YxymVA3b1CYe3VkCE7ozHLauMRoK3q9OhPsRgZYeQDt+5abkTGsKI9NL1uGSHkA5vwerwDAIknSwDsben65HhWYABz6+iQYoA4MaLb9gLq4dVO7TeQpypTd45EclshRBTrQ0bAA8LnllgGMbAT6FKyoDpDSO9GqmzkgBafCJOolAGJGBGg7dXh4zz157/cCJWgdSHzC939wEj7rsSHXuCfY3F3kHsdLI2OT3QXLDLKMAQa5HhIQDQ2aFmc+DHaseA0eL7HngL1Auvkh00dfXZw1LnkMcrx0Bl8us6d1QjJ1R8KpPVDwgQaP7qs/KRm7hU3s6lyttd/0zrGAAAYir5w9vVR4Nv3yvmrzx9vJYqlxPu8frVJw+3S0KK1ZY0zIsPXoWacJJY6drqkgmmVHR4a3+ww2wPLSr9/sXnfb1qSZW30syxElik1KozqCEl0jszl3yP8R4D11eXRpiN12yvgBdezwlvWzLtMRslNI212vRk1yp1qfxbTjCKgOGauHbISlCDWaR3Zj72mPAYAIBPf/6uBBbzbbjo8J1vNQQkaBeSTEDsQ8IEYgA4CRgJhkgzKElMcQvWC6/GZlCDwR4TvgYA4NPnP5rtpewBXt3vgenW9inh3mc1mCi9M3PBMdGRxG4dGB/kJNNuOLwC8MJbn8Ng9XZXeIApTi0yL37/l5PYgQZqk9P7ApQHqKHDttsuaA2e+4LV2z4TBxGHYMdEoAEA2Lo5UycYacmWiSB4p+0LHwTXre0Dr54FioPQ/c+sALB1c7puCKTB2A2FtwY+Yni1clqb0QCjCPupkZQqlxPG6aE1sJHyhWfxHuD1iSIA2INEbmf2XB29GFC68tPTIktRAlH86OD9YNuFQN3PwPrwv8187c4FZ2/p2QAApJ48GRGHQysgYW08oXB6W8Hp7TB47BEh/8eXH3pea/ZlQCn1eDUNUInYSPUGq7eD4GkPLVHamT0XeDR5JwNKqfKvSQiRZ0aenB9FQbB62wdeYl2yWPnzq4+C/1vA1pEYcCtVriYlRI6Y0gwjSUzxbvCSUQOMuiCYxj8w3THeTUduwE8XH7xKEnHCOgcpxRCLxeq16eiw/0v9Bxd2PEmpXS32AAAAAElFTkSuQmCC",t={class:"flex items-end gap"},z=a({__name:"index",props:{logoClass:{type:String,default:"h-[40px]"}},setup(s){return(c,A)=>(w(),B("div",t,[e("img",{src:n,alt:"logo",class:l(s.logoClass)},null,2),A[0]||(A[0]=e("span",{class:"text-gray-800 dark:text-white font-bold text-xl truncate"},"omp Hub",-1))]))}});export{z as _};
@@ -1 +1 @@
1
- import{f as x,l as D,E as C,s as B}from"./index-BbT8J87U.js";import{e as w,f as b,aG as $,r as L}from"./vendor-ui-DXwyveTF.js";import{v as k,aA as g,ab as o,j as l,aO as c,l as z,ai as I,k as _,i as y,ap as h,ax as a,r as v,Z as M,af as S,aC as A,aD as O,ac as T,a7 as N,a9 as V,aF as P,p as K,q as E,g as j}from"./vendor-core-CzvSW5ae.js";/* empty css */import{_ as F}from"./index.vue_vue_type_style_index_0_lang-CDQojDH9.js";import{u as R}from"./useTeamHeaders-Cc060CP0.js";import{c as H,a as U}from"./index.vue_vue_type_script_setup_true_lang-D96-vCRS.js";const Y={class:"flex items-center justify-between px-3 py-2 select-none"},q={class:"text-sm font-medium"},G={class:"flex gap-[6px]"},Z={key:0,class:"flex-1 p-2 overflow-auto"},J=k({__name:"BasePane",props:{title:{type:String,default:""},actions:{type:Array,default:()=>["close","maximize","minimize"]}},emits:["close","maximize","minimize"],setup(t,{emit:i}){const{t:p}=g(),m=t,n=i,e=S(!1),d=S(!1);function f(){n("close")}function u(){e.value=!e.value,n("maximize",e.value)}function s(r){return m.actions.includes(r)}return(r,ee)=>(o(),l(a(b),{"body-class":"pane-body","header-class":"pane-header",class:M(["pane-card w-full h-full",{"pane-maximized":e.value}])},{header:c(()=>[y("div",Y,[y("div",q,h(t.title),1),y("div",G,[I(r.$slots,"beforeActions",{},void 0,!0),s("close")?(o(),l(a(w),{key:0,type:"primary",circle:"",onClick:f},{default:c(()=>[v(a(x),{icon:"material-symbols:close"})]),_:1})):_("",!0),s("maximize")?(o(),l(a(w),{key:1,type:"primary",circle:"",title:a(p)("common.maximizeRestore"),onClick:u},{default:c(()=>[e.value?(o(),l(a(x),{key:1,icon:"material-symbols:fullscreen-exit"})):(o(),l(a(x),{key:0,icon:"material-symbols:fullscreen"}))]),_:1},8,["title"])):_("",!0)])])]),default:c(()=>[d.value?_("",!0):(o(),z("div",Z,[I(r.$slots,"default",{isMaximized:e.value},void 0,!0)]))]),_:3},8,["class"]))}}),re=D(J,[["__scopeId","data-v-96c02aae"]]),Q={class:"min-h-[400px]"},W=k({__name:"index",setup(t){const i=A(),p=O(),{compId:m}=i.params,{headers:n}=R(),e=H(i.path)();T(C.PROVIDE_KEY_COMP_LIST_STORE,e);const d=new Map;T(C.PROVIDE_KEY_CALLBACKS,d);const f=async()=>{if(e.setLoading(!0),!m)return;const s=await B.v1Comp.compcontrollerSimilarcomps({compId:m},{headers:n}),{rows:r}=s.data||{};await e.renderList(r),e.setLoading(!1)};function u(s){p.push({path:`/preview/${s}`})}return N(()=>{f()}),V(()=>{e.$reset()}),(s,r)=>(o(),z("div",Q,[v(U,{compType:a(C).IFRAME_ROUTES.CONTAINER.SIMILAR,onPreview:u},null,8,["compType"])]))}}),X={ref:"similarComp",class:"mt-[10px] overflow-hidden"},le=k({__name:"index",props:{mdSrc:{type:String,default:""},compDesc:{type:String,default:""},scrollContainer:{type:String,default:""},stickyTopDistance:{type:Number,default:45},showSimilarComp:{type:Boolean,default:!0}},setup(t){const{t:i}=g(),{teamId:p}=R(),m=j(()=>i(p?"team.similarCompInTeam":"team.similarComp")),n=S(!1),e=P("similarComp");return $(e,([d])=>{n.value||(n.value=d?.isIntersecting||!1)}),(d,f)=>{const u=L,s=b;return o(),l(F,{showToc:!0,src:t.mdSrc,scrollContainer:t.scrollContainer,stickyTopDistance:t.stickyTopDistance},K({empty:c(()=>[E(h(t.compDesc||a(i)("common.noReadme")),1)]),_:2},[t.showSimilarComp?{name:"footer",fn:c(()=>[y("div",X,[v(u,{"content-position":"center"},{default:c(()=>[E(h(m.value),1)]),_:1}),v(s,{"body-class":"!p-1",class:"mt-[10px]"},{default:c(()=>[n.value?(o(),l(W,{key:0})):_("",!0)]),_:1})],512)]),key:"0"}:void 0]),1032,["src","scrollContainer","stickyTopDistance"])}}});export{re as B,le as _};
1
+ import{I as x,j as D,u as C,t as $}from"./index-Cd1GqG9-.js";import{e as I,f as g,aG as B,r as L}from"./vendor-ui-CGT0cG1n.js";import{v as k,aA as z,ab as o,j as l,aO as c,l as R,ai as w,k as _,i as y,ap as h,ax as a,r as v,Z as M,af as S,aC as A,aD as O,ac as T,a7 as N,a9 as V,aF as P,p as j,q as b,g as K}from"./vendor-core-BKehvho7.js";/* empty css */import{_ as F}from"./index.vue_vue_type_style_index_0_lang-CIN0y80j.js";import{u as E}from"./useTeamHeaders-DxHN7-t0.js";import{c as H,a as U}from"./index.vue_vue_type_script_setup_true_lang-0kHDvgX-.js";const Y={class:"flex items-center justify-between px-3 py-2 select-none"},q={class:"text-sm font-medium"},G={class:"flex gap-[6px]"},Z={key:0,class:"flex-1 p-2 overflow-auto"},J=k({__name:"BasePane",props:{title:{type:String,default:""},actions:{type:Array,default:()=>["close","maximize","minimize"]}},emits:["close","maximize","minimize"],setup(t,{emit:i}){const{t:p}=z(),m=t,n=i,e=S(!1),d=S(!1);function f(){n("close")}function u(){e.value=!e.value,n("maximize",e.value)}function s(r){return m.actions.includes(r)}return(r,ee)=>(o(),l(a(g),{"body-class":"pane-body","header-class":"pane-header",class:M(["pane-card w-full h-full",{"pane-maximized":e.value}])},{header:c(()=>[y("div",Y,[y("div",q,h(t.title),1),y("div",G,[w(r.$slots,"beforeActions",{},void 0,!0),s("close")?(o(),l(a(I),{key:0,type:"primary",circle:"",onClick:f},{default:c(()=>[v(a(x),{icon:"material-symbols:close"})]),_:1})):_("",!0),s("maximize")?(o(),l(a(I),{key:1,type:"primary",circle:"",title:a(p)("common.maximizeRestore"),onClick:u},{default:c(()=>[e.value?(o(),l(a(x),{key:1,icon:"material-symbols:fullscreen-exit"})):(o(),l(a(x),{key:0,icon:"material-symbols:fullscreen"}))]),_:1},8,["title"])):_("",!0)])])]),default:c(()=>[d.value?_("",!0):(o(),R("div",Z,[w(r.$slots,"default",{isMaximized:e.value},void 0,!0)]))]),_:3},8,["class"]))}}),re=D(J,[["__scopeId","data-v-5116a325"]]),Q={class:"min-h-[400px]"},W=k({__name:"index",setup(t){const i=A(),p=O(),{compId:m}=i.params,{headers:n}=E(),e=H(i.path)();T(C.PROVIDE_KEY_COMP_LIST_STORE,e);const d=new Map;T(C.PROVIDE_KEY_CALLBACKS,d);const f=async()=>{if(e.setLoading(!0),!m)return;const s=await $.v1Comp.compcontrollerSimilarcomps({compId:m},{headers:n}),{rows:r}=s.data||{};await e.renderList(r),e.setLoading(!1)};function u(s){p.push({path:`/preview/${s}`})}return N(()=>{f()}),V(()=>{e.$reset()}),(s,r)=>(o(),R("div",Q,[v(U,{compType:a(C).IFRAME_ROUTES.CONTAINER.SIMILAR,onPreview:u},null,8,["compType"])]))}}),X={ref:"similarComp",class:"mt-[10px] overflow-hidden"},le=k({__name:"index",props:{mdSrc:{type:String,default:""},compDesc:{type:String,default:""},scrollContainer:{type:String,default:""},stickyTopDistance:{type:Number,default:45},showSimilarComp:{type:Boolean,default:!0}},setup(t){const{t:i}=z(),{teamId:p}=E(),m=K(()=>i(p?"team.similarCompInTeam":"team.similarComp")),n=S(!1),e=P("similarComp");return B(e,([d])=>{n.value||(n.value=d?.isIntersecting||!1)}),(d,f)=>{const u=L,s=g;return o(),l(F,{showToc:!0,src:t.mdSrc,scrollContainer:t.scrollContainer,stickyTopDistance:t.stickyTopDistance},j({empty:c(()=>[b(h(t.compDesc||a(i)("common.noReadme")),1)]),_:2},[t.showSimilarComp?{name:"footer",fn:c(()=>[y("div",X,[v(u,{"content-position":"center"},{default:c(()=>[b(h(m.value),1)]),_:1}),v(s,{"body-class":"!p-1",class:"mt-[10px]"},{default:c(()=>[n.value?(o(),l(W,{key:0})):_("",!0)]),_:1})],512)]),key:"0"}:void 0]),1032,["src","scrollContainer","stickyTopDistance"])}}});export{re as B,le as _};
@@ -1 +1 @@
1
- import{J as s}from"./index-BbT8J87U.js";import{v as t,ai as n}from"./vendor-core-CzvSW5ae.js";const c=t({__name:"index",setup(i){const o=s();function r(){const e=o.isRealUserLogin();return e||o.logoutDialog(),e}return(e,a)=>n(e.$slots,"default",{isLogin:r})}});export{c as _};
1
+ import{J as s}from"./index-Cd1GqG9-.js";import{v as t,ai as n}from"./vendor-core-BKehvho7.js";const c=t({__name:"index",setup(i){const o=s();function r(){const e=o.isRealUserLogin();return e||o.logoutDialog(),e}return(e,a)=>n(e.$slots,"default",{isLogin:r})}});export{c as _};
@@ -0,0 +1 @@
1
+ import{z as w,J as C,u as L}from"./index-Cd1GqG9-.js";import{c as O}from"./index-DcbQ_ahf.js";import{aD as G}from"./vendor-ui-CGT0cG1n.js";import{v as b,aA as k,aF as M,aM as P,ab as W,l as D,i as h,ax as B,g as m}from"./vendor-core-BKehvho7.js";import{c as N,b as F,I as a,a as l,e as y}from"./useMessage-DRWIT9X-.js";const R={class:"size-full"},x=["src"],V=b({__name:"index",props:{compType:{},version:{},compAttrs:{},iuid:{},bgColor:{}},setup(f){const s=f,{locale:d}=k(),u=w(),T=C(),r=N(!1,window.__GLOBAL_CONFIG__.subPort),{instanceUid:g,messageListener:E,sendMessageToTargetIframe:n}=y(),{addListener:i}=E(),{createIframeParams:I}=F(),S=G().value,c=M("iframe"),A=(()=>{const e={topOrigin:window.location.origin,userId:T.userId??"",instanceUid:[g.value,s.iuid].join(",")??"",compId:s.compAttrs?._id??"",isSfc:!0},t={params:I(e),isDark:S.toString()},o=new URLSearchParams(t).toString();return`${r}/${L.WEBSITE_PATH_ITEM}/${s.compType}?${o}`})();async function _(){const e=c.value?.contentWindow;if(e){const t=O(s.compAttrs?._id)(),o=t.depEntryNameToFile[s.version],p=t.versionToFileAccessPath[s.version],v={item:s.compAttrs,depEntryNameToFile:o,versionToFileAccessPath:p};n(e,a.ITEM_INIT_SET,v,r)}}return i(a.ITEM_INIT_GET,()=>{_()}),i(a.SETTING_DATA_GET,l(m(()=>u.deps),()=>{const e=c.value?.contentWindow;e&&n(e,a.SETTING_DATA_SET,u.deps,r)}).triggerCallback),i(a.LOCALE_GET,()=>{const{stopWatch:e,triggerCallback:t}=l(m(()=>d.value),()=>{const o=c.value?.contentWindow;o?n(o,a.LOCALE_SET,d.value,r):e()});t()}),i(a.BG_COLOR_GET,l(m(()=>s.bgColor??""),()=>{const e=c.value?.contentWindow;e&&n(e,a.BG_COLOR_SET,s.bgColor??"",r)}).triggerCallback),P([()=>s.version,()=>s.compAttrs],async([e,t])=>{e&&t&&_()}),(e,t)=>(W(),D("div",R,[h("iframe",{ref:"iframe",class:"size-full",src:B(A),frameborder:"0"},null,8,x)]))}});export{V as _};
@@ -1,4 +1,4 @@
1
- import{a as kt,E as xt,aD as wt,aE as yt,aF as Et,U as _t}from"./vendor-ui-DXwyveTF.js";import{M as St,H as Tt,E as J,n as Rt}from"./index-BbT8J87U.js";import{v as Te,aA as qe,aj as At,ab as A,j as xe,p as vt,aO as ne,l as $,F as He,ah as Ke,i as ee,ap as re,k as we,g as U,ay as Nt,aF as te,a7 as Qe,r as ye,X as Ct,ax as O,aM as se,Y as Xe,H as It,af as B,$ as $t,Z as Mt,ai as ze,q as Ot}from"./vendor-core-CzvSW5ae.js";import{H as L}from"./core-B1GcTOER.js";async function Lt(t){try{return(await fetch(t)).ok}catch(e){return console.log(`Error fetching ${t}:`,e.message),!1}}const zt={key:0,class:"text-red-500 text-[10px]"},Pt=Te({__name:"AnchorNode",props:{node:{},isDebug:{type:Boolean,default:!1}},setup(t){const{t:e}=qe(),n=t,s=U(()=>n.node.href.replace(/\s+/g,"-")),r=U(()=>{const a=n.node.titles.join(""),{reason:l,reasonParams:o={}}=St.validateHash(a);return l?e(l,o):""}),i=U(()=>n.node.titles.join(""));return(a,l)=>{const o=At("AnchorNode",!0),u=kt;return A(),xe(u,{href:s.value},vt({default:ne(()=>[ee("div",null,re(i.value),1),t.isDebug&&r.value?(A(),$("div",zt,"("+re(r.value)+")",1)):we("",!0)]),_:2},[t.node.children.length?{name:"sub-link",fn:ne(()=>[(A(!0),$(He,null,Ke(t.node.children,c=>(A(),xe(o,{key:c.href,node:c,"is-debug":t.isDebug},null,8,["node","is-debug"]))),128))]),key:"0"}:void 0]),1032,["href"])}}}),Dt=Te({__name:"index",props:{headings:{},isDebug:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,r=Nt(),i=U(()=>Tt.flatHeadingsToTree(n.headings));function a(o){s("change",o)}const l=te("tocRef");return Qe(()=>{l.value?.addEventListener("click",o=>{o.target.closest(".el-anchor__link")&&o.preventDefault()})}),(o,u)=>{const c=xt;return A(),$("div",{ref_key:"tocRef",ref:l,class:"toc-wrapper"},[ye(c,Ct(O(r),{onChange:a}),{default:ne(()=>[(A(!0),$(He,null,Ke(i.value,h=>(A(),xe(Pt,{key:h.href,node:h,"is-debug":t.isDebug},null,8,["node","is-debug"]))),128))]),_:1},16)],512)}}});function Re(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var G=Re();function We(t){G=t}var D={exec:()=>null};function g(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(S.caret,"$1"),n=n.replace(r,a),s},getRegex:()=>new RegExp(n,e)};return s}var Bt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Ut=/^(?:[ \t]*(?:\n|$))+/,Zt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Gt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,V=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ft=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ae=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ye=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ve=g(Ye).replace(/bull/g,Ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),qt=g(Ye).replace(/bull/g,Ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ve=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ht=/^[^\n]+/,Ne=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Kt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ne).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Qt=g(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ae).getRegex(),ce="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ce=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xt=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ce).replace("tag",ce).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Je=g(ve).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex(),Wt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Je).getRegex(),Ie={blockquote:Wt,code:Zt,def:Kt,fences:Gt,heading:Ft,hr:V,html:Xt,lheading:Ve,list:Qt,newline:Ut,paragraph:Je,table:D,text:Ht},Pe=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex(),Yt={...Ie,lheading:qt,table:Pe,paragraph:g(ve).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex()},Vt={...Ie,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ce).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ve).replace("hr",V).replace("heading",` *#{1,6} *[^
1
+ import{a as kt,E as xt,aD as wt,aE as yt,aF as Et,U as _t}from"./vendor-ui-CGT0cG1n.js";import{M as St,H as Tt,u as J,m as Rt}from"./index-Cd1GqG9-.js";import{v as Te,aA as qe,aj as At,ab as A,j as xe,p as vt,aO as ne,l as $,F as He,ah as Ke,i as ee,ap as re,k as we,g as U,ay as Nt,aF as te,a7 as Qe,r as ye,X as Ct,ax as O,aM as se,Y as Xe,H as It,af as B,$ as $t,Z as Mt,ai as ze,q as Ot}from"./vendor-core-BKehvho7.js";import{H as L}from"./core-CcVTMiBP.js";async function Lt(t){try{return(await fetch(t)).ok}catch(e){return console.log(`Error fetching ${t}:`,e.message),!1}}const zt={key:0,class:"text-red-500 text-[10px]"},Pt=Te({__name:"AnchorNode",props:{node:{},isDebug:{type:Boolean,default:!1}},setup(t){const{t:e}=qe(),n=t,s=U(()=>n.node.href.replace(/\s+/g,"-")),r=U(()=>{const a=n.node.titles.join(""),{reason:l,reasonParams:o={}}=St.validateHash(a);return l?e(l,o):""}),i=U(()=>n.node.titles.join(""));return(a,l)=>{const o=At("AnchorNode",!0),u=kt;return A(),xe(u,{href:s.value},vt({default:ne(()=>[ee("div",null,re(i.value),1),t.isDebug&&r.value?(A(),$("div",zt,"("+re(r.value)+")",1)):we("",!0)]),_:2},[t.node.children.length?{name:"sub-link",fn:ne(()=>[(A(!0),$(He,null,Ke(t.node.children,c=>(A(),xe(o,{key:c.href,node:c,"is-debug":t.isDebug},null,8,["node","is-debug"]))),128))]),key:"0"}:void 0]),1032,["href"])}}}),Dt=Te({__name:"index",props:{headings:{},isDebug:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,r=Nt(),i=U(()=>Tt.flatHeadingsToTree(n.headings));function a(o){s("change",o)}const l=te("tocRef");return Qe(()=>{l.value?.addEventListener("click",o=>{o.target.closest(".el-anchor__link")&&o.preventDefault()})}),(o,u)=>{const c=xt;return A(),$("div",{ref_key:"tocRef",ref:l,class:"toc-wrapper"},[ye(c,Ct(O(r),{onChange:a}),{default:ne(()=>[(A(!0),$(He,null,Ke(i.value,h=>(A(),xe(Pt,{key:h.href,node:h,"is-debug":t.isDebug},null,8,["node","is-debug"]))),128))]),_:1},16)],512)}}});function Re(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var G=Re();function We(t){G=t}var D={exec:()=>null};function g(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(S.caret,"$1"),n=n.replace(r,a),s},getRegex:()=>new RegExp(n,e)};return s}var Bt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Ut=/^(?:[ \t]*(?:\n|$))+/,Zt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Gt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,V=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ft=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ae=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ye=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ve=g(Ye).replace(/bull/g,Ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),qt=g(Ye).replace(/bull/g,Ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ve=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ht=/^[^\n]+/,Ne=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Kt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ne).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Qt=g(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ae).getRegex(),ce="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ce=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xt=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ce).replace("tag",ce).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Je=g(ve).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex(),Wt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Je).getRegex(),Ie={blockquote:Wt,code:Zt,def:Kt,fences:Gt,heading:Ft,hr:V,html:Xt,lheading:Ve,list:Qt,newline:Ut,paragraph:Je,table:D,text:Ht},Pe=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex(),Yt={...Ie,lheading:qt,table:Pe,paragraph:g(ve).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pe).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce).getRegex()},Vt={...Ie,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ce).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ve).replace("hr",V).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Ve).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,jt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,je=/^( {2,}|\\)\n(?!\s*$)/,en=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,ue=/[\s\p{P}\p{S}]/u,$e=/[^\s\p{P}\p{S}]/u,tn=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ue).getRegex(),et=/(?!~)[\p{P}\p{S}]/u,nn=/(?!~)[\s\p{P}\p{S}]/u,rn=/(?:[^\s\p{P}\p{S}]|~)/u,sn=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Bt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),tt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,an=g(tt,"u").replace(/punct/g,F).getRegex(),on=g(tt,"u").replace(/punct/g,et).getRegex(),nt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ln=g(nt,"gu").replace(/notPunctSpace/g,$e).replace(/punctSpace/g,ue).replace(/punct/g,F).getRegex(),cn=g(nt,"gu").replace(/notPunctSpace/g,rn).replace(/punctSpace/g,nn).replace(/punct/g,et).getRegex(),un=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$e).replace(/punctSpace/g,ue).replace(/punct/g,F).getRegex(),pn=g(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,F).getRegex(),hn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",dn=g(hn,"gu").replace(/notPunctSpace/g,$e).replace(/punctSpace/g,ue).replace(/punct/g,F).getRegex(),gn=g(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),fn=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bn=g(Ce).replace("(?:-->|$)","-->").getRegex(),mn=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ae=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,kn=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ae).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",ae).replace("ref",Ne).getRegex(),st=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ne).getRegex(),xn=g("reflink|nolink(?!\\()","g").replace("reflink",rt).replace("nolink",st).getRegex(),De=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Me={_backpedal:D,anyPunctuation:gn,autolink:fn,blockSkip:sn,br:je,code:jt,del:D,delLDelim:D,delRDelim:D,emStrongLDelim:an,emStrongRDelimAst:ln,emStrongRDelimUnd:un,escape:Jt,link:kn,nolink:st,punctuation:tn,reflink:rt,reflinkSearch:xn,tag:mn,text:en,url:D},wn={...Me,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",ae).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae).getRegex()},Ee={...Me,emStrongRDelimAst:cn,emStrongLDelim:on,delLDelim:pn,delRDelim:dn,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",De).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",De).getRegex()},yn={...Ee,br:g(je).replace("{2,}","*").getRegex(),text:g(Ee.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},j={normal:Ie,gfm:Yt,pedantic:Vt},X={normal:Me,gfm:Ee,breaks:yn,pedantic:wn},En={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Be=t=>En[t];function I(t,e){if(e){if(S.escapeTest.test(t))return t.replace(S.escapeReplace,Be)}else if(S.escapeTestNoEncode.test(t))return t.replace(S.escapeReplaceNoEncode,Be);return t}function Ue(t){try{t=encodeURI(t).replace(S.percentDecode,"%")}catch{return null}return t}function Ze(t,e){let n=t.replace(S.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),s=n.split(S.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(S.slashPipe,"|");return s}function W(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function _n(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function Sn(t,e=0){let n=e,s="";for(let r of t)if(r===" "){let i=4-n%4;s+=" ".repeat(i),n+=i}else s+=r,n++;return s}function Ge(t,e,n,s,r){let i=e.href,a=e.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,o}function Tn(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
3
3
  `).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=r.length?i.slice(r.length):i}).join(`
4
4
  `)}var ie=class{options;rules;lexer;constructor(t){this.options=t||G}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:W(n,`