1. MPC response overview

As of 15 December 2023, a total of 1,003,464 persons or 198,992 families have been reached by MPC interventions.

A total of USD 32.2 million has been disbursed by 30 implementing agencies in 349 communities across 34 sub-districts.

Only beneficiaries who have received at least USD 100/family/month have been included; excludes sector-based activities such as non-MPC cash-for-food.


1,003,000 people reached with MPC, USD 32.2 million disbursed, 15 December 2023

governorate

district

comm.

partners

households

beneficiaries

total_usd

%_BNF1

Aleppo

A'zaz

35

13

9,755

45,999

1,348,947

4.58

Aleppo

Afrin

139

20

58,950

254,375

8,249,960

25.35

Aleppo

Al Bab

5

6

7,947

42,213

1,198,798

4.21

Aleppo

Jarablus

1

2

458

1,250

75,572

0.12

Aleppo

Jebel Saman

18

12

15,753

75,813

2,190,395

7.56

Ar-Raqqa

Tell Abiad

2

1

102

399

19,912

0.04

Idleb

Ariha

10

6

2,848

14,829

435,600

1.48

Idleb

Harim

77

22

94,214

410,830

13,763,953

40.94

Idleb

Idleb

29

16

27,035

128,197

4,059,686

12.78

Idleb

Jisr-Ash-Shugur

36

9

7,327

29,559

871,197

2.95

Total

-

-

-

224,389

1,003,464

32,214,020

100.00

1As percentage of all MPC beneficiaries reached in NW Syria


In February 2023, 149,489 beneficiary frequencies were reached, and in March 2023 the number increased to 83,553. In April 2023 124,101 were reached. As of May 2023, 99,421 beneficiaries have been reached, followed by 69,918 in June, with 129,028 in July 2023 with 142,402 in August 2023, with 70,976 in September 2023, while in October 2023 45,120, with 32,575 in November 2023, and 12,184 in December 2023.

This document distinguishes between beneficiaries, or unique individuals reached, and beneficiary frequencies, or the number of times people have been reached, inclusive of double counting.



1.1 Progress by date


The small number of beneficiaries reached earlier than February all pertained to the HRP, the only such beneficiaries reported so far. The CWG would like to encourage partners to report on their January achievements.



2. Map of activities





3. Geographic breakdown of beneficiaries

Coverage continues to be highest in Afrin and Harim districts, where the highest numbers of damaged houses and wounded people are located (though these areas do not necessarily have the highest proportions of damage).



Casualties and damaged houses, absolute figures and per 100,000 persons

governorate

district

wounded_dead1

wounded_dead_100k1

damaged_houses1

damaged_houses_100k1

Aleppo

A'zaz

356

57.87

276

44.86

Aleppo

Afrin

2,232

478.79

2,910

624.22

Aleppo

Al Bab

206

70.04

832

282.89

Aleppo

Jarablus

40

33.82

257

217.30

Aleppo

Jebel Saman

616

236.80

176

67.66

Idleb

Harim

8,449

507.65

3,230

194.07

Idleb

Idleb

350

48.23

946

130.37

Idleb

Jisr-Ash-Shugur

595

183.68

1,915

591.18

1Data from the Assistance Coordination Unit, Syria 20230328;


Below is a breakdown of beneficiaries based on whether they originate from camps or villages. The majority of MPC beneficiaries are from villages.


More than twice as many beneficiaries from villages as from camps

village_camps

beneficiaries

%_beneficiaries

camp

67,808

6.76

village

216,160

21.54

NA

719,496

71.70




3.1 By sub-district

The plots below show the breakdown of beneficiaries by sub-district. Caution must be taken to ensure that allocations are fair across the affected areas: there are numerous sub-districts where a very large proportion of the total population has already been reached by multipurpose cash, in particular, Jandairis, Harim, Salqin and Sharan.

Response activities must be proportional with the magnitude and severity of earthquake damage. Over allocation deprives affected persons of the aid they are due.

The average percentage of the population reached, of all sub-districts, is 16.37%.






3.2 Planned activities

We find it encouraging that new sub-districts are being included in the planned allocations, although it’s noteworthy that some of the planned allocation is still being assigned to areas that have already benefited from relatively high levels of support.






4. Cash response actors and cash disbursed

USD 32.2 million has been distributed across 349 communities and 34 sub-districts in NW Syria.


Reach and footprint of cash response actors

implementing_partner1

beneficiary_freq

districts

communities

GOAL (GOAL)

229,271

5

150

Shafak Organization (SO)

147,134

8

44

International Rescue Committee (IRC)

141,956

4

32

Ihsan for Relief and Development (IRD)

101,442

6

41

Takaful Al Sham (TAS)

65,035

4

57

Syria Relief (SR)

64,931

5

16

Violet Organization (VO)

51,207

5

38

Bahar Organization (BO)

36,025

2

32

Norwegian Refugee Council (NRC)

32,291

3

7

Ataa Humanitarian Relief Association (ATAA)

27,434

9

25

Solidarités International (SI)

27,041

1

6

CBRTWG-031

27,001

6

54

Welthungerhilfe (WHH)

26,913

4

10

Uluslararasi Insani Yardimlasma Dernegi (IYD)

23,696

4

8

Syrian Association for Relief and Development (SARD)

18,597

3

11

Sened Organization (SENED)

15,995

4

7

Mercy Without Limits (MWL)

15,422

4

7

People in Need (PIN)

12,804

5

6

World Vision International (WVI)

12,048

1

4

GMO -- Mercy Corps

9,870

1

1

Elaf for Relief and Development (ELAF)

6,900

3

4

International Humanitarian Relief (IHR)

6,654

3

9

Hand in Hand For Syria (HIHFS)

6,651

1

7

Social Development International (SDI)

6,252

2

3

Hope Revival Organization (HRO)

4,850

1

18

Ghiras Al Nahda (GAN)

3,050

1

2

Bonyan Organization (BO)

2,951

1

4

The Syrian Est. for Human Care and Development (Massrat)

2,692

3

3

Al-Sham Humanitarian Foundation (AHF)

1,980

7

7

Seeds Of Hope Relief and Development (SOH)

481

1

1

1Only partners who provided more than USD 100/family/month;


In the scatter plot below, each point is a single cash working group partner. The x-axis indicates the number of beneficiary frequencies reached per agency and the y-axis indicates the number of communities (admin4) reached. Mouse over each point for more details.





4.1 Cash disbursed per partner


Cash disbursed and families reached by partner

implementing_partner

total_usd

families

usd_per_fam

%_usd_total

GOAL (GOAL)

7,092,150

47,281

150.00

22.02

Shafak Organization (SO)

4,476,400

29,671

150.87

13.90

International Rescue Committee (IRC)

3,873,600

25,824

150.00

12.02

Ihsan for Relief and Development (IRD)

2,694,900

19,392

138.97

8.37

Syria Relief (SR)

2,054,158

13,304

154.40

6.38

Takaful Al Sham (TAS)

1,702,610

12,696

134.11

5.29

Violet Organization (VO)

1,447,550

10,680

135.54

4.49

Ataa Humanitarian Relief Association (ATAA)

1,154,929

6,323

182.66

3.59

Welthungerhilfe (WHH)

1,103,850

7,359

150.00

3.43

Norwegian Refugee Council (NRC)

827,600

5,971

138.60

2.57

Syrian Association for Relief and Development (SARD)

710,148

3,997

177.67

2.20

CBRTWG-031

697,950

5,068

137.72

2.17

Solidarités International (SI)

581,850

5,091

114.29

1.81

Uluslararasi Insani Yardimlasma Dernegi (IYD)

467,100

4,198

111.27

1.45

People in Need (PIN)

411,450

2,743

150.00

1.28

Mercy Without Limits (MWL)

399,731

2,877

138.94

1.24

Sened Organization (SENED)

379,200

2,528

150.00

1.18

Bahar Organization (BO)

360,000

7,205

49.97

1.12

World Vision International (WVI)

301,200

2,008

150.00

0.93

Elaf for Relief and Development (ELAF)

252,500

1,250

202.00

0.78

GMO -- Mercy Corps

218,100

2,181

100.00

0.68

Hand in Hand For Syria (HIHFS)

210,079

1,400

150.06

0.65

International Humanitarian Relief (IHR)

179,250

1,195

150.00

0.56

Social Development International (SDI)

151,650

1,011

150.00

0.47

Hope Revival Organization (HRO)

121,250

970

125.00

0.38

Bonyan Organization (BO)

119,964

575

208.63

0.37

Ghiras Al Nahda (GAN)

91,500

610

150.00

0.28

The Syrian Est. for Human Care and Development (Massrat)

81,000

540

150.00

0.25

Al-Sham Humanitarian Foundation (AHF)

41,250

330

125.00

0.13

Seeds Of Hope Relief and Development (SOH)

11,100

111

100.00

0.03


The CWG is currently working with other Clusters to consolidate all cash-based activities and will soon be able to provide more comprehensive reporting.



4.2 Currency disbursed

A total of 96.46% of cash disbursed was in USD.


Proportion of cash disbursed by currency

currency

total_usd

%_of_total

TRY

1,138,914

3.54

USD

31,075,104

96.46

Total

32,214,018

100.00




5. Annexes


5.1 Interactive reference table at sub-district level

Columns include: governorate, district, sub-district, total population, beneficiaries, total usd disbursed, wounded and dead, wounded and dead per 100k, damaged houses, damaged houses per 100k, admin3pcode




5.2 Reporting quality

This section documents issues encountered in the cleaning of 4W and FSL data and their impacts on the quality of reporting the CWG can provide. The recommendations by the CWG are included to enhance reporting quality:

  1. The CWG has adopted a new 4Ws template for monthly reporting, aiming to improve the documentation of the earthquake response efforts. The reporting deadline is set on the 15th of each month. In February 9 partners reported their achievements, In March 9 partners have reported their achievements, with 17 partners having reported in April, in May 17 partners have reported. 11 partners have reported in June, with 12 partners have reported in July, while 16 reported in August, with 16 reported in September, with 10 reported in October, with 8 reported in November, and 7 reported in December. If no MPC activities were implemented, please inform the CWG as well.

  2. For this reporting period, activities pertaining to 55,280 beneficiaries were missing their dates or had dates in unreadable formats. Please ensure that the start date and end date are entered in the format (mm/dd/yyyy) and select the month of reporting from the options in the drop down menu.

  3. For sex-and-age dis-aggregations, please do not back fill these columns using calculations based on the census or the MSNA. If no dis-aggregated data is available to your organisation, please leave these columns blank.

  4. The Cash Working Group is currently only collecting planned and implemented Multipurpose Cash achievements. Whilst the CWG welcomes additional inputs on other CVA activities, we also want to ensure that the reporting load is as low as possible for partners i.e. if an agency has implemented Cash-for-Work, this should be reported to the ERL Cluster. The CWG will work with all Clusters to develop a consolidated picture of response-wide CVA interventions.

  5. Please indicate in the previously_assisted column whether or not beneficiaries have been reached before. However, if the beneficiaries are being reported for the first time to the Cash Working Group, even if you have reached them before, please indicate No in this column. This column is used to calculate the number of unique individuals reached.

LS0tDQp0aXRsZTogIk5vcnRod2VzdCBTeXJpYSBDYXNoIFdvcmtpbmcgR3JvdXAgRWFydGhxdWFrZSBSZXNwb25zZSBCdWxsZXRpbiINCmRhdGU6ICJgciBmb3JtYXQoU3lzLnRpbWUoKSwgJyVkICVCLCAlWScpYCINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDoNCiAgICBjb2RlX2Rvd25sb2FkOiB5ZXMNCiAgICB0aGVtZTogcmVhZGFibGUNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogNA0KICAgIHRvY19mbG9hdDogeWVzDQogICAgbnVtYmVyX3NlY3Rpb25zOiBubw0KICAgIGNvbGxhcHNlZDogbm8NCiAgd29yZF9kb2N1bWVudDoNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogJzQnDQphbHdheXNfYWxsb3dfaHRtbDogeWVzDQotLS0NCg0KYGBge2NzcywgZWNobz1GQUxTRX0NCg0KI1RPQzo6YmVmb3JlIHsNCiAgY29udGVudDogIiI7DQogIGRpc3BsYXk6IGJsb2NrOw0KICBoZWlnaHQ6IDcwcHg7DQogIG1hcmdpbjogMmVtIDIw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lcGxhY2VfbmEobGlzdChiZW5lZmljaWFyaWVzID0gMCkpICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKGdvdmVybm9yYXRlID0gcmVjb2RlKGdvdmVybm9yYXRlLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhbGVwcG8iID0gIkFsZXBwbyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFMRVBQTyIgPSAiQWxlcHBvIiksIA0KICAgICAgICAgICAgICBkaXN0cmljdCA9IHJlY29kZShkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKYWJhbCBTYW1tYW4iID0gIkplYmVsIFNhbWFuIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiamFyYWJsdXMiID0gIkphcmFibHVzIiksIA0KICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImphcmFibHVzIiA9ICJKYXJhYmx1cyIpLCANCiAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9IGlmZWxzZShhZG1pbjFwY29kZSAlaW4lIGMoIlNZMTEiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIk5vIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCkpICU+JSANCiAgICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4xcGNvZGUgIT0gIlNZMDkiKQ0KIA0KICANCg0KaG5vIDwtIHJlYWRfZXhjZWwoIi4vZGF0YS8yM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BhcnRuZXIpLCANCiAgICAgIGNvbW11bml0aWVzID0gbl9kaXN0aW5jdChhZG1pbjRwY29kZSksIA0KICAgICAgaG91c2Vob2xkcyA9IHN1bShmYW1pbGllcywgbmEucm0gPSBUUlVFKSwgDQogICAgICBiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXNbcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iXSwgbmEucm0gPSBUUlVFKSwgDQogICAgICB0b3RhbF91c2QgPSBzdW0odG90YWxfdXNkLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgdW5ncm91cCgpICU+JSANCiAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IA0KICAgICAgICAgIHJvdW5kKGJlbmVmaWNpYXJpZXMgLyBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSAqIDEwMCwgZGlnaXRzID0gMiksIA0KICAgICAgICAgIHRvdGFsX3VzZCA9IHJvdW5kKHRvdGFsX3VzZCkpICU+JQ0KICAgICAgICAgICAgYWRvcm5fdG90YWxzKCJyb3ciLCwsLCBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKGAlX0JORmAgPSBpZmVsc2UoYCVfQk5GYCA+IDk5Ljk4LCAxMDAsIGAlX0JORmApKSAlPiUgDQogICAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgYGNvbW0uYCA9IGNvbW11bml0aWVzLCBwYXJ0bmVycywgDQogICAgICAgICAgICAgICAgaG91c2Vob2xkcywgYmVuZWZpY2lhcmllcywgdG90YWxfdXNkLCBgJV9CTkZgKSAlPiUgDQogICAgICAgICAgICAgICAgICBmbGV4dGFibGUoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKHBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgICByb3VuZChzdW1fc3RhdHMkYmVuZWZpY2lhcmllcywgZGlnaXRzID0gLTMpICU+JSBmb3JtYXQoYmlnLm1hcmsgPSAiLCIpLA0KICAgICAgICAgICAgICAgICAgICAgICIgcGVvcGxlIHJlYWNoZWQgd2l0aCBNUEMsIFVTRCAiLA0KICAgICAgICAgICAgICAgICAgICAgIHBhc3RlKGZvcm1hdChyb3VuZCgoc3VtX3N0YXRzICU+JSBwdWxsKHRvdGFsX3VzZCkpIC8gMTAwMDAwMCwgMSksIHRyaW0gPSBUUlVFKSwgIm1pbGxpb24iKSwgDQogICAgICAgICAgICAgICAgICAgICAgIiBkaXNidXJzZWQsICIsIA0KICAgICAgICAgICAgICAgICAgICAgIHJlcG9ydF9kYXRlKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGZvb3Rub3RlKGkgPSAxLCBqID0gOCwgcGFydCA9ICJoZWFkZXIiLCByZWZfc3ltYm9scyA9ICIxIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBhc19wYXJhZ3JhcGgoIkFzIHBlcmNlbnRhZ2Ugb2YgYWxsIE1QQyBiZW5lZmljaWFyaWVzIHJlYWNoZWQgaW4gTlcgU3lyaWEiKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldF90YWJsZV9wcm9wZXJ0aWVzKGxheW91dCA9ICJhdXRvZml0Iiwgd2lkdGggPSAxKQ0KDQoNCmBgYA0KDQpgYGB7ciBzdW1tYXJ5LXRhYmxlLXByaW50LCBldmFsPUZBTFNFfQ0KY2JyICAlPiUgDQogIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIikgJT4lDQogICAgZ3JvdXBfYnkoZ292ZXJub3JhdGUsIGRpc3RyaWN0KSAlPiUgDQogICAgICBzdW1tYXJpc2UocGFydG5lcnMg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AgICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKHBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgcm91bmQoc3VtX3N0YXRzJGJlbmVmaWNpYXJpZXMsIGRpZ2l0cyA9IC0zKSAlPiUgZm9ybWF0KGJpZy5tYXJrID0gIiwiKSwNCiAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgIHBhc3RlKGZvcm1hdChyb3VuZCgoc3VtX3N0YXRzICU+JSBwdWxsKHRvdGFsX3VzZCkpIC8gMTAwMDAwMCwgMSksIHRyaW0gPSBUUlVFKSwgIm1pbGxpb24iKSwgDQogICAgICAgICAgICAgICAgICAgICIgZGlzYnVyc2VkLCAiLCANCiAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgZm9vdG5vdGUoaSA9IDEsIGogPSA4LCBwYXJ0ID0gImhlYWRlciIsIHJlZl9zeW1ib2xzID0gIjEiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgYXNfcGFyYWdyYXBoKCJBcyBwZXJjZW50YWdlIG9mIGFsbCBNUEMgYmVuZWZpY2lhcmllcyByZWFjaGVkIGluIE5XIFN5cmlhIikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0X3RhYmxlX3Byb3BlcnRpZXMobGF5b3V0ID0gImF1dG9maXQiLCB3aWR0aCA9IDEpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzYXZlX2FzX2ltYWdlKHBhdGggPSAiLi9pbWcvc3VtbWFyeV90YWJsZS5wbmciKQ0KYGBgDQoNCg0KDQo8YnI+DQoNCkluIEZlYnJ1YXJ5IDIwMjMsIGByIGZpbHRlcihjYnIsIG1vbnRoID09IDIgJiBwcm9qZWN0X3N0YX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ByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lIA0KICAgICAgICAgIGdyb3VwX2J5KGVuZF9kYXRlKSAlPiUgDQogICAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzKSkgJT4lDQogICAgICAgICAgICAgIGFycmFuZ2UoZW5kX2RhdGUpICU+JSANCiAgICAgICAgICAgICAgICBmaWx0ZXIoZW5kX2RhdGUgID4gIjIwMjItMTItMzAiICYgZW5kX2RhdGUgPCBwcm9ncmVzc19tYXhfZGF0ZSkgJT4lICANCiAgICAgICAgICAgICAgICAgICAgbXV0YXRlKGN1bV9iZW4gPSBjdW1zdW0oYmVuZWZpY2lhcmllcykpICU+JSANCiAgIyBTcGFjZWQgYXQgcm91Z2hseSBldmVyeSAxNSBkYXlzLCBBbHRob3VnaCBzb21lIGRheXMgZG8gbm90IGhhdmUgZGlzdHJpYnV0aW9ucyANCiAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoY3VtX2xhYmVsID0gaWZlbHNlKGVuZF9kYXRlID09ICIyMDIzLTAyLTEwInwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wMy0wMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wMy0xNSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wMy0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNC0xNSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNC0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNS0yNCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNi0xMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNi0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNy0xNyJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNy0zMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wOC0xNSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wOC0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wOS0xNCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wOS0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMC0xNCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMC0zMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMS0xNCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMS0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMi0xNSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0xMi0zMSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdW1fYmVuLCAiIiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VtX2xhYmVsID0gYXMubnVtZXJpYyhjdW1fbGFiZWwpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID0gYW55ZGF0ZShlbmRfZGF0ZSkpIA0KDQpwcm9ncmVzc19saW5lICU+JSANCiAgZ2dwbG90KGFlcyh4ID0gZW5kX2RhdGUsIHkgPSBjdW1fYmVuKSkgKyANCiAgZ2VvbV9saW5lKGNvbG91ciA9ICJibHVlIikgKyANCiAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IHNjYWxlczo6Y29tbWEoY3VtX2xhYmVsKSksIHZqdXN0ID0gLTEsIA0KICAgICAgICAgICAgc2l6ZSA9IDQpICsgDQogIHNjYWxlX3hfZGF0ZShkYXRlX2JyZWFrcyA9ICIxIG1vbnRoIiwgZGF0ZV9sYWJlbHMgPSAiJWIiKSArDQogIHNjYWxlX3lfY29udGludW91cyhsYWJlbHMgPSBjb21tYSwgZXhwYW5kID0gZXhwYW5zaW9uKG11bHQgPSAuMSkpICsgDQogIGxhYnMoeCA9ICJEaXN0cmlidXRpb24gZGF0ZSIsIA0KICAgICAgIHkgPSAiQ3VtdWxhdGl2ZSBiZW5lZmljaWFyaWVzIiwgDQogICAgICAgdGl0bGUgPSAiTVBDIHBy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XBvcnQgb24gdGhlaXIgSmFudWFyeSBhY2hpZXZlbWVudHMuDQoNCjxicj48YnI+DQoNCiMgMi4gTWFwIG9mIGFjdGl2aXRpZXMNCg0KPGJyPg0KDQoNCg0KYGBge3IgcGxvdGx5LXBsYW5uZWQtaW1wbGVtZW50ZWQtbWFwLCBmaWcuaGVpZ2h0PTd9DQoNCnBsYW5uZWRfaW1wbGVtZW50ZWRfbWFwIDwtIGNiciAlPiUgDQogIG11dGF0ZShwcm9qZWN0X3N0YXR1cyA9IHJlY29kZShwcm9qZWN0X3N0YXR1cywgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiT25nb2luZyIgPSAiQ29tcGxldGVkIikpICU+JSANCiAgICByaWdodF9qb2luKHBjb2RlM19zaGFwZSwgDQogICAgYnkgPSBjKCJhZG1pbjNwY29kZSIgPSAiQURNM19QQ09ERSIpKSAlPiUgDQogICAgICBmaWx0ZXIoQURNMV9QQ09ERSAlaW4lIGMoIlNZMDIiLCAiU1kwNyIsICJTWTExIikgJiAhaXMubmEoYmVuZWZpY2lhcmllcykpICU+JSANCiAgICAgICAgc3RfYXNfc2YoKSAlPiUNCiAgICAgICAgICBnZ3Bsb3QoKSArIA0KICAgICAgICAgIGdlb21fc2Yoc2l6ZSA9IC4xLCBjb2xvdXIgPSAiZ3JleTcwIikgKyANCiAgICAgICAgICBnZW9tX3BvaW50KGFlcyhzaXplID0gYmVuZWZpY2lhcmllcywNCiAgICAgICAgICAgICAgICAgY29sb3VyID0gcHJvamVjdF9zdGF0dXMsIA0KICAgICAgICAgICAgICAgICB4ID0gbG9uZ2l0dWRlX3gsIHkgPSBsYXRpdHVkZV95LCANCiAgICAgICAgICAgICAgICAgdGV4dCA9IHBhc3RlMCgic3ViX2Rpc3RyaWN0OiAiLCBzdWJfZGlzdHJpY3QsICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImNvbW11bml0eTogIiwgY29tbXVuaXR5LCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJsb2NhdGlvbl90eXBlOiAiLCB2aWxsYWdlX2NhbXBzLCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJiZW5lZmljaWFyaWVzOiIsIGZvcm1hdChiZW5lZmljaWFyaWVzLCBiaWcubWFyayA9ICIsIiksICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInBhcnRuZXI6ICIsIGFiYnJldmlhdGlvbiwgIlxuIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxvbl94OiAiLCBsb25naXR1ZGVfeCwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibGF0X3k6ICIsIGxhdGl0dWRlX3kpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYXBlID0gMjEsIHN0cm9rZSA9IC4zNSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFscGhhID0gLjUpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX3NpemVfY29udGludW91cyhsYWJlbHMgPSBjb21tYSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfY29sb3VyX3ZpcmlkaXNfZChuYS50cmFuc2xhdGUgPSBGQUxTRSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWVfdm9pZCgpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKHBsb3QuYmFja2dyb3VuZCA9IGVsZW1lbnRfcmVjdChmaWxsID0gIndoaXRlIiwgY29sb3VyID0gTkEpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdC5jYXB0aW9uID0gZWxlbWVudF90ZXh0KGhqdXN0ID0gMC41KSwpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJDb21tdW5pdGllcyByZWFjaGVkIGFuZCBwbGFubmVkIC0tIENXRyBwYXJ0bmVycyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9ICJQbGFubmVkIGluIHllbGxvdywgY29tcGxldGVkIGluIHB1cnBsZSwgc2l6ZSBzaG93cyBudW1iZXIgb2YgcGVyc29ucyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvdXIgPSAiU3RhdHVzIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBndWlkZXMoc2l6ZSA9ICJub25lIikNCg0KICANCmdncGxvdGx5KHBsYW5uZWRfaW1wbGVtZW50ZWRfbWFwLCB0b29sdGlwID0gYygidGV4dCIpKSAlPiUgDQogIHBsb3RseTo6c3R5bGUoaG92ZXJvbiA9ICJwb2ludCIpICU+JSANCiAgICBsYXlvdXQodGl0bGUgPSBsaXN0KHRleHQgPSBwYXN0ZTAoIkNvbW11bml0aWVzIHJlYWNoZWQgYW5kIHBsYW5uZWQgLS0gQ1dHIHBhcnRuZXJzIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIjxicj4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPHN1cD4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiUGxhbm5lZCBpbiBncmVlbiwgY29tcGxldGVkIGluIHB1cnBsZSwgc2l6ZSBzaG93cyBudW1iZXIgb2YgcGVyc29uczsgY2xpY2sgYW5kIGRyYWcgdG8gem9vbTsgbW91c2Ugb3ZlciBmb3IgZGV0YWlscyIpKSkNCg0KYGBgDQoNCjxicj48YnI+PGJyPg0KDQojIDMuIEdlb2dyYXBoaWMgYnJlYWtkb3duIG9mIGJlbmVmaWNpYXJpZXMNCg0KQ292ZXJhZ2UgY29udGludWVzIHRvIGJlIGhpZ2hlc3QgaW4gQWZyaW4gYW5kIEhhcmltIGRpc3RyaWN0cywgd2hlcmUgdGhlIGhpZ2hlc3Qgbn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AgICAgc2NhbGVfZmlsbF92aXJpZGlzX2QoYmVnaW4gPSAuMykgKyANCiAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIk1QQyBiZW5lZmljaWFyaWVzIGJ5IGRpc3RyaWN0IiwgDQogICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgeSA9ICIiKSArIA0KICAgICAgICAgICAgICAgIHNjYWxlX3hfY29udGludW91cyhsYWJlbHMgPSB1bml0X2Zvcm1hdCh1bml0ID0gIksiLCBzY2FsZSA9IDFlLTMsIGFjY3VyYWN5ID0gMSkpICsgDQogICAgICAgICAgICAgICAgaG5vICU+JSANCiAgICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSA9IGFkbWluMW5hbWVfZW4sIGRpc3RyaWN0ID0gYWRtaW4ybmFtZV9lbikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UodG90YWxfcG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZnRfam9pbigNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYnIgJT4lDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIgJiAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBncm91cF9ieShkaXN0cmljdCkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSkgLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ5ID0gImRpc3RyaWN0IikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoZGlzdHJpY3QgPSBmY3RfcmVsZXZlbChkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFsIEJhYiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKYXJhYmx1cyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKZWJlbCBTYW1hbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmlzci1Bc2gtU2h1Z3VyIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIklkbGViIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkhhcmltIiksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGNfcmVhY2hlZCA9IHJvdW5kKGJlbmVmaWNpYXJpZXMgLyB0b3RhbF9wb3B1bGF0aW9uICogMTAwLCBkaWdpdHMgPSAxKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2dwbG90KGFlcyh4ID0gcGNfcmVhY2hlZCwgeSA9IGRpc3RyaWN0KSkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEocGNfcmVhY2hlZCkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIlBlcmNlbnQgb2YgcG9wdWxhdGlvbiByZWFjaGVkIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHkgPSAiIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB4ID0gIiUgb2YgcG9wdWxhdGlvbiByZWFjaGVkIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdF9sYXlvdXQoZ3VpZGVzID0gImNvbGxlY3QiKSAmIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWUobGVnZW5kLnBvc2l0aW9uID0gImJvdHRvbSIpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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ogICAgICAgICAgICAgICAgZmlsdGVyKGFkbWluM3Bjb2RlICVpbiUgbndfcGNvZGUzICYNCiAgICAgICAgICAgICAgICBhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgICAgZ3JvdXBfYnkoZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuKSAlPiUNCiAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHBvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSksIGJ5ID0gImRpc3RyaWN0IikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZSh3b3VuZGVkX2RlYWRfMTAwayA9IHJvdW5kKHdvdW5kZWRfZGVhZCAvIHBvcHVsYXRpb24gKiAxMDAwMDAsIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzXzEwMGsgPSByb3VuZChkYW1hZ2VkX2hvdXNlcyAvIHBvcHVsYXRpb24gKiAxMDAwMDAsIGRpZ2l0cyA9IDIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdChnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QsIHdvdW5kZWRfZGVhZCwgd291bmRlZF9kZWFkXzEwMGssIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlcywgZGFtYWdlZF9ob3VzZXNfMTAwaykgJT4lIA0KICAgICAgICAgICAgICAgICAgICAg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KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJzYWxxaW4iID0gIlNhbHFpbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhZnJpbiIgPSAiQWZyaW4iKSkgJT4lDQogICAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiICYgDQogICAgICAgICAgIHByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lDQogICAgICBmaWx0ZXIoIWlzLm5hKGFkbWluM3Bjb2RlKSkgJT4lIA0KICAgICAgICBncm91cF9ieShzdWJfZGlzdHJpY3QsIGFkbWluM3Bjb2RlLCBnb3Zlcm5vcmF0ZSkgJT4lDQogICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSwNCiAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICBsZWZ0X2pvaW4oaG5vICU+JSANCiAgICAgICAgICAgICAgZmlsdGVyKGFkbWluMm5hbWVfZW4gJWluJSBjKCJIYXJpbSIsICJJZGxlYiIsICJKaXNyLUFzaC1TaHVndXIiLCAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgIGdyb3VwX2J5KGFkbWluMW5hbWVfZW4sIGFkbWluM3Bjb2RlKSAlPiUNCiAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIi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3RyaWN0KSkgKyANCiAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKGJlbmVmaWNpYXJpZXMpKSwgDQogICAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArIA0KICAgICAgICAgICAgICAgICAgc2NhbGVfZmlsbF92aXJpZGlzX2QoYmVnaW4gPSAuMykgKyANCiAgICAgICAgICAgICAgICAgIGxhYnModGl0bGUgPSAiTVBDIGJlbmVmaWNpYXJpZXMgYnkgc3ViLWRpc3RyaWN0IiwgDQogICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICAgIHkgPSAiIikgKyANCiAgICAgICAgICAgICAgICAgIHNjYWxlX3hfY29udGludW91cyhsYWJlbHMgPSBjb21tYSkgKyANCiAgICAgICAgICAgICAgICAgIA0KY2JyICU+JSANCiAgbXV0YXRlKHN1Yl9kaXN0cmljdCA9IHJlY29kZShzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgInNhbHFpbiIgPSAiU2FscWluIiwgDQogICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JQ0KICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmICANCiAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JQ0KICAgICAgZmlsdGVyKCFpcy5uYShhZG1pbjNwY29kZSkpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoc3ViX2Rpc3RyaWN0LCBhZG1pbjNwY29kZSwgZ292ZXJub3JhdGUpICU+JQ0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lDQogICAgICAgICAgICAgICAgZ3JvdXBfYnkoYWRtaW4xbmFtZV9lbiwgYWRtaW4zcGNvZGUpICU+JQ0KICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHRvdGFsX3BvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICBtdXRhdGUocGNfcmVhY2hlZCA9IHJvdW5kKGJlbmVmaWNpYXJpZXMgLyB0b3RhbF9wb3B1bGF0aW9uICogMTAwLCBkaWdpdHMgPSAxKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZShzdWJfZGlzdHJpY3QgPSBmYWN0b3Ioc3ViX2Rpc3RyaWN0LCAgc3ViX2Rpc3RyaWN0X29yZGVyKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1Yl9kaXN0cmljdCA9IGZjdF9yZXYoc3ViX2Rpc3RyaWN0KSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgYXJyYW5nZShzdWJfZGlzdHJpY3QpICU+JSAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IHBjX3JlYWNoZWQsIHkgPSBzdWJfZGlzdHJpY3QpKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEocGNfcmVhY2hlZCkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIlBlcmNlbnQgb2YgcG9wdWxhdGlvbiByZWFjaGVkIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgIHN1YnRpdGxlID0gcGFzdGUwKCJhcyBvZiAiLCByZXBvcnRfZGF0ZSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICB5ID0gIiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICB4ID0gIiUgb2YgcG9wdWxhdGlvbiByZWFjaGVkIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICBwbG90X2xheW91dChndWlkZXMgPSAiY29sbGVjdCIpICYgDQogICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKGxlZ2VuZC5wb3NpdGlvbiA9ICJib3R0b20iKQ0KDQpnZ3NhdmUoIi4vaW1nL21wY19ieV9zdWJfZGlzdHJpY3QucG5nIiwgZHBpID0gMzAwLCBoZWlnaHQgPSA4LjI3LCB3aWR0aCA9IDExLjY5LCB1bml0cyA9ICJpbiIpICANCmBgYA0KDQo8YnI+PGJ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iwgDQogICAgICAgICAgeSA9ICJDb21tdW5pdGllcyAoYWRtaW40KSByZWFjaGVkIiwgDQogICAgICAgICAgdGl0bGUgPSAiSW1wbGVtZW50aW5nIHBhcnRuZXJzIC0tIGJlbmVmaWNpYXJ5IGZyZXF1ZW5jaWVzIGFuZCBjb21tdW5pdGllcyByZWFjaGVkIikNCg0KZ2dwbG90bHkocGFydG5lcl9zY2F0dGVyLCB0b29sdGlwID0gYygidGV4dCIpKSAlPiUgDQogIGxheW91dChzaG93bGVnZW5kID0gVFJVRSwgbGVnZW5kID0gbGlzdChmb250ID0gKGxpc3Qoc2l6ZSA9IDYpKSkpICU+JSANCiAgICBwbG90bHk6OnN0eWxlKGhvdmVyb24gPSAicG9pbnQiKSAlPiUgDQogICAgICBsYXlvdXQodGl0bGUgPSBsaXN0KHRleHQgPSBwYXN0ZTAoIkJlbmVmaWNpYXJpZXMgYW5kIGNvbW11bml0aWVzIHJlYWNoZWQiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8YnI+IiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPHN1cD4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJDYXNoIHJlc3BvbnNlIGltcGxlbWVudGluZyBwYXJ0bmVyczsgbW91c2Ugb3ZlciBmb3IgZGV0YWlscyIsIjwvc3VwPiIpKSkNCg0KDQpgYGANCg0KDQoNCjxicj48YnI+PGJyPg0KDQojIyMgNC4xIENhc2ggZGlzYnVyc2VkIHBlciBwYXJ0bmVyDQoNCjxicj4NCg0KYGBge3IgdGFibGUtY2FzaC1kaXNidXJzZWR9DQpjYnIgJT4lIA0KICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIpICU+JSANCiAgICBncm91cF9ieShpbXBsZW1lbnRpbmdfcGFydG5lcikgJT4lIA0KICAgICAgc3VtbWFyaXNlKHRvdGFsX3VzZCA9IHN1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ZWZpY2lhcmllc1twcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyJdLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgdG90YWxfdXNkID0gc3VtKHRvdGFsX3VzZCwgbmEucm0gPSBUUlVFKSksIA0KICAgICAgICAgICAgYnkgPSAiYWRtaW4zcGNvZGUiKSAlPiUgDQogICAgICAgICAgICAgIHNlbGVjdChnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QsIHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICB0b3RhbF9wb3B1bGF0aW9uLCANCiAgICAgICAgICAgICAgICAgICAgIGJlbmVmaWNpYXJpZXMsIHRvdGFsX3VzZCwgDQogICAgICAgICAgICAgICAgICAgICB3b3VuZGVkX2RlYWQsIHdvdW5kZWRfZGVhZF8xMDBrLCANCiAgICAgICAgICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzLCBkYW1hZ2VkX2hvdXNlc18xMDBrLCANCiAgICAgICAgICAgICAgICAgICAgIGFkbWluM3Bjb2RlKSAlPiUgDQogICAgICAgICAgICAgICAgZGF0YXRhYmxlKG9wdGlvbnMgPSBsaXN0KHBhZ2VMZW5ndGggPSAxMCwgc2Nyb2xsWCA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICBmaWx0ZXIgPSBsaXN0KHBvc2l0aW9uID0gInRvcCIsIGNsZWFyID0gRkFMU0UpLA0KICAgICAgICAgICAgICAgIGNhcHRpb24gPSBodG1sdG9vbHM6OnRhZ3MkY2FwdGlvbihzdHlsZSA9ICdjYXB0aW9uLXNpZGU6IHRvcDsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsgZm9udC1zaXplOjEyMCUgOycsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJSZWZlcmVuY2UgdGFibGUgLS0gRWFydGhxdWFrZSBpbXBhY3RzLCBmcm9tIEFDVSwgZXh0cmFjdGVkIDIwMjMwMzI4IikpICU+JSANCiAgICAgICAgICAgICAgICAgIGZvcm1hdFN0eWxlKDAsIHRhcmdldCA9ICJyb3ciLCBsaW5lSGVpZ2h0ID0gIjgwJSIsIGZvbnRTaXplID0gIjgwJSIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgZm9ybWF0Um91bmQoYygid291bmRlZF9kZWFkXzEwMGsiLCAiZGFtYWdlZF9ob3VzZXNfMTAwayIpLCBkaWdpdHMgPSAyKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgZm9ybWF0Q3VycmVuY3koYygidG90YWxfcG9wdWxhdGlvbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIndvdW5kZWRfZGVhZCIsICJkYW1hZ2VkX2hvdXNlcyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJlbmVmaWNpYXJpZXMiLCAidG90YWxfdXNkIiksIA0KICAgICAgICAgICAgICAgICAgICAgIGN1cnJlbmN5ID0gIiIsIGludGVydmFsID0gMywgbWFyayA9ICIsIikgJT4lDQogICAgICAgICAgICAgICAgICAgICAgICBmb3JtYXRSb3VuZChjKCJ0b3RhbF9wb3B1bGF0aW9uIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ3b3VuZGVkX2RlYWQiLCAiZGFtYWdlZF9ob3VzZXMiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYmVuZWZpY2lhcmllcyIsICJ0b3RhbF91c2QiKSwgZGlnaXRzID0gMCkNCiAgDQpgYGANCg0KPGJyPjxicj4NCg0KIyMjIDUuMiBSZXBvcnRpbmcgcXVhbGl0eQ0KDQpgYGB7cn0NCm1vbnRoX3JlcG9ydGluZyA8LSBjYnIgJT4lIA0KICBncm91cF9ieShtb250aCA9IG1v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