@gershy/lilac 0.0.12 → 0.0.13

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.
package/cmp/mjs/main.js CHANGED
@@ -7,12 +7,19 @@
7
7
  // Can region be dealt with any better??
8
8
  // Support test-mode (Flowers need to be able to do setup, share config, write to volumes, etc)
9
9
  import { PetalTerraform } from "./petal/terraform/terraform.js";
10
- import { regions as awsRegions } from "./util/aws.js";
11
10
  import { isCls, skip } from '@gershy/clearing';
12
11
  import procTerraform from "./util/procTerraform.js";
13
12
  import tryWithHealing from '@gershy/util-try-with-healing';
14
- const { File, Provider, Terraform } = PetalTerraform;
13
+ import phrasing from '@gershy/util-phrasing';
15
14
  export class Flower {
15
+ // TODO: The downside of having this static is that different instances may use different
16
+ // services - e.g. api gateway instance may have "useEdge: true", in which case we'd like to
17
+ // include cloudfront and omit it otherwise... but having it on the instance is annoying since
18
+ // we want to enumerate all services *before* instantiating any Flowers... probably better this
19
+ // way? And heirarchical design can probably avoid most unecessary service inclusion...
20
+ // TODO: The naming of these services is coupled to LocalStack - consider using Lilac-scoped
21
+ // naming, and add a translation layer from Lilac->LocalStack in Soil.LocalStack?
22
+ static getAwsServices() { return []; }
16
23
  constructor() { }
17
24
  *getDependencies() {
18
25
  yield this;
@@ -23,10 +30,21 @@ export class Flower {
23
30
  }
24
31
  ;
25
32
  export class Registry {
33
+ // Note that maintaining a duality of classes for each Flower (one for testing, one for remote
34
+ // deploy) is essential to keep test functionality out of deployed code bundles. If a single
35
+ // class supported both test and prod functionality, these two pieces of functionality would
36
+ // always be bundled together.
26
37
  flowers;
27
38
  constructor(flowers) {
28
39
  this.flowers = {}[merge](flowers);
29
40
  }
41
+ getAwsServices() {
42
+ const services = new Set();
43
+ for (const [k, { real }] of this.flowers)
44
+ for (const awsService of real.getAwsServices())
45
+ services.add(awsService);
46
+ return services[toArr](v => v);
47
+ }
30
48
  add(flowers) {
31
49
  return new Registry({ ...this.flowers, ...flowers });
32
50
  }
@@ -38,23 +56,28 @@ export class Registry {
38
56
  export class Garden {
39
57
  // Note this class currently is coupled to terraform logic
40
58
  ctx;
41
- registry;
42
- define;
59
+ reg;
60
+ def;
43
61
  constructor(args) {
44
- const { define, registry, ...ctx } = args;
45
- this.ctx = ctx;
46
- this.registry = registry;
47
- this.define = define;
62
+ const { define, registry, context } = args;
63
+ this.ctx = context;
64
+ this.reg = registry;
65
+ this.def = define;
48
66
  }
49
- async *getPetals(mode) {
67
+ async *getPetals() {
68
+ // TODO: We always use the "real" flowers from the registry - this is part of the shift to
69
+ // localStack; we always generate genuine terraform and apply it to the docker localStack.
70
+ // Eventually may want to support ultra-lightweight dockerless/localStackless js flower mocks;
71
+ // that would be the time to add "fake" flowers alongside each real flower, and start
72
+ // conditionally calling `this.registry.get('fake')`...
50
73
  const seenFlowers = new Set();
51
74
  const seenPetals = new Set();
52
- for await (const topLevelFlower of this.define(this.ctx, this.registry.get(mode))) {
75
+ for await (const topLevelFlower of await this.def(this.ctx, this.reg.get('real'))) {
53
76
  for (const flower of topLevelFlower.getDependencies()) {
54
77
  if (seenFlowers.has(flower))
55
78
  continue;
56
79
  seenFlowers.add(flower);
57
- for await (const petal of flower.getPetals(this.ctx)) {
80
+ for await (const petal of await flower.getPetals(this.ctx)) {
58
81
  if (seenPetals.has(petal))
59
82
  continue;
60
83
  yield petal;
@@ -62,8 +85,9 @@ export class Garden {
62
85
  }
63
86
  }
64
87
  }
65
- async prepare( /* Note this only pertains to "real" mode */) {
66
- return this.ctx.logger.scope('garden.prepare', {}, async (logger) => {
88
+ async genTerraform(deployTarget) {
89
+ const soilTfPetalsPrm = deployTarget.getTerraformPetals(this.ctx);
90
+ return this.ctx.logger.scope('garden.genTerraform', {}, async (logger) => {
67
91
  const setupTfProj = async (args) => args.logger.scope('tf', { proj: this.ctx.name, tf: args.term }, async (logger) => {
68
92
  // Allows a terraform project to be defined in terms of a function which writes to main.tf,
69
93
  // and adds any arbitrary additional files to the terraform project
@@ -82,11 +106,22 @@ export class Garden {
82
106
  // Write new terraform
83
107
  await logger.scope('files.generate', {}, async (logger) => {
84
108
  const stream = await args.fact.kid(['main.tf']).getDataHeadStream();
85
- await args.setup(args.fact, stream);
109
+ await args.setup(args.fact, stream, async (petal) => {
110
+ // Include a utility function the caller can use to easily write petals
111
+ const { tf, files = {} } = await petal.getResult()
112
+ .then(tf => isCls(tf, String) ? { tf } : tf);
113
+ if (tf)
114
+ await stream.write(`${tf}\n`);
115
+ await Promise.all(files[toArr]((data, kfp) => args.fact.kid(kfp.split('/')).setData(data)));
116
+ return petal;
117
+ });
86
118
  await stream.end(); // TODO: @gershy/disk should allow `await headStream.end()`
87
119
  });
88
120
  return args.fact;
89
121
  });
122
+ // Pick names for the s3 and ddb terraform state persistence entities
123
+ const s3Name = `${this.ctx.pfx}-tf-state`;
124
+ const ddbName = `${this.ctx.pfx}-tf-state`;
90
125
  // We generate *two* terraform projects for every logical project - overall we want a
91
126
  // terraform project which saves its state in the cloud; in order to do this we need to first
92
127
  // provision the cloud storage engines to save the terraform state. The "boot" tf project
@@ -96,172 +131,106 @@ export class Garden {
96
131
  term: 'boot',
97
132
  logger,
98
133
  fact: this.ctx.fact.kid(['boot']),
99
- setup: async (fact, mainWritable) => {
100
- await mainWritable.write(String[baseline](`
101
- | terraform {
102
- | required_providers {
103
- | aws = {
104
- | source = "hashicorp/aws"
105
- | version = "~> 5.0"
106
- | }
107
- | }
108
- | }
109
- | provider "aws" {
110
- | shared_credentials_files = [ "creds.ini" ]
111
- | profile = "default"
112
- | region = "ca-central-1"
113
- | }
114
- | resource "aws_s3_bucket" "tf_state" {
115
- | bucket = "${this.ctx.pfx}-tf-state"
116
- | }
117
- | resource "aws_s3_bucket_ownership_controls" "tf_state" {
118
- | bucket = aws_s3_bucket.tf_state.bucket
119
- | rule {
120
- | object_ownership = "ObjectWriter"
121
- | }
122
- | }
123
- | resource "aws_s3_bucket_acl" "tf_state" {
124
- | bucket = aws_s3_bucket.tf_state.bucket
125
- | acl = "private"
126
- | depends_on = [ aws_s3_bucket_ownership_controls.tf_state ]
127
- | }
128
- | resource "aws_dynamodb_table" "tf_state" {
129
- | name = "${this.ctx.pfx}-tf-state"
130
- | billing_mode = "PAY_PER_REQUEST"
131
- | hash_key = "LockID"
132
- | attribute {
133
- | name = "LockID"
134
- | type = "S"
135
- | }
136
- | }
137
- `));
138
- await fact.kid(['creds.ini']).setData(String[baseline](`
139
- | [default]
140
- | aws_region = ${this.ctx.aws.region}
141
- | aws_access_key_id = ${this.ctx.aws.accessKey.id}
142
- | aws_secret_access_key = ${this.ctx.aws.accessKey['!secret']}
143
- `));
134
+ setup: async (fact, mainWritable, writePetalTfAndFiles) => {
135
+ // Include the soil's infrastructure
136
+ const { boot } = await soilTfPetalsPrm;
137
+ for await (const petal of await boot({ s3Name, ddbName }))
138
+ await writePetalTfAndFiles(petal);
139
+ // Create s3 tf state bucket
140
+ const s3 = await writePetalTfAndFiles(new PetalTerraform.Resource('awsS3Bucket', 'tfState', {
141
+ bucket: s3Name
142
+ }));
143
+ const s3Controls = await writePetalTfAndFiles(new PetalTerraform.Resource('awsS3BucketOwnershipControls', 'tfState', {
144
+ bucket: s3.ref('bucket'),
145
+ $rule: {
146
+ objectOwnership: 'ObjectWriter'
147
+ }
148
+ }));
149
+ await writePetalTfAndFiles(new PetalTerraform.Resource('awsS3BucketAcl', 'tfState', {
150
+ bucket: s3.ref('bucket'),
151
+ acl: 'private',
152
+ dependsOn: [s3Controls.ref()]
153
+ }));
154
+ // Create ddb tf state locking table
155
+ await writePetalTfAndFiles(new PetalTerraform.Resource('awsDynamodbTable', 'tfState', {
156
+ name: ddbName,
157
+ billingMode: phrasing('payPerRequest', 'camel', 'snake')[upper](),
158
+ hashKey: 'LockID',
159
+ $attribute: { name: 'LockID', type: 'S' }
160
+ }));
144
161
  }
145
162
  }),
146
163
  mainFact: setupTfProj({
147
164
  term: 'main',
148
165
  logger,
149
166
  fact: this.ctx.fact.kid(['main']),
150
- setup: async (fact, mainWritable) => {
151
- const garden = this;
152
- const iteratePetals = async function* () {
153
- const tfAwsCredsFile = new File('creds.ini', String[baseline](`
154
- | [default]
155
- | aws_region = ${garden.ctx.aws.region}
156
- | aws_access_key_id = ${garden.ctx.aws.accessKey.id}
157
- | aws_secret_access_key = ${garden.ctx.aws.accessKey['!secret']}
158
- `));
159
- yield tfAwsCredsFile;
160
- const terraform = new Terraform({
161
- $requiredProviders: {
162
- aws: {
163
- source: 'hashicorp/aws',
164
- version: `~> 5.0` // Consider parameterizing??
165
- }
166
- },
167
- '$backend.s3': {
168
- region: garden.ctx.aws.region,
169
- encrypt: true,
170
- // Note references not allowed in terraform.backend!!
171
- bucket: `${garden.ctx.pfx}-tf-state`,
172
- key: `tf`,
173
- dynamodbTable: `${garden.ctx.pfx}-tf-state`, // Dynamodb table is aws-account-wide
174
- sharedCredentialsFiles: [tfAwsCredsFile.tfRef()],
175
- profile: 'default', // References a section within the credentials file
176
- }
177
- });
178
- yield terraform;
179
- for (const { term } of awsRegions)
180
- yield new Provider('aws', {
181
- sharedCredentialsFiles: [tfAwsCredsFile.tfRef()],
182
- profile: 'default', // References a section within the credentials file
183
- region: term,
184
- // Omit the alias for the default provider!
185
- ...(term !== garden.ctx.aws.region && { alias: term.split('-').join('_') })
186
- });
187
- yield* garden.getPetals('real');
188
- };
189
- const patioTfHclFact = garden.ctx.patioFact.kid(['main', '.terraform.lock.hcl']);
167
+ setup: async (fact, mainWritable, writePetalTfAndFiles) => {
168
+ // Include the soil's infrastructure
169
+ const { main } = await soilTfPetalsPrm;
170
+ for await (const petal of await main({ s3Name, ddbName }))
171
+ await writePetalTfAndFiles(petal);
172
+ for await (const petal of this.getPetals())
173
+ await writePetalTfAndFiles(petal);
174
+ // Propagate any terraform lock found in version control
175
+ const patioTfHclFact = this.ctx.patioFact.kid(['main', '.terraform.lock.hcl']);
190
176
  const tfHclData = await patioTfHclFact.getData('str');
191
177
  if (tfHclData)
192
178
  await fact.kid(['.terraform.lock.hcl']).setData(tfHclData);
193
- for await (const petal of iteratePetals()) {
194
- const result = await (async () => {
195
- const result = await petal.getResult();
196
- if (!isCls(result, Object))
197
- return { tf: result, files: {} };
198
- return { files: {}, ...result };
199
- })();
200
- if (result.tf)
201
- await mainWritable.write(`${result.tf}\n`);
202
- await Promise.all(result.files[toArr]((data, kfp) => fact.kid(kfp.split('/')).setData(data)));
203
- }
204
179
  }
205
- })
180
+ }),
206
181
  });
207
182
  });
208
183
  }
209
184
  terraformInit(fact, args) {
210
- return this.ctx.logger.scope('execTf.init', {}, async (logger) => {
185
+ return this.ctx.logger.scope('execTf.init', { fact: fact.fsp() }, async (logger) => {
211
186
  // Consider if we ever want to pass "-reconfigure" and "-migrate-state" options; these are
212
187
  // useful if we are moving backends (e.g. one aws account to another), and want to move our
213
188
  // full iac definition too
214
- // TODO: Some terraform commands fail when offline - can this be covered up?
215
- const result = await procTerraform(fact, `terraform init -input=false`);
189
+ // TODO: Some terraform commands fail when offline - can this be covered up? Possibly by
190
+ // checking terraform binaries into the repo? (Cross-platform nightmare though...)
191
+ const result = await procTerraform(fact, `terraform init -input=false`, {
192
+ onData: async (mode, data) => logger.log({ $$: 'notice', mode, data }) ?? null
193
+ });
216
194
  logger.log({ $$: 'result', logFp: result.logDb.toString(), msg: result.output });
217
195
  return result;
218
196
  });
219
197
  }
220
198
  terraformPlan(fact, args) {
221
- return this.ctx.logger.scope('execTf.plan', {}, async (logger) => {
199
+ return this.ctx.logger.scope('execTf.plan', { fact: fact.fsp() }, async (logger) => {
222
200
  const result = await procTerraform(fact, `terraform plan -input=false`);
223
201
  logger.log({ $$: 'result', logFp: result.logDb.toString(), msg: result.output });
224
202
  return result;
225
203
  });
226
204
  }
227
205
  terraformApply(fact, args) {
228
- return this.ctx.logger.scope('execTf.apply', {}, async (logger) => {
206
+ return this.ctx.logger.scope('execTf.apply', { fact: fact.fsp() }, async (logger) => {
229
207
  const result = await procTerraform(fact, `terraform apply -input=false -auto-approve`);
230
208
  logger.log({ $$: 'result', logFp: result.logDb.toString(), msg: result.output });
231
209
  return result;
232
210
  });
233
211
  }
234
- async grow(mode) {
235
- // - Avoid tf preventing deletions on populated dbs - e.g. s3 tf needs "force_destroy = true"
236
- // - Note `terraform init` generates a ".terraform.lock.hcl" file - this should be checked into
237
- // consumer's source control! May need consumers to provide an optional `repoFact`, and if
238
- // present after `terraform init` we can copy the ".terraform.lock.hcl" file
239
- // Note that test mode does not involve any iac - it all runs locally
240
- if (mode === 'test')
241
- throw Error('test mode not implemented yet');
242
- const { bootFact, mainFact } = await this.prepare();
243
- const logicalApply = (args) => {
244
- return tryWithHealing({
245
- fn: () => this.terraformApply(args.mainFact),
246
- canHeal: err => (err.output ?? '')[has]('please run "terraform init"'),
212
+ async grow(deploy) {
213
+ if (deploy.type === 'test')
214
+ throw Error('not implemented')[mod]({ type: 'test' }); // TODO: Can be nice to have local service mocks!
215
+ const { bootFact, mainFact } = await this.genTerraform(deploy.soil);
216
+ // Init+apply both "boot" and "main", in optimistic fashion
217
+ const isHealableTerraformApply = err => /run[^a-zA-Z0-9]+terraform init/.test(err.output ?? '');
218
+ await tryWithHealing({
219
+ fn: () => this.terraformApply(mainFact),
220
+ canHeal: isHealableTerraformApply,
221
+ heal: () => tryWithHealing({
222
+ fn: async () => {
223
+ await this.terraformInit(mainFact);
224
+ await this.ctx.patioFact.kid(['main', '.terraform.lock.hcl']).setData(await mainFact.kid(['.terraform.lock.hcl']).getData('str'));
225
+ },
226
+ canHeal: err => true,
247
227
  heal: () => tryWithHealing({
248
- fn: async () => {
249
- await this.terraformInit(args.mainFact);
250
- await this.ctx.patioFact.kid(['main', '.terraform.lock.hcl']).setData(await args.mainFact.kid(['.terraform.lock.hcl']).getData('str'));
251
- },
252
- canHeal: err => true,
253
- heal: () => tryWithHealing({
254
- fn: () => this.terraformApply(args.bootFact),
255
- canHeal: err => (err.output ?? '')[has]('please run "terraform init"'),
256
- heal: () => this.terraformInit(args.bootFact)
257
- })
228
+ fn: () => this.terraformApply(bootFact),
229
+ canHeal: isHealableTerraformApply,
230
+ heal: () => this.terraformInit(bootFact)
258
231
  })
259
- });
260
- };
261
- // TODO: HEEERE do `logicalApply` instead!
262
- await this.terraformInit(bootFact);
263
- // const result = await logicalApply({ mainFact, bootFact });
264
- //const result = await execTf.init(bootFact);
232
+ })
233
+ });
265
234
  }
266
235
  }
267
236
  ;
@@ -8,8 +8,8 @@ export declare namespace PetalTerraform {
8
8
  getProps(): {
9
9
  [key: string]: Json;
10
10
  };
11
- tfRef(props?: string | string[]): string;
12
- tfRefp(props?: string | string[]): `| ${string}`;
11
+ refStr(props?: string | string[]): string;
12
+ ref(props?: string | string[]): `| ${string}`;
13
13
  getResultHeader(): Promise<string>;
14
14
  getResult(): Promise<string | {
15
15
  tf: string;
@@ -64,7 +64,7 @@ export declare namespace PetalTerraform {
64
64
  [key: string]: Json;
65
65
  };
66
66
  getResultHeader(): Promise<string>;
67
- tfRef(props?: string | string[]): string;
67
+ refStr(props?: string | string[]): string;
68
68
  }
69
69
  class File extends Base {
70
70
  private fp;
@@ -77,6 +77,6 @@ export declare namespace PetalTerraform {
77
77
  [x: string]: string | Buffer<ArrayBufferLike>;
78
78
  };
79
79
  }>;
80
- tfRef(props?: string | string[]): string;
80
+ refStr(props?: string | string[]): string;
81
81
  }
82
82
  }
@@ -73,7 +73,7 @@ export var PetalTerraform;
73
73
  getType() { throw Error('not implemented'); }
74
74
  getHandle() { throw Error('not implemented'); }
75
75
  getProps() { throw Error('not implemented'); }
76
- tfRef(props = []) {
76
+ refStr(props = []) {
77
77
  if (!isCls(props, Array))
78
78
  props = [props];
79
79
  const base = `${ph(this.getType(), 'camel', 'snake')}.${ph(this.getHandle(), 'camel', 'snake')}`;
@@ -81,9 +81,9 @@ export var PetalTerraform;
81
81
  ? `${base}.${props[map](v => ph(v, 'camel', 'snake')).join('.')}`
82
82
  : base;
83
83
  }
84
- tfRefp(props = []) {
84
+ ref(props = []) {
85
85
  // "plain ref" - uses "| " to avoid being quoted within terraform
86
- return `| ${this.tfRef(props)}`;
86
+ return `| ${this.refStr(props)}`;
87
87
  }
88
88
  async getResultHeader() { throw Error('not implemented'); }
89
89
  async getResult() {
@@ -160,8 +160,8 @@ export var PetalTerraform;
160
160
  async getResultHeader() {
161
161
  return `data "${ph(this.type, 'camel', 'snake')}" "${ph(this.handle, 'camel', 'snake')}"`;
162
162
  }
163
- tfRef(props = []) {
164
- return `data.${super.tfRef(props)}`;
163
+ refStr(props = []) {
164
+ return `data.${super.refStr(props)}`;
165
165
  }
166
166
  }
167
167
  PetalTerraform.Data = Data;
@@ -178,7 +178,7 @@ export var PetalTerraform;
178
178
  async getResult() {
179
179
  return { tf: '', files: { [this.fp]: this.content } };
180
180
  }
181
- tfRef(props) {
181
+ refStr(props) {
182
182
  return this.fp; // `this.fp` should be quoted but not transformed to a tf handle
183
183
  }
184
184
  }
@@ -0,0 +1,79 @@
1
+ import { Context, PetalTerraform, Registry } from '../main.ts';
2
+ import { RegionTerm } from '../util/aws.ts';
3
+ import { NetProc } from '@gershy/util-http';
4
+ import { SuperIterable } from '../util/superIterable.ts';
5
+ import Logger from '@gershy/logger';
6
+ export declare namespace Soil {
7
+ type PetalProjArgs = {
8
+ s3Name: string;
9
+ ddbName: string;
10
+ };
11
+ type PetalProjResult = {
12
+ [K in 'boot' | 'main']: (args: PetalProjArgs) => SuperIterable<PetalTerraform.Base>;
13
+ };
14
+ type LocalStackAwsService = never | 'acm' | 'apigateway' | 'cloudformation' | 'cloudwatch' | 'config' | 'dynamodb' | 'dynamodbstreams' | 'ec2' | 'es' | 'events' | 'firehose' | 'iam' | 'kinesis' | 'kms' | 'lambda' | 'logs' | 'opensearch' | 'redshift' | 'resource' | 'resourcegroupstaggingapi' | 'route53' | 'route53resolver' | 's3' | 's3control' | 'scheduler' | 'secretsmanager' | 'ses' | 'sns' | 'sqs' | 'ssm' | 'stepfunctions' | 'sts' | 'support' | 'swf' | 'transcribe';
15
+ type BaseArgs = {
16
+ registry: Registry<any>;
17
+ };
18
+ class Base {
19
+ protected registry: Registry<any>;
20
+ constructor(args: BaseArgs);
21
+ getTerraformPetals(ctx: Context): Promise<PetalProjResult>;
22
+ }
23
+ type LocalStackArgs = BaseArgs & {
24
+ aws: {
25
+ region: RegionTerm;
26
+ };
27
+ localStackDocker?: {
28
+ image?: `localstack/localstack${':' | ':latest' | '@'}${string}`;
29
+ containerName?: string;
30
+ port?: number;
31
+ };
32
+ };
33
+ class LocalStack extends Base {
34
+ private static localStackInternalPort;
35
+ private aws;
36
+ private localStackDocker;
37
+ private procArgs;
38
+ constructor(args: LocalStackArgs);
39
+ private getAwsServices;
40
+ private getDockerContainers;
41
+ run(args: {
42
+ logger: Logger;
43
+ }): Promise<{
44
+ aws: {
45
+ services: LocalStackAwsService[];
46
+ region: "ca-central-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
47
+ };
48
+ netProc: NetProc;
49
+ url: string;
50
+ }>;
51
+ end(args?: {
52
+ containers?: Awaited<ReturnType<Soil.LocalStack['getDockerContainers']>>;
53
+ }): Promise<{
54
+ name: string;
55
+ state: "created" | "running" | "paused" | "restarting" | "removing" | "exited" | "dead";
56
+ }[]>;
57
+ getTerraformPetals(ctx: Context): Promise<{
58
+ boot: () => (PetalTerraform.Terraform | PetalTerraform.Provider)[];
59
+ main: (args: any) => Generator<PetalTerraform.Terraform | PetalTerraform.Provider, void, unknown>;
60
+ }>;
61
+ }
62
+ type AwsCloudArgs = BaseArgs & {
63
+ aws: {
64
+ region: RegionTerm;
65
+ accessKey: {
66
+ id: string;
67
+ '!secret': string;
68
+ };
69
+ };
70
+ };
71
+ class AwsCloud extends Base {
72
+ private aws;
73
+ constructor(args: AwsCloudArgs);
74
+ getTerraformPetals(ctx: Context): Promise<{
75
+ boot: () => Generator<PetalTerraform.Terraform | PetalTerraform.Provider | PetalTerraform.File, void, unknown>;
76
+ main: (args: any) => Generator<PetalTerraform.Terraform | PetalTerraform.Provider | PetalTerraform.File, void, unknown>;
77
+ }>;
78
+ }
79
+ }