@fluidframework/driver-utils 2.0.0-dev.3.1.0.125672 → 2.0.0-dev.4.1.0.148229

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 (137) hide show
  1. package/dist/fluidResolvedUrl.d.ts +8 -0
  2. package/dist/fluidResolvedUrl.d.ts.map +1 -1
  3. package/dist/fluidResolvedUrl.js +8 -0
  4. package/dist/fluidResolvedUrl.js.map +1 -1
  5. package/dist/index.d.ts +4 -11
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -21
  8. package/dist/index.js.map +1 -1
  9. package/dist/messageRecognition.d.ts +0 -20
  10. package/dist/messageRecognition.d.ts.map +1 -1
  11. package/dist/messageRecognition.js +1 -37
  12. package/dist/messageRecognition.js.map +1 -1
  13. package/dist/network.d.ts +0 -15
  14. package/dist/network.d.ts.map +1 -1
  15. package/dist/network.js.map +1 -1
  16. package/dist/networkUtils.d.ts +0 -10
  17. package/dist/networkUtils.d.ts.map +1 -1
  18. package/dist/networkUtils.js +1 -32
  19. package/dist/networkUtils.js.map +1 -1
  20. package/dist/packageVersion.d.ts +1 -1
  21. package/dist/packageVersion.js +1 -1
  22. package/dist/packageVersion.js.map +1 -1
  23. package/dist/parallelRequests.d.ts.map +1 -1
  24. package/dist/parallelRequests.js +33 -14
  25. package/dist/parallelRequests.js.map +1 -1
  26. package/dist/summaryForCreateNew.d.ts +21 -1
  27. package/dist/summaryForCreateNew.d.ts.map +1 -1
  28. package/dist/summaryForCreateNew.js +26 -1
  29. package/dist/summaryForCreateNew.js.map +1 -1
  30. package/dist/treeConversions.d.ts.map +1 -1
  31. package/dist/treeConversions.js +8 -9
  32. package/dist/treeConversions.js.map +1 -1
  33. package/lib/fluidResolvedUrl.d.ts +8 -0
  34. package/lib/fluidResolvedUrl.d.ts.map +1 -1
  35. package/lib/fluidResolvedUrl.js +8 -0
  36. package/lib/fluidResolvedUrl.js.map +1 -1
  37. package/lib/index.d.ts +4 -11
  38. package/lib/index.d.ts.map +1 -1
  39. package/lib/index.js +3 -10
  40. package/lib/index.js.map +1 -1
  41. package/lib/messageRecognition.d.ts +0 -20
  42. package/lib/messageRecognition.d.ts.map +1 -1
  43. package/lib/messageRecognition.js +0 -35
  44. package/lib/messageRecognition.js.map +1 -1
  45. package/lib/network.d.ts +0 -15
  46. package/lib/network.d.ts.map +1 -1
  47. package/lib/network.js.map +1 -1
  48. package/lib/networkUtils.d.ts +0 -10
  49. package/lib/networkUtils.d.ts.map +1 -1
  50. package/lib/networkUtils.js +0 -30
  51. package/lib/networkUtils.js.map +1 -1
  52. package/lib/packageVersion.d.ts +1 -1
  53. package/lib/packageVersion.js +1 -1
  54. package/lib/packageVersion.js.map +1 -1
  55. package/lib/parallelRequests.d.ts.map +1 -1
  56. package/lib/parallelRequests.js +34 -15
  57. package/lib/parallelRequests.js.map +1 -1
  58. package/lib/summaryForCreateNew.d.ts +21 -1
  59. package/lib/summaryForCreateNew.d.ts.map +1 -1
  60. package/lib/summaryForCreateNew.js +24 -0
  61. package/lib/summaryForCreateNew.js.map +1 -1
  62. package/lib/treeConversions.d.ts.map +1 -1
  63. package/lib/treeConversions.js +8 -9
  64. package/lib/treeConversions.js.map +1 -1
  65. package/package.json +52 -75
  66. package/src/fluidResolvedUrl.ts +8 -0
  67. package/src/index.ts +4 -19
  68. package/src/messageRecognition.ts +0 -36
  69. package/src/network.ts +0 -16
  70. package/src/networkUtils.ts +0 -32
  71. package/src/packageVersion.ts +1 -1
  72. package/src/parallelRequests.ts +37 -18
  73. package/src/summaryForCreateNew.ts +48 -2
  74. package/src/treeConversions.ts +8 -9
  75. package/dist/blobAggregationStorage.d.ts +0 -43
  76. package/dist/blobAggregationStorage.d.ts.map +0 -1
  77. package/dist/blobAggregationStorage.js +0 -323
  78. package/dist/blobAggregationStorage.js.map +0 -1
  79. package/dist/blobCacheStorageService.d.ts +0 -16
  80. package/dist/blobCacheStorageService.d.ts.map +0 -1
  81. package/dist/blobCacheStorageService.js +0 -29
  82. package/dist/blobCacheStorageService.js.map +0 -1
  83. package/dist/emptyDocumentDeltaStorageService.d.ts +0 -13
  84. package/dist/emptyDocumentDeltaStorageService.d.ts.map +0 -1
  85. package/dist/emptyDocumentDeltaStorageService.js +0 -20
  86. package/dist/emptyDocumentDeltaStorageService.js.map +0 -1
  87. package/dist/mapWithExpiration.d.ts +0 -34
  88. package/dist/mapWithExpiration.d.ts.map +0 -1
  89. package/dist/mapWithExpiration.js +0 -105
  90. package/dist/mapWithExpiration.js.map +0 -1
  91. package/dist/multiDocumentServiceFactory.d.ts +0 -16
  92. package/dist/multiDocumentServiceFactory.d.ts.map +0 -1
  93. package/dist/multiDocumentServiceFactory.js +0 -63
  94. package/dist/multiDocumentServiceFactory.js.map +0 -1
  95. package/dist/multiUrlResolver.d.ts +0 -20
  96. package/dist/multiUrlResolver.d.ts.map +0 -1
  97. package/dist/multiUrlResolver.js +0 -45
  98. package/dist/multiUrlResolver.js.map +0 -1
  99. package/dist/treeUtils.d.ts +0 -51
  100. package/dist/treeUtils.d.ts.map +0 -1
  101. package/dist/treeUtils.js +0 -85
  102. package/dist/treeUtils.js.map +0 -1
  103. package/lib/blobAggregationStorage.d.ts +0 -43
  104. package/lib/blobAggregationStorage.d.ts.map +0 -1
  105. package/lib/blobAggregationStorage.js +0 -318
  106. package/lib/blobAggregationStorage.js.map +0 -1
  107. package/lib/blobCacheStorageService.d.ts +0 -16
  108. package/lib/blobCacheStorageService.d.ts.map +0 -1
  109. package/lib/blobCacheStorageService.js +0 -25
  110. package/lib/blobCacheStorageService.js.map +0 -1
  111. package/lib/emptyDocumentDeltaStorageService.d.ts +0 -13
  112. package/lib/emptyDocumentDeltaStorageService.d.ts.map +0 -1
  113. package/lib/emptyDocumentDeltaStorageService.js +0 -16
  114. package/lib/emptyDocumentDeltaStorageService.js.map +0 -1
  115. package/lib/mapWithExpiration.d.ts +0 -34
  116. package/lib/mapWithExpiration.d.ts.map +0 -1
  117. package/lib/mapWithExpiration.js +0 -101
  118. package/lib/mapWithExpiration.js.map +0 -1
  119. package/lib/multiDocumentServiceFactory.d.ts +0 -16
  120. package/lib/multiDocumentServiceFactory.d.ts.map +0 -1
  121. package/lib/multiDocumentServiceFactory.js +0 -59
  122. package/lib/multiDocumentServiceFactory.js.map +0 -1
  123. package/lib/multiUrlResolver.d.ts +0 -20
  124. package/lib/multiUrlResolver.d.ts.map +0 -1
  125. package/lib/multiUrlResolver.js +0 -40
  126. package/lib/multiUrlResolver.js.map +0 -1
  127. package/lib/treeUtils.d.ts +0 -51
  128. package/lib/treeUtils.d.ts.map +0 -1
  129. package/lib/treeUtils.js +0 -80
  130. package/lib/treeUtils.js.map +0 -1
  131. package/src/blobAggregationStorage.ts +0 -420
  132. package/src/blobCacheStorageService.ts +0 -35
  133. package/src/emptyDocumentDeltaStorageService.ts +0 -25
  134. package/src/mapWithExpiration.ts +0 -124
  135. package/src/multiDocumentServiceFactory.ts +0 -91
  136. package/src/multiUrlResolver.ts +0 -48
  137. package/src/treeUtils.ts +0 -107
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentServiceFactory, IResolvedUrl, IDocumentService } from "@fluidframework/driver-definitions";
6
- import { ISummaryTree } from "@fluidframework/protocol-definitions";
7
- import { ITelemetryBaseLogger } from "@fluidframework/common-definitions";
8
- export declare class MultiDocumentServiceFactory implements IDocumentServiceFactory {
9
- static create(documentServiceFactory: IDocumentServiceFactory | IDocumentServiceFactory[]): IDocumentServiceFactory;
10
- private readonly protocolToDocumentFactoryMap;
11
- constructor(documentServiceFactories: IDocumentServiceFactory[]);
12
- readonly protocolName = "none:";
13
- createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
14
- createContainer(createNewSummary: ISummaryTree, createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
15
- }
16
- //# sourceMappingURL=multiDocumentServiceFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/multiDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,qBAAa,2BAA4B,YAAW,uBAAuB;WAC5D,MAAM,CACnB,sBAAsB,EAAE,uBAAuB,GAAG,uBAAuB,EAAE;IAoB5E,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAuC;gBAExE,wBAAwB,EAAE,uBAAuB,EAAE;IAM/D,SAAgB,YAAY,WAAW;IACjC,qBAAqB,CAC1B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAgBf,eAAe,CAC3B,gBAAgB,EAAE,YAAY,EAC9B,oBAAoB,EAAE,YAAY,EAClC,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CAmB5B"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.MultiDocumentServiceFactory = void 0;
8
- const url_1 = require("url");
9
- const fluidResolvedUrl_1 = require("./fluidResolvedUrl");
10
- class MultiDocumentServiceFactory {
11
- constructor(documentServiceFactories) {
12
- this.protocolName = "none:";
13
- this.protocolToDocumentFactoryMap = new Map();
14
- documentServiceFactories.forEach((factory) => {
15
- this.protocolToDocumentFactoryMap.set(factory.protocolName, factory);
16
- });
17
- }
18
- static create(documentServiceFactory) {
19
- if (Array.isArray(documentServiceFactory)) {
20
- const factories = [];
21
- documentServiceFactory.forEach((factory) => {
22
- const maybeMulti = factory;
23
- if (maybeMulti.protocolToDocumentFactoryMap !== undefined) {
24
- factories.push(...maybeMulti.protocolToDocumentFactoryMap.values());
25
- }
26
- else {
27
- factories.push(factory);
28
- }
29
- });
30
- if (factories.length === 1) {
31
- return factories[0];
32
- }
33
- return new MultiDocumentServiceFactory(factories);
34
- }
35
- return documentServiceFactory;
36
- }
37
- async createDocumentService(resolvedUrl, logger, clientIsSummarizer) {
38
- (0, fluidResolvedUrl_1.ensureFluidResolvedUrl)(resolvedUrl);
39
- const urlObj = (0, url_1.parse)(resolvedUrl.url);
40
- if (urlObj.protocol === undefined || urlObj.protocol === null) {
41
- throw new Error("No protocol provided");
42
- }
43
- const factory = this.protocolToDocumentFactoryMap.get(urlObj.protocol);
44
- if (factory === undefined) {
45
- throw new Error("Unknown Fluid protocol");
46
- }
47
- return factory.createDocumentService(resolvedUrl, logger, clientIsSummarizer);
48
- }
49
- async createContainer(createNewSummary, createNewResolvedUrl, logger, clientIsSummarizer) {
50
- (0, fluidResolvedUrl_1.ensureFluidResolvedUrl)(createNewResolvedUrl);
51
- const urlObj = (0, url_1.parse)(createNewResolvedUrl.url);
52
- if (urlObj.protocol === undefined || urlObj.protocol === null) {
53
- throw new Error("No protocol provided");
54
- }
55
- const factory = this.protocolToDocumentFactoryMap.get(urlObj.protocol);
56
- if (factory === undefined) {
57
- throw new Error("Unknown Fluid protocol");
58
- }
59
- return factory.createContainer(createNewSummary, createNewResolvedUrl, logger, clientIsSummarizer);
60
- }
61
- }
62
- exports.MultiDocumentServiceFactory = MultiDocumentServiceFactory;
63
- //# sourceMappingURL=multiDocumentServiceFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiDocumentServiceFactory.js","sour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AW,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC9D,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACxC;QACD,MAAM,OAAO,GAAwC,IAAI,CAAC,4BAA4B,CAAC,GAAG,CACzF,MAAM,CAAC,QAAQ,CACf,CAAC;QACF,IAAI,OAAO,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;SAC1C;QAED,OAAO,OAAO,CAAC,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC/E,CAAC;IAEM,KAAK,CAAC,eAAe,CAC3B,gBAA8B,EAC9B,oBAAkC,EAClC,MAA6B,EAC7B,kBAA4B;QAE5B,IAAA,yCAAsB,EAAC,oBAAoB,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,IAAA,WAAK,EAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;QAC/C,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC9D,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACxC;QACD,MAAM,OAAO,GAAwC,IAAI,CAAC,4BAA4B,CAAC,GAAG,CACzF,MAAM,CAAC,QAAQ,CACf,CAAC;QACF,IAAI,OAAO,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;SAC1C;QACD,OAAO,OAAO,CAAC,eAAe,CAC7B,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,EACN,kBAAkB,CAClB,CAAC;IACH,CAAC;CACD;AA3ED,kEA2EC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { parse } from \"url\";\nimport {\n\tIDocumentServiceFactory,\n\tIResolvedUrl,\n\tIDocumentService,\n} from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/common-definitions\";\nimport { ensureFluidResolvedUrl } from \"./fluidResolvedUrl\";\n\nexport class MultiDocumentServiceFactory implements IDocumentServiceFactory {\n\tpublic static create(\n\t\tdocumentServiceFactory: IDocumentServiceFactory | IDocumentServiceFactory[],\n\t) {\n\t\tif (Array.isArray(documentServiceFactory)) {\n\t\t\tconst factories: IDocumentServiceFactory[] = [];\n\t\t\tdocumentServiceFactory.forEach((factory) => {\n\t\t\t\tconst maybeMulti = factory as MultiDocumentServiceFactory;\n\t\t\t\tif (maybeMulti.protocolToDocumentFactoryMap !== undefined) {\n\t\t\t\t\tfactories.push(...maybeMulti.protocolToDocumentFactoryMap.values());\n\t\t\t\t} else {\n\t\t\t\t\tfactories.push(factory);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (factories.length === 1) {\n\t\t\t\treturn factories[0];\n\t\t\t}\n\t\t\treturn new MultiDocumentServiceFactory(factories);\n\t\t}\n\t\treturn documentServiceFactory;\n\t}\n\n\tprivate readonly protocolToDocumentFactoryMap: Map<string, IDocumentServiceFactory>;\n\n\tconstructor(documentServiceFactories: IDocumentServiceFactory[]) {\n\t\tthis.protocolToDocumentFactoryMap = new Map();\n\t\tdocumentServiceFactories.forEach((factory: IDocumentServiceFactory) => {\n\t\t\tthis.protocolToDocumentFactoryMap.set(factory.protocolName, factory);\n\t\t});\n\t}\n\tpublic readonly protocolName = \"none:\";\n\tasync createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tensureFluidResolvedUrl(resolvedUrl);\n\t\tconst urlObj = parse(resolvedUrl.url);\n\t\tif (urlObj.protocol === undefined || urlObj.protocol === null) {\n\t\t\tthrow new Error(\"No protocol provided\");\n\t\t}\n\t\tconst factory: IDocumentServiceFactory | undefined = this.protocolToDocumentFactoryMap.get(\n\t\t\turlObj.protocol,\n\t\t);\n\t\tif (factory === undefined) {\n\t\t\tthrow new Error(\"Unknown Fluid protocol\");\n\t\t}\n\n\t\treturn factory.createDocumentService(resolvedUrl, logger, clientIsSummarizer);\n\t}\n\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tensureFluidResolvedUrl(createNewResolvedUrl);\n\t\tconst urlObj = parse(createNewResolvedUrl.url);\n\t\tif (urlObj.protocol === undefined || urlObj.protocol === null) {\n\t\t\tthrow new Error(\"No protocol provided\");\n\t\t}\n\t\tconst factory: IDocumentServiceFactory | undefined = this.protocolToDocumentFactoryMap.get(\n\t\t\turlObj.protocol,\n\t\t);\n\t\tif (factory === undefined) {\n\t\t\tthrow new Error(\"Unknown Fluid protocol\");\n\t\t}\n\t\treturn factory.createContainer(\n\t\t\tcreateNewSummary,\n\t\t\tcreateNewResolvedUrl,\n\t\t\tlogger,\n\t\t\tclientIsSummarizer,\n\t\t);\n\t}\n}\n"]}
@@ -1,20 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IRequest } from "@fluidframework/core-interfaces";
6
- import { IResolvedUrl, IUrlResolver } from "@fluidframework/driver-definitions";
7
- /**
8
- * Resolver that takes a list of url resolvers and then try each of them to resolve the url.
9
- * @param resolversList - List of url resolvers to be used to resolve the request.
10
- * @param request - Request to be resolved.
11
- */
12
- export declare function configurableUrlResolver(resolversList: IUrlResolver[], request: IRequest): Promise<IResolvedUrl | undefined>;
13
- export declare class MultiUrlResolver implements IUrlResolver {
14
- private readonly urlResolvers;
15
- static create(urlResolver: IUrlResolver | IUrlResolver[]): IUrlResolver;
16
- private constructor();
17
- resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
18
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
19
- }
20
- //# sourceMappingURL=multiUrlResolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiUrlResolver.d.ts","sourceRoot":"","sources":["../src/multiUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEhF;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC5C,aAAa,EAAE,YAAY,EAAE,EAC7B,OAAO,EAAE,QAAQ,GACf,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CASnC;AAED,qBAAa,gBAAiB,YAAW,YAAY;IAWhC,OAAO,CAAC,QAAQ,CAAC,YAAY;WAVnC,MAAM,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY,EAAE;IAU/D,OAAO;IAED,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAItD,cAAc,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5F"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.MultiUrlResolver = exports.configurableUrlResolver = void 0;
8
- /**
9
- * Resolver that takes a list of url resolvers and then try each of them to resolve the url.
10
- * @param resolversList - List of url resolvers to be used to resolve the request.
11
- * @param request - Request to be resolved.
12
- */
13
- async function configurableUrlResolver(resolversList, request) {
14
- let resolved;
15
- for (const resolver of resolversList) {
16
- resolved = await resolver.resolve(Object.assign({}, request));
17
- if (resolved !== undefined) {
18
- return resolved;
19
- }
20
- }
21
- return undefined;
22
- }
23
- exports.configurableUrlResolver = configurableUrlResolver;
24
- class MultiUrlResolver {
25
- constructor(urlResolvers) {
26
- this.urlResolvers = urlResolvers;
27
- }
28
- static create(urlResolver) {
29
- if (Array.isArray(urlResolver)) {
30
- if (urlResolver.length === 1) {
31
- return urlResolver[0];
32
- }
33
- return new MultiUrlResolver(urlResolver);
34
- }
35
- return urlResolver;
36
- }
37
- async resolve(request) {
38
- return configurableUrlResolver(this.urlResolvers, request);
39
- }
40
- async getAbsoluteUrl(resolvedUrl, relativeUrl) {
41
- throw new Error("Not implmented");
42
- }
43
- }
44
- exports.MultiUrlResolver = MultiUrlResolver;
45
- //# sourceMappingURL=multiUrlResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiUrlResolver.js","sourceRoot":"","sources":["../src/multiUrlResolver.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAKH;;;;GAIG;AACI,KAAK,UAAU,uBAAuB,CAC5C,aAA6B,EAC7B,OAAiB;IAEjB,IAAI,QAAkC,CAAC;IACvC,KAAK,MAAM,QAAQ,IAAI,aAAa,EAAE;QACrC,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,mBAAM,OAAO,EAAG,CAAC;QAClD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC3B,OAAO,QAAQ,CAAC;SAChB;KACD;IACD,OAAO,SAAS,CAAC;AAClB,CAAC;AAZD,0DAYC;AAED,MAAa,gBAAgB;IAW5B,YAAqC,YAA4B;QAA5B,iBAAY,GAAZ,YAAY,CAAgB;IAAG,CAAC;IAV9D,MAAM,CAAC,MAAM,CAAC,WAA0C;QAC9D,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC/B,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC7B,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;aACtB;YACD,OAAO,IAAI,gBAAgB,CAAC,WAAW,CAAC,CAAC;SACzC;QACD,OAAO,WAAW,CAAC;IACpB,CAAC;IAID,KAAK,CAAC,OAAO,CAAC,OAAiB;QAC9B,OAAO,uBAAuB,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAAyB,EAAE,WAAmB;QACzE,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACnC,CAAC;CACD;AApBD,4CAoBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport { IResolvedUrl, IUrlResolver } from \"@fluidframework/driver-definitions\";\n\n/**\n * Resolver that takes a list of url resolvers and then try each of them to resolve the url.\n * @param resolversList - List of url resolvers to be used to resolve the request.\n * @param request - Request to be resolved.\n */\nexport async function configurableUrlResolver(\n\tresolversList: IUrlResolver[],\n\trequest: IRequest,\n): Promise<IResolvedUrl | undefined> {\n\tlet resolved: IResolvedUrl | undefined;\n\tfor (const resolver of resolversList) {\n\t\tresolved = await resolver.resolve({ ...request });\n\t\tif (resolved !== undefined) {\n\t\t\treturn resolved;\n\t\t}\n\t}\n\treturn undefined;\n}\n\nexport class MultiUrlResolver implements IUrlResolver {\n\tpublic static create(urlResolver: IUrlResolver | IUrlResolver[]) {\n\t\tif (Array.isArray(urlResolver)) {\n\t\t\tif (urlResolver.length === 1) {\n\t\t\t\treturn urlResolver[0];\n\t\t\t}\n\t\t\treturn new MultiUrlResolver(urlResolver);\n\t\t}\n\t\treturn urlResolver;\n\t}\n\n\tprivate constructor(private readonly urlResolvers: IUrlResolver[]) {}\n\n\tasync resolve(request: IRequest): Promise<IResolvedUrl | undefined> {\n\t\treturn configurableUrlResolver(this.urlResolvers, request);\n\t}\n\n\tpublic async getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string> {\n\t\tthrow new Error(\"Not implmented\");\n\t}\n}\n"]}
@@ -1,51 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { SummaryType, ISnapshotTree, ISummaryTree } from "@fluidframework/protocol-definitions";
6
- /**
7
- * Summary tree assembler props
8
- */
9
- export interface ISummaryTreeAssemblerProps {
10
- /**
11
- * Indicates that this tree is unreferenced. If this is not present, the tree is considered referenced.
12
- */
13
- unreferenced?: true;
14
- }
15
- /**
16
- * Summary tree assembler (without stats collection).
17
- */
18
- export declare class SummaryTreeAssembler {
19
- private readonly props?;
20
- private attachmentCounter;
21
- private readonly summaryTree;
22
- constructor(props?: ISummaryTreeAssemblerProps | undefined);
23
- /**
24
- * Get final summary
25
- */
26
- get summary(): ISummaryTree;
27
- /**
28
- * Add blob to summary
29
- */
30
- addBlob(key: string, content: string | Uint8Array): void;
31
- /**
32
- * Add handle to summary
33
- */
34
- addHandle(key: string, handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment, handle: string): void;
35
- /**
36
- * Add tree to summary
37
- */
38
- addTree(key: string, summary: ISummaryTree): void;
39
- /**
40
- * Add attachment to summary
41
- */
42
- addAttachment(id: string): void;
43
- }
44
- /**
45
- * Helper function that converts ISnapshotTree and blobs to ISummaryTree
46
- * @param snapshot - Source snapshot tree
47
- * @param blobs - Blobs cache
48
- * @returns Converted snapshot in ISummaryTree format
49
- */
50
- export declare function convertSnapshotAndBlobsToSummaryTree(snapshot: ISnapshotTree, blobs: Map<string, ArrayBuffer>): ISummaryTree;
51
- //# sourceMappingURL=treeUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"treeUtils.d.ts","sourceRoot":"","sources":["../src/treeUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,WAAW,EACX,aAAa,EACb,YAAY,EAEZ,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,oBAAoB;IAIpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;IAHnC,OAAO,CAAC,iBAAiB,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAyC;gBAExC,KAAK,CAAC,wCAA4B;IAE/D;;OAEG;IACH,IAAW,OAAO,IAAI,YAAY,CAMjC;IAED;;OAEG;IACI,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAO/D;;OAEG;IACI,SAAS,CACf,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,EACxE,MAAM,EAAE,MAAM,GACZ,IAAI;IAQP;;OAEG;IACI,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI;IAIxD;;OAEG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM;CAG/B;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CACnD,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,GAC7B,YAAY,CAcd"}
package/dist/treeUtils.js DELETED
@@ -1,85 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.convertSnapshotAndBlobsToSummaryTree = exports.SummaryTreeAssembler = void 0;
8
- const common_utils_1 = require("@fluidframework/common-utils");
9
- const protocol_definitions_1 = require("@fluidframework/protocol-definitions");
10
- /**
11
- * Summary tree assembler (without stats collection).
12
- */
13
- class SummaryTreeAssembler {
14
- constructor(props) {
15
- this.props = props;
16
- this.attachmentCounter = 0;
17
- this.summaryTree = {};
18
- }
19
- /**
20
- * Get final summary
21
- */
22
- get summary() {
23
- var _a;
24
- return {
25
- type: protocol_definitions_1.SummaryType.Tree,
26
- tree: Object.assign({}, this.summaryTree),
27
- unreferenced: (_a = this.props) === null || _a === void 0 ? void 0 : _a.unreferenced,
28
- };
29
- }
30
- /**
31
- * Add blob to summary
32
- */
33
- addBlob(key, content) {
34
- this.summaryTree[key] = {
35
- type: protocol_definitions_1.SummaryType.Blob,
36
- content,
37
- };
38
- }
39
- /**
40
- * Add handle to summary
41
- */
42
- addHandle(key, handleType, handle) {
43
- this.summaryTree[key] = {
44
- type: protocol_definitions_1.SummaryType.Handle,
45
- handleType,
46
- handle,
47
- };
48
- }
49
- /**
50
- * Add tree to summary
51
- */
52
- addTree(key, summary) {
53
- this.summaryTree[key] = summary;
54
- }
55
- /**
56
- * Add attachment to summary
57
- */
58
- addAttachment(id) {
59
- this.summaryTree[this.attachmentCounter++] = { id, type: protocol_definitions_1.SummaryType.Attachment };
60
- }
61
- }
62
- exports.SummaryTreeAssembler = SummaryTreeAssembler;
63
- /**
64
- * Helper function that converts ISnapshotTree and blobs to ISummaryTree
65
- * @param snapshot - Source snapshot tree
66
- * @param blobs - Blobs cache
67
- * @returns Converted snapshot in ISummaryTree format
68
- */
69
- function convertSnapshotAndBlobsToSummaryTree(snapshot, blobs) {
70
- const assembler = new SummaryTreeAssembler({
71
- unreferenced: snapshot.unreferenced,
72
- });
73
- for (const [path, id] of Object.entries(snapshot.blobs)) {
74
- const blob = blobs.get(id);
75
- (0, common_utils_1.assert)(blob !== undefined, 0x2dd /* "Cannot find blob for a given id" */);
76
- assembler.addBlob(path, common_utils_1.IsoBuffer.from(blob).toString("utf-8"));
77
- }
78
- for (const [key, tree] of Object.entries(snapshot.trees)) {
79
- const subtree = convertSnapshotAndBlobsToSummaryTree(tree, blobs);
80
- assembler.addTree(key, subtree);
81
- }
82
- return assembler.summary;
83
- }
84
- exports.convertSnapshotAndBlobsToSummaryTree = convertSnapshotAndBlobsToSummaryTree;
85
- //# sourceMappingURL=treeUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"treeUtils.js","sourceRoot":"","sources":["../src/treeUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAAiE;AACjE,+EAK8C;AAY9C;;GAEG;AACH,MAAa,oBAAoB;IAIhC,YAA6B,KAAkC;QAAlC,UAAK,GAAL,KAAK,CAA6B;QAHvD,sBAAiB,GAAW,CAAC,CAAC;QACrB,gBAAW,GAAsC,EAAE,CAAC;IAEH,CAAC;IAEnE;;OAEG;IACH,IAAW,OAAO;;QACjB,OAAO;YACN,IAAI,EAAE,kCAAW,CAAC,IAAI;YACtB,IAAI,oBAAO,IAAI,CAAC,WAAW,CAAE;YAC7B,YAAY,EAAE,MAAA,IAAI,CAAC,KAAK,0CAAE,YAAY;SACtC,CAAC;IACH,CAAC;IAED;;OAEG;IACI,OAAO,CAAC,GAAW,EAAE,OAA4B;QACvD,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG;YACvB,IAAI,EAAE,kCAAW,CAAC,IAAI;YACtB,OAAO;SACP,CAAC;IACH,CAAC;IAED;;OAEG;IACI,SAAS,CACf,GAAW,EACX,UAAwE,EACxE,MAAc;QAEd,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG;YACvB,IAAI,EAAE,kCAAW,CAAC,MAAM;YACxB,UAAU;YACV,MAAM;SACN,CAAC;IACH,CAAC;IAED;;OAEG;IACI,OAAO,CAAC,GAAW,EAAE,OAAqB;QAChD,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,aAAa,CAAC,EAAU;QAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,kCAAW,CAAC,UAAU,EAAE,CAAC;IACnF,CAAC;CACD;AAvDD,oDAuDC;AAED;;;;;GAKG;AACH,SAAgB,oCAAoC,CACnD,QAAuB,EACvB,KAA+B;IAE/B,MAAM,SAAS,GAAG,IAAI,oBAAoB,CAAC;QAC1C,YAAY,EAAE,QAAQ,CAAC,YAAY;KACnC,CAAC,CAAC;IACH,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACxD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAA,qBAAM,EAAC,IAAI,KAAK,SAAS,EAAE,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC1E,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,wBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;KAChE;IACD,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACzD,MAAM,OAAO,GAAG,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClE,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;KAChC;IACD,OAAO,SAAS,CAAC,OAAO,CAAC;AAC1B,CAAC;AAjBD,oFAiBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert, IsoBuffer } from \"@fluidframework/common-utils\";\nimport {\n\tSummaryType,\n\tISnapshotTree,\n\tISummaryTree,\n\tSummaryObject,\n} from \"@fluidframework/protocol-definitions\";\n\n/**\n * Summary tree assembler props\n */\nexport interface ISummaryTreeAssemblerProps {\n\t/**\n\t * Indicates that this tree is unreferenced. If this is not present, the tree is considered referenced.\n\t */\n\tunreferenced?: true;\n}\n\n/**\n * Summary tree assembler (without stats collection).\n */\nexport class SummaryTreeAssembler {\n\tprivate attachmentCounter: number = 0;\n\tprivate readonly summaryTree: { [path: string]: SummaryObject } = {};\n\n\tconstructor(private readonly props?: ISummaryTreeAssemblerProps) {}\n\n\t/**\n\t * Get final summary\n\t */\n\tpublic get summary(): ISummaryTree {\n\t\treturn {\n\t\t\ttype: SummaryType.Tree,\n\t\t\ttree: { ...this.summaryTree },\n\t\t\tunreferenced: this.props?.unreferenced,\n\t\t};\n\t}\n\n\t/**\n\t * Add blob to summary\n\t */\n\tpublic addBlob(key: string, content: string | Uint8Array): void {\n\t\tthis.summaryTree[key] = {\n\t\t\ttype: SummaryType.Blob,\n\t\t\tcontent,\n\t\t};\n\t}\n\n\t/**\n\t * Add handle to summary\n\t */\n\tpublic addHandle(\n\t\tkey: string,\n\t\thandleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment,\n\t\thandle: string,\n\t): void {\n\t\tthis.summaryTree[key] = {\n\t\t\ttype: SummaryType.Handle,\n\t\t\thandleType,\n\t\t\thandle,\n\t\t};\n\t}\n\n\t/**\n\t * Add tree to summary\n\t */\n\tpublic addTree(key: string, summary: ISummaryTree): void {\n\t\tthis.summaryTree[key] = summary;\n\t}\n\n\t/**\n\t * Add attachment to summary\n\t */\n\tpublic addAttachment(id: string) {\n\t\tthis.summaryTree[this.attachmentCounter++] = { id, type: SummaryType.Attachment };\n\t}\n}\n\n/**\n * Helper function that converts ISnapshotTree and blobs to ISummaryTree\n * @param snapshot - Source snapshot tree\n * @param blobs - Blobs cache\n * @returns Converted snapshot in ISummaryTree format\n */\nexport function convertSnapshotAndBlobsToSummaryTree(\n\tsnapshot: ISnapshotTree,\n\tblobs: Map<string, ArrayBuffer>,\n): ISummaryTree {\n\tconst assembler = new SummaryTreeAssembler({\n\t\tunreferenced: snapshot.unreferenced,\n\t});\n\tfor (const [path, id] of Object.entries(snapshot.blobs)) {\n\t\tconst blob = blobs.get(id);\n\t\tassert(blob !== undefined, 0x2dd /* \"Cannot find blob for a given id\" */);\n\t\tassembler.addBlob(path, IsoBuffer.from(blob).toString(\"utf-8\"));\n\t}\n\tfor (const [key, tree] of Object.entries(snapshot.trees)) {\n\t\tconst subtree = convertSnapshotAndBlobsToSummaryTree(tree, blobs);\n\t\tassembler.addTree(key, subtree);\n\t}\n\treturn assembler.summary;\n}\n"]}
@@ -1,43 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentStorageService, IDocumentStorageServicePolicies, ISummaryContext } from "@fluidframework/driver-definitions";
6
- import { ICreateBlobResponse, ISnapshotTree, ISummaryHandle, ISummaryTree, IVersion } from "@fluidframework/protocol-definitions";
7
- import { ITelemetryLogger } from "@fluidframework/common-definitions";
8
- export declare abstract class SnapshotExtractor {
9
- protected readonly aggregatedBlobName = "__big";
10
- protected readonly virtualIdPrefix = "__";
11
- protected virtualIdCounter: number;
12
- protected getNextVirtualId(): string;
13
- abstract getBlob(id: string, tree: ISnapshotTree): Promise<ArrayBufferLike>;
14
- abstract setBlob(id: string, tree: ISnapshotTree, content: string): any;
15
- unpackSnapshotCore(snapshot: ISnapshotTree, level?: number): Promise<void>;
16
- }
17
- export declare class BlobAggregationStorage extends SnapshotExtractor implements IDocumentStorageService {
18
- private readonly storage;
19
- private readonly logger;
20
- private readonly allowPacking;
21
- private readonly packingLevel;
22
- private readonly blobCutOffSize?;
23
- static readonly fullDataStoreSummaries = true;
24
- protected loadedFromSummary: boolean;
25
- protected virtualBlobs: Map<string, ArrayBufferLike>;
26
- static wrap(storage: IDocumentStorageService, logger: ITelemetryLogger, allowPacking?: boolean, packingLevel?: number): BlobAggregationStorage;
27
- static unpackSnapshot(snapshot: ISnapshotTree): Promise<void>;
28
- get policies(): IDocumentStorageServicePolicies | undefined;
29
- unpackSnapshot(snapshot: ISnapshotTree): Promise<void>;
30
- protected constructor(storage: IDocumentStorageService, logger: ITelemetryLogger, allowPacking: boolean, packingLevel: number, blobCutOffSize?: number | undefined);
31
- setBlob(id: string, tree: ISnapshotTree, content: string): void;
32
- getBlob(id: string, tree: ISnapshotTree): Promise<ArrayBufferLike>;
33
- get repositoryUrl(): string;
34
- getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
35
- downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
36
- createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
37
- getSnapshotTree(version?: IVersion): Promise<ISnapshotTree | null>;
38
- readBlob(id: string): Promise<ArrayBufferLike>;
39
- uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
40
- private compressSmallBlobs;
41
- protected isRealStorageId(id: string): boolean;
42
- }
43
- //# sourceMappingURL=blobAggregationStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blobAggregationStorage.d.ts","sourceRoot":"","sources":["../src/blobAggregationStorage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,eAAe,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EAER,MAAM,sCAAsC,CAAC;AAS9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AA0CtE,8BAAsB,iBAAiB;IACtC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,WAAW;IAChD,SAAS,CAAC,QAAQ,CAAC,eAAe,QAAQ;IAG1C,SAAS,CAAC,gBAAgB,SAAK;IAC/B,SAAS,CAAC,gBAAgB;IAI1B,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM;IAEpD,kBAAkB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;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