@fangzhongya/utils 0.0.19 → 0.0.21

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 (71) hide show
  1. package/dist/basic/array/index.cjs +4 -4
  2. package/dist/basic/array/index.js +4 -4
  3. package/dist/basic/index.cjs +10 -10
  4. package/dist/basic/index.d.cts +1 -1
  5. package/dist/basic/index.d.ts +1 -1
  6. package/dist/basic/index.js +9 -9
  7. package/dist/basic/string/deComment.cjs +2 -2
  8. package/dist/basic/string/deComment.d.cts +2 -2
  9. package/dist/basic/string/deComment.d.ts +2 -2
  10. package/dist/basic/string/deComment.js +3 -3
  11. package/dist/basic/string/getImports.cjs +3 -2
  12. package/dist/basic/string/getImports.d.cts +1 -1
  13. package/dist/basic/string/getImports.d.ts +1 -1
  14. package/dist/basic/string/getImports.js +2 -1
  15. package/dist/basic/string/index.cjs +8 -8
  16. package/dist/basic/string/index.d.cts +1 -1
  17. package/dist/basic/string/index.d.ts +1 -1
  18. package/dist/basic/string/index.js +11 -11
  19. package/dist/{chunk-6FNUWY2K.js → chunk-4HDH7W4I.js} +10 -10
  20. package/dist/chunk-6TBH7RAC.cjs +51 -0
  21. package/dist/chunk-7PJ2D3KR.js +51 -0
  22. package/dist/{chunk-GBVPMC4U.js → chunk-ADPANWVU.js} +2 -2
  23. package/dist/{chunk-HEKPDLMA.js → chunk-EJZIISBA.js} +6 -0
  24. package/dist/{chunk-TZWVFIQ6.js → chunk-FS4JPT23.js} +2 -2
  25. package/dist/{chunk-X3S7OYCE.cjs → chunk-GCVQ4KN2.cjs} +12 -12
  26. package/dist/{chunk-UDHZO4RQ.cjs → chunk-LBRSQGOC.cjs} +6 -1
  27. package/dist/{chunk-ZP73W6GC.js → chunk-ND6RZU6A.js} +5 -0
  28. package/dist/{chunk-KRZBLPZC.js → chunk-NYRG5SN2.js} +12 -12
  29. package/dist/{chunk-OOCGJ6VV.cjs → chunk-OKL7QE62.cjs} +4 -4
  30. package/dist/{chunk-FENXEEVK.cjs → chunk-OPQR6SKT.cjs} +8 -8
  31. package/dist/{chunk-G3EAHOZL.cjs → chunk-QN6KZWKM.cjs} +6 -0
  32. package/dist/{chunk-YYF5TJ2R.cjs → chunk-XWCRGY54.cjs} +2 -2
  33. package/dist/html/getVueText.cjs +9 -0
  34. package/dist/html/getVueText.d.cts +16 -0
  35. package/dist/html/getVueText.d.ts +16 -0
  36. package/dist/html/getVueText.js +9 -0
  37. package/dist/html/index.cjs +8 -2
  38. package/dist/html/index.d.cts +1 -0
  39. package/dist/html/index.d.ts +1 -0
  40. package/dist/html/index.js +7 -1
  41. package/dist/{index-p51PQiT3.d.cts → index-C8zJOTOc.d.cts} +1 -1
  42. package/dist/{index-CTSD8gS7.d.ts → index-CdRz4xJD.d.ts} +4 -1
  43. package/dist/{index-DyDvVtuo.d.cts → index-CnrmwHvE.d.cts} +4 -1
  44. package/dist/{index-B97eDKqX.d.cts → index-DvPj5P4h.d.cts} +3 -3
  45. package/dist/{index-BcgeB76v.d.ts → index-PlRqbYIG.d.ts} +3 -3
  46. package/dist/{index-FhMxFhW9.d.ts → index-awyDHevH.d.ts} +1 -1
  47. package/dist/index.cjs +29 -28
  48. package/dist/index.d.cts +4 -3
  49. package/dist/index.d.ts +4 -3
  50. package/dist/index.js +28 -27
  51. package/dist/judge/index.cjs +6 -6
  52. package/dist/judge/index.js +13 -13
  53. package/dist/urls/getReplaceCompleteUrl.cjs +3 -3
  54. package/dist/urls/getReplaceCompleteUrl.js +2 -2
  55. package/dist/urls/getReplaceUrl.cjs +3 -3
  56. package/dist/urls/getReplaceUrl.js +2 -2
  57. package/dist/urls/index.cjs +14 -14
  58. package/dist/urls/index.js +15 -15
  59. package/dist/window/index.cjs +3 -3
  60. package/dist/window/index.js +4 -4
  61. package/package.json +6 -1
  62. package/dist/{chunk-TV3NKA26.cjs → chunk-3DD7YCN2.cjs} +2 -2
  63. package/dist/{chunk-QS6GY3QV.js → chunk-3NBXSBFM.js} +3 -3
  64. package/dist/{chunk-S5LO76T2.js → chunk-5M5OM6N6.js} +3 -3
  65. package/dist/{chunk-LU22MUUS.js → chunk-EGM54DV6.js} +3 -3
  66. package/dist/{chunk-UF6FYYWF.cjs → chunk-NESVPZNF.cjs} +2 -2
  67. package/dist/{chunk-4BGJIMWM.cjs → chunk-S5SLR7IL.cjs} +3 -3
  68. package/dist/{chunk-KOLCUFXV.js → chunk-SE7A43WC.js} +3 -3
  69. package/dist/{chunk-J2WRN55J.cjs → chunk-UHKL2RG3.cjs} +5 -5
  70. package/dist/{chunk-ZFUTCZ7S.cjs → chunk-VCQOLLVK.cjs} +2 -2
  71. package/dist/{chunk-7VGVDOZH.js → chunk-YKNGDK4I.js} +12 -12
@@ -1,4 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-4BGJIMWM.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-S5SLR7IL.cjs');
2
+
3
+
4
+ var _chunkMHHMXDHDcjs = require('../../chunk-MHHMXDHD.cjs');
2
5
 
3
6
 
4
7
  var _chunkSOAKYJIGcjs = require('../../chunk-SOAKYJIG.cjs');
@@ -13,9 +16,6 @@ var _chunkXSQOJWXLcjs = require('../../chunk-XSQOJWXL.cjs');
13
16
  var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
14
17
 
15
18
 
16
- var _chunkMHHMXDHDcjs = require('../../chunk-MHHMXDHD.cjs');
17
-
18
-
19
19
  var _chunkXW3XIK3Dcjs = require('../../chunk-XW3XIK3D.cjs');
20
20
 
21
21
 
@@ -1,4 +1,7 @@
1
- import "../../chunk-LU22MUUS.js";
1
+ import "../../chunk-EGM54DV6.js";
2
+ import {
3
+ replaceAfter
4
+ } from "../../chunk-K33LOE73.js";
2
5
  import {
3
6
  toggleArray
4
7
  } from "../../chunk-APKFW4LU.js";
@@ -11,9 +14,6 @@ import {
11
14
  import {
12
15
  duplicateRemoval
13
16
  } from "../../chunk-ZVBCHJA5.js";
14
- import {
15
- replaceAfter
16
- } from "../../chunk-K33LOE73.js";
17
17
  import {
18
18
  sortObj
19
19
  } from "../../chunk-O34QAOO7.js";
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-OOCGJ6VV.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-OKL7QE62.cjs');
2
2
 
3
3
 
4
- var _chunkFENXEEVKcjs = require('../chunk-FENXEEVK.cjs');
4
+ var _chunkOPQR6SKTcjs = require('../chunk-OPQR6SKT.cjs');
5
5
  require('../chunk-L7FSHU27.cjs');
6
6
  require('../chunk-JHV27P2Q.cjs');
7
7
  require('../chunk-ETMYYVQJ.cjs');
8
8
  require('../chunk-QXK4IUBI.cjs');
9
- require('../chunk-YYF5TJ2R.cjs');
10
- require('../chunk-UDHZO4RQ.cjs');
9
+ require('../chunk-LBRSQGOC.cjs');
10
+ require('../chunk-XWCRGY54.cjs');
11
11
  require('../chunk-J7S3KBHL.cjs');
12
12
 
13
13
 
@@ -24,17 +24,17 @@ require('../chunk-7AIT4XSD.cjs');
24
24
  require('../chunk-GOUC2DFA.cjs');
25
25
 
26
26
 
27
- var _chunk4BGJIMWMcjs = require('../chunk-4BGJIMWM.cjs');
27
+ var _chunkS5SLR7ILcjs = require('../chunk-S5SLR7IL.cjs');
28
+ require('../chunk-MHHMXDHD.cjs');
28
29
  require('../chunk-SOAKYJIG.cjs');
29
30
  require('../chunk-TCMJPIRM.cjs');
30
31
  require('../chunk-XSQOJWXL.cjs');
31
32
  require('../chunk-GD3OA7GU.cjs');
32
- require('../chunk-MHHMXDHD.cjs');
33
- require('../chunk-XW3XIK3D.cjs');
34
- require('../chunk-ILJLXJ5O.cjs');
35
33
  require('../chunk-2H3KVSFA.cjs');
36
- require('../chunk-JR6ZN6QD.cjs');
34
+ require('../chunk-ILJLXJ5O.cjs');
37
35
  require('../chunk-OJBZ7UUC.cjs');
36
+ require('../chunk-JR6ZN6QD.cjs');
37
+ require('../chunk-XW3XIK3D.cjs');
38
38
  require('../chunk-PW7RP73J.cjs');
39
39
  require('../chunk-UEVMS6QD.cjs');
40
40
  require('../chunk-OQL4GIEJ.cjs');
@@ -46,4 +46,4 @@ require('../chunk-75ZPJI57.cjs');
46
46
 
47
47
 
48
48
 
49
- exports.array = _chunk4BGJIMWMcjs.array_exports; exports.object = _chunkUGT4QBTMcjs.object_exports; exports.string = _chunkFENXEEVKcjs.string_exports;
49
+ exports.array = _chunkS5SLR7ILcjs.array_exports; exports.object = _chunkUGT4QBTMcjs.object_exports; exports.string = _chunkOPQR6SKTcjs.string_exports;
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-qUiGxoy_.cjs';
2
2
  export { i as object } from '../index-BU0xla6v.cjs';
3
- export { i as string } from '../index-B97eDKqX.cjs';
3
+ export { i as string } from '../index-DvPj5P4h.cjs';
4
4
  import './array/asyncMergeArray.cjs';
5
5
  import './array/deleteArray.cjs';
6
6
  import './array/duplicateRemoval.cjs';
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-C29DFVeC.js';
2
2
  export { i as object } from '../index-DOq59RNr.js';
3
- export { i as string } from '../index-BcgeB76v.js';
3
+ export { i as string } from '../index-PlRqbYIG.js';
4
4
  import './array/asyncMergeArray.js';
5
5
  import './array/deleteArray.js';
6
6
  import './array/duplicateRemoval.js';
@@ -1,13 +1,13 @@
1
- import "../chunk-GBVPMC4U.js";
1
+ import "../chunk-ADPANWVU.js";
2
2
  import {
3
3
  string_exports
4
- } from "../chunk-6FNUWY2K.js";
4
+ } from "../chunk-4HDH7W4I.js";
5
5
  import "../chunk-VKE5JARB.js";
6
6
  import "../chunk-U3PZBQ6G.js";
7
7
  import "../chunk-5HC662VK.js";
8
8
  import "../chunk-7O4MJOHM.js";
9
- import "../chunk-TZWVFIQ6.js";
10
- import "../chunk-ZP73W6GC.js";
9
+ import "../chunk-ND6RZU6A.js";
10
+ import "../chunk-FS4JPT23.js";
11
11
  import "../chunk-7DTHADVK.js";
12
12
  import {
13
13
  object_exports
@@ -24,17 +24,17 @@ import "../chunk-ZEAT23CI.js";
24
24
  import "../chunk-3IR2ABRO.js";
25
25
  import {
26
26
  array_exports
27
- } from "../chunk-LU22MUUS.js";
27
+ } from "../chunk-EGM54DV6.js";
28
+ import "../chunk-K33LOE73.js";
28
29
  import "../chunk-APKFW4LU.js";
29
30
  import "../chunk-Q6FMBSK4.js";
30
31
  import "../chunk-DBSRZCFK.js";
31
32
  import "../chunk-ZVBCHJA5.js";
32
- import "../chunk-K33LOE73.js";
33
- import "../chunk-O34QAOO7.js";
34
- import "../chunk-P7AWHISY.js";
35
33
  import "../chunk-USIMBBLW.js";
36
- import "../chunk-DMZP4RPN.js";
34
+ import "../chunk-P7AWHISY.js";
37
35
  import "../chunk-LPMR5W6M.js";
36
+ import "../chunk-DMZP4RPN.js";
37
+ import "../chunk-O34QAOO7.js";
38
38
  import "../chunk-A276ZDLP.js";
39
39
  import "../chunk-4OBNLDTJ.js";
40
40
  import "../chunk-EWJJKQIO.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYYF5TJ2Rcjs = require('../../chunk-YYF5TJ2R.cjs');
3
+ var _chunkXWCRGY54cjs = require('../../chunk-XWCRGY54.cjs');
4
4
  require('../../chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.removeComments = _chunkYYF5TJ2Rcjs.removeComments;
7
+ exports.deComment = _chunkXWCRGY54cjs.deComment;
@@ -2,6 +2,6 @@
2
2
  * 去掉注释代码
3
3
  * @param text
4
4
  */
5
- declare function removeComments(code: string): string;
5
+ declare function deComment(code: string): string;
6
6
 
7
- export { removeComments };
7
+ export { deComment };
@@ -2,6 +2,6 @@
2
2
  * 去掉注释代码
3
3
  * @param text
4
4
  */
5
- declare function removeComments(code: string): string;
5
+ declare function deComment(code: string): string;
6
6
 
7
- export { removeComments };
7
+ export { deComment };
@@ -1,7 +1,7 @@
1
1
  import {
2
- removeComments
3
- } from "../../chunk-TZWVFIQ6.js";
2
+ deComment
3
+ } from "../../chunk-FS4JPT23.js";
4
4
  import "../../chunk-MLKGABMK.js";
5
5
  export {
6
- removeComments
6
+ deComment
7
7
  };
@@ -1,7 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDHZO4RQcjs = require('../../chunk-UDHZO4RQ.cjs');
3
+ var _chunkLBRSQGOCcjs = require('../../chunk-LBRSQGOC.cjs');
4
+ require('../../chunk-XWCRGY54.cjs');
4
5
  require('../../chunk-75ZPJI57.cjs');
5
6
 
6
7
 
7
- exports.getImports = _chunkUDHZO4RQcjs.getImports;
8
+ exports.getImports = _chunkLBRSQGOCcjs.getImports;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 获取代码中的引用地址
3
3
  */
4
- declare function getImports(code: string): unknown[];
4
+ declare function getImports(code: string): string[];
5
5
 
6
6
  export { getImports };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 获取代码中的引用地址
3
3
  */
4
- declare function getImports(code: string): unknown[];
4
+ declare function getImports(code: string): string[];
5
5
 
6
6
  export { getImports };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  getImports
3
- } from "../../chunk-ZP73W6GC.js";
3
+ } from "../../chunk-ND6RZU6A.js";
4
+ import "../../chunk-FS4JPT23.js";
4
5
  import "../../chunk-MLKGABMK.js";
5
6
  export {
6
7
  getImports
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-FENXEEVK.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-OPQR6SKT.cjs');
2
2
 
3
3
 
4
4
  var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
@@ -18,28 +18,28 @@ var _chunkETMYYVQJcjs = require('../../chunk-ETMYYVQJ.cjs');
18
18
  var _chunkQXK4IUBIcjs = require('../../chunk-QXK4IUBI.cjs');
19
19
 
20
20
 
21
- var _chunkYYF5TJ2Rcjs = require('../../chunk-YYF5TJ2R.cjs');
21
+ var _chunkLBRSQGOCcjs = require('../../chunk-LBRSQGOC.cjs');
22
22
 
23
23
 
24
- var _chunkUDHZO4RQcjs = require('../../chunk-UDHZO4RQ.cjs');
24
+ var _chunkXWCRGY54cjs = require('../../chunk-XWCRGY54.cjs');
25
25
 
26
26
 
27
27
  var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
28
28
  require('../../chunk-E4WBX6J5.cjs');
29
29
 
30
30
 
31
- var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
32
-
33
-
34
31
  var _chunk2H3KVSFAcjs = require('../../chunk-2H3KVSFA.cjs');
35
32
 
36
33
 
37
- var _chunkJR6ZN6QDcjs = require('../../chunk-JR6ZN6QD.cjs');
34
+ var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
38
35
 
39
36
 
40
37
  var _chunkOJBZ7UUCcjs = require('../../chunk-OJBZ7UUC.cjs');
41
38
 
42
39
 
40
+ var _chunkJR6ZN6QDcjs = require('../../chunk-JR6ZN6QD.cjs');
41
+
42
+
43
43
  var _chunkPW7RP73Jcjs = require('../../chunk-PW7RP73J.cjs');
44
44
 
45
45
 
@@ -68,4 +68,4 @@ require('../../chunk-75ZPJI57.cjs');
68
68
 
69
69
 
70
70
 
71
- exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkQXK4IUBIcjs.getFunctionFormat; exports.getImports = _chunkUDHZO4RQcjs.getImports; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.removeComments = _chunkYYF5TJ2Rcjs.removeComments; exports.serializeCodeBlock = _chunkETMYYVQJcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkETMYYVQJcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkQXK4IUBIcjs.toFunction; exports.toJSONParse = _chunkJHV27P2Qcjs.toJSONParse; exports.toJSONSParse = _chunkETMYYVQJcjs.toJSONSParse; exports.toJSONSStringify = _chunkETMYYVQJcjs.toJSONSStringify; exports.toJSONStringify = _chunkJHV27P2Qcjs.toJSONStringify;
71
+ exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.deComment = _chunkXWCRGY54cjs.deComment; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkQXK4IUBIcjs.getFunctionFormat; exports.getImports = _chunkLBRSQGOCcjs.getImports; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock = _chunkETMYYVQJcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkETMYYVQJcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkQXK4IUBIcjs.toFunction; exports.toJSONParse = _chunkJHV27P2Qcjs.toJSONParse; exports.toJSONSParse = _chunkETMYYVQJcjs.toJSONSParse; exports.toJSONSStringify = _chunkETMYYVQJcjs.toJSONSStringify; exports.toJSONStringify = _chunkJHV27P2Qcjs.toJSONStringify;
@@ -1,6 +1,6 @@
1
1
  export { appearNum } from './appearNum.cjs';
2
2
  export { appearNumSeat } from './appearNumSeat.cjs';
3
- export { removeComments } from './deComment.cjs';
3
+ export { deComment } from './deComment.cjs';
4
4
  export { firstLower } from './firstLower.cjs';
5
5
  export { firstUpper } from './firstUpper.cjs';
6
6
  export { getImports } from './getImports.cjs';
@@ -1,6 +1,6 @@
1
1
  export { appearNum } from './appearNum.js';
2
2
  export { appearNumSeat } from './appearNumSeat.js';
3
- export { removeComments } from './deComment.js';
3
+ export { deComment } from './deComment.js';
4
4
  export { firstLower } from './firstLower.js';
5
5
  export { firstUpper } from './firstUpper.js';
6
6
  export { getImports } from './getImports.js';
@@ -1,4 +1,4 @@
1
- import "../../chunk-6FNUWY2K.js";
1
+ import "../../chunk-4HDH7W4I.js";
2
2
  import {
3
3
  splitUpper
4
4
  } from "../../chunk-VKE5JARB.js";
@@ -16,28 +16,28 @@ import {
16
16
  getFunctionFormat,
17
17
  toFunction
18
18
  } from "../../chunk-7O4MJOHM.js";
19
- import {
20
- removeComments
21
- } from "../../chunk-TZWVFIQ6.js";
22
19
  import {
23
20
  getImports
24
- } from "../../chunk-ZP73W6GC.js";
21
+ } from "../../chunk-ND6RZU6A.js";
22
+ import {
23
+ deComment
24
+ } from "../../chunk-FS4JPT23.js";
25
25
  import {
26
26
  getStartSame
27
27
  } from "../../chunk-7DTHADVK.js";
28
28
  import "../../chunk-754Z5VW6.js";
29
- import {
30
- startsNum
31
- } from "../../chunk-P7AWHISY.js";
32
29
  import {
33
30
  getStrNunPosit
34
31
  } from "../../chunk-USIMBBLW.js";
35
32
  import {
36
- appearNumSeat
37
- } from "../../chunk-DMZP4RPN.js";
33
+ startsNum
34
+ } from "../../chunk-P7AWHISY.js";
38
35
  import {
39
36
  appearNum
40
37
  } from "../../chunk-LPMR5W6M.js";
38
+ import {
39
+ appearNumSeat
40
+ } from "../../chunk-DMZP4RPN.js";
41
41
  import {
42
42
  getStartSames
43
43
  } from "../../chunk-A276ZDLP.js";
@@ -51,6 +51,7 @@ import "../../chunk-MLKGABMK.js";
51
51
  export {
52
52
  appearNum,
53
53
  appearNumSeat,
54
+ deComment,
54
55
  firstLower,
55
56
  firstUpper,
56
57
  getFunctionFormat,
@@ -58,7 +59,6 @@ export {
58
59
  getStartSame,
59
60
  getStartSames,
60
61
  getStrNunPosit,
61
- removeComments,
62
62
  serializeCodeBlock,
63
63
  serializeFunctionRef,
64
64
  splitUpper,
@@ -15,27 +15,27 @@ import {
15
15
  getFunctionFormat,
16
16
  toFunction
17
17
  } from "./chunk-7O4MJOHM.js";
18
- import {
19
- removeComments
20
- } from "./chunk-TZWVFIQ6.js";
21
18
  import {
22
19
  getImports
23
- } from "./chunk-ZP73W6GC.js";
20
+ } from "./chunk-ND6RZU6A.js";
21
+ import {
22
+ deComment
23
+ } from "./chunk-FS4JPT23.js";
24
24
  import {
25
25
  getStartSame
26
26
  } from "./chunk-7DTHADVK.js";
27
- import {
28
- startsNum
29
- } from "./chunk-P7AWHISY.js";
30
27
  import {
31
28
  getStrNunPosit
32
29
  } from "./chunk-USIMBBLW.js";
33
30
  import {
34
- appearNumSeat
35
- } from "./chunk-DMZP4RPN.js";
31
+ startsNum
32
+ } from "./chunk-P7AWHISY.js";
36
33
  import {
37
34
  appearNum
38
35
  } from "./chunk-LPMR5W6M.js";
36
+ import {
37
+ appearNumSeat
38
+ } from "./chunk-DMZP4RPN.js";
39
39
  import {
40
40
  getStartSames
41
41
  } from "./chunk-A276ZDLP.js";
@@ -54,6 +54,7 @@ var string_exports = {};
54
54
  __export(string_exports, {
55
55
  appearNum: () => appearNum,
56
56
  appearNumSeat: () => appearNumSeat,
57
+ deComment: () => deComment,
57
58
  firstLower: () => firstLower,
58
59
  firstUpper: () => firstUpper,
59
60
  getFunctionFormat: () => getFunctionFormat,
@@ -61,7 +62,6 @@ __export(string_exports, {
61
62
  getStartSame: () => getStartSame,
62
63
  getStartSames: () => getStartSames,
63
64
  getStrNunPosit: () => getStrNunPosit,
64
- removeComments: () => removeComments,
65
65
  serializeCodeBlock: () => serializeCodeBlock,
66
66
  serializeFunctionRef: () => serializeFunctionRef,
67
67
  splitUpper: () => splitUpper,
@@ -0,0 +1,51 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/html/getVueText.ts
2
+ function getVueText(content) {
3
+ const result = {
4
+ template: "",
5
+ scripts: [],
6
+ styles: [],
7
+ customBlocks: []
8
+ };
9
+ const templateRegex = /<template([\s\S]*?)>([\s\S]*?)<\/template>/;
10
+ const templateMatch = content.match(templateRegex);
11
+ if (templateMatch && templateMatch[2]) {
12
+ result.template = templateMatch[2];
13
+ }
14
+ const scriptRegex = /<script([\s\S]*?)>([\s\S]*?)<\/script>/g;
15
+ let scriptMatch;
16
+ while ((scriptMatch = scriptRegex.exec(content)) !== null) {
17
+ if (scriptMatch[2]) {
18
+ result.scripts.push(scriptMatch[2]);
19
+ }
20
+ }
21
+ const styleRegex = /<style([\s\S]*?)>([\s\S]*?)<\/style>/g;
22
+ let styleMatch;
23
+ while ((styleMatch = styleRegex.exec(content)) !== null) {
24
+ if (styleMatch[2]) {
25
+ result.styles.push(styleMatch[2]);
26
+ }
27
+ }
28
+ const customBlockRegex = /<([a-z][a-z0-9-]*)([\s\S]*?)>([\s\S]*?)<\/\1>/g;
29
+ let customMatch;
30
+ while ((customMatch = customBlockRegex.exec(content)) !== null) {
31
+ if (!["template", "script", "style"].includes(customMatch[1])) {
32
+ result.customBlocks.push({
33
+ type: customMatch[1],
34
+ content: customMatch[3]
35
+ });
36
+ }
37
+ }
38
+ return result;
39
+ }
40
+ function getVueTexts(content) {
41
+ const obj = getVueText(content);
42
+ return {
43
+ script: obj.scripts.join("\n"),
44
+ style: obj.styles.join("\n")
45
+ };
46
+ }
47
+
48
+
49
+
50
+
51
+ exports.getVueText = getVueText; exports.getVueTexts = getVueTexts;
@@ -0,0 +1,51 @@
1
+ // packages/html/getVueText.ts
2
+ function getVueText(content) {
3
+ const result = {
4
+ template: "",
5
+ scripts: [],
6
+ styles: [],
7
+ customBlocks: []
8
+ };
9
+ const templateRegex = /<template([\s\S]*?)>([\s\S]*?)<\/template>/;
10
+ const templateMatch = content.match(templateRegex);
11
+ if (templateMatch && templateMatch[2]) {
12
+ result.template = templateMatch[2];
13
+ }
14
+ const scriptRegex = /<script([\s\S]*?)>([\s\S]*?)<\/script>/g;
15
+ let scriptMatch;
16
+ while ((scriptMatch = scriptRegex.exec(content)) !== null) {
17
+ if (scriptMatch[2]) {
18
+ result.scripts.push(scriptMatch[2]);
19
+ }
20
+ }
21
+ const styleRegex = /<style([\s\S]*?)>([\s\S]*?)<\/style>/g;
22
+ let styleMatch;
23
+ while ((styleMatch = styleRegex.exec(content)) !== null) {
24
+ if (styleMatch[2]) {
25
+ result.styles.push(styleMatch[2]);
26
+ }
27
+ }
28
+ const customBlockRegex = /<([a-z][a-z0-9-]*)([\s\S]*?)>([\s\S]*?)<\/\1>/g;
29
+ let customMatch;
30
+ while ((customMatch = customBlockRegex.exec(content)) !== null) {
31
+ if (!["template", "script", "style"].includes(customMatch[1])) {
32
+ result.customBlocks.push({
33
+ type: customMatch[1],
34
+ content: customMatch[3]
35
+ });
36
+ }
37
+ }
38
+ return result;
39
+ }
40
+ function getVueTexts(content) {
41
+ const obj = getVueText(content);
42
+ return {
43
+ script: obj.scripts.join("\n"),
44
+ style: obj.styles.join("\n")
45
+ };
46
+ }
47
+
48
+ export {
49
+ getVueText,
50
+ getVueTexts
51
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  string_exports
3
- } from "./chunk-6FNUWY2K.js";
3
+ } from "./chunk-4HDH7W4I.js";
4
4
  import {
5
5
  object_exports
6
6
  } from "./chunk-IEQHKLEL.js";
7
7
  import {
8
8
  array_exports
9
- } from "./chunk-LU22MUUS.js";
9
+ } from "./chunk-EGM54DV6.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-MLKGABMK.js";
@@ -4,6 +4,10 @@ import {
4
4
  import {
5
5
  generateHtmlh
6
6
  } from "./chunk-IV7XHH6K.js";
7
+ import {
8
+ getVueText,
9
+ getVueTexts
10
+ } from "./chunk-7PJ2D3KR.js";
7
11
  import {
8
12
  htmlEscape
9
13
  } from "./chunk-NCSN3MC5.js";
@@ -16,6 +20,8 @@ var html_exports = {};
16
20
  __export(html_exports, {
17
21
  analysisHtml: () => analysisHtml,
18
22
  generateHtmlh: () => generateHtmlh,
23
+ getVueText: () => getVueText,
24
+ getVueTexts: () => getVueTexts,
19
25
  htmlEscape: () => htmlEscape
20
26
  });
21
27
 
@@ -1,5 +1,5 @@
1
1
  // packages/basic/string/deComment.ts
2
- function removeComments(code) {
2
+ function deComment(code) {
3
3
  let output = "";
4
4
  let state = "code";
5
5
  let escaping = false;
@@ -91,5 +91,5 @@ function removeComments(code) {
91
91
  }
92
92
 
93
93
  export {
94
- removeComments
94
+ deComment
95
95
  };
@@ -1,33 +1,33 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCP2ZSRMUcjs = require('./chunk-CP2ZSRMU.cjs');
3
+ var _chunkNESVPZNFcjs = require('./chunk-NESVPZNF.cjs');
4
4
 
5
5
 
6
- var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
6
+ var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
7
7
 
8
8
 
9
- var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
9
+ var _chunk3DD7YCN2cjs = require('./chunk-3DD7YCN2.cjs');
10
10
 
11
11
 
12
- var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
12
+ var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
13
13
 
14
14
 
15
- var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
15
+ var _chunkCP2ZSRMUcjs = require('./chunk-CP2ZSRMU.cjs');
16
16
 
17
17
 
18
- var _chunkUF6FYYWFcjs = require('./chunk-UF6FYYWF.cjs');
18
+ var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
19
19
 
20
20
 
21
- var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
21
+ var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
22
22
 
23
23
 
24
- var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
24
+ var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
25
25
 
26
26
 
27
- var _chunkTV3NKA26cjs = require('./chunk-TV3NKA26.cjs');
27
+ var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
28
28
 
29
29
 
30
- var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
30
+ var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
31
31
 
32
32
 
33
33
  var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
@@ -38,9 +38,9 @@ _chunk75ZPJI57cjs.__export.call(void 0, urls_exports, {
38
38
  getImportUrl: () => _chunkIRKWYW5Bcjs.getImportUrl,
39
39
  getImportUrlSuffix: () => _chunk27WA7EI2cjs.getImportUrlSuffix,
40
40
  getNewFileName: () => _chunk43VE3KXLcjs.getNewFileName,
41
- getReplaceCompleteUrl: () => _chunkUF6FYYWFcjs.getReplaceCompleteUrl,
41
+ getReplaceCompleteUrl: () => _chunkNESVPZNFcjs.getReplaceCompleteUrl,
42
42
  getReplaceImportUrl: () => _chunkRFUD3TOQcjs.getReplaceImportUrl,
43
- getReplaceUrl: () => _chunkTV3NKA26cjs.getReplaceUrl,
43
+ getReplaceUrl: () => _chunk3DD7YCN2cjs.getReplaceUrl,
44
44
  getSuffix: () => _chunk6A6EAFGLcjs.getSuffix,
45
45
  getUrlCatalogue: () => _chunkCP2ZSRMUcjs.getUrlCatalogue,
46
46
  getUrlCatalogueLast: () => _chunk3ERQHPTDcjs.getUrlCatalogueLast,
@@ -1,5 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/getImports.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXWCRGY54cjs = require('./chunk-XWCRGY54.cjs');
4
+
5
+ // packages/basic/string/getImports.ts
2
6
  function getImports(code) {
7
+ code = _chunkXWCRGY54cjs.deComment.call(void 0, code);
3
8
  const regex = /import\s?(?:type)?\s?(?:(?:(?:[\w*\s{},]*)\s+from\s+)?['"](.*?)['"]|['"](.*?)['"])|import\(['"](.*?)['"]\)/g;
4
9
  const imports = /* @__PURE__ */ new Set();
5
10
  let match;
@@ -1,5 +1,10 @@
1
+ import {
2
+ deComment
3
+ } from "./chunk-FS4JPT23.js";
4
+
1
5
  // packages/basic/string/getImports.ts
2
6
  function getImports(code) {
7
+ code = deComment(code);
3
8
  const regex = /import\s?(?:type)?\s?(?:(?:(?:[\w*\s{},]*)\s+from\s+)?['"](.*?)['"]|['"](.*?)['"])|import\(['"](.*?)['"]\)/g;
4
9
  const imports = /* @__PURE__ */ new Set();
5
10
  let match;