migu-api-enhanced 2.27.5 → 2.28.3

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 (90) hide show
  1. package/README.md +6 -6
  2. package/dist/YDRZ-JLSMOCYV.cjs +12 -0
  3. package/dist/YDRZ-JLSMOCYV.cjs.map +1 -0
  4. package/dist/YDRZ-PHOHCFZ7.mjs +12 -0
  5. package/dist/activity/index.cjs +10 -10
  6. package/dist/activity/index.cjs.map +1 -1
  7. package/dist/activity/index.mjs +5 -5
  8. package/dist/activity/index.mjs.map +1 -1
  9. package/dist/chunk-4LG74IW5.cjs +38 -0
  10. package/dist/chunk-4LG74IW5.cjs.map +1 -0
  11. package/dist/chunk-CGV2KEQH.mjs +38 -0
  12. package/dist/chunk-CGV2KEQH.mjs.map +1 -0
  13. package/dist/{chunk-HBSVQAOM.cjs → chunk-EJRBQONV.cjs} +17 -16
  14. package/dist/chunk-EJRBQONV.cjs.map +1 -0
  15. package/dist/{chunk-4ZNJQZKT.mjs → chunk-GU4YGYF5.mjs} +22 -29
  16. package/dist/chunk-GU4YGYF5.mjs.map +1 -0
  17. package/dist/chunk-KFBODHXY.mjs +438 -0
  18. package/dist/chunk-KFBODHXY.mjs.map +1 -0
  19. package/dist/chunk-KGXC32BN.cjs.map +1 -1
  20. package/dist/chunk-RKEORE6S.mjs +34 -0
  21. package/dist/{chunk-BNSCQPYL.mjs.map → chunk-RKEORE6S.mjs.map} +1 -1
  22. package/dist/{chunk-ZEGJU5LW.cjs → chunk-TVZESJ3J.cjs} +26 -33
  23. package/dist/chunk-TVZESJ3J.cjs.map +1 -0
  24. package/dist/{chunk-ID6VPLAX.mjs → chunk-VD7HOOHT.mjs} +16 -15
  25. package/dist/chunk-VD7HOOHT.mjs.map +1 -0
  26. package/dist/chunk-XQIVVOH2.cjs +34 -0
  27. package/dist/chunk-XQIVVOH2.cjs.map +1 -0
  28. package/dist/chunk-Y6RTHMBM.cjs +438 -0
  29. package/dist/chunk-Y6RTHMBM.cjs.map +1 -0
  30. package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -1
  31. package/dist/index.cjs +308 -244
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +934 -46
  34. package/dist/index.d.ts +934 -46
  35. package/dist/index.mjs +180 -116
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/login/index.cjs +81 -95
  38. package/dist/login/index.cjs.map +1 -1
  39. package/dist/login/index.mjs +76 -90
  40. package/dist/login/index.mjs.map +1 -1
  41. package/dist/mrc/index.cjs +7 -4
  42. package/dist/mrc/index.cjs.map +1 -1
  43. package/dist/mrc/index.mjs +6 -3
  44. package/dist/mrc/index.mjs.map +1 -1
  45. package/dist/{chunk-TOFOR57V.cjs → publicKey-K56XCMLR.cjs} +3 -4
  46. package/dist/publicKey-K56XCMLR.cjs.map +1 -0
  47. package/dist/{chunk-JRQEIAY5.mjs → publicKey-UVL2ID6N.mjs} +2 -3
  48. package/dist/rsalib-FMWPCK5N.mjs +9 -0
  49. package/dist/rsalib-VSMUMKOT.cjs +9 -0
  50. package/dist/rsalib-VSMUMKOT.cjs.map +1 -0
  51. package/dist/utils/index.cjs +184 -15
  52. package/dist/utils/index.cjs.map +1 -1
  53. package/dist/utils/index.d.cts +28 -14
  54. package/dist/utils/index.d.ts +28 -14
  55. package/dist/utils/index.mjs +192 -23
  56. package/dist/utils/index.mjs.map +1 -1
  57. package/package.json +8 -5
  58. package/dist/YDRZ-M2NM4ZC5.mjs +0 -11
  59. package/dist/YDRZ-OJHYOY7I.cjs +0 -11
  60. package/dist/YDRZ-OJHYOY7I.cjs.map +0 -1
  61. package/dist/chunk-4ZNJQZKT.mjs.map +0 -1
  62. package/dist/chunk-6EZ26DPY.cjs +0 -18
  63. package/dist/chunk-6EZ26DPY.cjs.map +0 -1
  64. package/dist/chunk-BNSCQPYL.mjs +0 -18
  65. package/dist/chunk-C56WQXBU.cjs +0 -13
  66. package/dist/chunk-C56WQXBU.cjs.map +0 -1
  67. package/dist/chunk-FT3OOTMT.cjs +0 -140
  68. package/dist/chunk-FT3OOTMT.cjs.map +0 -1
  69. package/dist/chunk-HBSVQAOM.cjs.map +0 -1
  70. package/dist/chunk-HDGZY5R6.mjs +0 -13
  71. package/dist/chunk-HDGZY5R6.mjs.map +0 -1
  72. package/dist/chunk-ID6VPLAX.mjs.map +0 -1
  73. package/dist/chunk-QMBC3CRQ.mjs +0 -51
  74. package/dist/chunk-QMBC3CRQ.mjs.map +0 -1
  75. package/dist/chunk-TIKOSETY.cjs +0 -51
  76. package/dist/chunk-TIKOSETY.cjs.map +0 -1
  77. package/dist/chunk-TOFOR57V.cjs.map +0 -1
  78. package/dist/chunk-Y4SLGNQ3.mjs +0 -140
  79. package/dist/chunk-Y4SLGNQ3.mjs.map +0 -1
  80. package/dist/chunk-ZEGJU5LW.cjs.map +0 -1
  81. package/dist/publicKey-EHY5LDOP.cjs +0 -8
  82. package/dist/publicKey-EHY5LDOP.cjs.map +0 -1
  83. package/dist/publicKey-LX6G3T7L.mjs +0 -8
  84. package/dist/rsalib-GGMEGQT2.cjs +0 -9
  85. package/dist/rsalib-GGMEGQT2.cjs.map +0 -1
  86. package/dist/rsalib-HO4SSCTO.mjs +0 -9
  87. package/dist/rsalib-HO4SSCTO.mjs.map +0 -1
  88. /package/dist/{YDRZ-M2NM4ZC5.mjs.map → YDRZ-PHOHCFZ7.mjs.map} +0 -0
  89. /package/dist/{chunk-JRQEIAY5.mjs.map → publicKey-UVL2ID6N.mjs.map} +0 -0
  90. /package/dist/{publicKey-LX6G3T7L.mjs.map → rsalib-FMWPCK5N.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -1,129 +1,186 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFT3OOTMTcjs = require('./chunk-FT3OOTMT.cjs');
3
+ var _chunk4LG74IW5cjs = require('./chunk-4LG74IW5.cjs');
4
4
 
5
5
 
6
- var _chunk6EZ26DPYcjs = require('./chunk-6EZ26DPY.cjs');
6
+ var _chunkXQIVVOH2cjs = require('./chunk-XQIVVOH2.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkZEGJU5LWcjs = require('./chunk-ZEGJU5LW.cjs');
10
+
11
+ var _chunkTVZESJ3Jcjs = require('./chunk-TVZESJ3J.cjs');
11
12
 
12
13
  // src/modules/search.ts
13
14
  var searchSong = async (text, page = 1) => {
14
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
15
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
15
16
  };
16
17
 
17
18
  // src/modules/search_playlist.ts
18
19
  var searchPlaylist = async (text, page = 1, typeOrder = 0) => {
19
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
20
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
20
21
  };
21
22
 
22
23
  // src/modules/search_album.ts
23
24
  var searchAlbum = async (text, page = 1, typeOrder = 0) => {
24
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
25
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
25
26
  };
26
27
 
27
28
  // src/modules/search_singer.ts
28
29
  var searchSinger = async (text, page = 1) => {
29
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/singer/v2.0?pageNo=${page}&text=${text}`);
30
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/singer/v2.0?pageNo=${page}&text=${text}`);
30
31
  };
31
32
 
32
33
  // src/modules/search_concert.ts
33
34
  var searchConcert = async (text, page = 1) => {
34
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/concert/v1.0?pageNo=${page}&text=${text}`);
35
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/concert/v1.0?pageNo=${page}&text=${text}`);
35
36
  };
36
37
 
37
38
  // src/modules/search_hot.ts
38
39
  var getSearchHot = async () => {
39
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/bmw/hot-search/search-rank-list/v1.0`);
40
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/bmw/hot-search/search-rank-list/v1.0`);
40
41
  };
41
42
 
42
43
  // src/modules/search_default.ts
43
44
  var getSearchDefault = async () => {
44
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/search/default-text/v3.0?resourceVersion=2`);
45
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/search/default-text/v3.0?resourceVersion=2`);
45
46
  };
46
47
 
47
48
  // src/modules/search_mv.ts
48
49
  var searchMv = async (text, page = 1, typeOrder = 0) => {
49
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/video/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
50
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/video/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
50
51
  };
51
52
 
52
53
  // src/modules/search_suggest.ts
53
54
  var searchSuggest = async (text) => {
54
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/suggest/v1.0?text=${text}`);
55
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/suggest/v1.0?text=${text}`);
55
56
  };
56
57
 
57
- // src/modules/search_rbt.ts
58
- var searchRbt = async (text, page = 1) => {
59
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/rbt/v1.0?pageNo=${page}&text=${text}`);
58
+ // src/modules/search_crbt.ts
59
+ var searchCrbt = async (text, page = 1) => {
60
+ const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
61
+ "https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/tone_search_all.do",
62
+ {
63
+ params: {
64
+ pageNo: _nullishCoalesce(page, () => ( 1)),
65
+ text
66
+ }
67
+ }
68
+ );
69
+ const items = _optionalChain([res, 'access', _ => _.data, 'optionalAccess', _2 => _2.toneList, 'access', _3 => _3.map, 'call', _4 => _4((item) => {
70
+ const rbt = item.rbtSongItem || {};
71
+ const highlights = rbt.highLight || [];
72
+ const singerList = (rbt.singer.split("|") || []).map((name) => ({
73
+ "id": "",
74
+ "name": name,
75
+ "img": "",
76
+ "nameSpelling": ""
77
+ }));
78
+ return { song: {
79
+ "resourceType": rbt.resourceType,
80
+ "contentId": rbt.contentId,
81
+ "songId": rbt.songId,
82
+ "songName": rbt.songName,
83
+ "copyrightId": rbt.copyrightId,
84
+ "copyrightType": parseInt(rbt.copyright),
85
+ "ringToneId": rbt.contentId,
86
+ "ringCopyrightId": rbt.copyrightId,
87
+ "haveShockRing": 1,
88
+ "relatedSongs": rbt.relatedSongs || [],
89
+ "duration": 0,
90
+ "img1": _optionalChain([rbt, 'access', _5 => _5.imgItems, 'optionalAccess', _6 => _6[0], 'optionalAccess', _7 => _7.img]) || "",
91
+ "img2": _optionalChain([rbt, 'access', _8 => _8.imgItems, 'optionalAccess', _9 => _9[1], 'optionalAccess', _10 => _10.img]) || "",
92
+ "img3": _optionalChain([rbt, 'access', _11 => _11.imgItems, 'optionalAccess', _12 => _12[2], 'optionalAccess', _13 => _13.img]) || "",
93
+ "singerList": singerList,
94
+ "highlights": highlights,
95
+ // new
96
+ validTime: rbt.validTime,
97
+ price: rbt.price,
98
+ status: rbt.status,
99
+ vipType: rbt.vipType,
100
+ showLabels: rbt.showLabels || [],
101
+ opNumItem: rbt.opNumItem || {}
102
+ } };
103
+ })]) || [];
104
+ return {
105
+ code: res.code,
106
+ info: res.info,
107
+ data: {
108
+ hasNext: _optionalChain([res, 'access', _14 => _14.data, 'optionalAccess', _15 => _15.toneList, 'optionalAccess', _16 => _16.length]) === 30,
109
+ items
110
+ }
111
+ };
112
+ };
113
+
114
+ // src/modules/search_vrbt.ts
115
+ var searchVrbt = async (text, page = 1) => {
116
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/rbt/v1.0?pageNo=${page}&text=${text}`);
60
117
  };
61
118
 
62
119
  // src/modules/search_ticket.ts
63
120
  var searchTicket = async (text, page = 1) => {
64
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/ticket/v1.0?pageNo=${page}&text=${text}`);
121
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/ticket/v1.0?pageNo=${page}&text=${text}`);
65
122
  };
66
123
 
67
124
  // src/modules/search_singerTab.ts
68
125
  var getSearchSingerTab = async () => {
69
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/tabs/v2.0`);
126
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/tabs/v2.0`);
70
127
  };
71
128
 
72
129
  // src/modules/search_singerTab_list.ts
73
130
  var getSearchSingerTabList = async (tab = "") => {
74
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/list/v1.0?tab=${tab}&templateVersion=3`);
131
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/list/v1.0?tab=${tab}&templateVersion=3`);
75
132
  };
76
133
 
77
134
  // src/modules/album_info.ts
78
135
  var getAlbumInfo = async (albumId) => {
79
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/album/v2.0?albumId=${albumId}`);
136
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/album/v2.0?albumId=${albumId}`);
80
137
  };
81
138
 
82
139
  // src/modules/album_song.ts
83
140
  var getAlbumSong = async (albumId, page = 1) => {
84
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/resource/album/song/v2.0?albumId=${albumId}&pageNo=${page}`);
141
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/resource/album/song/v2.0?albumId=${albumId}&pageNo=${page}`);
85
142
  };
86
143
 
87
144
  // src/modules/playlist_info.ts
88
145
  var getPlaylistInfo = async (playlistId) => {
89
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/playlist/v2.0?playlistId=${playlistId}`);
146
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/playlist/v2.0?playlistId=${playlistId}`);
90
147
  };
91
148
 
92
149
  // src/modules/playlist_song.ts
93
150
  var getPlaylistSong = async (playlistId, page = 1, size = 20) => {
94
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/playlist/song/v2.0?pageNo=${page}&pageSize=${size}&playlistId=${playlistId}`);
151
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/playlist/song/v2.0?pageNo=${page}&pageSize=${size}&playlistId=${playlistId}`);
95
152
  };
96
153
 
97
154
  // src/modules/singer_index.ts
98
155
  var getSingerIndex = async (singerId) => {
99
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/index/v1.0?singerId=${singerId}`);
156
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/index/v1.0?singerId=${singerId}`);
100
157
  };
101
158
 
102
159
  // src/modules/singer_song.ts
103
160
  var getSingerSong = async (singerId, page = 1) => {
104
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/song/v1.0?pageNo=${page}&singerId=${singerId}&type=1`);
161
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/song/v1.0?pageNo=${page}&singerId=${singerId}&type=1`);
105
162
  };
106
163
 
107
164
  // src/modules/singer_album.ts
108
165
  var getSingerAlbum = async (singerId, page = 1) => {
109
- const res = await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
110
- _optionalChain([res, 'optionalAccess', _ => _.data, 'optionalAccess', _2 => _2.header, 'optionalAccess', _3 => _3.nextPageUrl]) ? res.data.header.hasNext = true : res.data.header.hasNext = false;
166
+ const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
167
+ _optionalChain([res, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.header, 'optionalAccess', _19 => _19.nextPageUrl]) ? res.data.header.hasNext = true : res.data.header.hasNext = false;
111
168
  return res;
112
169
  };
113
170
 
114
171
  // src/modules/rank_index.ts
115
172
  var getRankIndex = async () => {
116
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/rank/rank-index/v1.0`);
173
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/rank/rank-index/v1.0`);
117
174
  };
118
175
 
119
176
  // src/modules/rank_info.ts
120
177
  var getRankInfo = async (rankId, page = 1) => {
121
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/rank/rank-info/v1.0?pageNo=${page}&rankId=${rankId}`);
178
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/rank/rank-info/v1.0?pageNo=${page}&rankId=${rankId}`);
122
179
  };
123
180
 
124
181
  // src/modules/recommend_playlist.ts
125
182
  var getRecommendPlaylist = async () => {
126
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/index-show/recommend-playlist/v3.0`);
183
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/index-show/recommend-playlist/v3.0`);
127
184
  };
128
185
 
129
186
  // src/modules/recommend_song.ts
@@ -136,11 +193,11 @@ var getSceneRecommend = async (scene = "TODAY_RECOMMEND", size = 10) => {
136
193
  } else {
137
194
  return { error: "scene\u53C2\u6570\u9519\u8BEF PRIVATE_FM \u6216 TODAY_RECOMMEND" };
138
195
  }
139
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
196
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
140
197
  `https://app.c.nf.migu.cn/pc/resource-dataloader/recommend-song/v1.0?${params}`,
141
198
  {
142
199
  headers: {
143
- "deviceId": _chunk6EZ26DPYcjs.getDeviceId.call(void 0, )
200
+ "deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, )
144
201
  }
145
202
  }
146
203
  );
@@ -151,14 +208,14 @@ var getRadioRecommend = async (type = 1) => {
151
208
  if (type !== 1 && type !== 2) {
152
209
  return { error: "type must be 1 or 2" };
153
210
  }
154
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
211
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
155
212
  `https://app.c.nf.migu.cn/pc/column/music-radio/recommend/song/v2.0?remain=0&actionId=1&type=${type}`,
156
213
  {
157
214
  method: "GET",
158
215
  headers: {
159
216
  "Referer": "https://music.migu.cn/",
160
217
  "channel": "014X031",
161
- "deviceId": _chunk6EZ26DPYcjs.getDeviceId.call(void 0, ),
218
+ "deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, ),
162
219
  "recommendstatus": "1"
163
220
  }
164
221
  }
@@ -167,20 +224,20 @@ var getRadioRecommend = async (type = 1) => {
167
224
 
168
225
  // src/modules/comment.ts
169
226
  var getComment = async (resourceId, resourceType = 2, size = 20, hotCommentStart = 0) => {
170
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://u.musicapp.migu.cn/MIGUM3.0/user/comment/stack/v1.0?resourceId=${resourceId}&resourceType=${resourceType}&pageSize=${size}&hotCommentStart=${hotCommentStart}&platformType=1&commentId=0&queryType=1`);
227
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://u.musicapp.migu.cn/MIGUM3.0/user/comment/stack/v1.0?resourceId=${resourceId}&resourceType=${resourceType}&pageSize=${size}&hotCommentStart=${hotCommentStart}&platformType=1&commentId=0&queryType=1`);
171
228
  };
172
229
 
173
230
  // src/modules/resourceinfo.ts
174
231
  var getResourceInfo = async (resourceIds = "", copyrightIds = "", resourceType = 2) => {
175
232
  resourceIds = resourceIds.replace(/,/g, "|");
176
233
  copyrightIds = copyrightIds.replace(/,/g, "|");
177
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${resourceIds}&copyrightId=${copyrightIds}&resourceType=${resourceType}`);
234
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${resourceIds}&copyrightId=${copyrightIds}&resourceType=${resourceType}`);
178
235
  };
179
236
 
180
237
  // src/modules/can-listen.ts
181
238
  var checkCanListen = async (contentIds) => {
182
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
183
- `https://app.c.nf.migu.cn/strategy/pc/can-listen/v1.0`,
239
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
240
+ `https://app.c.vip.migu.cn/strategy/pc/can-listen/v1.0`,
184
241
  {
185
242
  method: "post",
186
243
  headers: {
@@ -197,28 +254,30 @@ var checkCanListen = async (contentIds) => {
197
254
 
198
255
  // src/modules/opNum.ts
199
256
  var getOpNum = async (ids) => {
200
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/opnum/query-optype-v1.0?opType=play&resourceType=2021&ids=${ids}`);
257
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/opnum/query-optype-v1.0?opType=play&resourceType=2021&ids=${ids}`);
201
258
  };
202
259
 
203
260
  // src/modules/url_v1.ts
204
261
  var getUrlV1 = async (contentId, copyrightId, toneFlag = "PQ", resourceType = "2") => {
205
- const data = await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
206
- `https://app.c.nf.migu.cn/MIGUM3.0/strategy/pc/listen/v1.0?contentId=${contentId}&copyrightId=${copyrightId}&resourceType=${resourceType}&toneFlag=PQ`,
262
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
263
+ `https://app.c.vip.migu.cn/MIGUM3.0/strategy/pc/listen/v1.0`,
207
264
  {
265
+ params: {
266
+ contentId,
267
+ copyrightId,
268
+ resourceType,
269
+ toneFlag: "PQ"
270
+ },
208
271
  headers: {
209
272
  "Channel": "014X031"
210
273
  }
211
274
  }
212
275
  );
213
- data.data.oriUrl = data.data.url || "";
214
- data.data.url = _chunkFT3OOTMTcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
215
- return data;
216
276
  };
217
277
 
218
278
  // src/modules/url_v2.ts
219
- var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
220
279
  var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") => {
221
- const deviceId = _chunk6EZ26DPYcjs.getDeviceId.call(void 0, );
280
+ const deviceId = _chunkXQIVVOH2cjs.getDeviceId.call(void 0, );
222
281
  const timestamp = Date.now();
223
282
  const headers = {
224
283
  "channel": "014X031",
@@ -233,48 +292,25 @@ var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") =
233
292
  "timestamp": timestamp.toString(),
234
293
  "referer": "https://music.migu.cn/"
235
294
  };
236
- const res = await _axios2.default.get(
237
- `https://app.c.nf.migu.cn/strategy/pc/listen/v2.0?contentId=${contentId}&copyrightId=${copyrightId}&scene=&netType=01&resourceType=2&toneFlag=${toneFlag}`,
295
+ const buf = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
296
+ `https://app.c.nf.migu.cn/strategy/pc/listen/v2.0`,
238
297
  {
298
+ params: {
299
+ contentId,
300
+ copyrightId,
301
+ scene: "",
302
+ netType: "01",
303
+ resourceType: "2",
304
+ toneFlag
305
+ },
239
306
  headers,
240
307
  responseType: "arraybuffer"
241
308
  }
242
309
  );
243
- return await decryptData(res.data);
244
- };
245
- var SECURE = "Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP";
246
- var aw = 171;
247
- var iw = 205;
248
- var ow = 1;
249
- function textEncode(e) {
250
- return new TextEncoder().encode(e);
251
- }
252
- function textDecode(e) {
253
- return new TextDecoder("utf-8").decode(e);
254
- }
255
- function decryptBlob(e, r) {
256
- if (r.length == 0)
257
- return null;
258
- var n = e.length;
259
- if (n < 4 || !(e[0] == aw && e[1] == iw) || e[2] != ow)
260
- return null;
261
- for (var t = e[3], a = textEncode(r), i = a.length, o = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
262
- o[s] = e[c] + t - a[s % i];
263
- return o;
264
- }
265
- function decryptData(buf) {
266
- let l = buf, a = SECURE, u = decryptBlob(new Uint8Array(l), a), p = u ? textDecode(u) : null;
267
- try {
268
- const data = p ? JSON.parse(p) : null;
269
- return data;
270
- } catch (e) {
271
- return null;
272
- }
273
- ;
274
- }
310
+ return _chunk4LG74IW5cjs.decryptData.call(void 0, buf);
311
+ };
275
312
 
276
313
  // src/modules/url_h5v2.4.ts
277
-
278
314
  var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
279
315
  const headers = {
280
316
  "birth": "h5page",
@@ -283,60 +319,19 @@ var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
283
319
  "location-data": "30.6698676660,104.1229614820",
284
320
  "location-info": ""
285
321
  };
286
- const res = await _axios2.default.get(
322
+ const buf = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
287
323
  `https://c.musicapp.migu.cn/strategy/listen-url/h5/v2.4?contentId=${contentId}&copyrightId=${copyrightId}&resourceType=2&netType=01&toneFlag=PQ&scene=&lowerQualityContentId=${contentId}`,
288
324
  {
289
325
  headers,
290
326
  responseType: "arraybuffer"
291
327
  }
292
328
  );
293
- const data = await decryptData2(res.data);
294
- if (_optionalChain([data, 'optionalAccess', _4 => _4.data, 'optionalAccess', _5 => _5.url]) === "") {
295
- return { success: false, error: "URL \u4E3A\u7A7A" };
296
- }
297
- data.data.oriUrl = data.data.url || "";
298
- data.data.url = _chunkFT3OOTMTcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
299
- return data;
300
- };
301
- var SECURE2 = ["Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP"];
302
- function strToUtf8Bytes(e) {
303
- return new TextEncoder().encode(e);
304
- }
305
- function utf8Bytes2str(bytes) {
306
- const result = [];
307
- for (const byte of bytes) {
308
- if (byte < 16) {
309
- result.push(String.fromCharCode(byte));
310
- } else {
311
- result.push("%");
312
- result.push(byte.toString(16));
313
- }
314
- }
315
- return decodeURIComponent(result.join(""));
316
- }
317
- function decode(e, t) {
318
- if (0 == t.length)
319
- return null;
320
- var n = e.length;
321
- if (n < 4)
322
- return null;
323
- if (171 != e[0] || 205 != e[1])
324
- return null;
325
- if (1 != e[2])
326
- return null;
327
- for (var r = e[3], o = strToUtf8Bytes(t), a = o.length, i = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
328
- i[s] = e[c] + r - o[s % a];
329
- return i;
330
- }
331
- var decryptData2 = (ab) => {
332
- const r = decode(new Uint8Array(ab), SECURE2[0]);
333
- const d = utf8Bytes2str(r);
334
- return JSON.parse(d);
329
+ return _chunk4LG74IW5cjs.decryptData.call(void 0, buf);
335
330
  };
336
331
 
337
332
  // src/modules/version.ts
338
333
  var getVersion = async () => {
339
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
334
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
340
335
  `https://app.c.nf.migu.cn/column/client/version/v1.0`,
341
336
  {
342
337
  headers: {
@@ -350,13 +345,13 @@ var getVersion = async () => {
350
345
  // src/modules/mv_info.ts
351
346
  var getMvInfo = async (mvContentIds) => {
352
347
  mvContentIds = mvContentIds.replace(/,/g, "|");
353
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${mvContentIds}&resourceType=D&needSimple=01`);
348
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${mvContentIds}&resourceType=D&needSimple=01`);
354
349
  };
355
350
 
356
351
  // src/modules/mv_hls.ts
357
352
  var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012", needHttps = true) => {
358
353
  url = encodeURIComponent(url);
359
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
354
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
360
355
  `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/mvplayinfo.do?format=${format}&mvContentId=${mvContentId}&mvCopyrightId=${mvCopyrightId}&needHttps=${needHttps}&size=${size}&url=${url}`,
361
356
  {
362
357
  method: "GET",
@@ -369,7 +364,7 @@ var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012",
369
364
 
370
365
  // src/modules/passport_checkToken.ts
371
366
  var checkToken = async (token = "") => {
372
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
367
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
373
368
  `https://c.musicapp.migu.cn/mgateway/api/checkPacMtoken`,
374
369
  {
375
370
  headers: {
@@ -380,8 +375,8 @@ var checkToken = async (token = "") => {
380
375
  };
381
376
 
382
377
  // src/modules/passport_pacmToken.ts
383
- var getPacmToken = async (token = "", type = "2", sourceId = "220029", activityId = "MUSIC-WWW") => {
384
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
378
+ var getPacmToken = async (token, type = "2", sourceId = "220029", activityId = "MUSIC-WWW") => {
379
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
385
380
  `https://c.musicapp.migu.cn/user/h5/token-validate/v3.0?token=${token}&type=${type}&sourceId=${sourceId}&activityId=${activityId}`,
386
381
  {
387
382
  cookie: { idmpauth: "true@passport.migu.cn" },
@@ -398,12 +393,12 @@ var getPacmToken = async (token = "", type = "2", sourceId = "220029", activityI
398
393
 
399
394
  // src/modules/ticket.ts
400
395
  var getTicketInfo = async (page = 1, size = 20) => {
401
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/ticket/home/ticket?pageNum=${page}&pageCount=${size}`);
396
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/ticket/home/ticket?pageNum=${page}&pageCount=${size}`);
402
397
  };
403
398
 
404
399
  // src/modules/user_badge.ts
405
400
  var getUserBadge = async (pacmtoken) => {
406
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/open/api/member/icon/v1.0", {
401
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/open/api/member/icon/v1.0", {
407
402
  cookie: { pacmtoken },
408
403
  headers: {
409
404
  "Referer": "https://music.migu.cn/",
@@ -416,7 +411,7 @@ var getUserBadge = async (pacmtoken) => {
416
411
 
417
412
  // src/modules/user_queryInfo.ts
418
413
  var queryUserInfo = async (pacmtoken) => {
419
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/h5/queryUserInfo/v1.0", {
414
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/h5/queryUserInfo/v1.0", {
420
415
  cookie: { pacmtoken },
421
416
  headers: {
422
417
  "channel": "014X031",
@@ -428,7 +423,7 @@ var queryUserInfo = async (pacmtoken) => {
428
423
 
429
424
  // src/modules/user_homePage.ts
430
425
  var getUserHomePage = async (pacmtoken) => {
431
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/home-page/v2.0", {
426
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/home-page/v2.0", {
432
427
  cookie: { pacmtoken }
433
428
  });
434
429
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -436,7 +431,7 @@ var getUserHomePage = async (pacmtoken) => {
436
431
 
437
432
  // src/modules/user_recom_today.ts
438
433
  var getTodayRecommend = async (pacmtoken) => {
439
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/v1.0/template/todayRecommendList/release?actionId=1&index=1&templateVersion=5", {
434
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/v1.0/template/todayRecommendList/release?actionId=1&index=1&templateVersion=5", {
440
435
  cookie: { pacmtoken }
441
436
  });
442
437
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -444,7 +439,7 @@ var getTodayRecommend = async (pacmtoken) => {
444
439
 
445
440
  // src/modules/user_collect_list.ts
446
441
  var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
447
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/user/collection/v1.0?pageNo=${page}&type=1&OPType=03&pageSize=${size}&resourceType=2021`, {
442
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/user/collection/v1.0?pageNo=${page}&type=1&OPType=03&pageSize=${size}&resourceType=2021`, {
448
443
  cookie: { pacmtoken }
449
444
  });
450
445
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -452,7 +447,7 @@ var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
452
447
 
453
448
  // src/modules/user_myList.ts
454
449
  var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
455
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/my-music-list/v1.0?queryType=${queryType}&pageNo=${page}&pageSize=${size}`, {
450
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/my-music-list/v1.0?queryType=${queryType}&pageNo=${page}&pageSize=${size}`, {
456
451
  cookie: { pacmtoken }
457
452
  });
458
453
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -460,17 +455,17 @@ var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
460
455
 
461
456
  // src/modules/singer_similar.ts
462
457
  var getSingerSimilar = async (singerId) => {
463
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/recommend-singer/similar/v1.0?singerId=${singerId}`);
458
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/recommend-singer/similar/v1.0?singerId=${singerId}`);
464
459
  };
465
460
 
466
461
  // src/modules/recommend_similarSong.ts
467
462
  var getSimilarSongRecommend = async (contentId = "") => {
468
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
463
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
469
464
  `https://app.c.nf.migu.cn/bmw/recommend-song/similar/v1.0?contentId=${contentId}`,
470
465
  {
471
466
  method: "GET",
472
467
  headers: {
473
- "deviceId": _chunk6EZ26DPYcjs.getDeviceId.call(void 0, ),
468
+ "deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, ),
474
469
  "recommendstatus": "1"
475
470
  }
476
471
  }
@@ -479,22 +474,22 @@ var getSimilarSongRecommend = async (contentId = "") => {
479
474
 
480
475
  // src/modules/mv_recommend.ts
481
476
  var getMVRecommend = async (mvContentId, page = 1) => {
482
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM3.0/v3.0/content/recommend-mv?resourceId=${mvContentId}&pageNumber=${page}&resourceType=D`);
477
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM3.0/v3.0/content/recommend-mv?resourceId=${mvContentId}&pageNumber=${page}&resourceType=D`);
483
478
  };
484
479
 
485
480
  // src/modules/playlist_square_page.ts
486
481
  var getSquarePage = async () => {
487
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
482
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
488
483
  };
489
484
 
490
485
  // src/modules/search_lrc.ts
491
486
  var searchLrc = async (text, page = 1) => {
492
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/lrc/v1.0?pageNo=${page}&text=${text}`);
487
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/lrc/v1.0?pageNo=${page}&text=${text}`);
493
488
  };
494
489
 
495
490
  // src/modules/recommend_radio_all.ts
496
491
  var getRadioRecommendAll = async (pacmtoken = "") => {
497
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/music-radio/v1.0?templateVersion=1`, {
492
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/music-radio/v1.0?templateVersion=1`, {
498
493
  cookie: pacmtoken ? { pacmtoken } : void 0
499
494
  });
500
495
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -506,16 +501,16 @@ var getSVideoInfo = async (contentIds) => {
506
501
  contentIdList.map((item) => {
507
502
  return "6000," + item;
508
503
  }).join("|");
509
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/video-info/by-id/v1.0?requestParams=${contentIdList}`);
504
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/video-info/by-id/v1.0?requestParams=${contentIdList}`);
510
505
  };
511
506
 
512
507
  // src/modules/svideo_search.ts
513
508
  var searchSVideo = async (text, page = 1) => {
514
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
509
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
515
510
  `https://app.c.nf.migu.cn/bmw/hot-search/search/videos/v1.0?pageIndex=${page}&text=${text}`,
516
511
  {
517
512
  headers: {
518
- "deviceid": _chunk6EZ26DPYcjs.getDeviceId.call(void 0, )
513
+ "deviceid": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, )
519
514
  }
520
515
  }
521
516
  );
@@ -523,30 +518,30 @@ var searchSVideo = async (text, page = 1) => {
523
518
 
524
519
  // src/modules/svideo_searchSuggest.ts
525
520
  var getSVideoSearchSuggest = async (text) => {
526
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/search-suggest/search/v1.0?text=${text}`);
521
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/search-suggest/search/v1.0?text=${text}`);
527
522
  };
528
523
 
529
524
  // src/modules/svideo_url.ts
530
525
  var getSVideoUrl = async (contentIds, formatType = "HQ") => {
531
526
  contentIds = contentIds.replace(/,/g, "|");
532
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/strategy/short-video/play/v1.0?contentIds=${contentIds}&formatType=${formatType}`);
527
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.vip.migu.cn/strategy/short-video/play/v1.0?contentIds=${contentIds}&formatType=${formatType}`);
533
528
  };
534
529
 
535
530
  // src/modules/svideo_userContent.ts
536
531
  var getSVideoUserContent = async (videoUserId, nextPageId = "") => {
537
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/i/user-content-list/v1.0?nextPageId=${nextPageId}&videoUserId=${videoUserId}`);
532
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/i/user-content-list/v1.0?nextPageId=${nextPageId}&videoUserId=${videoUserId}`);
538
533
  };
539
534
 
540
535
  // src/modules/vrbt_opNum.ts
541
536
  var getVrbtOpNum = async (contentIds) => {
542
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/vrbt/opnum/v1.0?resourceType=M&contentIds=${contentIds}`);
537
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/vrbt/opnum/v1.0?resourceType=M&contentIds=${contentIds}`);
543
538
  };
544
539
 
545
540
  // src/modules/vrbt_url.ts
546
541
  var getVrbtUrl = async (contentIds) => {
547
542
  contentIds = contentIds.replace(/,/g, "|");
548
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
549
- `https://app.c.nf.migu.cn/strategy/vrbt/play/v1.0?contentIds=${contentIds}`,
543
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
544
+ `https://app.c.vip.migu.cn/strategy/vrbt/play/v1.0?contentIds=${contentIds}`,
550
545
  {
551
546
  headers: {
552
547
  "channel": "014X031"
@@ -556,12 +551,11 @@ var getVrbtUrl = async (contentIds) => {
556
551
  };
557
552
 
558
553
  // src/modules/lyric.ts
559
-
560
554
  var getLyric = async (contentId, type = "lrc") => {
561
555
  if (contentId === "") return { error: "contentId is empty!", success: false };
562
556
  const types = type.split(",");
563
557
  if (types.length === 0) return { error: "types is empty!", success: false };
564
- const res = await _axios2.default.get(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
558
+ const res = await _chunkTVZESJ3Jcjs._fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
565
559
  const code = res.data.code.toString() || "";
566
560
  const data = res.data.resource[0] || {};
567
561
  if (code !== "000000") return {
@@ -574,7 +568,7 @@ var getLyric = async (contentId, type = "lrc") => {
574
568
  if (types.includes("lrc")) {
575
569
  lrcUrl = data.lrcUrl || "";
576
570
  if (lrcUrl !== "") {
577
- const lrcRes = await _axios2.default.get(lrcUrl);
571
+ const lrcRes = await _chunkTVZESJ3Jcjs._fetch.call(void 0, lrcUrl);
578
572
  if (lrcRes.status === 200) {
579
573
  lrc = lrcRes.data || "";
580
574
  }
@@ -583,7 +577,7 @@ var getLyric = async (contentId, type = "lrc") => {
583
577
  if (types.includes("trc")) {
584
578
  trcUrl = data.trcUrl || "";
585
579
  if (trcUrl !== "") {
586
- const trcRes = await _axios2.default.get(trcUrl);
580
+ const trcRes = await _chunkTVZESJ3Jcjs._fetch.call(void 0, trcUrl);
587
581
  if (trcRes.status === 200) {
588
582
  trc = trcRes.data || "";
589
583
  }
@@ -627,7 +621,7 @@ var addUserCollect = async (pacmtoken, type, contentId, title, userId) => {
627
621
  } else {
628
622
  return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist\u6216comment\u6216album" };
629
623
  }
630
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
624
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
631
625
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/add_collection.do`,
632
626
  { params: jsonParams, cookie: { pacmtoken } }
633
627
  );
@@ -659,7 +653,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
659
653
  } else {
660
654
  return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist,comment\u6216album" };
661
655
  }
662
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
656
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
663
657
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/del_collection.do`,
664
658
  { params: jsonParams, cookie: { pacmtoken } }
665
659
  );
@@ -669,7 +663,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
669
663
  // src/modules/user_like_add.ts
670
664
  var likeSong = async (pacmtoken, contentIds) => {
671
665
  const contentIdsList = contentIds.split(",");
672
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
666
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
673
667
  method: "POST",
674
668
  cookie: { pacmtoken },
675
669
  body: JSON.stringify({
@@ -689,7 +683,7 @@ var dislikeSong = async (pacmtoken, contentId) => {
689
683
  "contentId": contentId,
690
684
  "songflag": "2"
691
685
  };
692
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
686
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
693
687
  method: "POST",
694
688
  cookie: { pacmtoken },
695
689
  body: JSON.stringify(body),
@@ -708,7 +702,7 @@ var editUserMyList = async (pacmtoken, title, playlistId) => {
708
702
  "id": playlistId,
709
703
  "songflag": "0"
710
704
  };
711
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
705
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
712
706
  method: "POST",
713
707
  cookie: { pacmtoken },
714
708
  body: JSON.stringify(body),
@@ -726,7 +720,7 @@ var addUserMyList = async (pacmtoken, title) => {
726
720
  "channel": "23",
727
721
  "type": "self_build"
728
722
  };
729
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/open/api/music-list/add/v2.0`, {
723
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/open/api/music-list/add/v2.0`, {
730
724
  method: "POST",
731
725
  cookie: { pacmtoken },
732
726
  body: JSON.stringify(body),
@@ -739,7 +733,7 @@ var addUserMyList = async (pacmtoken, title) => {
739
733
 
740
734
  // src/modules/user_myList_remove.ts
741
735
  var removeUserMyList = async (pacmtoken, playlistId) => {
742
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/user/deleteMusicList.do?channel=23&id=${playlistId}`, {
736
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/user/deleteMusicList.do?channel=23&id=${playlistId}`, {
743
737
  cookie: { pacmtoken }
744
738
  });
745
739
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -747,22 +741,22 @@ var removeUserMyList = async (pacmtoken, playlistId) => {
747
741
 
748
742
  // src/modules/radio_song.ts
749
743
  var getRadioSong = async (radioId, page = 1) => {
750
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/column/music-radio/scene/song/v3.0?remain=0&pageNo=${page}&actionId=1&radioId=${radioId}`);
744
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/column/music-radio/scene/song/v3.0?remain=0&pageNo=${page}&actionId=1&radioId=${radioId}`);
751
745
  };
752
746
 
753
747
  // src/modules/column_newCD.ts
754
748
  var getNewCDList = async () => {
755
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-cd-list-header`);
749
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-cd-list-header`);
756
750
  };
757
751
 
758
752
  // src/modules/column_newSong.ts
759
753
  var getNewSongList = async () => {
760
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-music-list-header`);
754
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-music-list-header`);
761
755
  };
762
756
 
763
757
  // src/modules/column_info.ts
764
758
  var getColumnInfo = async (columnId) => {
765
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/column-info/h5/v2.0?columnId=${columnId}`);
759
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/column-info/h5/v2.0?columnId=${columnId}`);
766
760
  };
767
761
 
768
762
  // src/modules/user_myList_song_add.ts
@@ -771,7 +765,7 @@ var addSongToMyList = async (pacmtoken, playlistId, contentIds) => {
771
765
  "id": playlistId,
772
766
  "contentIds": contentIds.split(",")
773
767
  };
774
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
768
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
775
769
  method: "POST",
776
770
  cookie: { pacmtoken },
777
771
  body: JSON.stringify(body),
@@ -790,7 +784,7 @@ var removeSongFromMyList = async (pacmtoken, playlistId, contentId) => {
790
784
  "contentId": contentId,
791
785
  "id": playlistId
792
786
  };
793
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
787
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
794
788
  method: "POST",
795
789
  cookie: { pacmtoken },
796
790
  body: JSON.stringify(body),
@@ -811,17 +805,17 @@ var getSVideoUserInfo = async (type, uid = "", videoUserId = "") => {
811
805
  } else {
812
806
  return { error: "Invalid parameter type", success: false };
813
807
  }
814
- return _chunkZEGJU5LWcjs.h5fetch.call(void 0, url);
808
+ return _chunkTVZESJ3Jcjs.h5fetch.call(void 0, url);
815
809
  };
816
810
 
817
811
  // src/modules/concert_info.ts
818
812
  var getConcertInfo = async (concertId) => {
819
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
813
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
820
814
  };
821
815
 
822
816
  // src/modules/concert_url.ts
823
817
  var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
824
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
818
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
825
819
  `https://c.musicapp.migu.cn/MIGUM2.0/v2.1/danmaku/liveServerHosts.do?concertId=${concertId}&liveId=${liveId}&liveType=1&rateLevel=${rateLevel}`,
826
820
  {
827
821
  headers: {
@@ -834,29 +828,29 @@ var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
834
828
 
835
829
  // src/modules/concert_detail.ts
836
830
  var getConcertDetail = async (concertId) => {
837
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/concert-detail/release?columnId=${concertId}&templateVersion=10`);
831
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/concert-detail/release?columnId=${concertId}&templateVersion=10`);
838
832
  };
839
833
 
840
834
  // src/modules/concert_comment.ts
841
835
  var getConcertComment = async (concertId, page = 1, size = 20) => {
842
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
836
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
843
837
  };
844
838
 
845
839
  // src/modules/playlist_match.ts
846
840
  var matchPlaylist = async (url) => {
847
841
  url = encodeURIComponent(url);
848
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/v1.0/content/get-import-songList?url=${url}`);
842
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/v1.0/content/get-import-songList?url=${url}`);
849
843
  };
850
844
 
851
845
  // src/modules/concert_mv.ts
852
846
  var getConcertRecommendMv = async (concertId) => {
853
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/v1.0/liveshow/query-mv-detail?concertId=${concertId}`);
847
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/v1.0/liveshow/query-mv-detail?concertId=${concertId}`);
854
848
  };
855
849
 
856
- // src/modules/mv_song.ts
850
+ // src/modules/song_mv.ts
857
851
  var getMvBySong = async (songId) => {
858
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
859
- `https://app.c.nf.migu.cn/MIGUM2.0/strategy/mv-player/video/v1.0?songId=${songId}`,
852
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
853
+ `https://app.c.vip.migu.cn/MIGUM2.0/strategy/mv-player/video/v1.0?songId=${songId}`,
860
854
  {
861
855
  headers: {
862
856
  "channel": "0146921"
@@ -877,7 +871,7 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
877
871
  "authorType": authorType
878
872
  };
879
873
  });
880
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
874
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
881
875
  `https://app.u.nf.migu.cn/user/i/social/is-follow-subscribe/v1.0`,
882
876
  {
883
877
  method: "POST",
@@ -894,12 +888,12 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
894
888
 
895
889
  // src/modules/playlist_vip.ts
896
890
  var getVipPlaylist = async (size = 10) => {
897
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/vip-exclusive/auditions-list/v1.0?pageSize=${size}`);
891
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/vip-exclusive/auditions-list/v1.0?pageSize=${size}`);
898
892
  };
899
893
 
900
894
  // src/modules/user_page_header.ts
901
895
  var getUserHeader = async (userId) => {
902
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
896
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
903
897
  `https://app.c.nf.migu.cn/user/api/my-page-header/v1.0`,
904
898
  { params: { userId } }
905
899
  );
@@ -910,7 +904,7 @@ var getUserSongPage = async (userId, videoUserId) => {
910
904
  if (!userId && !videoUserId) {
911
905
  return { data: { error: "userId or videoUserId is required" } };
912
906
  }
913
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
907
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
914
908
  `https://app.c.nf.migu.cn/user/api/my-page-music/v1.0`,
915
909
  {
916
910
  params: { userId, videoUserId },
@@ -928,18 +922,18 @@ var getPageInfo = async (id, type) => {
928
922
  return { success: false, data: { error: "choose pageId or sceneId to get page info" } };
929
923
  }
930
924
  const base = "https://app.c.nf.migu.cn/bmw", h = { headers: { recommendstatus: "1" } };
931
- if (type === "pageId") return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `${base}/page-info/v2.0?pageId=${id}`, h);
932
- if (type === "sceneId") return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `${base}/page/view/v1.0?columnId=${id}`, h);
925
+ if (type === "pageId") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `${base}/page-info/v2.0?pageId=${id}`, h);
926
+ if (type === "sceneId") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `${base}/page/view/v1.0?columnId=${id}`, h);
933
927
  };
934
928
 
935
929
  // src/modules/page_tab.ts
936
930
  var getPageTab = async () => {
937
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/music/nav-bar/v1.0`);
931
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/music/nav-bar/v1.0`);
938
932
  };
939
933
 
940
934
  // src/modules/svideo_recommend.ts
941
935
  var getSVideoRecommend = async (pacmtoken) => {
942
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource-dataloader/recommend-video/v2.0", {
936
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource-dataloader/recommend-video/v2.0", {
943
937
  method: "GET",
944
938
  cookie: { pacmtoken },
945
939
  params: {
@@ -953,7 +947,7 @@ var getSVideoRecommend = async (pacmtoken) => {
953
947
 
954
948
  // src/modules/follow_following_vra.ts
955
949
  var getFollowingVra = async (userId, page = 1) => {
956
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
950
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
957
951
  `https://app.c.nf.migu.cn/bmw/page-data/vrbt/follow-videouserlist/v2.0`,
958
952
  { params: {
959
953
  offset: page - 1,
@@ -965,7 +959,7 @@ var getFollowingVra = async (userId, page = 1) => {
965
959
 
966
960
  // src/modules/follow_follower.ts
967
961
  var getFollowerList = async (params) => {
968
- if (params.type === "music") return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
962
+ if (params.type === "music") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
969
963
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/follower.do`,
970
964
  { params: {
971
965
  pageNo: params.page || 1,
@@ -978,7 +972,7 @@ var getFollowerList = async (params) => {
978
972
  success: false,
979
973
  error: "userId or videoUserId is required"
980
974
  };
981
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
975
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
982
976
  `https://app.c.nf.migu.cn/user/i/social/fans-list/v1.0`,
983
977
  { params: {
984
978
  userId: params.userId,
@@ -992,7 +986,7 @@ var getFollowerList = async (params) => {
992
986
  var getFollowingList = async (userId, type, page = 1, size = 20) => {
993
987
  if (!userId) return { success: false, error: "userId is required" };
994
988
  if (type !== "user" && type !== "singer") return { success: false, error: "type is invalid" };
995
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
989
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
996
990
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/followingSingers.do`,
997
991
  { params: {
998
992
  "pageNo": page,
@@ -1005,7 +999,7 @@ var getFollowingList = async (userId, type, page = 1, size = 20) => {
1005
999
 
1006
1000
  // src/modules/follow_add.ts
1007
1001
  var addFollower = async (pacmtoken, singerId) => {
1008
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
1002
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
1009
1003
  `https://app.u.nf.migu.cn/user/social/api/add-follow/v1.0`,
1010
1004
  {
1011
1005
  params: {
@@ -1020,7 +1014,7 @@ var addFollower = async (pacmtoken, singerId) => {
1020
1014
 
1021
1015
  // src/modules/follow_remove.ts
1022
1016
  var removeFollower = async (pacmtoken, singerId) => {
1023
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
1017
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
1024
1018
  `https://app.u.nf.migu.cn/user/social/api/delete-follow/v1.0?followId=${singerId}`,
1025
1019
  { cookie: { pacmtoken } }
1026
1020
  );
@@ -1029,7 +1023,7 @@ var removeFollower = async (pacmtoken, singerId) => {
1029
1023
 
1030
1024
  // src/modules/passport_logout.ts
1031
1025
  var logout = async (pacmtoken) => {
1032
- const { data } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://c.musicapp.migu.cn/mgateway/api/clearPacMtoken`, {
1026
+ const { data } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://c.musicapp.migu.cn/mgateway/api/clearPacMtoken`, {
1033
1027
  cookie: { pacmtoken }
1034
1028
  });
1035
1029
  return data;
@@ -1037,7 +1031,7 @@ var logout = async (pacmtoken) => {
1037
1031
 
1038
1032
  // src/modules/share_video.ts
1039
1033
  var shareVideo = async (resourceType, contentId, userId) => {
1040
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1034
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1041
1035
  `https://app.c.nf.migu.cn/resource/share-info/v2.0`,
1042
1036
  { params: {
1043
1037
  "appId": "music",
@@ -1050,7 +1044,7 @@ var shareVideo = async (resourceType, contentId, userId) => {
1050
1044
 
1051
1045
  // src/modules/share_common.ts
1052
1046
  var shareCommon = async (resourceType, contentId, contentName, targetUserName, copyrightId) => {
1053
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1047
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1054
1048
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/content/shareInfo.do`,
1055
1049
  { params: {
1056
1050
  "appId": "music",
@@ -1066,7 +1060,7 @@ var shareCommon = async (resourceType, contentId, contentName, targetUserName, c
1066
1060
 
1067
1061
  // src/modules/user_audioBook.ts
1068
1062
  var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5) => {
1069
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://pd.musicapp.migu.cn/bmw/audio-book/my-audio-book/v1.0", {
1063
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://pd.musicapp.migu.cn/bmw/audio-book/my-audio-book/v1.0", {
1070
1064
  cookie: { pacmtoken },
1071
1065
  headers: { "isMock": "00" },
1072
1066
  params: {
@@ -1079,7 +1073,7 @@ var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5)
1079
1073
 
1080
1074
  // src/modules/user_listenRank.ts
1081
1075
  var getListenRank = async (pacmtoken, type) => {
1082
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/bmw/listen-song/ranking/v1.0`, {
1076
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/bmw/listen-song/ranking/v1.0`, {
1083
1077
  method: "POST",
1084
1078
  cookie: { pacmtoken },
1085
1079
  body: JSON.stringify({ "type": type === "year" ? 2 : 1 }),
@@ -1090,7 +1084,7 @@ var getListenRank = async (pacmtoken, type) => {
1090
1084
 
1091
1085
  // src/modules/cloud_url.ts
1092
1086
  var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
1093
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/listen-url/v1.0", {
1087
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/cloud/listen-url/v1.0", {
1094
1088
  cookie: { pacmtoken },
1095
1089
  headers: { "channel": "0146931", "version": "7.41.13" },
1096
1090
  params: {
@@ -1104,10 +1098,10 @@ var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
1104
1098
 
1105
1099
  // src/modules/url_dl_v1.ts
1106
1100
  var getDLUrlV1 = async (songId, toneFlag = "PQ") => {
1107
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1108
- `https://app.c.nf.migu.cn/MIGUM2.0/strategy/download-url/by-songid/v1.0`,
1101
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1102
+ `https://app.c.vip.migu.cn/MIGUM2.0/strategy/download-url/by-songid/v1.0`,
1109
1103
  {
1110
- headers: { "channel": "0146931", "version": "7.41.13" },
1104
+ headers: { "channel": "0146931", "version": "8.8.0" },
1111
1105
  params: {
1112
1106
  "formatType": toneFlag,
1113
1107
  songId
@@ -1121,7 +1115,7 @@ var emojiAction = async (pacmtoken, contentId, emojiId, action) => {
1121
1115
  if (action !== "add" && action !== "cancel") {
1122
1116
  return { data: { success: false, error: "action\u5FC5\u987B\u662Fadd\u6216cancel" }, newPacmToken: "" };
1123
1117
  }
1124
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-react-emoji/add-cancel/v1.0`, {
1118
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-react-emoji/add-cancel/v1.0`, {
1125
1119
  method: "POST",
1126
1120
  cookie: { pacmtoken },
1127
1121
  body: JSON.stringify({
@@ -1146,7 +1140,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
1146
1140
  "resourceId": id,
1147
1141
  "resourceType": "2"
1148
1142
  }));
1149
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-module/query/v1.0`, {
1143
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-module/query/v1.0`, {
1150
1144
  method: "POST",
1151
1145
  cookie: pacmtoken ? { pacmtoken } : void 0,
1152
1146
  body: JSON.stringify({ resourceModuleQueryParam }),
@@ -1158,7 +1152,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
1158
1152
  // src/modules/user_heartthrob.ts
1159
1153
  var getUserHeartthrob = async (pacmtoken, songId) => {
1160
1154
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: "" };
1161
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/resource-dataloader/recommend-song-listen/v1.0", {
1155
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/resource-dataloader/recommend-song-listen/v1.0", {
1162
1156
  cookie: { pacmtoken },
1163
1157
  params: { "songId": songId }
1164
1158
  });
@@ -1175,7 +1169,7 @@ var deleteCloudMusic = async (pacmtoken, contentIds) => {
1175
1169
  "contentId": item,
1176
1170
  "type": "0"
1177
1171
  }));
1178
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/user/cloud/music/local/v1.0", {
1172
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/user/cloud/music/local/v1.0", {
1179
1173
  method: "DELETE",
1180
1174
  body: JSON.stringify(deleteSongInfos),
1181
1175
  cookie: { pacmtoken },
@@ -1189,7 +1183,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
1189
1183
  if (!["fans", "collection"].includes(type)) {
1190
1184
  return { data: { success: false, error: "type must be fans or collection" }, newPacmToken: void 0 };
1191
1185
  }
1192
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v2.0/user/interaction.do`, {
1186
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v2.0/user/interaction.do`, {
1193
1187
  cookie: { pacmtoken },
1194
1188
  params: { "type": type === "fans" ? 2 : 1, pageNo: page, pageSize: size }
1195
1189
  });
@@ -1198,7 +1192,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
1198
1192
 
1199
1193
  // src/modules/user_message_notice.ts
1200
1194
  var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
1201
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/notifies.do`, {
1195
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/notifies.do`, {
1202
1196
  cookie: { pacmtoken },
1203
1197
  params: { pageNo: page, pageSize: size }
1204
1198
  });
@@ -1207,7 +1201,7 @@ var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
1207
1201
 
1208
1202
  // src/modules/user_message_thumbs.ts
1209
1203
  var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
1210
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/thumbsDetail.do`, {
1204
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/thumbsDetail.do`, {
1211
1205
  cookie: { pacmtoken },
1212
1206
  params: { pageNo: page, pageSize: size }
1213
1207
  });
@@ -1215,23 +1209,30 @@ var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
1215
1209
  };
1216
1210
 
1217
1211
  // src/modules/cloud_upload.ts
1218
- var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
1212
+ var _cryptojs = require('crypto-js'); var _cryptojs2 = _interopRequireDefault(_cryptojs);
1219
1213
  function getExt(file) {
1220
1214
  const index = file.name.lastIndexOf(".");
1221
1215
  if (index <= 0) return "";
1222
1216
  return file.name.substring(index + 1).toLowerCase();
1223
1217
  }
1218
+ function toWordArray(bytes) {
1219
+ const words = [];
1220
+ for (let i = 0; i < bytes.length; i++) {
1221
+ words[i >>> 2] = (words[i >>> 2] || 0) | bytes[i] << 24 - i % 4 * 8;
1222
+ }
1223
+ return _cryptojs2.default.lib.WordArray.create(words, bytes.length);
1224
+ }
1224
1225
  async function getHash(file) {
1225
- const hash = _crypto2.default.createHash("md5");
1226
+ const hash = _cryptojs2.default.algo.MD5.create();
1226
1227
  const reader = file.stream().getReader();
1227
1228
  while (true) {
1228
1229
  const { done, value } = await reader.read();
1229
1230
  if (done) {
1230
1231
  break;
1231
1232
  }
1232
- hash.update(value);
1233
+ hash.update(toWordArray(value));
1233
1234
  }
1234
- return hash.digest("hex");
1235
+ return hash.finalize().toString(_cryptojs2.default.enc.Hex);
1235
1236
  }
1236
1237
  var getCloudUploadUrl = async (pacmtoken, file) => {
1237
1238
  const ext = getExt(file);
@@ -1239,7 +1240,7 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
1239
1240
  return { data: { success: false, error: "file ext is not supported" }, newPacmToken: void 0 };
1240
1241
  }
1241
1242
  const hash = await getHash(file), size = file.size;
1242
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/user/cloud/meta/upload/v1.0", {
1243
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/user/cloud/meta/upload/v1.0", {
1243
1244
  method: "POST",
1244
1245
  body: JSON.stringify([{
1245
1246
  "contentId": hash,
@@ -1254,12 +1255,12 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
1254
1255
  };
1255
1256
 
1256
1257
  // src/modules/comment_delete.ts
1257
- var deleteComment = async (pacmtoken, resourceId) => {
1258
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0,
1258
+ var deleteComment = async (pacmtoken, commentId) => {
1259
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
1259
1260
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/delComment.do`,
1260
1261
  {
1261
1262
  method: "GET",
1262
- params: { resourceId, hasAudited: "false" },
1263
+ params: { resourceId: commentId, hasAudited: "false" },
1263
1264
  cookie: { pacmtoken },
1264
1265
  headers: {
1265
1266
  "channel": "0146891",
@@ -1272,17 +1273,17 @@ var deleteComment = async (pacmtoken, resourceId) => {
1272
1273
 
1273
1274
  // src/modules/singer_letter.ts
1274
1275
  var getSingerLetter = async (singerId, pageId) => {
1275
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/blog/api/love-letter/query/v1.0?resourceId=${singerId}&nextPageId=${pageId}`);
1276
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/blog/api/love-letter/query/v1.0?resourceId=${singerId}&nextPageId=${pageId}`);
1276
1277
  };
1277
1278
 
1278
1279
  // src/modules/singer_mv.ts
1279
1280
  var getSingerMv = async (singerId, page) => {
1280
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/video/v1.0?pageNo=${page || 1}&singerId=${singerId}`);
1281
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/video/v1.0?pageNo=${page || 1}&singerId=${singerId}`);
1281
1282
  };
1282
1283
 
1283
1284
  // src/modules/cloud_dl.ts
1284
1285
  var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
1285
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
1286
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
1286
1287
  cookie: { pacmtoken },
1287
1288
  headers: { "channel": "0146931", "version": "7.41.13" },
1288
1289
  params: {
@@ -1296,7 +1297,7 @@ var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
1296
1297
 
1297
1298
  // src/modules/user_phoneInfo.ts
1298
1299
  var getUserPhoneInfo = async (pacmtoken) => {
1299
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
1300
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
1300
1301
  cookie: { pacmtoken },
1301
1302
  headers: {
1302
1303
  "channel": "0146921",
@@ -1308,7 +1309,7 @@ var getUserPhoneInfo = async (pacmtoken) => {
1308
1309
 
1309
1310
  // src/modules/recommend_listenFreely_tab.ts
1310
1311
  var getListenFreelyTab = async (pacmtoken = "") => {
1311
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
1312
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
1312
1313
  cookie: pacmtoken ? { pacmtoken } : void 0
1313
1314
  });
1314
1315
  return { data, newPacmToken: cookies.pacmtoken || void 0 };
@@ -1317,7 +1318,7 @@ var getListenFreelyTab = async (pacmtoken = "") => {
1317
1318
  // src/modules/recommend_listenFreely.ts
1318
1319
  var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
1319
1320
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
1320
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
1321
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
1321
1322
  cookie: { pacmtoken }
1322
1323
  });
1323
1324
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1325,8 +1326,8 @@ var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
1325
1326
 
1326
1327
  // src/modules/playlist_square_listByTag.ts
1327
1328
  var getSquareListByTag = async (tagId, page) => {
1328
- const res = await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
1329
- res.data.contentItemList = _optionalChain([res, 'optionalAccess', _6 => _6.data, 'optionalAccess', _7 => _7.contentItemList, 'optionalAccess', _8 => _8.itemList, 'optionalAccess', _9 => _9.reduce, 'call', _10 => _10((acc, item) => {
1329
+ const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
1330
+ res.data.contentItemList = _optionalChain([res, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.contentItemList, 'optionalAccess', _22 => _22.itemList, 'optionalAccess', _23 => _23.reduce, 'call', _24 => _24((acc, item) => {
1330
1331
  if (!item.actionUrl || !item.actionUrl.includes("song-list-info")) {
1331
1332
  return acc;
1332
1333
  }
@@ -1334,25 +1335,25 @@ var getSquareListByTag = async (tagId, page) => {
1334
1335
  acc.push(item);
1335
1336
  return acc;
1336
1337
  }, [])]) || [];
1337
- res.data.hasNext = res.data.contentItemList.length < 30 ? false : _optionalChain([res, 'optionalAccess', _11 => _11.data, 'optionalAccess', _12 => _12.nextPageUrl]) !== void 0 && _optionalChain([res, 'optionalAccess', _13 => _13.data, 'optionalAccess', _14 => _14.nextPageUrl]) !== "";
1338
+ res.data.hasNext = res.data.contentItemList.length < 30 ? false : _optionalChain([res, 'optionalAccess', _25 => _25.data, 'optionalAccess', _26 => _26.nextPageUrl]) !== void 0 && _optionalChain([res, 'optionalAccess', _27 => _27.data, 'optionalAccess', _28 => _28.nextPageUrl]) !== "";
1338
1339
  return res;
1339
1340
  };
1340
1341
 
1341
1342
  // src/modules/playlist_square_recommend.ts
1342
1343
  var getSquareRecommend = async () => {
1343
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
1344
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
1344
1345
  };
1345
1346
 
1346
1347
  // src/modules/playlist_square_tag.ts
1347
1348
  var getSquareTag = async (needMoreTag = true) => {
1348
- const baseTag = await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
1349
+ const baseTag = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
1349
1350
  if (!needMoreTag) {
1350
1351
  return baseTag;
1351
1352
  }
1352
- const moreTag = await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
1353
+ const moreTag = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
1353
1354
  baseTag.data.moreTag = moreTag.data.map((item) => {
1354
- const title = _optionalChain([item, 'optionalAccess', _15 => _15.header, 'optionalAccess', _16 => _16.title]);
1355
- const tagList = _optionalChain([item, 'optionalAccess', _17 => _17.content, 'access', _18 => _18.map, 'call', _19 => _19((it) => ({
1355
+ const title = _optionalChain([item, 'optionalAccess', _29 => _29.header, 'optionalAccess', _30 => _30.title]);
1356
+ const tagList = _optionalChain([item, 'optionalAccess', _31 => _31.content, 'access', _32 => _32.map, 'call', _33 => _33((it) => ({
1356
1357
  tagName: it.texts[0],
1357
1358
  tagId: it.texts[1]
1358
1359
  }))]);
@@ -1361,16 +1362,20 @@ var getSquareTag = async (needMoreTag = true) => {
1361
1362
  return baseTag;
1362
1363
  };
1363
1364
 
1364
- // src/modules/resourceinfo_song.ts
1365
- var getSongInfo = async (contentIds) => {
1365
+ // src/modules/song_info.ts
1366
+ var getSongInfoByContentIds = async (contentIds) => {
1366
1367
  contentIds = contentIds.replace(/,/g, "|");
1367
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
1368
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
1369
+ };
1370
+ var getSongInfoBySongIds = async (songId) => {
1371
+ songId = songId.replace(/,/g, "|");
1372
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-songids/v2.0?songId=${songId}`);
1368
1373
  };
1369
1374
 
1370
1375
  // src/modules/user_ordered.ts
1371
1376
  var getUserOrdered = async (pacmtoken) => {
1372
1377
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
1373
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
1378
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
1374
1379
  cookie: { pacmtoken },
1375
1380
  headers: { "channel": "014X031" }
1376
1381
  });
@@ -1379,25 +1384,25 @@ var getUserOrdered = async (pacmtoken) => {
1379
1384
 
1380
1385
  // src/modules/dalbum_info.ts
1381
1386
  var getDAlbumInfo = async (dAlbumId) => {
1382
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
1387
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
1383
1388
  };
1384
1389
 
1385
1390
  // src/modules/dalbum_song.ts
1386
1391
  var getDAlbumSong = async (dAlbumId) => {
1387
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
1392
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
1388
1393
  };
1389
1394
 
1390
1395
  // src/modules/dalbum_pay.ts
1391
1396
  var getDAlbumPay = async (dAlbumId) => {
1392
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1393
- `https://app.c.nf.migu.cn/MIGUM3.0/strategy/album-sub-rank/v1.0?queryType=01&resourceId=${dAlbumId}`,
1397
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1398
+ `https://app.c.vip.migu.cn/MIGUM3.0/strategy/album-sub-rank/v1.0?queryType=01&resourceId=${dAlbumId}`,
1394
1399
  { headers: { "channel": "0146891" } }
1395
1400
  );
1396
1401
  };
1397
1402
 
1398
1403
  // src/modules/page_scroll.ts
1399
1404
  var getPageScroll = async (dataId, page = 1, size = 20, styleCode) => {
1400
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1405
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1401
1406
  `https://app.c.nf.migu.cn/bmw/page-view-datasource/v1.0`,
1402
1407
  {
1403
1408
  params: {
@@ -1412,7 +1417,7 @@ var getPageScroll = async (dataId, page = 1, size = 20, styleCode) => {
1412
1417
 
1413
1418
  // src/modules/page_dataSource.ts
1414
1419
  var getPageDataSource = async (body) => {
1415
- return await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
1420
+ return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1416
1421
  `https://app.c.nf.migu.cn/bmw/page-datasource/v3.0`,
1417
1422
  {
1418
1423
  method: "POST",
@@ -1424,7 +1429,7 @@ var getPageDataSource = async (body) => {
1424
1429
 
1425
1430
  // src/modules/user_like_list.ts
1426
1431
  var getUserLikeList = async (playlistId, page, size, pacmtoken = "", userId = "") => {
1427
- const { data, cookies } = await _chunkZEGJU5LWcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource/h5/my/playlist/song/v1.0", {
1432
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource/h5/my/playlist/song/v1.0", {
1428
1433
  cookie: { pacmtoken: pacmtoken || "" },
1429
1434
  headers: { uid: userId || "" },
1430
1435
  params: {
@@ -1436,6 +1441,65 @@ var getUserLikeList = async (playlistId, page, size, pacmtoken = "", userId = ""
1436
1441
  return { data, newPacmToken: cookies.pacmtoken || "" };
1437
1442
  };
1438
1443
 
1444
+ // src/modules/comment_epic_add.ts
1445
+ var addEpicComment = async (commentId, pacmtoken) => {
1446
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
1447
+ `https://app.c.nf.migu.cn/user/api/comment/add-recommend/v1.0`,
1448
+ {
1449
+ method: "POST",
1450
+ body: JSON.stringify({ commentId }),
1451
+ cookie: { pacmtoken },
1452
+ headers: {
1453
+ "channel": "0146891",
1454
+ "Content-Type": "application/json"
1455
+ }
1456
+ }
1457
+ );
1458
+ return { data, newPacmToken: cookies.pacmtoken || "" };
1459
+ };
1460
+
1461
+ // src/modules/comment_epic_del.ts
1462
+ var deleteEpicComment = async (commentId, pacmtoken) => {
1463
+ const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
1464
+ `https://app.c.nf.migu.cn/user/api/comment/cancel-recommend/v1.0`,
1465
+ {
1466
+ method: "POST",
1467
+ body: JSON.stringify({ commentId }),
1468
+ cookie: { pacmtoken },
1469
+ headers: {
1470
+ "channel": "0146891",
1471
+ "Content-Type": "application/json"
1472
+ }
1473
+ }
1474
+ );
1475
+ return { data, newPacmToken: cookies.pacmtoken || "" };
1476
+ };
1477
+
1478
+ // src/modules/song_ids.ts
1479
+ var getSongIds = async (songId, channel = "014X031") => {
1480
+ const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
1481
+ `https://app.c.vip.migu.cn/strategy/song-purchase/status/v1.0`,
1482
+ {
1483
+ params: { songId },
1484
+ headers: {
1485
+ "ua": "Android_migu",
1486
+ channel
1487
+ }
1488
+ }
1489
+ );
1490
+ let actionUrl = res.data.actionUrl;
1491
+ if (!actionUrl)
1492
+ return res;
1493
+ actionUrl = actionUrl.split("?")[1].split("&").map((item) => item.split("="));
1494
+ res.data = { ...res.data, ...Object.fromEntries(actionUrl) };
1495
+ return res;
1496
+ };
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1439
1503
 
1440
1504
 
1441
1505
 
@@ -1560,5 +1624,5 @@ var getUserLikeList = async (playlistId, page, size, pacmtoken = "", userId = ""
1560
1624
 
1561
1625
 
1562
1626
 
1563
- exports.addFollower = addFollower; exports.addSongToMyList = addSongToMyList; exports.addUserCollect = addUserCollect; exports.addUserMyList = addUserMyList; exports.checkCanListen = checkCanListen; exports.checkToken = checkToken; exports.deleteCloudMusic = deleteCloudMusic; exports.deleteComment = deleteComment; exports.dislikeSong = dislikeSong; exports.editUserMyList = editUserMyList; exports.emojiAction = emojiAction; exports.getAlbumInfo = getAlbumInfo; exports.getAlbumSong = getAlbumSong; exports.getCloudDLUrl = getCloudDLUrl; exports.getCloudUploadUrl = getCloudUploadUrl; exports.getCloudUrl = getCloudUrl; exports.getColumnInfo = getColumnInfo; exports.getComment = getComment; exports.getConcertComment = getConcertComment; exports.getConcertDetail = getConcertDetail; exports.getConcertInfo = getConcertInfo; exports.getConcertRecommendMv = getConcertRecommendMv; exports.getConcertUrl = getConcertUrl; exports.getDAlbumInfo = getDAlbumInfo; exports.getDAlbumPay = getDAlbumPay; exports.getDAlbumSong = getDAlbumSong; exports.getDLUrlV1 = getDLUrlV1; exports.getEmojiNum = getEmojiNum; exports.getFollowerList = getFollowerList; exports.getFollowingList = getFollowingList; exports.getFollowingVra = getFollowingVra; exports.getInteractionMsg = getInteractionMsg; exports.getListenFreelySongs = getListenFreelySongs; exports.getListenFreelyTab = getListenFreelyTab; exports.getListenRank = getListenRank; exports.getLyric = getLyric; exports.getMVRecommend = getMVRecommend; exports.getMvBySong = getMvBySong; exports.getMvHls = getMvHls; exports.getMvInfo = getMvInfo; exports.getNewCDList = getNewCDList; exports.getNewSongList = getNewSongList; exports.getNoticeMsg = getNoticeMsg; exports.getOpNum = getOpNum; exports.getPacmToken = getPacmToken; exports.getPageDataSource = getPageDataSource; exports.getPageInfo = getPageInfo; exports.getPageScroll = getPageScroll; exports.getPageTab = getPageTab; exports.getPlaylistInfo = getPlaylistInfo; exports.getPlaylistSong = getPlaylistSong; exports.getRadioRecommend = getRadioRecommend; exports.getRadioRecommendAll = getRadioRecommendAll; exports.getRadioSong = getRadioSong; exports.getRankIndex = getRankIndex; exports.getRankInfo = getRankInfo; exports.getRecommendPlaylist = getRecommendPlaylist; exports.getResourceInfo = getResourceInfo; exports.getSVideoInfo = getSVideoInfo; exports.getSVideoRecommend = getSVideoRecommend; exports.getSVideoSearchSuggest = getSVideoSearchSuggest; exports.getSVideoUrl = getSVideoUrl; exports.getSVideoUserContent = getSVideoUserContent; exports.getSVideoUserInfo = getSVideoUserInfo; exports.getSceneRecommend = getSceneRecommend; exports.getSearchDefault = getSearchDefault; exports.getSearchHot = getSearchHot; exports.getSearchSingerTab = getSearchSingerTab; exports.getSearchSingerTabList = getSearchSingerTabList; exports.getSimilarSongRecommend = getSimilarSongRecommend; exports.getSingerAlbum = getSingerAlbum; exports.getSingerIndex = getSingerIndex; exports.getSingerLetter = getSingerLetter; exports.getSingerMv = getSingerMv; exports.getSingerSimilar = getSingerSimilar; exports.getSingerSong = getSingerSong; exports.getSongInfo = getSongInfo; exports.getSquareListByTag = getSquareListByTag; exports.getSquarePage = getSquarePage; exports.getSquareRecommend = getSquareRecommend; exports.getSquareTag = getSquareTag; exports.getThumbsMsg = getThumbsMsg; exports.getTicketInfo = getTicketInfo; exports.getTodayRecommend = getTodayRecommend; exports.getUrlH5V24 = getUrlH5V24; exports.getUrlV1 = getUrlV1; exports.getUrlV2 = getUrlV2; exports.getUserAudioBook = getUserAudioBook; exports.getUserBadge = getUserBadge; exports.getUserCollectList = getUserCollectList; exports.getUserHeader = getUserHeader; exports.getUserHeartthrob = getUserHeartthrob; exports.getUserHomePage = getUserHomePage; exports.getUserLikeList = getUserLikeList; exports.getUserMyList = getUserMyList; exports.getUserOrdered = getUserOrdered; exports.getUserPhoneInfo = getUserPhoneInfo; exports.getUserSongPage = getUserSongPage; exports.getVersion = getVersion; exports.getVipPlaylist = getVipPlaylist; exports.getVrbtOpNum = getVrbtOpNum; exports.getVrbtUrl = getVrbtUrl; exports.isFollowAuthor = isFollowAuthor; exports.likeSong = likeSong; exports.logout = logout; exports.matchPlaylist = matchPlaylist; exports.queryUserInfo = queryUserInfo; exports.removeFollower = removeFollower; exports.removeSongFromMyList = removeSongFromMyList; exports.removeUserCollect = removeUserCollect; exports.removeUserMyList = removeUserMyList; exports.searchAlbum = searchAlbum; exports.searchConcert = searchConcert; exports.searchLrc = searchLrc; exports.searchMv = searchMv; exports.searchPlaylist = searchPlaylist; exports.searchRbt = searchRbt; exports.searchSVideo = searchSVideo; exports.searchSinger = searchSinger; exports.searchSong = searchSong; exports.searchSuggest = searchSuggest; exports.searchTicket = searchTicket; exports.shareCommon = shareCommon; exports.shareVideo = shareVideo;
1627
+ exports.addEpicComment = addEpicComment; exports.addFollower = addFollower; exports.addSongToMyList = addSongToMyList; exports.addUserCollect = addUserCollect; exports.addUserMyList = addUserMyList; exports.checkCanListen = checkCanListen; exports.checkToken = checkToken; exports.deleteCloudMusic = deleteCloudMusic; exports.deleteComment = deleteComment; exports.deleteEpicComment = deleteEpicComment; exports.dislikeSong = dislikeSong; exports.editUserMyList = editUserMyList; exports.emojiAction = emojiAction; exports.getAlbumInfo = getAlbumInfo; exports.getAlbumSong = getAlbumSong; exports.getCloudDLUrl = getCloudDLUrl; exports.getCloudUploadUrl = getCloudUploadUrl; exports.getCloudUrl = getCloudUrl; exports.getColumnInfo = getColumnInfo; exports.getComment = getComment; exports.getConcertComment = getConcertComment; exports.getConcertDetail = getConcertDetail; exports.getConcertInfo = getConcertInfo; exports.getConcertRecommendMv = getConcertRecommendMv; exports.getConcertUrl = getConcertUrl; exports.getDAlbumInfo = getDAlbumInfo; exports.getDAlbumPay = getDAlbumPay; exports.getDAlbumSong = getDAlbumSong; exports.getDLUrlV1 = getDLUrlV1; exports.getEmojiNum = getEmojiNum; exports.getFollowerList = getFollowerList; exports.getFollowingList = getFollowingList; exports.getFollowingVra = getFollowingVra; exports.getInteractionMsg = getInteractionMsg; exports.getListenFreelySongs = getListenFreelySongs; exports.getListenFreelyTab = getListenFreelyTab; exports.getListenRank = getListenRank; exports.getLyric = getLyric; exports.getMVRecommend = getMVRecommend; exports.getMvBySong = getMvBySong; exports.getMvHls = getMvHls; exports.getMvInfo = getMvInfo; exports.getNewCDList = getNewCDList; exports.getNewSongList = getNewSongList; exports.getNoticeMsg = getNoticeMsg; exports.getOpNum = getOpNum; exports.getPacmToken = getPacmToken; exports.getPageDataSource = getPageDataSource; exports.getPageInfo = getPageInfo; exports.getPageScroll = getPageScroll; exports.getPageTab = getPageTab; exports.getPlaylistInfo = getPlaylistInfo; exports.getPlaylistSong = getPlaylistSong; exports.getRadioRecommend = getRadioRecommend; exports.getRadioRecommendAll = getRadioRecommendAll; exports.getRadioSong = getRadioSong; exports.getRankIndex = getRankIndex; exports.getRankInfo = getRankInfo; exports.getRecommendPlaylist = getRecommendPlaylist; exports.getResourceInfo = getResourceInfo; exports.getSVideoInfo = getSVideoInfo; exports.getSVideoRecommend = getSVideoRecommend; exports.getSVideoSearchSuggest = getSVideoSearchSuggest; exports.getSVideoUrl = getSVideoUrl; exports.getSVideoUserContent = getSVideoUserContent; exports.getSVideoUserInfo = getSVideoUserInfo; exports.getSceneRecommend = getSceneRecommend; exports.getSearchDefault = getSearchDefault; exports.getSearchHot = getSearchHot; exports.getSearchSingerTab = getSearchSingerTab; exports.getSearchSingerTabList = getSearchSingerTabList; exports.getSimilarSongRecommend = getSimilarSongRecommend; exports.getSingerAlbum = getSingerAlbum; exports.getSingerIndex = getSingerIndex; exports.getSingerLetter = getSingerLetter; exports.getSingerMv = getSingerMv; exports.getSingerSimilar = getSingerSimilar; exports.getSingerSong = getSingerSong; exports.getSongIds = getSongIds; exports.getSongInfoByContentIds = getSongInfoByContentIds; exports.getSongInfoBySongIds = getSongInfoBySongIds; exports.getSquareListByTag = getSquareListByTag; exports.getSquarePage = getSquarePage; exports.getSquareRecommend = getSquareRecommend; exports.getSquareTag = getSquareTag; exports.getThumbsMsg = getThumbsMsg; exports.getTicketInfo = getTicketInfo; exports.getTodayRecommend = getTodayRecommend; exports.getUrlH5V24 = getUrlH5V24; exports.getUrlV1 = getUrlV1; exports.getUrlV2 = getUrlV2; exports.getUserAudioBook = getUserAudioBook; exports.getUserBadge = getUserBadge; exports.getUserCollectList = getUserCollectList; exports.getUserHeader = getUserHeader; exports.getUserHeartthrob = getUserHeartthrob; exports.getUserHomePage = getUserHomePage; exports.getUserLikeList = getUserLikeList; exports.getUserMyList = getUserMyList; exports.getUserOrdered = getUserOrdered; exports.getUserPhoneInfo = getUserPhoneInfo; exports.getUserSongPage = getUserSongPage; exports.getVersion = getVersion; exports.getVipPlaylist = getVipPlaylist; exports.getVrbtOpNum = getVrbtOpNum; exports.getVrbtUrl = getVrbtUrl; exports.isFollowAuthor = isFollowAuthor; exports.likeSong = likeSong; exports.logout = logout; exports.matchPlaylist = matchPlaylist; exports.queryUserInfo = queryUserInfo; exports.removeFollower = removeFollower; exports.removeSongFromMyList = removeSongFromMyList; exports.removeUserCollect = removeUserCollect; exports.removeUserMyList = removeUserMyList; exports.searchAlbum = searchAlbum; exports.searchConcert = searchConcert; exports.searchCrbt = searchCrbt; exports.searchLrc = searchLrc; exports.searchMv = searchMv; exports.searchPlaylist = searchPlaylist; exports.searchSVideo = searchSVideo; exports.searchSinger = searchSinger; exports.searchSong = searchSong; exports.searchSuggest = searchSuggest; exports.searchTicket = searchTicket; exports.searchVrbt = searchVrbt; exports.shareCommon = shareCommon; exports.shareVideo = shareVideo;
1564
1628
  //# sourceMappingURL=index.cjs.map