@xyo-network/diviner-hash-lease 2.92.2

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 (78) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +13 -0
  3. package/dist/browser/Diviner.d.cts +40 -0
  4. package/dist/browser/Diviner.d.cts.map +1 -0
  5. package/dist/browser/Diviner.d.mts +40 -0
  6. package/dist/browser/Diviner.d.mts.map +1 -0
  7. package/dist/browser/Diviner.d.ts +40 -0
  8. package/dist/browser/Diviner.d.ts.map +1 -0
  9. package/dist/browser/index.cjs +8905 -0
  10. package/dist/browser/index.cjs.map +1 -0
  11. package/dist/browser/index.d.cts +2 -0
  12. package/dist/browser/index.d.cts.map +1 -0
  13. package/dist/browser/index.d.mts +2 -0
  14. package/dist/browser/index.d.mts.map +1 -0
  15. package/dist/browser/index.d.ts +2 -0
  16. package/dist/browser/index.d.ts.map +1 -0
  17. package/dist/browser/index.js +8884 -0
  18. package/dist/browser/index.js.map +1 -0
  19. package/dist/browser/reservedBrands.d.cts +5 -0
  20. package/dist/browser/reservedBrands.d.cts.map +1 -0
  21. package/dist/browser/reservedBrands.d.mts +5 -0
  22. package/dist/browser/reservedBrands.d.mts.map +1 -0
  23. package/dist/browser/reservedBrands.d.ts +5 -0
  24. package/dist/browser/reservedBrands.d.ts.map +1 -0
  25. package/dist/browser/reservedCryptos.d.cts +6 -0
  26. package/dist/browser/reservedCryptos.d.cts.map +1 -0
  27. package/dist/browser/reservedCryptos.d.mts +6 -0
  28. package/dist/browser/reservedCryptos.d.mts.map +1 -0
  29. package/dist/browser/reservedCryptos.d.ts +6 -0
  30. package/dist/browser/reservedCryptos.d.ts.map +1 -0
  31. package/dist/browser/reservedDomains.d.cts +4 -0
  32. package/dist/browser/reservedDomains.d.cts.map +1 -0
  33. package/dist/browser/reservedDomains.d.mts +4 -0
  34. package/dist/browser/reservedDomains.d.mts.map +1 -0
  35. package/dist/browser/reservedDomains.d.ts +4 -0
  36. package/dist/browser/reservedDomains.d.ts.map +1 -0
  37. package/dist/node/Diviner.d.cts +40 -0
  38. package/dist/node/Diviner.d.cts.map +1 -0
  39. package/dist/node/Diviner.d.mts +40 -0
  40. package/dist/node/Diviner.d.mts.map +1 -0
  41. package/dist/node/Diviner.d.ts +40 -0
  42. package/dist/node/Diviner.d.ts.map +1 -0
  43. package/dist/node/index.cjs +8917 -0
  44. package/dist/node/index.cjs.map +1 -0
  45. package/dist/node/index.d.cts +2 -0
  46. package/dist/node/index.d.cts.map +1 -0
  47. package/dist/node/index.d.mts +2 -0
  48. package/dist/node/index.d.mts.map +1 -0
  49. package/dist/node/index.d.ts +2 -0
  50. package/dist/node/index.d.ts.map +1 -0
  51. package/dist/node/index.js +8888 -0
  52. package/dist/node/index.js.map +1 -0
  53. package/dist/node/reservedBrands.d.cts +5 -0
  54. package/dist/node/reservedBrands.d.cts.map +1 -0
  55. package/dist/node/reservedBrands.d.mts +5 -0
  56. package/dist/node/reservedBrands.d.mts.map +1 -0
  57. package/dist/node/reservedBrands.d.ts +5 -0
  58. package/dist/node/reservedBrands.d.ts.map +1 -0
  59. package/dist/node/reservedCryptos.d.cts +6 -0
  60. package/dist/node/reservedCryptos.d.cts.map +1 -0
  61. package/dist/node/reservedCryptos.d.mts +6 -0
  62. package/dist/node/reservedCryptos.d.mts.map +1 -0
  63. package/dist/node/reservedCryptos.d.ts +6 -0
  64. package/dist/node/reservedCryptos.d.ts.map +1 -0
  65. package/dist/node/reservedDomains.d.cts +4 -0
  66. package/dist/node/reservedDomains.d.cts.map +1 -0
  67. package/dist/node/reservedDomains.d.mts +4 -0
  68. package/dist/node/reservedDomains.d.mts.map +1 -0
  69. package/dist/node/reservedDomains.d.ts +4 -0
  70. package/dist/node/reservedDomains.d.ts.map +1 -0
  71. package/package.json +67 -0
  72. package/src/Diviner.ts +130 -0
  73. package/src/index.ts +1 -0
  74. package/src/reservedBrands.ts +2003 -0
  75. package/src/reservedCryptos.json +3760 -0
  76. package/src/reservedCryptos.ts +8 -0
  77. package/src/reservedDomains.ts +3003 -0
  78. package/typedoc.json +5 -0
@@ -0,0 +1,5 @@
1
+ export declare const reservedBrands: {
2
+ name: string;
3
+ value: number;
4
+ }[];
5
+ //# sourceMappingURL=reservedBrands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedBrands.d.ts","sourceRoot":"","sources":["../../src/reservedBrands.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;GAi9D1B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const reservedBrands: {
2
+ name: string;
3
+ value: number;
4
+ }[];
5
+ //# sourceMappingURL=reservedBrands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedBrands.d.ts","sourceRoot":"","sources":["../../src/reservedBrands.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;GAi9D1B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const reservedBrands: {
2
+ name: string;
3
+ value: number;
4
+ }[];
5
+ //# sourceMappingURL=reservedBrands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedBrands.d.ts","sourceRoot":"","sources":["../../src/reservedBrands.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;GAi9D1B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Crypto {
2
+ name: string;
3
+ symbol: string;
4
+ }
5
+ export declare const reservedCryptos: Crypto[];
6
+ //# sourceMappingURL=reservedCryptos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedCryptos.d.ts","sourceRoot":"","sources":["../../src/reservedCryptos.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,EAAkF,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Crypto {
2
+ name: string;
3
+ symbol: string;
4
+ }
5
+ export declare const reservedCryptos: Crypto[];
6
+ //# sourceMappingURL=reservedCryptos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedCryptos.d.ts","sourceRoot":"","sources":["../../src/reservedCryptos.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,EAAkF,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Crypto {
2
+ name: string;
3
+ symbol: string;
4
+ }
5
+ export declare const reservedCryptos: Crypto[];
6
+ //# sourceMappingURL=reservedCryptos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedCryptos.d.ts","sourceRoot":"","sources":["../../src/reservedCryptos.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,EAAkF,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const reservedDomains: {
2
+ name: string;
3
+ }[];
4
+ //# sourceMappingURL=reservedDomains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedDomains.d.ts","sourceRoot":"","sources":["../../src/reservedDomains.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe;;GAy7F3B,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const reservedDomains: {
2
+ name: string;
3
+ }[];
4
+ //# sourceMappingURL=reservedDomains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedDomains.d.ts","sourceRoot":"","sources":["../../src/reservedDomains.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe;;GAy7F3B,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const reservedDomains: {
2
+ name: string;
3
+ }[];
4
+ //# sourceMappingURL=reservedDomains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedDomains.d.ts","sourceRoot":"","sources":["../../src/reservedDomains.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe;;GAy7F3B,CAAA"}
@@ -0,0 +1,40 @@
1
+ import { ArchivistParams } from '@xyo-network/archivist-model';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import { DivinerConfig } from '@xyo-network/diviner-model';
4
+ import { AnyConfigSchema } from '@xyo-network/module-model';
5
+ import { Payload, WithSources } from '@xyo-network/payload-model';
6
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
7
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
8
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{
9
+ baseMonthlyPrice?: number;
10
+ characterLengthFactor?: number;
11
+ minNameLength?: number;
12
+ }, HashLeaseEstimateDivinerConfigSchema>;
13
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = ArchivistParams<TConfig>;
14
+ export declare const NameSchema = "network.xyo.name";
15
+ export type NameSchema = typeof NameSchema;
16
+ export type Name = Payload<{
17
+ name: string;
18
+ }, NameSchema>;
19
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
20
+ export type HashLeaseSchema = typeof HashLeaseSchema;
21
+ export type HashLease = Payload<{
22
+ expire: number;
23
+ }, HashLeaseSchema>;
24
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
25
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
26
+ export type HashLeaseEstimate = Payload<{
27
+ price: number;
28
+ }, HashLeaseEstimateSchema>;
29
+ export declare class HashLeaseEstimateDiviner<TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams, TIn extends WithSources<HashLease> | Name = WithSources<HashLease> | Name> extends AbstractDiviner<TParams, TIn, HashLeaseEstimate> {
30
+ static targetSchema: string;
31
+ private _reservedFragments;
32
+ private _reservedStrings?;
33
+ get baseMonthlyPrice(): number;
34
+ get characterLengthFactor(): number;
35
+ get minNameLength(): number;
36
+ get reservedStrings(): string[];
37
+ protected divineHandler(payloads?: TIn[]): Promise<WithSources<HashLeaseEstimate>[]>;
38
+ private calculateLengthCost;
39
+ }
40
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAmB,MAAM,2BAA2B,CAAA;AAE5E,OAAO,EAAiC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQhG,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD;IACE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,EACD,oCAAoC,CACrC,CAAA;AAED,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,eAAe,CAAC,OAAO,CAAC,CAAA;AAE5B,eAAO,MAAM,UAAU,qBAAqB,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA;AAE1C,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,UAAU,CAAC,CAAA;AAExD,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA;AAEpD,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B;IACE,MAAM,EAAE,MAAM,CAAA;CACf,EACD,eAAe,CAChB,CAAA;AAED,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,uBAAuB,CAAC,CAAA;AAEnF,qBACa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,EAC/E,GAAG,SAAS,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CACzE,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,iBAAiB,CAAC;IACxD,OAAgB,YAAY,SAA0B;IAEtD,OAAO,CAAC,kBAAkB,CAA4D;IAEtF,OAAO,CAAC,gBAAgB,CAAC,CAAU;IAEnC,IAAI,gBAAgB,WAEnB;IAED,IAAI,qBAAqB,WAExB;IAED,IAAI,aAAa,WAEhB;IAED,IAAI,eAAe,aAWlB;cAEwB,aAAa,CAAC,QAAQ,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAoCvG,OAAO,CAAC,mBAAmB;CAO5B"}
@@ -0,0 +1,40 @@
1
+ import { ArchivistParams } from '@xyo-network/archivist-model';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import { DivinerConfig } from '@xyo-network/diviner-model';
4
+ import { AnyConfigSchema } from '@xyo-network/module-model';
5
+ import { Payload, WithSources } from '@xyo-network/payload-model';
6
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
7
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
8
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{
9
+ baseMonthlyPrice?: number;
10
+ characterLengthFactor?: number;
11
+ minNameLength?: number;
12
+ }, HashLeaseEstimateDivinerConfigSchema>;
13
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = ArchivistParams<TConfig>;
14
+ export declare const NameSchema = "network.xyo.name";
15
+ export type NameSchema = typeof NameSchema;
16
+ export type Name = Payload<{
17
+ name: string;
18
+ }, NameSchema>;
19
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
20
+ export type HashLeaseSchema = typeof HashLeaseSchema;
21
+ export type HashLease = Payload<{
22
+ expire: number;
23
+ }, HashLeaseSchema>;
24
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
25
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
26
+ export type HashLeaseEstimate = Payload<{
27
+ price: number;
28
+ }, HashLeaseEstimateSchema>;
29
+ export declare class HashLeaseEstimateDiviner<TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams, TIn extends WithSources<HashLease> | Name = WithSources<HashLease> | Name> extends AbstractDiviner<TParams, TIn, HashLeaseEstimate> {
30
+ static targetSchema: string;
31
+ private _reservedFragments;
32
+ private _reservedStrings?;
33
+ get baseMonthlyPrice(): number;
34
+ get characterLengthFactor(): number;
35
+ get minNameLength(): number;
36
+ get reservedStrings(): string[];
37
+ protected divineHandler(payloads?: TIn[]): Promise<WithSources<HashLeaseEstimate>[]>;
38
+ private calculateLengthCost;
39
+ }
40
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAC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AM,CAAA;CAAE,EAAE,uBAAuB,CAAC,CAAA;AAEnF,qBACa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,EAC/E,GAAG,SAAS,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CACzE,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,iBAAiB,CAAC;IACxD,OAAgB,YAAY,SAA0B;IAEtD,OAAO,CAAC,kBAAkB,CAA4D;IAEtF,OAAO,CAAC,gBAAgB,CAAC,CAAU;IAEnC,IAAI,gBAAgB,WAEnB;IAED,IAAI,qBAAqB,WAExB;IAED,IAAI,aAAa,WAEhB;IAED,IAAI,eAAe,aAWlB;cAEwB,aAAa,CAAC,QAAQ,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAoCvG,OAAO,CAAC,mBAAmB;CAO5B"}
@@ -0,0 +1,40 @@
1
+ import { ArchivistParams } from '@xyo-network/archivist-model';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import { DivinerConfig } from '@xyo-network/diviner-model';
4
+ import { AnyConfigSchema } from '@xyo-network/module-model';
5
+ import { Payload, WithSources } from '@xyo-network/payload-model';
6
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
7
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
8
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{
9
+ baseMonthlyPrice?: number;
10
+ characterLengthFactor?: number;
11
+ minNameLength?: number;
12
+ }, HashLeaseEstimateDivinerConfigSchema>;
13
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = ArchivistParams<TConfig>;
14
+ export declare const NameSchema = "network.xyo.name";
15
+ export type NameSchema = typeof NameSchema;
16
+ export type Name = Payload<{
17
+ name: string;
18
+ }, NameSchema>;
19
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
20
+ export type HashLeaseSchema = typeof HashLeaseSchema;
21
+ export type HashLease = Payload<{
22
+ expire: number;
23
+ }, HashLeaseSchema>;
24
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
25
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
26
+ export type HashLeaseEstimate = Payload<{
27
+ price: number;
28
+ }, HashLeaseEstimateSchema>;
29
+ export declare class HashLeaseEstimateDiviner<TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams, TIn extends WithSources<HashLease> | Name = WithSources<HashLease> | Name> extends AbstractDiviner<TParams, TIn, HashLeaseEstimate> {
30
+ static targetSchema: string;
31
+ private _reservedFragments;
32
+ private _reservedStrings?;
33
+ get baseMonthlyPrice(): number;
34
+ get characterLengthFactor(): number;
35
+ get minNameLength(): number;
36
+ get reservedStrings(): string[];
37
+ protected divineHandler(payloads?: TIn[]): Promise<WithSources<HashLeaseEstimate>[]>;
38
+ private calculateLengthCost;
39
+ }
40
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAmB,MAAM,2BAA2B,CAAA;AAE5E,OAAO,EAAiC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQhG,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAA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