@segment/action-destinations 3.227.2-staging.10 → 3.227.2-staging.11

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 (63) hide show
  1. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  2. package/dist/destinations/braze/trackEvent/index.js +1 -1
  3. package/dist/destinations/braze/trackEvent/index.js.map +1 -1
  4. package/dist/destinations/braze/trackPurchase/generated-types.d.ts +1 -0
  5. package/dist/destinations/braze/trackPurchase/index.js +9 -0
  6. package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
  7. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +1 -0
  8. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +184 -0
  9. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +1 -0
  10. package/dist/destinations/braze/updateUserProfile/generated-types.d.ts +1 -0
  11. package/dist/destinations/braze/updateUserProfile/index.js +11 -88
  12. package/dist/destinations/braze/updateUserProfile/index.js.map +1 -1
  13. package/dist/destinations/braze/utils.d.ts +4 -0
  14. package/dist/destinations/braze/utils.js +171 -1
  15. package/dist/destinations/braze/utils.js.map +1 -1
  16. package/dist/destinations/dynamic-yield-audiences/syncAudience/generated-types.d.ts +1 -0
  17. package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +12 -0
  18. package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
  19. package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -1
  20. package/dist/destinations/google-enhanced-conversions/functions.js +1 -1
  21. package/dist/destinations/google-enhanced-conversions/postConversion/index.js +1 -0
  22. package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
  23. package/dist/destinations/linkedin-conversions/api/index.d.ts +5 -1
  24. package/dist/destinations/linkedin-conversions/api/index.js +87 -0
  25. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  26. package/dist/destinations/linkedin-conversions/constants.d.ts +1 -0
  27. package/dist/destinations/linkedin-conversions/constants.js +7 -1
  28. package/dist/destinations/linkedin-conversions/constants.js.map +1 -1
  29. package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +17 -0
  30. package/dist/destinations/linkedin-conversions/streamConversion/index.js +125 -6
  31. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  32. package/dist/destinations/linkedin-conversions/types.d.ts +37 -0
  33. package/package.json +1 -1
  34. package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +0 -5
  35. package/dist/destinations/klaviyo/addProfileToList/generated-types.js +0 -3
  36. package/dist/destinations/klaviyo/addProfileToList/generated-types.js.map +0 -1
  37. package/dist/destinations/klaviyo/addProfileToList/index.d.ts +0 -5
  38. package/dist/destinations/klaviyo/addProfileToList/index.js +0 -61
  39. package/dist/destinations/klaviyo/addProfileToList/index.js.map +0 -1
  40. package/dist/destinations/klaviyo/properties.d.ts +0 -4
  41. package/dist/destinations/klaviyo/properties.js +0 -21
  42. package/dist/destinations/klaviyo/properties.js.map +0 -1
  43. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -5
  44. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +0 -3
  45. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
  46. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
  47. package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -62
  48. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +0 -1
  49. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.d.ts +0 -4
  50. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js +0 -3
  51. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js.map +0 -1
  52. package/dist/destinations/yahoo-audiences/createCustomerNode/index.d.ts +0 -5
  53. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js +0 -33
  54. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js.map +0 -1
  55. package/dist/destinations/yahoo-audiences/createSegment/generated-types.d.ts +0 -6
  56. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js +0 -3
  57. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js.map +0 -1
  58. package/dist/destinations/yahoo-audiences/createSegment/index.d.ts +0 -5
  59. package/dist/destinations/yahoo-audiences/createSegment/index.js +0 -45
  60. package/dist/destinations/yahoo-audiences/createSegment/index.js.map +0 -1
  61. package/dist/destinations/yahoo-audiences/utils.d.ts +0 -4
  62. package/dist/destinations/yahoo-audiences/utils.js +0 -30
  63. package/dist/destinations/yahoo-audiences/utils.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,6CAA6C;IAC1D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;CACd,CAAA;AAEY,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,sGAAsG;IACnH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,IAAI;CACd,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,QAAQ;CACf,CAAA"}
@@ -1,5 +0,0 @@
1
- export interface Payload {
2
- profile_id?: string;
3
- list_id?: string;
4
- enable_batching?: boolean;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/removeProfileToList/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const actions_core_1 = require("@segment/actions-core");
4
- const functions_1 = require("../functions");
5
- const properties_1 = require("../properties");
6
- const action = {
7
- title: 'Remove profile from list',
8
- description: 'Remove profile from list',
9
- fields: {
10
- profile_id: { ...properties_1.profile_id },
11
- list_id: { ...properties_1.list_id },
12
- enable_batching: { ...properties_1.enable_batching }
13
- },
14
- dynamicFields: {
15
- list_id: async (request, { settings }) => {
16
- return functions_1.getListIdDynamicData(request, settings);
17
- }
18
- },
19
- perform: async (request, { payload }) => {
20
- const { profile_id, list_id } = payload;
21
- if (!list_id) {
22
- throw new actions_core_1.IntegrationError("Insert the ID of the default list that you'd like to subscribe users", 'Missing required fields', 400);
23
- }
24
- try {
25
- const listData = {
26
- data: [
27
- {
28
- type: 'profile',
29
- id: profile_id
30
- }
31
- ]
32
- };
33
- const list = await functions_1.executeProfileList(request, 'DELETE', listData, list_id);
34
- return list;
35
- }
36
- catch (error) {
37
- console.log(error);
38
- throw new Error('An error occurred while processing the request');
39
- }
40
- },
41
- performBatch: async (request, { payload }) => {
42
- try {
43
- if (!payload[0].list_id) {
44
- throw new actions_core_1.IntegrationError("Insert the ID of the default list that you'd like to subscribe users", 'Missing required fields', 400);
45
- }
46
- const batch_data = { data: [] };
47
- payload.forEach((data) => {
48
- if (!data.list_id) {
49
- return;
50
- }
51
- batch_data.data.push({ type: 'profile', id: data.profile_id });
52
- });
53
- const list = await functions_1.executeProfileList(request, 'DELETE', batch_data, payload[0].list_id);
54
- return list;
55
- }
56
- catch (error) {
57
- throw new Error('An error occurred while processing the request');
58
- }
59
- }
60
- };
61
- exports.default = action;
62
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/removeProfileToList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,CAAC,CAAC,OAAO,EAAE;gBACvB,MAAM,IAAI,+BAAgB,CACxB,sEAAsE,EACtE,yBAAyB,EACzB,GAAG,CACJ,CAAA;aACF;YAED,MAAM,UAAU,GAAa,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;YACzC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACvB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;oBACjB,OAAM;iBACP;gBACD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAA;YAChE,CAAC,CAAC,CAAA;YAEF,MAAM,IAAI,GAAG,MAAM,8BAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACxF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;SAClE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- export interface Payload {
2
- engage_space_id: string;
3
- customer_desc?: string;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createCustomerNode/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_tax_1 = require("../utils-tax");
4
- const utils_tax_2 = require("../utils-tax");
5
- const action = {
6
- title: 'Create top-level CUSTOMER node in Yahoo taxonomy',
7
- defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
8
- description: '',
9
- fields: {
10
- engage_space_id: {
11
- label: 'Engage Space Id',
12
- description: 'Provide Engage Space Id found in Unify > Settings > API Access. This maps to the "Id" and "Name" of the top-level Customer node in Yahoo taxonomy',
13
- type: 'string',
14
- required: true
15
- },
16
- customer_desc: {
17
- label: 'Customer Description',
18
- description: 'Provide a description for the Customer node in Yahoo taxonomy. This must be less then 1000 characters',
19
- type: 'string',
20
- required: false
21
- }
22
- },
23
- perform: async (request, { settings, payload }) => {
24
- const tx_creds = {
25
- tx_client_key: settings.taxonomy_client_key,
26
- tx_client_secret: settings.taxonomy_client_secret
27
- };
28
- const taxonomy_payload = utils_tax_1.gen_customer_taxonomy_payload(settings, payload);
29
- return await utils_tax_2.update_taxonomy('', tx_creds, request, taxonomy_payload);
30
- }
31
- };
32
- exports.default = action;
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createCustomerNode/index.ts"],"names":[],"mappings":";;AAGA,4CAA4D;AAC5D,4CAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kDAAkD;IACzD,mBAAmB,EAAE,0DAA0D;IAC/E,WAAW,EAAE,EAAE;IACf,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,mJAAmJ;YACrJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,aAAa,EAAE;YACb,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,uGAAuG;YACzG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,QAAQ,GAAG;YACf,aAAa,EAAE,QAAQ,CAAC,mBAAmB;YAC3C,gBAAgB,EAAE,QAAQ,CAAC,sBAAsB;SAClD,CAAA;QACD,MAAM,gBAAgB,GAAG,yCAA6B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACzE,OAAO,MAAM,2BAAe,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAA;IACvE,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,6 +0,0 @@
1
- export interface Payload {
2
- segment_audience_key: string;
3
- segment_audience_id: string;
4
- engage_space_id?: string;
5
- customer_desc?: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createSegment/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_tax_1 = require("../utils-tax");
4
- const utils_tax_2 = require("../utils-tax");
5
- const action = {
6
- title: 'Create SEGMENT sub-node in Yahoo taxonomy',
7
- description: 'Use this action to generate SEGMENT sub-node within CUSTOMER node in Yahoo taxonomy',
8
- defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
9
- fields: {
10
- segment_audience_key: {
11
- label: 'Audience Key',
12
- description: 'Provide audience key. This maps to the "Name" of the Segment node in Yahoo taxonomy',
13
- type: 'string',
14
- required: true
15
- },
16
- segment_audience_id: {
17
- label: 'Audience Id',
18
- description: 'Provide audience Id (aud_...) from audience URL in Segment Engage. This maps to the "Id" of the Segment node in Yahoo taxonomy',
19
- type: 'string',
20
- required: true
21
- },
22
- engage_space_id: {
23
- label: 'Engage Space Id',
24
- description: 'Provide Engage Space Id found in Unify > Settings > API Access. This maps to the "Id" and "Name" of the top-level Customer node in Yahoo taxonomy and specifies the parent node for your Segment node in Yahoo taxonomy',
25
- type: 'string',
26
- required: false
27
- },
28
- customer_desc: {
29
- label: 'Space Description',
30
- description: 'Provide the description for Segment node in Yahoo taxonomy. This must be less then 1000 characters',
31
- type: 'string',
32
- required: false
33
- }
34
- },
35
- perform: async (request, { payload, settings }) => {
36
- const tx_creds = {
37
- tx_client_key: settings.taxonomy_client_key,
38
- tx_client_secret: settings.taxonomy_client_secret
39
- };
40
- const body_form_data = utils_tax_1.gen_segment_subtaxonomy_payload(payload);
41
- return await utils_tax_2.update_taxonomy(String(payload.engage_space_id), tx_creds, request, body_form_data);
42
- }
43
- };
44
- exports.default = action;
45
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createSegment/index.ts"],"names":[],"mappings":";;AAIA,4CAA8D;AAC9D,4CAA8C;AAG9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,qFAAqF;IAClG,mBAAmB,EAAE,0DAA0D;IAE/E,MAAM,EAAE;QACN,oBAAoB,EAAE;YACpB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,mBAAmB,EAAE;YACnB,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,gIAAgI;YAClI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,yNAAyN;YAC3N,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,aAAa,EAAE;YACb,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,oGAAoG;YACjH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,MAAM,QAAQ,GAAG;YACf,aAAa,EAAE,QAAQ,CAAC,mBAAmB;YAC3C,gBAAgB,EAAE,QAAQ,CAAC,sBAAsB;SAClD,CAAA;QAED,MAAM,cAAc,GAAG,2CAA+B,CAAC,OAAO,CAAC,CAAA;QAC/D,OAAO,MAAM,2BAAe,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAA;IAClG,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { RequestClient } from '@segment/actions-core';
2
- import { CredsObj } from './types';
3
- export declare function gen_random_id(length: number): string;
4
- export declare function update_taxonomy(engage_space_id: string, tx_creds: CredsObj, request: RequestClient, body_form_data: string): Promise<any>;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.update_taxonomy = exports.gen_random_id = void 0;
4
- const utils_tax_1 = require("./utils-tax");
5
- function gen_random_id(length) {
6
- const pattern = 'abcdefghijklmnopqrstuvwxyz123456789';
7
- const result = [];
8
- for (let i = 0; i < length; i++) {
9
- result.push(pattern[Math.floor(Math.random() * pattern.length)]);
10
- }
11
- return result.join('');
12
- }
13
- exports.gen_random_id = gen_random_id;
14
- async function update_taxonomy(engage_space_id, tx_creds, request, body_form_data) {
15
- const tx_client_secret = tx_creds.tx_client_key;
16
- const tx_client_key = tx_creds.tx_client_secret;
17
- const url = `https://datax.yahooapis.com/v1/taxonomy/append${engage_space_id.length > 0 ? '/' + engage_space_id : ''}`;
18
- const oauth1_auth_string = utils_tax_1.gen_oauth1_signature(tx_client_key, tx_client_secret, 'PUT', url);
19
- const add_segment_node = await request(url, {
20
- method: 'PUT',
21
- body: body_form_data,
22
- headers: {
23
- Authorization: oauth1_auth_string,
24
- 'Content-Type': 'multipart/form-data; boundary=SEGMENT-DATA'
25
- }
26
- });
27
- return await add_segment_node.json();
28
- }
29
- exports.update_taxonomy = update_taxonomy;
30
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/utils.ts"],"names":[],"mappings":";;;AAEA,2CAAkD;AAQlD,SAAgB,aAAa,CAAC,MAAc;IAC1C,MAAM,OAAO,GAAG,qCAAqC,CAAA;IACrD,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;KACjE;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxB,CAAC;AAPD,sCAOC;AAEM,KAAK,UAAU,eAAe,CACnC,eAAuB,EACvB,QAAkB,EAClB,OAAsB,EACtB,cAAsB;IAEtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAA;IAC/C,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,CAAA;IAC/C,MAAM,GAAG,GAAG,iDAAiD,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IACtH,MAAM,kBAAkB,GAAG,gCAAoB,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;IAE5F,MAAM,gBAAgB,GAAG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