diff --git a/docs/classes/APIReference.html b/docs/classes/APIReference.html index 0b846c831..93b54cdbc 100644 --- a/docs/classes/APIReference.html +++ b/docs/classes/APIReference.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ASNImport.html b/docs/classes/ASNImport.html index bcbc10d1c..beb9c2fa9 100644 --- a/docs/classes/ASNImport.html +++ b/docs/classes/ASNImport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

ASNImport Class

- Defined in: src/main/js/cass/cass.import.js:1052 + Defined in: src/main/js/cass/cass.import.js:1070
Module: org.cassproject @@ -928,7 +928,7 @@

analyzeFile

Defined in - src/main/js/cass/cass.import.js:1144 + src/main/js/cass/cass.import.js:1162

@@ -1012,7 +1012,7 @@

asnJsonPrime

Defined in - src/main/js/cass/cass.import.js:1078 + src/main/js/cass/cass.import.js:1096

@@ -1093,7 +1093,7 @@

createCompetencies

Defined in - src/main/js/cass/cass.import.js:1234 + src/main/js/cass/cass.import.js:1252

@@ -1204,7 +1204,7 @@

createFramework

Defined in - src/main/js/cass/cass.import.js:1375 + src/main/js/cass/cass.import.js:1393

@@ -1311,7 +1311,7 @@

createRelationships

Defined in - src/main/js/cass/cass.import.js:1304 + src/main/js/cass/cass.import.js:1322

@@ -1447,7 +1447,7 @@

importCompetencies

Defined in - src/main/js/cass/cass.import.js:1188 + src/main/js/cass/cass.import.js:1206

@@ -1561,7 +1561,7 @@

lookThroughSource

Defined in - src/main/js/cass/cass.import.js:1110 + src/main/js/cass/cass.import.js:1128

diff --git a/docs/classes/AboutPage.html b/docs/classes/AboutPage.html index 1b3899ac3..5e4238206 100644 --- a/docs/classes/AboutPage.html +++ b/docs/classes/AboutPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AcceptAction.html b/docs/classes/AcceptAction.html index 43653bb76..9f2522a78 100644 --- a/docs/classes/AcceptAction.html +++ b/docs/classes/AcceptAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Accommodation.html b/docs/classes/Accommodation.html index 5781a1d33..d7c0d9d46 100644 --- a/docs/classes/Accommodation.html +++ b/docs/classes/Accommodation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AccountingService.html b/docs/classes/AccountingService.html index 05915b8c9..e840c8ebc 100644 --- a/docs/classes/AccountingService.html +++ b/docs/classes/AccountingService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AccreditAction.html b/docs/classes/AccreditAction.html index 46b9c65d5..c7953883b 100644 --- a/docs/classes/AccreditAction.html +++ b/docs/classes/AccreditAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AchieveAction.html b/docs/classes/AchieveAction.html index 9e0266e32..3173c556e 100644 --- a/docs/classes/AchieveAction.html +++ b/docs/classes/AchieveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Action.html b/docs/classes/Action.html index 71061a590..5bb0e139a 100644 --- a/docs/classes/Action.html +++ b/docs/classes/Action.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ActionStatusType.html b/docs/classes/ActionStatusType.html index d9acc8e02..2eeea76b0 100644 --- a/docs/classes/ActionStatusType.html +++ b/docs/classes/ActionStatusType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ActivateAction.html b/docs/classes/ActivateAction.html index 9762be661..1cf17b10e 100644 --- a/docs/classes/ActivateAction.html +++ b/docs/classes/ActivateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AddAction.html b/docs/classes/AddAction.html index b122d3e05..75cd2813d 100644 --- a/docs/classes/AddAction.html +++ b/docs/classes/AddAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AdministrativeArea.html b/docs/classes/AdministrativeArea.html index 6bdfa0bea..8e12f011f 100644 --- a/docs/classes/AdministrativeArea.html +++ b/docs/classes/AdministrativeArea.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AdultEntertainment.html b/docs/classes/AdultEntertainment.html index a68f80948..eb1f8db0e 100644 --- a/docs/classes/AdultEntertainment.html +++ b/docs/classes/AdultEntertainment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AdvancedStandingAction.html b/docs/classes/AdvancedStandingAction.html index a4b222f11..163c443ac 100644 --- a/docs/classes/AdvancedStandingAction.html +++ b/docs/classes/AdvancedStandingAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Agent.html b/docs/classes/Agent.html index eaa4087c5..2b1bfde8d 100644 --- a/docs/classes/Agent.html +++ b/docs/classes/Agent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AggregateOffer.html b/docs/classes/AggregateOffer.html index 7e3fe7469..97244886b 100644 --- a/docs/classes/AggregateOffer.html +++ b/docs/classes/AggregateOffer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AggregateRating.html b/docs/classes/AggregateRating.html index bfcffe97d..146d7b29d 100644 --- a/docs/classes/AggregateRating.html +++ b/docs/classes/AggregateRating.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AgreeAction.html b/docs/classes/AgreeAction.html index 9c6a10562..86f2b8f1a 100644 --- a/docs/classes/AgreeAction.html +++ b/docs/classes/AgreeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Airline.html b/docs/classes/Airline.html index 5f2e748f7..7100bc0ae 100644 --- a/docs/classes/Airline.html +++ b/docs/classes/Airline.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Airport.html b/docs/classes/Airport.html index b2c301a3e..e327a7498 100644 --- a/docs/classes/Airport.html +++ b/docs/classes/Airport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AlignmentMap.html b/docs/classes/AlignmentMap.html index 45e6dfa5c..584773a03 100644 --- a/docs/classes/AlignmentMap.html +++ b/docs/classes/AlignmentMap.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AlignmentObject.html b/docs/classes/AlignmentObject.html index 4f5b8b634..30a04d992 100644 --- a/docs/classes/AlignmentObject.html +++ b/docs/classes/AlignmentObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AllocateAction.html b/docs/classes/AllocateAction.html index ad1ba216e..19c9cb450 100644 --- a/docs/classes/AllocateAction.html +++ b/docs/classes/AllocateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AmusementPark.html b/docs/classes/AmusementPark.html index e80015fd2..360365110 100644 --- a/docs/classes/AmusementPark.html +++ b/docs/classes/AmusementPark.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AnimalShelter.html b/docs/classes/AnimalShelter.html index f9e091c68..8b0653379 100644 --- a/docs/classes/AnimalShelter.html +++ b/docs/classes/AnimalShelter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Answer.html b/docs/classes/Answer.html index f31ac9b91..5365f316b 100644 --- a/docs/classes/Answer.html +++ b/docs/classes/Answer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Apartment.html b/docs/classes/Apartment.html index 49fc27adc..1c94bb0d4 100644 --- a/docs/classes/Apartment.html +++ b/docs/classes/Apartment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ApartmentComplex.html b/docs/classes/ApartmentComplex.html index f5e1e0532..849df9384 100644 --- a/docs/classes/ApartmentComplex.html +++ b/docs/classes/ApartmentComplex.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AppendAction.html b/docs/classes/AppendAction.html index b8cc28c7c..159128569 100644 --- a/docs/classes/AppendAction.html +++ b/docs/classes/AppendAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ApplyAction.html b/docs/classes/ApplyAction.html index 7682e5353..85e19e865 100644 --- a/docs/classes/ApplyAction.html +++ b/docs/classes/ApplyAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ApprenticeshipCertificate.html b/docs/classes/ApprenticeshipCertificate.html index 0a7018c0f..1a3cc3fd6 100644 --- a/docs/classes/ApprenticeshipCertificate.html +++ b/docs/classes/ApprenticeshipCertificate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ApproveAction.html b/docs/classes/ApproveAction.html index 083a417a4..f67ae6296 100644 --- a/docs/classes/ApproveAction.html +++ b/docs/classes/ApproveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Aquarium.html b/docs/classes/Aquarium.html index 014120bfc..cbf34a444 100644 --- a/docs/classes/Aquarium.html +++ b/docs/classes/Aquarium.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ArriveAction.html b/docs/classes/ArriveAction.html index 2d2d43036..50c57cbc9 100644 --- a/docs/classes/ArriveAction.html +++ b/docs/classes/ArriveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ArtGallery.html b/docs/classes/ArtGallery.html index bcb913601..07a071e34 100644 --- a/docs/classes/ArtGallery.html +++ b/docs/classes/ArtGallery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Article.html b/docs/classes/Article.html index ec0603f1a..74ea1ac72 100644 --- a/docs/classes/Article.html +++ b/docs/classes/Article.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AskAction.html b/docs/classes/AskAction.html index 5e272006b..f15679c8e 100644 --- a/docs/classes/AskAction.html +++ b/docs/classes/AskAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Assertion.html b/docs/classes/Assertion.html index b558e012e..675aecef3 100644 --- a/docs/classes/Assertion.html +++ b/docs/classes/Assertion.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

Assertion Class

- Defined in: src/main/js/cass/org.cassproject.schema.cass.js:446 + Defined in: src/main/js/cass/org.cassproject.schema.cass.js:471
Module: org.cassproject @@ -1754,7 +1754,7 @@

agent

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:502 + src/main/js/cass/org.cassproject.schema.cass.js:528

@@ -1854,7 +1854,7 @@

assertionDate

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:516 + src/main/js/cass/org.cassproject.schema.cass.js:542

@@ -2129,7 +2129,7 @@

competency

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:466 + src/main/js/cass/org.cassproject.schema.cass.js:492

@@ -2154,7 +2154,7 @@

confidence

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:487 + src/main/js/cass/org.cassproject.schema.cass.js:513

@@ -2405,7 +2405,7 @@

decayFunction

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:530 + src/main/js/cass/org.cassproject.schema.cass.js:556

@@ -2630,7 +2630,7 @@

evidence

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:509 + src/main/js/cass/org.cassproject.schema.cass.js:535

@@ -2680,7 +2680,7 @@

expirationDate

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:523 + src/main/js/cass/org.cassproject.schema.cass.js:549

@@ -2730,7 +2730,7 @@

framework

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:473 + src/main/js/cass/org.cassproject.schema.cass.js:499

@@ -3155,7 +3155,7 @@

level

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:480 + src/main/js/cass/org.cassproject.schema.cass.js:506

@@ -3355,7 +3355,7 @@

negative

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:537 + src/main/js/cass/org.cassproject.schema.cass.js:563

@@ -3807,7 +3807,7 @@

subject

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:495 + src/main/js/cass/org.cassproject.schema.cass.js:521

diff --git a/docs/classes/AssertionEnvelope.html b/docs/classes/AssertionEnvelope.html index cfef81bd7..4db37990d 100644 --- a/docs/classes/AssertionEnvelope.html +++ b/docs/classes/AssertionEnvelope.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

AssertionEnvelope Class

Module: org.cassproject @@ -1307,7 +1307,7 @@

addAssertion

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:821 + src/main/js/cass/org.cassproject.schema.cass.js:852

@@ -1367,7 +1367,7 @@

addAssertionAsync

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:857 + src/main/js/cass/org.cassproject.schema.cass.js:888

@@ -1446,7 +1446,7 @@

getAssertion

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:803 + src/main/js/cass/org.cassproject.schema.cass.js:834

@@ -1587,7 +1587,7 @@

removeAssertionByShortId

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:780 + src/main/js/cass/org.cassproject.schema.cass.js:811

@@ -1741,7 +1741,7 @@

validate

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:939 + src/main/js/cass/org.cassproject.schema.cass.js:970

@@ -2107,7 +2107,7 @@

assertion

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:761 + src/main/js/cass/org.cassproject.schema.cass.js:792

@@ -2332,7 +2332,7 @@

codebook

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:768 + src/main/js/cass/org.cassproject.schema.cass.js:799

diff --git a/docs/classes/AssertionProcessor.html b/docs/classes/AssertionProcessor.html index 76382caf7..d71a26b9b 100644 --- a/docs/classes/AssertionProcessor.html +++ b/docs/classes/AssertionProcessor.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AssessAction.html b/docs/classes/AssessAction.html index 9cd812ec0..dc20aa64b 100644 --- a/docs/classes/AssessAction.html +++ b/docs/classes/AssessAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Assessment.html b/docs/classes/Assessment.html index faf18719b..7d928cb27 100644 --- a/docs/classes/Assessment.html +++ b/docs/classes/Assessment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AssessmentProfile.html b/docs/classes/AssessmentProfile.html index b0f4d30fc..3337aa0ae 100644 --- a/docs/classes/AssessmentProfile.html +++ b/docs/classes/AssessmentProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AssignAction.html b/docs/classes/AssignAction.html index 7218e2da6..ed3561bbb 100644 --- a/docs/classes/AssignAction.html +++ b/docs/classes/AssignAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AssociateDegree.html b/docs/classes/AssociateDegree.html index b101fa5c3..14db4438c 100644 --- a/docs/classes/AssociateDegree.html +++ b/docs/classes/AssociateDegree.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Attorney.html b/docs/classes/Attorney.html index a2e85b962..957675619 100644 --- a/docs/classes/Attorney.html +++ b/docs/classes/Attorney.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Audience.html b/docs/classes/Audience.html index 3017ce404..572fb2c18 100644 --- a/docs/classes/Audience.html +++ b/docs/classes/Audience.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AudioObject.html b/docs/classes/AudioObject.html index 2069fd136..d700a28ae 100644 --- a/docs/classes/AudioObject.html +++ b/docs/classes/AudioObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AuthorizeAction.html b/docs/classes/AuthorizeAction.html index 502b7f07e..705d952fa 100644 --- a/docs/classes/AuthorizeAction.html +++ b/docs/classes/AuthorizeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoBodyShop.html b/docs/classes/AutoBodyShop.html index d9565e3fb..d9cf56ab9 100644 --- a/docs/classes/AutoBodyShop.html +++ b/docs/classes/AutoBodyShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoDealer.html b/docs/classes/AutoDealer.html index 3e954099a..20d3002a6 100644 --- a/docs/classes/AutoDealer.html +++ b/docs/classes/AutoDealer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoPartsStore.html b/docs/classes/AutoPartsStore.html index 5568ba5e4..6ef97e23c 100644 --- a/docs/classes/AutoPartsStore.html +++ b/docs/classes/AutoPartsStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoRental.html b/docs/classes/AutoRental.html index c1af814cc..7fe09457c 100644 --- a/docs/classes/AutoRental.html +++ b/docs/classes/AutoRental.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoRepair.html b/docs/classes/AutoRepair.html index 0d4c2c7b9..5b7eb3bb9 100644 --- a/docs/classes/AutoRepair.html +++ b/docs/classes/AutoRepair.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutoWash.html b/docs/classes/AutoWash.html index a191b07ce..18d69a78a 100644 --- a/docs/classes/AutoWash.html +++ b/docs/classes/AutoWash.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutomatedTeller.html b/docs/classes/AutomatedTeller.html index 53a6ee826..8def89962 100644 --- a/docs/classes/AutomatedTeller.html +++ b/docs/classes/AutomatedTeller.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/AutomotiveBusiness.html b/docs/classes/AutomotiveBusiness.html index 25f5da554..5d71deebd 100644 --- a/docs/classes/AutomotiveBusiness.html +++ b/docs/classes/AutomotiveBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BachelorDegree.html b/docs/classes/BachelorDegree.html index 5f531e4ec..6355dc4bf 100644 --- a/docs/classes/BachelorDegree.html +++ b/docs/classes/BachelorDegree.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Badge.html b/docs/classes/Badge.html index 9247f3de2..85d4db680 100644 --- a/docs/classes/Badge.html +++ b/docs/classes/Badge.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Bakery.html b/docs/classes/Bakery.html index 90f1c7285..263ca9710 100644 --- a/docs/classes/Bakery.html +++ b/docs/classes/Bakery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BankAccount.html b/docs/classes/BankAccount.html index d996895f0..8aa869620 100644 --- a/docs/classes/BankAccount.html +++ b/docs/classes/BankAccount.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BankOrCreditUnion.html b/docs/classes/BankOrCreditUnion.html index bb837d11a..9a8771781 100644 --- a/docs/classes/BankOrCreditUnion.html +++ b/docs/classes/BankOrCreditUnion.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BarOrPub.html b/docs/classes/BarOrPub.html index 1096e6d0d..359959a2b 100644 --- a/docs/classes/BarOrPub.html +++ b/docs/classes/BarOrPub.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Barcode.html b/docs/classes/Barcode.html index 923587a9b..61e9fd548 100644 --- a/docs/classes/Barcode.html +++ b/docs/classes/Barcode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Beach.html b/docs/classes/Beach.html index 1ab7b738c..d52294c7b 100644 --- a/docs/classes/Beach.html +++ b/docs/classes/Beach.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BeautySalon.html b/docs/classes/BeautySalon.html index 88b2e70d7..f69f117bb 100644 --- a/docs/classes/BeautySalon.html +++ b/docs/classes/BeautySalon.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BedAndBreakfast.html b/docs/classes/BedAndBreakfast.html index b2efb9ecd..af5b86652 100644 --- a/docs/classes/BedAndBreakfast.html +++ b/docs/classes/BedAndBreakfast.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BedDetails.html b/docs/classes/BedDetails.html index d5e25b774..e50496ec4 100644 --- a/docs/classes/BedDetails.html +++ b/docs/classes/BedDetails.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BefriendAction.html b/docs/classes/BefriendAction.html index 9c1c553f4..e21e508a5 100644 --- a/docs/classes/BefriendAction.html +++ b/docs/classes/BefriendAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BikeStore.html b/docs/classes/BikeStore.html index c6391f543..0ac96d7a9 100644 --- a/docs/classes/BikeStore.html +++ b/docs/classes/BikeStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Blog.html b/docs/classes/Blog.html index 70e2b1d8f..0225abb07 100644 --- a/docs/classes/Blog.html +++ b/docs/classes/Blog.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BlogPosting.html b/docs/classes/BlogPosting.html index 73f13bed6..00a001ce6 100644 --- a/docs/classes/BlogPosting.html +++ b/docs/classes/BlogPosting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BoardingPolicyType.html b/docs/classes/BoardingPolicyType.html index 128f08eb2..d0ad8ace0 100644 --- a/docs/classes/BoardingPolicyType.html +++ b/docs/classes/BoardingPolicyType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BodyOfWater.html b/docs/classes/BodyOfWater.html index 42e7071c0..24e4b27cc 100644 --- a/docs/classes/BodyOfWater.html +++ b/docs/classes/BodyOfWater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Book.html b/docs/classes/Book.html index e1c18fa42..86b5f1c7e 100644 --- a/docs/classes/Book.html +++ b/docs/classes/Book.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BookFormatType.html b/docs/classes/BookFormatType.html index a99d4fce3..6bd54a24e 100644 --- a/docs/classes/BookFormatType.html +++ b/docs/classes/BookFormatType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BookSeries.html b/docs/classes/BookSeries.html index d054a4314..7533d2b55 100644 --- a/docs/classes/BookSeries.html +++ b/docs/classes/BookSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BookStore.html b/docs/classes/BookStore.html index e8a0f7c3c..186b4ec69 100644 --- a/docs/classes/BookStore.html +++ b/docs/classes/BookStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BookmarkAction.html b/docs/classes/BookmarkAction.html index 8c034d30c..817bc945a 100644 --- a/docs/classes/BookmarkAction.html +++ b/docs/classes/BookmarkAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BorrowAction.html b/docs/classes/BorrowAction.html index 3b724d349..633281423 100644 --- a/docs/classes/BorrowAction.html +++ b/docs/classes/BorrowAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BowlingAlley.html b/docs/classes/BowlingAlley.html index 34f14daf7..a3e59381b 100644 --- a/docs/classes/BowlingAlley.html +++ b/docs/classes/BowlingAlley.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Brand.html b/docs/classes/Brand.html index 2bdc22f63..4cb950044 100644 --- a/docs/classes/Brand.html +++ b/docs/classes/Brand.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BreadcrumbList.html b/docs/classes/BreadcrumbList.html index ff5ebb495..4021b5dc8 100644 --- a/docs/classes/BreadcrumbList.html +++ b/docs/classes/BreadcrumbList.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Brewery.html b/docs/classes/Brewery.html index 5d583cfd2..91606fa70 100644 --- a/docs/classes/Brewery.html +++ b/docs/classes/Brewery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Bridge.html b/docs/classes/Bridge.html index 7df643fb2..35f518c0e 100644 --- a/docs/classes/Bridge.html +++ b/docs/classes/Bridge.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BroadcastChannel.html b/docs/classes/BroadcastChannel.html index 417b49d84..4f1c702f0 100644 --- a/docs/classes/BroadcastChannel.html +++ b/docs/classes/BroadcastChannel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BroadcastEvent.html b/docs/classes/BroadcastEvent.html index 90bec84b4..fe7117c88 100644 --- a/docs/classes/BroadcastEvent.html +++ b/docs/classes/BroadcastEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BroadcastService.html b/docs/classes/BroadcastService.html index 8b499dfad..b598269c4 100644 --- a/docs/classes/BroadcastService.html +++ b/docs/classes/BroadcastService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BuddhistTemple.html b/docs/classes/BuddhistTemple.html index 36ebbfc0c..7f8ecdb26 100644 --- a/docs/classes/BuddhistTemple.html +++ b/docs/classes/BuddhistTemple.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusReservation.html b/docs/classes/BusReservation.html index d2d1a0d7f..b7c7c9972 100644 --- a/docs/classes/BusReservation.html +++ b/docs/classes/BusReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusStation.html b/docs/classes/BusStation.html index 5324cd5d7..e0acab229 100644 --- a/docs/classes/BusStation.html +++ b/docs/classes/BusStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusStop.html b/docs/classes/BusStop.html index 47eb2b011..9fa3d48c3 100644 --- a/docs/classes/BusStop.html +++ b/docs/classes/BusStop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusTrip.html b/docs/classes/BusTrip.html index 0bc8034f7..1b9295891 100644 --- a/docs/classes/BusTrip.html +++ b/docs/classes/BusTrip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusinessAudience.html b/docs/classes/BusinessAudience.html index 01e29340e..b425dffdd 100644 --- a/docs/classes/BusinessAudience.html +++ b/docs/classes/BusinessAudience.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusinessEntityType.html b/docs/classes/BusinessEntityType.html index b8db24d2f..80f761e4b 100644 --- a/docs/classes/BusinessEntityType.html +++ b/docs/classes/BusinessEntityType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusinessEvent.html b/docs/classes/BusinessEvent.html index 472bdfb25..eb8e2427e 100644 --- a/docs/classes/BusinessEvent.html +++ b/docs/classes/BusinessEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BusinessFunction.html b/docs/classes/BusinessFunction.html index b90764d5c..28e70be31 100644 --- a/docs/classes/BusinessFunction.html +++ b/docs/classes/BusinessFunction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/BuyAction.html b/docs/classes/BuyAction.html index 016bbf17c..e8ca56552 100644 --- a/docs/classes/BuyAction.html +++ b/docs/classes/BuyAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CSVExport.html b/docs/classes/CSVExport.html index 7acb01760..a786a2c58 100644 --- a/docs/classes/CSVExport.html +++ b/docs/classes/CSVExport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

CSVExport Class

- Defined in: src/main/js/cass/cass.import.js:1582 + Defined in: src/main/js/cass/cass.import.js:1600
Module: org.cassproject @@ -898,7 +898,7 @@

export

Defined in - src/main/js/cass/cass.import.js:1604 + src/main/js/cass/cass.import.js:1622

diff --git a/docs/classes/CSVImport.html b/docs/classes/CSVImport.html index a6ffc476a..d490f2017 100644 --- a/docs/classes/CSVImport.html +++ b/docs/classes/CSVImport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CableOrSatelliteService.html b/docs/classes/CableOrSatelliteService.html index 439937a77..4b1a21ec4 100644 --- a/docs/classes/CableOrSatelliteService.html +++ b/docs/classes/CableOrSatelliteService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CafeOrCoffeeShop.html b/docs/classes/CafeOrCoffeeShop.html index 794711070..db28e4eb7 100644 --- a/docs/classes/CafeOrCoffeeShop.html +++ b/docs/classes/CafeOrCoffeeShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Campground.html b/docs/classes/Campground.html index 38451f874..43d98c09e 100644 --- a/docs/classes/Campground.html +++ b/docs/classes/Campground.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CampingPitch.html b/docs/classes/CampingPitch.html index c0a98f105..21838b665 100644 --- a/docs/classes/CampingPitch.html +++ b/docs/classes/CampingPitch.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Canal.html b/docs/classes/Canal.html index 11d118117..144d8dec4 100644 --- a/docs/classes/Canal.html +++ b/docs/classes/Canal.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CancelAction.html b/docs/classes/CancelAction.html index a193e1a75..29f7f5517 100644 --- a/docs/classes/CancelAction.html +++ b/docs/classes/CancelAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Car.html b/docs/classes/Car.html index 7f9f871ac..45536418f 100644 --- a/docs/classes/Car.html +++ b/docs/classes/Car.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CareerPathway.html b/docs/classes/CareerPathway.html index 10577cbd5..7827235e0 100644 --- a/docs/classes/CareerPathway.html +++ b/docs/classes/CareerPathway.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Casino.html b/docs/classes/Casino.html index dd4774d7a..945a3f6ad 100644 --- a/docs/classes/Casino.html +++ b/docs/classes/Casino.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Cass.html b/docs/classes/Cass.html index bf36f656a..275ed2617 100644 --- a/docs/classes/Cass.html +++ b/docs/classes/Cass.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CatholicChurch.html b/docs/classes/CatholicChurch.html index 3ca883619..afd93eef4 100644 --- a/docs/classes/CatholicChurch.html +++ b/docs/classes/CatholicChurch.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Cemetery.html b/docs/classes/Cemetery.html index b204cf11e..7559777f3 100644 --- a/docs/classes/Cemetery.html +++ b/docs/classes/Cemetery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Certificate.html b/docs/classes/Certificate.html index 43b326408..870d4dbf5 100644 --- a/docs/classes/Certificate.html +++ b/docs/classes/Certificate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Certification.html b/docs/classes/Certification.html index e05901832..3397d0a6b 100644 --- a/docs/classes/Certification.html +++ b/docs/classes/Certification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CheckAction.html b/docs/classes/CheckAction.html index 7c9746816..edd28225a 100644 --- a/docs/classes/CheckAction.html +++ b/docs/classes/CheckAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CheckInAction.html b/docs/classes/CheckInAction.html index d32633eda..5476baa37 100644 --- a/docs/classes/CheckInAction.html +++ b/docs/classes/CheckInAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CheckOutAction.html b/docs/classes/CheckOutAction.html index be8afea41..0d7e4808a 100644 --- a/docs/classes/CheckOutAction.html +++ b/docs/classes/CheckOutAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CheckoutPage.html b/docs/classes/CheckoutPage.html index 2cd32b6ac..96f8f8a94 100644 --- a/docs/classes/CheckoutPage.html +++ b/docs/classes/CheckoutPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ChildCare.html b/docs/classes/ChildCare.html index ca3631df9..158e2fb04 100644 --- a/docs/classes/ChildCare.html +++ b/docs/classes/ChildCare.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ChildrensEvent.html b/docs/classes/ChildrensEvent.html index 42876335f..5c41ebc83 100644 --- a/docs/classes/ChildrensEvent.html +++ b/docs/classes/ChildrensEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ChooseAction.html b/docs/classes/ChooseAction.html index 7775fe279..708736f1d 100644 --- a/docs/classes/ChooseAction.html +++ b/docs/classes/ChooseAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Church.html b/docs/classes/Church.html index b58131b73..b23643b64 100644 --- a/docs/classes/Church.html +++ b/docs/classes/Church.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/City.html b/docs/classes/City.html index 7d63bc310..d974ea731 100644 --- a/docs/classes/City.html +++ b/docs/classes/City.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CityHall.html b/docs/classes/CityHall.html index 0d15dd391..5d8fc8e73 100644 --- a/docs/classes/CityHall.html +++ b/docs/classes/CityHall.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CivicStructure.html b/docs/classes/CivicStructure.html index bb12926e7..99e19f2d6 100644 --- a/docs/classes/CivicStructure.html +++ b/docs/classes/CivicStructure.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ClaimReview.html b/docs/classes/ClaimReview.html index ea681f966..a0e94926e 100644 --- a/docs/classes/ClaimReview.html +++ b/docs/classes/ClaimReview.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Clip.html b/docs/classes/Clip.html index 1303a3039..003c106f1 100644 --- a/docs/classes/Clip.html +++ b/docs/classes/Clip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ClothingStore.html b/docs/classes/ClothingStore.html index 0343dd156..84ccc20b0 100644 --- a/docs/classes/ClothingStore.html +++ b/docs/classes/ClothingStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Code.html b/docs/classes/Code.html index d817552d6..2eca9c0bc 100644 --- a/docs/classes/Code.html +++ b/docs/classes/Code.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Collection.html b/docs/classes/Collection.html index 9ef12bc3d..e85f55405 100644 --- a/docs/classes/Collection.html +++ b/docs/classes/Collection.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CollectionPage.html b/docs/classes/CollectionPage.html index bc857cbfe..8eb1fb0ce 100644 --- a/docs/classes/CollectionPage.html +++ b/docs/classes/CollectionPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CollegeOrUniversity.html b/docs/classes/CollegeOrUniversity.html index 74b5029d0..c5b9d51c5 100644 --- a/docs/classes/CollegeOrUniversity.html +++ b/docs/classes/CollegeOrUniversity.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ComedyClub.html b/docs/classes/ComedyClub.html index 3a65f6b81..8148ecb00 100644 --- a/docs/classes/ComedyClub.html +++ b/docs/classes/ComedyClub.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ComedyEvent.html b/docs/classes/ComedyEvent.html index 0aaa1cbb8..08a4fddcf 100644 --- a/docs/classes/ComedyEvent.html +++ b/docs/classes/ComedyEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Comment.html b/docs/classes/Comment.html index 4531eb367..6629f09c8 100644 --- a/docs/classes/Comment.html +++ b/docs/classes/Comment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CommentAction.html b/docs/classes/CommentAction.html index a27f20379..115c2748a 100644 --- a/docs/classes/CommentAction.html +++ b/docs/classes/CommentAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CommunicateAction.html b/docs/classes/CommunicateAction.html index 754d0904b..afab2a4ad 100644 --- a/docs/classes/CommunicateAction.html +++ b/docs/classes/CommunicateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Competency.html b/docs/classes/Competency.html index 6895e8a83..b66412788 100644 --- a/docs/classes/Competency.html +++ b/docs/classes/Competency.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -3439,7 +3439,7 @@

scope

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:67 + src/main/js/cass/org.cassproject.schema.cass.js:68

diff --git a/docs/classes/CompetencyFramework.html b/docs/classes/CompetencyFramework.html index 1b3352abd..08392f7c4 100644 --- a/docs/classes/CompetencyFramework.html +++ b/docs/classes/CompetencyFramework.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CompoundPriceSpecification.html b/docs/classes/CompoundPriceSpecification.html index 508b779d1..978f0020e 100644 --- a/docs/classes/CompoundPriceSpecification.html +++ b/docs/classes/CompoundPriceSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ComputerLanguage.html b/docs/classes/ComputerLanguage.html index 9371a69c5..f4a7db95b 100644 --- a/docs/classes/ComputerLanguage.html +++ b/docs/classes/ComputerLanguage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ComputerStore.html b/docs/classes/ComputerStore.html index 6e93ea241..aaa5168ef 100644 --- a/docs/classes/ComputerStore.html +++ b/docs/classes/ComputerStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Concept.html b/docs/classes/Concept.html index 428732c03..7326fe8f2 100644 --- a/docs/classes/Concept.html +++ b/docs/classes/Concept.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -885,7 +885,7 @@

semanticRelation

Defined in - src/main/js/cass/org.w3.skos.js:69 + src/main/js/cass/org.w3.skos.js:70

@@ -911,7 +911,7 @@

topConceptOf

Defined in - src/main/js/cass/org.w3.skos.js:62 + src/main/js/cass/org.w3.skos.js:63

diff --git a/docs/classes/ConceptScheme.html b/docs/classes/ConceptScheme.html index 89616757a..f01b882b0 100644 --- a/docs/classes/ConceptScheme.html +++ b/docs/classes/ConceptScheme.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

ConceptScheme Class

Module: org.w3.skos @@ -882,7 +882,7 @@

hasTopConcept

Defined in - src/main/js/cass/org.w3.skos.js:108 + src/main/js/cass/org.w3.skos.js:114

diff --git a/docs/classes/ConditionManifest.html b/docs/classes/ConditionManifest.html index 74f92c904..4520edbc7 100644 --- a/docs/classes/ConditionManifest.html +++ b/docs/classes/ConditionManifest.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ConditionProfile.html b/docs/classes/ConditionProfile.html index d434ddd3d..fb7d757f7 100644 --- a/docs/classes/ConditionProfile.html +++ b/docs/classes/ConditionProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ConfirmAction.html b/docs/classes/ConfirmAction.html index 9711aab05..aa547baa9 100644 --- a/docs/classes/ConfirmAction.html +++ b/docs/classes/ConfirmAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ConsumeAction.html b/docs/classes/ConsumeAction.html index ed69b1c4c..fef5629ec 100644 --- a/docs/classes/ConsumeAction.html +++ b/docs/classes/ConsumeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ContactPage.html b/docs/classes/ContactPage.html index cacc4f514..92d11ea1a 100644 --- a/docs/classes/ContactPage.html +++ b/docs/classes/ContactPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ContactPoint.html b/docs/classes/ContactPoint.html index 4a23a94f2..23a2de3c2 100644 --- a/docs/classes/ContactPoint.html +++ b/docs/classes/ContactPoint.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ContactPointOption.html b/docs/classes/ContactPointOption.html index 7be6d4974..b349531db 100644 --- a/docs/classes/ContactPointOption.html +++ b/docs/classes/ContactPointOption.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Continent.html b/docs/classes/Continent.html index 2160d8486..de86ed3db 100644 --- a/docs/classes/Continent.html +++ b/docs/classes/Continent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ControlAction.html b/docs/classes/ControlAction.html index 88b8a7248..6c2cd2e3d 100644 --- a/docs/classes/ControlAction.html +++ b/docs/classes/ControlAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ConvenienceStore.html b/docs/classes/ConvenienceStore.html index 7317398c3..6b95cfc61 100644 --- a/docs/classes/ConvenienceStore.html +++ b/docs/classes/ConvenienceStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Conversation.html b/docs/classes/Conversation.html index 37ff2195d..7820bb4df 100644 --- a/docs/classes/Conversation.html +++ b/docs/classes/Conversation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CookAction.html b/docs/classes/CookAction.html index fed21234e..3ce816188 100644 --- a/docs/classes/CookAction.html +++ b/docs/classes/CookAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Corporation.html b/docs/classes/Corporation.html index ded587529..b8dec54e1 100644 --- a/docs/classes/Corporation.html +++ b/docs/classes/Corporation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CostManifest.html b/docs/classes/CostManifest.html index 0c87d7f55..e95ce1afc 100644 --- a/docs/classes/CostManifest.html +++ b/docs/classes/CostManifest.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CostProfile.html b/docs/classes/CostProfile.html index 82aa3fab9..f3522f764 100644 --- a/docs/classes/CostProfile.html +++ b/docs/classes/CostProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Country.html b/docs/classes/Country.html index 4c6a0d9ce..a4ed3f073 100644 --- a/docs/classes/Country.html +++ b/docs/classes/Country.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Course.html b/docs/classes/Course.html index 70cd19ef1..df5ddd360 100644 --- a/docs/classes/Course.html +++ b/docs/classes/Course.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CourseInstance.html b/docs/classes/CourseInstance.html index 0809d4779..d16c796dc 100644 --- a/docs/classes/CourseInstance.html +++ b/docs/classes/CourseInstance.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Courthouse.html b/docs/classes/Courthouse.html index 17f65a0ac..8aa682d3b 100644 --- a/docs/classes/Courthouse.html +++ b/docs/classes/Courthouse.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CreateAction.html b/docs/classes/CreateAction.html index 3e355944b..4d9f0a507 100644 --- a/docs/classes/CreateAction.html +++ b/docs/classes/CreateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CreativeWork.html b/docs/classes/CreativeWork.html index ac2492800..d8b4aa61b 100644 --- a/docs/classes/CreativeWork.html +++ b/docs/classes/CreativeWork.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CreativeWorkSeason.html b/docs/classes/CreativeWorkSeason.html index 431a75d54..7dc3d7e40 100644 --- a/docs/classes/CreativeWorkSeason.html +++ b/docs/classes/CreativeWorkSeason.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CreativeWorkSeries.html b/docs/classes/CreativeWorkSeries.html index b0d678948..d0d3911e7 100644 --- a/docs/classes/CreativeWorkSeries.html +++ b/docs/classes/CreativeWorkSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Credential.html b/docs/classes/Credential.html index 882c8777e..a7ad754e3 100644 --- a/docs/classes/Credential.html +++ b/docs/classes/Credential.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialAlignmentObject.html b/docs/classes/CredentialAlignmentObject.html index d0755e58c..84fb335a0 100644 --- a/docs/classes/CredentialAlignmentObject.html +++ b/docs/classes/CredentialAlignmentObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialAssertion.html b/docs/classes/CredentialAssertion.html index fb0c32740..eb74eb2d8 100644 --- a/docs/classes/CredentialAssertion.html +++ b/docs/classes/CredentialAssertion.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialFramework.html b/docs/classes/CredentialFramework.html index b6e4a8cf0..82232a4b2 100644 --- a/docs/classes/CredentialFramework.html +++ b/docs/classes/CredentialFramework.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialOrganization.html b/docs/classes/CredentialOrganization.html index c6948d72a..89f7b07f2 100644 --- a/docs/classes/CredentialOrganization.html +++ b/docs/classes/CredentialOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialPerson.html b/docs/classes/CredentialPerson.html index 22b78b023..46b738b7f 100644 --- a/docs/classes/CredentialPerson.html +++ b/docs/classes/CredentialPerson.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CredentialingAction.html b/docs/classes/CredentialingAction.html index 401426fea..ed8656474 100644 --- a/docs/classes/CredentialingAction.html +++ b/docs/classes/CredentialingAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CreditCard.html b/docs/classes/CreditCard.html index 8ffbe1a97..1b3f7bca7 100644 --- a/docs/classes/CreditCard.html +++ b/docs/classes/CreditCard.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Crematorium.html b/docs/classes/Crematorium.html index aa5acbd5f..b1fe11a5d 100644 --- a/docs/classes/Crematorium.html +++ b/docs/classes/Crematorium.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/CurrencyConversionService.html b/docs/classes/CurrencyConversionService.html index 64aa8809e..15d40260f 100644 --- a/docs/classes/CurrencyConversionService.html +++ b/docs/classes/CurrencyConversionService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DanceEvent.html b/docs/classes/DanceEvent.html index c09e7acbc..688da446a 100644 --- a/docs/classes/DanceEvent.html +++ b/docs/classes/DanceEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DanceGroup.html b/docs/classes/DanceGroup.html index d1b7923f5..8d021178f 100644 --- a/docs/classes/DanceGroup.html +++ b/docs/classes/DanceGroup.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DataCatalog.html b/docs/classes/DataCatalog.html index ad37ad8c9..f88eb5410 100644 --- a/docs/classes/DataCatalog.html +++ b/docs/classes/DataCatalog.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DataDownload.html b/docs/classes/DataDownload.html index d9883716f..8d35cd928 100644 --- a/docs/classes/DataDownload.html +++ b/docs/classes/DataDownload.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DataFeed.html b/docs/classes/DataFeed.html index 8da7c5a65..62ec208ad 100644 --- a/docs/classes/DataFeed.html +++ b/docs/classes/DataFeed.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DataFeedItem.html b/docs/classes/DataFeedItem.html index d15052461..b6b1e9473 100644 --- a/docs/classes/DataFeedItem.html +++ b/docs/classes/DataFeedItem.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Dataset.html b/docs/classes/Dataset.html index 0e7ce0ed0..53154973c 100644 --- a/docs/classes/Dataset.html +++ b/docs/classes/Dataset.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DatedMoneySpecification.html b/docs/classes/DatedMoneySpecification.html index fc7ea95d6..272cc8c2f 100644 --- a/docs/classes/DatedMoneySpecification.html +++ b/docs/classes/DatedMoneySpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DayOfWeek.html b/docs/classes/DayOfWeek.html index 5e6f7e005..c9c4d3001 100644 --- a/docs/classes/DayOfWeek.html +++ b/docs/classes/DayOfWeek.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DaySpa.html b/docs/classes/DaySpa.html index ce575c523..62c60e6e8 100644 --- a/docs/classes/DaySpa.html +++ b/docs/classes/DaySpa.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DeactivateAction.html b/docs/classes/DeactivateAction.html index 4a369606e..39d41ba38 100644 --- a/docs/classes/DeactivateAction.html +++ b/docs/classes/DeactivateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DefenceEstablishment.html b/docs/classes/DefenceEstablishment.html index 8ace0115d..05570f3d3 100644 --- a/docs/classes/DefenceEstablishment.html +++ b/docs/classes/DefenceEstablishment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Degree.html b/docs/classes/Degree.html index ba64a2e37..27a81bf2b 100644 --- a/docs/classes/Degree.html +++ b/docs/classes/Degree.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DeleteAction.html b/docs/classes/DeleteAction.html index 88eae9f8d..ffae84f77 100644 --- a/docs/classes/DeleteAction.html +++ b/docs/classes/DeleteAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DeliveryChargeSpecification.html b/docs/classes/DeliveryChargeSpecification.html index 4621a4d43..2e9f885ca 100644 --- a/docs/classes/DeliveryChargeSpecification.html +++ b/docs/classes/DeliveryChargeSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DeliveryEvent.html b/docs/classes/DeliveryEvent.html index b9bfb3646..0134ac49f 100644 --- a/docs/classes/DeliveryEvent.html +++ b/docs/classes/DeliveryEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DeliveryMethod.html b/docs/classes/DeliveryMethod.html index 423dcf7ff..e5a038949 100644 --- a/docs/classes/DeliveryMethod.html +++ b/docs/classes/DeliveryMethod.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Demand.html b/docs/classes/Demand.html index f26aca88a..fd8d23b4c 100644 --- a/docs/classes/Demand.html +++ b/docs/classes/Demand.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Dentist.html b/docs/classes/Dentist.html index 95e020371..ad96d9128 100644 --- a/docs/classes/Dentist.html +++ b/docs/classes/Dentist.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DepartAction.html b/docs/classes/DepartAction.html index 3e0d26398..d56a183f2 100644 --- a/docs/classes/DepartAction.html +++ b/docs/classes/DepartAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DepartmentStore.html b/docs/classes/DepartmentStore.html index 944d057a7..11791a3ea 100644 --- a/docs/classes/DepartmentStore.html +++ b/docs/classes/DepartmentStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DepositAccount.html b/docs/classes/DepositAccount.html index 0d0595f5c..8058f3778 100644 --- a/docs/classes/DepositAccount.html +++ b/docs/classes/DepositAccount.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DigitalBadge.html b/docs/classes/DigitalBadge.html index 85503f20d..50f5f23ec 100644 --- a/docs/classes/DigitalBadge.html +++ b/docs/classes/DigitalBadge.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DigitalDocument.html b/docs/classes/DigitalDocument.html index 8b316cfb3..d05ee6330 100644 --- a/docs/classes/DigitalDocument.html +++ b/docs/classes/DigitalDocument.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DigitalDocumentPermission.html b/docs/classes/DigitalDocumentPermission.html index e4dcdf328..79296e4e9 100644 --- a/docs/classes/DigitalDocumentPermission.html +++ b/docs/classes/DigitalDocumentPermission.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DigitalDocumentPermissionType.html b/docs/classes/DigitalDocumentPermissionType.html index 1500dd78c..b7e076b93 100644 --- a/docs/classes/DigitalDocumentPermissionType.html +++ b/docs/classes/DigitalDocumentPermissionType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Diploma.html b/docs/classes/Diploma.html index 8158cd684..3bd6f7606 100644 --- a/docs/classes/Diploma.html +++ b/docs/classes/Diploma.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DisagreeAction.html b/docs/classes/DisagreeAction.html index e80ceadec..c3061fecf 100644 --- a/docs/classes/DisagreeAction.html +++ b/docs/classes/DisagreeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DiscoverAction.html b/docs/classes/DiscoverAction.html index 1a93c51af..63118436d 100644 --- a/docs/classes/DiscoverAction.html +++ b/docs/classes/DiscoverAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DiscussionForumPosting.html b/docs/classes/DiscussionForumPosting.html index 548bdc0f7..652790118 100644 --- a/docs/classes/DiscussionForumPosting.html +++ b/docs/classes/DiscussionForumPosting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DislikeAction.html b/docs/classes/DislikeAction.html index 8c13ed4aa..697aeb43b 100644 --- a/docs/classes/DislikeAction.html +++ b/docs/classes/DislikeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Distance.html b/docs/classes/Distance.html index a9174fce5..b719da3d3 100644 --- a/docs/classes/Distance.html +++ b/docs/classes/Distance.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DoctoralDegree.html b/docs/classes/DoctoralDegree.html index c9983e124..ff8c45b1c 100644 --- a/docs/classes/DoctoralDegree.html +++ b/docs/classes/DoctoralDegree.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DonateAction.html b/docs/classes/DonateAction.html index 36e8c07e4..06724ddae 100644 --- a/docs/classes/DonateAction.html +++ b/docs/classes/DonateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DownloadAction.html b/docs/classes/DownloadAction.html index b74aaa545..fb29f9678 100644 --- a/docs/classes/DownloadAction.html +++ b/docs/classes/DownloadAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DrawAction.html b/docs/classes/DrawAction.html index 13c8000cb..230df41bf 100644 --- a/docs/classes/DrawAction.html +++ b/docs/classes/DrawAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DrinkAction.html b/docs/classes/DrinkAction.html index a87f07c01..a35c4f6a9 100644 --- a/docs/classes/DrinkAction.html +++ b/docs/classes/DrinkAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DriveWheelConfigurationValue.html b/docs/classes/DriveWheelConfigurationValue.html index 748cfe658..0316723ce 100644 --- a/docs/classes/DriveWheelConfigurationValue.html +++ b/docs/classes/DriveWheelConfigurationValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DryCleaningOrLaundry.html b/docs/classes/DryCleaningOrLaundry.html index f07be84bf..5ca261ca0 100644 --- a/docs/classes/DryCleaningOrLaundry.html +++ b/docs/classes/DryCleaningOrLaundry.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Duration.html b/docs/classes/Duration.html index 437df0fbf..25f68f148 100644 --- a/docs/classes/Duration.html +++ b/docs/classes/Duration.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/DurationProfile.html b/docs/classes/DurationProfile.html index d4f92e0bc..fdf170ea7 100644 --- a/docs/classes/DurationProfile.html +++ b/docs/classes/DurationProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EarningsProfile.html b/docs/classes/EarningsProfile.html index 5676a0099..e10afee07 100644 --- a/docs/classes/EarningsProfile.html +++ b/docs/classes/EarningsProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EatAction.html b/docs/classes/EatAction.html index 325febbb1..da57f59bc 100644 --- a/docs/classes/EatAction.html +++ b/docs/classes/EatAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Ebac.html b/docs/classes/Ebac.html index e60292221..a2d26c08a 100644 --- a/docs/classes/Ebac.html +++ b/docs/classes/Ebac.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -882,7 +882,7 @@

context

Defined in - src/main/js/cass/org.cassproject.schema.general.js:52 + src/main/js/cass/org.cassproject.schema.general.js:53

diff --git a/docs/classes/EbacContact.html b/docs/classes/EbacContact.html index cb3fb1e09..f37c897a5 100644 --- a/docs/classes/EbacContact.html +++ b/docs/classes/EbacContact.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacContact Class

- Defined in: src/main/js/cass/org.cassproject.schema.ebac.js:197 + Defined in: src/main/js/cass/org.cassproject.schema.ebac.js:212
Module: org.cassproject @@ -902,7 +902,7 @@

displayName

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:234 + src/main/js/cass/org.cassproject.schema.ebac.js:250

@@ -927,7 +927,7 @@

displayNameIv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:227 + src/main/js/cass/org.cassproject.schema.ebac.js:243

@@ -952,7 +952,7 @@

iv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:213 + src/main/js/cass/org.cassproject.schema.ebac.js:229

@@ -977,7 +977,7 @@

pk

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:220 + src/main/js/cass/org.cassproject.schema.ebac.js:236

@@ -1002,7 +1002,7 @@

source

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:248 + src/main/js/cass/org.cassproject.schema.ebac.js:264

@@ -1027,7 +1027,7 @@

sourceIv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:241 + src/main/js/cass/org.cassproject.schema.ebac.js:257

diff --git a/docs/classes/EbacContactGrant.html b/docs/classes/EbacContactGrant.html index 43e18a385..df0c82c55 100644 --- a/docs/classes/EbacContactGrant.html +++ b/docs/classes/EbacContactGrant.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacContactGrant Class

Module: org.cassproject @@ -899,7 +899,7 @@

displayName

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:551 + src/main/js/cass/org.cassproject.schema.ebac.js:587

@@ -924,7 +924,7 @@

pk

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:544 + src/main/js/cass/org.cassproject.schema.ebac.js:580

@@ -949,7 +949,7 @@

responseSignature

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:572 + src/main/js/cass/org.cassproject.schema.ebac.js:608

@@ -975,7 +975,7 @@

responseToken

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:565 + src/main/js/cass/org.cassproject.schema.ebac.js:601

@@ -1000,7 +1000,7 @@

source

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:558 + src/main/js/cass/org.cassproject.schema.ebac.js:594

diff --git a/docs/classes/EbacCredential.html b/docs/classes/EbacCredential.html index 7e11ccc1f..5d3555cd8 100644 --- a/docs/classes/EbacCredential.html +++ b/docs/classes/EbacCredential.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -894,7 +894,7 @@

displayName

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:57 + src/main/js/cass/org.cassproject.schema.ebac.js:58

@@ -919,7 +919,7 @@

displayNameIv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:50 + src/main/js/cass/org.cassproject.schema.ebac.js:51

@@ -944,7 +944,7 @@

iv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:36 + src/main/js/cass/org.cassproject.schema.ebac.js:37

@@ -969,7 +969,7 @@

ppk

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:43 + src/main/js/cass/org.cassproject.schema.ebac.js:44

diff --git a/docs/classes/EbacCredentialCommit.html b/docs/classes/EbacCredentialCommit.html index 5d2f45d0e..a0ea73132 100644 --- a/docs/classes/EbacCredentialCommit.html +++ b/docs/classes/EbacCredentialCommit.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacCredentialCommit Class

Module: org.cassproject @@ -894,7 +894,7 @@

credentials

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:640 + src/main/js/cass/org.cassproject.schema.ebac.js:681

@@ -919,7 +919,7 @@

password

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:625 + src/main/js/cass/org.cassproject.schema.ebac.js:666

@@ -944,7 +944,7 @@

token

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:632 + src/main/js/cass/org.cassproject.schema.ebac.js:673

@@ -970,7 +970,7 @@

username

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:618 + src/main/js/cass/org.cassproject.schema.ebac.js:659

diff --git a/docs/classes/EbacCredentialRequest.html b/docs/classes/EbacCredentialRequest.html index df694997f..2c92073d0 100644 --- a/docs/classes/EbacCredentialRequest.html +++ b/docs/classes/EbacCredentialRequest.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacCredentialRequest Class

Module: org.cassproject @@ -885,7 +885,7 @@

password

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:107 + src/main/js/cass/org.cassproject.schema.ebac.js:113

@@ -910,7 +910,7 @@

username

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:100 + src/main/js/cass/org.cassproject.schema.ebac.js:106

diff --git a/docs/classes/EbacCredentials.html b/docs/classes/EbacCredentials.html index a298c166b..a3adf306b 100644 --- a/docs/classes/EbacCredentials.html +++ b/docs/classes/EbacCredentials.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacCredentials Class

Module: org.cassproject @@ -893,7 +893,7 @@

contacts

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:170 + src/main/js/cass/org.cassproject.schema.ebac.js:181

@@ -918,7 +918,7 @@

credentials

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:163 + src/main/js/cass/org.cassproject.schema.ebac.js:174

@@ -943,7 +943,7 @@

pad

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:149 + src/main/js/cass/org.cassproject.schema.ebac.js:160

@@ -968,7 +968,7 @@

token

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:156 + src/main/js/cass/org.cassproject.schema.ebac.js:167

diff --git a/docs/classes/EbacEncryptedSecret.html b/docs/classes/EbacEncryptedSecret.html index 70f5dced6..53b33b1ea 100644 --- a/docs/classes/EbacEncryptedSecret.html +++ b/docs/classes/EbacEncryptedSecret.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacEncryptedSecret Class

Module: org.cassproject @@ -927,7 +927,7 @@

fromEncryptableJson

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:326 + src/main/js/cass/org.cassproject.schema.ebac.js:347

@@ -987,7 +987,7 @@

toEncryptableJson

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:345 + src/main/js/cass/org.cassproject.schema.ebac.js:366

@@ -1028,7 +1028,7 @@

field

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:318 + src/main/js/cass/org.cassproject.schema.ebac.js:339

@@ -1054,7 +1054,7 @@

id

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:303 + src/main/js/cass/org.cassproject.schema.ebac.js:324

@@ -1080,7 +1080,7 @@

iv

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:296 + src/main/js/cass/org.cassproject.schema.ebac.js:317

@@ -1105,7 +1105,7 @@

secret

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:311 + src/main/js/cass/org.cassproject.schema.ebac.js:332

diff --git a/docs/classes/EbacEncryptedValue.html b/docs/classes/EbacEncryptedValue.html index dc95db82c..7329a8b22 100644 --- a/docs/classes/EbacEncryptedValue.html +++ b/docs/classes/EbacEncryptedValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacEncryptedValue Class

Module: org.cassproject @@ -892,7 +892,7 @@

encryptedType

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:463 + src/main/js/cass/org.cassproject.schema.ebac.js:494

@@ -918,7 +918,7 @@

name

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:478 + src/main/js/cass/org.cassproject.schema.ebac.js:509

@@ -944,7 +944,7 @@

payload

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:471 + src/main/js/cass/org.cassproject.schema.ebac.js:502

@@ -969,7 +969,7 @@

secret

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:486 + src/main/js/cass/org.cassproject.schema.ebac.js:517

diff --git a/docs/classes/EbacSignature.html b/docs/classes/EbacSignature.html index 7cd5dbcfa..9e184b24c 100644 --- a/docs/classes/EbacSignature.html +++ b/docs/classes/EbacSignature.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EbacSignature Class

Module: org.cassproject @@ -893,7 +893,7 @@

expiry

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:403 + src/main/js/cass/org.cassproject.schema.ebac.js:429

@@ -919,7 +919,7 @@

owner

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:396 + src/main/js/cass/org.cassproject.schema.ebac.js:422

@@ -944,7 +944,7 @@

server

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:420 + src/main/js/cass/org.cassproject.schema.ebac.js:446

@@ -970,7 +970,7 @@

signature

Defined in - src/main/js/cass/org.cassproject.schema.ebac.js:411 + src/main/js/cass/org.cassproject.schema.ebac.js:437

diff --git a/docs/classes/EcAes.html b/docs/classes/EcAes.html index 03a25747d..84345a5a8 100644 --- a/docs/classes/EcAes.html +++ b/docs/classes/EcAes.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcAesCtr.html b/docs/classes/EcAesCtr.html index ecadd2c12..d0e06da27 100644 --- a/docs/classes/EcAesCtr.html +++ b/docs/classes/EcAesCtr.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcAesCtrAsync.html b/docs/classes/EcAesCtrAsync.html index 8a4f71c1d..5cf5e107a 100644 --- a/docs/classes/EcAesCtrAsync.html +++ b/docs/classes/EcAesCtrAsync.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcAesCtrAsyncWorker.html b/docs/classes/EcAesCtrAsyncWorker.html index e3d499e33..b6a4e3545 100644 --- a/docs/classes/EcAesCtrAsyncWorker.html +++ b/docs/classes/EcAesCtrAsyncWorker.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcAlignment.html b/docs/classes/EcAlignment.html index c5b84bfa4..7f53ccea7 100644 --- a/docs/classes/EcAlignment.html +++ b/docs/classes/EcAlignment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcArray.html b/docs/classes/EcArray.html index 136fa2530..df69abc8f 100644 --- a/docs/classes/EcArray.html +++ b/docs/classes/EcArray.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcAsyncHelper.html b/docs/classes/EcAsyncHelper.html index 069bd3f73..958dc9f48 100644 --- a/docs/classes/EcAsyncHelper.html +++ b/docs/classes/EcAsyncHelper.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcCompetency.html b/docs/classes/EcCompetency.html index a28d12114..99bd9f4a6 100644 --- a/docs/classes/EcCompetency.html +++ b/docs/classes/EcCompetency.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcContact.html b/docs/classes/EcContact.html index 6a1aebfb1..cb84020c0 100644 --- a/docs/classes/EcContact.html +++ b/docs/classes/EcContact.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcCrypto.html b/docs/classes/EcCrypto.html index 8d46eb278..d4366091a 100644 --- a/docs/classes/EcCrypto.html +++ b/docs/classes/EcCrypto.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcDirectedGraph.html b/docs/classes/EcDirectedGraph.html index 63b66403a..00b2d6d12 100644 --- a/docs/classes/EcDirectedGraph.html +++ b/docs/classes/EcDirectedGraph.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcEncryptedValue.html b/docs/classes/EcEncryptedValue.html index 6d7e50cca..2bec0de84 100644 --- a/docs/classes/EcEncryptedValue.html +++ b/docs/classes/EcEncryptedValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcFile.html b/docs/classes/EcFile.html index e89992d50..40976ba5b 100644 --- a/docs/classes/EcFile.html +++ b/docs/classes/EcFile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

EcFile Class

Module: com.eduworks.ec @@ -911,7 +911,7 @@

_delete

Defined in - src/main/js/cass/ebac.repository.js:2458 + src/main/js/cass/ebac.repository.js:2477

@@ -986,7 +986,7 @@

create

Defined in - src/main/js/cass/ebac.repository.js:2332 + src/main/js/cass/ebac.repository.js:2351

@@ -1078,7 +1078,7 @@

get

Defined in - src/main/js/cass/ebac.repository.js:2354 + src/main/js/cass/ebac.repository.js:2373

@@ -1158,7 +1158,7 @@

save

Defined in - src/main/js/cass/ebac.repository.js:2437 + src/main/js/cass/ebac.repository.js:2456

@@ -1242,7 +1242,7 @@

search

Defined in - src/main/js/cass/ebac.repository.js:2388 + src/main/js/cass/ebac.repository.js:2407

diff --git a/docs/classes/EcFramework.html b/docs/classes/EcFramework.html index c5ef23e22..15f635794 100644 --- a/docs/classes/EcFramework.html +++ b/docs/classes/EcFramework.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcFrameworkGraph.html b/docs/classes/EcFrameworkGraph.html index d5d8f6ae9..ac5633b3e 100644 --- a/docs/classes/EcFrameworkGraph.html +++ b/docs/classes/EcFrameworkGraph.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcIdentity.html b/docs/classes/EcIdentity.html index dfeaef9b3..d3d27845b 100644 --- a/docs/classes/EcIdentity.html +++ b/docs/classes/EcIdentity.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcIdentityManager.html b/docs/classes/EcIdentityManager.html index 5880ec817..40395e1bd 100644 --- a/docs/classes/EcIdentityManager.html +++ b/docs/classes/EcIdentityManager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcLevel.html b/docs/classes/EcLevel.html index f22602d1f..101492640 100644 --- a/docs/classes/EcLevel.html +++ b/docs/classes/EcLevel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcLinkedData.html b/docs/classes/EcLinkedData.html index ead4b1bba..1e551c09f 100644 --- a/docs/classes/EcLinkedData.html +++ b/docs/classes/EcLinkedData.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcModal.html b/docs/classes/EcModal.html index 6629a8ed4..c1197e09b 100644 --- a/docs/classes/EcModal.html +++ b/docs/classes/EcModal.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcObject.html b/docs/classes/EcObject.html index c060223d1..a0eaaa642 100644 --- a/docs/classes/EcObject.html +++ b/docs/classes/EcObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcOverlay.html b/docs/classes/EcOverlay.html index 536aec7fb..48d08da8c 100644 --- a/docs/classes/EcOverlay.html +++ b/docs/classes/EcOverlay.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcPk.html b/docs/classes/EcPk.html index 7c6585a11..f12de5fdb 100644 --- a/docs/classes/EcPk.html +++ b/docs/classes/EcPk.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcPpk.html b/docs/classes/EcPpk.html index fe8a43db3..a4d043b26 100644 --- a/docs/classes/EcPpk.html +++ b/docs/classes/EcPpk.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRemote.html b/docs/classes/EcRemote.html index 09cba8433..b39a4f8c4 100644 --- a/docs/classes/EcRemote.html +++ b/docs/classes/EcRemote.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRemoteIdentityManager.html b/docs/classes/EcRemoteIdentityManager.html index de0b2d22a..72d178040 100644 --- a/docs/classes/EcRemoteIdentityManager.html +++ b/docs/classes/EcRemoteIdentityManager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRemoteLinkedData.html b/docs/classes/EcRemoteLinkedData.html index 89b57b1ce..114810963 100644 --- a/docs/classes/EcRemoteLinkedData.html +++ b/docs/classes/EcRemoteLinkedData.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

EcRemoteLinkedData Class

Module: org.cassproject @@ -1061,7 +1061,7 @@

addOwner

Defined in - src/main/js/cass/org.cassproject.schema.general.js:376 + src/main/js/cass/org.cassproject.schema.general.js:377

@@ -1116,7 +1116,7 @@

addReader

Defined in - src/main/js/cass/org.cassproject.schema.general.js:409 + src/main/js/cass/org.cassproject.schema.general.js:410

@@ -1174,7 +1174,7 @@

assignId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:194 + src/main/js/cass/org.cassproject.schema.general.js:195

@@ -1243,7 +1243,7 @@

assignId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:211 + src/main/js/cass/org.cassproject.schema.general.js:212

@@ -1312,7 +1312,7 @@

assignId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:175 + src/main/js/cass/org.cassproject.schema.general.js:176

@@ -1424,7 +1424,7 @@

canEdit

Defined in - src/main/js/cass/org.cassproject.schema.general.js:266 + src/main/js/cass/org.cassproject.schema.general.js:267

@@ -1492,7 +1492,7 @@

canEdit

Defined in - src/main/js/cass/org.cassproject.schema.general.js:280 + src/main/js/cass/org.cassproject.schema.general.js:281

@@ -1655,7 +1655,7 @@

generateId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:141 + src/main/js/cass/org.cassproject.schema.general.js:142

@@ -1710,7 +1710,7 @@

generateShortId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:159 + src/main/js/cass/org.cassproject.schema.general.js:160

@@ -1804,7 +1804,7 @@

getGuid

Defined in - src/main/js/cass/org.cassproject.schema.general.js:502 + src/main/js/cass/org.cassproject.schema.general.js:503

@@ -1847,7 +1847,7 @@

getSearchStringByType

Defined in - src/main/js/cass/org.cassproject.schema.general.js:524 + src/main/js/cass/org.cassproject.schema.general.js:525

@@ -1890,7 +1890,7 @@

getServerBaseUrl

Defined in - src/main/js/cass/org.cassproject.schema.general.js:513 + src/main/js/cass/org.cassproject.schema.general.js:514

@@ -1930,7 +1930,7 @@

getTimestamp

Defined in - src/main/js/cass/org.cassproject.schema.general.js:468 + src/main/js/cass/org.cassproject.schema.general.js:469

@@ -2011,7 +2011,7 @@

hasOwner

Defined in - src/main/js/cass/org.cassproject.schema.general.js:248 + src/main/js/cass/org.cassproject.schema.general.js:249

@@ -2079,7 +2079,7 @@

hasOwner

Defined in - src/main/js/cass/org.cassproject.schema.general.js:230 + src/main/js/cass/org.cassproject.schema.general.js:231

@@ -2141,7 +2141,7 @@

invalid

Defined in - src/main/js/cass/org.cassproject.schema.general.js:437 + src/main/js/cass/org.cassproject.schema.general.js:438

@@ -2318,7 +2318,7 @@

isId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:481 + src/main/js/cass/org.cassproject.schema.general.js:482

@@ -2381,7 +2381,7 @@

removeOwner

Defined in - src/main/js/cass/org.cassproject.schema.general.js:393 + src/main/js/cass/org.cassproject.schema.general.js:394

@@ -2436,7 +2436,7 @@

removeReader

Defined in - src/main/js/cass/org.cassproject.schema.general.js:423 + src/main/js/cass/org.cassproject.schema.general.js:424

@@ -2553,7 +2553,7 @@

shortId

Defined in - src/main/js/cass/org.cassproject.schema.general.js:492 + src/main/js/cass/org.cassproject.schema.general.js:493

@@ -2600,7 +2600,7 @@

signWith

Defined in - src/main/js/cass/org.cassproject.schema.general.js:321 + src/main/js/cass/org.cassproject.schema.general.js:322

@@ -2693,7 +2693,7 @@

toSignableJson

Defined in - src/main/js/cass/org.cassproject.schema.general.js:299 + src/main/js/cass/org.cassproject.schema.general.js:300

@@ -2743,7 +2743,7 @@

trimVersionFromUrl

Defined in - src/main/js/cass/org.cassproject.schema.general.js:120 + src/main/js/cass/org.cassproject.schema.general.js:121

@@ -2800,7 +2800,7 @@

updateTimestamp

Defined in - src/main/js/cass/org.cassproject.schema.general.js:454 + src/main/js/cass/org.cassproject.schema.general.js:455

@@ -2864,7 +2864,7 @@

verify

Defined in - src/main/js/cass/org.cassproject.schema.general.js:340 + src/main/js/cass/org.cassproject.schema.general.js:341

@@ -2929,7 +2929,7 @@

id

Defined in - src/main/js/cass/org.cassproject.schema.general.js:101 + src/main/js/cass/org.cassproject.schema.general.js:102

@@ -2954,7 +2954,7 @@

owner

Defined in - src/main/js/cass/org.cassproject.schema.general.js:81 + src/main/js/cass/org.cassproject.schema.general.js:82

@@ -2982,7 +2982,7 @@

reader

Defined in - src/main/js/cass/org.cassproject.schema.general.js:111 + src/main/js/cass/org.cassproject.schema.general.js:112

@@ -3009,7 +3009,7 @@

signature

Defined in - src/main/js/cass/org.cassproject.schema.general.js:91 + src/main/js/cass/org.cassproject.schema.general.js:92

diff --git a/docs/classes/EcRepository.html b/docs/classes/EcRepository.html index 49027e23f..229542e44 100644 --- a/docs/classes/EcRepository.html +++ b/docs/classes/EcRepository.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -1016,7 +1016,7 @@

_delete

Defined in - src/main/js/cass/ebac.repository.js:1454 + src/main/js/cass/ebac.repository.js:1472

@@ -1103,7 +1103,7 @@

_save

Defined in - src/main/js/cass/ebac.repository.js:1282 + src/main/js/cass/ebac.repository.js:1294

@@ -1190,7 +1190,7 @@

_saveWithoutSigning

Defined in - src/main/js/cass/ebac.repository.js:1403 + src/main/js/cass/ebac.repository.js:1415

@@ -1263,7 +1263,7 @@

autoDetectRepository

Defined in - src/main/js/cass/ebac.repository.js:1960 + src/main/js/cass/ebac.repository.js:1979

@@ -1295,7 +1295,7 @@

autoDetectRepository

Defined in - src/main/js/cass/ebac.repository.js:2034 + src/main/js/cass/ebac.repository.js:2053

@@ -1337,7 +1337,7 @@

autoDetectRepositoryActual

Defined in - src/main/js/cass/ebac.repository.js:2151 + src/main/js/cass/ebac.repository.js:2170

@@ -1404,7 +1404,7 @@

autoDetectRepositoryAsync

Defined in - src/main/js/cass/ebac.repository.js:2105 + src/main/js/cass/ebac.repository.js:2124

@@ -1473,7 +1473,7 @@

backup

Defined in - src/main/js/cass/ebac.repository.js:2214 + src/main/js/cass/ebac.repository.js:2233

@@ -1556,7 +1556,7 @@

DELETE

Defined in - src/main/js/cass/ebac.repository.js:1472 + src/main/js/cass/ebac.repository.js:1490

@@ -1643,7 +1643,7 @@

DELETE

Defined in - src/main/js/cass/ebac.repository.js:1525 + src/main/js/cass/ebac.repository.js:1544

@@ -1727,7 +1727,7 @@

escapeSearch

Defined in - src/main/js/cass/ebac.repository.js:1213 + src/main/js/cass/ebac.repository.js:1225

@@ -1793,7 +1793,7 @@

fetchServerAdminKeys

Defined in - src/main/js/cass/ebac.repository.js:2287 + src/main/js/cass/ebac.repository.js:2306

@@ -1950,7 +1950,7 @@

getBlocking

Defined in - src/main/js/cass/ebac.repository.js:1148 + src/main/js/cass/ebac.repository.js:1159

@@ -2024,7 +2024,7 @@

handleSearchResults

Defined in - src/main/js/cass/ebac.repository.js:2250 + src/main/js/cass/ebac.repository.js:2269

@@ -2116,7 +2116,7 @@

listTypes

Defined in - src/main/js/cass/ebac.repository.js:2194 + src/main/js/cass/ebac.repository.js:2213

@@ -2191,7 +2191,7 @@

multiget

Defined in - src/main/js/cass/ebac.repository.js:1657 + src/main/js/cass/ebac.repository.js:1676

@@ -2289,7 +2289,7 @@

multiput

Defined in - src/main/js/cass/ebac.repository.js:1322 + src/main/js/cass/ebac.repository.js:1334

@@ -2372,7 +2372,7 @@

precache

Defined in - src/main/js/cass/ebac.repository.js:1574 + src/main/js/cass/ebac.repository.js:1593

@@ -2443,7 +2443,7 @@

precachePost

Defined in - src/main/js/cass/ebac.repository.js:1619 + src/main/js/cass/ebac.repository.js:1638

@@ -2517,7 +2517,7 @@

restoreBackup

Defined in - src/main/js/cass/ebac.repository.js:2226 + src/main/js/cass/ebac.repository.js:2245

@@ -2600,7 +2600,7 @@

save

Defined in - src/main/js/cass/ebac.repository.js:1265 + src/main/js/cass/ebac.repository.js:1277

@@ -2686,7 +2686,7 @@

save

Defined in - src/main/js/cass/ebac.repository.js:1248 + src/main/js/cass/ebac.repository.js:1260

@@ -2768,7 +2768,7 @@

search

Defined in - src/main/js/cass/ebac.repository.js:1721 + src/main/js/cass/ebac.repository.js:1740

@@ -2841,7 +2841,7 @@

search

Defined in - src/main/js/cass/ebac.repository.js:1703 + src/main/js/cass/ebac.repository.js:1722

@@ -2938,7 +2938,7 @@

searchWithParams

Defined in - src/main/js/cass/ebac.repository.js:1845 + src/main/js/cass/ebac.repository.js:1864

@@ -3026,7 +3026,7 @@

searchWithParams

Defined in - src/main/js/cass/ebac.repository.js:1735 + src/main/js/cass/ebac.repository.js:1754

@@ -3135,7 +3135,7 @@

wipe

Defined in - src/main/js/cass/ebac.repository.js:2238 + src/main/js/cass/ebac.repository.js:2257

diff --git a/docs/classes/EcRollupRule.html b/docs/classes/EcRollupRule.html index 5aec27acb..39d00a6b2 100644 --- a/docs/classes/EcRollupRule.html +++ b/docs/classes/EcRollupRule.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRsaOaep.html b/docs/classes/EcRsaOaep.html index 570982b86..6960ad4ac 100644 --- a/docs/classes/EcRsaOaep.html +++ b/docs/classes/EcRsaOaep.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRsaOaepAsync.html b/docs/classes/EcRsaOaepAsync.html index b64c1d7dd..d3d18d78c 100644 --- a/docs/classes/EcRsaOaepAsync.html +++ b/docs/classes/EcRsaOaepAsync.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcRsaOaepAsyncWorker.html b/docs/classes/EcRsaOaepAsyncWorker.html index a59ba7f7c..01849901e 100644 --- a/docs/classes/EcRsaOaepAsyncWorker.html +++ b/docs/classes/EcRsaOaepAsyncWorker.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcScreen.html b/docs/classes/EcScreen.html index 05defcc66..c200f05ef 100644 --- a/docs/classes/EcScreen.html +++ b/docs/classes/EcScreen.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EcView.html b/docs/classes/EcView.html index 687abe07a..23dbcfbbb 100644 --- a/docs/classes/EcView.html +++ b/docs/classes/EcView.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EducationEvent.html b/docs/classes/EducationEvent.html index 7bde6c44b..910d7d747 100644 --- a/docs/classes/EducationEvent.html +++ b/docs/classes/EducationEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EducationalAudience.html b/docs/classes/EducationalAudience.html index 307b5c95c..e71f2f502 100644 --- a/docs/classes/EducationalAudience.html +++ b/docs/classes/EducationalAudience.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EducationalOrganization.html b/docs/classes/EducationalOrganization.html index e4e209e16..0352e91c7 100644 --- a/docs/classes/EducationalOrganization.html +++ b/docs/classes/EducationalOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Electrician.html b/docs/classes/Electrician.html index cd9580e3d..89dbd9bb4 100644 --- a/docs/classes/Electrician.html +++ b/docs/classes/Electrician.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ElectronicsStore.html b/docs/classes/ElectronicsStore.html index 85f708d8c..9fe17ebcb 100644 --- a/docs/classes/ElectronicsStore.html +++ b/docs/classes/ElectronicsStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ElementarySchool.html b/docs/classes/ElementarySchool.html index e9e856d01..a7ed4cee3 100644 --- a/docs/classes/ElementarySchool.html +++ b/docs/classes/ElementarySchool.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EmailMessage.html b/docs/classes/EmailMessage.html index 1a81da2d5..88e77097d 100644 --- a/docs/classes/EmailMessage.html +++ b/docs/classes/EmailMessage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Embassy.html b/docs/classes/Embassy.html index 1900e4910..80017e92b 100644 --- a/docs/classes/Embassy.html +++ b/docs/classes/Embassy.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EmergencyService.html b/docs/classes/EmergencyService.html index e2ccf628e..343d954ce 100644 --- a/docs/classes/EmergencyService.html +++ b/docs/classes/EmergencyService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EmployeeRole.html b/docs/classes/EmployeeRole.html index d532bb829..82fceeb13 100644 --- a/docs/classes/EmployeeRole.html +++ b/docs/classes/EmployeeRole.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EmploymentAgency.html b/docs/classes/EmploymentAgency.html index 01778590b..30bb8a7b9 100644 --- a/docs/classes/EmploymentAgency.html +++ b/docs/classes/EmploymentAgency.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EmploymentOutcomeProfile.html b/docs/classes/EmploymentOutcomeProfile.html index 8af76c03e..871567b90 100644 --- a/docs/classes/EmploymentOutcomeProfile.html +++ b/docs/classes/EmploymentOutcomeProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EndorseAction.html b/docs/classes/EndorseAction.html index d86eb8926..70702fb53 100644 --- a/docs/classes/EndorseAction.html +++ b/docs/classes/EndorseAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Energy.html b/docs/classes/Energy.html index 34b539760..46d300122 100644 --- a/docs/classes/Energy.html +++ b/docs/classes/Energy.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EngineSpecification.html b/docs/classes/EngineSpecification.html index 8d7640a7b..b0deb2a56 100644 --- a/docs/classes/EngineSpecification.html +++ b/docs/classes/EngineSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EntertainmentBusiness.html b/docs/classes/EntertainmentBusiness.html index d1bf1775b..adde20eee 100644 --- a/docs/classes/EntertainmentBusiness.html +++ b/docs/classes/EntertainmentBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EntryPoint.html b/docs/classes/EntryPoint.html index 42bfb9c58..da6036efd 100644 --- a/docs/classes/EntryPoint.html +++ b/docs/classes/EntryPoint.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Enumeration.html b/docs/classes/Enumeration.html index d69f9f170..4b052cc9c 100644 --- a/docs/classes/Enumeration.html +++ b/docs/classes/Enumeration.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Episode.html b/docs/classes/Episode.html index d79fea0fd..502cc27b2 100644 --- a/docs/classes/Episode.html +++ b/docs/classes/Episode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Event.html b/docs/classes/Event.html index 1b7f48f9d..aee0d3bc6 100644 --- a/docs/classes/Event.html +++ b/docs/classes/Event.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EventReservation.html b/docs/classes/EventReservation.html index 126bd7398..f1b0ff280 100644 --- a/docs/classes/EventReservation.html +++ b/docs/classes/EventReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EventStatusType.html b/docs/classes/EventStatusType.html index ce64fdfb3..68fbd21fc 100644 --- a/docs/classes/EventStatusType.html +++ b/docs/classes/EventStatusType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/EventVenue.html b/docs/classes/EventVenue.html index dc382ef10..98f51cc30 100644 --- a/docs/classes/EventVenue.html +++ b/docs/classes/EventVenue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ExerciseAction.html b/docs/classes/ExerciseAction.html index 3cab4dc10..cf397131d 100644 --- a/docs/classes/ExerciseAction.html +++ b/docs/classes/ExerciseAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ExerciseGym.html b/docs/classes/ExerciseGym.html index 71243eeb6..5e2bacae7 100644 --- a/docs/classes/ExerciseGym.html +++ b/docs/classes/ExerciseGym.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ExhibitionEvent.html b/docs/classes/ExhibitionEvent.html index 82abf0c53..2fa303228 100644 --- a/docs/classes/ExhibitionEvent.html +++ b/docs/classes/ExhibitionEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Exporter.html b/docs/classes/Exporter.html index e5ccca218..63dd609a3 100644 --- a/docs/classes/Exporter.html +++ b/docs/classes/Exporter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FastFoodRestaurant.html b/docs/classes/FastFoodRestaurant.html index 9182d810a..e53f45e13 100644 --- a/docs/classes/FastFoodRestaurant.html +++ b/docs/classes/FastFoodRestaurant.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Festival.html b/docs/classes/Festival.html index 2e836bec9..69633ea37 100644 --- a/docs/classes/Festival.html +++ b/docs/classes/Festival.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FilmAction.html b/docs/classes/FilmAction.html index d4b61d947..c28a1dc87 100644 --- a/docs/classes/FilmAction.html +++ b/docs/classes/FilmAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FinancialAlignmentObject.html b/docs/classes/FinancialAlignmentObject.html index 1a4633428..1b62415df 100644 --- a/docs/classes/FinancialAlignmentObject.html +++ b/docs/classes/FinancialAlignmentObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FinancialAssistanceProfile.html b/docs/classes/FinancialAssistanceProfile.html index 4b2027723..a3f8d1240 100644 --- a/docs/classes/FinancialAssistanceProfile.html +++ b/docs/classes/FinancialAssistanceProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FinancialProduct.html b/docs/classes/FinancialProduct.html index 81dbc8b61..29e9db90c 100644 --- a/docs/classes/FinancialProduct.html +++ b/docs/classes/FinancialProduct.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FinancialService.html b/docs/classes/FinancialService.html index f34fdc648..cfcc02bfe 100644 --- a/docs/classes/FinancialService.html +++ b/docs/classes/FinancialService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FindAction.html b/docs/classes/FindAction.html index deb2d6eb8..2c4664806 100644 --- a/docs/classes/FindAction.html +++ b/docs/classes/FindAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FireStation.html b/docs/classes/FireStation.html index 531099aed..b73a8c59c 100644 --- a/docs/classes/FireStation.html +++ b/docs/classes/FireStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Flight.html b/docs/classes/Flight.html index fc54a3a1f..23d3a711d 100644 --- a/docs/classes/Flight.html +++ b/docs/classes/Flight.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FlightReservation.html b/docs/classes/FlightReservation.html index aa68a7962..a0a89e273 100644 --- a/docs/classes/FlightReservation.html +++ b/docs/classes/FlightReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Florist.html b/docs/classes/Florist.html index aa11dfc26..ac6e14355 100644 --- a/docs/classes/Florist.html +++ b/docs/classes/Florist.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FollowAction.html b/docs/classes/FollowAction.html index 6a9d508ef..79dfc877b 100644 --- a/docs/classes/FollowAction.html +++ b/docs/classes/FollowAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FoodEstablishment.html b/docs/classes/FoodEstablishment.html index caec072ec..160867ea3 100644 --- a/docs/classes/FoodEstablishment.html +++ b/docs/classes/FoodEstablishment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FoodEstablishmentReservation.html b/docs/classes/FoodEstablishmentReservation.html index 722148546..1ededac10 100644 --- a/docs/classes/FoodEstablishmentReservation.html +++ b/docs/classes/FoodEstablishmentReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FoodEvent.html b/docs/classes/FoodEvent.html index fc1c1ae35..f2dc0e667 100644 --- a/docs/classes/FoodEvent.html +++ b/docs/classes/FoodEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/FoodService.html b/docs/classes/FoodService.html index f2642b255..6e921f392 100644 --- a/docs/classes/FoodService.html +++ b/docs/classes/FoodService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Framework.html b/docs/classes/Framework.html index 637ff1c8d..3aac4f323 100644 --- a/docs/classes/Framework.html +++ b/docs/classes/Framework.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

Framework Class

Module: org.cassproject @@ -2051,7 +2051,7 @@

competency

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:247 + src/main/js/cass/org.cassproject.schema.cass.js:263

@@ -2951,7 +2951,7 @@

level

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:261 + src/main/js/cass/org.cassproject.schema.cass.js:277

@@ -3376,7 +3376,7 @@

relation

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:254 + src/main/js/cass/org.cassproject.schema.cass.js:270

@@ -3476,7 +3476,7 @@

rollupRule

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:268 + src/main/js/cass/org.cassproject.schema.cass.js:284

diff --git a/docs/classes/FrameworkImport.html b/docs/classes/FrameworkImport.html index 9dc702eaa..a3afec7ae 100644 --- a/docs/classes/FrameworkImport.html +++ b/docs/classes/FrameworkImport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -1057,7 +1057,7 @@

importCompetencies

Defined in - src/main/js/cass/cass.import.js:966 + src/main/js/cass/cass.import.js:984

diff --git a/docs/classes/FurnitureStore.html b/docs/classes/FurnitureStore.html index 26196e228..a7826ee31 100644 --- a/docs/classes/FurnitureStore.html +++ b/docs/classes/FurnitureStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Game.html b/docs/classes/Game.html index 2be7dfdde..06ca17254 100644 --- a/docs/classes/Game.html +++ b/docs/classes/Game.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GamePlayMode.html b/docs/classes/GamePlayMode.html index 6c7a0d74b..9fa887a90 100644 --- a/docs/classes/GamePlayMode.html +++ b/docs/classes/GamePlayMode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GameServer.html b/docs/classes/GameServer.html index fc21fed41..b76f89321 100644 --- a/docs/classes/GameServer.html +++ b/docs/classes/GameServer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GameServerStatus.html b/docs/classes/GameServerStatus.html index 505603ec0..47d5a0b79 100644 --- a/docs/classes/GameServerStatus.html +++ b/docs/classes/GameServerStatus.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GardenStore.html b/docs/classes/GardenStore.html index 01762fafd..a5d68ee7a 100644 --- a/docs/classes/GardenStore.html +++ b/docs/classes/GardenStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GasStation.html b/docs/classes/GasStation.html index 9aac244de..b637a4523 100644 --- a/docs/classes/GasStation.html +++ b/docs/classes/GasStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GatedResidenceCommunity.html b/docs/classes/GatedResidenceCommunity.html index 83631a221..01681d3f3 100644 --- a/docs/classes/GatedResidenceCommunity.html +++ b/docs/classes/GatedResidenceCommunity.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GenderType.html b/docs/classes/GenderType.html index 90fbacd49..545144352 100644 --- a/docs/classes/GenderType.html +++ b/docs/classes/GenderType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/General.html b/docs/classes/General.html index 9635008aa..e1cf64d79 100644 --- a/docs/classes/General.html +++ b/docs/classes/General.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeneralContractor.html b/docs/classes/GeneralContractor.html index a3112123e..f5c7a4eda 100644 --- a/docs/classes/GeneralContractor.html +++ b/docs/classes/GeneralContractor.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeneralEducationDevelopment.html b/docs/classes/GeneralEducationDevelopment.html index a6f1a9344..c330309c3 100644 --- a/docs/classes/GeneralEducationDevelopment.html +++ b/docs/classes/GeneralEducationDevelopment.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeneralFile.html b/docs/classes/GeneralFile.html index 2c3aad41a..9c2175d87 100644 --- a/docs/classes/GeneralFile.html +++ b/docs/classes/GeneralFile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeoCircle.html b/docs/classes/GeoCircle.html index 4f4232686..be7a85d86 100644 --- a/docs/classes/GeoCircle.html +++ b/docs/classes/GeoCircle.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeoCoordinates.html b/docs/classes/GeoCoordinates.html index 04939b168..e4cade8a0 100644 --- a/docs/classes/GeoCoordinates.html +++ b/docs/classes/GeoCoordinates.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GeoShape.html b/docs/classes/GeoShape.html index 60d876cef..ab0461349 100644 --- a/docs/classes/GeoShape.html +++ b/docs/classes/GeoShape.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GiveAction.html b/docs/classes/GiveAction.html index 0b929b6f4..2646871f5 100644 --- a/docs/classes/GiveAction.html +++ b/docs/classes/GiveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GolfCourse.html b/docs/classes/GolfCourse.html index bf6f11186..c999a4e38 100644 --- a/docs/classes/GolfCourse.html +++ b/docs/classes/GolfCourse.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GovernmentBuilding.html b/docs/classes/GovernmentBuilding.html index fae69273b..30140abcc 100644 --- a/docs/classes/GovernmentBuilding.html +++ b/docs/classes/GovernmentBuilding.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GovernmentOffice.html b/docs/classes/GovernmentOffice.html index e479f6c1b..cd5ddbc06 100644 --- a/docs/classes/GovernmentOffice.html +++ b/docs/classes/GovernmentOffice.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GovernmentOrganization.html b/docs/classes/GovernmentOrganization.html index e47ed34cb..a9c5ab85e 100644 --- a/docs/classes/GovernmentOrganization.html +++ b/docs/classes/GovernmentOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GovernmentPermit.html b/docs/classes/GovernmentPermit.html index 422dd71dd..ba89d632f 100644 --- a/docs/classes/GovernmentPermit.html +++ b/docs/classes/GovernmentPermit.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GovernmentService.html b/docs/classes/GovernmentService.html index fc70f8ef7..12abb882c 100644 --- a/docs/classes/GovernmentService.html +++ b/docs/classes/GovernmentService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Graph.html b/docs/classes/Graph.html index e58c42eff..1efc82116 100644 --- a/docs/classes/Graph.html +++ b/docs/classes/Graph.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/GroceryStore.html b/docs/classes/GroceryStore.html index 4925cbbbc..02f257330 100644 --- a/docs/classes/GroceryStore.html +++ b/docs/classes/GroceryStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HVACBusiness.html b/docs/classes/HVACBusiness.html index 6f9809a30..a3bd5c789 100644 --- a/docs/classes/HVACBusiness.html +++ b/docs/classes/HVACBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HairSalon.html b/docs/classes/HairSalon.html index 16464581a..c6a78f7c1 100644 --- a/docs/classes/HairSalon.html +++ b/docs/classes/HairSalon.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HardwareStore.html b/docs/classes/HardwareStore.html index 6d42d6e61..9202cf303 100644 --- a/docs/classes/HardwareStore.html +++ b/docs/classes/HardwareStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HealthAndBeautyBusiness.html b/docs/classes/HealthAndBeautyBusiness.html index ce9f74fc5..ba6def55a 100644 --- a/docs/classes/HealthAndBeautyBusiness.html +++ b/docs/classes/HealthAndBeautyBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HealthClub.html b/docs/classes/HealthClub.html index bb976fa8e..488d9938e 100644 --- a/docs/classes/HealthClub.html +++ b/docs/classes/HealthClub.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HighSchool.html b/docs/classes/HighSchool.html index 040d163da..7f136ef8a 100644 --- a/docs/classes/HighSchool.html +++ b/docs/classes/HighSchool.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HinduTemple.html b/docs/classes/HinduTemple.html index 90a977dcc..fbdf6cc52 100644 --- a/docs/classes/HinduTemple.html +++ b/docs/classes/HinduTemple.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HistoryClosure.html b/docs/classes/HistoryClosure.html index 17bd32831..aa676ecc3 100644 --- a/docs/classes/HistoryClosure.html +++ b/docs/classes/HistoryClosure.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HobbyShop.html b/docs/classes/HobbyShop.html index b21176320..b6c468897 100644 --- a/docs/classes/HobbyShop.html +++ b/docs/classes/HobbyShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HoldersProfile.html b/docs/classes/HoldersProfile.html index 769ac908c..9f72a4f8a 100644 --- a/docs/classes/HoldersProfile.html +++ b/docs/classes/HoldersProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HomeAndConstructionBusiness.html b/docs/classes/HomeAndConstructionBusiness.html index 18d6cc35c..0a3a88b62 100644 --- a/docs/classes/HomeAndConstructionBusiness.html +++ b/docs/classes/HomeAndConstructionBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HomeGoodsStore.html b/docs/classes/HomeGoodsStore.html index 358f27b97..c2b314945 100644 --- a/docs/classes/HomeGoodsStore.html +++ b/docs/classes/HomeGoodsStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Hospital.html b/docs/classes/Hospital.html index 64673e42f..c72c8fe2b 100644 --- a/docs/classes/Hospital.html +++ b/docs/classes/Hospital.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Hostel.html b/docs/classes/Hostel.html index 7a91af728..958ec3788 100644 --- a/docs/classes/Hostel.html +++ b/docs/classes/Hostel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Hotel.html b/docs/classes/Hotel.html index ea50370ea..83aa66331 100644 --- a/docs/classes/Hotel.html +++ b/docs/classes/Hotel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HotelRoom.html b/docs/classes/HotelRoom.html index e7e464231..9cc8fc547 100644 --- a/docs/classes/HotelRoom.html +++ b/docs/classes/HotelRoom.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/House.html b/docs/classes/House.html index ce0dc1c1e..d64baafaa 100644 --- a/docs/classes/House.html +++ b/docs/classes/House.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/HousePainter.html b/docs/classes/HousePainter.html index d05cff921..6f4211e17 100644 --- a/docs/classes/HousePainter.html +++ b/docs/classes/HousePainter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Hypergraph.html b/docs/classes/Hypergraph.html index 598ee5f91..281cdc466 100644 --- a/docs/classes/Hypergraph.html +++ b/docs/classes/Hypergraph.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IceCreamShop.html b/docs/classes/IceCreamShop.html index 4b8888e3f..be9ef33b3 100644 --- a/docs/classes/IceCreamShop.html +++ b/docs/classes/IceCreamShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IdentifierValue.html b/docs/classes/IdentifierValue.html index 8aa404788..dce011c54 100644 --- a/docs/classes/IdentifierValue.html +++ b/docs/classes/IdentifierValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IdentifierValueSet.html b/docs/classes/IdentifierValueSet.html index d375b6292..805c9cd82 100644 --- a/docs/classes/IdentifierValueSet.html +++ b/docs/classes/IdentifierValueSet.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IgnoreAction.html b/docs/classes/IgnoreAction.html index ddde5ea81..45852cbcb 100644 --- a/docs/classes/IgnoreAction.html +++ b/docs/classes/IgnoreAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ImageGallery.html b/docs/classes/ImageGallery.html index f3c5c5137..b3f62ce68 100644 --- a/docs/classes/ImageGallery.html +++ b/docs/classes/ImageGallery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ImageObject.html b/docs/classes/ImageObject.html index 7cc3d17b9..8953cab4e 100644 --- a/docs/classes/ImageObject.html +++ b/docs/classes/ImageObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Importer.html b/docs/classes/Importer.html index 7779ed966..cb1d2b062 100644 --- a/docs/classes/Importer.html +++ b/docs/classes/Importer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IndividualProduct.html b/docs/classes/IndividualProduct.html index 248c08f69..dd6ea394d 100644 --- a/docs/classes/IndividualProduct.html +++ b/docs/classes/IndividualProduct.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/IndustryClassification.html b/docs/classes/IndustryClassification.html index 9e69b1aa0..2acf7ce4b 100644 --- a/docs/classes/IndustryClassification.html +++ b/docs/classes/IndustryClassification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InformAction.html b/docs/classes/InformAction.html index 3ff856546..b1b7a0bf0 100644 --- a/docs/classes/InformAction.html +++ b/docs/classes/InformAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InquiryPacket.html b/docs/classes/InquiryPacket.html index 945c18878..8909f559f 100644 --- a/docs/classes/InquiryPacket.html +++ b/docs/classes/InquiryPacket.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InsertAction.html b/docs/classes/InsertAction.html index 094234993..c6c2a3fd7 100644 --- a/docs/classes/InsertAction.html +++ b/docs/classes/InsertAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InstallAction.html b/docs/classes/InstallAction.html index 0197fcb66..acf252634 100644 --- a/docs/classes/InstallAction.html +++ b/docs/classes/InstallAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InstructionalProgramClassification.html b/docs/classes/InstructionalProgramClassification.html index c8113b204..74f89a3ff 100644 --- a/docs/classes/InstructionalProgramClassification.html +++ b/docs/classes/InstructionalProgramClassification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InsuranceAgency.html b/docs/classes/InsuranceAgency.html index 458e42c3b..1c1fffb08 100644 --- a/docs/classes/InsuranceAgency.html +++ b/docs/classes/InsuranceAgency.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Intangible.html b/docs/classes/Intangible.html index 9ed5e28d1..93f3a455a 100644 --- a/docs/classes/Intangible.html +++ b/docs/classes/Intangible.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InteractAction.html b/docs/classes/InteractAction.html index 3d6428ea7..53264d718 100644 --- a/docs/classes/InteractAction.html +++ b/docs/classes/InteractAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InteractionCounter.html b/docs/classes/InteractionCounter.html index 986d65012..bc1dd3e75 100644 --- a/docs/classes/InteractionCounter.html +++ b/docs/classes/InteractionCounter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InternetCafe.html b/docs/classes/InternetCafe.html index 4cc2d8761..5c136b0b2 100644 --- a/docs/classes/InternetCafe.html +++ b/docs/classes/InternetCafe.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InvestmentOrDeposit.html b/docs/classes/InvestmentOrDeposit.html index bf6f5fd3c..8d04eaf86 100644 --- a/docs/classes/InvestmentOrDeposit.html +++ b/docs/classes/InvestmentOrDeposit.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/InviteAction.html b/docs/classes/InviteAction.html index 87e65aa0b..764403208 100644 --- a/docs/classes/InviteAction.html +++ b/docs/classes/InviteAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Invoice.html b/docs/classes/Invoice.html index 10d84c3c8..66d5da262 100644 --- a/docs/classes/Invoice.html +++ b/docs/classes/Invoice.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ItemAvailability.html b/docs/classes/ItemAvailability.html index 0ec9fb05c..df94e4f6a 100644 --- a/docs/classes/ItemAvailability.html +++ b/docs/classes/ItemAvailability.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ItemList.html b/docs/classes/ItemList.html index a65e330b0..47cb2e9c7 100644 --- a/docs/classes/ItemList.html +++ b/docs/classes/ItemList.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ItemListOrderType.html b/docs/classes/ItemListOrderType.html index 4af301169..3fc97d5fd 100644 --- a/docs/classes/ItemListOrderType.html +++ b/docs/classes/ItemListOrderType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ItemPage.html b/docs/classes/ItemPage.html index aa549013c..84166e26a 100644 --- a/docs/classes/ItemPage.html +++ b/docs/classes/ItemPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/JewelryStore.html b/docs/classes/JewelryStore.html index d109a6039..d1d95ada0 100644 --- a/docs/classes/JewelryStore.html +++ b/docs/classes/JewelryStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/JobPosting.html b/docs/classes/JobPosting.html index ec119a283..f352dd8a7 100644 --- a/docs/classes/JobPosting.html +++ b/docs/classes/JobPosting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/JoinAction.html b/docs/classes/JoinAction.html index c2fa88c0d..9c3a50f45 100644 --- a/docs/classes/JoinAction.html +++ b/docs/classes/JoinAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/JourneymanCertificate.html b/docs/classes/JourneymanCertificate.html index 81c33cf76..e85d3ac78 100644 --- a/docs/classes/JourneymanCertificate.html +++ b/docs/classes/JourneymanCertificate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/JurisdictionProfile.html b/docs/classes/JurisdictionProfile.html index 311390ab8..c2475d4e3 100644 --- a/docs/classes/JurisdictionProfile.html +++ b/docs/classes/JurisdictionProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LakeBodyOfWater.html b/docs/classes/LakeBodyOfWater.html index 467aa4cd5..9abe46ff7 100644 --- a/docs/classes/LakeBodyOfWater.html +++ b/docs/classes/LakeBodyOfWater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Landform.html b/docs/classes/Landform.html index a3f05c0f0..3f10971ed 100644 --- a/docs/classes/Landform.html +++ b/docs/classes/Landform.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LandmarksOrHistoricalBuildings.html b/docs/classes/LandmarksOrHistoricalBuildings.html index 94bc93a99..f2c4d41ae 100644 --- a/docs/classes/LandmarksOrHistoricalBuildings.html +++ b/docs/classes/LandmarksOrHistoricalBuildings.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Language.html b/docs/classes/Language.html index a92bd91be..4d5f49aee 100644 --- a/docs/classes/Language.html +++ b/docs/classes/Language.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LearningOpportunity.html b/docs/classes/LearningOpportunity.html index 689e93418..843638297 100644 --- a/docs/classes/LearningOpportunity.html +++ b/docs/classes/LearningOpportunity.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LearningOpportunityProfile.html b/docs/classes/LearningOpportunityProfile.html index 7c47eea8b..c40fc951a 100644 --- a/docs/classes/LearningOpportunityProfile.html +++ b/docs/classes/LearningOpportunityProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LearningResource.html b/docs/classes/LearningResource.html index d9248401f..f9ffd9635 100644 --- a/docs/classes/LearningResource.html +++ b/docs/classes/LearningResource.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LeaveAction.html b/docs/classes/LeaveAction.html index b5df58070..c62a42a0a 100644 --- a/docs/classes/LeaveAction.html +++ b/docs/classes/LeaveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LegalService.html b/docs/classes/LegalService.html index 35af32dce..b747e8a15 100644 --- a/docs/classes/LegalService.html +++ b/docs/classes/LegalService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LegislativeBuilding.html b/docs/classes/LegislativeBuilding.html index eddc0fa94..295413eb2 100644 --- a/docs/classes/LegislativeBuilding.html +++ b/docs/classes/LegislativeBuilding.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LendAction.html b/docs/classes/LendAction.html index 749e01b32..cbe0992f4 100644 --- a/docs/classes/LendAction.html +++ b/docs/classes/LendAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Level.html b/docs/classes/Level.html index f2430c595..c86ac93cd 100644 --- a/docs/classes/Level.html +++ b/docs/classes/Level.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

Level Class

- Defined in: src/main/js/cass/org.cassproject.schema.cass.js:106 + Defined in: src/main/js/cass/org.cassproject.schema.cass.js:111
Module: org.cassproject @@ -2047,7 +2047,7 @@

competency

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:125 + src/main/js/cass/org.cassproject.schema.cass.js:131

@@ -3147,7 +3147,7 @@

performance

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:139 + src/main/js/cass/org.cassproject.schema.cass.js:145

@@ -3677,7 +3677,7 @@

title

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:132 + src/main/js/cass/org.cassproject.schema.cass.js:138

diff --git a/docs/classes/Library.html b/docs/classes/Library.html index b2dde80bb..f29a02f24 100644 --- a/docs/classes/Library.html +++ b/docs/classes/Library.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/License.html b/docs/classes/License.html index 3ddc5eff2..2d3d485ab 100644 --- a/docs/classes/License.html +++ b/docs/classes/License.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LikeAction.html b/docs/classes/LikeAction.html index 2673cb641..ccea6d012 100644 --- a/docs/classes/LikeAction.html +++ b/docs/classes/LikeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LiquorStore.html b/docs/classes/LiquorStore.html index 6872f4e1b..ed15fad6e 100644 --- a/docs/classes/LiquorStore.html +++ b/docs/classes/LiquorStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ListItem.html b/docs/classes/ListItem.html index daa643205..92d1278f7 100644 --- a/docs/classes/ListItem.html +++ b/docs/classes/ListItem.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ListenAction.html b/docs/classes/ListenAction.html index 0dddd66aa..43da9f689 100644 --- a/docs/classes/ListenAction.html +++ b/docs/classes/ListenAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LiteraryEvent.html b/docs/classes/LiteraryEvent.html index 916f31d23..355f52aae 100644 --- a/docs/classes/LiteraryEvent.html +++ b/docs/classes/LiteraryEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LiveBlogPosting.html b/docs/classes/LiveBlogPosting.html index 87346aaff..836365b88 100644 --- a/docs/classes/LiveBlogPosting.html +++ b/docs/classes/LiveBlogPosting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LoanOrCredit.html b/docs/classes/LoanOrCredit.html index f475e6164..e46fef375 100644 --- a/docs/classes/LoanOrCredit.html +++ b/docs/classes/LoanOrCredit.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LocalBusiness.html b/docs/classes/LocalBusiness.html index 077f72eda..b34edfde3 100644 --- a/docs/classes/LocalBusiness.html +++ b/docs/classes/LocalBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LocationFeatureSpecification.html b/docs/classes/LocationFeatureSpecification.html index c5fcff450..f41cd9128 100644 --- a/docs/classes/LocationFeatureSpecification.html +++ b/docs/classes/LocationFeatureSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LockerDelivery.html b/docs/classes/LockerDelivery.html index 84610e50e..5afbf0670 100644 --- a/docs/classes/LockerDelivery.html +++ b/docs/classes/LockerDelivery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Locksmith.html b/docs/classes/Locksmith.html index b41f8d037..d3c9c85c0 100644 --- a/docs/classes/Locksmith.html +++ b/docs/classes/Locksmith.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LodgingBusiness.html b/docs/classes/LodgingBusiness.html index 3cf313e39..c881f09a1 100644 --- a/docs/classes/LodgingBusiness.html +++ b/docs/classes/LodgingBusiness.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LodgingReservation.html b/docs/classes/LodgingReservation.html index c258f9969..bb663d5ab 100644 --- a/docs/classes/LodgingReservation.html +++ b/docs/classes/LodgingReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/LoseAction.html b/docs/classes/LoseAction.html index d8d8e6b18..631135a7e 100644 --- a/docs/classes/LoseAction.html +++ b/docs/classes/LoseAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Map.html b/docs/classes/Map.html index e46a901dd..52c716cff 100644 --- a/docs/classes/Map.html +++ b/docs/classes/Map.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MapCategoryType.html b/docs/classes/MapCategoryType.html index 7f37e4ecf..8d06d3674 100644 --- a/docs/classes/MapCategoryType.html +++ b/docs/classes/MapCategoryType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MarryAction.html b/docs/classes/MarryAction.html index 6752d53c3..f1246dc3e 100644 --- a/docs/classes/MarryAction.html +++ b/docs/classes/MarryAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Mass.html b/docs/classes/Mass.html index e81797f4d..9ee6fa21d 100644 --- a/docs/classes/Mass.html +++ b/docs/classes/Mass.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MasterCertificate.html b/docs/classes/MasterCertificate.html index 2dc9b55e7..e268ba6a0 100644 --- a/docs/classes/MasterCertificate.html +++ b/docs/classes/MasterCertificate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MasterDegree.html b/docs/classes/MasterDegree.html index 365a7dea3..6dfba5aaa 100644 --- a/docs/classes/MasterDegree.html +++ b/docs/classes/MasterDegree.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MedbiqImport.html b/docs/classes/MedbiqImport.html index ba88a6fbd..d1a5a7b8c 100644 --- a/docs/classes/MedbiqImport.html +++ b/docs/classes/MedbiqImport.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

MedbiqImport Class

- Defined in: src/main/js/cass/cass.import.js:1415 + Defined in: src/main/js/cass/cass.import.js:1433
Module: org.cassproject @@ -913,7 +913,7 @@

analyzeFile

Defined in - src/main/js/cass/cass.import.js:1482 + src/main/js/cass/cass.import.js:1500

@@ -1004,7 +1004,7 @@

importCompetencies

Defined in - src/main/js/cass/cass.import.js:1521 + src/main/js/cass/cass.import.js:1539

@@ -1108,7 +1108,7 @@

medbiqXmlLookForCompetencyObject

Defined in - src/main/js/cass/cass.import.js:1434 + src/main/js/cass/cass.import.js:1452

@@ -1164,7 +1164,7 @@

medbiqXmlParseCompetencyObject

Defined in - src/main/js/cass/cass.import.js:1453 + src/main/js/cass/cass.import.js:1471

diff --git a/docs/classes/MediaObject.html b/docs/classes/MediaObject.html index 752c3d93a..b76e5fcc8 100644 --- a/docs/classes/MediaObject.html +++ b/docs/classes/MediaObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MedicalOrganization.html b/docs/classes/MedicalOrganization.html index f355f6c07..dc4f89603 100644 --- a/docs/classes/MedicalOrganization.html +++ b/docs/classes/MedicalOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MeetingRoom.html b/docs/classes/MeetingRoom.html index d7bbaeaf0..e34e3f77f 100644 --- a/docs/classes/MeetingRoom.html +++ b/docs/classes/MeetingRoom.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MensClothingStore.html b/docs/classes/MensClothingStore.html index 1de976fe7..12fa67635 100644 --- a/docs/classes/MensClothingStore.html +++ b/docs/classes/MensClothingStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Menu.html b/docs/classes/Menu.html index 484b569b5..ebeda7dae 100644 --- a/docs/classes/Menu.html +++ b/docs/classes/Menu.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MenuItem.html b/docs/classes/MenuItem.html index db43c8d32..3818c9cc3 100644 --- a/docs/classes/MenuItem.html +++ b/docs/classes/MenuItem.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MenuSection.html b/docs/classes/MenuSection.html index f9dbdcbdf..ae7c926e3 100644 --- a/docs/classes/MenuSection.html +++ b/docs/classes/MenuSection.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Message.html b/docs/classes/Message.html index dd8111875..0090ed317 100644 --- a/docs/classes/Message.html +++ b/docs/classes/Message.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MicroCredential.html b/docs/classes/MicroCredential.html index 6bc534de4..a2f28a646 100644 --- a/docs/classes/MicroCredential.html +++ b/docs/classes/MicroCredential.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MiddleSchool.html b/docs/classes/MiddleSchool.html index b23969886..397c52bd6 100644 --- a/docs/classes/MiddleSchool.html +++ b/docs/classes/MiddleSchool.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MobileApplication.html b/docs/classes/MobileApplication.html index 1b9a63909..6cd5beb48 100644 --- a/docs/classes/MobileApplication.html +++ b/docs/classes/MobileApplication.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MobilePhoneStore.html b/docs/classes/MobilePhoneStore.html index 91b2c2f24..7b1153cc5 100644 --- a/docs/classes/MobilePhoneStore.html +++ b/docs/classes/MobilePhoneStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ModalManager.html b/docs/classes/ModalManager.html index ba5ba6aea..4f9b89396 100644 --- a/docs/classes/ModalManager.html +++ b/docs/classes/ModalManager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MonetaryAmount.html b/docs/classes/MonetaryAmount.html index 816a470a7..5d7ece973 100644 --- a/docs/classes/MonetaryAmount.html +++ b/docs/classes/MonetaryAmount.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MoodleConfig.html b/docs/classes/MoodleConfig.html index 779207b53..6db2bfa12 100644 --- a/docs/classes/MoodleConfig.html +++ b/docs/classes/MoodleConfig.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -1011,7 +1011,7 @@

get

Defined in - src/main/js/cass/cass.adapter.js:56 + src/main/js/cass/cass.adapter.js:57

@@ -1093,7 +1093,7 @@

save

Defined in - src/main/js/cass/cass.adapter.js:82 + src/main/js/cass/cass.adapter.js:84

diff --git a/docs/classes/Mosque.html b/docs/classes/Mosque.html index 7f5aed8cb..e224dcd36 100644 --- a/docs/classes/Mosque.html +++ b/docs/classes/Mosque.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Motel.html b/docs/classes/Motel.html index 5bf52078e..b641be059 100644 --- a/docs/classes/Motel.html +++ b/docs/classes/Motel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MotorcycleDealer.html b/docs/classes/MotorcycleDealer.html index 34e4410b4..21538519f 100644 --- a/docs/classes/MotorcycleDealer.html +++ b/docs/classes/MotorcycleDealer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MotorcycleRepair.html b/docs/classes/MotorcycleRepair.html index 16f698b71..75bff8362 100644 --- a/docs/classes/MotorcycleRepair.html +++ b/docs/classes/MotorcycleRepair.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Mountain.html b/docs/classes/Mountain.html index 8debb1a3b..e184518eb 100644 --- a/docs/classes/Mountain.html +++ b/docs/classes/Mountain.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MoveAction.html b/docs/classes/MoveAction.html index 6b8678e4a..abbbcf203 100644 --- a/docs/classes/MoveAction.html +++ b/docs/classes/MoveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Movie.html b/docs/classes/Movie.html index 965413dd0..3f53723a7 100644 --- a/docs/classes/Movie.html +++ b/docs/classes/Movie.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MovieClip.html b/docs/classes/MovieClip.html index 60db5a0b1..b87e3e865 100644 --- a/docs/classes/MovieClip.html +++ b/docs/classes/MovieClip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MovieRentalStore.html b/docs/classes/MovieRentalStore.html index c381a0863..717b3bd9e 100644 --- a/docs/classes/MovieRentalStore.html +++ b/docs/classes/MovieRentalStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MovieSeries.html b/docs/classes/MovieSeries.html index 90b19496c..ff76d45af 100644 --- a/docs/classes/MovieSeries.html +++ b/docs/classes/MovieSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MovieTheater.html b/docs/classes/MovieTheater.html index 1fa046be7..28f92d5c9 100644 --- a/docs/classes/MovieTheater.html +++ b/docs/classes/MovieTheater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MovingCompany.html b/docs/classes/MovingCompany.html index c95ee6240..81c4321f9 100644 --- a/docs/classes/MovingCompany.html +++ b/docs/classes/MovingCompany.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Museum.html b/docs/classes/Museum.html index 39ccde89e..e55fffa41 100644 --- a/docs/classes/Museum.html +++ b/docs/classes/Museum.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicAlbum.html b/docs/classes/MusicAlbum.html index a9c3ab070..6efe69ea0 100644 --- a/docs/classes/MusicAlbum.html +++ b/docs/classes/MusicAlbum.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicAlbumProductionType.html b/docs/classes/MusicAlbumProductionType.html index b48b09f4b..6ff9ea243 100644 --- a/docs/classes/MusicAlbumProductionType.html +++ b/docs/classes/MusicAlbumProductionType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicAlbumReleaseType.html b/docs/classes/MusicAlbumReleaseType.html index a59c40933..6a7255a49 100644 --- a/docs/classes/MusicAlbumReleaseType.html +++ b/docs/classes/MusicAlbumReleaseType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicComposition.html b/docs/classes/MusicComposition.html index 47dc53a51..7b4bf257d 100644 --- a/docs/classes/MusicComposition.html +++ b/docs/classes/MusicComposition.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicEvent.html b/docs/classes/MusicEvent.html index ace37a457..f0b3eeb1e 100644 --- a/docs/classes/MusicEvent.html +++ b/docs/classes/MusicEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicGroup.html b/docs/classes/MusicGroup.html index 3e20592e8..b0194bcfa 100644 --- a/docs/classes/MusicGroup.html +++ b/docs/classes/MusicGroup.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicPlaylist.html b/docs/classes/MusicPlaylist.html index 7d7cfd4ea..fa9cf7b7e 100644 --- a/docs/classes/MusicPlaylist.html +++ b/docs/classes/MusicPlaylist.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicRecording.html b/docs/classes/MusicRecording.html index 3367ca658..ca16b297d 100644 --- a/docs/classes/MusicRecording.html +++ b/docs/classes/MusicRecording.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicRelease.html b/docs/classes/MusicRelease.html index 015da5ee5..c13905621 100644 --- a/docs/classes/MusicRelease.html +++ b/docs/classes/MusicRelease.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicReleaseFormatType.html b/docs/classes/MusicReleaseFormatType.html index 5abd3c7b9..f2b4c4922 100644 --- a/docs/classes/MusicReleaseFormatType.html +++ b/docs/classes/MusicReleaseFormatType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicStore.html b/docs/classes/MusicStore.html index 33f1d14b9..4b5718ebc 100644 --- a/docs/classes/MusicStore.html +++ b/docs/classes/MusicStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicVenue.html b/docs/classes/MusicVenue.html index 408a4ff9a..dfcb29f26 100644 --- a/docs/classes/MusicVenue.html +++ b/docs/classes/MusicVenue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/MusicVideoObject.html b/docs/classes/MusicVideoObject.html index 45cabc8ca..ad8d0644c 100644 --- a/docs/classes/MusicVideoObject.html +++ b/docs/classes/MusicVideoObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NGO.html b/docs/classes/NGO.html index 494018b63..adc001e0a 100644 --- a/docs/classes/NGO.html +++ b/docs/classes/NGO.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NailSalon.html b/docs/classes/NailSalon.html index ce158b6f2..6e56afce3 100644 --- a/docs/classes/NailSalon.html +++ b/docs/classes/NailSalon.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NewsArticle.html b/docs/classes/NewsArticle.html index bf57c4097..656c793cd 100644 --- a/docs/classes/NewsArticle.html +++ b/docs/classes/NewsArticle.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NightClub.html b/docs/classes/NightClub.html index a62d9df5c..0cc81894b 100644 --- a/docs/classes/NightClub.html +++ b/docs/classes/NightClub.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Notary.html b/docs/classes/Notary.html index 9169c4c45..f8b1270f3 100644 --- a/docs/classes/Notary.html +++ b/docs/classes/Notary.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NoteDigitalDocument.html b/docs/classes/NoteDigitalDocument.html index 46ff1dadc..f8cca37eb 100644 --- a/docs/classes/NoteDigitalDocument.html +++ b/docs/classes/NoteDigitalDocument.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/NutritionInformation.html b/docs/classes/NutritionInformation.html index 319ff6c84..89aacf5ee 100644 --- a/docs/classes/NutritionInformation.html +++ b/docs/classes/NutritionInformation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OccupationClassification.html b/docs/classes/OccupationClassification.html index e641fd777..c04f584da 100644 --- a/docs/classes/OccupationClassification.html +++ b/docs/classes/OccupationClassification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OceanBodyOfWater.html b/docs/classes/OceanBodyOfWater.html index 8061c544d..be17a4d7f 100644 --- a/docs/classes/OceanBodyOfWater.html +++ b/docs/classes/OceanBodyOfWater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Offer.html b/docs/classes/Offer.html index e9610474f..40a41675c 100644 --- a/docs/classes/Offer.html +++ b/docs/classes/Offer.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OfferAction.html b/docs/classes/OfferAction.html index f3fb4a5b4..7780b922d 100644 --- a/docs/classes/OfferAction.html +++ b/docs/classes/OfferAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OfferCatalog.html b/docs/classes/OfferCatalog.html index 97496256f..e4dedac44 100644 --- a/docs/classes/OfferCatalog.html +++ b/docs/classes/OfferCatalog.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OfferItemCondition.html b/docs/classes/OfferItemCondition.html index 381544943..0a1b4e9cc 100644 --- a/docs/classes/OfferItemCondition.html +++ b/docs/classes/OfferItemCondition.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OfficeEquipmentStore.html b/docs/classes/OfficeEquipmentStore.html index 702dde26c..441e0c53b 100644 --- a/docs/classes/OfficeEquipmentStore.html +++ b/docs/classes/OfficeEquipmentStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OnDemandEvent.html b/docs/classes/OnDemandEvent.html index c15bb009b..c864eb716 100644 --- a/docs/classes/OnDemandEvent.html +++ b/docs/classes/OnDemandEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OpenBadge.html b/docs/classes/OpenBadge.html index 73771cfc7..7854f8fa1 100644 --- a/docs/classes/OpenBadge.html +++ b/docs/classes/OpenBadge.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OpeningHoursSpecification.html b/docs/classes/OpeningHoursSpecification.html index 75268867d..2aac542b8 100644 --- a/docs/classes/OpeningHoursSpecification.html +++ b/docs/classes/OpeningHoursSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Order.html b/docs/classes/Order.html index 16df746c0..77fe21b44 100644 --- a/docs/classes/Order.html +++ b/docs/classes/Order.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrderAction.html b/docs/classes/OrderAction.html index dee137532..fa0e5fdf6 100644 --- a/docs/classes/OrderAction.html +++ b/docs/classes/OrderAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrderItem.html b/docs/classes/OrderItem.html index 81cb0ef7d..8cf84b52e 100644 --- a/docs/classes/OrderItem.html +++ b/docs/classes/OrderItem.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrderStatus.html b/docs/classes/OrderStatus.html index acf77a08f..ac18b0ee6 100644 --- a/docs/classes/OrderStatus.html +++ b/docs/classes/OrderStatus.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrderedCollection.html b/docs/classes/OrderedCollection.html index 54b36b4c9..0dc1f61a4 100644 --- a/docs/classes/OrderedCollection.html +++ b/docs/classes/OrderedCollection.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

OrderedCollection Class

- Defined in: src/main/js/cass/org.w3.skos.js:128 + Defined in: src/main/js/cass/org.w3.skos.js:138
Module: org.w3.skos @@ -915,7 +915,7 @@

memberList

Defined in - src/main/js/cass/org.w3.skos.js:147 + src/main/js/cass/org.w3.skos.js:157

diff --git a/docs/classes/Organization.html b/docs/classes/Organization.html index 5dfbdee8b..e5dd9edba 100644 --- a/docs/classes/Organization.html +++ b/docs/classes/Organization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrganizationRole.html b/docs/classes/OrganizationRole.html index 545742e09..ad027f3c8 100644 --- a/docs/classes/OrganizationRole.html +++ b/docs/classes/OrganizationRole.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OrganizeAction.html b/docs/classes/OrganizeAction.html index 2ea180e1b..b1963cf38 100644 --- a/docs/classes/OrganizeAction.html +++ b/docs/classes/OrganizeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OutletStore.html b/docs/classes/OutletStore.html index a24881f22..56d47c46e 100644 --- a/docs/classes/OutletStore.html +++ b/docs/classes/OutletStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OverlayManager.html b/docs/classes/OverlayManager.html index 360ba56de..5c65ff1af 100644 --- a/docs/classes/OverlayManager.html +++ b/docs/classes/OverlayManager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/OwnershipInfo.html b/docs/classes/OwnershipInfo.html index 786046304..4ce2123cc 100644 --- a/docs/classes/OwnershipInfo.html +++ b/docs/classes/OwnershipInfo.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaintAction.html b/docs/classes/PaintAction.html index 049ca3983..495d4ec0a 100644 --- a/docs/classes/PaintAction.html +++ b/docs/classes/PaintAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Painting.html b/docs/classes/Painting.html index ced59323c..2295f6e94 100644 --- a/docs/classes/Painting.html +++ b/docs/classes/Painting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ParcelDelivery.html b/docs/classes/ParcelDelivery.html index 0239c9672..526db5737 100644 --- a/docs/classes/ParcelDelivery.html +++ b/docs/classes/ParcelDelivery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ParcelService.html b/docs/classes/ParcelService.html index cee16fd9e..3d02ecd37 100644 --- a/docs/classes/ParcelService.html +++ b/docs/classes/ParcelService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ParentAudience.html b/docs/classes/ParentAudience.html index 2d1792d1e..8203e6b3b 100644 --- a/docs/classes/ParentAudience.html +++ b/docs/classes/ParentAudience.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Park.html b/docs/classes/Park.html index e471562a6..0bfbea67e 100644 --- a/docs/classes/Park.html +++ b/docs/classes/Park.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ParkingFacility.html b/docs/classes/ParkingFacility.html index e818506d6..9f23426a4 100644 --- a/docs/classes/ParkingFacility.html +++ b/docs/classes/ParkingFacility.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PawnShop.html b/docs/classes/PawnShop.html index 361390ce5..baaed22e3 100644 --- a/docs/classes/PawnShop.html +++ b/docs/classes/PawnShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PayAction.html b/docs/classes/PayAction.html index bcf954ede..b37c26791 100644 --- a/docs/classes/PayAction.html +++ b/docs/classes/PayAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaymentCard.html b/docs/classes/PaymentCard.html index f89e6d3e2..229111d8a 100644 --- a/docs/classes/PaymentCard.html +++ b/docs/classes/PaymentCard.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaymentChargeSpecification.html b/docs/classes/PaymentChargeSpecification.html index ae5e732de..472e24fef 100644 --- a/docs/classes/PaymentChargeSpecification.html +++ b/docs/classes/PaymentChargeSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaymentMethod.html b/docs/classes/PaymentMethod.html index d5efdcf59..f8615df35 100644 --- a/docs/classes/PaymentMethod.html +++ b/docs/classes/PaymentMethod.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaymentService.html b/docs/classes/PaymentService.html index 4cf7ed24e..bbce7a964 100644 --- a/docs/classes/PaymentService.html +++ b/docs/classes/PaymentService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PaymentStatusType.html b/docs/classes/PaymentStatusType.html index 57d530800..0e217f290 100644 --- a/docs/classes/PaymentStatusType.html +++ b/docs/classes/PaymentStatusType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PeopleAudience.html b/docs/classes/PeopleAudience.html index beeb10790..bc98b1186 100644 --- a/docs/classes/PeopleAudience.html +++ b/docs/classes/PeopleAudience.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PerformAction.html b/docs/classes/PerformAction.html index d4666a458..12223b985 100644 --- a/docs/classes/PerformAction.html +++ b/docs/classes/PerformAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PerformanceRole.html b/docs/classes/PerformanceRole.html index 8fae2e76d..cee3ae56b 100644 --- a/docs/classes/PerformanceRole.html +++ b/docs/classes/PerformanceRole.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PerformingArtsTheater.html b/docs/classes/PerformingArtsTheater.html index 5dda902dd..83eeafbab 100644 --- a/docs/classes/PerformingArtsTheater.html +++ b/docs/classes/PerformingArtsTheater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PerformingGroup.html b/docs/classes/PerformingGroup.html index 0a98e6a1f..9b0650480 100644 --- a/docs/classes/PerformingGroup.html +++ b/docs/classes/PerformingGroup.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Periodical.html b/docs/classes/Periodical.html index 0f589fc8a..bd2012abe 100644 --- a/docs/classes/Periodical.html +++ b/docs/classes/Periodical.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Permit.html b/docs/classes/Permit.html index 0b16d45b6..3a6a64ad4 100644 --- a/docs/classes/Permit.html +++ b/docs/classes/Permit.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Person.html b/docs/classes/Person.html index f2b0e19cd..859ecf2e9 100644 --- a/docs/classes/Person.html +++ b/docs/classes/Person.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PetStore.html b/docs/classes/PetStore.html index ad8a909d5..034965b3d 100644 --- a/docs/classes/PetStore.html +++ b/docs/classes/PetStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Pharmacy.html b/docs/classes/Pharmacy.html index 6522cb36f..63dcd5e2a 100644 --- a/docs/classes/Pharmacy.html +++ b/docs/classes/Pharmacy.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Photograph.html b/docs/classes/Photograph.html index 0b63ec120..ffcc3e5e5 100644 --- a/docs/classes/Photograph.html +++ b/docs/classes/Photograph.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PhotographAction.html b/docs/classes/PhotographAction.html index bb41330c2..03b641c43 100644 --- a/docs/classes/PhotographAction.html +++ b/docs/classes/PhotographAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Physician.html b/docs/classes/Physician.html index fe6521744..d9581640b 100644 --- a/docs/classes/Physician.html +++ b/docs/classes/Physician.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Place.html b/docs/classes/Place.html index 0ce7d0488..0540450c1 100644 --- a/docs/classes/Place.html +++ b/docs/classes/Place.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PlaceOfWorship.html b/docs/classes/PlaceOfWorship.html index 851c72afc..38cc55b5c 100644 --- a/docs/classes/PlaceOfWorship.html +++ b/docs/classes/PlaceOfWorship.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PlanAction.html b/docs/classes/PlanAction.html index c07069f62..3410fe345 100644 --- a/docs/classes/PlanAction.html +++ b/docs/classes/PlanAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PlayAction.html b/docs/classes/PlayAction.html index 7199fe9be..f586cdfd1 100644 --- a/docs/classes/PlayAction.html +++ b/docs/classes/PlayAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Playground.html b/docs/classes/Playground.html index f345b4324..f0f22e8c7 100644 --- a/docs/classes/Playground.html +++ b/docs/classes/Playground.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Plumber.html b/docs/classes/Plumber.html index 3a5663988..35d5ad3ae 100644 --- a/docs/classes/Plumber.html +++ b/docs/classes/Plumber.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PoliceStation.html b/docs/classes/PoliceStation.html index c9a204448..9e447ce9d 100644 --- a/docs/classes/PoliceStation.html +++ b/docs/classes/PoliceStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Pond.html b/docs/classes/Pond.html index 4ba015bd4..adad8cde8 100644 --- a/docs/classes/Pond.html +++ b/docs/classes/Pond.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PostOffice.html b/docs/classes/PostOffice.html index 9d72c8918..a77531324 100644 --- a/docs/classes/PostOffice.html +++ b/docs/classes/PostOffice.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PostalAddress.html b/docs/classes/PostalAddress.html index 24fda4a56..51c1e04d2 100644 --- a/docs/classes/PostalAddress.html +++ b/docs/classes/PostalAddress.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PrependAction.html b/docs/classes/PrependAction.html index 97db9c077..a030051a4 100644 --- a/docs/classes/PrependAction.html +++ b/docs/classes/PrependAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Preschool.html b/docs/classes/Preschool.html index fcadfe8f3..6c87e9ad5 100644 --- a/docs/classes/Preschool.html +++ b/docs/classes/Preschool.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PresentationDigitalDocument.html b/docs/classes/PresentationDigitalDocument.html index 87278f5c1..01aef4f00 100644 --- a/docs/classes/PresentationDigitalDocument.html +++ b/docs/classes/PresentationDigitalDocument.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PriceSpecification.html b/docs/classes/PriceSpecification.html index 83958d234..b69be3556 100644 --- a/docs/classes/PriceSpecification.html +++ b/docs/classes/PriceSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProcessProfile.html b/docs/classes/ProcessProfile.html index 7f296400c..162dab2c7 100644 --- a/docs/classes/ProcessProfile.html +++ b/docs/classes/ProcessProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Product.html b/docs/classes/Product.html index a80c55913..aa336b7a7 100644 --- a/docs/classes/Product.html +++ b/docs/classes/Product.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProductModel.html b/docs/classes/ProductModel.html index 2c9b3d1a4..3b47f012e 100644 --- a/docs/classes/ProductModel.html +++ b/docs/classes/ProductModel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProfessionalDoctorate.html b/docs/classes/ProfessionalDoctorate.html index 6dcf1d98e..e3645208b 100644 --- a/docs/classes/ProfessionalDoctorate.html +++ b/docs/classes/ProfessionalDoctorate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProfessionalService.html b/docs/classes/ProfessionalService.html index 5fb78481f..215f564e0 100644 --- a/docs/classes/ProfessionalService.html +++ b/docs/classes/ProfessionalService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProficiencyScale.html b/docs/classes/ProficiencyScale.html index 00f976776..a006aeda2 100644 --- a/docs/classes/ProficiencyScale.html +++ b/docs/classes/ProficiencyScale.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProfilePage.html b/docs/classes/ProfilePage.html index 8371f5285..850584534 100644 --- a/docs/classes/ProfilePage.html +++ b/docs/classes/ProfilePage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProfileProcessor.html b/docs/classes/ProfileProcessor.html index b3b0228bf..699604715 100644 --- a/docs/classes/ProfileProcessor.html +++ b/docs/classes/ProfileProcessor.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ProgramMembership.html b/docs/classes/ProgramMembership.html index f931d64bb..72ef9dc2c 100644 --- a/docs/classes/ProgramMembership.html +++ b/docs/classes/ProgramMembership.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PropertyValue.html b/docs/classes/PropertyValue.html index 86fc5fbaf..1da473d86 100644 --- a/docs/classes/PropertyValue.html +++ b/docs/classes/PropertyValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PropertyValueSpecification.html b/docs/classes/PropertyValueSpecification.html index d5add34b2..c717dd9f4 100644 --- a/docs/classes/PropertyValueSpecification.html +++ b/docs/classes/PropertyValueSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PublicSwimmingPool.html b/docs/classes/PublicSwimmingPool.html index 19b07a3c9..9b98edc72 100644 --- a/docs/classes/PublicSwimmingPool.html +++ b/docs/classes/PublicSwimmingPool.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PublicationEvent.html b/docs/classes/PublicationEvent.html index 6344f88e2..bbc87a2f2 100644 --- a/docs/classes/PublicationEvent.html +++ b/docs/classes/PublicationEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PublicationIssue.html b/docs/classes/PublicationIssue.html index e3fdf52c8..2d2744b2c 100644 --- a/docs/classes/PublicationIssue.html +++ b/docs/classes/PublicationIssue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/PublicationVolume.html b/docs/classes/PublicationVolume.html index 392cf6e4d..6fa22c293 100644 --- a/docs/classes/PublicationVolume.html +++ b/docs/classes/PublicationVolume.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QACredentialOrganization.html b/docs/classes/QACredentialOrganization.html index 6953343bf..8aeef569d 100644 --- a/docs/classes/QACredentialOrganization.html +++ b/docs/classes/QACredentialOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QAPage.html b/docs/classes/QAPage.html index 0c29a9600..9dd148b5e 100644 --- a/docs/classes/QAPage.html +++ b/docs/classes/QAPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QualitativeValue.html b/docs/classes/QualitativeValue.html index b7c0d8c99..e3e279d88 100644 --- a/docs/classes/QualitativeValue.html +++ b/docs/classes/QualitativeValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QualityAssuranceCredential.html b/docs/classes/QualityAssuranceCredential.html index 59cc1a8dd..5bb165499 100644 --- a/docs/classes/QualityAssuranceCredential.html +++ b/docs/classes/QualityAssuranceCredential.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QuantitativeValue.html b/docs/classes/QuantitativeValue.html index be8fd8a5f..04a6b3c36 100644 --- a/docs/classes/QuantitativeValue.html +++ b/docs/classes/QuantitativeValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Quantity.html b/docs/classes/Quantity.html index 289c09c65..f2d07e466 100644 --- a/docs/classes/Quantity.html +++ b/docs/classes/Quantity.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Question.html b/docs/classes/Question.html index 2021b7f0a..5ad06b046 100644 --- a/docs/classes/Question.html +++ b/docs/classes/Question.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/QuoteAction.html b/docs/classes/QuoteAction.html index 78218ee0b..a731ab9d0 100644 --- a/docs/classes/QuoteAction.html +++ b/docs/classes/QuoteAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RVPark.html b/docs/classes/RVPark.html index ed35e0b26..27ec1532a 100644 --- a/docs/classes/RVPark.html +++ b/docs/classes/RVPark.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioChannel.html b/docs/classes/RadioChannel.html index 44fd812bd..bb2e4de1f 100644 --- a/docs/classes/RadioChannel.html +++ b/docs/classes/RadioChannel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioClip.html b/docs/classes/RadioClip.html index 9c69d4b53..8a98726b5 100644 --- a/docs/classes/RadioClip.html +++ b/docs/classes/RadioClip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioEpisode.html b/docs/classes/RadioEpisode.html index 368bcd247..e1bac3dd2 100644 --- a/docs/classes/RadioEpisode.html +++ b/docs/classes/RadioEpisode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioSeason.html b/docs/classes/RadioSeason.html index 282eff710..7e2051eb4 100644 --- a/docs/classes/RadioSeason.html +++ b/docs/classes/RadioSeason.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioSeries.html b/docs/classes/RadioSeries.html index 5c6b6c39b..cadfbc8bb 100644 --- a/docs/classes/RadioSeries.html +++ b/docs/classes/RadioSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RadioStation.html b/docs/classes/RadioStation.html index e09ebcdd0..aa259921a 100644 --- a/docs/classes/RadioStation.html +++ b/docs/classes/RadioStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Rating.html b/docs/classes/Rating.html index 5127b109c..fdfd21ae2 100644 --- a/docs/classes/Rating.html +++ b/docs/classes/Rating.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReactAction.html b/docs/classes/ReactAction.html index 67104d808..eeabcbb02 100644 --- a/docs/classes/ReactAction.html +++ b/docs/classes/ReactAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReadAction.html b/docs/classes/ReadAction.html index ab42ae942..9df698a0c 100644 --- a/docs/classes/ReadAction.html +++ b/docs/classes/ReadAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RealEstateAgent.html b/docs/classes/RealEstateAgent.html index f50241027..8ed61c753 100644 --- a/docs/classes/RealEstateAgent.html +++ b/docs/classes/RealEstateAgent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReceiveAction.html b/docs/classes/ReceiveAction.html index f1880be1d..c97a2065e 100644 --- a/docs/classes/ReceiveAction.html +++ b/docs/classes/ReceiveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Recipe.html b/docs/classes/Recipe.html index e07908b33..e2583fb62 100644 --- a/docs/classes/Recipe.html +++ b/docs/classes/Recipe.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RecognizeAction.html b/docs/classes/RecognizeAction.html index f46c85698..8d22a7d7c 100644 --- a/docs/classes/RecognizeAction.html +++ b/docs/classes/RecognizeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RecyclingCenter.html b/docs/classes/RecyclingCenter.html index 42fcf8914..9ff87e7bf 100644 --- a/docs/classes/RecyclingCenter.html +++ b/docs/classes/RecyclingCenter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RegisterAction.html b/docs/classes/RegisterAction.html index c6b9ecc94..89c887d98 100644 --- a/docs/classes/RegisterAction.html +++ b/docs/classes/RegisterAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RegulateAction.html b/docs/classes/RegulateAction.html index 7097756b7..146be4692 100644 --- a/docs/classes/RegulateAction.html +++ b/docs/classes/RegulateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RejectAction.html b/docs/classes/RejectAction.html index 67e06d030..fa71aaa79 100644 --- a/docs/classes/RejectAction.html +++ b/docs/classes/RejectAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Relation.html b/docs/classes/Relation.html index 4a043c232..1031d9c27 100644 --- a/docs/classes/Relation.html +++ b/docs/classes/Relation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

Relation Class

- Defined in: src/main/js/cass/org.cassproject.schema.cass.js:303 + Defined in: src/main/js/cass/org.cassproject.schema.cass.js:323
Module: org.cassproject @@ -2336,7 +2336,7 @@

DESIRES

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:334 + src/main/js/cass/org.cassproject.schema.cass.js:354

@@ -2813,7 +2813,7 @@

IS_ENABLED_BY

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:316 + src/main/js/cass/org.cassproject.schema.cass.js:336

@@ -2840,7 +2840,7 @@

IS_EQUIVALENT_TO

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:362 + src/main/js/cass/org.cassproject.schema.cass.js:382

@@ -2868,7 +2868,7 @@

IS_RELATED_TO

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:352 + src/main/js/cass/org.cassproject.schema.cass.js:372

@@ -3246,7 +3246,7 @@

NARROWS

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:343 + src/main/js/cass/org.cassproject.schema.cass.js:363

@@ -3497,7 +3497,7 @@

relationType

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:394 + src/main/js/cass/org.cassproject.schema.cass.js:415

@@ -3549,7 +3549,7 @@

REQUIRES

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:325 + src/main/js/cass/org.cassproject.schema.cass.js:345

@@ -3675,7 +3675,7 @@

source

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:378 + src/main/js/cass/org.cassproject.schema.cass.js:399

@@ -3778,7 +3778,7 @@

target

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:386 + src/main/js/cass/org.cassproject.schema.cass.js:407

@@ -3981,7 +3981,7 @@

validFrom

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:402 + src/main/js/cass/org.cassproject.schema.cass.js:423

@@ -4006,7 +4006,7 @@

validThrough

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:409 + src/main/js/cass/org.cassproject.schema.cass.js:430

diff --git a/docs/classes/RelationshipPacketGenerator.html b/docs/classes/RelationshipPacketGenerator.html index aef160dc8..1f781e878 100644 --- a/docs/classes/RelationshipPacketGenerator.html +++ b/docs/classes/RelationshipPacketGenerator.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RenewAction.html b/docs/classes/RenewAction.html index dafe8632c..2b78765f4 100644 --- a/docs/classes/RenewAction.html +++ b/docs/classes/RenewAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RentAction.html b/docs/classes/RentAction.html index 9445fdcab..15853f05d 100644 --- a/docs/classes/RentAction.html +++ b/docs/classes/RentAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RentalCarReservation.html b/docs/classes/RentalCarReservation.html index 5a38a1472..22a9a8b09 100644 --- a/docs/classes/RentalCarReservation.html +++ b/docs/classes/RentalCarReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReplaceAction.html b/docs/classes/ReplaceAction.html index bb7df0105..0d4955543 100644 --- a/docs/classes/ReplaceAction.html +++ b/docs/classes/ReplaceAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReplyAction.html b/docs/classes/ReplyAction.html index 1f08b183b..98a78483a 100644 --- a/docs/classes/ReplyAction.html +++ b/docs/classes/ReplyAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Report.html b/docs/classes/Report.html index 473f837fe..4c163cab5 100644 --- a/docs/classes/Report.html +++ b/docs/classes/Report.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ResearchDoctorate.html b/docs/classes/ResearchDoctorate.html index e6b20c606..b346292be 100644 --- a/docs/classes/ResearchDoctorate.html +++ b/docs/classes/ResearchDoctorate.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Reservation.html b/docs/classes/Reservation.html index 13c9705d2..07e15a182 100644 --- a/docs/classes/Reservation.html +++ b/docs/classes/Reservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReservationPackage.html b/docs/classes/ReservationPackage.html index 34fe7fd5b..38aedaa86 100644 --- a/docs/classes/ReservationPackage.html +++ b/docs/classes/ReservationPackage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReservationStatusType.html b/docs/classes/ReservationStatusType.html index 676b191c9..47240ec70 100644 --- a/docs/classes/ReservationStatusType.html +++ b/docs/classes/ReservationStatusType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReserveAction.html b/docs/classes/ReserveAction.html index cdef90fdc..d86ec1f60 100644 --- a/docs/classes/ReserveAction.html +++ b/docs/classes/ReserveAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Reservoir.html b/docs/classes/Reservoir.html index 62e2b2187..a40b1491c 100644 --- a/docs/classes/Reservoir.html +++ b/docs/classes/Reservoir.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Residence.html b/docs/classes/Residence.html index 922637025..ff23f31ea 100644 --- a/docs/classes/Residence.html +++ b/docs/classes/Residence.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Resort.html b/docs/classes/Resort.html index 34beb19a0..197a03900 100644 --- a/docs/classes/Resort.html +++ b/docs/classes/Resort.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Restaurant.html b/docs/classes/Restaurant.html index cfa18907e..4eed24922 100644 --- a/docs/classes/Restaurant.html +++ b/docs/classes/Restaurant.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RestrictedDiet.html b/docs/classes/RestrictedDiet.html index 5f88faa77..d6184c437 100644 --- a/docs/classes/RestrictedDiet.html +++ b/docs/classes/RestrictedDiet.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ResumeAction.html b/docs/classes/ResumeAction.html index b1ec7feb0..42a9bcc52 100644 --- a/docs/classes/ResumeAction.html +++ b/docs/classes/ResumeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReturnAction.html b/docs/classes/ReturnAction.html index b72480018..227051721 100644 --- a/docs/classes/ReturnAction.html +++ b/docs/classes/ReturnAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Review.html b/docs/classes/Review.html index e96c93cb1..d51d55632 100644 --- a/docs/classes/Review.html +++ b/docs/classes/Review.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ReviewAction.html b/docs/classes/ReviewAction.html index b66c92e30..edc632b57 100644 --- a/docs/classes/ReviewAction.html +++ b/docs/classes/ReviewAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RevocationProfile.html b/docs/classes/RevocationProfile.html index 1c7bb0707..788cced04 100644 --- a/docs/classes/RevocationProfile.html +++ b/docs/classes/RevocationProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RevokeAction.html b/docs/classes/RevokeAction.html index 193175e53..8718a010b 100644 --- a/docs/classes/RevokeAction.html +++ b/docs/classes/RevokeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RightsAction.html b/docs/classes/RightsAction.html index e29017e3d..2bfae4787 100644 --- a/docs/classes/RightsAction.html +++ b/docs/classes/RightsAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RiverBodyOfWater.html b/docs/classes/RiverBodyOfWater.html index d90f55c9d..8554181c5 100644 --- a/docs/classes/RiverBodyOfWater.html +++ b/docs/classes/RiverBodyOfWater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Role.html b/docs/classes/Role.html index d7f49d29b..205ddc240 100644 --- a/docs/classes/Role.html +++ b/docs/classes/Role.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RollupRule.html b/docs/classes/RollupRule.html index b9018510d..1d90b89c7 100644 --- a/docs/classes/RollupRule.html +++ b/docs/classes/RollupRule.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -828,7 +828,7 @@

RollupRule Class

- Defined in: src/main/js/cass/org.cassproject.schema.cass.js:175 + Defined in: src/main/js/cass/org.cassproject.schema.cass.js:185
Module: org.cassproject @@ -2043,7 +2043,7 @@

competency

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:200 + src/main/js/cass/org.cassproject.schema.cass.js:211

@@ -3418,7 +3418,7 @@

rule

Defined in - src/main/js/cass/org.cassproject.schema.cass.js:193 + src/main/js/cass/org.cassproject.schema.cass.js:204

diff --git a/docs/classes/RoofingContractor.html b/docs/classes/RoofingContractor.html index 78bde10a9..cc06b55b0 100644 --- a/docs/classes/RoofingContractor.html +++ b/docs/classes/RoofingContractor.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Room.html b/docs/classes/Room.html index 7160d909b..7c7585fc1 100644 --- a/docs/classes/Room.html +++ b/docs/classes/Room.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RsvpAction.html b/docs/classes/RsvpAction.html index 08f674192..6db4ef772 100644 --- a/docs/classes/RsvpAction.html +++ b/docs/classes/RsvpAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/RsvpResponseType.html b/docs/classes/RsvpResponseType.html index 7c49020ac..5ab3f4718 100644 --- a/docs/classes/RsvpResponseType.html +++ b/docs/classes/RsvpResponseType.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SaleEvent.html b/docs/classes/SaleEvent.html index f429173ed..7a13ae54f 100644 --- a/docs/classes/SaleEvent.html +++ b/docs/classes/SaleEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ScheduleAction.html b/docs/classes/ScheduleAction.html index 1f3d073e5..7072b1b7d 100644 --- a/docs/classes/ScheduleAction.html +++ b/docs/classes/ScheduleAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ScholarlyArticle.html b/docs/classes/ScholarlyArticle.html index cfd0fea45..60bbd8b18 100644 --- a/docs/classes/ScholarlyArticle.html +++ b/docs/classes/ScholarlyArticle.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/School.html b/docs/classes/School.html index 9e0f1f366..8af9c86c1 100644 --- a/docs/classes/School.html +++ b/docs/classes/School.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ScreeningEvent.html b/docs/classes/ScreeningEvent.html index 874854f0a..44f7e0417 100644 --- a/docs/classes/ScreeningEvent.html +++ b/docs/classes/ScreeningEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Screenmanager.html b/docs/classes/Screenmanager.html index eec8480c7..257456c7c 100644 --- a/docs/classes/Screenmanager.html +++ b/docs/classes/Screenmanager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Sculpture.html b/docs/classes/Sculpture.html index f8f534e13..6411125ac 100644 --- a/docs/classes/Sculpture.html +++ b/docs/classes/Sculpture.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SeaBodyOfWater.html b/docs/classes/SeaBodyOfWater.html index 03dbf4296..d4d5141c6 100644 --- a/docs/classes/SeaBodyOfWater.html +++ b/docs/classes/SeaBodyOfWater.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SearchAction.html b/docs/classes/SearchAction.html index afec37b2a..2aebc18df 100644 --- a/docs/classes/SearchAction.html +++ b/docs/classes/SearchAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SearchResultsPage.html b/docs/classes/SearchResultsPage.html index 05b4d98ad..ac731ea05 100644 --- a/docs/classes/SearchResultsPage.html +++ b/docs/classes/SearchResultsPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Season.html b/docs/classes/Season.html index f1bd1a3da..7420b9aeb 100644 --- a/docs/classes/Season.html +++ b/docs/classes/Season.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Seat.html b/docs/classes/Seat.html index febd11ed8..42bb8fa83 100644 --- a/docs/classes/Seat.html +++ b/docs/classes/Seat.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SecondarySchoolDiploma.html b/docs/classes/SecondarySchoolDiploma.html index 59d9fa159..2379a867b 100644 --- a/docs/classes/SecondarySchoolDiploma.html +++ b/docs/classes/SecondarySchoolDiploma.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SelfStorage.html b/docs/classes/SelfStorage.html index 24e436883..fd2e41a05 100644 --- a/docs/classes/SelfStorage.html +++ b/docs/classes/SelfStorage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SellAction.html b/docs/classes/SellAction.html index dbf1e44e3..843b98409 100644 --- a/docs/classes/SellAction.html +++ b/docs/classes/SellAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SendAction.html b/docs/classes/SendAction.html index 5ea2b7ab4..8c157e14c 100644 --- a/docs/classes/SendAction.html +++ b/docs/classes/SendAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Series.html b/docs/classes/Series.html index 5f051f1b7..7aebcb863 100644 --- a/docs/classes/Series.html +++ b/docs/classes/Series.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Service.html b/docs/classes/Service.html index deca03373..f3c4a93c4 100644 --- a/docs/classes/Service.html +++ b/docs/classes/Service.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ServiceChannel.html b/docs/classes/ServiceChannel.html index 5a08e3b61..8e15580dd 100644 --- a/docs/classes/ServiceChannel.html +++ b/docs/classes/ServiceChannel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ShareAction.html b/docs/classes/ShareAction.html index a785059bc..555da67bc 100644 --- a/docs/classes/ShareAction.html +++ b/docs/classes/ShareAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ShoeStore.html b/docs/classes/ShoeStore.html index abf384fa3..d2390fedd 100644 --- a/docs/classes/ShoeStore.html +++ b/docs/classes/ShoeStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ShoppingCenter.html b/docs/classes/ShoppingCenter.html index 55db70371..8c03f3ba8 100644 --- a/docs/classes/ShoppingCenter.html +++ b/docs/classes/ShoppingCenter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SingleFamilyResidence.html b/docs/classes/SingleFamilyResidence.html index fe4c71680..d21e4163b 100644 --- a/docs/classes/SingleFamilyResidence.html +++ b/docs/classes/SingleFamilyResidence.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SiteNavigationElement.html b/docs/classes/SiteNavigationElement.html index f65a23ff7..a59637d87 100644 --- a/docs/classes/SiteNavigationElement.html +++ b/docs/classes/SiteNavigationElement.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SkiResort.html b/docs/classes/SkiResort.html index 160fdfbe7..4d5fb0ddb 100644 --- a/docs/classes/SkiResort.html +++ b/docs/classes/SkiResort.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SocialEvent.html b/docs/classes/SocialEvent.html index 34dcbbd3f..fa8d48352 100644 --- a/docs/classes/SocialEvent.html +++ b/docs/classes/SocialEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SocialMediaPosting.html b/docs/classes/SocialMediaPosting.html index 49dae48af..c61e3d9c9 100644 --- a/docs/classes/SocialMediaPosting.html +++ b/docs/classes/SocialMediaPosting.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SoftwareApplication.html b/docs/classes/SoftwareApplication.html index 1b4d1b0ad..06bf43daa 100644 --- a/docs/classes/SoftwareApplication.html +++ b/docs/classes/SoftwareApplication.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SoftwareSourceCode.html b/docs/classes/SoftwareSourceCode.html index 834e03e01..f3fd434b8 100644 --- a/docs/classes/SoftwareSourceCode.html +++ b/docs/classes/SoftwareSourceCode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SomeProducts.html b/docs/classes/SomeProducts.html index 2d8a417fb..6db2a86c6 100644 --- a/docs/classes/SomeProducts.html +++ b/docs/classes/SomeProducts.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Specialty.html b/docs/classes/Specialty.html index 0f5661832..ad64af0a4 100644 --- a/docs/classes/Specialty.html +++ b/docs/classes/Specialty.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportingGoodsStore.html b/docs/classes/SportingGoodsStore.html index 3f75dd3fe..4130f03a6 100644 --- a/docs/classes/SportingGoodsStore.html +++ b/docs/classes/SportingGoodsStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportsActivityLocation.html b/docs/classes/SportsActivityLocation.html index 7adc64fc0..adb6a6120 100644 --- a/docs/classes/SportsActivityLocation.html +++ b/docs/classes/SportsActivityLocation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportsClub.html b/docs/classes/SportsClub.html index 1a323f5dc..08678d392 100644 --- a/docs/classes/SportsClub.html +++ b/docs/classes/SportsClub.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportsEvent.html b/docs/classes/SportsEvent.html index 788203b04..3f4d960d6 100644 --- a/docs/classes/SportsEvent.html +++ b/docs/classes/SportsEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportsOrganization.html b/docs/classes/SportsOrganization.html index 699a25bb7..15f21fd01 100644 --- a/docs/classes/SportsOrganization.html +++ b/docs/classes/SportsOrganization.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SportsTeam.html b/docs/classes/SportsTeam.html index 0e2196388..c136fb209 100644 --- a/docs/classes/SportsTeam.html +++ b/docs/classes/SportsTeam.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SpreadsheetDigitalDocument.html b/docs/classes/SpreadsheetDigitalDocument.html index 6dfe5625d..92fd56999 100644 --- a/docs/classes/SpreadsheetDigitalDocument.html +++ b/docs/classes/SpreadsheetDigitalDocument.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/StadiumOrArena.html b/docs/classes/StadiumOrArena.html index e7720d9b8..9e9bf0808 100644 --- a/docs/classes/StadiumOrArena.html +++ b/docs/classes/StadiumOrArena.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/State.html b/docs/classes/State.html index a277798d5..429a9b7fb 100644 --- a/docs/classes/State.html +++ b/docs/classes/State.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SteeringPositionValue.html b/docs/classes/SteeringPositionValue.html index 9d44d6ec9..c81635d31 100644 --- a/docs/classes/SteeringPositionValue.html +++ b/docs/classes/SteeringPositionValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Store.html b/docs/classes/Store.html index 3dbe23b22..914b32d7a 100644 --- a/docs/classes/Store.html +++ b/docs/classes/Store.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/StructuredValue.html b/docs/classes/StructuredValue.html index 8f6c0db3f..535e795bb 100644 --- a/docs/classes/StructuredValue.html +++ b/docs/classes/StructuredValue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SubscribeAction.html b/docs/classes/SubscribeAction.html index 18f72c6bf..7bbcdaaf6 100644 --- a/docs/classes/SubscribeAction.html +++ b/docs/classes/SubscribeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SubwayStation.html b/docs/classes/SubwayStation.html index fbb243aad..bdb920e31 100644 --- a/docs/classes/SubwayStation.html +++ b/docs/classes/SubwayStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Suite.html b/docs/classes/Suite.html index bcfde1cfb..0dd1eabeb 100644 --- a/docs/classes/Suite.html +++ b/docs/classes/Suite.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/SuspendAction.html b/docs/classes/SuspendAction.html index 04e65ec36..2761c5d13 100644 --- a/docs/classes/SuspendAction.html +++ b/docs/classes/SuspendAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Synagogue.html b/docs/classes/Synagogue.html index 3faab50d8..883bccae8 100644 --- a/docs/classes/Synagogue.html +++ b/docs/classes/Synagogue.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TVClip.html b/docs/classes/TVClip.html index 16317b0a9..4714a95b6 100644 --- a/docs/classes/TVClip.html +++ b/docs/classes/TVClip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TVEpisode.html b/docs/classes/TVEpisode.html index ed102e6ac..838eb555c 100644 --- a/docs/classes/TVEpisode.html +++ b/docs/classes/TVEpisode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TVSeason.html b/docs/classes/TVSeason.html index c44735dbe..3d7bef86e 100644 --- a/docs/classes/TVSeason.html +++ b/docs/classes/TVSeason.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TVSeries.html b/docs/classes/TVSeries.html index a9b735672..e24d3784f 100644 --- a/docs/classes/TVSeries.html +++ b/docs/classes/TVSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Table.html b/docs/classes/Table.html index 43b7e32b9..ec3abcc47 100644 --- a/docs/classes/Table.html +++ b/docs/classes/Table.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TakeAction.html b/docs/classes/TakeAction.html index d85b5a597..4d60886b3 100644 --- a/docs/classes/TakeAction.html +++ b/docs/classes/TakeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Task.html b/docs/classes/Task.html index 9bdbe5078..898a25232 100644 --- a/docs/classes/Task.html +++ b/docs/classes/Task.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TaskProfile.html b/docs/classes/TaskProfile.html index 4d45acc2a..90fa88dfa 100644 --- a/docs/classes/TaskProfile.html +++ b/docs/classes/TaskProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TattooParlor.html b/docs/classes/TattooParlor.html index 789dede02..25abb99fe 100644 --- a/docs/classes/TattooParlor.html +++ b/docs/classes/TattooParlor.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Taxi.html b/docs/classes/Taxi.html index 36713e878..da6d408b3 100644 --- a/docs/classes/Taxi.html +++ b/docs/classes/Taxi.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TaxiReservation.html b/docs/classes/TaxiReservation.html index 4b4a5fb0e..c04e363bd 100644 --- a/docs/classes/TaxiReservation.html +++ b/docs/classes/TaxiReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TaxiService.html b/docs/classes/TaxiService.html index 3d3eb563f..2bf8fa82b 100644 --- a/docs/classes/TaxiService.html +++ b/docs/classes/TaxiService.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TaxiStand.html b/docs/classes/TaxiStand.html index 14266a815..df9259231 100644 --- a/docs/classes/TaxiStand.html +++ b/docs/classes/TaxiStand.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TechArticle.html b/docs/classes/TechArticle.html index 1c3cd3649..6f9961d24 100644 --- a/docs/classes/TechArticle.html +++ b/docs/classes/TechArticle.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TelevisionChannel.html b/docs/classes/TelevisionChannel.html index 6b72156e0..ea0a69015 100644 --- a/docs/classes/TelevisionChannel.html +++ b/docs/classes/TelevisionChannel.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TelevisionStation.html b/docs/classes/TelevisionStation.html index a77e7da0c..347c120f7 100644 --- a/docs/classes/TelevisionStation.html +++ b/docs/classes/TelevisionStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TennisComplex.html b/docs/classes/TennisComplex.html index 0f336a71b..036028f8e 100644 --- a/docs/classes/TennisComplex.html +++ b/docs/classes/TennisComplex.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TextDigitalDocument.html b/docs/classes/TextDigitalDocument.html index 39c662138..0eec44367 100644 --- a/docs/classes/TextDigitalDocument.html +++ b/docs/classes/TextDigitalDocument.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TheaterEvent.html b/docs/classes/TheaterEvent.html index 7e6feebfb..de6cf01f9 100644 --- a/docs/classes/TheaterEvent.html +++ b/docs/classes/TheaterEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TheaterGroup.html b/docs/classes/TheaterGroup.html index 9654a8e86..70d02537f 100644 --- a/docs/classes/TheaterGroup.html +++ b/docs/classes/TheaterGroup.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Thing.html b/docs/classes/Thing.html index b12ad0e1c..99e2795b5 100644 --- a/docs/classes/Thing.html +++ b/docs/classes/Thing.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Ticket.html b/docs/classes/Ticket.html index 5ddfb8fdb..62704cb1b 100644 --- a/docs/classes/Ticket.html +++ b/docs/classes/Ticket.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TieAction.html b/docs/classes/TieAction.html index 08f58d155..9023398bd 100644 --- a/docs/classes/TieAction.html +++ b/docs/classes/TieAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TipAction.html b/docs/classes/TipAction.html index 360a1fc0a..bff67c8f0 100644 --- a/docs/classes/TipAction.html +++ b/docs/classes/TipAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TireShop.html b/docs/classes/TireShop.html index 684229f2a..cf25ba012 100644 --- a/docs/classes/TireShop.html +++ b/docs/classes/TireShop.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TouristAttraction.html b/docs/classes/TouristAttraction.html index b4e7c78ea..63c12a8b9 100644 --- a/docs/classes/TouristAttraction.html +++ b/docs/classes/TouristAttraction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TouristInformationCenter.html b/docs/classes/TouristInformationCenter.html index 0feb83586..ab346834c 100644 --- a/docs/classes/TouristInformationCenter.html +++ b/docs/classes/TouristInformationCenter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ToyStore.html b/docs/classes/ToyStore.html index e7b60cf86..a4cc675eb 100644 --- a/docs/classes/ToyStore.html +++ b/docs/classes/ToyStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TrackAction.html b/docs/classes/TrackAction.html index 6f66e2255..578291a00 100644 --- a/docs/classes/TrackAction.html +++ b/docs/classes/TrackAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TradeAction.html b/docs/classes/TradeAction.html index 8262e0e2e..52685573f 100644 --- a/docs/classes/TradeAction.html +++ b/docs/classes/TradeAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TrainReservation.html b/docs/classes/TrainReservation.html index 451e6e51c..97c28a6a6 100644 --- a/docs/classes/TrainReservation.html +++ b/docs/classes/TrainReservation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TrainStation.html b/docs/classes/TrainStation.html index 366edee09..5c1e907f6 100644 --- a/docs/classes/TrainStation.html +++ b/docs/classes/TrainStation.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TrainTrip.html b/docs/classes/TrainTrip.html index 45c8e03df..89a80433b 100644 --- a/docs/classes/TrainTrip.html +++ b/docs/classes/TrainTrip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TransferAction.html b/docs/classes/TransferAction.html index a739a2187..b41d8a4c9 100644 --- a/docs/classes/TransferAction.html +++ b/docs/classes/TransferAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TravelAction.html b/docs/classes/TravelAction.html index 8495ee424..c630f8365 100644 --- a/docs/classes/TravelAction.html +++ b/docs/classes/TravelAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TravelAgency.html b/docs/classes/TravelAgency.html index a5eb5ac3e..e0162ece4 100644 --- a/docs/classes/TravelAgency.html +++ b/docs/classes/TravelAgency.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Triple.html b/docs/classes/Triple.html index 6c9d0aca3..39a9bb78e 100644 --- a/docs/classes/Triple.html +++ b/docs/classes/Triple.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/TypeAndQuantityNode.html b/docs/classes/TypeAndQuantityNode.html index e47555404..db7a25489 100644 --- a/docs/classes/TypeAndQuantityNode.html +++ b/docs/classes/TypeAndQuantityNode.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UnRegisterAction.html b/docs/classes/UnRegisterAction.html index 36ddfd45e..08c3af981 100644 --- a/docs/classes/UnRegisterAction.html +++ b/docs/classes/UnRegisterAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UnitPriceSpecification.html b/docs/classes/UnitPriceSpecification.html index b004d1592..d443b3f0a 100644 --- a/docs/classes/UnitPriceSpecification.html +++ b/docs/classes/UnitPriceSpecification.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UpdateAction.html b/docs/classes/UpdateAction.html index 28a58a2f7..93e3c738a 100644 --- a/docs/classes/UpdateAction.html +++ b/docs/classes/UpdateAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UseAction.html b/docs/classes/UseAction.html index a32f315a5..6942453f1 100644 --- a/docs/classes/UseAction.html +++ b/docs/classes/UseAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserBlocks.html b/docs/classes/UserBlocks.html index f624d7b2b..529655281 100644 --- a/docs/classes/UserBlocks.html +++ b/docs/classes/UserBlocks.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserCheckins.html b/docs/classes/UserCheckins.html index 0e4e35ced..74796947b 100644 --- a/docs/classes/UserCheckins.html +++ b/docs/classes/UserCheckins.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserComments.html b/docs/classes/UserComments.html index 237e63cfc..7eda814ce 100644 --- a/docs/classes/UserComments.html +++ b/docs/classes/UserComments.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserDownloads.html b/docs/classes/UserDownloads.html index 72730478f..d8d854235 100644 --- a/docs/classes/UserDownloads.html +++ b/docs/classes/UserDownloads.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserInteraction.html b/docs/classes/UserInteraction.html index 55628b315..ff14d247d 100644 --- a/docs/classes/UserInteraction.html +++ b/docs/classes/UserInteraction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserLikes.html b/docs/classes/UserLikes.html index 63b37b3ca..9708491dc 100644 --- a/docs/classes/UserLikes.html +++ b/docs/classes/UserLikes.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserPageVisits.html b/docs/classes/UserPageVisits.html index 79ea63394..1a59c71ad 100644 --- a/docs/classes/UserPageVisits.html +++ b/docs/classes/UserPageVisits.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserPlays.html b/docs/classes/UserPlays.html index 94e4fdb16..a99eb85d2 100644 --- a/docs/classes/UserPlays.html +++ b/docs/classes/UserPlays.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserPlusOnes.html b/docs/classes/UserPlusOnes.html index 43607d382..a07dc788c 100644 --- a/docs/classes/UserPlusOnes.html +++ b/docs/classes/UserPlusOnes.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/UserTweets.html b/docs/classes/UserTweets.html index f4243c1cc..5fb107df7 100644 --- a/docs/classes/UserTweets.html +++ b/docs/classes/UserTweets.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Vehicle.html b/docs/classes/Vehicle.html index ba433c0e9..848725113 100644 --- a/docs/classes/Vehicle.html +++ b/docs/classes/Vehicle.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VerificationServiceProfile.html b/docs/classes/VerificationServiceProfile.html index f7f53c910..20340aa37 100644 --- a/docs/classes/VerificationServiceProfile.html +++ b/docs/classes/VerificationServiceProfile.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VideoGallery.html b/docs/classes/VideoGallery.html index bcb6f271a..7cdf4c841 100644 --- a/docs/classes/VideoGallery.html +++ b/docs/classes/VideoGallery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VideoGame.html b/docs/classes/VideoGame.html index be9a428d9..a9c2596b7 100644 --- a/docs/classes/VideoGame.html +++ b/docs/classes/VideoGame.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VideoGameClip.html b/docs/classes/VideoGameClip.html index 4d593846f..a6d7ff097 100644 --- a/docs/classes/VideoGameClip.html +++ b/docs/classes/VideoGameClip.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VideoGameSeries.html b/docs/classes/VideoGameSeries.html index 1040a6d83..4d0bcf116 100644 --- a/docs/classes/VideoGameSeries.html +++ b/docs/classes/VideoGameSeries.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VideoObject.html b/docs/classes/VideoObject.html index e7841c50c..720c7b0df 100644 --- a/docs/classes/VideoObject.html +++ b/docs/classes/VideoObject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ViewAction.html b/docs/classes/ViewAction.html index c91ab4761..ab0f4f0e2 100644 --- a/docs/classes/ViewAction.html +++ b/docs/classes/ViewAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/ViewManager.html b/docs/classes/ViewManager.html index c70a2f9ee..ef8ff935c 100644 --- a/docs/classes/ViewManager.html +++ b/docs/classes/ViewManager.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VisualArtsEvent.html b/docs/classes/VisualArtsEvent.html index a408df5b1..80103536e 100644 --- a/docs/classes/VisualArtsEvent.html +++ b/docs/classes/VisualArtsEvent.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VisualArtwork.html b/docs/classes/VisualArtwork.html index c41c88d9f..639839672 100644 --- a/docs/classes/VisualArtwork.html +++ b/docs/classes/VisualArtwork.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Volcano.html b/docs/classes/Volcano.html index 373770b9f..0778d0df7 100644 --- a/docs/classes/Volcano.html +++ b/docs/classes/Volcano.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/VoteAction.html b/docs/classes/VoteAction.html index d0c4de7f1..ddee0d1ec 100644 --- a/docs/classes/VoteAction.html +++ b/docs/classes/VoteAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WPAdBlock.html b/docs/classes/WPAdBlock.html index 4a2d8f8ef..3f0334022 100644 --- a/docs/classes/WPAdBlock.html +++ b/docs/classes/WPAdBlock.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WPFooter.html b/docs/classes/WPFooter.html index eeb52fb14..1d71fd42c 100644 --- a/docs/classes/WPFooter.html +++ b/docs/classes/WPFooter.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WPHeader.html b/docs/classes/WPHeader.html index a329cf7ad..02fa6de05 100644 --- a/docs/classes/WPHeader.html +++ b/docs/classes/WPHeader.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WPSideBar.html b/docs/classes/WPSideBar.html index b9f28d8ec..1f982df28 100644 --- a/docs/classes/WPSideBar.html +++ b/docs/classes/WPSideBar.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WantAction.html b/docs/classes/WantAction.html index 32a2092ad..6901b6e9d 100644 --- a/docs/classes/WantAction.html +++ b/docs/classes/WantAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WarrantyPromise.html b/docs/classes/WarrantyPromise.html index caeb74c16..50ae67785 100644 --- a/docs/classes/WarrantyPromise.html +++ b/docs/classes/WarrantyPromise.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WarrantyScope.html b/docs/classes/WarrantyScope.html index 84635acaf..85481ee3f 100644 --- a/docs/classes/WarrantyScope.html +++ b/docs/classes/WarrantyScope.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WatchAction.html b/docs/classes/WatchAction.html index 56d9a6d32..f2f762ae6 100644 --- a/docs/classes/WatchAction.html +++ b/docs/classes/WatchAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Waterfall.html b/docs/classes/Waterfall.html index 2b1bdd0cb..61b476263 100644 --- a/docs/classes/Waterfall.html +++ b/docs/classes/Waterfall.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WearAction.html b/docs/classes/WearAction.html index 329737183..45cc8ae78 100644 --- a/docs/classes/WearAction.html +++ b/docs/classes/WearAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WebApplication.html b/docs/classes/WebApplication.html index 2c937916a..2ede8e548 100644 --- a/docs/classes/WebApplication.html +++ b/docs/classes/WebApplication.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WebPage.html b/docs/classes/WebPage.html index 62c4a628c..d5cf94ffb 100644 --- a/docs/classes/WebPage.html +++ b/docs/classes/WebPage.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WebPageElement.html b/docs/classes/WebPageElement.html index efe8f97ee..8c9ca56fb 100644 --- a/docs/classes/WebPageElement.html +++ b/docs/classes/WebPageElement.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WebSite.html b/docs/classes/WebSite.html index 8d65362ce..f5a49aced 100644 --- a/docs/classes/WebSite.html +++ b/docs/classes/WebSite.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WholesaleStore.html b/docs/classes/WholesaleStore.html index edfbf657c..573d65d88 100644 --- a/docs/classes/WholesaleStore.html +++ b/docs/classes/WholesaleStore.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WinAction.html b/docs/classes/WinAction.html index 1777590f4..15d021d18 100644 --- a/docs/classes/WinAction.html +++ b/docs/classes/WinAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/Winery.html b/docs/classes/Winery.html index a04b1456a..9c92dc2c9 100644 --- a/docs/classes/Winery.html +++ b/docs/classes/Winery.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/WriteAction.html b/docs/classes/WriteAction.html index c431b6f97..d15ccdc60 100644 --- a/docs/classes/WriteAction.html +++ b/docs/classes/WriteAction.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/classes/XapiConfig.html b/docs/classes/XapiConfig.html index 4dc373da9..9fc6e6b2d 100644 --- a/docs/classes/XapiConfig.html +++ b/docs/classes/XapiConfig.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

XapiConfig Class

- Defined in: src/main/js/cass/cass.adapter.js:103 + Defined in: src/main/js/cass/cass.adapter.js:106
Module: org.cassproject @@ -902,7 +902,7 @@

get

Defined in - src/main/js/cass/cass.adapter.js:120 + src/main/js/cass/cass.adapter.js:123

@@ -984,7 +984,7 @@

save

Defined in - src/main/js/cass/cass.adapter.js:137 + src/main/js/cass/cass.adapter.js:141

diff --git a/docs/classes/Zoo.html b/docs/classes/Zoo.html index 22ce5c9cf..965c3cc02 100644 --- a/docs/classes/Zoo.html +++ b/docs/classes/Zoo.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/data.json b/docs/data.json index 60b3aebd7..2d33145c7 100644 --- a/docs/data.json +++ b/docs/data.json @@ -2,7 +2,7 @@ "project": { "name": "CASS Javascript Library", "description": "CASS Javascript Library API: ", - "version": "1.2.11", + "version": "1.2.12", "url": "http://cassproject.org/", "logo": "http://docs.cassproject.org/img/customLogo-blue.png" }, @@ -957,7 +957,7 @@ "namespaces": {}, "tag": "module", "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 61, + "line": 62, "description": "Location of strings that store the current namespace for EBAC/KBAC.", "author": "devlin.junker@eduworks.com", "is_constructor": 1, @@ -1747,7 +1747,7 @@ "namespaces": {}, "tag": "module", "file": "src/main/js/cass/org.w3.skos.js", - "line": 128, + "line": 138, "description": "www.w3.org/2004/02/skos/core/Collection\nA meaningful collection of concepts.\nLabelled collections can be used where you would like a set of concepts to be displayed under a 'node label' in the hierarchy." } }, @@ -1778,7 +1778,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/cass.adapter.js", - "line": 103, + "line": 106, "description": "Object that holds the xAPI Adapter configuration values returned\nfrom the server and provides methods for saving new config values", "author": "devlin.junker@eduworks.com" }, @@ -1928,7 +1928,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/cass.import.js", - "line": 1052, + "line": 1070, "description": "Import methods to handle an ASN JSON file containing a framework,\ncompetencies and relationships, and store them in a CASS instance", "author": "fritz.ray@eduworks.com" }, @@ -1943,7 +1943,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/cass.import.js", - "line": 1415, + "line": 1433, "description": "Importer methods to create competencies based on a\nMedbiquitous competency XML file", "author": "fritz.ray@eduworks.com" }, @@ -1958,7 +1958,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/cass.import.js", - "line": 1582, + "line": 1600, "description": "Export methods to handle exporting two CSV file , one of competencies\nand one of relationships representing a framework", "author": "fritz.ray@eduworks.com" }, @@ -2153,7 +2153,7 @@ "module": "com.eduworks.ec", "namespace": "", "file": "src/main/js/cass/ebac.repository.js", - "line": 2319, + "line": 2338, "description": "Implementation of a file with methods for communicating with repository services", "author": "devlin.junker@eduworks.com" }, @@ -2627,7 +2627,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 106, + "line": 111, "description": "When an individual's performance in a competency can be measured, a level specifies milestones that an individual can reach, creating fine-grained distinction between the proficient and the adept.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2643,7 +2643,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 175, + "line": 185, "description": "A segment of script that defines in a domain specific language how competence is transferred from one competency to another.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2659,7 +2659,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 228, + "line": 243, "description": "A Competency Framework or simply Framework is a collection of competencies and relations between competencies in the framework and potentially between competencies in the framework and competencies in other frameworks. In practice, a Framework represents competencies related to a specific job, task, organization, career, knowledge domain, etc.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2675,7 +2675,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 303, + "line": 323, "description": "A relation between two objects.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2691,7 +2691,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 446, + "line": 471, "description": "A claim of competence in CASS is called an Assertion. It states with some confidence that an individual has mastered a competency at a given level, provides evidence of such mastery, and records data such as the time of assertion and the party making the assertion.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2707,7 +2707,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 746, + "line": 776, "description": "Container for storing assertions and the secrets used to decrypt those assertions.", "author": "fritz.ray@eduworks.com", "extends": "CreativeWork" @@ -2738,7 +2738,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 84, + "line": 89, "description": "Message used to retrieve credentials from a remote system.\n

\nTODO: Vulnerable to replay attacks.", "author": "fritz.ray@eduworks.com" }, @@ -2753,7 +2753,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 134, + "line": 144, "description": "Credential list along with one time pad and session-based token for use in\ncommit actions.", "author": "fritz.ray@eduworks.com" }, @@ -2768,7 +2768,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 197, + "line": 212, "description": "AES encrypted public key and display name. Contains Initialization Vectors,\nbut not secrets. Used to encrypt public identities for storage on remote\nsystems.", "author": "fritz.ray@eduworks.com" }, @@ -2783,7 +2783,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 275, + "line": 295, "description": "Component of EbacEncryptedValue that contains data needed to decrypt\nencrypted payload. Is, itself, encrypted.\n

\nAlso contains data used to verify that encrypted-data substitution attacks\nwere not performed on the data.\n

\nMust be encryptable by RSA-2048, therefore, serialized form must less than 256\nbytes.", "author": "fritz.ray@eduworks.com" }, @@ -2798,7 +2798,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 381, + "line": 406, "description": "Signature used to authorize movement of data on behalf of a private-key\nholding owner.", "author": "fritz.ray@eduworks.com" }, @@ -2813,7 +2813,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 448, + "line": 478, "description": "Encrypted JSON-LD object or string.", "author": "fritz.ray@eduworks.com" }, @@ -2828,7 +2828,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 527, + "line": 562, "description": "AES encrypted public key and display name message.\nUsed to grant access to a contact.\nContains Initialization Vectors, but not secrets.\nUsed to encrypt public identities for storage on remote systems.", "author": "fritz.ray@eduworks.com" }, @@ -2843,7 +2843,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 600, + "line": 640, "description": "Message used to commit credentials to a remote login server.\n

\nTODO: Vulnerable to replay attacks. Token field prevents some replay\nattacks.", "author": "fritz.ray@eduworks.com" }, @@ -2888,7 +2888,7 @@ "module": "org.cassproject", "namespace": "", "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 61, + "line": 62, "description": "Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for\npermission controls, signing, identifying and locating the object.", "author": "fritz.ray@eduworks.com", "extends": "EcLinkedData" @@ -13463,7 +13463,7 @@ "module": "org.w3.skos", "namespace": "", "file": "src/main/js/cass/org.w3.skos.js", - "line": 89, + "line": 94, "description": "www.w3.org/2004/02/skos/core/ConceptScheme\nA set of concepts, optionally including statements about semantic relationships between those concepts.\nA concept scheme may be defined to include concepts from different sources.", "author": "w3.org" }, @@ -13478,7 +13478,7 @@ "module": "org.w3.skos", "namespace": "", "file": "src/main/js/cass/org.w3.skos.js", - "line": 128, + "line": 138, "description": "www.w3.org/2004/02/skos/core/OrderedCollection\nAn ordered collection of concepts, where both the grouping and the ordering are meaningful.\nOrdered collections can be used where you would like a set of concepts to be displayed in a specific order, and optionally under a 'node label'.", "author": "w3.org", "extends": "Collection" @@ -14939,7 +14939,7 @@ }, { "file": "src/main/js/cass/cass.adapter.js", - "line": 56, + "line": 57, "description": "Retrieves the Moodle adapter Encryption Key from the server to share frameworks with", "params": [ { @@ -14967,7 +14967,7 @@ }, { "file": "src/main/js/cass/cass.adapter.js", - "line": 82, + "line": 84, "description": "Saves this config Objects configuration values to the server specified", "params": [ { @@ -14994,7 +14994,7 @@ }, { "file": "src/main/js/cass/cass.adapter.js", - "line": 120, + "line": 123, "description": "Retrieves the adapter configuration values from the server", "params": [ { @@ -15019,7 +15019,7 @@ }, { "file": "src/main/js/cass/cass.adapter.js", - "line": 137, + "line": 141, "description": "Saves this config Objects configuration values to the server specified", "params": [ { @@ -16989,7 +16989,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 966, + "line": 984, "description": "Method to create competencies (and relationships if the parameters are passed in)\nbased on a CSV file and references to which columns correspond to which pieces\nof data.", "params": [ { @@ -17039,7 +17039,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1078, + "line": 1096, "description": "Recursive function that looks through the file and saves each\ncompetency object in a map for use during importing. It also counts\nthe number of competencies and relationships that it finds", "params": [ { @@ -17064,7 +17064,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1110, + "line": 1128, "description": "Does the actual legwork of looking for competencies and relationships.\n

\nThis function finds the framework information, and pulls out the competency\nobjects array to be scanned by asnJsonPrime", "params": [ { @@ -17084,7 +17084,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1144, + "line": 1162, "description": "Analyzes an ASN File for competencies and relationships.\n

\nThis should be called before import, the success callback returns an object\nindicating the number of competencies and relationships found.", "params": [ { @@ -17113,7 +17113,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1188, + "line": 1206, "description": "Method to import the competencies from an ASN JSON file,\nshould be called after analyzing the file", "params": [ { @@ -17157,7 +17157,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1234, + "line": 1252, "description": "Handles creating the competencies found during analysis, iterates through the\ncompetency ASN objects saved and creates them in the CASS repository at the URL given.", "params": [ { @@ -17198,7 +17198,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1304, + "line": 1322, "description": "Handles creating the relationships from the file analyzed earlier.\nRecursively travels through looking for the hasChild field and creates\nrelationships based off of that.", "params": [ { @@ -17248,7 +17248,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1375, + "line": 1393, "description": "Handles creating the framework if the createFramework flag was set", "params": [ { @@ -17283,7 +17283,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1434, + "line": 1452, "description": "Does the legwork of looking for competencies in the XML", "params": [ { @@ -17303,7 +17303,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1453, + "line": 1471, "description": "Does the legwork of parsing the competencies out of the parsed XML", "params": [ { @@ -17323,7 +17323,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1482, + "line": 1500, "description": "Analyzes a Medbiquitous XML file for competencies and saves them for use in the import process", "params": [ { @@ -17352,7 +17352,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1521, + "line": 1539, "description": "Method for actually creating the competencies in the CASS repository after a\nMedbiquitous XML file has been parsed. Must be called after analyzeFile", "params": [ { @@ -17392,7 +17392,7 @@ }, { "file": "src/main/js/cass/cass.import.js", - "line": 1604, + "line": 1622, "description": "Method to export the CSV files of competencies and relationships for a framework", "params": [ { @@ -19865,7 +19865,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1148, + "line": 1159, "description": "Retrieves a piece of data synchronously from the server, blocking until\nit is returned", "params": [ { @@ -19887,7 +19887,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1213, + "line": 1225, "description": "Escapes a search query", "params": [ { @@ -19909,7 +19909,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1248, + "line": 1260, "description": "Attempts to save a piece of data.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -19937,7 +19937,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1265, + "line": 1277, "description": "Attempts to save a piece of data. If the @id of the data is not of this server, will register the data to the server.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -19965,7 +19965,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1282, + "line": 1294, "description": "Attempts to save a piece of data. Does some checks before saving to\nensure the data is valid. This version does not send a console warning,\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -19993,7 +19993,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1322, + "line": 1334, "description": "Attempts to save many pieces of data. Does some checks before saving to\nensure the data is valid. This version does not send a console warning,\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -20021,7 +20021,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1403, + "line": 1415, "description": "Attempts to save a piece of data without signing it.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -20049,7 +20049,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1454, + "line": 1472, "description": "Attempts to delete a piece of data.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -20077,7 +20077,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1472, + "line": 1490, "description": "Attempts to delete a piece of data.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -20105,7 +20105,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1525, + "line": 1544, "description": "Attempts to delete a piece of data.\n

\nUses a signature sheet informed by the owner field of the data.", "params": [ { @@ -20133,7 +20133,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1574, + "line": 1593, "description": "Retrieves data from the server and caches it for use later during the\napplication. This should be called before the data is needed if possible,\nso loading displays can be faster.", "params": [ { @@ -20155,7 +20155,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1619, + "line": 1638, "description": "Retrieves data from the server and caches it for use later during the\napplication. This should be called before the data is needed if possible,\nso loading displays can be faster.", "params": [ { @@ -20177,7 +20177,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1657, + "line": 1676, "description": "Returns an array of JSON-LD objects from the places designated by the given URIs.\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20209,7 +20209,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1703, + "line": 1722, "description": "Search a repository for JSON-LD compatible data.\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20241,7 +20241,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1721, + "line": 1740, "description": "Search a repository for JSON-LD compatible data synchronously.\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20261,7 +20261,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1735, + "line": 1754, "description": "Search a repository for JSON-LD compatible data.\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20298,7 +20298,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1845, + "line": 1864, "description": "Search a repository for JSON-LD compatible data synchronously.\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20323,7 +20323,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 1960, + "line": 1979, "description": "Searches known repository endpoints to set the server configuration for\nthis repositories instance", "memberof": "EcRepository", "itemtype": "method", @@ -20333,7 +20333,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2034, + "line": 2053, "description": "Searches known repository endpoints to set the server configuration for\nthis repositories instance", "memberof": "EcRepository", "itemtype": "method", @@ -20343,7 +20343,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2105, + "line": 2124, "description": "Handles the actual detection of repository endpoint /ping service", "params": [ { @@ -20366,7 +20366,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2151, + "line": 2170, "description": "Handles the actual detection of repository endpoint /ping service", "params": [ { @@ -20389,7 +20389,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2194, + "line": 2213, "description": "Lists all types visible to the current user in the repository\n

\nUses a signature sheet gathered from {@link EcIdentityManager}.", "params": [ { @@ -20411,7 +20411,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2214, + "line": 2233, "description": "Backs up the skyrepo elasticsearch database to the server backup directory", "params": [ { @@ -20438,7 +20438,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2226, + "line": 2245, "description": "Restores the skyrepo elasticsearch backup from the server backup directory", "params": [ { @@ -20465,7 +20465,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2238, + "line": 2257, "description": "Wipes all data from the the skyrepo elasticsearch, can only be restored by using backup restore", "params": [ { @@ -20492,7 +20492,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2250, + "line": 2269, "description": "Handles the search results in search by params, before returning them\nwith the callback passed into search method", "params": [ { @@ -20525,7 +20525,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2287, + "line": 2306, "description": "Fetches the admin keys from the server to compare for check if current\nuser is an admin user", "params": [ { @@ -20547,7 +20547,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2332, + "line": 2351, "description": "Factory method for creating a file with certain values", "params": [ { @@ -20579,7 +20579,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2354, + "line": 2373, "description": "Retrieves a file from the server specified by it's ID", "params": [ { @@ -20607,7 +20607,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2388, + "line": 2407, "description": "Searches the repository given for files that match the query passed in", "params": [ { @@ -20652,7 +20652,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2437, + "line": 2456, "description": "Saves this file in the repository using the repository web services", "params": [ { @@ -20674,7 +20674,7 @@ }, { "file": "src/main/js/cass/ebac.repository.js", - "line": 2458, + "line": 2477, "description": "Deletes the file from the repository using repository web services", "params": [ { @@ -29747,7 +29747,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 67, + "line": 68, "description": "Scope in which the competency may be applied. e.g. Underwater.", "itemtype": "property", "name": "scope", @@ -29757,7 +29757,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 125, + "line": 131, "description": "Specifies the URL of the competency this level relates to.", "itemtype": "property", "name": "competency", @@ -29767,7 +29767,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 132, + "line": 138, "description": "The title that one who holds this performance level may assume.", "itemtype": "property", "name": "title", @@ -29777,7 +29777,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 139, + "line": 145, "description": "The performance characteristics required by this level in text form.\nFR - Represented by description.", "itemtype": "property", "name": "performance", @@ -29787,7 +29787,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 193, + "line": 204, "description": "The rollup rule encoded as source code that is understandable to the assertion processor.", "itemtype": "property", "name": "rule", @@ -29797,7 +29797,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 200, + "line": 211, "description": "Specifies the URL of the competency that the rollup rule pertains to.", "itemtype": "property", "name": "competency", @@ -29807,7 +29807,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 247, + "line": 263, "description": "URLs of competencies included in this framework.", "itemtype": "property", "name": "competency", @@ -29817,7 +29817,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 254, + "line": 270, "description": "URLs of relations included in this framework.", "itemtype": "property", "name": "relation", @@ -29827,7 +29827,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 261, + "line": 277, "description": "URLs of levels included in this framework.", "itemtype": "property", "name": "level", @@ -29837,7 +29837,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 268, + "line": 284, "description": "URLs of RollupRules included in this framework.", "itemtype": "property", "name": "rollupRule", @@ -29847,7 +29847,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 316, + "line": 336, "description": "Relation type when one object enables the capability to obtain another.\nEnabling relations do not imply a requirement, but makes the acquisition of the source much easier.", "itemtype": "property", "name": "IS_ENABLED_BY", @@ -29858,7 +29858,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 325, + "line": 345, "description": "Relation type when one object requires another.\nRequiring relations are strict.", "itemtype": "property", "name": "REQUIRES", @@ -29869,7 +29869,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 334, + "line": 354, "description": "Relation type when one object desires another.\nDesire relations improve the range of applicability or improve performance of the source.", "itemtype": "property", "name": "DESIRES", @@ -29880,7 +29880,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 343, + "line": 363, "description": "Relation type when one object is a subset of another.\nNarrows relations are strict, and represent a super/sub relation.", "itemtype": "property", "name": "NARROWS", @@ -29891,7 +29891,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 352, + "line": 372, "description": "Relation type when one object is related to another.\nRelated relations provide linkages that do not necessarily carry information.\nRelated relations are bidirectional.", "itemtype": "property", "name": "IS_RELATED_TO", @@ -29902,7 +29902,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 362, + "line": 382, "description": "Relation type when one object is equivalent to another.\nEquivalent relations define two objects that are effectively equivalent.\nEquivalent relations are bidirectional.", "itemtype": "property", "name": "IS_EQUIVALENT_TO", @@ -29913,7 +29913,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 378, + "line": 399, "description": "URL of the object at the beginning of the relation.\nA B, this is A.", "itemtype": "property", "name": "source", @@ -29923,7 +29923,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 386, + "line": 407, "description": "URL of the object at the end of the relation.\nA B, this is B.", "itemtype": "property", "name": "target", @@ -29933,7 +29933,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 394, + "line": 415, "description": "URL or controlled vocabulary of the relation.\nA B, this is .", "itemtype": "property", "name": "relationType", @@ -29943,7 +29943,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 402, + "line": 423, "description": "Date time in ISO 8601 format at which the relation may be observed.", "itemtype": "property", "name": "validFrom", @@ -29953,7 +29953,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 409, + "line": 430, "description": "Date time in ISO 8601 format at which the relation may no longer be observed.", "itemtype": "property", "name": "validThrough", @@ -29963,7 +29963,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 466, + "line": 492, "description": "URL of the competency.", "itemtype": "property", "name": "competency", @@ -29973,7 +29973,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 473, + "line": 499, "description": "URL of the framework within which the assertion is restricted.", "itemtype": "property", "name": "framework", @@ -29983,7 +29983,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 480, + "line": 506, "description": "URL of the level, or null if 'held with no performance expectations'.", "itemtype": "property", "name": "level", @@ -29993,7 +29993,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 487, + "line": 513, "description": "Confidence with which the assertion was made.\nConfidence has many interpretations, one possibility is the probability that the individual could demonstrate the competency again.", "itemtype": "property", "name": "confidence", @@ -30003,7 +30003,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 495, + "line": 521, "description": "Public Key in PEM format of the recipient of the assertion.", "itemtype": "property", "name": "subject", @@ -30013,7 +30013,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 502, + "line": 528, "description": "Public Key in PEM format of the identity making the assertion.", "itemtype": "property", "name": "agent", @@ -30023,7 +30023,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 509, + "line": 535, "description": "Encrypted evidence. May be a string, URL or schema.org/Thing.", "itemtype": "property", "name": "evidence", @@ -30033,7 +30033,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 516, + "line": 542, "description": "Time that the assertion was made in milliseconds since the Unix Epoch.", "itemtype": "property", "name": "assertionDate", @@ -30043,7 +30043,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 523, + "line": 549, "description": "Time that the assertion expires, specified in milliseconds since the Unix Epoch.", "itemtype": "property", "name": "expirationDate", @@ -30053,7 +30053,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 530, + "line": 556, "description": "Describes the slope of the line from the initial confidence at the assertion date and the expiration date. t is a number between [0,1] representing the percentage of time that has elapsed. Examples include t^2 and ln(t).", "itemtype": "property", "name": "decayFunction", @@ -30063,7 +30063,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 537, + "line": 563, "description": "True if the assertion is a claim that the subject cannot demonstrate the competency.", "itemtype": "property", "name": "negative", @@ -30073,7 +30073,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 547, + "line": 573, "description": "Sets the subject of an assertion. Makes a few assumptions: Owners of the\nobject should be able to see and change the encrypted value. Owners and\nreaders of the object should be persisted.", "params": [ { @@ -30086,7 +30086,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 761, + "line": 792, "description": "List of assertions to pack in the envelope.", "itemtype": "property", "name": "assertion", @@ -30096,7 +30096,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 768, + "line": 799, "description": "List of secrets found in assertions to the objects necessary to decrypt the assertion data.", "itemtype": "property", "name": "codebook", @@ -30106,7 +30106,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 780, + "line": 811, "description": "Removes an assertion from the envelope", "params": [ { @@ -30121,7 +30121,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 803, + "line": 834, "description": "Returns the assertion indexed at position @index.", "params": [ { @@ -30139,7 +30139,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 821, + "line": 852, "description": "Adds the assertion to the envelope and adds the keys necessary to decode the assertion to the envelope.", "params": [ { @@ -30154,7 +30154,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 857, + "line": 888, "description": "Adds the assertion to the envelope and adds the keys necessary to decode the assertion to the envelope.", "params": [ { @@ -30177,7 +30177,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.cass.js", - "line": 939, + "line": 970, "description": "Validates that all assertions have not been tampered with (are authentic).\nDoes not validate the sources of assertions.", "return": { "description": "True IFF assertions are authentic." @@ -30189,7 +30189,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 36, + "line": 37, "description": "AES Initialization Vector used to decode PPK. Base64 encoded.", "itemtype": "property", "name": "iv", @@ -30199,7 +30199,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 43, + "line": 44, "description": "AES encrypted Private Key in PEM form.", "itemtype": "property", "name": "ppk", @@ -30209,7 +30209,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 50, + "line": 51, "description": "AES Initialization Vector used to decode displayName. Base64 encoded.", "itemtype": "property", "name": "displayNameIv", @@ -30219,7 +30219,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 57, + "line": 58, "description": "AES encrypted display name for identity.", "itemtype": "property", "name": "displayName", @@ -30229,7 +30229,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 100, + "line": 106, "description": "Hashed username.", "itemtype": "property", "name": "username", @@ -30239,7 +30239,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 107, + "line": 113, "description": "Hashed password to authorize request.", "itemtype": "property", "name": "password", @@ -30249,7 +30249,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 149, + "line": 160, "description": "One time pad that may be used in password recovery. Base64 encoded.", "itemtype": "property", "name": "pad", @@ -30259,7 +30259,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 156, + "line": 167, "description": "Token provided by server to use in commit actions.", "itemtype": "property", "name": "token", @@ -30269,7 +30269,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 163, + "line": 174, "description": "Credential array.", "itemtype": "property", "name": "credentials", @@ -30279,7 +30279,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 170, + "line": 181, "description": "Contact array.", "itemtype": "property", "name": "contacts", @@ -30289,7 +30289,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 213, + "line": 229, "description": "AES Initialization Vector used to decode PPK. Base64 encoded.", "itemtype": "property", "name": "iv", @@ -30299,7 +30299,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 220, + "line": 236, "description": "AES encrypted Private Key in PEM format.", "itemtype": "property", "name": "pk", @@ -30309,7 +30309,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 227, + "line": 243, "description": "AES Initialization Vector used to decode displayName. Base64 encoded.", "itemtype": "property", "name": "displayNameIv", @@ -30319,7 +30319,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 234, + "line": 250, "description": "AES encrypted display name for identity.", "itemtype": "property", "name": "displayName", @@ -30329,7 +30329,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 241, + "line": 257, "description": "AES Initialization Vector of the home server of the contact. Base64 encoded.", "itemtype": "property", "name": "sourceIv", @@ -30339,7 +30339,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 248, + "line": 264, "description": "URL to the home server of the contact.", "itemtype": "property", "name": "source", @@ -30349,7 +30349,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 296, + "line": 317, "description": "IV used to encrypt/decrypt payload. Base64 encoded.", "itemtype": "property", "name": "iv", @@ -30359,7 +30359,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 303, + "line": 324, "description": "Hashed and Base64 encoded ID of the parent (if any) object.\nUsed to verify the data has not been copied from elsewhere.", "itemtype": "property", "name": "id", @@ -30369,7 +30369,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 311, + "line": 332, "description": "Secret used to encrypt/decrypt payload.", "itemtype": "property", "name": "secret", @@ -30379,7 +30379,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 318, + "line": 339, "description": "Dot and Bracket notated index of the field in the parent-most object (if\nany). Used to verify the field has not been copied from elsewhere.", "itemtype": "property", "name": "field", @@ -30389,7 +30389,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 326, + "line": 347, "description": "Deserializes the field from a compact form used in RSA encryption.", "params": [ { @@ -30410,7 +30410,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 345, + "line": 366, "description": "Serializes the field into a compact form for RSA encryption.", "return": { "description": "string", @@ -30423,7 +30423,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 396, + "line": 422, "description": "The public key of the authorizing party in PEM format.", "itemtype": "property", "name": "owner", @@ -30433,7 +30433,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 403, + "line": 429, "description": "The time in number of milliseconds since midnight of January 1, 1970\n00:00:00 UTC that this signature is authorized to move data.", "itemtype": "property", "name": "expiry", @@ -30443,7 +30443,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 411, + "line": 437, "description": "The signature of this object, having signed the object, having been\nencoded in JSON with no space or tabs in ASCII sort order, having no\nvalue for the signature at the time of signing.", "itemtype": "property", "name": "signature", @@ -30453,7 +30453,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 420, + "line": 446, "description": "The server authorized to move data. If this is empty, the signature may\nbe used by a server to ask for data from other servers.", "itemtype": "property", "name": "server", @@ -30463,7 +30463,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 463, + "line": 494, "description": "Optional Hint used to aid in search.\nDisplays the type of the encrypted object.", "itemtype": "property", "name": "encryptedType", @@ -30473,7 +30473,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 471, + "line": 502, "description": "Base-64 encoded, AES encrypted form of the encrypted object (or string).", "itemtype": "property", "name": "payload", @@ -30483,7 +30483,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 478, + "line": 509, "description": "Optional Hint used to aid in search and display.\nName of the inner encrypted object.", "itemtype": "property", "name": "name", @@ -30493,7 +30493,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 486, + "line": 517, "description": "Array of EbacEncryptedSecret objects encoded in Base-64, encrypted using\nRSA public keys of owners, readers, or other parties to allow them\naccess to the payload.", "itemtype": "property", "name": "secret", @@ -30503,7 +30503,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 544, + "line": 580, "description": "Public key being granted to the owner of this message.", "itemtype": "property", "name": "pk", @@ -30513,7 +30513,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 551, + "line": 587, "description": "Display name of the contact.", "itemtype": "property", "name": "displayName", @@ -30523,7 +30523,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 558, + "line": 594, "description": "Source server of the contact.", "itemtype": "property", "name": "source", @@ -30533,7 +30533,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 565, + "line": 601, "description": "Response token used to validate that this grant is in response to a contact request you sent.", "itemtype": "property", "name": "responseToken", @@ -30543,7 +30543,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 572, + "line": 608, "description": "Signature (Base64 encoded) of the response token to verify against your own public key\nto ensure that this grant is in response to a contact request you sent.", "itemtype": "property", "name": "responseSignature", @@ -30553,7 +30553,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 618, + "line": 659, "description": "Hashed username.", "itemtype": "property", "name": "username", @@ -30563,7 +30563,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 625, + "line": 666, "description": "Hashed password to authorize commit.", "itemtype": "property", "name": "password", @@ -30573,7 +30573,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 632, + "line": 673, "description": "Token provided to client when previously executed Request was done. May\nbe empty if this is used as part of Create action.", "itemtype": "property", "name": "token", @@ -30583,7 +30583,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.ebac.js", - "line": 640, + "line": 681, "description": "List of credentials to commit to the login server storage.", "itemtype": "property", "name": "credentials", @@ -30604,7 +30604,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 52, + "line": 53, "description": "Current version of KBAC.", "itemtype": "property", "name": "context", @@ -30615,7 +30615,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 81, + "line": 82, "description": "PEM encoded public keys of the owner of the object. A repository, upon\nreceiving a write operation, will ensure either the data did not\npreviously exist, or that an owner has provided a signature authorizing\nthe replacement of the old data with the new data.", "itemtype": "property", "name": "owner", @@ -30625,7 +30625,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 91, + "line": 92, "description": "Signatures of the object. The signing method is as follows: Remove the\nsignature field. Encode the object and its fields in ascii-sort order\nJSON-LD using a space-free, tab-free encoding. Sign the aforementioned\nstring.", "itemtype": "property", "name": "signature", @@ -30635,7 +30635,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 101, + "line": 102, "description": "URL/URI used to retrieve, store and identify the object.", "itemtype": "property", "name": "id", @@ -30645,7 +30645,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 111, + "line": 112, "description": "PEM encoded public keys of identities authorized to view the object. A\nrepository will ignore write operations from these identities, but will\nallow them to read the object.", "itemtype": "property", "name": "reader", @@ -30655,7 +30655,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 120, + "line": 121, "description": "Removes the version information from an identifier.\nWarning: Will remove identifier if the identifier is composed solely of digits!!!", "params": [ { @@ -30675,7 +30675,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 141, + "line": 142, "description": "Will generate an identifier using the server URL provided (usually from\nan EcRepository).", "params": [ { @@ -30691,7 +30691,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 159, + "line": 160, "description": "Will generate an short (non-versioned) identifier using the server URL provided (usually from\nan EcRepository).", "params": [ { @@ -30707,7 +30707,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 175, + "line": 176, "description": "Will generate an identifier using the server URL provided (usually from\nan EcRepository) and unique identifier.", "params": [ { @@ -30728,7 +30728,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 194, + "line": 195, "description": "Will generate an identifier using the server URL provided (usually from\nan EcRepository) and unique identifier.", "params": [ { @@ -30749,7 +30749,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 211, + "line": 212, "description": "Will generate an identifier using the server URL provided (usually from\nan EcRepository) and unique identifier.", "params": [ { @@ -30770,7 +30770,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 230, + "line": 231, "description": "Determines if the object has an owner identified by pk.\nHomogenizes the PEM strings for comparison.\nHomogenization is necessary for comparing PKCS#1 and PKCS#8 or PKs with Certificates, etc.", "params": [ { @@ -30790,7 +30790,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 248, + "line": 249, "description": "Determines if the object has a reader identified by pk.\nHomogenizes the PEM strings for comparison.\nHomogenization is necessary for comparing PKCS#1 and PKCS#8 or PKs with Certificates, etc.", "params": [ { @@ -30810,7 +30810,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 266, + "line": 267, "description": "Determines if the PK matches an owner or if the object is public.\nHomogenizes the PEM strings for comparison.\nHomogenization is necessary for comparing PKCS#1 and PKCS#8 or PKs with Certificates, etc.", "params": [ { @@ -30830,7 +30830,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 280, + "line": 281, "description": "Determines if the PK matches an owner or if the object is public.\nHomogenizes the PEM strings for comparison.\nHomogenization is necessary for comparing PKCS#1 and PKCS#8 or PKs with Certificates, etc.", "params": [ { @@ -30850,7 +30850,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 299, + "line": 300, "description": "Encodes the object in a form where it is ready to be signed.\nThis method is under long term review, and may change from version to version.", "return": { "description": "ASCII-sort order encoded space-free and tab-free JSON-LD." @@ -30862,7 +30862,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 321, + "line": 322, "description": "Sign this object using a private key.\nDoes not check for ownership, objects signed with keys absent from @owner or @reader may be removed.", "params": [ { @@ -30878,7 +30878,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 340, + "line": 341, "description": "Verifies the object's signatures.", "return": { "description": "true if all of the signatures could be verified, false if they could not", @@ -30891,7 +30891,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 376, + "line": 377, "description": "Adds an owner to the object, if the owner does not exist.\nNote that this method invalidates all signatures.", "params": [ { @@ -30907,7 +30907,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 393, + "line": 394, "description": "Removes an owner from the object, if the owner does exist.\nNote that this method invalidates all signatures.", "params": [ { @@ -30923,7 +30923,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 409, + "line": 410, "description": "Adds a reader to the object, if the reader does not exist.\nNote that this method invalidates all signatures.", "params": [ { @@ -30939,7 +30939,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 423, + "line": 424, "description": "Removes a reader from the object, if the reader does exist.\nNote that this method invalidates all signatures.", "params": [ { @@ -30955,7 +30955,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 437, + "line": 438, "description": "Determines if the object is not retrievable from a repository should it be written.", "return": { "description": "True if the object is NOT VALID for storage, false otherwise.", @@ -30968,7 +30968,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 454, + "line": 455, "description": "Updates the ID timestamp of the object, for versioning purposes.", "itemtype": "method", "name": "updateTimestamp", @@ -30977,7 +30977,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 468, + "line": 469, "description": "Returns the ID timestamp of the object, for versioning purposes.", "itemtype": "method", "name": "getTimestamp", @@ -30986,7 +30986,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 481, + "line": 482, "description": "Returns true if the provided ID represents this object.\nUse this, as version information can make direct comparison difficult.", "params": [ { @@ -31006,7 +31006,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 492, + "line": 493, "description": "Return the ID of this object without the version information.\nUsed to reference the latest version of an object.", "return": { "description": "ID of the latest version of this object.", @@ -31019,7 +31019,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 502, + "line": 503, "description": "Return the GUID portion of the short ID.", "return": { "description": "Guid of the linked data object.", @@ -31032,7 +31032,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 513, + "line": 514, "description": "Return the URL Base portion of the short ID.", "return": { "description": "Server Base URL of the linked data object.", @@ -31045,7 +31045,7 @@ }, { "file": "src/main/js/cass/org.cassproject.schema.general.js", - "line": 524, + "line": 525, "description": "Return a valid ElasticSearch search string that will retrieve all objects with this type.", "return": { "description": "ElasticSearch compatible search string.", @@ -68915,7 +68915,7 @@ }, { "file": "src/main/js/cass/org.w3.skos.js", - "line": 62, + "line": 63, "description": "www.w3.org/2004/02/skos/core/topConceptOf\nRelates a concept to the concept scheme that it is a top level concept of.", "itemtype": "property", "name": "topConceptOf", @@ -68925,7 +68925,7 @@ }, { "file": "src/main/js/cass/org.w3.skos.js", - "line": 69, + "line": 70, "description": "www.w3.org/2004/02/skos/core/semanticRelation\nLinks a concept to a concept related by meaning.", "itemtype": "property", "name": "semanticRelation", @@ -68935,7 +68935,7 @@ }, { "file": "src/main/js/cass/org.w3.skos.js", - "line": 108, + "line": 114, "description": "www.w3.org/2004/02/skos/core/hasTopConcept\nRelates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies.", "itemtype": "property", "name": "hasTopConcept", @@ -68945,7 +68945,7 @@ }, { "file": "src/main/js/cass/org.w3.skos.js", - "line": 147, + "line": 157, "description": "www.w3.org/2004/02/skos/core/memberList\nRelates an ordered collection to the RDF list containing its members.", "itemtype": "property", "name": "memberList", @@ -69217,19 +69217,19 @@ }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.adapter.js:56" + "line": " src/main/js/cass/cass.adapter.js:57" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.adapter.js:82" + "line": " src/main/js/cass/cass.adapter.js:84" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.adapter.js:120" + "line": " src/main/js/cass/cass.adapter.js:123" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.adapter.js:137" + "line": " src/main/js/cass/cass.adapter.js:141" }, { "message": "unknown tag: memberof", @@ -69497,55 +69497,55 @@ }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:966" + "line": " src/main/js/cass/cass.import.js:984" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1078" + "line": " src/main/js/cass/cass.import.js:1096" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1110" + "line": " src/main/js/cass/cass.import.js:1128" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1144" + "line": " src/main/js/cass/cass.import.js:1162" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1188" + "line": " src/main/js/cass/cass.import.js:1206" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1234" + "line": " src/main/js/cass/cass.import.js:1252" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1304" + "line": " src/main/js/cass/cass.import.js:1322" }, { "message": "unknown tag: meberof", - "line": " src/main/js/cass/cass.import.js:1375" + "line": " src/main/js/cass/cass.import.js:1393" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1434" + "line": " src/main/js/cass/cass.import.js:1452" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1453" + "line": " src/main/js/cass/cass.import.js:1471" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1482" + "line": " src/main/js/cass/cass.import.js:1500" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1521" + "line": " src/main/js/cass/cass.import.js:1539" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/cass.import.js:1604" + "line": " src/main/js/cass/cass.import.js:1622" }, { "message": "unknown tag: internal", @@ -69853,139 +69853,139 @@ }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1148" + "line": " src/main/js/cass/ebac.repository.js:1159" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1213" + "line": " src/main/js/cass/ebac.repository.js:1225" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1248" + "line": " src/main/js/cass/ebac.repository.js:1260" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1265" + "line": " src/main/js/cass/ebac.repository.js:1277" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1282" + "line": " src/main/js/cass/ebac.repository.js:1294" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1322" + "line": " src/main/js/cass/ebac.repository.js:1334" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1403" + "line": " src/main/js/cass/ebac.repository.js:1415" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1454" + "line": " src/main/js/cass/ebac.repository.js:1472" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1472" + "line": " src/main/js/cass/ebac.repository.js:1490" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1525" + "line": " src/main/js/cass/ebac.repository.js:1544" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1574" + "line": " src/main/js/cass/ebac.repository.js:1593" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1619" + "line": " src/main/js/cass/ebac.repository.js:1638" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1657" + "line": " src/main/js/cass/ebac.repository.js:1676" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1703" + "line": " src/main/js/cass/ebac.repository.js:1722" }, { "message": "replacing incorrect tag: returns with return", - "line": " src/main/js/cass/ebac.repository.js:1721" + "line": " src/main/js/cass/ebac.repository.js:1740" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1721" + "line": " src/main/js/cass/ebac.repository.js:1740" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1735" + "line": " src/main/js/cass/ebac.repository.js:1754" }, { "message": "replacing incorrect tag: returns with return", - "line": " src/main/js/cass/ebac.repository.js:1845" + "line": " src/main/js/cass/ebac.repository.js:1864" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1845" + "line": " src/main/js/cass/ebac.repository.js:1864" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:1960" + "line": " src/main/js/cass/ebac.repository.js:1979" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2034" + "line": " src/main/js/cass/ebac.repository.js:2053" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2105" + "line": " src/main/js/cass/ebac.repository.js:2124" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2151" + "line": " src/main/js/cass/ebac.repository.js:2170" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2194" + "line": " src/main/js/cass/ebac.repository.js:2213" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2214" + "line": " src/main/js/cass/ebac.repository.js:2233" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2226" + "line": " src/main/js/cass/ebac.repository.js:2245" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2238" + "line": " src/main/js/cass/ebac.repository.js:2257" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2250" + "line": " src/main/js/cass/ebac.repository.js:2269" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2287" + "line": " src/main/js/cass/ebac.repository.js:2306" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2332" + "line": " src/main/js/cass/ebac.repository.js:2351" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2354" + "line": " src/main/js/cass/ebac.repository.js:2373" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2388" + "line": " src/main/js/cass/ebac.repository.js:2407" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2437" + "line": " src/main/js/cass/ebac.repository.js:2456" }, { "message": "unknown tag: memberof", - "line": " src/main/js/cass/ebac.repository.js:2458" + "line": " src/main/js/cass/ebac.repository.js:2477" }, { "message": "unknown tag: memberof", @@ -72133,7 +72133,7 @@ }, { "message": "Missing item type\nSets the subject of an assertion. Makes a few assumptions: Owners of the\nobject should be able to see and change the encrypted value. Owners and\nreaders of the object should be persisted.", - "line": " src/main/js/cass/org.cassproject.schema.cass.js:547" + "line": " src/main/js/cass/org.cassproject.schema.cass.js:573" }, { "message": "Missing item type\nIf `Buffer.TYPED_ARRAY_SUPPORT`:\n === true Use Uint8Array implementation (fastest)\n === false Print warning and recommend using `buffer` v4.x which has an Object\n implementation (most compatible, even IE6)\n\nBrowsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\nOpera 11.6+, iOS 4.2+.\n\nWe report that the browser does not support typed arrays if the are not subclassable\nusing __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n(See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\nfor __proto__ and has a buggy typed array implementation.", diff --git a/docs/files/src_main_js_cass_cass.adapter.js.html b/docs/files/src_main_js_cass_cass.adapter.js.html index f6805bd39..0fb8221c8 100644 --- a/docs/files/src_main_js_cass_cass.adapter.js.html +++ b/docs/files/src_main_js_cass_cass.adapter.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -874,7 +874,8 @@

File: src/main/js/cass/cass.adapter.js

*/ constructor.get = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/moodle/config/get", fd, success, failure); }, failure); @@ -894,7 +895,8 @@

File: src/main/js/cass/cass.adapter.js

*/ constructor.getMoodleKey = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingString(serverUrl, "adapter/moodle/config/key", fd, success, failure); }, failure); @@ -920,7 +922,8 @@

File: src/main/js/cass/cass.adapter.js

prototype.save = function(serverUrl, success, failure) { var fd = new FormData(); fd.append("config", JSON.stringify(this)); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/moodle/config/set", fd, success, failure); }, failure); @@ -955,7 +958,8 @@

File: src/main/js/cass/cass.adapter.js

*/ constructor.get = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/xapi/config/get", fd, success, failure); }, failure); @@ -972,7 +976,8 @@

File: src/main/js/cass/cass.adapter.js

prototype.save = function(serverUrl, success, failure) { var fd = new FormData(); fd.append("config", JSON.stringify(this)); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/xapi/config/set", fd, success, failure); }, failure); diff --git a/docs/files/src_main_js_cass_cass.competency.js.html b/docs/files/src_main_js_cass_cass.competency.js.html index 305a24199..8253db8b7 100644 --- a/docs/files/src_main_js_cass_cass.competency.js.html +++ b/docs/files/src_main_js_cass_cass.competency.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_cass.import.js.html b/docs/files/src_main_js_cass_cass.import.js.html index 7c925622f..398dd4836 100644 --- a/docs/files/src_main_js_cass_cass.import.js.html +++ b/docs/files/src_main_js_cass_cass.import.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -1583,7 +1583,7 @@

File: src/main/js/cass/cass.import.js

(translator)[key] = null; } } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cass", "https://schema.cassproject.org/0.3", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cass", "https://schema.cassproject.org/0.4", function(e) { var f = new EcFramework(); f.copyFrom(e); if ((e)["owner"] != null) { @@ -1594,6 +1594,9 @@

File: src/main/js/cass/cass.import.js

f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcFramework.template != null && (EcFramework.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } (frameworks)[f.id] = f; (frameworkRows)[f.id] = e; (f)["ceasn:hasChild"] = null; @@ -1611,7 +1614,7 @@

File: src/main/js/cass/cass.import.js

(translator)[key] = null; } } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cass", "https://schema.cassproject.org/0.3", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cass", "https://schema.cassproject.org/0.4", function(e) { var f = new EcCompetency(); f.copyFrom(e); if ((e)["id"] == null) { @@ -1661,6 +1664,9 @@

File: src/main/js/cass/cass.import.js

f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcCompetency.template != null && (EcCompetency.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } if ((e)["ceasn:isChildOf"] != null) { var r = new EcAlignment(); r.generateId(repo.selectedServer); @@ -1786,6 +1792,18 @@

File: src/main/js/cass/cass.import.js

}); }, error: failure}); }; + constructor.setDateCreated = function(importObject, object) { + if ((importObject)["ceasn:dateCreated"] == null && (importObject)["schema:dateCreated"] == null) { + var timestamp = object.getTimestamp(); + var date; + if (timestamp != null) { + date = new Date(parseInt(timestamp)).toISOString(); + } else { + date = new Date().toISOString(); + } + (object)["schema:dateCreated"] = date; + } + }; }, {}, {}); var TabStructuredImport = function() {}; TabStructuredImport = stjs.extend(TabStructuredImport, null, [], function(constructor, prototype) { @@ -2636,7 +2654,7 @@

File: src/main/js/cass/cass.import.js

(nameWithLanguage)["en-US"] = name; (translator)["ceasn:name"] = nameWithLanguage; } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cassConcepts", "https://schema.cassproject.org/0.3/skos", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cassConcepts", "https://schema.cassproject.org/0.4/skos", function(e) { var f = new EcConceptScheme(); f.copyFrom(e); if ((e)["owner"] != null) { @@ -2648,8 +2666,8 @@

File: src/main/js/cass/cass.import.js

EcIdentityManager.addIdentityQuietly(id); } (f)["schema:dateModified"] = new Date().toISOString(); - if ((e)["schema:dateCreated"] == null) { - (f)["schema:dateCreated"] = new Date().toISOString(); + if (EcConceptScheme.template != null && (EcConceptScheme.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); } schemeArray.push(f); callback0(); @@ -2674,7 +2692,7 @@

File: src/main/js/cass/cass.import.js

(nameWithLanguage)["en-US"] = name; (translator)["skos:prefLabel"] = nameWithLanguage; } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cassConcepts", "https://schema.cassproject.org/0.3/skos", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cassConcepts", "https://schema.cassproject.org/0.4/skos", function(e) { var f = new EcConcept(); f.copyFrom(e); if ((e)["id"] == null) { @@ -2690,6 +2708,9 @@

File: src/main/js/cass/cass.import.js

f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcConcept.template != null && (EcConcept.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } if ((e)["skos:narrower"] != null) { var relation = (e)["skos:narrower"]; if (!EcArray.isArray(relation)) { @@ -2740,9 +2761,6 @@

File: src/main/js/cass/cass.import.js

} } (f)["schema:dateModified"] = new Date().toISOString(); - if ((e)["schema:dateCreated"] == null) { - (f)["schema:dateCreated"] = new Date().toISOString(); - } concepts.push(f); callback0(); }, failure); diff --git a/docs/files/src_main_js_cass_cass.rollup.js.html b/docs/files/src_main_js_cass_cass.rollup.js.html index a7bcee606..c328bdc35 100644 --- a/docs/files/src_main_js_cass_cass.rollup.js.html +++ b/docs/files/src_main_js_cass_cass.rollup.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_ebac.identity.js.html b/docs/files/src_main_js_cass_ebac.identity.js.html index d70609ee7..7437fd06f 100644 --- a/docs/files/src_main_js_cass_ebac.identity.js.html +++ b/docs/files/src_main_js_cass_ebac.identity.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_ebac.repository.js.html b/docs/files/src_main_js_cass_ebac.repository.js.html index ac71fb51d..33decb2ce 100644 --- a/docs/files/src_main_js_cass_ebac.repository.js.html +++ b/docs/files/src_main_js_cass_ebac.repository.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -1851,8 +1851,9 @@

File: src/main/js/cass/ebac.repository.js

}, function(p1) { EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); - } else - EcIdentityManager.signatureSheetAsync(60000, url, function(p1) { + } else { + var offset = EcRepository.setOffset(url); + EcIdentityManager.signatureSheetAsync(60000 + offset, url, function(p1) { if ((EcRepository.cache)[originalUrl] != null) { delete (EcRepository.fetching)[originalUrl]; success((EcRepository.cache)[originalUrl]); @@ -1865,6 +1866,16 @@

File: src/main/js/cass/ebac.repository.js

EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); }, failure); + } + }; + constructor.setOffset = function(url) { + var offset = 0; + for (var i = 0; i < EcRepository.repos.length; i++) { + if (url.indexOf(EcRepository.repos[i].selectedServer) != -1) { + offset = EcRepository.repos[i].timeOffset; + } + } + return offset; }; constructor.getHandleData = function(p1, originalUrl, success, failure, finalUrl) { delete (EcRepository.fetching)[originalUrl]; @@ -2003,7 +2014,8 @@

File: src/main/js/cass/ebac.repository.js

var fd = new FormData(); var p1 = null; if (EcRepository.unsigned == false) { - p1 = EcIdentityManager.signatureSheet(60000, originalUrl); + var offset = EcRepository.setOffset(url); + p1 = EcIdentityManager.signatureSheet(60000 + offset, originalUrl); fd.append("signatureSheet", p1); } var oldAsync = EcRemote.async; @@ -2263,18 +2275,24 @@

File: src/main/js/cass/ebac.repository.js

} EcRemote.postExpectingString(data.id, "", fd, success, failure); }; + var offset = 0; + if (repo == null) { + offset = EcRepository.setOffset(data.id); + } else { + offset = repo.timeOffset; + } if (EcRemote.async == false) { var signatureSheet; if (data.owner != null && data.owner.length > 0) { - signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); } else { - signatureSheet = EcIdentityManager.signatureSheet(60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheet(60000 + offset, data.id); } afterSignatureSheet(signatureSheet); } else if (data.owner != null && data.owner.length > 0) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, afterSignatureSheet, failure); } else { - EcIdentityManager.signatureSheetAsync(60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetAsync(60000 + offset, data.id, afterSignatureSheet, failure); } }; /** @@ -2317,9 +2335,10 @@

File: src/main/js/cass/ebac.repository.js

} var targetUrl; targetUrl = data.shortId(); + var offset = EcRepository.setOffset(data.id); if (data.owner != null && data.owner.length > 0) { if (EcRemote.async) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000, data.id, function(signatureSheet) { + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, function(signatureSheet) { if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -2332,7 +2351,7 @@

File: src/main/js/cass/ebac.repository.js

EcRemote._delete(targetUrl, signatureSheet, success, failure); }, failure); } else { - var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000, data.id); + var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { diff --git a/docs/files/src_main_js_cass_ec.base.js.html b/docs/files/src_main_js_cass_ec.base.js.html index 041e5d0db..50f8323cd 100644 --- a/docs/files/src_main_js_cass_ec.base.js.html +++ b/docs/files/src_main_js_cass_ec.base.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_ec.crypto.js.html b/docs/files/src_main_js_cass_ec.crypto.js.html index cbb820a11..fdca26822 100644 --- a/docs/files/src_main_js_cass_ec.crypto.js.html +++ b/docs/files/src_main_js_cass_ec.crypto.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_ec.ui.framework.js.html b/docs/files/src_main_js_cass_ec.ui.framework.js.html index 67e0c9086..1287e85d4 100644 --- a/docs/files/src_main_js_cass_ec.ui.framework.js.html +++ b/docs/files/src_main_js_cass_ec.ui.framework.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_jsonld.js.html b/docs/files/src_main_js_cass_jsonld.js.html index 07f2fc90e..f079c9e16 100644 --- a/docs/files/src_main_js_cass_jsonld.js.html +++ b/docs/files/src_main_js_cass_jsonld.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_org.cassproject.schema.cass.js.html b/docs/files/src_main_js_cass_org.cassproject.schema.cass.js.html index 38906bdd1..a1b409de8 100644 --- a/docs/files/src_main_js_cass_org.cassproject.schema.cass.js.html +++ b/docs/files/src_main_js_cass_org.cassproject.schema.cass.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -857,8 +857,8 @@

File: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.jsFile: src/main/js/cass/org.cassproject.schema.cass.js

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -853,12 +853,13 @@

File: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.jsFile: src/main/js/cass/org.cassproject.schema.ebac.js

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -875,6 +875,7 @@

File: src/main/js/cass/org.cassproject.schema.general.j constructor.context_0_1 = "http://schema.eduworks.com/ebac/0.1"; constructor.context_0_2 = "http://schema.eduworks.com/ebac/0.2"; constructor.context_0_3 = "http://schema.cassproject.org/kbac/0.2"; + constructor.context_0_4 = "https://schema.cassproject.org/kbac/0.4"; /** * Current version of KBAC. * @@ -882,7 +883,7 @@

File: src/main/js/cass/org.cassproject.schema.general.j * @static * @type string (URL) */ - constructor.context = "http://schema.cassproject.org/kbac/0.2"; + constructor.context = Ebac.context_0_4; }, {}, {}); /** * Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for diff --git a/docs/files/src_main_js_cass_org.credentialengine.js.html b/docs/files/src_main_js_cass_org.credentialengine.js.html index 6456dd761..eb60821b9 100644 --- a/docs/files/src_main_js_cass_org.credentialengine.js.html +++ b/docs/files/src_main_js_cass_org.credentialengine.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_org.json-ld.js.html b/docs/files/src_main_js_cass_org.json-ld.js.html index e9b2eb6a8..b857704c9 100644 --- a/docs/files/src_main_js_cass_org.json-ld.js.html +++ b/docs/files/src_main_js_cass_org.json-ld.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_org.schema.js.html b/docs/files/src_main_js_cass_org.schema.js.html index b1d6cb929..4a460f382 100644 --- a/docs/files/src_main_js_cass_org.schema.js.html +++ b/docs/files/src_main_js_cass_org.schema.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/files/src_main_js_cass_org.w3.skos.js.html b/docs/files/src_main_js_cass_org.w3.skos.js.html index 95bf818eb..e362c0bb2 100644 --- a/docs/files/src_main_js_cass_org.w3.skos.js.html +++ b/docs/files/src_main_js_cass_org.w3.skos.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -856,7 +856,7 @@

File: src/main/js/cass/org.w3.skos.js

* @constructor */ function() { - EcRemoteLinkedData.call(this, "http://schema.cassproject.org/0.3/skos/", "Collection"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Collection"); }; Collection = stjs.extend(Collection, EcRemoteLinkedData, [], function(constructor, prototype) { /** @@ -879,12 +879,13 @@

File: src/main/js/cass/org.w3.skos.js

* @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "Concept"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Concept"); }; Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/Concept"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/Concept"; - constructor.myType = Concept.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/Concept"; + constructor.myType = Concept.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/topConceptOf * Relates a concept to the concept scheme that it is a top level concept of. @@ -904,9 +905,13 @@

File: src/main/js/cass/org.w3.skos.js

if (Concept.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", Concept.TYPE_0_2); } + if (Concept.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", Concept.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Concept.TYPE_0_3); a.push(Concept.TYPE_0_2); a.push(Concept.TYPE_0_1); return a; @@ -925,12 +930,13 @@

File: src/main/js/cass/org.w3.skos.js

* @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "ConceptScheme"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "ConceptScheme"); }; ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/ConceptScheme"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/ConceptScheme"; - constructor.myType = ConceptScheme.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/ConceptScheme"; + constructor.myType = ConceptScheme.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/hasTopConcept * Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies. @@ -943,9 +949,13 @@

File: src/main/js/cass/org.w3.skos.js

if (ConceptScheme.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", ConceptScheme.TYPE_0_2); } + if (ConceptScheme.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", ConceptScheme.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(ConceptScheme.TYPE_0_3); a.push(ConceptScheme.TYPE_0_2); a.push(ConceptScheme.TYPE_0_1); return a; @@ -966,7 +976,7 @@

File: src/main/js/cass/org.w3.skos.js

*/ function() { Collection.call(this); - this.context = "http://schema.cassproject.org/0.3/skos/"; + this.context = "https://schema.cassproject.org/0.4/skos/"; this.type = "OrderedCollection"; }; OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(constructor, prototype) { diff --git a/docs/files/src_main_js_cass_pem-jwk.js.html b/docs/files/src_main_js_cass_pem-jwk.js.html index 554f32314..70fd5f0c1 100644 --- a/docs/files/src_main_js_cass_pem-jwk.js.html +++ b/docs/files/src_main_js_cass_pem-jwk.js.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/index.html b/docs/index.html index 4432f5500..821f0093a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/com.eduworks.ec.html b/docs/modules/com.eduworks.ec.html index 4974aaf31..d1fbae298 100644 --- a/docs/modules/com.eduworks.ec.html +++ b/docs/modules/com.eduworks.ec.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/com.eduworks.ec.ui.html b/docs/modules/com.eduworks.ec.ui.html index 2dad4bd7f..549f69398 100644 --- a/docs/modules/com.eduworks.ec.ui.html +++ b/docs/modules/com.eduworks.ec.ui.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/org.cassproject.html b/docs/modules/org.cassproject.html index 2d9682c55..9205f7bce 100644 --- a/docs/modules/org.cassproject.html +++ b/docs/modules/org.cassproject.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

org.cassproject Module

- Defined in: src/main/js/cass/org.cassproject.schema.general.js:61 + Defined in: src/main/js/cass/org.cassproject.schema.general.js:62
diff --git a/docs/modules/org.credentialengine.html b/docs/modules/org.credentialengine.html index 309c2573e..6afc0c92e 100644 --- a/docs/modules/org.credentialengine.html +++ b/docs/modules/org.credentialengine.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/org.json.ld.html b/docs/modules/org.json.ld.html index dfbe12be7..d8b2ede7a 100644 --- a/docs/modules/org.json.ld.html +++ b/docs/modules/org.json.ld.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/org.schema.html b/docs/modules/org.schema.html index 4ce506726..b0ab751fc 100644 --- a/docs/modules/org.schema.html +++ b/docs/modules/org.schema.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
diff --git a/docs/modules/org.w3.skos.html b/docs/modules/org.w3.skos.html index 35e7aa151..895d47569 100644 --- a/docs/modules/org.w3.skos.html +++ b/docs/modules/org.w3.skos.html @@ -17,7 +17,7 @@

- API Docs for: 1.2.11 + API Docs for: 1.2.12
@@ -825,7 +825,7 @@

org.w3.skos Module

- Defined in: src/main/js/cass/org.w3.skos.js:128 + Defined in: src/main/js/cass/org.w3.skos.js:138
diff --git a/pom.xml b/pom.xml index a2476a9a0..cb17235b7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.cassproject cass war - 1.2.11 + 1.2.12 UTF-8 diff --git a/src/main/js/cass.js b/src/main/js/cass.js index efa9b8705..255037a7b 100644 --- a/src/main/js/cass.js +++ b/src/main/js/cass.js @@ -43395,6 +43395,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { constructor.context_0_1 = "http://schema.eduworks.com/ebac/0.1"; constructor.context_0_2 = "http://schema.eduworks.com/ebac/0.2"; constructor.context_0_3 = "http://schema.cassproject.org/kbac/0.2"; + constructor.context_0_4 = "https://schema.cassproject.org/kbac/0.4"; /** * Current version of KBAC. * @@ -43402,7 +43403,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { * @static * @type string (URL) */ - constructor.context = "http://schema.cassproject.org/kbac/0.2"; + constructor.context = Ebac.context_0_4; }, {}, {}); /** * Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for @@ -85562,7 +85563,7 @@ var Collection = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "http://schema.cassproject.org/0.3/skos/", "Collection"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Collection"); }; Collection = stjs.extend(Collection, EcRemoteLinkedData, [], function(constructor, prototype) { /** @@ -85585,12 +85586,13 @@ var Concept = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "Concept"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Concept"); }; Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/Concept"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/Concept"; - constructor.myType = Concept.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/Concept"; + constructor.myType = Concept.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/topConceptOf * Relates a concept to the concept scheme that it is a top level concept of. @@ -85610,9 +85612,13 @@ Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, pro if (Concept.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", Concept.TYPE_0_2); } + if (Concept.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", Concept.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Concept.TYPE_0_3); a.push(Concept.TYPE_0_2); a.push(Concept.TYPE_0_1); return a; @@ -85631,12 +85637,13 @@ var ConceptScheme = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "ConceptScheme"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "ConceptScheme"); }; ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/ConceptScheme"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/ConceptScheme"; - constructor.myType = ConceptScheme.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/ConceptScheme"; + constructor.myType = ConceptScheme.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/hasTopConcept * Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies. @@ -85649,9 +85656,13 @@ ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(cons if (ConceptScheme.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", ConceptScheme.TYPE_0_2); } + if (ConceptScheme.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", ConceptScheme.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(ConceptScheme.TYPE_0_3); a.push(ConceptScheme.TYPE_0_2); a.push(ConceptScheme.TYPE_0_1); return a; @@ -85672,7 +85683,7 @@ var OrderedCollection = /** */ function() { Collection.call(this); - this.context = "http://schema.cassproject.org/0.3/skos/"; + this.context = "https://schema.cassproject.org/0.4/skos/"; this.type = "OrderedCollection"; }; OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(constructor, prototype) { @@ -85713,12 +85724,13 @@ OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(cons * @module org.cassproject */ var EbacCredential = function() { - EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_4); }; EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credential"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credential"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credential"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credential"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -85758,9 +85770,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc if (EbacCredential.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredential.TYPE_0_3); } + if (EbacCredential.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredential.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredential.TYPE_0_4); a.push(EbacCredential.TYPE_0_3); a.push(EbacCredential.TYPE_0_2); a.push(EbacCredential.TYPE_0_1); @@ -85777,12 +85793,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc * @module org.cassproject */ var EbacCredentialRequest = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_4); }; EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialRequest"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialRequest"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialRequest"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialRequest"; /** * Hashed username. * @@ -85808,9 +85825,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun if (EbacCredentialRequest.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacCredentialRequest.TYPE_0_3); } + if (EbacCredentialRequest.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialRequest.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialRequest.TYPE_0_4); a.push(EbacCredentialRequest.TYPE_0_3); a.push(EbacCredentialRequest.TYPE_0_2); a.push(EbacCredentialRequest.TYPE_0_1); @@ -85826,12 +85847,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun * @module org.cassproject */ var EbacCredentials = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_4); }; EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentials"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentials"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credentials"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credentials"; /** * One time pad that may be used in password recovery. Base64 encoded. * @@ -85871,9 +85893,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr if (EbacCredentials.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentials.TYPE_0_3); } + if (EbacCredentials.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentials.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentials.TYPE_0_4); a.push(EbacCredentials.TYPE_0_3); a.push(EbacCredentials.TYPE_0_2); a.push(EbacCredentials.TYPE_0_1); @@ -85890,12 +85916,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr * @module org.cassproject */ var EbacContact = function() { - EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_4); }; EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Contact"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Contact"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -85949,9 +85976,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p if (EbacContact.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContact.TYPE_0_3); } + if (EbacContact.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContact.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContact.TYPE_0_4); a.push(EbacContact.TYPE_0_3); a.push(EbacContact.TYPE_0_2); a.push(EbacContact.TYPE_0_1); @@ -85973,12 +86004,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p * @module org.cassproject */ var EbacEncryptedSecret = function() { - EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_4); }; EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedSecret"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedSecret"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedSecret"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedSecret"; /** * IV used to encrypt/decrypt payload. Base64 encoded. * @@ -86055,9 +86087,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio if (EbacEncryptedSecret.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedSecret.TYPE_0_3); } + if (EbacEncryptedSecret.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedSecret.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedSecret.TYPE_0_4); a.push(EbacEncryptedSecret.TYPE_0_3); a.push(EbacEncryptedSecret.TYPE_0_2); a.push(EbacEncryptedSecret.TYPE_0_1); @@ -86073,12 +86109,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio * @module org.cassproject */ var EbacSignature = function() { - EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_4); }; EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/timeLimitedSignature"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/timeLimitedSignature"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/TimeLimitedSignature"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/TimeLimitedSignature"; /** * The public key of the authorizing party in PEM format. * @@ -86122,9 +86159,13 @@ EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructo if (EbacSignature.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacSignature.TYPE_0_3); } + if (EbacSignature.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacSignature.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacSignature.TYPE_0_4); a.push(EbacSignature.TYPE_0_3); a.push(EbacSignature.TYPE_0_2); a.push(EbacSignature.TYPE_0_1); @@ -86145,7 +86186,8 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedValue"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedValue"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedValue"; - constructor.myType = EbacEncryptedValue.TYPE_0_3; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedValue"; + constructor.myType = EbacEncryptedValue.TYPE_0_4; /** * Optional Hint used to aid in search. * Displays the type of the encrypted object. @@ -86201,9 +86243,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun if (EbacEncryptedValue.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedValue.TYPE_0_3); } + if (EbacEncryptedValue.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedValue.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedValue.TYPE_0_4); a.push(EbacEncryptedValue.TYPE_0_3); a.push(EbacEncryptedValue.TYPE_0_2); a.push(EbacEncryptedValue.TYPE_0_1); @@ -86221,12 +86267,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun * @module org.cassproject */ var EbacContactGrant = function() { - EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_3); + EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_4); }; EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/contactGrant"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contactGrant"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/ContactGrant"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/ContactGrant"; /** * Public key being granted to the owner of this message. * @@ -86274,9 +86321,13 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio if (EbacContactGrant.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContactGrant.TYPE_0_3); } + if (EbacContactGrant.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContactGrant.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContactGrant.TYPE_0_4); a.push(EbacContactGrant.TYPE_0_3); a.push(EbacContactGrant.TYPE_0_2); a.push(EbacContactGrant.TYPE_0_1); @@ -86294,13 +86345,14 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio * @module org.cassproject */ var EbacCredentialCommit = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_4); this.credentials = new EbacCredentials(); }; EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialCommit"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialCommit"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialCommit"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialCommit"; /** * Hashed username. * @@ -86341,9 +86393,13 @@ EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], funct if (EbacCredentialCommit.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentialCommit.TYPE_0_3); } + if (EbacCredentialCommit.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialCommit.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialCommit.TYPE_0_4); a.push(EbacCredentialCommit.TYPE_0_3); a.push(EbacCredentialCommit.TYPE_0_2); a.push(EbacCredentialCommit.TYPE_0_1); @@ -86383,8 +86439,8 @@ Cass = stjs.extend(Cass, null, [], function(constructor, prototype) { constructor.context_0_3 = "http://schema.cassproject.org/0.2"; constructor.context_0_4 = "http://schema.cassproject.org/0.3"; constructor.context_0_5 = "https://schema.cassproject.org/0.3"; - constructor.context_0_6 = "http://schema.cassproject.org/0.4"; - constructor.context = Cass.context_0_5; + constructor.context_0_6 = "https://schema.cassproject.org/0.4"; + constructor.context = Cass.context_0_6; }, {}, {}); var AssertionCodebook = function() {}; AssertionCodebook = stjs.extend(AssertionCodebook, null, [], function(constructor, prototype) { @@ -86415,7 +86471,8 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Competency"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Competency"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Competency"; - constructor.myType = Competency.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Competency"; + constructor.myType = Competency.TYPE_0_6; /** * Scope in which the competency may be applied. e.g. Underwater. * @@ -86444,9 +86501,13 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro if (Competency.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Competency.TYPE_0_5); } + if (Competency.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Competency.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Competency.TYPE_0_6); a.push(Competency.TYPE_0_5); a.push(Competency.TYPE_0_4); a.push(Competency.TYPE_0_3); @@ -86473,7 +86534,8 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Level"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Level"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Level"; - constructor.myType = Level.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Level"; + constructor.myType = Level.TYPE_0_6; /** * Specifies the URL of the competency this level relates to. * @@ -86513,9 +86575,13 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { if (Level.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Level.TYPE_0_5); } + if (Level.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Level.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Level.TYPE_0_6); a.push(Level.TYPE_0_5); a.push(Level.TYPE_0_4); a.push(Level.TYPE_0_3); @@ -86541,7 +86607,8 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/RollupRule"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/RollupRule"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/RollupRule"; - constructor.myType = RollupRule.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/RollupRule"; + constructor.myType = RollupRule.TYPE_0_6; /** * The rollup rule encoded as source code that is understandable to the assertion processor. * @@ -86567,9 +86634,13 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro if (RollupRule.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, RollupRule.TYPE_0_5); } + if (RollupRule.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, RollupRule.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(RollupRule.TYPE_0_6); a.push(RollupRule.TYPE_0_5); a.push(RollupRule.TYPE_0_4); a.push(RollupRule.TYPE_0_3); @@ -86595,7 +86666,8 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Framework"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Framework"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Framework"; - constructor.myType = Framework.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Framework"; + constructor.myType = Framework.TYPE_0_6; /** * URLs of competencies included in this framework. * @@ -86641,9 +86713,13 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto if (Framework.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Framework.TYPE_0_5); } + if (Framework.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Framework.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Framework.TYPE_0_6); a.push(Framework.TYPE_0_5); a.push(Framework.TYPE_0_4); a.push(Framework.TYPE_0_3); @@ -86726,7 +86802,8 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Relation"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Relation"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Relation"; - constructor.myType = Relation.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Relation"; + constructor.myType = Relation.TYPE_0_6; /** * URL of the object at the beginning of the relation. * A B, this is A. @@ -86784,9 +86861,13 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy if (Relation.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Relation.TYPE_0_5); } + if (Relation.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Relation.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Relation.TYPE_0_6); a.push(Relation.TYPE_0_5); a.push(Relation.TYPE_0_4); a.push(Relation.TYPE_0_3); @@ -86813,7 +86894,8 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Assertion"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Assertion"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Assertion"; - constructor.myType = Assertion.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Assertion"; + constructor.myType = Assertion.TYPE_0_6; constructor.codebooks = null; /** * URL of the competency. @@ -87069,6 +87151,9 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto if (Assertion.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Assertion.TYPE_0_5); } + if (Assertion.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Assertion.TYPE_0_6); + } this.agent = EcEncryptedValue.revive(this.agent); this.subject = EcEncryptedValue.revive(this.subject); this.assertionDate = EcEncryptedValue.revive(this.assertionDate); @@ -87082,6 +87167,7 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto }; prototype.getTypes = function() { var a = new Array(); + a.push(Assertion.TYPE_0_6); a.push(Assertion.TYPE_0_5); a.push(Assertion.TYPE_0_4); a.push(Assertion.TYPE_0_3); @@ -87105,11 +87191,12 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto */ var AssertionEnvelope = function() { CreativeWork.call(this); - this.setContextAndType(Cass.context_0_6, AssertionEnvelope.myType); + this.setContextAndType(Cass.context, AssertionEnvelope.myType); }; AssertionEnvelope = stjs.extend(AssertionEnvelope, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_5 = "http://schema.cassproject.org/0.4/AssertionEnvelope"; - constructor.myType = AssertionEnvelope.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/AssertionEnvelope"; + constructor.myType = AssertionEnvelope.TYPE_0_6; /** * List of assertions to pack in the envelope. * @@ -89940,8 +90027,9 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy }, function(p1) { EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); - } else - EcIdentityManager.signatureSheetAsync(60000, url, function(p1) { + } else { + var offset = EcRepository.setOffset(url); + EcIdentityManager.signatureSheetAsync(60000 + offset, url, function(p1) { if ((EcRepository.cache)[originalUrl] != null) { delete (EcRepository.fetching)[originalUrl]; success((EcRepository.cache)[originalUrl]); @@ -89954,6 +90042,16 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); }, failure); + } + }; + constructor.setOffset = function(url) { + var offset = 0; + for (var i = 0; i < EcRepository.repos.length; i++) { + if (url.indexOf(EcRepository.repos[i].selectedServer) != -1) { + offset = EcRepository.repos[i].timeOffset; + } + } + return offset; }; constructor.getHandleData = function(p1, originalUrl, success, failure, finalUrl) { delete (EcRepository.fetching)[originalUrl]; @@ -90092,7 +90190,8 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy var fd = new FormData(); var p1 = null; if (EcRepository.unsigned == false) { - p1 = EcIdentityManager.signatureSheet(60000, originalUrl); + var offset = EcRepository.setOffset(url); + p1 = EcIdentityManager.signatureSheet(60000 + offset, originalUrl); fd.append("signatureSheet", p1); } var oldAsync = EcRemote.async; @@ -90352,18 +90451,24 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } EcRemote.postExpectingString(data.id, "", fd, success, failure); }; + var offset = 0; + if (repo == null) { + offset = EcRepository.setOffset(data.id); + } else { + offset = repo.timeOffset; + } if (EcRemote.async == false) { var signatureSheet; if (data.owner != null && data.owner.length > 0) { - signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); } else { - signatureSheet = EcIdentityManager.signatureSheet(60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheet(60000 + offset, data.id); } afterSignatureSheet(signatureSheet); } else if (data.owner != null && data.owner.length > 0) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, afterSignatureSheet, failure); } else { - EcIdentityManager.signatureSheetAsync(60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetAsync(60000 + offset, data.id, afterSignatureSheet, failure); } }; /** @@ -90406,9 +90511,10 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } var targetUrl; targetUrl = data.shortId(); + var offset = EcRepository.setOffset(data.id); if (data.owner != null && data.owner.length > 0) { if (EcRemote.async) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000, data.id, function(signatureSheet) { + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, function(signatureSheet) { if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -90421,7 +90527,7 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRemote._delete(targetUrl, signatureSheet, success, failure); }, failure); } else { - var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000, data.id); + var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -94971,7 +95077,7 @@ CTDLASNCSVImport = stjs.extend(CTDLASNCSVImport, null, [], function(constructor, (translator)[key] = null; } } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cass", "https://schema.cassproject.org/0.3", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cass", "https://schema.cassproject.org/0.4", function(e) { var f = new EcFramework(); f.copyFrom(e); if ((e)["owner"] != null) { @@ -94982,6 +95088,9 @@ CTDLASNCSVImport = stjs.extend(CTDLASNCSVImport, null, [], function(constructor, f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcFramework.template != null && (EcFramework.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } (frameworks)[f.id] = f; (frameworkRows)[f.id] = e; (f)["ceasn:hasChild"] = null; @@ -94999,7 +95108,7 @@ CTDLASNCSVImport = stjs.extend(CTDLASNCSVImport, null, [], function(constructor, (translator)[key] = null; } } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cass", "https://schema.cassproject.org/0.3", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cass", "https://schema.cassproject.org/0.4", function(e) { var f = new EcCompetency(); f.copyFrom(e); if ((e)["id"] == null) { @@ -95049,6 +95158,9 @@ CTDLASNCSVImport = stjs.extend(CTDLASNCSVImport, null, [], function(constructor, f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcCompetency.template != null && (EcCompetency.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } if ((e)["ceasn:isChildOf"] != null) { var r = new EcAlignment(); r.generateId(repo.selectedServer); @@ -95174,6 +95286,18 @@ CTDLASNCSVImport = stjs.extend(CTDLASNCSVImport, null, [], function(constructor, }); }, error: failure}); }; + constructor.setDateCreated = function(importObject, object) { + if ((importObject)["ceasn:dateCreated"] == null && (importObject)["schema:dateCreated"] == null) { + var timestamp = object.getTimestamp(); + var date; + if (timestamp != null) { + date = new Date(parseInt(timestamp)).toISOString(); + } else { + date = new Date().toISOString(); + } + (object)["schema:dateCreated"] = date; + } + }; }, {}, {}); var TabStructuredImport = function() {}; TabStructuredImport = stjs.extend(TabStructuredImport, null, [], function(constructor, prototype) { @@ -96024,7 +96148,7 @@ CTDLASNCSVConceptImport = stjs.extend(CTDLASNCSVConceptImport, null, [], functio (nameWithLanguage)["en-US"] = name; (translator)["ceasn:name"] = nameWithLanguage; } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cassConcepts", "https://schema.cassproject.org/0.3/skos", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cassConcepts", "https://schema.cassproject.org/0.4/skos", function(e) { var f = new EcConceptScheme(); f.copyFrom(e); if ((e)["owner"] != null) { @@ -96036,8 +96160,8 @@ CTDLASNCSVConceptImport = stjs.extend(CTDLASNCSVConceptImport, null, [], functio EcIdentityManager.addIdentityQuietly(id); } (f)["schema:dateModified"] = new Date().toISOString(); - if ((e)["schema:dateCreated"] == null) { - (f)["schema:dateCreated"] = new Date().toISOString(); + if (EcConceptScheme.template != null && (EcConceptScheme.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); } schemeArray.push(f); callback0(); @@ -96062,7 +96186,7 @@ CTDLASNCSVConceptImport = stjs.extend(CTDLASNCSVConceptImport, null, [], functio (nameWithLanguage)["en-US"] = name; (translator)["skos:prefLabel"] = nameWithLanguage; } - translator.recast("https://schema.cassproject.org/0.3/ceasn2cassConcepts", "https://schema.cassproject.org/0.3/skos", function(e) { + translator.recast("https://schema.cassproject.org/0.4/ceasn2cassConcepts", "https://schema.cassproject.org/0.4/skos", function(e) { var f = new EcConcept(); f.copyFrom(e); if ((e)["id"] == null) { @@ -96078,6 +96202,9 @@ CTDLASNCSVConceptImport = stjs.extend(CTDLASNCSVConceptImport, null, [], functio f.addOwner(id.ppk.toPk()); EcIdentityManager.addIdentityQuietly(id); } + if (EcConcept.template != null && (EcConcept.template)[("schema:dateCreated")] != null) { + CTDLASNCSVImport.setDateCreated(e, f); + } if ((e)["skos:narrower"] != null) { var relation = (e)["skos:narrower"]; if (!EcArray.isArray(relation)) { @@ -96128,9 +96255,6 @@ CTDLASNCSVConceptImport = stjs.extend(CTDLASNCSVConceptImport, null, [], functio } } (f)["schema:dateModified"] = new Date().toISOString(); - if ((e)["schema:dateCreated"] == null) { - (f)["schema:dateCreated"] = new Date().toISOString(); - } concepts.push(f); callback0(); }, failure); @@ -96198,7 +96322,8 @@ MoodleConfig = stjs.extend(MoodleConfig, EcLinkedData, [], function(constructor, */ constructor.get = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/moodle/config/get", fd, success, failure); }, failure); @@ -96218,7 +96343,8 @@ MoodleConfig = stjs.extend(MoodleConfig, EcLinkedData, [], function(constructor, */ constructor.getMoodleKey = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingString(serverUrl, "adapter/moodle/config/key", fd, success, failure); }, failure); @@ -96244,7 +96370,8 @@ MoodleConfig = stjs.extend(MoodleConfig, EcLinkedData, [], function(constructor, prototype.save = function(serverUrl, success, failure) { var fd = new FormData(); fd.append("config", JSON.stringify(this)); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/moodle/config/set", fd, success, failure); }, failure); @@ -96279,7 +96406,8 @@ XapiConfig = stjs.extend(XapiConfig, EcLinkedData, [], function(constructor, pro */ constructor.get = function(serverUrl, success, failure) { var fd = new FormData(); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/xapi/config/get", fd, success, failure); }, failure); @@ -96296,7 +96424,8 @@ XapiConfig = stjs.extend(XapiConfig, EcLinkedData, [], function(constructor, pro prototype.save = function(serverUrl, success, failure) { var fd = new FormData(); fd.append("config", JSON.stringify(this)); - EcIdentityManager.signatureSheetAsync(60000, serverUrl, function(signatureSheet) { + var offset = EcRepository.setOffset(serverUrl); + EcIdentityManager.signatureSheetAsync(60000 + offset, serverUrl, function(signatureSheet) { fd.append("signatureSheet", signatureSheet); EcRemote.postExpectingObject(serverUrl, "adapter/xapi/config/set", fd, success, failure); }, failure); diff --git a/src/main/js/cass.min.js b/src/main/js/cass.min.js index a7538b8eb..935c2d155 100644 --- a/src/main/js/cass.min.js +++ b/src/main/js/cass.min.js @@ -1,13 +1,13 @@ -var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(h,a,b){if(b.get||b.set)throw new TypeError("ES3 does not support getters and setters.");h!=Array.prototype&&h!=Object.prototype&&(h[a]=b.value)};$jscomp.getGlobal=function(h){return"undefined"!=typeof window&&window===h?h:"undefined"!=typeof global&&null!=global?global:h};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(h){return $jscomp.SYMBOL_PREFIX+(h||"")+$jscomp.symbolCounter_++}; -$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var h=$jscomp.global.Symbol.iterator;h||(h=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[h]&&$jscomp.defineProperty(Array.prototype,h,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(h){var a=0;return $jscomp.iteratorPrototype(function(){return ac&&(a+="0");a+=c.toString(16)}return a};c.DataBuffer.prototype.toString= function(a){var b=new Uint8Array(this.data,this.read,this.length());a=a||"utf8";if("binary"===a||"raw"===a)return c.binary.raw.encode(b);if("hex"===a)return c.binary.hex.encode(b);if("base64"===a)return c.binary.base64.encode(b);if("utf8"===a)return c.text.utf8.decode(b);if("utf16"===a)return c.text.utf16.decode(b);throw Error("Invalid encoding: "+a);};c.createBuffer=function(a,b){return b=b||"raw",void 0!==a&&"utf8"===b&&(a=c.encodeUtf8(a)),new c.ByteBuffer(a)};c.fillString=function(a,b){for(var c= -"";0>>=1,0> -24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var l=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",f="",l,e,d,g=0;g> -2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((l&3)<<4|e>>4),isNaN(e)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(f+=c.substr(0,b)+"\r\n",c=c.substr(b));return f+=c,f};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,f,e,d,g=0;g>4),64!==e&&(b+=String.fromCharCode((f&15)<<4|e>>2),64!==d&&(b+=String.fromCharCode((e&3)<<6|d)));return b};c.encodeUtf8=function(a){return unescape(encodeURIComponent(a))};c.decodeUtf8=function(a){return decodeURIComponent(escape(a))};c.binary={raw:{},hex:{},base64:{}};c.binary.raw.encode=function(a){return String.fromCharCode.apply(null,a)};c.binary.raw.decode=function(a,b,c){var f=b; -f||(f=new Uint8Array(a.length));for(var l=c=c||0,e=0;e> +"";0>>=1,0> +24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var l=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",f="",l,e,d,h=0;h> +2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((l&3)<<4|e>>4),isNaN(e)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(f+=c.substr(0,b)+"\r\n",c=c.substr(b));return f+=c,f};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,f,e,d,h=0;h>4),64!==e&&(b+=String.fromCharCode((f&15)<<4|e>>2),64!==d&&(b+=String.fromCharCode((e&3)<<6|d)));return b};c.encodeUtf8=function(a){return unescape(encodeURIComponent(a))};c.decodeUtf8=function(a){return decodeURIComponent(escape(a))};c.binary={raw:{},hex:{},base64:{}};c.binary.raw.encode=function(a){return String.fromCharCode.apply(null,a)};c.binary.raw.decode=function(a,b,c){var f=b; +f||(f=new Uint8Array(a.length));for(var l=c=c||0,e=0;e> 2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((l&3)<<4|e>>4),isNaN(e)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(f+=c.substr(0,b)+"\r\n",c=c.substr(b));return f+=c,f};c.binary.base64.decode=function(a,b,c){var f=b;f||(f=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g, -"");c=c||0;for(var e,d,g,m,p=0,n=c;p>4,64!==g&&(f[n++]=(d&15)<<4|g>>2,64!==m&&(f[n++]=(g&3)<<6|m));return b?n-c:f.subarray(0,n)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,f){a=c.encodeUtf8(a);var l=b;l||(l=new Uint8Array(a.length));for(var e=f=f||0,d=0;d>4,64!==h&&(f[n++]=(d&15)<<4|h>>2,64!==m&&(f[n++]=(h&3)<<6|m));return b?n-c:f.subarray(0,n)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,f){a=c.encodeUtf8(a);var l=b;l||(l=new Uint8Array(a.length));for(var e=f=f||0,d=0;da?"-":"";var e=parseInt(a=Math.abs(+a|| 0).toFixed(l),10)+"",d=3e;++e)if(a[e]&&0!==a[e].length){var d=c.hexToBytes(a[e]);2>d.length&&l.putByte(0);l.putBytes(d)}else l.fillWithByte(0,f),f=0;return l.getBytes()}; -c.bytesToIP=function(a){return 4===a.length?c.bytesToIPv4(a):16===a.length?c.bytesToIPv6(a):null};c.bytesToIPv4=function(a){if(4!==a.length)return null;for(var b=[],c=0;cf[l].end-f[l].start&&(l= -f.length-1)):f.push({start:m,end:m})}b.push(d)}0g.st&&l.stl.st&&g.stf[l].end-f[l].start&&(l= +f.length-1)):f.push({start:m,end:m})}b.push(d)}0h.st&&l.stl.st&&h.st=this.blockSize){for(var e=0;ef;++f)a[f/32|0]&1<<31-f%32&&(c[0]^=b[0],c[1]^=b[1],c[2]^=b[2],c[3]^=b[3]),this.pow(b,b);return c};e.gcm.prototype.pow=function(a,b){for(var c=a[3]&1,f=3;0>>1|(a[f-1]&1)<<31;b[0]=a[0]>>>1;c&&(b[0]^=this._R)};e.gcm.prototype.tableMultiply=function(a){for(var b=[0,0,0,0],c=0;32>c;++c){var f=this._m[c][a[c/8|0]>>>4*(7-c%8)&15];b[0]^=f[0];b[1]^=f[1];b[2]^=f[2];b[3]^=f[3]}return b};e.gcm.prototype.ghash=function(a,b,c){return b[0]^=c[0],b[1]^=c[1],b[2]^=c[2],b[3]^=c[3],this.tableMultiply(b)}; -e.gcm.prototype.generateHashTable=function(a,b){for(var c=8/b,f=4*c,c=16*c,l=Array(c),e=0;e>>1,f=Array(b);f[c]=a.slice(0);for(var l=c>>>1;0>=1;for(l=2;lb;++b)a[b]=b<<1,a[b+ -128]=b+128<<1^283;h=Array(256);q=Array(256);D=Array(4);w=Array(4);for(b=0;4>b;++b)D[b]=Array(256),w[b]=Array(256);for(var c=0,f=0,l,e,d,m,n,b=0;256>b;++b){m=f^f<<1^f<<2^f<<3^f<<4;m=m>>8^m&255^99;h[c]=m;q[m]=c;n=a[m];l=a[c];e=a[l];d=a[e];n^=n<<24^m<<16^m<<8^m;e=(l^e^d)<<24^(c^d)<<16^(c^e^d)<<8^c^l^d;for(var p=0;4>p;++p)D[p][c]=n,w[p][m]=e,n=n<<24|n>>>8,e=e<<24|e>>>8;0===c?c=f=1:(c=l^a[a[a[l^d]]],f^=a[a[f]])}}function l(a,b){a=a.slice(0);for(var c,f=1,l=a.length,e=k*(l+6+1),d=l;d>>16&255]<<24^h[c>>>8&255]<<16^h[c&255]<<8^h[c>>>24]^A[f]<<24,f++):6>>24]<<24^h[c>>>16&255]<<16^h[c>>>8&255]<<8^h[c&255]),a[d]=a[d-l]^c;if(b){c=w[0];for(var f=w[1],l=w[2],g=w[3],m=a.slice(0),e=a.length,d=0,n=e-k;d>>24]]^f[h[b>>>16&255]]^l[h[b>>>8&255]]^g[h[b&255]];a=m}return a}function e(a,b,c,f){var l=a.length/4-1,e,d,g,m,n;f?(e=w[0], -d=w[1],g=w[2],m=w[3],n=q):(e=D[0],d=D[1],g=D[2],m=D[3],n=h);var p,u,r,k,v,x;p=b[0]^a[0];u=b[f?3:1]^a[1];r=b[2]^a[2];b=b[f?1:3]^a[3];for(var C=3,F=1;F>>24]^d[u>>>16&255]^g[r>>>8&255]^m[b&255]^a[++C],v=e[u>>>24]^d[r>>>16&255]^g[b>>>8&255]^m[p&255]^a[++C],x=e[r>>>24]^d[b>>>16&255]^g[p>>>8&255]^m[u&255]^a[++C],b=e[b>>>24]^d[p>>>16&255]^g[u>>>8&255]^m[r&255]^a[++C],p=k,u=v,r=x;c[0]=n[p>>>24]<<24^n[u>>>16&255]<<16^n[r>>>8&255]<<8^n[b&255]^a[++C];c[f?3:1]=n[u>>>24]<<24^n[r>>>16&255]<<16^n[b>>> +e.gcm.prototype.generateHashTable=function(a,b){for(var c=8/b,f=4*c,c=16*c,l=Array(c),e=0;e>>1,f=Array(b);f[c]=a.slice(0);for(var l=c>>>1;0>=1;for(l=2;lb;++b)a[b]=b<<1,a[b+ +128]=b+128<<1^283;g=Array(256);q=Array(256);D=Array(4);w=Array(4);for(b=0;4>b;++b)D[b]=Array(256),w[b]=Array(256);for(var c=0,f=0,l,e,d,m,n,b=0;256>b;++b){m=f^f<<1^f<<2^f<<3^f<<4;m=m>>8^m&255^99;g[c]=m;q[m]=c;n=a[m];l=a[c];e=a[l];d=a[e];n^=n<<24^m<<16^m<<8^m;e=(l^e^d)<<24^(c^d)<<16^(c^e^d)<<8^c^l^d;for(var p=0;4>p;++p)D[p][c]=n,w[p][m]=e,n=n<<24|n>>>8,e=e<<24|e>>>8;0===c?c=f=1:(c=l^a[a[a[l^d]]],f^=a[a[f]])}}function l(a,b){a=a.slice(0);for(var c,f=1,l=a.length,e=k*(l+6+1),d=l;d>>16&255]<<24^g[c>>>8&255]<<16^g[c&255]<<8^g[c>>>24]^A[f]<<24,f++):6>>24]<<24^g[c>>>16&255]<<16^g[c>>>8&255]<<8^g[c&255]),a[d]=a[d-l]^c;if(b){c=w[0];for(var f=w[1],l=w[2],h=w[3],m=a.slice(0),e=a.length,d=0,n=e-k;d>>24]]^f[g[b>>>16&255]]^l[g[b>>>8&255]]^h[g[b&255]];a=m}return a}function e(a,b,c,f){var l=a.length/4-1,e,d,h,m,n;f?(e=w[0], +d=w[1],h=w[2],m=w[3],n=q):(e=D[0],d=D[1],h=D[2],m=D[3],n=g);var p,u,r,k,v,x;p=b[0]^a[0];u=b[f?3:1]^a[1];r=b[2]^a[2];b=b[f?1:3]^a[3];for(var C=3,F=1;F>>24]^d[u>>>16&255]^h[r>>>8&255]^m[b&255]^a[++C],v=e[u>>>24]^d[r>>>16&255]^h[b>>>8&255]^m[p&255]^a[++C],x=e[r>>>24]^d[b>>>16&255]^h[p>>>8&255]^m[u&255]^a[++C],b=e[b>>>24]^d[p>>>16&255]^h[u>>>8&255]^m[r&255]^a[++C],p=k,u=v,r=x;c[0]=n[p>>>24]<<24^n[u>>>16&255]<<16^n[r>>>8&255]<<8^n[b&255]^a[++C];c[f?3:1]=n[u>>>24]<<24^n[r>>>16&255]<<16^n[b>>> 8&255]<<8^n[p&255]^a[++C];c[2]=n[r>>>24]<<24^n[b>>>16&255]<<16^n[p>>>8&255]<<8^n[u&255]^a[++C];c[f?1:3]=n[b>>>24]<<24^n[p>>>16&255]<<16^n[u>>>8&255]<<8^n[r&255]^a[++C]}function d(b){b=b||{};var c="AES-"+(b.mode||"CBC").toUpperCase(),f;b.decrypt?f=a.cipher.createDecipher(c,b.key):f=a.cipher.createCipher(c,b.key);var l=f.start;return f.start=function(b,c){var e=null;c instanceof a.util.ByteBuffer&&(e=c,c={});c=c||{};c.output=e;c.iv=b;l.call(f,c)},f}a.aes=a.aes||{};a.aes.startEncrypting=function(a,b, -c,f){a=d({key:a,output:c,decrypt:!1,mode:f});return a.start(b),a};a.aes.createEncryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!1,mode:b})};a.aes.startDecrypting=function(a,b,c,f){a=d({key:a,output:c,decrypt:!0,mode:f});return a.start(b),a};a.aes.createDecryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!0,mode:b})};a.aes.Algorithm=function(a,b){g||c();var f=this;f.name=a;f.mode=new b({blockSize:16,cipher:{encrypt:function(a,b){return e(f._w,a,b,!1)},decrypt:function(a, +c,f){a=d({key:a,output:c,decrypt:!1,mode:f});return a.start(b),a};a.aes.createEncryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!1,mode:b})};a.aes.startDecrypting=function(a,b,c,f){a=d({key:a,output:c,decrypt:!0,mode:f});return a.start(b),a};a.aes.createDecryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!0,mode:b})};a.aes.Algorithm=function(a,b){h||c();var f=this;f.name=a;f.mode=new b({blockSize:16,cipher:{encrypt:function(a,b){return e(f._w,a,b,!1)},decrypt:function(a, b){return e(f._w,a,b,!0)}}});f._init=!1};a.aes.Algorithm.prototype.initialize=function(b){if(!this._init){var c=b.key,f;if("string"!=typeof c||16!==c.length&&24!==c.length&&32!==c.length){if(a.util.isArray(c)&&(16===c.length||24===c.length||32===c.length)){f=c;for(var c=a.util.createBuffer(),e=0;e>>=2,e=0;ef.length()){var d=Error("Too few bytes to parse DER.");throw d.bytes=f.length(),d;}var l=f.getByte(),d=l&192,g=l&31,m=c(f);if(f.length()=d.length())f.putByte(d.length()&127);else{l=d.length();c="";do c+=String.fromCharCode(l&255),l>>>=8;while(0>>=7,f||(d|=128),e.push(d),f=!1;while(0f.length()){var d=Error("Too few bytes to parse DER.");throw d.bytes=f.length(),d;}var l=f.getByte(),d=l&192,h=l&31,m=c(f);if(f.length()=d.length())f.putByte(d.length()&127);else{l=d.length();c="";do c+=String.fromCharCode(l&255),l>>>=8;while(0>>=7,f||(d|=128),e.push(d),f=!1;while(0c[a].length&&(b+="0"),b+=c[a];return b+="Z",b};b.dateToGeneralizedTime=function(a){if("string"==typeof a)return a;var b="",c=[];c.push(""+a.getUTCFullYear());c.push(""+(a.getUTCMonth()+1));c.push(""+a.getUTCDate());c.push(""+a.getUTCHours());c.push(""+a.getUTCMinutes());c.push(""+a.getUTCSeconds());for(a=0;ac[a].length&&(b+="0"),b+=c[a];return b+="Z",b};b.integerToDer=function(b){var c= a.util.createBuffer();if(-128<=b&&128>b)return c.putSignedInt(b,8);if(-32768<=b&&32768>b)return c.putSignedInt(b,16);if(-8388608<=b&&8388608>b)return c.putSignedInt(b,24);if(-2147483648<=b&&2147483648>b)return c.putSignedInt(b,32);c=Error("Integer too large; max is 32-bits.");throw c.integer=b,c;};b.derToInteger=function(b){"string"==typeof b&&(b=a.util.createBuffer(b));var c=8*b.length();if(32b;++b)k[b]=Math.floor(4294967296*Math.abs(Math.sin(b+1)));h=!0}function c(a,b,c){for(var f,e,d,m,n,B,p,u=c.length();64<=u;){e=a.h0;d=a.h1;m=a.h2;n=a.h3;for(p=0;16>p;++p)b[p]=c.getInt32Le(),f=n^d&(m^n),f=e+f+k[p]+b[p],B=g[p],e=n,n=m,m=d,d+=f<>>32-B;for(;32>p;++p)f=m^n&(d^m),f=e+ -f+k[p]+b[l[p]],B=g[p],e=n,n=m,m=d,d+=f<>>32-B;for(;48>p;++p)f=d^m^n,f=e+f+k[p]+b[l[p]],B=g[p],e=n,n=m,m=d,d+=f<>>32-B;for(;64>p;++p)f=m^(d|~n),f=e+f+k[p]+b[l[p]],B=g[p],e=n,n=m,m=d,d+=f<>>32-B;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+m|0;a.h3=a.h3+n|0;u-=64}}var e=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=e;e.create=function(){h||b();var f=null,e=a.util.createBuffer(),l=Array(16),g={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0, -messageLength64:[0,0]};return g.start=function(){return g.messageLength=0,g.messageLength64=[0,0],e=a.util.createBuffer(),f={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},g},g.start(),g.update=function(b,d){return"utf8"===d&&(b=a.util.encodeUtf8(b)),g.messageLength+=b.length,g.messageLength64[0]+=b.length/4294967296>>>0,g.messageLength64[1]+=b.length>>>0,e.putBytes(b),c(f,l,e),(2048>>28);var m={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3};c(m,l,b);b=a.util.createBuffer();return b.putInt32Le(m.h0),b.putInt32Le(m.h1),b.putInt32Le(m.h2),b.putInt32Le(m.h3),b},g};var d=null,l=null,g=null,k=null,h=!1}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a, -module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.md5)return b.md5;b.defined.md5=!0;for(var e=0;ep;++p)f=c.getInt32(),b[p]=f,n=g^d&(l^g),f=(e<<5|e>>>27)+n+m+1518500249+f,m=g,g=l,l=d<<30|d>>>2,d=e,e=f;for(;20>p;++p)f=b[p-3]^b[p-8]^b[p-14]^b[p-16],f=f<<1|f>>>31,b[p]=f,n=g^d&(l^g),f=(e<<5|e>>>27)+n+m+1518500249+f,m=g,g=l,l=d<<30|d>>>2,d=e,e=f;for(;32>p;++p)f=b[p-3]^b[p-8]^b[p-14]^b[p-16],f=f<<1|f>>>31,b[p]=f,n=d^l^g,f=(e<<5|e>>>27)+n+m+1859775393+f,m=g,g= -l,l=d<<30|d>>>2,d=e,e=f;for(;40>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d^l^g,f=(e<<5|e>>>27)+n+m+1859775393+f,m=g,g=l,l=d<<30|d>>>2,d=e,e=f;for(;60>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d&l|g&(d^l),f=(e<<5|e>>>27)+n+m+2400959708+f,m=g,g=l,l=d<<30|d>>>2,d=e,e=f;for(;80>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d^l^g,f=(e<<5|e>>>27)+n+m+3395469782+f,m=g,g=l,l=d<<30|d>>>2,d=e,e=f;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+l|0;a.h3=a.h3+g| -0;a.h4=a.h4+m|0;u-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){d||(e=String.fromCharCode(128),e+=a.util.fillString(String.fromCharCode(0),64),d=!0);var c=null,f=a.util.createBuffer(),l=Array(80),g={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0]};return g.start=function(){return g.messageLength=0,g.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1732584193,h1:4023233417, -h2:2562383102,h3:271733878,h4:3285377520},g},g.start(),g.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),g.messageLength+=e.length,g.messageLength64[0]+=e.length/4294967296>>>0,g.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,l,f),(2048>>28);d.putInt32(g.messageLength64[1]<< -3);var m={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(m,l,d);d=a.util.createBuffer();return d.putInt32(m.h0),d.putInt32(m.h1),d.putInt32(m.h2),d.putInt32(m.h3),d.putInt32(m.h4),d},g};var e=null,d=!1}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha1)return b.sha1; -b.defined.sha1=!0;for(var e=0;em;++m)b[m]=c.getInt32(); -for(;64>m;++m)f=b[m-2],f=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,e=b[m-15],e=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,b[m]=f+b[m-7]+e+b[m-16]|0;n=a.h0;p=a.h1;k=a.h2;B=a.h3;u=a.h4;h=a.h5;r=a.h6;x=a.h7;for(m=0;64>m;++m)f=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),d=r^u&(h^r),e=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=n&p|k&(n^p),f=x+f+d+l[m]+b[m],e+=g,x=r,r=h,h=u,u=B+f|0,B=k,k=p,p=n,n=f+e|0;a.h0=a.h0+n|0;a.h1=a.h1+p|0;a.h2=a.h2+k|0;a.h3=a.h3+B|0;a.h4=a.h4+u|0;a.h5=a.h5+h|0;a.h6=a.h6+r|0;a.h7=a.h7+x|0;C-= +6,13,4,11,2,9];h=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];k=Array(64);for(var b=0;64>b;++b)k[b]=Math.floor(4294967296*Math.abs(Math.sin(b+1)));g=!0}function c(a,b,c){for(var f,e,d,m,n,B,p,u=c.length();64<=u;){e=a.h0;d=a.h1;m=a.h2;n=a.h3;for(p=0;16>p;++p)b[p]=c.getInt32Le(),f=n^d&(m^n),f=e+f+k[p]+b[p],B=h[p],e=n,n=m,m=d,d+=f<>>32-B;for(;32>p;++p)f=m^n&(d^m),f=e+ +f+k[p]+b[l[p]],B=h[p],e=n,n=m,m=d,d+=f<>>32-B;for(;48>p;++p)f=d^m^n,f=e+f+k[p]+b[l[p]],B=h[p],e=n,n=m,m=d,d+=f<>>32-B;for(;64>p;++p)f=m^(d|~n),f=e+f+k[p]+b[l[p]],B=h[p],e=n,n=m,m=d,d+=f<>>32-B;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+m|0;a.h3=a.h3+n|0;u-=64}}var e=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=e;e.create=function(){g||b();var f=null,e=a.util.createBuffer(),l=Array(16),h={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0, +messageLength64:[0,0]};return h.start=function(){return h.messageLength=0,h.messageLength64=[0,0],e=a.util.createBuffer(),f={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},h},h.start(),h.update=function(b,d){return"utf8"===d&&(b=a.util.encodeUtf8(b)),h.messageLength+=b.length,h.messageLength64[0]+=b.length/4294967296>>>0,h.messageLength64[1]+=b.length>>>0,e.putBytes(b),c(f,l,e),(2048>>28);var m={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3};c(m,l,b);b=a.util.createBuffer();return b.putInt32Le(m.h0),b.putInt32Le(m.h1),b.putInt32Le(m.h2),b.putInt32Le(m.h3),b},h};var d=null,l=null,h=null,k=null,g=!1}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a, +module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.md5)return b.md5;b.defined.md5=!0;for(var e=0;ep;++p)f=c.getInt32(),b[p]=f,n=h^d&(l^h),f=(e<<5|e>>>27)+n+m+1518500249+f,m=h,h=l,l=d<<30|d>>>2,d=e,e=f;for(;20>p;++p)f=b[p-3]^b[p-8]^b[p-14]^b[p-16],f=f<<1|f>>>31,b[p]=f,n=h^d&(l^h),f=(e<<5|e>>>27)+n+m+1518500249+f,m=h,h=l,l=d<<30|d>>>2,d=e,e=f;for(;32>p;++p)f=b[p-3]^b[p-8]^b[p-14]^b[p-16],f=f<<1|f>>>31,b[p]=f,n=d^l^h,f=(e<<5|e>>>27)+n+m+1859775393+f,m=h,h= +l,l=d<<30|d>>>2,d=e,e=f;for(;40>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d^l^h,f=(e<<5|e>>>27)+n+m+1859775393+f,m=h,h=l,l=d<<30|d>>>2,d=e,e=f;for(;60>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d&l|h&(d^l),f=(e<<5|e>>>27)+n+m+2400959708+f,m=h,h=l,l=d<<30|d>>>2,d=e,e=f;for(;80>p;++p)f=b[p-6]^b[p-16]^b[p-28]^b[p-32],f=f<<2|f>>>30,b[p]=f,n=d^l^h,f=(e<<5|e>>>27)+n+m+3395469782+f,m=h,h=l,l=d<<30|d>>>2,d=e,e=f;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+l|0;a.h3=a.h3+h| +0;a.h4=a.h4+m|0;u-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){d||(e=String.fromCharCode(128),e+=a.util.fillString(String.fromCharCode(0),64),d=!0);var c=null,f=a.util.createBuffer(),l=Array(80),h={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0]};return h.start=function(){return h.messageLength=0,h.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1732584193,h1:4023233417, +h2:2562383102,h3:271733878,h4:3285377520},h},h.start(),h.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),h.messageLength+=e.length,h.messageLength64[0]+=e.length/4294967296>>>0,h.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,l,f),(2048>>28);d.putInt32(h.messageLength64[1]<< +3);var m={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(m,l,d);d=a.util.createBuffer();return d.putInt32(m.h0),d.putInt32(m.h1),d.putInt32(m.h2),d.putInt32(m.h3),d.putInt32(m.h4),d},h};var e=null,d=!1}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha1)return b.sha1; +b.defined.sha1=!0;for(var e=0;em;++m)b[m]=c.getInt32(); +for(;64>m;++m)f=b[m-2],f=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,e=b[m-15],e=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,b[m]=f+b[m-7]+e+b[m-16]|0;n=a.h0;p=a.h1;k=a.h2;B=a.h3;u=a.h4;g=a.h5;r=a.h6;x=a.h7;for(m=0;64>m;++m)f=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),d=r^u&(g^r),e=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),h=n&p|k&(n^p),f=x+f+d+l[m]+b[m],e+=h,x=r,r=g,g=u,u=B+f|0,B=k,k=p,p=n,n=f+e|0;a.h0=a.h0+n|0;a.h1=a.h1+p|0;a.h2=a.h2+k|0;a.h3=a.h3+B|0;a.h4=a.h4+u|0;a.h5=a.h5+g|0;a.h6=a.h6+r|0;a.h7=a.h7+x|0;C-= 64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){d||(e=String.fromCharCode(128),e+=a.util.fillString(String.fromCharCode(0),64),l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349, -2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=!0);var c=null,f=a.util.createBuffer(),g=Array(64),m={algorithm:"sha256",blockLength:64,digestLength:32, -messageLength:0,messageLength64:[0,0]};return m.start=function(){return m.messageLength=0,m.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},m},m.start(),m.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),m.messageLength+=e.length,m.messageLength64[0]+=e.length/4294967296>>>0,m.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,g,f),(2048>>28);d.putInt32(m.messageLength64[1]<<3);var l={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(l,g,d);d=a.util.createBuffer();return d.putInt32(l.h0),d.putInt32(l.h1),d.putInt32(l.h2),d.putInt32(l.h3),d.putInt32(l.h4),d.putInt32(l.h5),d.putInt32(l.h6),d.putInt32(l.h7),d},m};var e=null,d=!1,l=null} -if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha256)return b.sha256;b.defined.sha256=!0;for(var e=0;eU;++U)b[U][0]=c.getInt32()>>>0,b[U][1]=c.getInt32()>>>0;for(;80>U;++U)m=b[U-2],k=m[0],m=m[1],f=((k>>>19|m<<13)^(m>>>29|k<<3)^k>>>6)>>>0,e=((k<<13|m>>>19)^(m<<3|k>>>29)^(k<<26|m>>>6))>>> -0,m=b[U-15],k=m[0],m=m[1],d=((k>>>1|m<<31)^(k>>>8|m<<24)^k>>>7)>>>0,l=((k<<31|m>>>1)^(k<<24|m>>>8)^(k<<25|m>>>7))>>>0,k=b[U-7],u=b[U-16],m=e+k[1]+l+u[1],b[U][0]=f+k[0]+d+u[0]+(m/4294967296>>>0)>>>0,b[U][1]=m>>>0;k=a[0][0];u=a[0][1];h=a[1][0];r=a[1][1];x=a[2][0];q=a[2][1];C=a[3][0];A=a[3][1];T=a[4][0];S=a[4][1];K=a[5][0];M=a[5][1];R=a[6][0];O=a[6][1];H=a[7][0];L=a[7][1];for(U=0;80>U;++U)f=((T>>>14|S<<18)^(T>>>18|S<<14)^(S>>>9|T<<23))>>>0,m=((T<<18|S>>>14)^(T<<14|S>>>18)^(S<<23|T>>>9))>>>0,e=(R^T&(K^ -R))>>>0,n=(O^S&(M^O))>>>0,d=((k>>>28|u<<4)^(u>>>2|k<<30)^(u>>>7|k<<25))>>>0,l=((k<<4|u>>>28)^(u<<30|k>>>2)^(u<<25|k>>>7))>>>0,B=(k&h|x&(k^h))>>>0,p=(u&r|q&(u^r))>>>0,m=L+m+n+g[U][1]+b[U][1],f=H+f+e+g[U][0]+b[U][0]+(m/4294967296>>>0)>>>0,e=m>>>0,m=l+p,d=d+B+(m/4294967296>>>0)>>>0,l=m>>>0,H=R,L=O,R=K,O=M,K=T,M=S,m=A+e,T=C+f+(m/4294967296>>>0)>>>0,S=m>>>0,C=x,A=q,x=h,q=r,h=k,r=u,m=e+l,k=f+d+(m/4294967296>>>0)>>>0,u=m>>>0;m=a[0][1]+u;a[0][0]=a[0][0]+k+(m/4294967296>>>0)>>>0;a[0][1]=m>>>0;m=a[1][1]+r; -a[1][0]=a[1][0]+h+(m/4294967296>>>0)>>>0;a[1][1]=m>>>0;m=a[2][1]+q;a[2][0]=a[2][0]+x+(m/4294967296>>>0)>>>0;a[2][1]=m>>>0;m=a[3][1]+A;a[3][0]=a[3][0]+C+(m/4294967296>>>0)>>>0;a[3][1]=m>>>0;m=a[4][1]+S;a[4][0]=a[4][0]+T+(m/4294967296>>>0)>>>0;a[4][1]=m>>>0;m=a[5][1]+M;a[5][0]=a[5][0]+K+(m/4294967296>>>0)>>>0;a[5][1]=m>>>0;m=a[6][1]+O;a[6][0]=a[6][0]+R+(m/4294967296>>>0)>>>0;a[6][1]=m>>>0;m=a[7][1]+L;a[7][0]=a[7][0]+H+(m/4294967296>>>0)>>>0;a[7][1]=m>>>0;oa-=128}}var c=a.sha512=a.sha512||{};a.md=a.md|| +2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=!0);var c=null,f=a.util.createBuffer(),h=Array(64),m={algorithm:"sha256",blockLength:64,digestLength:32, +messageLength:0,messageLength64:[0,0]};return m.start=function(){return m.messageLength=0,m.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},m},m.start(),m.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),m.messageLength+=e.length,m.messageLength64[0]+=e.length/4294967296>>>0,m.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,h,f),(2048>>28);d.putInt32(m.messageLength64[1]<<3);var l={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(l,h,d);d=a.util.createBuffer();return d.putInt32(l.h0),d.putInt32(l.h1),d.putInt32(l.h2),d.putInt32(l.h3),d.putInt32(l.h4),d.putInt32(l.h5),d.putInt32(l.h6),d.putInt32(l.h7),d},m};var e=null,d=!1,l=null} +if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha256)return b.sha256;b.defined.sha256=!0;for(var e=0;eU;++U)b[U][0]=c.getInt32()>>>0,b[U][1]=c.getInt32()>>>0;for(;80>U;++U)m=b[U-2],k=m[0],m=m[1],f=((k>>>19|m<<13)^(m>>>29|k<<3)^k>>>6)>>>0,e=((k<<13|m>>>19)^(m<<3|k>>>29)^(k<<26|m>>>6))>>> +0,m=b[U-15],k=m[0],m=m[1],d=((k>>>1|m<<31)^(k>>>8|m<<24)^k>>>7)>>>0,l=((k<<31|m>>>1)^(k<<24|m>>>8)^(k<<25|m>>>7))>>>0,k=b[U-7],u=b[U-16],m=e+k[1]+l+u[1],b[U][0]=f+k[0]+d+u[0]+(m/4294967296>>>0)>>>0,b[U][1]=m>>>0;k=a[0][0];u=a[0][1];g=a[1][0];r=a[1][1];x=a[2][0];q=a[2][1];C=a[3][0];A=a[3][1];T=a[4][0];S=a[4][1];K=a[5][0];M=a[5][1];R=a[6][0];O=a[6][1];H=a[7][0];L=a[7][1];for(U=0;80>U;++U)f=((T>>>14|S<<18)^(T>>>18|S<<14)^(S>>>9|T<<23))>>>0,m=((T<<18|S>>>14)^(T<<14|S>>>18)^(S<<23|T>>>9))>>>0,e=(R^T&(K^ +R))>>>0,n=(O^S&(M^O))>>>0,d=((k>>>28|u<<4)^(u>>>2|k<<30)^(u>>>7|k<<25))>>>0,l=((k<<4|u>>>28)^(u<<30|k>>>2)^(u<<25|k>>>7))>>>0,B=(k&g|x&(k^g))>>>0,p=(u&r|q&(u^r))>>>0,m=L+m+n+h[U][1]+b[U][1],f=H+f+e+h[U][0]+b[U][0]+(m/4294967296>>>0)>>>0,e=m>>>0,m=l+p,d=d+B+(m/4294967296>>>0)>>>0,l=m>>>0,H=R,L=O,R=K,O=M,K=T,M=S,m=A+e,T=C+f+(m/4294967296>>>0)>>>0,S=m>>>0,C=x,A=q,x=g,q=r,g=k,r=u,m=e+l,k=f+d+(m/4294967296>>>0)>>>0,u=m>>>0;m=a[0][1]+u;a[0][0]=a[0][0]+k+(m/4294967296>>>0)>>>0;a[0][1]=m>>>0;m=a[1][1]+r; +a[1][0]=a[1][0]+g+(m/4294967296>>>0)>>>0;a[1][1]=m>>>0;m=a[2][1]+q;a[2][0]=a[2][0]+x+(m/4294967296>>>0)>>>0;a[2][1]=m>>>0;m=a[3][1]+A;a[3][0]=a[3][0]+C+(m/4294967296>>>0)>>>0;a[3][1]=m>>>0;m=a[4][1]+S;a[4][0]=a[4][0]+T+(m/4294967296>>>0)>>>0;a[4][1]=m>>>0;m=a[5][1]+M;a[5][0]=a[5][0]+K+(m/4294967296>>>0)>>>0;a[5][1]=m>>>0;m=a[6][1]+O;a[6][0]=a[6][0]+R+(m/4294967296>>>0)>>>0;a[6][1]=m>>>0;m=a[7][1]+L;a[7][0]=a[7][0]+H+(m/4294967296>>>0)>>>0;a[7][1]=m>>>0;oa-=128}}var c=a.sha512=a.sha512||{};a.md=a.md|| {};a.md.algorithms=a.md.algorithms||{};a.md.sha512=a.md.algorithms.sha512=c;var e=a.sha384=a.sha512.sha384=a.sha512.sha384||{};e.create=function(){return c.create("SHA-384")};a.md.sha384=a.md.algorithms.sha384=e;a.sha512.sha256=a.sha512.sha256||{create:function(){return c.create("SHA-512/256")}};a.md["sha512/256"]=a.md.algorithms["sha512/256"]=a.sha512.sha256;a.sha512.sha224=a.sha512.sha224||{create:function(){return c.create("SHA-512/224")}};a.md["sha512/224"]=a.md.algorithms["sha512/224"]=a.sha512.sha224; -c.create=function(c){l||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),128),g=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458], +c.create=function(c){l||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),128),h=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458], [4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350, 1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044], [2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],k={"SHA-512":[[1779033703,4089235720], [3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],"SHA-384":[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],"SHA-512/256":[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141, 1401305490],[721525244,746961066],[246885852,2177182882]],"SHA-512/224":[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]]},l=!0);"undefined"==typeof c&&(c="SHA-512");if(c in k){for(var f=k[c],e=null,m=a.util.createBuffer(),n=Array(80),p=0;80>p;++p)n[p]=Array(2);var u={algorithm:c.replace("-","").toLowerCase(),blockLength:128,digestLength:64,messageLength:0,messageLength128:[0, 0,0,0]};return u.start=function(){u.messageLength=0;u.messageLength128=[0,0,0,0];m=a.util.createBuffer();e=Array(f.length);for(var b=0;b>>0,f>>>0];for(var d=3;0<=d;--d)u.messageLength128[d]+=f[1],f[1]=f[0]+(u.messageLength128[d]/4294967296>>>0),u.messageLength128[d]>>>=0,f[0]=f[1]/4294967296>>>0;return m.putBytes(c),b(e,n,m),(2048g;++g)l[g]=u.messageLength128[g]<<3|u.messageLength128[g-1]>>>28;l[3]=u.messageLength128[3]<<3;f.putInt32(l[0]);f.putInt32(l[1]);f.putInt32(l[2]);f.putInt32(l[3]);l=Array(e.length);for(g=0;gh;++h)l[h]=u.messageLength128[h]<<3|u.messageLength128[h-1]>>>28;l[3]=u.messageLength128[3]<<3;f.putInt32(l[0]);f.putInt32(l[1]);f.putInt32(l[2]);f.putInt32(l[3]);l=Array(e.length);for(h=0;hb.blockLength&&(b.start(),b.update(d.bytes()),d=b.digest());c=a.util.createBuffer();e=a.util.createBuffer();g=d.length();for(l=0;lb.blockLength&&(b.start(),b.update(d.bytes()),d=b.digest());c=a.util.createBuffer();e=a.util.createBuffer();h=d.length();for(l=0;l>>4^n)&252645135;n^=b;f^=b<<4;b=(f>>>16^n)&65535;n^=b;f^=b<<16;b=(n>>>2^f)&858993459;f^=b;n^=b<<2;b=(n>>>8^f)&16711935;f^=b;n^=b<<8;b=(f>>>1^n)&1431655765;n^=b;f^=b<<1;f=f<<1|f>>>31;for(var n=n<<1|n>>>31,p=0;p>>4|n<<28)^a[x+1];b=f;f=n;n=b^(g[v>>>24&63]|k[v>>>16&63]|q[v>>>8&63]|D[v&63]| -d[C>>>24&63]|l[C>>>16&63]|h[C>>>8&63]|A[C&63])}b=f;f=n;n=b}f=f>>>1|f<<31;n=n>>>1|n<<31;b=(f>>>1^n)&1431655765;n^=b;f^=b<<1;b=(n>>>8^f)&16711935;f^=b;n^=b<<8;b=(n>>>2^f)&858993459;f^=b;n^=b<<2;b=(f>>>16^n)&65535;n^=b;f^=b<<16;b=(f>>>4^n)&252645135;c[0]=f^b<<4;c[1]=n^b}function e(b){b=b||{};var c="DES-"+(b.mode||"CBC").toUpperCase(),f;b.decrypt?f=a.cipher.createDecipher(c,b.key):f=a.cipher.createCipher(c,b.key);var e=f.start;return f.start=function(b,c){var d=null;c instanceof a.util.ByteBuffer&&(d= +if(!l)break;var h={type:l[1],procType:null,contentDomain:null,dekInfo:null,headers:[],body:a.util.decode64(l[3])};c.push(h);if(l[2]){for(var m=l[2].split(d),n=0;l&&n>>4^n)&252645135;n^=b;f^=b<<4;b=(f>>>16^n)&65535;n^=b;f^=b<<16;b=(n>>>2^f)&858993459;f^=b;n^=b<<2;b=(n>>>8^f)&16711935;f^=b;n^=b<<8;b=(f>>>1^n)&1431655765;n^=b;f^=b<<1;f=f<<1|f>>>31;for(var n=n<<1|n>>>31,p=0;p>>4|n<<28)^a[x+1];b=f;f=n;n=b^(h[v>>>24&63]|k[v>>>16&63]|q[v>>>8&63]|D[v&63]| +d[C>>>24&63]|l[C>>>16&63]|g[C>>>8&63]|A[C&63])}b=f;f=n;n=b}f=f>>>1|f<<31;n=n>>>1|n<<31;b=(f>>>1^n)&1431655765;n^=b;f^=b<<1;b=(n>>>8^f)&16711935;f^=b;n^=b<<8;b=(n>>>2^f)&858993459;f^=b;n^=b<<2;b=(f>>>16^n)&65535;n^=b;f^=b<<16;b=(f>>>4^n)&252645135;c[0]=f^b<<4;c[1]=n^b}function e(b){b=b||{};var c="DES-"+(b.mode||"CBC").toUpperCase(),f;b.decrypt?f=a.cipher.createDecipher(c,b.key):f=a.cipher.createCipher(c,b.key);var e=f.start;return f.start=function(b,c){var d=null;c instanceof a.util.ByteBuffer&&(d= c,c={});c=c||{};c.output=d;c.iv=b;e.call(f,c)},f}a.des=a.des||{};a.des.startEncrypting=function(a,b,c,f){a=e({key:a,output:c,decrypt:!1,mode:f||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createEncryptionCipher=function(a,b){return e({key:a,output:null,decrypt:!1,mode:b})};a.des.startDecrypting=function(a,b,c,f){a=e({key:a,output:c,decrypt:!0,mode:f||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createDecryptionCipher=function(a,b){return e({key:a,output:null,decrypt:!0,mode:b})};a.des.Algorithm= function(a,b){var f=this;f.name=a;f.mode=new b({blockSize:8,cipher:{encrypt:function(a,b){return c(f._keys,a,b,!1)},decrypt:function(a,b){return c(f._keys,a,b,!0)}}});f._init=!1};a.des.Algorithm.prototype.initialize=function(b){if(!this._init){b=a.util.createBuffer(b.key);if(0===this.name.indexOf("3DES")&&24!==b.length())throw Error("Invalid Triple-DES key size: "+8*b.length());for(var c=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964], -f=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],e=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],d=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],g=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],l=[0,1024,32,1056,0,1024,32,1056,33554432,33555456, +f=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],e=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],d=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],h=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],l=[0,1024,32,1056,0,1024,32,1056,33554432,33555456, 33554464,33555488,33554432,33555456,33554464,33555488],m=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],n=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],p=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],k=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024, -268436480,1032,268436488],u=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],h=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],r=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],x=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],q=8>>4^L)&252645135;L^=w;H^=w<<4;w=(L>>>-16^H)&65535;H^=w;L^=w<<-16;w=(H>>>2^L)&858993459;L^=w;H^=w<<2;w=(L>>>-16^H)&65535;H^=w;L^=w<<-16;w=(H>>>1^L)&1431655765;L^=w;H^=w<<1;w=(L>>>8^H)&16711935;H^=w;L^=w<<8;w=(H>>>1^L)&1431655765;L^=w;H^=w<<1;w=H<<8|L>>>20&240;for(var H=L<<24|L<<8&16711680|L>>>8&65280|L>>>24&240,L=w,U=0;U>>26,L=L<<2|L>>>26):(H=H<<1|H>>>27,L=L<<1|L>>>27);var H=H&-15,L=L&-15,oa=c[H>>>28]|f[H>>>24&15]| -e[H>>>20&15]|d[H>>>16&15]|g[H>>>12&15]|l[H>>>8&15]|m[H>>>4&15],pa=n[L>>>28]|p[L>>>24&15]|k[L>>>20&15]|u[L>>>16&15]|h[L>>>12&15]|r[L>>>8&15]|x[L>>>4&15];w=(pa>>>16^oa)&65535;C[D++]=oa^w;C[D++]=pa^w<<16}}this._keys=C;this._init=!0}};b("DES-ECB",a.cipher.modes.ecb);b("DES-CBC",a.cipher.modes.cbc);b("DES-CFB",a.cipher.modes.cfb);b("DES-OFB",a.cipher.modes.ofb);b("DES-CTR",a.cipher.modes.ctr);b("3DES-ECB",a.cipher.modes.ecb);b("3DES-CBC",a.cipher.modes.cbc);b("3DES-CFB",a.cipher.modes.cfb);b("3DES-OFB", +e[H>>>20&15]|d[H>>>16&15]|h[H>>>12&15]|l[H>>>8&15]|m[H>>>4&15],pa=n[L>>>28]|p[L>>>24&15]|k[L>>>20&15]|u[L>>>16&15]|g[L>>>12&15]|r[L>>>8&15]|x[L>>>4&15];w=(pa>>>16^oa)&65535;C[D++]=oa^w;C[D++]=pa^w<<16}}this._keys=C;this._init=!0}};b("DES-ECB",a.cipher.modes.ecb);b("DES-CBC",a.cipher.modes.cbc);b("DES-CFB",a.cipher.modes.cfb);b("DES-OFB",a.cipher.modes.ofb);b("DES-CTR",a.cipher.modes.ctr);b("3DES-ECB",a.cipher.modes.ecb);b("3DES-CBC",a.cipher.modes.cbc);b("3DES-CFB",a.cipher.modes.cfb);b("3DES-OFB", a.cipher.modes.ofb);b("3DES-CTR",a.cipher.modes.ctr);var d=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756], -g=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616, +h=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616, 1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],l=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736, -134348800,134218248,520,134348800,131592,8,134348808,131584],k=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],h=[256,34078976,34078720,1107296512,524288,256,1073741824, +134348800,134218248,520,134348800,131592,8,134348808,131584],k=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],g=[256,34078976,34078720,1107296512,524288,256,1073741824, 34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112, 34078976,1073742080],q=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0, 541081600,536870912,4194320,536887312],A=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912, 2048,2097154],D=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696]} -if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.des)return b.des;b.defined.des=!0;for(var e=0;eu)return m(null,x);r.start(null,null);r.update(c);r.update(b.util.int32ToBytes(I)); -B=C=r.digest().getBytes();t=2;p()}function p(){if(t<=d)return r.start(null,null),r.update(C),q=r.digest().getBytes(),B=b.util.xorBytes(B,q,k),C=q,++t,b.util.setImmediate(p);x+=I4294967295*k){a=Error("Derived key is too long.");if(m)return m(a);throw a;}var u=Math.ceil(g/k),h=g-(u-1)*k,r=b.hmac.create(); -r.start(l,a);var x="",B,q,C;if(!m){for(var I=1;I<=u;++I){r.start(null,null);r.update(c);r.update(b.util.int32ToBytes(I));B=C=r.digest().getBytes();for(var t=2;t<=d;++t)r.start(null,null),r.update(C),q=r.digest().getBytes(),B=b.util.xorBytes(B,q,k),C=q;x+=Ic;++c)b=31===b?2147483648:b<<2,0===b%g.reseeds&&(a.update(g.pools[c].digest().getBytes()),g.pools[c].start());b=a.digest().getBytes();a.start();a.update(b);a=a.digest().getBytes();g.key=g.plugin.formatKey(b);g.seed=g.plugin.formatSeed(a);g.reseeds=4294967295===g.reseeds?0:g.reseeds+1;g.generated=0}function d(a){var c=null;if("undefined"!=typeof window){var f=window.crypto||window.msCrypto;f&&f.getRandomValues&&(c=function(a){return f.getRandomValues(a)})}var e=b.util.createBuffer();if(c)for(;e.length()< -a;){var d=Math.max(1,Math.min(a-e.length(),65536)/4),g=new Uint32Array(Math.floor(d));try{for(c(g),d=0;d>16),d+=(c&32767)<<16,d+=c>>15,d=(d&2147483647)+(d>>31),c=d&4294967295,d=0;3>d;++d)g=c>>>(d<<3),g^=Math.floor(256*Math.random()),e.putByte(String.fromCharCode(g&255));return e.getBytes(a)} -var g={plugin:a,key:null,seed:null,time:null,reseeds:0,generated:0};a=a.md;for(var l=Array(32),m=0;32>m;++m)l[m]=a.create();return g.pools=l,g.pool=0,g.generate=function(a,f){function e(p){if(p)return f(p);if(B.length()>=a)return f(null,B.getBytes(a));1048575> -f&255);g.collect(c)},g.registerWorker=function(a){a===self?g.seedFile=function(a,b){function c(a){a=a.data;a.forge&&a.forge.prng&&(self.removeEventListener("message",c),b(a.forge.prng.err,a.forge.prng.bytes))}self.addEventListener("message",c);self.postMessage({forge:{prng:{needed:a}}})}:a.addEventListener("message",function(b){b=b.data;b.forge&&b.forge.prng&&g.seedFile(b.forge.prng.needed,function(b,c){a.postMessage({forge:{prng:{err:b,bytes:c}}})})})},g}}if("function"!=typeof b){if("object"!=typeof module|| -!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.prng)return b.prng;b.defined.prng=!0;for(var e=0;eu)return m(null,x);r.start(null,null);r.update(c);r.update(b.util.int32ToBytes(I)); +B=C=r.digest().getBytes();t=2;p()}function p(){if(t<=d)return r.start(null,null),r.update(C),q=r.digest().getBytes(),B=b.util.xorBytes(B,q,k),C=q,++t,b.util.setImmediate(p);x+=I4294967295*k){a=Error("Derived key is too long.");if(m)return m(a);throw a;}var u=Math.ceil(h/k),g=h-(u-1)*k,r=b.hmac.create(); +r.start(l,a);var x="",B,q,C;if(!m){for(var I=1;I<=u;++I){r.start(null,null);r.update(c);r.update(b.util.int32ToBytes(I));B=C=r.digest().getBytes();for(var t=2;t<=d;++t)r.start(null,null),r.update(C),q=r.digest().getBytes(),B=b.util.xorBytes(B,q,k),C=q;x+=Ic;++c)b=31===b?2147483648:b<<2,0===b%h.reseeds&&(a.update(h.pools[c].digest().getBytes()),h.pools[c].start());b=a.digest().getBytes();a.start();a.update(b);a=a.digest().getBytes();h.key=h.plugin.formatKey(b);h.seed=h.plugin.formatSeed(a);h.reseeds=4294967295===h.reseeds?0:h.reseeds+1;h.generated=0}function d(a){var c=null;if("undefined"!=typeof window){var f=window.crypto||window.msCrypto;f&&f.getRandomValues&&(c=function(a){return f.getRandomValues(a)})}var e=b.util.createBuffer();if(c)for(;e.length()< +a;){var d=Math.max(1,Math.min(a-e.length(),65536)/4),h=new Uint32Array(Math.floor(d));try{for(c(h),d=0;d>16),d+=(c&32767)<<16,d+=c>>15,d=(d&2147483647)+(d>>31),c=d&4294967295,d=0;3>d;++d)h=c>>>(d<<3),h^=Math.floor(256*Math.random()),e.putByte(String.fromCharCode(h&255));return e.getBytes(a)} +var h={plugin:a,key:null,seed:null,time:null,reseeds:0,generated:0};a=a.md;for(var l=Array(32),m=0;32>m;++m)l[m]=a.create();return h.pools=l,h.pool=0,h.generate=function(a,f){function e(p){if(p)return f(p);if(B.length()>=a)return f(null,B.getBytes(a));1048575> +f&255);h.collect(c)},h.registerWorker=function(a){a===self?h.seedFile=function(a,b){function c(a){a=a.data;a.forge&&a.forge.prng&&(self.removeEventListener("message",c),b(a.forge.prng.err,a.forge.prng.bytes))}self.addEventListener("message",c);self.postMessage({forge:{prng:{needed:a}}})}:a.addEventListener("message",function(b){b=b.data;b.forge&&b.forge.prng&&h.seedFile(b.forge.prng.needed,function(b,c){a.postMessage({forge:{prng:{err:b,bytes:c}}})})})},h}}if("function"!=typeof b){if("object"!=typeof module|| +!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.prng)return b.prng;b.defined.prng=!0;for(var e=0;e>(d&7),g;for(g=c;128>g;g++)e.putByte(b[e.at(g-1)+e.at(g-c)&255]);e.setAt(128-f,b[e.at(128- -f)&d]);for(g=127-f;0<=g;g--)e.setAt(g,b[e.at(g+1)^e.at(g+f)]);return e};var e=function(b,f,e){var d=!1,g=null,l=null,m=null,n,p,k,h,u=[];b=a.rc2.expandKey(b,f);for(k=0;64>k;k++)u.push(b.getInt16Le());e?(n=function(a){for(k=0;4>k;k++){a[k]+=u[h]+(a[(k+3)%4]&a[(k+2)%4])+(~a[(k+3)%4]&a[(k+1)%4]);var b=a[k],f=c[k];a[k]=b<>16-f;h++}},p=function(a){for(k=0;4>k;k++)a[k]+=u[a[(k+3)%4]&63]}):(n=function(a){for(k=3;0<=k;k--){var b=a[k],f=c[k];a[k]=(b&65535)>>f|b<<16-f&65535;a[k]-=u[h]+(a[(k+ -3)%4]&a[(k+2)%4])+(~a[(k+3)%4]&a[(k+1)%4]);h--}},p=function(a){for(k=3;0<=k;k--)a[k]-=u[a[(k+3)%4]&63]});var r=null;return r={start:function(b,c){b&&"string"==typeof b&&(b=a.util.createBuffer(b));d=!1;g=a.util.createBuffer();l=c||new a.util.createBuffer;m=b;r.output=l},update:function(a){for(d||g.putBuffer(a);8<=g.length();){a=[[5,n],[1,p],[6,n],[1,p],[5,n]];var b=[];for(k=0;4>k;k++){var c=g.getInt16Le();null!==m&&(e?c^=m.getInt16Le():m.putInt16Le(c));b.push(c&65535)}h=e?0:63;for(c=0;ck;k++)null!==m&&(e?m.putInt16Le(b[k]):b[k]^=m.getInt16Le()),l.putInt16Le(b[k])}},finish:function(a){var b=!0;if(e)if(a)b=a(8,g,!e);else{var c=8===g.length()?8:8-g.length();g.fillWithByte(c,c)}b&&(d=!0,r.update());!e&&(b=0===g.length())&&(a?b=a(8,l,!e):(a=l.length(),c=l.at(a-1),c>a?b=!1:l.truncate(c)));return b}},r};a.rc2.startEncrypting=function(b,c,f){b=a.rc2.createEncryptionCipher(b,128);return b.start(c,f),b};a.rc2.createEncryptionCipher=function(a,b){return e(a, -b,!0)};a.rc2.startDecrypting=function(b,c,f){b=a.rc2.createDecryptionCipher(b,128);return b.start(c,f),b};a.rc2.createDecryptionCipher=function(a,b){return e(a,b,!1)}}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rc2)return b.rc2;b.defined.rc2=!0;for(var e= -0;e>=15;0<=--d;){var l=this.data[a]&32767,m=this.data[a++]>>15,B=b*l+m*g,l=g*l+((B&32767)<<15)+c.data[f]+(e&1073741823);e=(l>>>30)+(B>>>15)+b*m+(e>>>30);c.data[f++]=l&1073741823}return e}function g(a,b,c,f,e,d){var g=b&16383;for(b>>=14;0<=--d;){var l=this.data[a]&16383,m= -this.data[a++]>>14,B=b*l+m*g,l=g*l+((B&16383)<<14)+c.data[f]+e;e=(l>>28)+(B>>14)+b*m;c.data[f++]=l&268435455}return e}function l(a,b){a=I[a.charCodeAt(b)];return null==a?-1:a}function k(a){var b=c();return b.fromInt(a),b}function h(a){var b=1,c;return 0!=(c=a>>>16)&&(a=c,b+=16),0!=(c=a>>8)&&(a=c,b+=8),0!=(c=a>>4)&&(a=c,b+=4),0!=(c=a>>2)&&(a=c,b+=2),0!=a>>1&&(b+=1),b}function q(a){this.m=a}function A(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<=t;++t)I[E++]=t;E=97;for(t=10;36>t;++t)I[E++]=t;E=65;for(t=10;36>t;++t)I[E++]=t;q.prototype.convert=function(a){return 0>a.s||0<=a.compareTo(this.m)?a.mod(this.m):a};q.prototype.revert=function(a){return a};q.prototype.reduce=function(a){a.divRemTo(this.m,null, +2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],c=[1,2,3,5];a.rc2=a.rc2||{};a.rc2.expandKey=function(c,f){"string"==typeof c&&(c=a.util.createBuffer(c));f=f||128;var e=c;c=c.length();var d=f;f=Math.ceil(d/8);var d=255>>(d&7),h;for(h=c;128>h;h++)e.putByte(b[e.at(h-1)+e.at(h-c)&255]);e.setAt(128-f,b[e.at(128- +f)&d]);for(h=127-f;0<=h;h--)e.setAt(h,b[e.at(h+1)^e.at(h+f)]);return e};var e=function(b,f,e){var d=!1,h=null,l=null,m=null,n,p,k,g,u=[];b=a.rc2.expandKey(b,f);for(k=0;64>k;k++)u.push(b.getInt16Le());e?(n=function(a){for(k=0;4>k;k++){a[k]+=u[g]+(a[(k+3)%4]&a[(k+2)%4])+(~a[(k+3)%4]&a[(k+1)%4]);var b=a[k],f=c[k];a[k]=b<>16-f;g++}},p=function(a){for(k=0;4>k;k++)a[k]+=u[a[(k+3)%4]&63]}):(n=function(a){for(k=3;0<=k;k--){var b=a[k],f=c[k];a[k]=(b&65535)>>f|b<<16-f&65535;a[k]-=u[g]+(a[(k+ +3)%4]&a[(k+2)%4])+(~a[(k+3)%4]&a[(k+1)%4]);g--}},p=function(a){for(k=3;0<=k;k--)a[k]-=u[a[(k+3)%4]&63]});var r=null;return r={start:function(b,c){b&&"string"==typeof b&&(b=a.util.createBuffer(b));d=!1;h=a.util.createBuffer();l=c||new a.util.createBuffer;m=b;r.output=l},update:function(a){for(d||h.putBuffer(a);8<=h.length();){a=[[5,n],[1,p],[6,n],[1,p],[5,n]];var b=[];for(k=0;4>k;k++){var c=h.getInt16Le();null!==m&&(e?c^=m.getInt16Le():m.putInt16Le(c));b.push(c&65535)}g=e?0:63;for(c=0;ck;k++)null!==m&&(e?m.putInt16Le(b[k]):b[k]^=m.getInt16Le()),l.putInt16Le(b[k])}},finish:function(a){var b=!0;if(e)if(a)b=a(8,h,!e);else{var c=8===h.length()?8:8-h.length();h.fillWithByte(c,c)}b&&(d=!0,r.update());!e&&(b=0===h.length())&&(a?b=a(8,l,!e):(a=l.length(),c=l.at(a-1),c>a?b=!1:l.truncate(c)));return b}},r};a.rc2.startEncrypting=function(b,c,f){b=a.rc2.createEncryptionCipher(b,128);return b.start(c,f),b};a.rc2.createEncryptionCipher=function(a,b){return e(a, +b,!0)};a.rc2.startDecrypting=function(b,c,f){b=a.rc2.createDecryptionCipher(b,128);return b.start(c,f),b};a.rc2.createDecryptionCipher=function(a,b){return e(a,b,!1)}}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rc2)return b.rc2;b.defined.rc2=!0;for(var e= +0;e>=15;0<=--d;){var l=this.data[a]&32767,m=this.data[a++]>>15,B=b*l+m*h,l=h*l+((B&32767)<<15)+c.data[f]+(e&1073741823);e=(l>>>30)+(B>>>15)+b*m+(e>>>30);c.data[f++]=l&1073741823}return e}function h(a,b,c,f,e,d){var h=b&16383;for(b>>=14;0<=--d;){var l=this.data[a]&16383,m= +this.data[a++]>>14,B=b*l+m*h,l=h*l+((B&16383)<<14)+c.data[f]+e;e=(l>>28)+(B>>14)+b*m;c.data[f++]=l&268435455}return e}function l(a,b){a=I[a.charCodeAt(b)];return null==a?-1:a}function k(a){var b=c();return b.fromInt(a),b}function g(a){var b=1,c;return 0!=(c=a>>>16)&&(a=c,b+=16),0!=(c=a>>8)&&(a=c,b+=8),0!=(c=a>>4)&&(a=c,b+=4),0!=(c=a>>2)&&(a=c,b+=2),0!=a>>1&&(b+=1),b}function q(a){this.m=a}function A(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<=t;++t)I[E++]=t;E=97;for(t=10;36>t;++t)I[E++]=t;E=65;for(t=10;36>t;++t)I[E++]=t;q.prototype.convert=function(a){return 0>a.s||0<=a.compareTo(this.m)?a.mod(this.m):a};q.prototype.revert=function(a){return a};q.prototype.reduce=function(a){a.divRemTo(this.m,null, a)};q.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};q.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};A.prototype.convert=function(a){var f=c();return a.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),0>a.s&&0>15)*this.mpl&this.um)<<15)&a.DM,c=b+this.m.t;for(a.data[c]+=this.m.am(0,f,a,b,0,this.m.t);a.data[c]>=a.DV;)a.data[c]-=a.DV,a.data[++c]++}a.clamp();a.drShiftTo(this.m.t,a);0<=a.compareTo(this.m)&&a.subTo(this.m,a)};A.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};A.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};b.prototype.copyTo=function(a){for(var b=this.t-1;0<=b;--b)a.data[b]=this.data[b];a.t=this.t;a.s=this.s};b.prototype.fromInt=function(a){this.t= -1;this.s=0>a?-1:0;0a?this.data[0]=a+this.DV:this.t=0};b.prototype.fromString=function(a,c){if(16==c)c=4;else if(8==c)c=3;else if(256==c)c=8;else if(2==c)c=1;else if(32==c)c=5;else{if(4!=c){this.fromRadix(a,c);return}c=2}this.s=this.t=0;for(var f=a.length,e=!1,d=0;0<=--f;){var g=8==c?a[f]&255:l(a,f);0>g?"-"==a.charAt(f)&&(e=!0):(e=!1,0==d?this.data[this.t++]=g:d+c>this.DB?(this.data[this.t-1]|=(g&(1<>this.DB-d):this.data[this.t-1]|=g<a?-1:0;0a?this.data[0]=a+this.DV:this.t=0};b.prototype.fromString=function(a,c){if(16==c)c=4;else if(8==c)c=3;else if(256==c)c=8;else if(2==c)c=1;else if(32==c)c=5;else{if(4!=c){this.fromRadix(a,c);return}c=2}this.s=this.t=0;for(var f=a.length,e=!1,d=0;0<=--f;){var h=8==c?a[f]&255:l(a,f);0>h?"-"==a.charAt(f)&&(e=!0):(e=!1,0==d?this.data[this.t++]=h:d+c>this.DB?(this.data[this.t-1]|=(h&(1<>this.DB-d):this.data[this.t-1]|=h<=this.DB&&(d-=this.DB))}8==c&&0!=(a[0]&128)&&(this.s=-1,0>f|d,d=(this.data[g]&e)<=this.t)b.t=0;else{a%=this.DB;var f=this.DB-a,e=(1<>a;for(var d=c+1;d>f|d,d=(this.data[h]&e)<=this.t)b.t=0;else{a%=this.DB;var f=this.DB-a,e=(1<>a;for(var d=c+1;d>a;0>=this.DB;if(a.t>=this.DB;f+=this.s}else{for(f+=this.s;c>=this.DB;f-=a.s}b.s=0>f?-1:0;-1>f?b.data[c++]=this.DV+f:0=b.DV&&(a.data[c+b.t]-=b.DV,a.data[c+b.t+1]=1)}0=d.t)){var g=this.abs();if(g.t>this.F2:0),k=this.FV/n,n=(1<m&&b.ZERO.subTo(e,e)}}}};b.prototype.invDigit=function(){if(1>this.t)return 0;var a=this.data[0];if(0==(a&1))return 0;var b=a&3;return b=b*(2-(a&15)*b)& -15,b=b*(2-(a&255)*b)&255,b=b*(2-((a&65535)*b&65535))&65535,b=b*(2-a*b%this.DV)%this.DV,0a)return b.ONE;var e=c(),d=c(),g=f.convert(this),l=h(a)-1;for(g.copyTo(e);0<=--l;)if(f.sqrTo(e,d),0<(a&1<this.s)return"-"+this.negate().toString(a);if(16==a)a=4;else if(8==a)a= -3;else if(2==a)a=1;else if(32==a)a=5;else{if(4!=a)return this.toRadix(a);a=2}var b=(1<>g)&&(f=!0,e="0123456789abcdefghijklmnopqrstuvwxyz".charAt(c));0<=d;)g>(g+=this.DB-a)):(c=this.data[d]>>(g-=a)&b,0>=g&&(g+=this.DB,--d)),0this.s?this.negate():this};b.prototype.compareTo=function(a){var b=this.s-a.s;if(0!=b)return b;var c=this.t,b=c-a.t;if(0!=b)return 0>this.s?-b:b;for(;0<=--c;)if(0!=(b=this.data[c]-a.data[c]))return b;return 0};b.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+h(this.data[this.t-1]^this.s&this.DM)};b.prototype.mod=function(a){var f=c();return this.abs().divRemTo(a,null,f),0>this.s&&0=d.t)){var h=this.abs();if(h.t>this.F2:0),n=this.FV/k,k=(1<m&&b.ZERO.subTo(e,e)}}}};b.prototype.invDigit=function(){if(1>this.t)return 0;var a=this.data[0];if(0==(a&1))return 0;var b=a&3;return b=b*(2-(a&15)*b)& +15,b=b*(2-(a&255)*b)&255,b=b*(2-((a&65535)*b&65535))&65535,b=b*(2-a*b%this.DV)%this.DV,0a)return b.ONE;var e=c(),d=c(),h=f.convert(this),l=g(a)-1;for(h.copyTo(e);0<=--l;)if(f.sqrTo(e,d),0<(a&1<this.s)return"-"+this.negate().toString(a);if(16==a)a=4;else if(8==a)a= +3;else if(2==a)a=1;else if(32==a)a=5;else{if(4!=a)return this.toRadix(a);a=2}var b=(1<>h)&&(f=!0,e="0123456789abcdefghijklmnopqrstuvwxyz".charAt(c));0<=d;)h>(h+=this.DB-a)):(c=this.data[d]>>(h-=a)&b,0>=h&&(h+=this.DB,--d)),0this.s?this.negate():this};b.prototype.compareTo=function(a){var b=this.s-a.s;if(0!=b)return b;var c=this.t,b=c-a.t;if(0!=b)return 0>this.s?-b:b;for(;0<=--c;)if(0!=(b=this.data[c]-a.data[c]))return b;return 0};b.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+g(this.data[this.t-1]^this.s&this.DM)};b.prototype.mod=function(a){var f=c();return this.abs().divRemTo(a,null,f),0>this.s&&0a||b.isEven()?c=new q(b):c=new A(b),this.exp(a,c)};b.ZERO=k(0);b.ONE=k(1);z.prototype.convert=F;z.prototype.revert=F;z.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c)};z.prototype.sqrTo=function(a,b){a.squareTo(b)};B.prototype.convert=function(a){if(0>a.s||a.t>2*this.m.t)return a.mod(this.m);if(0>a.compareTo(this.m))return a;var b=c();return a.copyTo(b),this.reduce(b),b};B.prototype.revert=function(a){return a};B.prototype.reduce=function(a){a.drShiftTo(this.m.t-1, this.r2);a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp());this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>a.compareTo(this.r2);)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);0<=a.compareTo(this.m);)a.subTo(this.m,a)};B.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};B.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};var N=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113, 127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],J=67108864/N[N.length-1];b.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))};b.prototype.toRadix=function(a){null==a&&(a=10);if(0==this.signum()||2>a||36n?"-"==a.charAt(B)&&0==this.signum()&&(d=!0):(m=c*m+n,++g>=f&&(this.dMultiply(e),this.dAddOffset(m,0),g=0,m=0))}0k?"-"==a.charAt(B)&&0==this.signum()&&(d=!0):(m=c*m+k,++h>=f&&(this.dMultiply(e),this.dAddOffset(m,0),h=0,m=0))}0a)this.fromInt(1);else for(this.fromNumber(a,f),this.testBit(a-1)||this.bitwiseTo(b.ONE.shiftLeft(a-1),w,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(b.ONE.shiftLeft(a-1),this);else{f=[];var e=a&7;f.length=(a>>3)+1;c.nextBytes(f);0>=this.DB;if(a.t>=this.DB;f+=this.s}else{for(f+=this.s;c>=this.DB;f+=a.s}b.s=0>f?-1:0;0f&&(b.data[c++]=this.DV+f);b.t=c;b.clamp()};b.prototype.dMultiply=function(a){this.data[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()};b.prototype.dAddOffset=function(a,b){if(0!=a){for(;this.t<=b;)this.data[this.t++]=0;for(this.data[b]+=a;this.data[b]>=this.DV;)this.data[b]-=this.DV,++b>=this.t&&(this.data[this.t++]= 0),++this.data[b]}};b.prototype.multiplyLowerTo=function(a,b,c){var f=Math.min(this.t+a.t,b);c.s=0;for(c.t=f;0=a)return 0;var b=this.DV%a,c=0>this.s?a-1:0;if(0=f)return!1;for(var e=c.shiftRight(f),d=G(),g,l=0;l=g.compareTo(b.ONE)||0<=g.compareTo(c));g=g.modPow(e,this);if(0!=g.compareTo(b.ONE)&&0!=g.compareTo(c)){for(var m=1;m++this.s){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24};b.prototype.shortValue= +c)};b.prototype.modInt=function(a){if(0>=a)return 0;var b=this.DV%a,c=0>this.s?a-1:0;if(0=f)return!1;for(var e=c.shiftRight(f),d=G(),h,l=0;l=h.compareTo(b.ONE)||0<=h.compareTo(c));h=h.modPow(e,this);if(0!=h.compareTo(b.ONE)&&0!=h.compareTo(c)){for(var m=1;m++this.s){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24};b.prototype.shortValue= function(){return 0==this.t?this.s:this.data[0]<<16>>16};b.prototype.signum=function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this.data[0]?0:1};b.prototype.toByteArray=function(){var a=this.t,b=[];b[0]=this.s;var c=this.DB-a*this.DB%8,f,e=0;if(0>c)!=(this.s&this.DM)>>c&&(b[e++]=f|this.s<c?(f=(this.data[a]&(1<>(c+=this.DB-8)):(f=this.data[a]>>(c-=8)&255,0>=c&&(c+=this.DB,--a)),0!=(f&128)&&(f|=-256),0==e&& (this.s&128)!=(f&128)&&++e,0this.compareTo(a)?this:a};b.prototype.max=function(a){return 0a?this.rShiftTo(-a,b):this.lShiftTo(a,b),b};b.prototype.shiftRight=function(a){var b=c();return 0>a?this.lShiftTo(-a,b):this.rShiftTo(a,b),b};b.prototype.getLowestSetBit=function(){for(var a=0;a>=16,f+=16), 0==(c&255)&&(c>>=8,f+=8),0==(c&15)&&(c>>=4,f+=4),0==(c&3)&&(c>>=2,f+=2),0==(c&1)&&++f,f);return b+a}return 0>this.s?this.t*this.DB:-1};b.prototype.bitCount=function(){for(var a=0,b=this.s&this.DM,c=0;c=this.t?0!=this.s:0!=(this.data[b]&1<=f)return d;18>f?e=1:48>f?e=3:144>f?e=4:768>f?e=5:e=6;8>f?g=new q(b):b.isEven()?g=new B(b):g=new A(b);b=[];var l=3,m=e-1,n=(1<=m?u=a.data[p]>>f-m&n:(u=(a.data[p]&(1<>this.DB+f-m));for(l=e;0==(u&1);)u>>=1,--l;0>(f-=l)&&(f+=this.DB, ---p);if(r)b[u].copyTo(d),r=!1;else{for(;1--f&&(f=this.DB-1,--p)}return g.revert(d)};b.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||0==a.signum())return b.ZERO;for(var f=a.clone(),e=this.clone(),d=k(1),g=k(0),l=k(0),m=k(1);0!=f.signum();){for(;f.isEven();)f.rShiftTo(1,f),c?(d.isEven()&&g.isEven()||(d.addTo(this,d),g.subTo(a,g)),d.rShiftTo(1, -d)):g.isEven()||g.subTo(a,g),g.rShiftTo(1,g);for(;e.isEven();)e.rShiftTo(1,e),c?(l.isEven()&&m.isEven()||(l.addTo(this,l),m.subTo(a,m)),l.rShiftTo(1,l)):m.isEven()||m.subTo(a,m),m.rShiftTo(1,m);0<=f.compareTo(e)?(f.subTo(e,f),c&&d.subTo(l,d),g.subTo(m,g)):(e.subTo(f,e),c&&l.subTo(d,l),m.subTo(g,m))}return 0!=e.compareTo(b.ONE)?b.ZERO:0<=m.compareTo(a)?m.subtract(a):0>m.signum()?(m.addTo(a,m),0>m.signum()?m.add(a):m):m};b.prototype.pow=function(a){return this.exp(a,new z)};b.prototype.gcd=function(a){var b= +b,f),[b,f]};b.prototype.modPow=function(a,b){var f=a.bitLength(),e,d=k(1),h;if(0>=f)return d;18>f?e=1:48>f?e=3:144>f?e=4:768>f?e=5:e=6;8>f?h=new q(b):b.isEven()?h=new B(b):h=new A(b);b=[];var l=3,m=e-1,n=(1<=m?u=a.data[p]>>f-m&n:(u=(a.data[p]&(1<>this.DB+f-m));for(l=e;0==(u&1);)u>>=1,--l;0>(f-=l)&&(f+=this.DB, +--p);if(r)b[u].copyTo(d),r=!1;else{for(;1--f&&(f=this.DB-1,--p)}return h.revert(d)};b.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||0==a.signum())return b.ZERO;for(var f=a.clone(),e=this.clone(),d=k(1),h=k(0),l=k(0),m=k(1);0!=f.signum();){for(;f.isEven();)f.rShiftTo(1,f),c?(d.isEven()&&h.isEven()||(d.addTo(this,d),h.subTo(a,h)),d.rShiftTo(1, +d)):h.isEven()||h.subTo(a,h),h.rShiftTo(1,h);for(;e.isEven();)e.rShiftTo(1,e),c?(l.isEven()&&m.isEven()||(l.addTo(this,l),m.subTo(a,m)),l.rShiftTo(1,l)):m.isEven()||m.subTo(a,m),m.rShiftTo(1,m);0<=f.compareTo(e)?(f.subTo(e,f),c&&d.subTo(l,d),h.subTo(m,h)):(e.subTo(f,e),c&&l.subTo(d,l),m.subTo(h,m))}return 0!=e.compareTo(b.ONE)?b.ZERO:0<=m.compareTo(a)?m.subtract(a):0>m.signum()?(m.addTo(a,m),0>m.signum()?m.add(a):m):m};b.prototype.pow=function(a){return this.exp(a,new z)};b.prototype.gcd=function(a){var b= 0>this.s?this.negate():this.clone();a=0>a.s?a.negate():a.clone();0>b.compareTo(a)&&(a=b=a);var c=b.getLowestSetBit(),f=a.getLowestSetBit();if(0>f)return b;c>24&255,g>>16&255,g>>8&255,g&255);f.start();f.update(b+l);e+=f.digest().getBytes()}return e.substring(0,c)}var c=a.pkcs1=a.pkcs1||{};c.encode_rsa_oaep=function(c,f,e,d,g){var l,m,n,k;"string"==typeof e?(l=e,m=d||void 0,n=g||void 0):e&&(l=e.label||void 0,m=e.seed||void 0,n=e.md||void 0,e.mgf1&&e.mgf1.md&&(k=e.mgf1.md));n?n.start():n=a.md.sha1.create();k||(k=n);c=Math.ceil(c.n.bitLength()/8);e=c-2*n.digestLength-2;if(f.length> -e)throw k=Error("RSAES-OAEP input message length is too long."),k.length=f.length,k.maxLength=e,k;l||(l="");n.update(l,"raw");l=n.digest();d="";e-=f.length;for(g=0;g -b&&(m=d(b,f));if(m.isProbablePrime(B))return l(null,m);m.dAddOffset(h[k++%8],0)}while(0>n||+new Date-pb&&(m=d(b,f));e=m.toString(16);a.target.postMessage({hex:e,workLoad:n});m.dAddOffset(p,0)}}B=Math.max(1,B);for(var c=[],e=0;e=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if(!a.prime){var l= -a.prime=a.prime||{},k=a.jsbn.BigInteger,h=[6,4,2,4,2,4,6,2],q=new k(null);q.fromInt(30);var A=function(a,b){return a|b};l.generateProbablePrime=function(c,f,e){"function"==typeof f&&(e=f,f={});f=f||{};var d=f.algorithm||"PRIMEINC";"string"==typeof d&&(d={name:d});d.options=d.options||{};var g=f.prng||a.random;f={nextBytes:function(a){for(var b=g.getBytesSync(a.length),c=0;c>24&255,h>>16&255,h>>8&255,h&255);f.start();f.update(b+l);e+=f.digest().getBytes()}return e.substring(0,c)}var c=a.pkcs1=a.pkcs1||{};c.encode_rsa_oaep=function(c,f,e,d,h){var l,m,k,n;"string"==typeof e?(l=e,m=d||void 0,k=h||void 0):e&&(l=e.label||void 0,m=e.seed||void 0,k=e.md||void 0,e.mgf1&&e.mgf1.md&&(n=e.mgf1.md));k?k.start():k=a.md.sha1.create();n||(n=k);c=Math.ceil(c.n.bitLength()/8);e=c-2*k.digestLength-2;if(f.length> +e)throw n=Error("RSAES-OAEP input message length is too long."),n.length=f.length,n.maxLength=e,n;l||(l="");k.update(l,"raw");l=k.digest();d="";e-=f.length;for(h=0;h +b&&(m=d(b,f));if(m.isProbablePrime(B))return l(null,m);m.dAddOffset(g[k++%8],0)}while(0>n||+new Date-pb&&(m=d(b,f));e=m.toString(16);a.target.postMessage({hex:e,workLoad:n});m.dAddOffset(p,0)}}B=Math.max(1,B);for(var c=[],e=0;e=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if(!a.prime){var l= +a.prime=a.prime||{},k=a.jsbn.BigInteger,g=[6,4,2,4,2,4,6,2],q=new k(null);q.fromInt(30);var A=function(a,b){return a|b};l.generateProbablePrime=function(c,f,e){"function"==typeof f&&(e=f,f={});f=f||{};var d=f.algorithm||"PRIMEINC";"string"==typeof d&&(d={name:d});d.options=d.options||{};var h=f.prng||a.random;f={nextBytes:function(a){for(var b=h.getBytesSync(a.length),c=0;cc-11)throw e=Error("Message is too long for PKCS#1 v1.5 padding."),e.length=b.length,e.max=c-11,e;e.putByte(0);e.putByte(f);c=c-3-b.length;if(0===f||1===f){f=0===f?0:255;for(var d=0;db.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(l.ONE).gcd(b.e).compareTo(l.ONE)? -(b.p=null,e()):0!==b.q.subtract(l.ONE).gcd(b.e).compareTo(l.ONE)?(b.q=null,d(b.qBits,g)):(b.p1=b.p.subtract(l.ONE),b.q1=b.q.subtract(l.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(l.ONE)?(b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,d(b.qBits,g)):(a=b.e.modInverse(b.phi),b.keys={privateKey:h.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:h.rsa.setPublicKey(b.n,b.e)},f(null,b.keys))))}"function"==typeof c&&(f= -c,c={});c=c||{};var m={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(m.prng=c.prng);e()}function d(b){b=b.toString(16);return"8"<=b[0]&&(b="00"+b),a.util.hexToBytes(b)}function g(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"==typeof l)var l=a.jsbn.BigInteger;var k=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var h=a.pki, +c;){for(var h=0,l=a.random.getBytes(c),d=0;db.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(l.ONE).gcd(b.e).compareTo(l.ONE)? +(b.p=null,e()):0!==b.q.subtract(l.ONE).gcd(b.e).compareTo(l.ONE)?(b.q=null,d(b.qBits,h)):(b.p1=b.p.subtract(l.ONE),b.q1=b.q.subtract(l.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(l.ONE)?(b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,d(b.qBits,h)):(a=b.e.modInverse(b.phi),b.keys={privateKey:g.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:g.rsa.setPublicKey(b.n,b.e)},f(null,b.keys))))}"function"==typeof c&&(f= +c,c={});c=c||{};var m={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(m.prng=c.prng);e()}function d(b){b=b.toString(16);return"8"<=b[0]&&(b="00"+b),a.util.hexToBytes(b)}function h(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"==typeof l)var l=a.jsbn.BigInteger;var k=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var g=a.pki, q=[6,4,2,4,2,4,6,2],A={name:"PrivateKeyInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:k.Class.UNIVERSAL, type:k.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},D={name:"RSAPrivateKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"}, {name:"RSAPrivateKey.privateExponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2", tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},w={name:"RSAPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER, constructed:!1,capture:"publicKeyExponent"}]},v=a.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:k.Class.UNIVERSAL, -type:k.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},y=function(a){var b;if(a.algorithm in h.oids){b=h.oids[a.algorithm];var c=k.oidToDer(b).getBytes();b=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]);var f=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]);f.value.push(k.create(k.Class.UNIVERSAL,k.Type.OID,!1,c));f.value.push(k.create(k.Class.UNIVERSAL, +type:k.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},y=function(a){var b;if(a.algorithm in g.oids){b=g.oids[a.algorithm];var c=k.oidToDer(b).getBytes();b=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]);var f=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]);f.value.push(k.create(k.Class.UNIVERSAL,k.Type.OID,!1,c));f.value.push(k.create(k.Class.UNIVERSAL, k.Type.NULL,!1,""));a=k.create(k.Class.UNIVERSAL,k.Type.OCTETSTRING,!1,a.digest().getBytes());return b.value.push(f),b.value.push(a),k.toDer(b).getBytes()}b=Error("Unknown message digest algorithm.");throw b.algorithm=a.algorithm,b;},z=function(b,c,f){if(f)return b.modPow(c.e,c.n);if(!c.p||!c.q)return b.modPow(c.d,c.n);c.dP||(c.dP=c.d.mod(c.p.subtract(l.ONE)));c.dQ||(c.dQ=c.d.mod(c.q.subtract(l.ONE)));c.qInv||(c.qInv=c.q.modInverse(c.p));do f=(new l(a.util.bytesToHex(a.random.getBytes(c.n.bitLength()/ -8)),16)).mod(c.n);while(f.equals(l.ZERO));b=b.multiply(f.modPow(c.e,c.n)).mod(c.n);var e=b.mod(c.p).modPow(c.dP,c.p);for(b=b.mod(c.q).modPow(c.dQ,c.q);0>e.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(f.modInverse(c.n)).mod(c.n),b};h.rsa.encrypt=function(c,f,e){var d=e,g,m=Math.ceil(f.n.bitLength()/8);!1!==e&&!0!==e?(d=2===e,g=b(c,f,e)):(g=a.util.createBuffer(),g.putBytes(c));c=new l(g.toHex(),16);f=z(c,f,d).toString(16);d=a.util.createBuffer(); -for(m-=Math.ceil(f.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null, -keys:null},d.e.fromInt(d.eInt),d};h.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a||(a.algorithm="PRIMEINC");var c=new l(null);c.fromInt(30);for(var f=0,e=function(a,b){return a|b},d=+new Date,m,k=0;null===a.keys&&(0>=b||km?a.pqState= -0:a.num.isProbablePrime(g(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(q[f++%8],0):2===a.pqState?a.pqState=0===a.num.subtract(l.ONE).gcd(a.e).compareTo(l.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(l.ONE),a.q1=a.q.subtract(l.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(l.ONE)? -++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state:(a.q=null,a.state=0)):5===a.state&&(m=a.e.modInverse(a.phi),a.keys={privateKey:h.rsa.setPrivateKey(a.n,a.e,m,a.p,a.q,m.mod(a.p1),m.mod(a.q1),a.q.modInverse(a.p)),publicKey:h.rsa.setPublicKey(a.n,a.e)});m=+new Date;k+=m-d;d=m}return null!==a.keys};h.rsa.generateKeyPair=function(a,b,c,f){1===arguments.length?"object"==typeof a?(c=a,a=void 0):"function"==typeof a&&(f=a,a=void 0):2===arguments.length? -"number"==typeof a?"function"==typeof b?(f=b,b=void 0):"number"!=typeof b&&(c=b,b=void 0):(c=a,f=b,a=void 0,b=void 0):3===arguments.length&&("number"==typeof b?"function"==typeof c&&(f=c,c=void 0):(f=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var d=h.rsa.createKeyPairGenerationState(a,b,c);if(!f)return h.rsa.stepKeyPairGenerationState(d,0),d.keys;e(d,c,f)};h.setRsaPublicKey=h.rsa.setPublicKey=function(f,e){var d={n:f,e:e};return d.encrypt=function(c,f,e){"string"== -typeof f?f=f.toUpperCase():void 0===f&&(f="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===f)f={encode:function(a,c,f){return b(a,c,2).getBytes()}};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={encode:function(b,c){return a.pkcs1.encode_rsa_oaep(c,b,e)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(f))f={encode:function(a){return a}};else if("string"==typeof f)throw Error('Unsupported encryption scheme: "'+f+'".');c=f.encode(c,d,!0);return h.rsa.encrypt(c,d,!0)},d.verify=function(a,b,f){"string"==typeof f? -f=f.toUpperCase():void 0===f&&(f="RSASSA-PKCS1-V1_5");if("RSASSA-PKCS1-V1_5"===f)f={verify:function(a,b){b=c(b,d,!0);b=k.fromDer(b);return a===b.value[1].value}};else if("NONE"===f||"NULL"===f||null===f)f={verify:function(a,b){return b=c(b,d,!0),a===b}};b=h.rsa.decrypt(b,d,!0,!1);return f.verify(a,b,d.n.bitLength())},d};h.setRsaPrivateKey=h.rsa.setPrivateKey=function(b,f,e,d,g,l,m,k){var n={n:b,e:f,d:e,p:d,q:g,dP:l,dQ:m,qInv:k};return n.decrypt=function(b,f,e){"string"==typeof f?f=f.toUpperCase(): -void 0===f&&(f="RSAES-PKCS1-V1_5");b=h.rsa.decrypt(b,n,!1,!1);if("RSAES-PKCS1-V1_5"===f)f={decode:c};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={decode:function(b,c){return a.pkcs1.decode_rsa_oaep(c,b,e)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(f))throw Error('Unsupported encryption scheme: "'+f+'".');f={decode:function(a){return a}}}return f.decode(b,n,!1)},n.sign=function(a,b){var c=!1;"string"==typeof b&&(b=b.toUpperCase());if(void 0===b||"RSASSA-PKCS1-V1_5"===b)b={encode:y},c=1;else if("NONE"=== -b||"NULL"===b||null===b)b={encode:function(){return a}},c=1;b=b.encode(a,n.n.bitLength());return h.rsa.encrypt(b,n,c)},n};h.wrapRsaPrivateKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(h.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.OCTETSTRING, -!1,k.toDer(a).getBytes())])};h.privateKeyFromAsn1=function(b){var c={},f=[];k.validate(b,A,c,f)&&(b=k.fromDer(a.util.createBuffer(c.privateKey)));c={};f=[];if(!k.validate(b,D,c,f))throw b=Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey."),b.errors=f,b;var e,d,g,m,n,p,u,r;return e=a.util.createBuffer(c.privateKeyModulus).toHex(),d=a.util.createBuffer(c.privateKeyPublicExponent).toHex(),g=a.util.createBuffer(c.privateKeyPrivateExponent).toHex(),m=a.util.createBuffer(c.privateKeyPrime1).toHex(), -n=a.util.createBuffer(c.privateKeyPrime2).toHex(),p=a.util.createBuffer(c.privateKeyExponent1).toHex(),u=a.util.createBuffer(c.privateKeyExponent2).toHex(),r=a.util.createBuffer(c.privateKeyCoefficient).toHex(),h.setRsaPrivateKey(new l(e,16),new l(d,16),new l(g,16),new l(m,16),new l(n,16),new l(p,16),new l(u,16),new l(r,16))};h.privateKeyToAsn1=h.privateKeyToRSAPrivateKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()), -k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.e)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.d)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.p)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.q)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.dP)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.dQ)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.qInv))])};h.publicKeyFromAsn1=function(b){var c={},f=[];if(k.validate(b,v,c,f)){f= -k.derToOid(c.publicKeyOid);if(f!==h.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."),c.oid=f,c;b=c.rsaPublicKey}f=[];if(!k.validate(b,w,c,f))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=f,c;f=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return h.setRsaPublicKey(new l(f,16),new l(c,16))};h.publicKeyToAsn1=h.publicKeyToSubjectPublicKeyInfo=function(a){return k.create(k.Class.UNIVERSAL, -k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(h.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.BITSTRING,!1,[h.publicKeyToRSAPublicKey(a)])])};h.publicKeyToRSAPublicKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.e))])}}if("function"!=typeof b){if("object"!= -typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rsa)return b.rsa;b.defined.rsa=!0;for(var e=0;ee.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(f.modInverse(c.n)).mod(c.n),b};g.rsa.encrypt=function(c,f,e){var d=e,h,m=Math.ceil(f.n.bitLength()/8);!1!==e&&!0!==e?(d=2===e,h=b(c,f,e)):(h=a.util.createBuffer(),h.putBytes(c));c=new l(h.toHex(),16);f=z(c,f,d).toString(16);d=a.util.createBuffer(); +for(m-=Math.ceil(f.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null, +keys:null},d.e.fromInt(d.eInt),d};g.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a||(a.algorithm="PRIMEINC");var c=new l(null);c.fromInt(30);for(var f=0,e=function(a,b){return a|b},d=+new Date,m,k=0;null===a.keys&&(0>=b||km?a.pqState= +0:a.num.isProbablePrime(h(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(q[f++%8],0):2===a.pqState?a.pqState=0===a.num.subtract(l.ONE).gcd(a.e).compareTo(l.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(l.ONE),a.q1=a.q.subtract(l.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(l.ONE)? +++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state:(a.q=null,a.state=0)):5===a.state&&(m=a.e.modInverse(a.phi),a.keys={privateKey:g.rsa.setPrivateKey(a.n,a.e,m,a.p,a.q,m.mod(a.p1),m.mod(a.q1),a.q.modInverse(a.p)),publicKey:g.rsa.setPublicKey(a.n,a.e)});m=+new Date;k+=m-d;d=m}return null!==a.keys};g.rsa.generateKeyPair=function(a,b,c,f){1===arguments.length?"object"==typeof a?(c=a,a=void 0):"function"==typeof a&&(f=a,a=void 0):2===arguments.length? +"number"==typeof a?"function"==typeof b?(f=b,b=void 0):"number"!=typeof b&&(c=b,b=void 0):(c=a,f=b,a=void 0,b=void 0):3===arguments.length&&("number"==typeof b?"function"==typeof c&&(f=c,c=void 0):(f=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var d=g.rsa.createKeyPairGenerationState(a,b,c);if(!f)return g.rsa.stepKeyPairGenerationState(d,0),d.keys;e(d,c,f)};g.setRsaPublicKey=g.rsa.setPublicKey=function(f,e){var d={n:f,e:e};return d.encrypt=function(c,f,e){"string"== +typeof f?f=f.toUpperCase():void 0===f&&(f="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===f)f={encode:function(a,c,f){return b(a,c,2).getBytes()}};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={encode:function(b,c){return a.pkcs1.encode_rsa_oaep(c,b,e)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(f))f={encode:function(a){return a}};else if("string"==typeof f)throw Error('Unsupported encryption scheme: "'+f+'".');c=f.encode(c,d,!0);return g.rsa.encrypt(c,d,!0)},d.verify=function(a,b,f){"string"==typeof f? +f=f.toUpperCase():void 0===f&&(f="RSASSA-PKCS1-V1_5");if("RSASSA-PKCS1-V1_5"===f)f={verify:function(a,b){b=c(b,d,!0);b=k.fromDer(b);return a===b.value[1].value}};else if("NONE"===f||"NULL"===f||null===f)f={verify:function(a,b){return b=c(b,d,!0),a===b}};b=g.rsa.decrypt(b,d,!0,!1);return f.verify(a,b,d.n.bitLength())},d};g.setRsaPrivateKey=g.rsa.setPrivateKey=function(b,f,e,d,h,l,m,k){var n={n:b,e:f,d:e,p:d,q:h,dP:l,dQ:m,qInv:k};return n.decrypt=function(b,f,e){"string"==typeof f?f=f.toUpperCase(): +void 0===f&&(f="RSAES-PKCS1-V1_5");b=g.rsa.decrypt(b,n,!1,!1);if("RSAES-PKCS1-V1_5"===f)f={decode:c};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={decode:function(b,c){return a.pkcs1.decode_rsa_oaep(c,b,e)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(f))throw Error('Unsupported encryption scheme: "'+f+'".');f={decode:function(a){return a}}}return f.decode(b,n,!1)},n.sign=function(a,b){var c=!1;"string"==typeof b&&(b=b.toUpperCase());if(void 0===b||"RSASSA-PKCS1-V1_5"===b)b={encode:y},c=1;else if("NONE"=== +b||"NULL"===b||null===b)b={encode:function(){return a}},c=1;b=b.encode(a,n.n.bitLength());return g.rsa.encrypt(b,n,c)},n};g.wrapRsaPrivateKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(g.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.OCTETSTRING, +!1,k.toDer(a).getBytes())])};g.privateKeyFromAsn1=function(b){var c={},f=[];k.validate(b,A,c,f)&&(b=k.fromDer(a.util.createBuffer(c.privateKey)));c={};f=[];if(!k.validate(b,D,c,f))throw b=Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey."),b.errors=f,b;var e,d,h,m,n,p,u,r;return e=a.util.createBuffer(c.privateKeyModulus).toHex(),d=a.util.createBuffer(c.privateKeyPublicExponent).toHex(),h=a.util.createBuffer(c.privateKeyPrivateExponent).toHex(),m=a.util.createBuffer(c.privateKeyPrime1).toHex(), +n=a.util.createBuffer(c.privateKeyPrime2).toHex(),p=a.util.createBuffer(c.privateKeyExponent1).toHex(),u=a.util.createBuffer(c.privateKeyExponent2).toHex(),r=a.util.createBuffer(c.privateKeyCoefficient).toHex(),g.setRsaPrivateKey(new l(e,16),new l(d,16),new l(h,16),new l(m,16),new l(n,16),new l(p,16),new l(u,16),new l(r,16))};g.privateKeyToAsn1=g.privateKeyToRSAPrivateKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()), +k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.e)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.d)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.p)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.q)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.dP)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.dQ)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.qInv))])};g.publicKeyFromAsn1=function(b){var c={},f=[];if(k.validate(b,v,c,f)){f= +k.derToOid(c.publicKeyOid);if(f!==g.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."),c.oid=f,c;b=c.rsaPublicKey}f=[];if(!k.validate(b,w,c,f))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=f,c;f=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return g.setRsaPublicKey(new l(f,16),new l(c,16))};g.publicKeyToAsn1=g.publicKeyToSubjectPublicKeyInfo=function(a){return k.create(k.Class.UNIVERSAL, +k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(g.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.BITSTRING,!1,[g.publicKeyToRSAPublicKey(a)])])};g.publicKeyToRSAPublicKey=function(a){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,d(a.e))])}}if("function"!=typeof b){if("object"!= +typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var h,k=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rsa)return b.rsa;b.defined.rsa=!0;for(var e=0;e>=8,y+=v.at(m)+A.at(m),A.setAt(m,y&255);C.putBuffer(A)}p=C;h.putBuffer(q)}return h.truncate(h.length()-d),h};d.pbe.getCipher=function(a,b,c){switch(a){case d.oids.pkcs5PBES2:return d.pbe.getCipherForPBES2(a,b,c);case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case d.oids["pbewithSHAAnd40BitRC2-CBC"]:return d.pbe.getCipherForPKCS12PBE(a, -b,c);default:throw b=Error("Cannot read encrypted PBE data block. Unsupported OID."),b.oid=a,b.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],b;}};d.pbe.getCipherForPBES2=function(b,c,f){var g={};b=[];if(!e.validate(c,k,g,b)){var l=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw l.errors=b,l;}b=e.derToOid(g.kdfOid);if(b!==d.oids.pkcs5PBKDF2)throw l=Error("Cannot read encrypted private key. Unsupported key derivation function OID."), -l.oid=b,l.supportedOids=["pkcs5PBKDF2"],l;b=e.derToOid(g.encOid);if(b!==d.oids["aes128-CBC"]&&b!==d.oids["aes192-CBC"]&&b!==d.oids["aes256-CBC"]&&b!==d.oids["des-EDE3-CBC"]&&b!==d.oids.desCBC)throw l=Error("Cannot read encrypted private key. Unsupported encryption scheme OID."),l.oid=b,l.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],l;c=g.kdfSalt;var m=a.util.createBuffer(g.kdfIterationCount),m=m.getInt(m.length()<<3),n;switch(d.oids[b]){case "aes128-CBC":n=16;l=a.aes.createDecryptionCipher; -break;case "aes192-CBC":n=24;l=a.aes.createDecryptionCipher;break;case "aes256-CBC":n=32;l=a.aes.createDecryptionCipher;break;case "des-EDE3-CBC":n=24;l=a.des.createDecryptionCipher;break;case "desCBC":n=8,l=a.des.createDecryptionCipher}b=a.pkcs5.pbkdf2(f,c,m,n);g=g.encIv;l=l(b);return l.start(g),l};d.pbe.getCipherForPKCS12PBE=function(b,c,f){var g={},l=[];if(!e.validate(c,h,g,l))throw f=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo."), -f.errors=l,f;var l=a.util.createBuffer(g.salt),g=a.util.createBuffer(g.iterations),g=g.getInt(g.length()<<3),m;switch(b){case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:m=24;c=8;b=a.des.startDecrypting;break;case d.oids["pbewithSHAAnd40BitRC2-CBC"]:m=5;c=8;b=function(b,c){b=a.rc2.createDecryptionCipher(b,40);return b.start(c,null),b};break;default:throw f=Error("Cannot read PKCS #12 PBE data block. Unsupported OID."),f.oid=b,f;}m=d.pbe.generatePkcs12Key(f,l,1,g,m);f=d.pbe.generatePkcs12Key(f,l,2,g, -c);return b(m,f)};d.pbe.opensslDeriveBytes=function(c,f,e,d){if("undefined"==typeof d||null===d)d=a.md.md5.create();null===f&&(f="");for(var g=[b(d,c+f)],l=16,m=1;l>=8,y+=v.at(m)+A.at(m),A.setAt(m,y&255);C.putBuffer(A)}p=C;g.putBuffer(q)}return g.truncate(g.length()-d),g};d.pbe.getCipher=function(a,b,c){switch(a){case d.oids.pkcs5PBES2:return d.pbe.getCipherForPBES2(a,b,c);case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case d.oids["pbewithSHAAnd40BitRC2-CBC"]:return d.pbe.getCipherForPKCS12PBE(a, +b,c);default:throw b=Error("Cannot read encrypted PBE data block. Unsupported OID."),b.oid=a,b.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],b;}};d.pbe.getCipherForPBES2=function(b,c,f){var h={};b=[];if(!e.validate(c,k,h,b)){var l=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw l.errors=b,l;}b=e.derToOid(h.kdfOid);if(b!==d.oids.pkcs5PBKDF2)throw l=Error("Cannot read encrypted private key. Unsupported key derivation function OID."), +l.oid=b,l.supportedOids=["pkcs5PBKDF2"],l;b=e.derToOid(h.encOid);if(b!==d.oids["aes128-CBC"]&&b!==d.oids["aes192-CBC"]&&b!==d.oids["aes256-CBC"]&&b!==d.oids["des-EDE3-CBC"]&&b!==d.oids.desCBC)throw l=Error("Cannot read encrypted private key. Unsupported encryption scheme OID."),l.oid=b,l.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],l;c=h.kdfSalt;var m=a.util.createBuffer(h.kdfIterationCount),m=m.getInt(m.length()<<3),n;switch(d.oids[b]){case "aes128-CBC":n=16;l=a.aes.createDecryptionCipher; +break;case "aes192-CBC":n=24;l=a.aes.createDecryptionCipher;break;case "aes256-CBC":n=32;l=a.aes.createDecryptionCipher;break;case "des-EDE3-CBC":n=24;l=a.des.createDecryptionCipher;break;case "desCBC":n=8,l=a.des.createDecryptionCipher}b=a.pkcs5.pbkdf2(f,c,m,n);h=h.encIv;l=l(b);return l.start(h),l};d.pbe.getCipherForPKCS12PBE=function(b,c,f){var h={},l=[];if(!e.validate(c,g,h,l))throw f=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo."), +f.errors=l,f;var l=a.util.createBuffer(h.salt),h=a.util.createBuffer(h.iterations),h=h.getInt(h.length()<<3),m;switch(b){case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:m=24;c=8;b=a.des.startDecrypting;break;case d.oids["pbewithSHAAnd40BitRC2-CBC"]:m=5;c=8;b=function(b,c){b=a.rc2.createDecryptionCipher(b,40);return b.start(c,null),b};break;default:throw f=Error("Cannot read PKCS #12 PBE data block. Unsupported OID."),f.oid=b,f;}m=d.pbe.generatePkcs12Key(f,l,1,h,m);f=d.pbe.generatePkcs12Key(f,l,2,h, +c);return b(m,f)};d.pbe.opensslDeriveBytes=function(c,f,e,d){if("undefined"==typeof d||null===d)d=a.md.md5.create();null===f&&(f="");for(var h=[b(d,c+f)],l=16,m=1;l>8*n-f&255;return h=String.fromCharCode(h.charCodeAt(0)&~f)+ -h.substr(1),h+b+String.fromCharCode(188)},n.verify=function(b,f,g){var m;m=g-1;g=Math.ceil(m/8);f=f.substr(-g);if(g>8*g-m&255;if(0!==(n.charCodeAt(0)&h))throw Error("Bits beyond keysize not zero as expected.");var p=e.generate(f,k),B="";for(m=0;m>8*n-f&255;return g=String.fromCharCode(g.charCodeAt(0)&~f)+ +g.substr(1),g+b+String.fromCharCode(188)},n.verify=function(b,f,h){var m;m=h-1;h=Math.ceil(m/8);f=f.substr(-h);if(h>8*h-m&255;if(0!==(n.charCodeAt(0)&g))throw Error("Bits beyond keysize not zero as expected.");var p=e.generate(f,k),B="";for(m=0;mg.length)throw Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime."); -l.validity.notBefore=g[0];l.validity.notAfter=g[1];l.tbsCertificate=d.tbsCertificate;if(f){l.md=null;if(l.signatureOid in q)switch(g=q[l.signatureOid],g){case "sha1WithRSAEncryption":l.md=a.md.sha1.create();break;case "md5WithRSAEncryption":l.md=a.md.md5.create();break;case "sha256WithRSAEncryption":l.md=a.md.sha256.create();break;case "RSASSA-PSS":l.md=a.md.sha256.create()}if(null===l.md)throw d=Error("Could not compute certificate digest. Unknown signature OID."),d.signatureOid=l.signatureOid,d; -f=k.toDer(l.tbsCertificate);l.md.update(f.getBytes())}f=a.md.sha1.create();l.issuer.getField=function(a){return b(l.issuer,a)};l.issuer.addField=function(a){e([a]);l.issuer.attributes.push(a)};l.issuer.attributes=h.RDNAttributesAsArray(d.certIssuer,f);d.certIssuerUniqueId&&(l.issuer.uniqueId=d.certIssuerUniqueId);l.issuer.hash=f.digest().toHex();f=a.md.sha1.create();return l.subject.getField=function(a){return b(l.subject,a)},l.subject.addField=function(a){e([a]);l.subject.attributes.push(a)},l.subject.attributes= -h.RDNAttributesAsArray(d.certSubject,f),d.certSubjectUniqueId&&(l.subject.uniqueId=d.certSubjectUniqueId),l.subject.hash=f.digest().toHex(),d.certExtensions?l.extensions=h.certificateExtensionsFromAsn1(d.certExtensions):l.extensions=[],l.publicKey=h.publicKeyFromAsn1(d.subjectPublicKeyInfo),l};h.certificateExtensionsFromAsn1=function(a){for(var b=[],c=0;ch.length)throw Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime."); +l.validity.notBefore=h[0];l.validity.notAfter=h[1];l.tbsCertificate=d.tbsCertificate;if(f){l.md=null;if(l.signatureOid in q)switch(h=q[l.signatureOid],h){case "sha1WithRSAEncryption":l.md=a.md.sha1.create();break;case "md5WithRSAEncryption":l.md=a.md.md5.create();break;case "sha256WithRSAEncryption":l.md=a.md.sha256.create();break;case "RSASSA-PSS":l.md=a.md.sha256.create()}if(null===l.md)throw d=Error("Could not compute certificate digest. Unknown signature OID."),d.signatureOid=l.signatureOid,d; +f=k.toDer(l.tbsCertificate);l.md.update(f.getBytes())}f=a.md.sha1.create();l.issuer.getField=function(a){return b(l.issuer,a)};l.issuer.addField=function(a){e([a]);l.issuer.attributes.push(a)};l.issuer.attributes=g.RDNAttributesAsArray(d.certIssuer,f);d.certIssuerUniqueId&&(l.issuer.uniqueId=d.certIssuerUniqueId);l.issuer.hash=f.digest().toHex();f=a.md.sha1.create();return l.subject.getField=function(a){return b(l.subject,a)},l.subject.addField=function(a){e([a]);l.subject.attributes.push(a)},l.subject.attributes= +g.RDNAttributesAsArray(d.certSubject,f),d.certSubjectUniqueId&&(l.subject.uniqueId=d.certSubjectUniqueId),l.subject.hash=f.digest().toHex(),d.certExtensions?l.extensions=g.certificateExtensionsFromAsn1(d.certExtensions):l.extensions=[],l.publicKey=g.publicKeyFromAsn1(d.subjectPublicKeyInfo),l};g.certificateExtensionsFromAsn1=function(a){for(var b=[],c=0;cm.validity.notAfter)k={message:"Certificate is not valid yet or has expired.", -error:h.certificateError.certificate_expired,notBefore:m.validity.notBefore,notAfter:m.validity.notAfter,now:d};if(null===k){n=c[0]||b.getIssuer(m);null===n&&m.isIssuer(m)&&(p=!0,n=m);if(n){var u=n;a.util.isArray(u)||(u=[u]);for(var r=!1;!r&&0g.pathLenConstraint&&(k={message:"Certificate basicConstraints pathLenConstraint violated.", -error:h.certificateError.bad_certificate}));m=null===k?!0:k.error;g=f?f(m,l,e):m;if(!0!==g){!0===m&&(k={message:"The application rejected the certificate.",error:h.certificateError.bad_certificate});if(g||0===g)"object"!=typeof g||a.util.isArray(g)?"string"==typeof g&&(k.error=g):(g.message&&(k.message=g.message),g.error&&(k.error=g.error));throw k;}k=null;g=!1;++l}while(0m.validity.notAfter)k={message:"Certificate is not valid yet or has expired.", +error:g.certificateError.certificate_expired,notBefore:m.validity.notBefore,notAfter:m.validity.notAfter,now:d};if(null===k){n=c[0]||b.getIssuer(m);null===n&&m.isIssuer(m)&&(p=!0,n=m);if(n){var u=n;a.util.isArray(u)||(u=[u]);for(var r=!1;!r&&0h.pathLenConstraint&&(k={message:"Certificate basicConstraints pathLenConstraint violated.", +error:g.certificateError.bad_certificate}));m=null===k?!0:k.error;h=f?f(m,l,e):m;if(!0!==h){!0===m&&(k={message:"The application rejected the certificate.",error:g.certificateError.bad_certificate});if(h||0===h)"object"!=typeof h||a.util.isArray(h)?"string"==typeof h&&(k.error=h):(h.message&&(k.message=h.message),h.error&&(k.error=h.error));throw k;}k=null;h=!1;++l}while(0>1,g=k+(b.length&1),m=b.substr(0,g),g=b.substr(k,g);b=a.util.createBuffer(); -k=a.hmac.create();f=c+f;var l=Math.ceil(e/16);c=Math.ceil(e/20);k.start("MD5",m);m=a.util.createBuffer();b.putBytes(f);for(var h=0;h>1,h=k+(b.length&1),m=b.substr(0,h),h=b.substr(k,h);b=a.util.createBuffer(); +k=a.hmac.create();f=c+f;var l=Math.ceil(e/16);c=Math.ceil(e/20);k.start("MD5",m);m=a.util.createBuffer();b.putBytes(f);for(var g=0;gf)b.error(b,{message:g?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.illegal_parameter}});else{c=c.fragment;var m=c.length(),e={version:{major:c.getByte(),minor:c.getByte()},random:a.util.createBuffer(c.getBytes(32)),session_id:d(c,1),extensions:[]};g?(e.cipher_suite= -c.getBytes(2),e.compression_method=c.getByte()):(e.cipher_suites=d(c,2),e.compression_methods=d(c,1));m=f-(m-c.length());if(0f)b.error(b,{message:h?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.illegal_parameter}});else{c=c.fragment;var m=c.length(),e={version:{major:c.getByte(),minor:c.getByte()},random:a.util.createBuffer(c.getBytes(32)),session_id:d(c,1),extensions:[]};h?(e.cipher_suite= +c.getBytes(2),e.compression_method=c.getByte()):(e.cipher_suites=d(c,2),e.compression_methods=d(c,1));m=f-(m-c.length());if(0c.version.minor)f=null,e="";0===e.length&&(e=a.random.getBytes(32));b.session.id=e;b.session.clientHelloVersion=c.version;b.session.sp={};if(f)b.version=b.session.version=f.version,b.session.sp=f.sp;else{for(var d,e=1;ef)return b.error(b,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:k.Alert.Level.fatal, -description:k.Alert.Description.illegal_parameter}});f=d(c.fragment,3);var e,g;c=[];try{for(;0f)return b.error(b,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.unsupported_certificate}});c=d(c.fragment,2).getBytes();f=null;if(b.getPrivateKey)try{f=b.getPrivateKey(b,b.session.serverCertificate),f=a.pki.privateKeyFromPem(f)}catch(qa){b.error(b,{message:"Could not get private key.",cause:qa,send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.internal_error}})}if(null=== -f)return b.error(b,{message:"No private key set.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.internal_error}});try{var e=b.session.sp;e.pre_master_secret=f.decrypt(c);var g=b.session.clientHelloVersion;if(g.major!==e.pre_master_secret.charCodeAt(0)||g.minor!==e.pre_master_secret.charCodeAt(1))throw Error("TLS version rollback attack detected.");}catch(qa){e.pre_master_secret=a.random.getBytes(48)}b.expect=G;null!==b.session.clientCertificate&&(b.expect=B);b.process()}; +f)return b.error(b,{message:"No private key set.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.internal_error}});try{var e=b.session.sp;e.pre_master_secret=f.decrypt(c);var h=b.session.clientHelloVersion;if(h.major!==e.pre_master_secret.charCodeAt(0)||h.minor!==e.pre_master_secret.charCodeAt(1))throw Error("TLS version rollback attack detected.");}catch(qa){e.pre_master_secret=a.random.getBytes(48)}b.expect=G;null!==b.session.clientCertificate&&(b.expect=B);b.process()}; k.handleCertificateRequest=function(a,b,c){if(3>c)return a.error(a,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.illegal_parameter}});b=b.fragment;b={certificate_types:d(b,1),certificate_authorities:d(b,2)};a.session.certificateRequest=b;a.expect=A;a.process()};k.handleCertificateVerify=function(b,c,f){if(2>f)return b.error(b,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:k.Alert.Level.fatal, description:k.Alert.Description.illegal_parameter}});f=c.fragment;f.read-=4;c=f.bytes();f.read+=4;f=d(f,2).getBytes();var e=a.util.createBuffer();e.putBuffer(b.session.md5.digest());e.putBuffer(b.session.sha1.digest());e=e.getBytes();try{if(!b.session.clientCertificate.publicKey.verify(e,f,"NONE"))throw Error("CertificateVerify signature does not match.");b.session.md5.update(c);b.session.sha1.update(c)}catch(pa){return b.error(b,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:k.Alert.Level.fatal, description:k.Alert.Description.handshake_failure}})}b.expect=G;b.process()};k.handleServerHelloDone=function(b,c,f){if(0f.length())return b.fragmented=c,c.fragment=a.util.createBuffer(),f.read-=4,b.process();b.fragmented=null;f.read-=4;var g=f.bytes(d+4);f.read+=4;e in K[b.entity][b.expect]?(b.entity===k.ConnectionEnd.server&&!b.open&&!b.fail&&(b.handshaking=!0,b.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:a.md.md5.create(),sha1:a.md.sha1.create()}),e!==k.HandshakeType.hello_request&&e!==k.HandshakeType.certificate_verify&& -e!==k.HandshakeType.finished&&(b.session.md5.update(g),b.session.sha1.update(g)),K[b.entity][b.expect][e](b,c,d)):k.handleUnexpected(b,c)};k.handleApplicationData=function(a,b){a.data.putBuffer(b.fragment);a.dataReady(a);a.process()};k.handleHeartbeat=function(b,c){var f=c.fragment;c=f.getByte();var e=f.getInt16(),f=f.getBytes(e);if(c===k.HeartbeatMessageType.heartbeat_request){if(b.handshaking||e>f.length)return b.process();k.queue(b,k.createRecord(b,{type:k.ContentType.heartbeat,data:k.createHeartbeat(k.HeartbeatMessageType.heartbeat_response, -f)}));k.flush(b)}else if(c===k.HeartbeatMessageType.heartbeat_response){if(f!==b.expectedHeartbeatPayload)return b.process();b.heartbeatReceived&&b.heartbeatReceived(b,a.util.createBuffer(f))}b.process()};var l=1,h=2,q=3,A=4,D=5,w=6,v=7,y=8,z=1,F=2,B=3,G=4,E=5,I=6,t=k.handleUnexpected,N=k.handleChangeCipherSpec,J=k.handleAlert,Q=k.handleHandshake,ea=k.handleApplicationData,P=k.handleHeartbeat,T=[];T[k.ConnectionEnd.client]=[[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[N,J,t,t,P],[t, +if(d>f.length())return b.fragmented=c,c.fragment=a.util.createBuffer(),f.read-=4,b.process();b.fragmented=null;f.read-=4;var h=f.bytes(d+4);f.read+=4;e in K[b.entity][b.expect]?(b.entity===k.ConnectionEnd.server&&!b.open&&!b.fail&&(b.handshaking=!0,b.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:a.md.md5.create(),sha1:a.md.sha1.create()}),e!==k.HandshakeType.hello_request&&e!==k.HandshakeType.certificate_verify&& +e!==k.HandshakeType.finished&&(b.session.md5.update(h),b.session.sha1.update(h)),K[b.entity][b.expect][e](b,c,d)):k.handleUnexpected(b,c)};k.handleApplicationData=function(a,b){a.data.putBuffer(b.fragment);a.dataReady(a);a.process()};k.handleHeartbeat=function(b,c){var f=c.fragment;c=f.getByte();var e=f.getInt16(),f=f.getBytes(e);if(c===k.HeartbeatMessageType.heartbeat_request){if(b.handshaking||e>f.length)return b.process();k.queue(b,k.createRecord(b,{type:k.ContentType.heartbeat,data:k.createHeartbeat(k.HeartbeatMessageType.heartbeat_response, +f)}));k.flush(b)}else if(c===k.HeartbeatMessageType.heartbeat_response){if(f!==b.expectedHeartbeatPayload)return b.process();b.heartbeatReceived&&b.heartbeatReceived(b,a.util.createBuffer(f))}b.process()};var l=1,g=2,q=3,A=4,D=5,w=6,v=7,y=8,z=1,F=2,B=3,G=4,E=5,I=6,t=k.handleUnexpected,N=k.handleChangeCipherSpec,J=k.handleAlert,Q=k.handleHandshake,ea=k.handleApplicationData,P=k.handleHeartbeat,T=[];T[k.ConnectionEnd.client]=[[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[N,J,t,t,P],[t, J,Q,t,P],[t,J,Q,ea,P],[t,J,Q,t,P]];T[k.ConnectionEnd.server]=[[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[t,J,Q,t,P],[N,J,t,t,P],[t,J,Q,t,P],[t,J,Q,ea,P],[t,J,Q,t,P]];var N=k.handleHelloRequest,J=k.handleCertificate,Q=k.handleServerKeyExchange,ea=k.handleCertificateRequest,P=k.handleServerHelloDone,S=k.handleFinished,K=[];K[k.ConnectionEnd.client]=[[t,t,k.handleServerHello,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,J,Q,ea,P,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,Q,ea,P,t,t,t,t,t,t],[N,t, t,t,t,t,t,t,t,t,t,t,t,ea,P,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,P,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,S],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]];K[k.ConnectionEnd.server]=[[t,k.handleClientHello,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,J,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,k.handleClientKeyExchange,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,k.handleCertificateVerify, t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,S],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]];k.generateKeys=function(a,c){var f=c.client_random+c.server_random;a.session.resuming||(c.master_secret=b(c.pre_master_secret,"master secret",f,48).bytes(),c.pre_master_secret=null);var f=c.server_random+c.client_random,e=2*c.mac_key_length+2*c.enc_key_length;(a=a.version.major===k.Versions.TLS_1_0.major&&a.version.minor=== @@ -475,15 +475,15 @@ k.Versions.TLS_1_0.minor)&&(e+=2*c.fixed_iv_length);f=b(c.master_secret,"key exp description:k.Alert.Description.decompression_failure}}):a.error(a,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.bad_record_mac}}),!a.fail};d.write.update=function(a,b){return d.write.compressFunction(a,b,d.write)?d.write.cipherFunction(b,d.write)||a.error(a,{message:"Could not encrypt record.",send:!1,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.internal_error}}):a.error(a,{message:"Could not compress record.", send:!1,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.internal_error}}),!a.fail};if(a.session)switch(f=a.session.sp,a.session.cipherSuite.initSecurityParameters(f),f.keys=k.generateKeys(a,f),d.read.macKey=b?f.keys.server_write_MAC_key:f.keys.client_write_MAC_key,d.write.macKey=b?f.keys.client_write_MAC_key:f.keys.server_write_MAC_key,a.session.cipherSuite.initConnectionState(d,a,f),f.compression_algorithm){case k.CompressionMethod.none:break;case k.CompressionMethod.deflate:d.read.compressFunction= e;d.write.compressFunction=c;break;default:throw Error("Unsupported compression algorithm.");}return d};k.createRandom=function(){var b=new Date,b=+b+6E4*b.getTimezoneOffset(),c=a.util.createBuffer();return c.putInt32(b),c.putBytes(a.random.getBytes(28)),c};k.createRecord=function(a,b){return b.data?{type:b.type,version:{major:a.version.major,minor:a.version.minor},length:b.data.length(),fragment:b.data}:null};k.createAlert=function(b,c){var f=a.util.createBuffer();return f.putByte(c.level),f.putByte(c.description), -k.createRecord(b,{type:k.ContentType.alert,data:f})};k.createClientHello=function(b){b.session.clientHelloVersion={major:b.version.major,minor:b.version.minor};for(var c=a.util.createBuffer(),f=0;fk.MaxFragment;)f.push(k.createRecord(b,{type:c.type,data:a.util.createBuffer(e.slice(0,k.MaxFragment))})),e=e.slice(k.MaxFragment);0f?c=5-f:(g.record={type:b.getByte(),version:{major:b.getByte(),minor:b.getByte()},length:b.getInt16(),fragment:a.util.createBuffer(),ready:!1},(b=g.record.version.major===g.version.major)&&g.session&& -g.session.version&&(b=g.record.version.minor===g.version.minor),b||g.error(g,{message:"Incompatible TLS version.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.protocol_version}}))}if(!g.fail&&null!==g.record&&!g.record.ready){c=g;b=0;var f=c.input,e=f.length();e=k.Versions.TLS_1_1.minor&&c.output.putBytes(g),c.update(b.fragment),c.finish(e)&&(b.fragment=c.output,b.length=b.fragment.length(),f=!0),f}function e(a,b,c){c||(a-=b.length()%a,b.fillWithByte(a-1,a));return!0}function d(a,b,c){a= -!0;if(c){c=b.length();for(var f=b.last(),e=c-1-f;e=g?(b.fragment=e.output.getBytes(h-g),m=e.output.getBytes(g)):b.fragment=e.output.getBytes(); +var d=b.sessionCache?k.createSessionCache(b.sessionCache):null,h={version:{major:k.Version.major,minor:k.Version.minor},entity:e,sessionId:b.sessionId,caStore:c,sessionCache:d,cipherSuites:f,connected:b.connected,virtualHost:b.virtualHost||null,verifyClient:b.verifyClient||!1,verify:b.verify||function(a,b,c,f){return b},getCertificate:b.getCertificate||null,getPrivateKey:b.getPrivateKey||null,getSignature:b.getSignature||null,input:a.util.createBuffer(),tlsData:a.util.createBuffer(),data:a.util.createBuffer(), +tlsDataReady:b.tlsDataReady,dataReady:b.dataReady,heartbeatReceived:b.heartbeatReceived,closed:b.closed,error:function(a,c){c.origin=c.origin||(a.entity===k.ConnectionEnd.client?"client":"server");c.send&&(k.queue(a,k.createAlert(a,c.alert)),k.flush(a));var f=!1!==c.fatal;f&&(a.fail=!0);b.error(a,c);f&&a.close(!1)},deflate:b.deflate||null,inflate:b.inflate||null,reset:function(a){h.version={major:k.Version.major,minor:k.Version.minor};h.record=null;h.session=null;h.peerCertificate=null;h.state={pending:null, +current:null};h.expect=0;h.fragmented=null;h.records=[];h.open=!1;h.handshakes=0;h.handshaking=!1;h.isConnected=!1;h.fail=!a&&"undefined"!=typeof a;h.input.clear();h.tlsData.clear();h.data.clear();h.state.current=k.createConnectionState(h)}};h.reset();return h.handshake=function(b){if(h.entity!==k.ConnectionEnd.client)h.error(h,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(h.handshaking)h.error(h,{message:"Handshake already in progress.",fatal:!1});else{h.fail&&!h.open&&0=== +h.handshakes&&(h.fail=!1);h.handshaking=!0;b=b||"";var c=null;0f?c=5-f:(h.record={type:b.getByte(),version:{major:b.getByte(),minor:b.getByte()},length:b.getInt16(),fragment:a.util.createBuffer(),ready:!1},(b=h.record.version.major===h.version.major)&&h.session&& +h.session.version&&(b=h.record.version.minor===h.version.minor),b||h.error(h,{message:"Incompatible TLS version.",send:!0,alert:{level:k.Alert.Level.fatal,description:k.Alert.Description.protocol_version}}))}if(!h.fail&&null!==h.record&&!h.record.ready){c=h;b=0;var f=c.input,e=f.length();e=k.Versions.TLS_1_1.minor&&c.output.putBytes(h),c.update(b.fragment),c.finish(e)&&(b.fragment=c.output,b.length=b.fragment.length(),f=!0),f}function e(a,b,c){c||(a-=b.length()%a,b.fillWithByte(a-1,a));return!0}function d(a,b,c){a= +!0;if(c){c=b.length();for(var f=b.last(),e=c-1-f;e=h?(b.fragment=e.output.getBytes(g-h),m=e.output.getBytes(h)):b.fragment=e.output.getBytes(); b.fragment=a.util.createBuffer(b.fragment);b.length=b.fragment.length();b=c.macFunction(c.macKey,c.sequenceNumber,b);c.updateSequenceNumber();c=c.macKey;e=a.hmac.create();return f=(e.start("SHA1",c),e.update(m),m=e.digest().getBytes(),e.start(null,null),e.update(b),b=e.digest().getBytes(),m===b)&&f,f}var k=a.tls;k.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(a){a.bulk_cipher_algorithm=k.BulkCipherAlgorithm.aes;a.cipher_type= k.CipherType.block;a.enc_key_length=16;a.block_length=16;a.fixed_iv_length=16;a.record_iv_length=16;a.mac_algorithm=k.MACAlgorithm.hmac_sha1;a.mac_length=20;a.mac_key_length=20},initConnectionState:b};k.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(a){a.bulk_cipher_algorithm=k.BulkCipherAlgorithm.aes;a.cipher_type=k.CipherType.block;a.enc_key_length=32;a.block_length=16;a.fixed_iv_length=16;a.record_iv_length=16;a.mac_algorithm= -k.MACAlgorithm.hmac_sha1;a.mac_length=20;a.mac_key_length=20},initConnectionState:b};var l=0}if("function"!=typeof b){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;b=function(b,c){c(a,module)}}var g,k=function(a,b){b.exports=function(b){var f=g.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.aesCipherSuites)return b.aesCipherSuites;b.defined.aesCipherSuites=!0;for(var e=0;e=f&&d=f&&db.contentInfo.value.length)throw Error("Could not sign PKCS#7 message; there is no content to sign.");var k=q.derToOid(b.contentInfo.value[0].value),f=b.contentInfo.value[1],f=f.value[0],m=q.toDer(f);m.getByte();q.getBerValueLength(m);var m=m.getBytes(),l;for(l in c)c[l].start().update(m);l=new Date;for(f=0;f=this._config.preview;if(C)h.postMessage({results:a,workerId:v.WORKER_ID,finished:b}); +else if(a.error.fileName!=b[1])throw a.preventDefault(),new a.error.constructor(a.error.message,b[1],a.error.lineNumber);}},!1);var c=[];try{var d=new URL(location.href)}catch(p){console.warn("Honey: falling back to DOM workaround for URL parser ("+p+")"),d=document.createElement("A")}try{var h={};Object.defineProperty(h,"foo",{value:"bar",configurable:!0});delete h.foo}catch(p){console.warn("Honey: falling back to DOM workaround for cache object ("+p+")"),h=document.createElement("DIV")}for(var k= +{},e=self.Honey&&void 0!==self.Honey.requirePath?self.Honey.requirePath.slice(0):["./"],l=self.Honey&&void 0!==self.Honey.requireCompiler?self.Honey.requireCompiler:null,n=[location.origin,location.href.substr(0,location.href.replace(location.hash,"").lastIndexOf("/")+1)],f=0;f=this._config.preview;if(C)g.postMessage({results:a,workerId:v.WORKER_ID,finished:b}); else if(u(this._config.chunk)){this._config.chunk(a,this._handle);if(this._paused)return;this._completeResults=a=void 0}this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta);!b||!u(this._config.complete)||a&&a.meta.aborted||this._config.complete(this._completeResults);b||a&&a.meta.paused||this._nextChunk();return a}};this._sendError=function(a){u(this._config.error)? -this._config.error(a):C&&this._config.error&&h.postMessage({workerId:v.WORKER_ID,error:a,finished:!1})}}function b(b){b=b||{};b.chunkSize||(b.chunkSize=v.RemoteChunkSize);a.call(this,b);var c;this._nextChunk=x?function(){this._readChunk();this._chunkLoaded()}:function(){this._readChunk()};this.stream=function(a){this._input=a;this._nextChunk()};this._readChunk=function(){if(this._finished)this._chunkLoaded();else{c=new XMLHttpRequest;x||(c.onload=r(this._chunkLoaded,this),c.onerror=r(this._chunkError, +this._config.error(a):C&&this._config.error&&g.postMessage({workerId:v.WORKER_ID,error:a,finished:!1})}}function b(b){b=b||{};b.chunkSize||(b.chunkSize=v.RemoteChunkSize);a.call(this,b);var c;this._nextChunk=x?function(){this._readChunk();this._chunkLoaded()}:function(){this._readChunk()};this.stream=function(a){this._input=a;this._nextChunk()};this._readChunk=function(){if(this._finished)this._chunkLoaded();else{c=new XMLHttpRequest;x||(c.onload=r(this._chunkLoaded,this),c.onerror=r(this._chunkError, this));c.open("GET",this._input,!x);this._config.chunkSize&&(c.setRequestHeader("Range","bytes\x3d"+this._start+"-"+(this._start+this._config.chunkSize-1)),c.setRequestHeader("If-None-Match","webkit-no-cache"));try{c.send()}catch(B){this._chunkError(B.message)}x&&0==c.status?this._chunkError():this._start+=this._config.chunkSize}};this._chunkLoaded=function(){if(4==c.readyState)if(200>c.status||400<=c.status)this._chunkError();else{var a;if(!(a=!this._config.chunkSize)){a=this._start;var b;b=c.getResponseHeader("Content-Range"); b=parseInt(b.substr(b.lastIndexOf("/")+1));a=a>b}this._finished=a;this.parseChunk(c.responseText)}};this._chunkError=function(a){this._sendError(c.statusText||a)}}function c(b){b=b||{};b.chunkSize||(b.chunkSize=v.LocalChunkSize);a.call(this,b);var c,f,e="undefined"!==typeof FileReader;this.stream=function(a){this._input=a;f=a.slice||a.webkitSlice||a.mozSlice;e?(c=new FileReader,c.onload=r(this._chunkLoaded,this),c.onerror=r(this._chunkError,this)):c=new FileReaderSync;this._nextChunk()};this._nextChunk= function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size;this.parseChunk(a.target.result)}; -this._chunkError=function(){this._sendError(c.error)}}function d(b){b=b||{};a.call(this,b);var c;this.stream=function(a){c=a;return this._nextChunk()};this._nextChunk=function(){if(!this._finished){var a=this._config.chunkSize,b=a?c.substr(0,a):c;c=a?c.substr(a):"";this._finished=!c;return this.parseChunk(b)}}}function g(a){function b(){q&&n&&(c("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+v.DefaultDelimiter+"'"),n=!1);if(a.skipEmptyLines)for(var b= -0;b=r.length? +this._chunkError=function(){this._sendError(c.error)}}function d(b){b=b||{};a.call(this,b);var c;this.stream=function(a){c=a;return this._nextChunk()};this._nextChunk=function(){if(!this._finished){var a=this._config.chunkSize,b=a?c.substr(0,a):c;c=a?c.substr(a):"";this._finished=!c;return this.parseChunk(b)}}}function h(a){function b(){q&&n&&(c("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+v.DefaultDelimiter+"'"),n=!1);if(a.skipEmptyLines)for(var b= +0;b=r.length? (e.__parsed_extra||(e.__parsed_extra=[]),e.__parsed_extra.push(q.data[b][d])):e[r[d]]=q.data[b][d])}a.header&&(q.data[b]=e,d>r.length?c("FieldMismatch","TooManyFields","Too many fields: expected "+r.length+" fields but parsed "+d,b):da.preview?m.abort():x(q,e)))}}this.parse=function(c,f,e){var d;if(!a.newline){var h;h=c.substr(0,1048576);h=h.split("\r");if(1==h.length)h="\n";else{for(var r=0,B=0;B=h.length/2?"\r\n":"\r"}a.newline=h}n=!1;if(!a.delimiter){h=[",","\t","|",";",v.RECORD_SEP,v.UNIT_SEP];for(var u, -B=0;B=d)return y=y.slice(0,d),B(!0)}}return B()}for(var D=a.indexOf(b,k),t=a.indexOf(c,k);;)if('"'==a[k])for(D=k,k++;;){D=a.indexOf('"',D+1);if(-1===D)return h|| +e=this,d=0,h,m,l=!1,g=!1,n,r=[],q={data:[],errors:[],meta:{}};if(u(a.step)){var x=a.step;a.step=function(c){q=c;a.header&&0==r.length?b():(b(),0!=q.data.length&&(d+=c.data.length,a.preview&&d>a.preview?m.abort():x(q,e)))}}this.parse=function(c,f,e){var d;if(!a.newline){var g;g=c.substr(0,1048576);g=g.split("\r");if(1==g.length)g="\n";else{for(var r=0,B=0;B=g.length/2?"\r\n":"\r"}a.newline=g}n=!1;if(!a.delimiter){g=[",","\t","|",";",v.RECORD_SEP,v.UNIT_SEP];for(var u, +B=0;B=d)return y=y.slice(0,d),B(!0)}}return B()}for(var D=a.indexOf(b,k),t=a.indexOf(c,k);;)if('"'==a[k])for(D=k,k++;;){D=a.indexOf('"',D+1);if(-1===D)return g|| G.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:k}),p();if(D===q-1)return A=a.substring(k,D).replace(/""/g,'"'),p(A);if('"'==a[D+1])D++;else{if(a[D+1]==b){z.push(a.substring(k,D).replace(/""/g,'"'));k=D+1+u;D=a.indexOf(b,k);t=a.indexOf(c,k);break}if(a.substr(D+1,x)===c){z.push(a.substring(k,D).replace(/""/g,'"'));r(D+1+x);D=a.indexOf(b,k);if(C&&(v(),m))return B();if(d&&y.length>=d)return B(!0);break}}}else if(f&&0===z.length&&a.substr(k,A)===f){if(-1== t)return B();k=t+x;t=a.indexOf(c,k);D=a.indexOf(b,k)}else if(-1!==D&&(D=d)return B(!0)}else break;return p()};this.abort=function(){m=!0};this.getCharIndex=function(){return k}}function e(){var a=document.getElementsByTagName("script");return a.length?a[a.length-1].src:""}function l(a){var b=a.data;a=D[b.workerId];var c=!1;if(b.error)a.userError(b.error, b.file);else if(b.results&&b.results.data){var e={abort:function(){c=!0;n(b.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:f,resume:f};if(u(a.userStep)){for(var d=0;d/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26apos;"):a}function c(a,b,c,f){for(var e=0;e/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26apos;"):a}function c(a,b,c,f){for(var e=0;e>2],c+=chars[(h[a]&3)<<4|h[a+1]>>4],c+=chars[(h[a+1]&15)<<2|h[a+2]>>6],c+=chars[h[a+2]&63];2===b%3?c=c.substring(0,c.length-1)+"\x3d":1===b%3&&(c=c.substring(0,c.length-2)+"\x3d\x3d");return c}; -base64.decode=function(h){var a=.75*h.length,b=h.length,c=0,d,g,k,e;"\x3d"===h[h.length-1]&&(a--,"\x3d"===h[h.length-2]&&a--);for(var l=new ArrayBuffer(a),n=new Uint8Array(l),a=0;a>4,n[c++]=(g&15)<<4|k>>2,n[c++]=(k&3)<<6|e&63;return l}; -(function(h){function a(a,b,c){return b<=a&&a<=c}function b(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function c(a){return 0<=a&&127>=a}function d(a){this.tokens=[].slice.call(a);this.tokens.reverse()}function g(a,b){if(a)throw TypeError("Decoder error");return b||65533}function k(a){throw TypeError("The code point "+a+" could not be encoded.");}function e(a){a=String(a).trim().toLowerCase();return Object.prototype.hasOwnProperty.call(R, -a)?R[a]:null}function l(a,b){return b?b[a]||null:null}function n(a,b){a=b.indexOf(a);return-1===a?null:a}function f(a){if(!("encoding-indexes"in h))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return h["encoding-indexes"][a]}function m(b){L=L||f("jis0208").map(function(b,c){return a(c,8272,8835)?null:b});return L.indexOf(b)}function p(a){var b=U=U||f("big5").map(function(a,b){return 5024>b?null:a});return 9552===a||9566===a||9569===a||9578===a||21313===a||21317=== +base64.encode=function(g){g=new Uint8Array(g);var a,b=g.length,c="";for(a=0;a>2],c+=chars[(g[a]&3)<<4|g[a+1]>>4],c+=chars[(g[a+1]&15)<<2|g[a+2]>>6],c+=chars[g[a+2]&63];2===b%3?c=c.substring(0,c.length-1)+"\x3d":1===b%3&&(c=c.substring(0,c.length-2)+"\x3d\x3d");return c}; +base64.decode=function(g){var a=.75*g.length,b=g.length,c=0,d,h,k,e;"\x3d"===g[g.length-1]&&(a--,"\x3d"===g[g.length-2]&&a--);for(var l=new ArrayBuffer(a),n=new Uint8Array(l),a=0;a>4,n[c++]=(h&15)<<4|k>>2,n[c++]=(k&3)<<6|e&63;return l}; +(function(g){function a(a,b,c){return b<=a&&a<=c}function b(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function c(a){return 0<=a&&127>=a}function d(a){this.tokens=[].slice.call(a);this.tokens.reverse()}function h(a,b){if(a)throw TypeError("Decoder error");return b||65533}function k(a){throw TypeError("The code point "+a+" could not be encoded.");}function e(a){a=String(a).trim().toLowerCase();return Object.prototype.hasOwnProperty.call(R, +a)?R[a]:null}function l(a,b){return b?b[a]||null:null}function n(a,b){a=b.indexOf(a);return-1===a?null:a}function f(a){if(!("encoding-indexes"in g))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return g["encoding-indexes"][a]}function m(b){L=L||f("jis0208").map(function(b,c){return a(c,8272,8835)?null:b});return L.indexOf(b)}function p(a){var b=U=U||f("big5").map(function(a,b){return 5024>b?null:a});return 9552===a||9566===a||9569===a||9578===a||21313===a||21317=== a?b.lastIndexOf(a):n(a,b)}function r(a,c){if(!(this instanceof r))throw TypeError("Called as a function. Did you forget 'new'?");a=void 0!==a?String(a):"utf-8";c=b(c);this._decoder=this._encoding=null;this._BOMseen=this._ignoreBOM=!1;this._error_mode="replacement";this._do_not_flush=!1;var f=e(a);if(null===f||"replacement"===f.name)throw RangeError("Unknown encoding: "+a);if(!H[f.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=f;c.fatal&& (this._error_mode="fatal");c.ignoreBOM&&(this._ignoreBOM=!0);Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase(),this.fatal="fatal"===this._error_mode,this.ignoreBOM=this._ignoreBOM);return this}function u(a,c){if(!(this instanceof u))throw TypeError("Called as a function. Did you forget 'new'?");c=b(c);this._encoder=this._encoding=null;this._do_not_flush=!1;this._fatal=c.fatal?"fatal":"replacement";if(c.NONSTANDARD_allowLegacyEncoding){a=void 0!==a?String(a):"utf-8";c=e(a);if(null=== -c||"replacement"===c.name)throw RangeError("Unknown encoding: "+a);if(!O[c.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=c}else this._encoding=e("utf-8"),void 0!==a&&"console"in h&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase());return this}function x(b){var c=b.fatal,f=0,e=0,d=0,k=128,m=191;this.handler=function(b,l){if(-1=== -l&&0!==d)return d=0,g(c);if(-1===l)return-1;if(0===d){if(a(l,0,127))return l;if(a(l,194,223))d=1,f=l&31;else if(a(l,224,239))224===l&&(k=160),237===l&&(m=159),d=2,f=l&15;else if(a(l,240,244))240===l&&(k=144),244===l&&(m=143),d=3,f=l&7;else return g(c);return null}if(!a(l,k,m))return f=d=e=0,k=128,m=191,b.prepend(l),g(c);k=128;m=191;f=f<<6|l&63;e+=1;if(e!==d)return null;b=f;f=d=e=0;return b}}function C(b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;var f,e;a(c,128,2047)?(f=1,e=192): -a(c,2048,65535)?(f=2,e=224):a(c,65536,1114111)&&(f=3,e=240);for(b=[(c>>6*f)+e];0>6*(f-1)&63),--f;return b}}function q(a,b){var f=b.fatal;this.handler=function(b,e){if(-1===e)return-1;if(c(e))return e;b=a[e-128];return null===b?g(f):b}}function A(a,b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;b=n(c,a);null===b&&k(c);return b+128}}function D(b){var e=b.fatal,d=0,k=0,m=0;this.handler=function(b,h){if(-1===h&&0===d&&0===k&&0===m)return-1;-1!==h||0===d&&0===k&&0=== -m||(m=k=d=0,g(e));var n;if(0!==m){n=null;if(a(h,48,57))if(n=10*(126*(10*(d-129)+k-48)+m-129)+h-48,39419n||1237575h?64:65;if(a(h,64,126)||a(h,128, -254))p=190*(n-129)+(h-r);n=null===p?null:l(p,f("gb18030"));null===n&&c(h)&&b.prepend(h);return null===n?g(e):n}return c(h)?h:128===h?8364:a(h,129,254)?(d=h,null):g(e)}}function w(a,b){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(58853===c)return k(c);if(b&&8364===c)return 128;a=n(c,f("gb18030"));if(null!==a)return c=S(a/190)+129,a%=190,[c,a+(63>a?64:65)];if(b)return k(c);if(59335===c)a=7457;else{var e=a=0,d=f("gb18030-ranges"),g;for(g=0;gk?64:98;if(a(k,64,126)||a(k,161,254))h=157*(m-129)+(k-n);switch(h){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}m=null===h?null:l(h,f("big5"));null===m&&c(k)&& -b.prepend(k);return null===m?g(e):m}return c(k)?k:a(k,129,254)?(d=k,null):g(e)}}function y(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;var c=p(b);if(null===c)return k(b);a=S(c/157)+129;if(161>a)return k(b);b=c%157;return[a,b+(63>b?64:98)]}}function z(b){var e=b.fatal,d=!1,k=0;this.handler=function(b,m){if(-1===m&&0!==k)return k=0,g(e);if(-1===m&&0===k)return-1;if(142===k&&a(m,161,223))return k=0,65216+m;if(143===k&&a(m,161,254))return d=!0,k=m,null;if(0!==k){var h=k;k=0;var n= -null;a(h,161,254)&&a(m,161,254)&&(n=l(94*(h-161)+(m-161),f(d?"jis0212":"jis0208")));d=!1;a(m,161,254)||b.prepend(m);return null===n?g(e):n}return c(m)?m:142===m||143===m||a(m,161,254)?(k=m,null):g(e)}}function F(b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;if(165===c)return 92;if(8254===c)return 126;if(a(c,65377,65439))return[142,c-65377+161];8722===c&&(c=65293);b=n(c,f("jis0208"));return null===b?k(c):[S(b/94)+161,b%94+161]}}function B(b){var c=b.fatal,e=0,d=0,k=!1;this.handler= -function(b,m){switch(e){default:case 0:if(27===m)return e=5,null;if(a(m,0,127)&&14!==m&&15!==m&&27!==m)return k=!1,m;if(-1===m)return-1;k=!1;return g(c);case 1:if(27===m)return e=5,null;if(92===m)return k=!1,165;if(126===m)return k=!1,8254;if(a(m,0,127)&&14!==m&&15!==m&&27!==m&&92!==m&&126!==m)return k=!1,m;if(-1===m)return-1;k=!1;return g(c);case 2:if(27===m)return e=5,null;if(a(m,33,95))return k=!1,65344+m;if(-1===m)return-1;k=!1;return g(c);case 3:if(27===m)return e=5,null;if(a(m,33,126))return k= -!1,d=m,e=4,null;if(-1===m)return-1;k=!1;return g(c);case 4:if(27===m)return e=5,g(c);if(a(m,33,126))return e=3,b=l(94*(d-33)+m-33,f("jis0208")),null===b?g(c):b;if(-1===m)return e=3,b.prepend(m),g(c);e=3;return g(c);case 5:if(36===m||40===m)return d=m,e=6,null;b.prepend(m);k=!1;e=0;return g(c);case 6:var h=d;d=0;var n=null;40===h&&66===m&&(n=0);40===h&&74===m&&(n=1);40===h&&73===m&&(n=2);36!==h||64!==m&&66!==m||(n=3);if(null!==n)return e=e=n,b=k,k=!0,b?g(c):null;b.prepend([h,m]);k=!1;e=0;return g(c)}}} +c||"replacement"===c.name)throw RangeError("Unknown encoding: "+a);if(!O[c.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=c}else this._encoding=e("utf-8"),void 0!==a&&"console"in g&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase());return this}function x(b){var c=b.fatal,f=0,e=0,d=0,k=128,m=191;this.handler=function(b,l){if(-1=== +l&&0!==d)return d=0,h(c);if(-1===l)return-1;if(0===d){if(a(l,0,127))return l;if(a(l,194,223))d=1,f=l&31;else if(a(l,224,239))224===l&&(k=160),237===l&&(m=159),d=2,f=l&15;else if(a(l,240,244))240===l&&(k=144),244===l&&(m=143),d=3,f=l&7;else return h(c);return null}if(!a(l,k,m))return f=d=e=0,k=128,m=191,b.prepend(l),h(c);k=128;m=191;f=f<<6|l&63;e+=1;if(e!==d)return null;b=f;f=d=e=0;return b}}function C(b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;var f,e;a(c,128,2047)?(f=1,e=192): +a(c,2048,65535)?(f=2,e=224):a(c,65536,1114111)&&(f=3,e=240);for(b=[(c>>6*f)+e];0>6*(f-1)&63),--f;return b}}function q(a,b){var f=b.fatal;this.handler=function(b,e){if(-1===e)return-1;if(c(e))return e;b=a[e-128];return null===b?h(f):b}}function A(a,b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;b=n(c,a);null===b&&k(c);return b+128}}function D(b){var e=b.fatal,d=0,k=0,m=0;this.handler=function(b,g){if(-1===g&&0===d&&0===k&&0===m)return-1;-1!==g||0===d&&0===k&&0=== +m||(m=k=d=0,h(e));var n;if(0!==m){n=null;if(a(g,48,57))if(n=10*(126*(10*(d-129)+k-48)+m-129)+g-48,39419n||1237575g?64:65;if(a(g,64,126)||a(g,128, +254))p=190*(n-129)+(g-r);n=null===p?null:l(p,f("gb18030"));null===n&&c(g)&&b.prepend(g);return null===n?h(e):n}return c(g)?g:128===g?8364:a(g,129,254)?(d=g,null):h(e)}}function w(a,b){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(58853===c)return k(c);if(b&&8364===c)return 128;a=n(c,f("gb18030"));if(null!==a)return c=S(a/190)+129,a%=190,[c,a+(63>a?64:65)];if(b)return k(c);if(59335===c)a=7457;else{var e=a=0,d=f("gb18030-ranges"),h;for(h=0;hk?64:98;if(a(k,64,126)||a(k,161,254))g=157*(m-129)+(k-n);switch(g){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}m=null===g?null:l(g,f("big5"));null===m&&c(k)&& +b.prepend(k);return null===m?h(e):m}return c(k)?k:a(k,129,254)?(d=k,null):h(e)}}function y(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;var c=p(b);if(null===c)return k(b);a=S(c/157)+129;if(161>a)return k(b);b=c%157;return[a,b+(63>b?64:98)]}}function z(b){var e=b.fatal,d=!1,k=0;this.handler=function(b,m){if(-1===m&&0!==k)return k=0,h(e);if(-1===m&&0===k)return-1;if(142===k&&a(m,161,223))return k=0,65216+m;if(143===k&&a(m,161,254))return d=!0,k=m,null;if(0!==k){var g=k;k=0;var n= +null;a(g,161,254)&&a(m,161,254)&&(n=l(94*(g-161)+(m-161),f(d?"jis0212":"jis0208")));d=!1;a(m,161,254)||b.prepend(m);return null===n?h(e):n}return c(m)?m:142===m||143===m||a(m,161,254)?(k=m,null):h(e)}}function F(b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;if(165===c)return 92;if(8254===c)return 126;if(a(c,65377,65439))return[142,c-65377+161];8722===c&&(c=65293);b=n(c,f("jis0208"));return null===b?k(c):[S(b/94)+161,b%94+161]}}function B(b){var c=b.fatal,e=0,d=0,k=!1;this.handler= +function(b,m){switch(e){default:case 0:if(27===m)return e=5,null;if(a(m,0,127)&&14!==m&&15!==m&&27!==m)return k=!1,m;if(-1===m)return-1;k=!1;return h(c);case 1:if(27===m)return e=5,null;if(92===m)return k=!1,165;if(126===m)return k=!1,8254;if(a(m,0,127)&&14!==m&&15!==m&&27!==m&&92!==m&&126!==m)return k=!1,m;if(-1===m)return-1;k=!1;return h(c);case 2:if(27===m)return e=5,null;if(a(m,33,95))return k=!1,65344+m;if(-1===m)return-1;k=!1;return h(c);case 3:if(27===m)return e=5,null;if(a(m,33,126))return k= +!1,d=m,e=4,null;if(-1===m)return-1;k=!1;return h(c);case 4:if(27===m)return e=5,h(c);if(a(m,33,126))return e=3,b=l(94*(d-33)+m-33,f("jis0208")),null===b?h(c):b;if(-1===m)return e=3,b.prepend(m),h(c);e=3;return h(c);case 5:if(36===m||40===m)return d=m,e=6,null;b.prepend(m);k=!1;e=0;return h(c);case 6:var g=d;d=0;var n=null;40===g&&66===m&&(n=0);40===g&&74===m&&(n=1);40===g&&73===m&&(n=2);36!==g||64!==m&&66!==m||(n=3);if(null!==n)return e=e=n,b=k,k=!0,b?h(c):null;b.prepend([g,m]);k=!1;e=0;return h(c)}}} function G(a){var b=0;this.handler=function(a,c){if(-1===c&&0!==b)return a.prepend(c),b=0,[27,40,66];if(-1===c&&0===b)return-1;if(!(0!==b&&1!==b||14!==c&&15!==c&&27!==c))return k(65533);if(0===b&&K(c))return c;if(1===b&&(K(c)&&92!==c&&126!==c||165==c||8254==c)){if(K(c))return c;if(165===c)return 92;if(8254===c)return 126}if(K(c)&&0!==b)return a.prepend(c),b=0,[27,40,66];if((165===c||8254===c)&&1!==b)return a.prepend(c),b=1,[27,40,74];8722===c&&(c=65293);var e=n(c,f("jis0208"));return null===e?k(c): -2!==b?(a.prepend(c),b=2,[27,36,66]):[S(e/94)+33,e%94+33]}}function E(b){var e=b.fatal,d=0;this.handler=function(b,k){if(-1===k&&0!==d)return d=0,g(e);if(-1===k&&0===d)return-1;if(0!==d){var m=d,h=null;d=0;var n=127>k?64:65,p=160>m?129:193;if(a(k,64,126)||a(k,128,252))h=188*(m-p)+k-n;if(a(h,8836,10715))return 48508+h;m=null===h?null:l(h,f("jis0208"));null===m&&c(k)&&b.prepend(k);return null===m?g(e):m}return c(k)||128===k?k:a(k,161,223)?65216+k:a(k,129,159)||a(k,224,252)?(d=k,null):g(e)}}function I(b){this.handler= -function(b,c){if(-1===c)return-1;if(K(c)||128===c)return c;if(165===c)return 92;if(8254===c)return 126;if(a(c,65377,65439))return c-65377+161;8722===c&&(c=65293);b=m(c);if(null===b)return k(c);c=S(b/188);b%=188;return[c+(31>c?129:193),b+(63>b?64:65)]}}function t(b){var e=b.fatal,d=0;this.handler=function(b,k){if(-1===k&&0!==d)return d=0,g(e);if(-1===k&&0===d)return-1;if(0!==d){var m=d,h=null;d=0;a(k,65,254)&&(h=190*(m-129)+(k-65));m=null===h?null:l(h,f("euc-kr"));null===h&&c(k)&&b.prepend(k);return null=== -m?g(e):m}return c(k)?k:a(k,129,254)?(d=k,null):g(e)}}function N(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;a=n(b,f("euc-kr"));return null===a?k(b):[S(a/190)+129,a%190+65]}}function J(a,b){var c=a>>8;a&=255;return b?[c,a]:[a,c]}function Q(b,c){var f=c.fatal,e=null,d=null;this.handler=function(c,k){if(-1===k&&(null!==e||null!==d))return g(f);if(-1===k&&null===e&&null===d)return-1;if(null===e)return e=k,null;k=b?(e<<8)+k:(k<<8)+e;e=null;if(null!==d){var m=d;d=null;if(a(k,56320, -57343))return 65536+1024*(m-55296)+(k-56320);c.prepend(J(k,b));return g(f)}return a(k,55296,56319)?(d=k,null):a(k,56320,57343)?g(f):k}}function ea(b,c){this.handler=function(c,f){if(-1===f)return-1;if(a(f,0,65535))return J(f,b);c=J((f-65536>>10)+55296,b);f=J((f-65536&1023)+56320,b);return c.concat(f)}}function P(a){this.handler=function(a,b){return-1===b?-1:c(b)?b:63360+b-128};project}function T(b){this.handler=function(b,c){return-1===c?-1:K(c)?c:a(c,63360,63487)?c-63360+128:k(c)}}"undefined"!== -typeof module&&module.exports&&!h["encoding-indexes"]&&(h["encoding-indexes"]=require("./encoding-indexes.js")["encoding-indexes"]);var S=Math.floor,K=c;d.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():-1},prepend:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.push(a.pop());else this.tokens.push(a)},push:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.unshift(a.shift());else this.tokens.unshift(a)}};var M= +2!==b?(a.prepend(c),b=2,[27,36,66]):[S(e/94)+33,e%94+33]}}function E(b){var e=b.fatal,d=0;this.handler=function(b,k){if(-1===k&&0!==d)return d=0,h(e);if(-1===k&&0===d)return-1;if(0!==d){var m=d,g=null;d=0;var n=127>k?64:65,p=160>m?129:193;if(a(k,64,126)||a(k,128,252))g=188*(m-p)+k-n;if(a(g,8836,10715))return 48508+g;m=null===g?null:l(g,f("jis0208"));null===m&&c(k)&&b.prepend(k);return null===m?h(e):m}return c(k)||128===k?k:a(k,161,223)?65216+k:a(k,129,159)||a(k,224,252)?(d=k,null):h(e)}}function I(b){this.handler= +function(b,c){if(-1===c)return-1;if(K(c)||128===c)return c;if(165===c)return 92;if(8254===c)return 126;if(a(c,65377,65439))return c-65377+161;8722===c&&(c=65293);b=m(c);if(null===b)return k(c);c=S(b/188);b%=188;return[c+(31>c?129:193),b+(63>b?64:65)]}}function t(b){var e=b.fatal,d=0;this.handler=function(b,k){if(-1===k&&0!==d)return d=0,h(e);if(-1===k&&0===d)return-1;if(0!==d){var m=d,g=null;d=0;a(k,65,254)&&(g=190*(m-129)+(k-65));m=null===g?null:l(g,f("euc-kr"));null===g&&c(k)&&b.prepend(k);return null=== +m?h(e):m}return c(k)?k:a(k,129,254)?(d=k,null):h(e)}}function N(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;a=n(b,f("euc-kr"));return null===a?k(b):[S(a/190)+129,a%190+65]}}function J(a,b){var c=a>>8;a&=255;return b?[c,a]:[a,c]}function Q(b,c){var f=c.fatal,e=null,d=null;this.handler=function(c,k){if(-1===k&&(null!==e||null!==d))return h(f);if(-1===k&&null===e&&null===d)return-1;if(null===e)return e=k,null;k=b?(e<<8)+k:(k<<8)+e;e=null;if(null!==d){var m=d;d=null;if(a(k,56320, +57343))return 65536+1024*(m-55296)+(k-56320);c.prepend(J(k,b));return h(f)}return a(k,55296,56319)?(d=k,null):a(k,56320,57343)?h(f):k}}function ea(b,c){this.handler=function(c,f){if(-1===f)return-1;if(a(f,0,65535))return J(f,b);c=J((f-65536>>10)+55296,b);f=J((f-65536&1023)+56320,b);return c.concat(f)}}function P(a){this.handler=function(a,b){return-1===b?-1:c(b)?b:63360+b-128};project}function T(b){this.handler=function(b,c){return-1===c?-1:K(c)?c:a(c,63360,63487)?c-63360+128:k(c)}}"undefined"!== +typeof module&&module.exports&&!g["encoding-indexes"]&&(g["encoding-indexes"]=require("./encoding-indexes.js")["encoding-indexes"]);var S=Math.floor,K=c;d.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():-1},prepend:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.push(a.pop());else this.tokens.push(a)},push:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.unshift(a.shift());else this.tokens.unshift(a)}};var M= [{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:"csisolatin2 iso-8859-2 iso-ir-101 iso8859-2 iso88592 iso_8859-2 iso_8859-2:1987 l2 latin2".split(" "),name:"ISO-8859-2"},{labels:"csisolatin3 iso-8859-3 iso-ir-109 iso8859-3 iso88593 iso_8859-3 iso_8859-3:1988 l3 latin3".split(" "),name:"ISO-8859-3"},{labels:"csisolatin4 iso-8859-4 iso-ir-110 iso8859-4 iso88594 iso_8859-4 iso_8859-4:1988 l4 latin4".split(" "), name:"ISO-8859-4"},{labels:"csisolatincyrillic cyrillic iso-8859-5 iso-ir-144 iso8859-5 iso88595 iso_8859-5 iso_8859-5:1988".split(" "),name:"ISO-8859-5"},{labels:"arabic asmo-708 csiso88596e csiso88596i csisolatinarabic ecma-114 iso-8859-6 iso-8859-6-e iso-8859-6-i iso-ir-127 iso8859-6 iso88596 iso_8859-6 iso_8859-6:1987".split(" "),name:"ISO-8859-6"},{labels:"csisolatingreek ecma-118 elot_928 greek greek8 iso-8859-7 iso-ir-126 iso8859-7 iso88597 iso_8859-7 iso_8859-7:1987 sun_eu_greek".split(" "), name:"ISO-8859-7"},{labels:"csiso88598e csisolatinhebrew hebrew iso-8859-8 iso-8859-8-e iso-ir-138 iso8859-8 iso88598 iso_8859-8 iso_8859-8:1988 visual".split(" "),name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:"csisolatin6 iso-8859-10 iso-ir-157 iso8859-10 iso885910 l6 latin6".split(" "),name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:"csisolatin9 iso-8859-15 iso8859-15 iso885915 iso_8859-15 l9".split(" "), @@ -658,67 +658,67 @@ name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows- "fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(r.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}}));r.prototype.decode=function(a,c){a="object"===typeof a&&a instanceof ArrayBuffer?new Uint8Array(a):"object"===typeof a&&"buffer"in a&&a.buffer instanceof ArrayBuffer?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0);c=b(c);this._do_not_flush||(this._decoder=H[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1); this._do_not_flush=!!c.stream;a=new d(a);c=[];for(var f;;){f=a.read();if(-1===f)break;f=this._decoder.handler(a,f);if(-1===f)break;null!==f&&(Array.isArray(f)?c.push.apply(c,f):c.push(f))}if(!this._do_not_flush){do{f=this._decoder.handler(a,a.read());if(-1===f)break;null!==f&&(Array.isArray(f)?c.push.apply(c,f):c.push(f))}while(!a.endOfStream());this._decoder=null}-1===["UTF-8","UTF-16LE","UTF-16BE"].indexOf(this._encoding.name)||this._ignoreBOM||this._BOMseen||(0=e?a+=String.fromCharCode(e):(e-=65536,a+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return a};Object.defineProperty&&Object.defineProperty(u.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});u.prototype.encode=function(a,c){a=void 0===a?"":String(a);c=b(c);this._do_not_flush||(this._encoder=O[this._encoding.name]({fatal:"fatal"===this._fatal}));this._do_not_flush=!!c.stream; -a=String(a);c=a.length;for(var f=0,e=[];fg||57343=g)e.push(65533);else if(55296<=g&&56319>=g)if(f===c-1)e.push(65533);else{var k=a.charCodeAt(f+1);56320<=k&&57343>=k?(e.push(65536+((g&1023)<<10)+(k&1023)),f+=1):e.push(65533)}f+=1}a=new d(e);for(c=[];;){f=a.read();if(-1===f)break;f=this._encoder.handler(a,f);if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}if(!this._do_not_flush){for(;;){f=this._encoder.handler(a, -a.read());if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}this._encoder=null}return new Uint8Array(c)};O["UTF-8"]=function(a){return new C(a)};H["UTF-8"]=function(a){return new x(a)};(function(){"encoding-indexes"in h&&M.forEach(function(a){"Legacy single-byte encodings"===a.heading&&a.encodings.forEach(function(a){a=a.name;var b=f(a.toLowerCase());H[a]=function(a){return new q(b,a)};O[a]=function(a){return new A(b,a)}})})})();H.GBK=function(a){return new D(a)};O.GBK=function(a){return new w(a, +a=String(a);c=a.length;for(var f=0,e=[];fk||57343=k)e.push(65533);else if(55296<=k&&56319>=k)if(f===c-1)e.push(65533);else{var h=a.charCodeAt(f+1);56320<=h&&57343>=h?(e.push(65536+((k&1023)<<10)+(h&1023)),f+=1):e.push(65533)}f+=1}a=new d(e);for(c=[];;){f=a.read();if(-1===f)break;f=this._encoder.handler(a,f);if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}if(!this._do_not_flush){for(;;){f=this._encoder.handler(a, +a.read());if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}this._encoder=null}return new Uint8Array(c)};O["UTF-8"]=function(a){return new C(a)};H["UTF-8"]=function(a){return new x(a)};(function(){"encoding-indexes"in g&&M.forEach(function(a){"Legacy single-byte encodings"===a.heading&&a.encodings.forEach(function(a){a=a.name;var b=f(a.toLowerCase());H[a]=function(a){return new q(b,a)};O[a]=function(a){return new A(b,a)}})})})();H.GBK=function(a){return new D(a)};O.GBK=function(a){return new w(a, !0)};O.gb18030=function(a){return new w(a)};H.gb18030=function(a){return new D(a)};O.Big5=function(a){return new y(a)};H.Big5=function(a){return new v(a)};O["EUC-JP"]=function(a){return new F(a)};H["EUC-JP"]=function(a){return new z(a)};O["ISO-2022-JP"]=function(a){return new G(a)};H["ISO-2022-JP"]=function(a){return new B(a)};O.Shift_JIS=function(a){return new I(a)};H.Shift_JIS=function(a){return new E(a)};O["EUC-KR"]=function(a){return new N(a)};H["EUC-KR"]=function(a){return new t(a)};O["UTF-16BE"]= -function(a){return new ea(!0,a)};H["UTF-16BE"]=function(a){return new Q(!0,a)};O["UTF-16LE"]=function(a){return new ea(!1,a)};H["UTF-16LE"]=function(a){return new Q(!1,a)};O["x-user-defined"]=function(a){return new T(a)};H["x-user-defined"]=function(a){return new P(a)};h.TextEncoder||(h.TextEncoder=u);h.TextDecoder||(h.TextDecoder=r);"undefined"!==typeof module&&module.exports&&(module.exports={TextEncoder:h.TextEncoder,TextDecoder:h.TextDecoder,EncodingIndexes:h["encoding-indexes"]})})(this||{}); -(function e$jscomp$0(a,b,c){function d(e,k){if(!b[e]){if(!a[e]){var l="function"==typeof require&&require;if(!k&&l)return l(e,!0);if(g)return g(e,!0);k=Error("Cannot find module '"+e+"'");throw k.code="MODULE_NOT_FOUND",k;}k=b[e]={exports:{}};a[e][0].call(k.exports,function(b){var c=a[e][1][b];return d(c?c:b)},k,k.exports,e$jscomp$0,a,b,c)}return b[e].exports}for(var g="function"==typeof require&&require,k=0;k=b.cmp(m)||0<=b.cmp(l));l=a;m=f;b=b.toRed(d.red(m)).redPow(l).fromRed();for(l=g;0!==b.cmp(k);)l=b,b=b.mul(b).mod(m);b=0===l.cmp(m.sub(k))?g:l}while(0===b.cmp(g));a=b.sub(k).gcd(f);return{p:a,q:f.div(a)}}},{"asn1.js":5,crypto:74}],4:[function(h,a,b){(function(b){function c(a){return b(a,"hex").toString("base64").replace(/\+/g, -"-").replace(/\//g,"_").replace(/=/g,"")}function g(a,b){b=b||{};Object.keys(b).forEach(function(c){a[c]=b[c]});return a}function k(a){return 1===a.length%2?"0"+a:a}function e(a,b){a=q.decode(a,"der");var f=k(a.e.toString(16));a={kty:"RSA",n:p(a.n),e:c(f)};return g(a,b)}function l(a,b){a=y.decode(a,"der");var f=k(a.e.toString(16));a={kty:"RSA",n:p(a.n),e:c(f),d:p(a.d),p:p(a.p),q:p(a.q),dp:p(a.dp),dq:p(a.dq),qi:p(a.qi)};return g(a,b)}function n(a,b){a=D.decode(a,"der");return e(a.publicKey.data,b)} -function f(a,b){a=z.decode(a,"der");return l(a.privateKey.data,b)}function m(a){a=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(a);if(!a)return null;var b=!!a[1];return"PRIVATE"===a[2]?b?l:f:b?e:n}function p(a){return c(k(a.toString(16)))}function r(a){return/^[0-9]+$/.test(a)?new u.bignum(a,10):new u.bignum(b(a,"base64"))}var u=h("asn1.js"),x=h("./factor"),C=new u.bignum(1),q=u.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),A=u.define("AlgorithmIdentifier", +function(a){return new ea(!0,a)};H["UTF-16BE"]=function(a){return new Q(!0,a)};O["UTF-16LE"]=function(a){return new ea(!1,a)};H["UTF-16LE"]=function(a){return new Q(!1,a)};O["x-user-defined"]=function(a){return new T(a)};H["x-user-defined"]=function(a){return new P(a)};g.TextEncoder||(g.TextEncoder=u);g.TextDecoder||(g.TextDecoder=r);"undefined"!==typeof module&&module.exports&&(module.exports={TextEncoder:g.TextEncoder,TextDecoder:g.TextDecoder,EncodingIndexes:g["encoding-indexes"]})})(this||{}); +(function e$jscomp$0(a,b,c){function d(e,k){if(!b[e]){if(!a[e]){var l="function"==typeof require&&require;if(!k&&l)return l(e,!0);if(h)return h(e,!0);k=Error("Cannot find module '"+e+"'");throw k.code="MODULE_NOT_FOUND",k;}k=b[e]={exports:{}};a[e][0].call(k.exports,function(b){var c=a[e][1][b];return d(c?c:b)},k,k.exports,e$jscomp$0,a,b,c)}return b[e].exports}for(var h="function"==typeof require&&require,k=0;k=b.cmp(m)||0<=b.cmp(l));l=a;m=f;b=b.toRed(d.red(m)).redPow(l).fromRed();for(l=h;0!==b.cmp(k);)l=b,b=b.mul(b).mod(m);b=0===l.cmp(m.sub(k))?h:l}while(0===b.cmp(h));a=b.sub(k).gcd(f);return{p:a,q:f.div(a)}}},{"asn1.js":5,crypto:74}],4:[function(g,a,b){(function(b){function c(a){return b(a,"hex").toString("base64").replace(/\+/g, +"-").replace(/\//g,"_").replace(/=/g,"")}function h(a,b){b=b||{};Object.keys(b).forEach(function(c){a[c]=b[c]});return a}function k(a){return 1===a.length%2?"0"+a:a}function e(a,b){a=q.decode(a,"der");var f=k(a.e.toString(16));a={kty:"RSA",n:p(a.n),e:c(f)};return h(a,b)}function l(a,b){a=y.decode(a,"der");var f=k(a.e.toString(16));a={kty:"RSA",n:p(a.n),e:c(f),d:p(a.d),p:p(a.p),q:p(a.q),dp:p(a.dp),dq:p(a.dq),qi:p(a.qi)};return h(a,b)}function n(a,b){a=D.decode(a,"der");return e(a.publicKey.data,b)} +function f(a,b){a=z.decode(a,"der");return l(a.privateKey.data,b)}function m(a){a=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(a);if(!a)return null;var b=!!a[1];return"PRIVATE"===a[2]?b?l:f:b?e:n}function p(a){return c(k(a.toString(16)))}function r(a){return/^[0-9]+$/.test(a)?new u.bignum(a,10):new u.bignum(b(a,"base64"))}var u=g("asn1.js"),x=g("./factor"),C=new u.bignum(1),q=u.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),A=u.define("AlgorithmIdentifier", function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),D=u.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(A),this.key("publicKey").bitstr())}),w=u.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),v=u.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),y=u.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(w),this.key("n").int(), this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(v))}),z=u.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(w),this.key("algorithm").use(A),this.key("privateKey").bitstr())});a.exports={pem2jwk:function(a,c){a=a.toString().split(/(\r\n|\r|\n)+/g);a=a.filter(function(a){return 0!==a.trim().length});var f=m(a[0]);a=a.slice(1,-1).join("");return f(new b(a.replace(/[^\w\d\+\/=]+/g, -""),"base64"),c)},jwk2pem:function(a){var c;c={n:r(a.n),e:r(a.e),d:a.d&&r(a.d),p:a.p&&r(a.p),q:a.q&&r(a.q),dp:a.dp&&r(a.dp),dq:a.dq&&r(a.dq),qi:a.qi&&r(a.qi)};var f=!!c.d,e=f?"PRIVATE":"PUBLIC";a="-----BEGIN RSA "+e+" KEY-----\n";e="\n-----END RSA "+e+" KEY-----\n";b(0);if(f){if(!c.p){var d=x(c.e,c.d,c.n),f=d.p,d=d.q,g=c.d.mod(f.sub(C)),k=c.d.mod(d.sub(C)),m=d.invm(f);c={n:c.n,e:c.e,d:c.d,p:f,q:d,dp:g,dq:k,qi:m}}c.version="two-prime";c=y.encode(c,"der")}else c=q.encode(c,"der");c=c.toString("base64").match(/.{1,64}/g).join("\n"); -return a+c+e},BN:u.bignum}}).call(this,h("buffer").Buffer)},{"./factor":3,"asn1.js":5,buffer:65}],5:[function(h,a,b){b.bignum=h("bn.js");b.define=h("./asn1/api").define;b.base=h("./asn1/base");b.constants=h("./asn1/constants");b.decoders=h("./asn1/decoders");b.encoders=h("./asn1/encoders")},{"./asn1/api":6,"./asn1/base":8,"./asn1/constants":12,"./asn1/decoders":14,"./asn1/encoders":16,"bn.js":17}],6:[function(h,a,b){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=h("../asn1"), -g=h("inherits"),k=h("vm");b.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b=k.runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})");g(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a,b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder= -function(a){this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":5,inherits:1,vm:172}],7:[function(h,a,b){function c(a,b){g.call(this,b);k.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length=0,this.value=a.map(function(a){a instanceof d||(a=new d(a,b));this.length+=a.length; -return a},this);else if("number"===typeof a){if(!(0<=a&&255>=a))return b.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=k.byteLength(a);else if(k.isBuffer(a))this.value=a,this.length=a.length;else return b.error("Unsupported type: "+typeof a)}a=h("inherits");var g=h("../base").Reporter,k=h("buffer").Buffer;a(c,g);b.DecoderBuffer=c;c.prototype.save=function(){return{offset:this.offset}};c.prototype.restore=function(a){var b=new c(this.base); +""),"base64"),c)},jwk2pem:function(a){var c;c={n:r(a.n),e:r(a.e),d:a.d&&r(a.d),p:a.p&&r(a.p),q:a.q&&r(a.q),dp:a.dp&&r(a.dp),dq:a.dq&&r(a.dq),qi:a.qi&&r(a.qi)};var f=!!c.d,e=f?"PRIVATE":"PUBLIC";a="-----BEGIN RSA "+e+" KEY-----\n";e="\n-----END RSA "+e+" KEY-----\n";b(0);if(f){if(!c.p){var d=x(c.e,c.d,c.n),f=d.p,d=d.q,k=c.d.mod(f.sub(C)),h=c.d.mod(d.sub(C)),m=d.invm(f);c={n:c.n,e:c.e,d:c.d,p:f,q:d,dp:k,dq:h,qi:m}}c.version="two-prime";c=y.encode(c,"der")}else c=q.encode(c,"der");c=c.toString("base64").match(/.{1,64}/g).join("\n"); +return a+c+e},BN:u.bignum}}).call(this,g("buffer").Buffer)},{"./factor":3,"asn1.js":5,buffer:65}],5:[function(g,a,b){b.bignum=g("bn.js");b.define=g("./asn1/api").define;b.base=g("./asn1/base");b.constants=g("./asn1/constants");b.decoders=g("./asn1/decoders");b.encoders=g("./asn1/encoders")},{"./asn1/api":6,"./asn1/base":8,"./asn1/constants":12,"./asn1/decoders":14,"./asn1/encoders":16,"bn.js":17}],6:[function(g,a,b){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=g("../asn1"), +h=g("inherits"),k=g("vm");b.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b=k.runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})");h(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a,b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder= +function(a){this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":5,inherits:1,vm:172}],7:[function(g,a,b){function c(a,b){h.call(this,b);k.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length=0,this.value=a.map(function(a){a instanceof d||(a=new d(a,b));this.length+=a.length; +return a},this);else if("number"===typeof a){if(!(0<=a&&255>=a))return b.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=k.byteLength(a);else if(k.isBuffer(a))this.value=a,this.length=a.length;else return b.error("Unsupported type: "+typeof a)}a=g("inherits");var h=g("../base").Reporter,k=g("buffer").Buffer;a(c,h);b.DecoderBuffer=c;c.prototype.save=function(){return{offset:this.offset}};c.prototype.restore=function(a){var b=new c(this.base); b.offset=a.offset;b.length=this.offset;this.offset=a.offset;return b};c.prototype.isEmpty=function(){return this.offset===this.length};c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};c.prototype.skip=function(a,b){if(!(this.offset+a<=this.length))return this.error(b||"DecoderBuffer overrun");b=new c(this.base);b._reporterState=this._reporterState;b.offset=this.offset;b.length=this.offset+a;this.offset+= -a;return b};c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};b.EncoderBuffer=d;d.prototype.join=function(a,b){a||(a=new k(this.length));b||(b=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(c){c.join(a,b);b+=c.length}):("number"===typeof this.value?a[b]=this.value:"string"===typeof this.value?a.write(this.value,b):k.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":8,buffer:65,inherits:1}],8:[function(h, -a,b){b.Reporter=h("./reporter").Reporter;b.DecoderBuffer=h("./buffer").DecoderBuffer;b.EncoderBuffer=h("./buffer").EncoderBuffer;b.Node=h("./node")},{"./buffer":7,"./node":9,"./reporter":10}],9:[function(h,a,b){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null;c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.parent||(c.children=[],this._wrap())} -var d=h("../base").Reporter,g=h("../base").EncoderBuffer,k=h("minimalistic-assert");h="seq seqof set setof octstr bitstr objid bool gentime utctime null_ enum int ia5str".split(" ");var e="key obj use optional explicit implicit def choice any".split(" ").concat(h);a.exports=c;var l="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};l.forEach(function(c){b[c]=a[c]});var c= +a;return b};c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};b.EncoderBuffer=d;d.prototype.join=function(a,b){a||(a=new k(this.length));b||(b=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(c){c.join(a,b);b+=c.length}):("number"===typeof this.value?a[b]=this.value:"string"===typeof this.value?a.write(this.value,b):k.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":8,buffer:65,inherits:1}],8:[function(g, +a,b){b.Reporter=g("./reporter").Reporter;b.DecoderBuffer=g("./buffer").DecoderBuffer;b.EncoderBuffer=g("./buffer").EncoderBuffer;b.Node=g("./node")},{"./buffer":7,"./node":9,"./reporter":10}],9:[function(g,a,b){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null;c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.parent||(c.children=[],this._wrap())} +var d=g("../base").Reporter,h=g("../base").EncoderBuffer,k=g("minimalistic-assert");g="seq seqof set setof octstr bitstr objid bool gentime utctime null_ enum int ia5str".split(" ");var e="key obj use optional explicit implicit def choice any".split(" ").concat(g);a.exports=c;var l="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};l.forEach(function(c){b[c]=a[c]});var c= new this.constructor(b.parent);c._baseState=b;return c};c.prototype._wrap=function(){var a=this._baseState;e.forEach(function(b){this[b]=function(){var c=new this.constructor(this);a.children.push(c);return c[b].apply(c,arguments)}},this)};c.prototype._init=function(a){var b=this._baseState;k(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);k.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b= this._baseState,c=a.filter(function(a){return a instanceof this.constructor},this);a=a.filter(function(a){return!(a instanceof this.constructor)},this);0!==c.length&&(k(null===b.children),b.children=c,c.forEach(function(a){a._baseState.parent=this},this));0!==a.length&&(k(null===b.args),b.args=a,b.reverseArgs=a.map(function(a){if("object"!==typeof a||a.constructor!==Object)return a;var b={};Object.keys(a).forEach(function(c){c==(c|0)&&(c|=0);b[a[c]]=c});return b}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(a){c.prototype[a]= -function(){throw Error(a+" not implemented for encoding: "+this._baseState.enc);}});h.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);k(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){var b=this._baseState;k(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;k(null===b["default"]);b["default"]=a;b.optional= +function(){throw Error(a+" not implemented for encoding: "+this._baseState.enc);}});g.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);k(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){var b=this._baseState;k(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;k(null===b["default"]);b["default"]=a;b.optional= !0;return this};c.prototype.explicit=function(a){var b=this._baseState;k(null===b.explicit&&null===b.implicit);b.explicit=a;return this};c.prototype.implicit=function(a){var b=this._baseState;k(null===b.explicit&&null===b.implicit);b.implicit=a;return this};c.prototype.obj=function(){var a=this._baseState,b=Array.prototype.slice.call(arguments);a.obj=!0;0!==b.length&&this._useArgs(b);return this};c.prototype.key=function(a){var b=this._baseState;k(null===b.key);b.key=a;return this};c.prototype.any= function(){this._baseState.any=!0;return this};c.prototype.choice=function(a){var b=this._baseState;k(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype._decode=function(a){var b=this._baseState;if(null===b.parent)return a.wrapResult(b.children[0]._decode(a));var c=b["default"],e=!0,d;null!==b.key&&(d=a.enterKey(b.key));if(b.optional&&(e=this._peekTag(a,null!==b.explicit?b.explicit:null!==b.implicit?b.implicit:b.tag||0),a.isError(e)))return e; -var g;b.obj&&e&&(g=a.enterObject());if(e){if(null!==b.explicit){var k=this._decodeTag(a,b.explicit);if(a.isError(k))return k;a=k}if(null===b.use&&null===b.choice){if(b.any)var l=a.save();k=this._decodeTag(a,null!==b.implicit?b.implicit:b.tag,b.any);if(a.isError(k))return k;b.any?c=a.raw(l):a=k}b.any||(c=null===b.choice?this._decodeGeneric(b.tag,a):this._decodeChoice(a));if(a.isError(c))return c;if(!b.any&&null===b.choice&&null!==b.children&&b.children.some(function(b){b._decode(a)}))return err}b.obj&& -e&&(c=a.leaveObject(g));null===b.key||null===c&&!0!==e||a.leaveKey(d,b.key,c);return c};c.prototype._decodeGeneric=function(a,b){var c=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,c.args[0]):"octstr"===a||"bitstr"===a||"ia5str"===a?this._decodeStr(b,a):"objid"===a&&c.args?this._decodeObjid(b,c.args[0],c.args[1]):"objid"===a?this._decodeObjid(b,null,null):"gentime"===a||"utctime"===a?this._decodeTime(b,a):"null_"===a?this._decodeNull(b):"bool"===a?this._decodeBool(b): +var k;b.obj&&e&&(k=a.enterObject());if(e){if(null!==b.explicit){var h=this._decodeTag(a,b.explicit);if(a.isError(h))return h;a=h}if(null===b.use&&null===b.choice){if(b.any)var l=a.save();h=this._decodeTag(a,null!==b.implicit?b.implicit:b.tag,b.any);if(a.isError(h))return h;b.any?c=a.raw(l):a=h}b.any||(c=null===b.choice?this._decodeGeneric(b.tag,a):this._decodeChoice(a));if(a.isError(c))return c;if(!b.any&&null===b.choice&&null!==b.children&&b.children.some(function(b){b._decode(a)}))return err}b.obj&& +e&&(c=a.leaveObject(k));null===b.key||null===c&&!0!==e||a.leaveKey(d,b.key,c);return c};c.prototype._decodeGeneric=function(a,b){var c=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,c.args[0]):"octstr"===a||"bitstr"===a||"ia5str"===a?this._decodeStr(b,a):"objid"===a&&c.args?this._decodeObjid(b,c.args[0],c.args[1]):"objid"===a?this._decodeObjid(b,null,null):"gentime"===a||"utctime"===a?this._decodeTime(b,a):"null_"===a?this._decodeNull(b):"bool"===a?this._decodeBool(b): "int"===a||"enum"===a?this._decodeInt(b,c.args&&c.args[0]):null!==c.use?this._getUse(c.use,b._reporterState.obj)._decode(b):b.error("unknown tag: "+a)};c.prototype._getUse=function(a,b){var c=this._baseState;c.useDecoder=this._use(a,b);k(null===c.useDecoder._baseState.parent);c.useDecoder=c.useDecoder._baseState.children[0];c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit);return c.useDecoder};c.prototype._decodeChoice=function(a){var b= -this._baseState,c=null,e=!1;Object.keys(b.choice).some(function(f){var d=a.save(),k=b.choice[f];try{var g=k._decode(a);if(a.isError(g))return!1;c={type:f,value:g};e=!0}catch(q){return a.restore(d),!1}return!0},this);return e?c:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new g(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a,b,c),void 0!==a&&!this._skipDefault(a,b,c))return a}; -c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var k=null,g=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.children)k=f.children.map(function(c){if("null_"===c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var f= +this._baseState,c=null,e=!1;Object.keys(b.choice).some(function(f){var d=a.save(),k=b.choice[f];try{var h=k._decode(a);if(a.isError(h))return!1;c={type:f,value:h};e=!0}catch(q){return a.restore(d),!1}return!0},this);return e?c:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a,b,c),void 0!==a&&!this._skipDefault(a,b,c))return a}; +c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var k=null,h=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.children)k=f.children.map(function(c){if("null_"===c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var f= b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(f);return c},this).filter(function(a){return a}),k=this._createEncoderBuffer(k);else if("seqof"===f.tag||"setof"===f.tag){if(!f.args||1!==f.args.length)return b.error("Too many args for : "+f.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array");k=this.clone();k._baseState.implicit=null;k=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0], -a)._encode(c,b)},k))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(k=this._encodePrimitive(f.tag,a),g=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var m=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,g,m,k))}null!==f.explicit&&(e=this._encodeComposite(f.explicit,!1,"context",e));return e};c.prototype._encodeChoice=function(a,b){var c=this._baseState,f=c.choice[a.type]; +a)._encode(c,b)},k))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(k=this._encodePrimitive(f.tag,a),h=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var m=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,h,m,k))}null!==f.explicit&&(e=this._encodeComposite(f.explicit,!1,"context",e));return e};c.prototype._encodeChoice=function(a,b){var c=this._baseState,f=c.choice[a.type]; f||k(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return f._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if("octstr"===a||"bitstr"===a||"ia5str"===a)return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a||"utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b, -c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);throw Error("Unsupported tag: "+a);}},{"../base":8,"minimalistic-assert":2}],10:[function(h,a,b){function c(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}h=h("inherits");b.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.leaveKey=function(a,b,c){var e=this._reporterState; +c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);throw Error("Unsupported tag: "+a);}},{"../base":8,"minimalistic-assert":2}],10:[function(g,a,b){function c(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}g=g("inherits");b.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.leaveKey=function(a,b,c){var e=this._reporterState; e.path=e.path.slice(0,a-1);null!==e.obj&&(e.obj[b]=c)};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),a.message||a,a.stack);if(!b.options.partial)throw a;c||b.errors.push(a);return a};c.prototype.wrapResult=function(a){var b= -this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a};h(d,Error);d.prototype.rethrow=function(a){this.message=a+" at: "+(this.path||"(shallow)");Error.captureStackTrace(this,d);return this}},{inherits:1}],11:[function(h,a,b){h=h("../constants");b.tagClass={0:"universal",1:"application",2:"context",3:"private"};b.tagClassByName=h._reverse(b.tagClass);b.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real", -10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};b.tagByName=h._reverse(b.tag)},{"../constants":12}],12:[function(h,a,b){b._reverse=function(a){var b={};Object.keys(a).forEach(function(c){(c|0)==c&&(c|=0);b[a[c]]=c});return b};b.der=h("./der")},{"./der":11}],13:[function(h,a,b){function c(a){this.enc="der";this.name= -a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function g(a,b){var c=a.readUInt8(b);if(a.isError(c))return c;var f=n.tagClass[c>>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d;c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:n.tag[c]}}function k(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4<=b)return a.error("length octect is too long"); -for(var e=f=0;e>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d;c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:n.tag[c]}}function k(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4<=b)return a.error("length octect is too long"); +for(var e=f=0;eb?2E3+b:1900+b;else return this.error("Decoding "+b+" time is not supported yet");return Date.UTC(b,c-1,f,e,d,a,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){var c=0,f=a.raw();if(3< -f.length)return new l(f);for(;!a.isEmpty();){c<<=8;f=a.readUInt8();if(a.isError(f))return f;c|=f}b&&(c=b[c]||c);return c};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":5,inherits:1}],14:[function(h,a,b){b.der=h("./der")},{"./der":13}],15:[function(h,a,b){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function g(a){return 10>=a?"0"+a:a}b=h("inherits"); -var k=h("buffer").Buffer;h=h("../../asn1");var e=h.base,l=h.bignum,n=h.constants.der;a.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a,b).join()};b(d,e.Node);d.prototype._encodeComposite=function(a,b,c,e){a:{var f=a;a=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(n.tagByName.hasOwnProperty(f))f=n.tagByName[f];else if("number"!==typeof f||(f|0)!==f){a=a.error("Unknown tag: "+f);break a}31<=f?a=a.error("Multi-octet tag encoding unsupported"):(b||(f|=32),a=f|=n.tagClassByName[c|| +f.length)return new l(f);for(;!a.isEmpty();){c<<=8;f=a.readUInt8();if(a.isError(f))return f;c|=f}b&&(c=b[c]||c);return c};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":5,inherits:1}],14:[function(g,a,b){b.der=g("./der")},{"./der":13}],15:[function(g,a,b){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function h(a){return 10>=a?"0"+a:a}b=g("inherits"); +var k=g("buffer").Buffer;g=g("../../asn1");var e=g.base,l=g.bignum,n=g.constants.der;a.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a,b).join()};b(d,e.Node);d.prototype._encodeComposite=function(a,b,c,e){a:{var f=a;a=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(n.tagByName.hasOwnProperty(f))f=n.tagByName[f];else if("number"!==typeof f||(f|0)!==f){a=a.error("Unknown tag: "+f);break a}31<=f?a=a.error("Multi-octet tag encoding unsupported"):(b||(f|=32),a=f|=n.tagClassByName[c|| "universal"]<<6)}if(128>e.length)return b=new k(2),b[0]=a,b[1]=e.length,this._createEncoderBuffer([b,e]);f=1;for(c=e.length;256<=c;c>>=8)f++;b=new k(2+f);b[0]=a;b[1]=128|f;c=1+f;for(a=e.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,e])};d.prototype._encodeStr=function(a,b){return"octstr"===b?this._createEncoderBuffer(a):"bitstr"===b?this._createEncoderBuffer([a.unused|0,a.data]):"ia5str"===b?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: "+b+" unsupported")}; d.prototype._encodeObjid=function(a,b,c){if("string"===typeof a){if(!b)return this.reporter.error("string objid given, but no values map found");if(!b.hasOwnProperty(a))return this.reporter.error("objid not found in values map");a=b[a].split(/\s+/g);for(b=0;b>=7)f++;var f=new k(f),e=f.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],f[e--]=c&127;0<(c>>=7);)f[e--]=128|c&127;return this._createEncoderBuffer(f)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[a.getFullYear(),g(a.getUTCMonth()+1),g(a.getUTCDate()),g(a.getUTCHours()),g(a.getUTCMinutes()),g(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[a.getFullYear()%100,g(a.getUTCMonth()+1),g(a.getUTCDate()), -g(a.getUTCHours()),g(a.getUTCMinutes()),g(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}null!== +a.splice(0,2,40*a[0]+a[1])}var f=0;for(b=0;b>=7)f++;var f=new k(f),e=f.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],f[e--]=c&127;0<(c>>=7);)f[e--]=128|c&127;return this._createEncoderBuffer(f)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[a.getFullYear(),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[a.getFullYear()%100,h(a.getUTCMonth()+1),h(a.getUTCDate()), +h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}null!== l&&a instanceof l&&(b=a.toArray(),!1===a.sign&&b[0]&128&&b.unshift(0),a=new k(b));if(k.isBuffer(a)){var c=a.length;0===a.length&&c++;c=new k(c);a.copy(c);0===a.length&&(c[0]=0);return this._createEncoderBuffer(c)}if(128>a)return this._createEncoderBuffer(a);if(256>a)return this._createEncoderBuffer([0,a]);c=1;for(b=a;256<=b;b>>=8)c++;c=Array(c);for(b=c.length-1;0<=b;b--)c[b]=a&255,a>>=8;c[0]&128&&c.unshift(0);return this._createEncoderBuffer(new k(c))};d.prototype._encodeBool=function(a){return this._createEncoderBuffer(a? -255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var f=this._baseState;if(null===f["default"])return!1;a=a.join();void 0===f.defaultBuffer&&(f.defaultBuffer=this._encodeValue(f["default"],b,c).join());if(a.length!==f.defaultBuffer.length)return!1;for(b=0;b=e?f|e-49+10:17<=e&&22>=e?f|e-17+10:f|e&15;return f}function h(a,b,c,f){var e=0;for(c=Math.min(a.length,c);b=e?f|e-49+10:17<=e&&22>=e?f|e-17+10:f|e&15;return f}function g(a,b,c,f){var e=0;for(c=Math.min(a.length,c);ba&&(this.sign=!0,a=-a),67108864>a?(this.words=[a&67108863],this.length=1):(this.words=[a&67108863,a/67108864&67108863],this.length=2);else{if("object"===typeof a)return this._initArray(a,b,f);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");f=0;"-"=== a[0]&&f++;16===b?this._parseHex(a,f):this._parseBase(a,b,f);"-"===a[0]&&(this.sign=!0);this.strip()}};e.prototype._initArray=function(a,b,f){c("number"===typeof a.length);this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-e&67108863;e+=24;26<=e&&(e-=26,f++)}else if("le"===f)for(f=b=0;b>>26-e&67108863,e+=24,26<=e&&(e-=26,f++);return this.strip()};e.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6){var d=l(a,c,c+6);this.words[e]|=d<>>26-f&4194303;f+=24;26<=f&&(f-=26,e++)}c+6!==b&&(d=l(a,b,c+6),this.words[e]|=d<>>26-f&4194303); -this.strip()};e.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,e=1;67108863>=e;e*=b)f++;f--;for(var e=e/b|0,d=a.length-c,k=d%f,d=Math.min(d,d-k)+c,g=c;gthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==k){f=1;c=h(a,g,a.length,b);for(g=0;gthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b=e;e*=b)f++;f--;for(var e=e/b|0,d=a.length-c,k=d%f,d=Math.min(d,d-k)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==k){f=1;c=g(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215,f=0!==e||d!==this.length-1?q[6-g.length]+g+f:g+f;a+=2;26<=a&&(a-=26,d--)}for(0!==e&&(f=e.toString(16)+f);0!==f.length%b;)f="0"+f;this.sign&&(f="-"+f);return f}if(a===(a|0)&&2<=a&&36>=a){b=A[a];e=D[a];f="";d=this.clone();for(d.sign=!1;0!==d.cmpn(0);)k=d.modn(e).toString(a),d=d.idivn(e),f=0!==d.cmpn(0)?q[b-k.length]+k+f:k+f;0===this.cmpn(0)&&(f="0"+f);this.sign&&(f="-"+f);return f}c(!1,"Base should be between 2 and 36")};e.prototype.toJSON= +this.words[d],h=((k<>>24-a&16777215,f=0!==e||d!==this.length-1?q[6-h.length]+h+f:h+f;a+=2;26<=a&&(a-=26,d--)}for(0!==e&&(f=e.toString(16)+f);0!==f.length%b;)f="0"+f;this.sign&&(f="-"+f);return f}if(a===(a|0)&&2<=a&&36>=a){b=A[a];e=D[a];f="";d=this.clone();for(d.sign=!1;0!==d.cmpn(0);)k=d.modn(e).toString(a),d=d.idivn(e),f=0!==d.cmpn(0)?q[b-k.length]+k+f:k+f;0===this.cmpn(0)&&(f="0"+f);this.sign&&(f="-"+f);return f}c(!1,"Base should be between 2 and 36")};e.prototype.toJSON= function(){return this.toString(16)};e.prototype.toArray=function(){this.strip();var a=Array(this.byteLength());a[0]=0;for(var b=this.clone(),c=0;0!==b.cmpn(0);c++){var f=b.andln(255);b.ishrn(8);a[a.length-c-1]=f}return a};e.prototype._countBits=function(a){return 33554432<=a?26:16777216<=a?25:8388608<=a?24:4194304<=a?23:2097152<=a?22:1048576<=a?21:524288<=a?20:262144<=a?19:131072<=a?18:65536<=a?17:32768<=a?16:16384<=a?15:8192<=a?14:4096<=a?13:2048<=a?12:1024<=a?11:512<=a?10:256<=a?9:128<=a?8:64<= a?7:32<=a?6:16<=a?5:8<=a?4:4<=a?3:2<=a?2:1<=a?1:0};e.prototype.bitLength=function(){var a;a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)};e.prototype.neg=function(){if(0===this.cmpn(0))return this.clone();var a=this.clone();a.sign=!this.sign;return a};e.prototype.ior=function(a){for(this.sign=this.sign||a.sign;this.lengtha.length?this.clone().ior(a):a.clone().ior(this)};e.prototype.iand=function(a){this.sign=this.sign&&a.sign;var b;b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};e.prototype.ixor=function(a){this.sign=this.sign||a.sign;var b;this.length>a.length?b= @@ -726,18 +726,18 @@ this:(b=a,a=this);for(var c=0;ca.length?c=this:(c=a,a=this);for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};e.prototype.isub=function(a){if(a.sign){a.sign=!1;var b=this.iadd(a);a.sign=!0;return b._normSign()}if(this.sign)return this.sign=!1,this.iadd(a),this.sign=!0,this._normSign();b=this.cmp(a);if(0===b)return this.sign=!1,this.length=1,this.words[0]= 0,this;var c;0>26,this.words[e]=b&67108863;for(;0!==f&&e>26,this.words[e]=b&67108863;if(0===f&&e>>26,c=c&67108863,d=Math.min(f,a.length-1),k=Math.max(0,f-this.length+1);k<=d;k++)var g=(this.words[f-k]|0)*(a.words[k]|0),m=g&67108863,e=e+(g/67108864|0)|0,m=m+c|0,c=m&67108863,e=e+(m>>>26)|0;b.words[f]=c;c=e}0!==c?b.words[f]=c:b.length--;return b.strip()};e.prototype._bigMulTo=function(a,b){b.sign=a.sign!==this.sign;b.length=this.length+a.length;for(var c=0,f=0,e=0;e>>26)|0,f=f+(d>>>26),d=d&67108863;b.words[e]=c;c=d}0!==c?b.words[e]=c:b.length--;return b.strip()};e.prototype.mulTo=function(a,b){return 63>this.length+a.length?this._smallMulTo(a,b):this._bigMulTo(a,b)};e.prototype.mul=function(a){var b=new e(null);b.words=Array(this.length+a.length);return this.mulTo(a,b)};e.prototype.imul=function(a){if(0===this.cmpn(0)||0===a.cmpn(0))return this.words[0]= -0,this.length=1,this;var b=this.length,c=a.length;this.sign=a.sign!==this.sign;this.length+=a.length;this.words[this.length-1]=0;for(var f=this.length-2;0<=f;f--){for(var e=0,d=0,k=Math.min(f,c-1),g=Math.max(0,f-b+1);g<=k;g++)var m=f-g,m=this.words[m]*a.words[g],l=m&67108863,e=e+(m/67108864|0),l=l+d,d=l&67108863,e=e+(l>>>26);this.words[f]=d;this.words[f+1]+=e}e=0;for(m=1;m>>26;return this.strip()};e.prototype.imuln=function(a){c("number"=== +a.length;for(var c=0,f=0;f>>26,c=c&67108863,d=Math.min(f,a.length-1),k=Math.max(0,f-this.length+1);k<=d;k++)var h=(this.words[f-k]|0)*(a.words[k]|0),m=h&67108863,e=e+(h/67108864|0)|0,m=m+c|0,c=m&67108863,e=e+(m>>>26)|0;b.words[f]=c;c=e}0!==c?b.words[f]=c:b.length--;return b.strip()};e.prototype._bigMulTo=function(a,b){b.sign=a.sign!==this.sign;b.length=this.length+a.length;for(var c=0,f=0,e=0;e>>26)|0,f=f+(d>>>26),d=d&67108863;b.words[e]=c;c=d}0!==c?b.words[e]=c:b.length--;return b.strip()};e.prototype.mulTo=function(a,b){return 63>this.length+a.length?this._smallMulTo(a,b):this._bigMulTo(a,b)};e.prototype.mul=function(a){var b=new e(null);b.words=Array(this.length+a.length);return this.mulTo(a,b)};e.prototype.imul=function(a){if(0===this.cmpn(0)||0===a.cmpn(0))return this.words[0]= +0,this.length=1,this;var b=this.length,c=a.length;this.sign=a.sign!==this.sign;this.length+=a.length;this.words[this.length-1]=0;for(var f=this.length-2;0<=f;f--){for(var e=0,d=0,k=Math.min(f,c-1),h=Math.max(0,f-b+1);h<=k;h++)var m=f-h,m=this.words[m]*a.words[h],l=m&67108863,e=e+(m/67108864|0),l=l+d,d=l&67108863,e=e+(l>>>26);this.words[f]=d;this.words[f+1]+=e}e=0;for(m=1;m>>26;return this.strip()};e.prototype.imuln=function(a){c("number"=== typeof a);for(var b=0,f=0;f>26,b=b+(e/67108864|0),b=b+(d>>>26);this.words[f]=d&67108863}0!==b&&(this.words[f]=b,this.length++);return this};e.prototype.sqr=function(){return this.mul(this)};e.prototype.isqr=function(){return this.mul(this)};e.prototype.ishln=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;var f=67108863>>>26-b<<26-b;if(0!==b){for(var e=0,d=0;d>>26-b}e&&(this.words[d]=e,this.length++)}if(0!==a){for(d=this.length-1;0<=d;d--)this.words[d+a]=this.words[d];for(d=0;d>>e<d)for(this.length-=d,k=0;k=b);k--){var g=this.words[k];this.words[k]=d<<26-e|g>>>e;d=g&a}f&&0!==d&&(f.words[f.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);this.strip();return f?{hi:this,lo:f}:this};e.prototype.shln=function(a){return this.clone().ishln(a)};e.prototype.shrn=function(a){return this.clone().ishrn(a)};e.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a? +this.words[k+d];else this.words[0]=0,this.length=1;d=0;for(k=this.length-1;0<=k&&(0!==d||k>=b);k--){var h=this.words[k];this.words[k]=d<<26-e|h>>>e;d=h&a}f&&0!==d&&(f.words[f.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);this.strip();return f?{hi:this,lo:f}:this};e.prototype.shln=function(a){return this.clone().ishln(a)};e.prototype.shrn=function(a){return this.clone().ishrn(a)};e.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a? !1:!!(this.words[a]&1<>>b<a)return this.isubn(-a);if(this.sign){if(1===this.length&&this.words[0]a)return this.iaddn(-a);if(this.sign)return this.sign=!1,this.iaddn(a),this.sign=!0,this;this.words[0]-=a; for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};e.prototype.addn=function(a){return this.clone().iaddn(a)};e.prototype.subn=function(a){return this.clone().isubn(a)};e.prototype.iabs=function(){this.sign=!1;return this};e.prototype.abs=function(){return this.clone().iabs()};e.prototype._ishlnsubmul=function(a,b,f){var e=a.length+f,d;if(this.words.length>26)-(k/67108864|0),this.words[d+f]=e&67108863;for(;d>26,this.words[d+f]=e&67108863;if(0===k)return this.strip();c(-1===k);for(d=k=0;d>26,this.words[d]=e&67108863;this.sign=!0;return this.strip()};e.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,d=f.words[f.length- -1];for(a=0;33554432>d;a++)d<<=1;0!==a&&(f=f.shln(a),c.ishln(a),d=f.words[f.length-1]);var k=c.length-f.length,g;if("mod"!==b){g=new e(null);g.length=k+1;g.words=Array(g.length);for(var m=0;mthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]), +1];for(a=0;33554432>d;a++)d<<=1;0!==a&&(f=f.shln(a),c.ishln(a),d=f.words[f.length-1]);var k=c.length-f.length,h;if("mod"!==b){h=new e(null);h.length=k+1;h.words=Array(h.length);for(var m=0;mthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]), mod:null}:"mod"===b?{div:null,mod:new e(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new e(this.modn(a.words[0]))}:this._wordDiv(a,b)};e.prototype.div=function(a){return this.divmod(a,"div").div};e.prototype.mod=function(a){return this.divmod(a,"mod").mod};e.prototype.divRound=function(a){var b=this.divmod(a);if(0===b.mod.cmpn(0))return b.div;var c=b.div.sign?b.mod.isub(a):b.mod,f=a.shrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div:b.div.sign?b.div.isubn(1):b.div.iaddn(1)}; e.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,f=0,e=this.length-1;0<=e;e--)f=(b*f+this.words[e])%a;return f};e.prototype.idivn=function(a){c(67108863>=a);for(var b=0,f=this.length-1;0<=f;f--)b=this.words[f]+67108864*b,this.words[f]=b/a|0,b%=a;return this.strip()};e.prototype.divn=function(a){return this.clone().idivn(a)};e.prototype._egcd=function(a,b){c(!b.sign);c(0!==b.cmpn(0));var f=this,d=b.clone(),f=f.sign?f.mod(b):f.clone();for(b=new e(0);d.isEven();)d.ishrn(1);for(var k= d.clone();0this.n);b=b>>26;a.words[c]=f}0!==b&&(a.words[a.length++]=b);return a};e._prime=function(a){if(w[a])return w[a];var b;if("k256"===a)b=new m;else if("p224"===a)b=new p;else if("p192"===a)b=new r;else if("p25519"===a)b=new u;else throw Error("Unknown prime "+a);return w[a]=b};x.prototype._verify1=function(a){c(!a.sign,"red works only with positives");c(a.red,"red works only with red numbers")};x.prototype._verify2= function(a,b){c(!a.sign&&!b.sign,"red works only with positives");c(a.red&&a.red===b.red,"red works only with red numbers")};x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.mod(this.m)._forceRed(this)};x.prototype.neg=function(a){a=a.clone();a.sign=!a.sign;return a.iadd(this.m)._forceRed(this)};x.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};x.prototype.iadd=function(a,b){this._verify2(a, b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};x.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&&a.iadd(this.m);return a._forceRed(this)};x.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};x.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.shln(b))};x.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};x.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))}; -x.prototype.isqr=function(a){return this.imul(a,a)};x.prototype.sqr=function(a){return this.mul(a,a)};x.prototype.sqrt=function(a){if(0===a.cmpn(0))return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b){var b=this.m.add(new e(1)).ishrn(2),f=this.pow(a,b);return f}for(var d=this.m.subn(1),k=0;0!==d.cmpn(0)&&0===d.andln(1);)k++,d.ishrn(1);c(0!==d.cmpn(0));for(var b=(new e(1)).toRed(this),f=b.redNeg(),g=this.m.subn(1).ishrn(1),m=this.m.bitLength(),m=(new e(2*m*m)).toRed(this);0!==this.pow(m,g).cmp(f);)m.redIAdd(f); -g=this.pow(m,d);f=this.pow(a,d.addn(1).ishrn(1));a=this.pow(a,d);for(d=k;0!==a.cmp(b);){m=a;for(k=0;0!==m.cmp(b);k++)m=m.redSqr();c(ka.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};C.prototype.mul=function(a,b){if(0===a.cmpn(0)||0===b.cmpn(0))return(new e(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).ishrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)}; -C.prototype.invm=function(a){return this.imod(a.invm(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof a||a,this)},{}],18:[function(h,a,b){window.pemJwk=h("pem-jwk");a.exports=window.pemJwk},{"pem-jwk":4}],19:[function(h,a,b){arguments[4][5][0].apply(b,arguments)},{"./asn1/api":20,"./asn1/base":22,"./asn1/constants":26,"./asn1/decoders":28,"./asn1/encoders":31,"bn.js":34,dup:5}],20:[function(h,a,b){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=h("../asn1"), -g=h("inherits");b.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b;try{b=h("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(l){b=function(a){this._initNamed(a)}}g(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){a=a||"der";this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a, -b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder=function(a){a=a||"der";this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":19,inherits:119,vm:172}],21:[function(h,a,b){function c(a,b){g.call(this,b);k.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length= -0,this.value=a.map(function(a){a instanceof d||(a=new d(a,b));this.length+=a.length;return a},this);else if("number"===typeof a){if(!(0<=a&&255>=a))return b.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=k.byteLength(a);else if(k.isBuffer(a))this.value=a,this.length=a.length;else return b.error("Unsupported type: "+typeof a)}a=h("inherits");var g=h("../base").Reporter,k=h("buffer").Buffer;a(c,g);b.DecoderBuffer=c;c.prototype.save= -function(){return{offset:this.offset,reporter:g.prototype.save.call(this)}};c.prototype.restore=function(a){var b=new c(this.base);b.offset=a.offset;b.length=this.offset;this.offset=a.offset;g.prototype.restore.call(this,a.reporter);return b};c.prototype.isEmpty=function(){return this.offset===this.length};c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};c.prototype.skip=function(a,b){if(!(this.offset+ +C.prototype.invm=function(a){return this.imod(a.invm(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof a||a,this)},{}],18:[function(g,a,b){window.pemJwk=g("pem-jwk");a.exports=window.pemJwk},{"pem-jwk":4}],19:[function(g,a,b){arguments[4][5][0].apply(b,arguments)},{"./asn1/api":20,"./asn1/base":22,"./asn1/constants":26,"./asn1/decoders":28,"./asn1/encoders":31,"bn.js":34,dup:5}],20:[function(g,a,b){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=g("../asn1"), +h=g("inherits");b.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b;try{b=g("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(l){b=function(a){this._initNamed(a)}}h(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){a=a||"der";this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a, +b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder=function(a){a=a||"der";this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":19,inherits:119,vm:172}],21:[function(g,a,b){function c(a,b){h.call(this,b);k.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length= +0,this.value=a.map(function(a){a instanceof d||(a=new d(a,b));this.length+=a.length;return a},this);else if("number"===typeof a){if(!(0<=a&&255>=a))return b.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=k.byteLength(a);else if(k.isBuffer(a))this.value=a,this.length=a.length;else return b.error("Unsupported type: "+typeof a)}a=g("inherits");var h=g("../base").Reporter,k=g("buffer").Buffer;a(c,h);b.DecoderBuffer=c;c.prototype.save= +function(){return{offset:this.offset,reporter:h.prototype.save.call(this)}};c.prototype.restore=function(a){var b=new c(this.base);b.offset=a.offset;b.length=this.offset;this.offset=a.offset;h.prototype.restore.call(this,a.reporter);return b};c.prototype.isEmpty=function(){return this.offset===this.length};c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};c.prototype.skip=function(a,b){if(!(this.offset+ a<=this.length))return this.error(b||"DecoderBuffer overrun");b=new c(this.base);b._reporterState=this._reporterState;b.offset=this.offset;b.length=this.offset+a;this.offset+=a;return b};c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};b.EncoderBuffer=d;d.prototype.join=function(a,b){a||(a=new k(this.length));b||(b=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(c){c.join(a,b);b+=c.length}):("number"===typeof this.value?a[b]= -this.value:"string"===typeof this.value?a.write(this.value,b):k.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":22,buffer:65,inherits:119}],22:[function(h,a,b){arguments[4][8][0].apply(b,arguments)},{"./buffer":21,"./node":23,"./reporter":24,dup:8}],23:[function(h,a,b){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null; -c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.contains=null;c.parent||(c.children=[],this._wrap())}var d=h("../base").Reporter,g=h("../base").EncoderBuffer,k=h("../base").DecoderBuffer,e=h("minimalistic-assert");h="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var l="key obj use optional explicit implicit def choice any contains".split(" ").concat(h); +this.value:"string"===typeof this.value?a.write(this.value,b):k.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":22,buffer:65,inherits:119}],22:[function(g,a,b){arguments[4][8][0].apply(b,arguments)},{"./buffer":21,"./node":23,"./reporter":24,dup:8}],23:[function(g,a,b){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null; +c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.contains=null;c.parent||(c.children=[],this._wrap())}var d=g("../base").Reporter,h=g("../base").EncoderBuffer,k=g("../base").DecoderBuffer,e=g("minimalistic-assert");g="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var l="key obj use optional explicit implicit def choice any contains".split(" ").concat(g); a.exports=c;var n="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};n.forEach(function(c){b[c]=a[c]});var c=new this.constructor(b.parent);c._baseState=b;return c};c.prototype._wrap=function(){var a=this._baseState;l.forEach(function(b){this[b]=function(){var c=new this.constructor(this);a.children.push(c);return c[b].apply(c,arguments)}},this)};c.prototype._init= function(a){var b=this._baseState;e(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);e.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b=this._baseState,c=a.filter(function(a){return a instanceof this.constructor},this);a=a.filter(function(a){return!(a instanceof this.constructor)},this);0!==c.length&&(e(null===b.children),b.children=c,c.forEach(function(a){a._baseState.parent=this}, this));0!==a.length&&(e(null===b.args),b.args=a,b.reverseArgs=a.map(function(a){if("object"!==typeof a||a.constructor!==Object)return a;var b={};Object.keys(a).forEach(function(c){c==(c|0)&&(c|=0);b[a[c]]=c});return b}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(a){c.prototype[a]=function(){throw Error(a+" not implemented for encoding: "+ -this._baseState.enc);}});h.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);e(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){e(a);var b=this._baseState;e(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;e(null===b["default"]);b["default"]=a;b.optional=!0;return this};c.prototype.explicit=function(a){var b= +this._baseState.enc);}});g.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);e(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){e(a);var b=this._baseState;e(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;e(null===b["default"]);b["default"]=a;b.optional=!0;return this};c.prototype.explicit=function(a){var b= this._baseState;e(null===b.explicit&&null===b.implicit);b.explicit=a;return this};c.prototype.implicit=function(a){var b=this._baseState;e(null===b.explicit&&null===b.implicit);b.implicit=a;return this};c.prototype.obj=function(){var a=this._baseState,b=Array.prototype.slice.call(arguments);a.obj=!0;0!==b.length&&this._useArgs(b);return this};c.prototype.key=function(a){var b=this._baseState;e(null===b.key);b.key=a;return this};c.prototype.any=function(){this._baseState.any=!0;return this};c.prototype.choice= -function(a){var b=this._baseState;e(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype.contains=function(a){var b=this._baseState;e(null===b.use);b.contains=a;return this};c.prototype._decode=function(a,b){var c=this._baseState;if(null===c.parent)return a.wrapResult(c.children[0]._decode(a,b));var f=c["default"],e=!0,d=null;null!==c.key&&(d=a.enterKey(c.key));if(c.optional){var g=null;null!==c.explicit?g=c.explicit:null!==c.implicit?g= -c.implicit:null!==c.tag&&(g=c.tag);if(null!==g||c.any){if(e=this._peekTag(a,g,c.any),a.isError(e))return e}else{var m=a.save();try{null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b),e=!0}catch(w){e=!1}a.restore(m)}}var l;c.obj&&e&&(l=a.enterObject());if(e){if(null!==c.explicit){g=this._decodeTag(a,c.explicit);if(a.isError(g))return g;a=g}g=a.offset;if(null===c.use&&null===c.choice){c.any&&(m=a.save());var h=this._decodeTag(a,null!==c.implicit?c.implicit:c.tag,c.any);if(a.isError(h))return h; -c.any?f=a.raw(m):a=h}b&&b.track&&null!==c.tag&&b.track(a.path(),g,a.length,"tagged");b&&b.track&&null!==c.tag&&b.track(a.path(),a.offset,a.length,"content");c.any||(f=null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b));if(a.isError(f))return f;c.any||null!==c.choice||null===c.children||c.children.forEach(function(c){c._decode(a,b)});!c.contains||"octstr"!==c.tag&&"bitstr"!==c.tag||(f=new k(f),f=this._getUse(c.contains,a._reporterState.obj)._decode(f,b))}c.obj&&e&&(f=a.leaveObject(l)); +function(a){var b=this._baseState;e(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype.contains=function(a){var b=this._baseState;e(null===b.use);b.contains=a;return this};c.prototype._decode=function(a,b){var c=this._baseState;if(null===c.parent)return a.wrapResult(c.children[0]._decode(a,b));var f=c["default"],e=!0,d=null;null!==c.key&&(d=a.enterKey(c.key));if(c.optional){var h=null;null!==c.explicit?h=c.explicit:null!==c.implicit?h= +c.implicit:null!==c.tag&&(h=c.tag);if(null!==h||c.any){if(e=this._peekTag(a,h,c.any),a.isError(e))return e}else{var m=a.save();try{null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b),e=!0}catch(w){e=!1}a.restore(m)}}var l;c.obj&&e&&(l=a.enterObject());if(e){if(null!==c.explicit){h=this._decodeTag(a,c.explicit);if(a.isError(h))return h;a=h}h=a.offset;if(null===c.use&&null===c.choice){c.any&&(m=a.save());var g=this._decodeTag(a,null!==c.implicit?c.implicit:c.tag,c.any);if(a.isError(g))return g; +c.any?f=a.raw(m):a=g}b&&b.track&&null!==c.tag&&b.track(a.path(),h,a.length,"tagged");b&&b.track&&null!==c.tag&&b.track(a.path(),a.offset,a.length,"content");c.any||(f=null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b));if(a.isError(f))return f;c.any||null!==c.choice||null===c.children||c.children.forEach(function(c){c._decode(a,b)});!c.contains||"octstr"!==c.tag&&"bitstr"!==c.tag||(f=new k(f),f=this._getUse(c.contains,a._reporterState.obj)._decode(f,b))}c.obj&&e&&(f=a.leaveObject(l)); null===c.key||null===f&&!0!==e?null!==d&&a.exitKey(d):a.leaveKey(d,c.key,f);return f};c.prototype._decodeGeneric=function(a,b,c){var f=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,f.args[0],c):/str$/.test(a)?this._decodeStr(b,a,c):"objid"===a&&f.args?this._decodeObjid(b,f.args[0],f.args[1],c):"objid"===a?this._decodeObjid(b,null,null,c):"gentime"===a||"utctime"===a?this._decodeTime(b,a,c):"null_"===a?this._decodeNull(b,c):"bool"===a?this._decodeBool(b, c):"objDesc"===a?this._decodeStr(b,a,c):"int"===a||"enum"===a?this._decodeInt(b,f.args&&f.args[0],c):null!==f.use?this._getUse(f.use,b._reporterState.obj)._decode(b,c):b.error("unknown tag: "+a)};c.prototype._getUse=function(a,b){var c=this._baseState;c.useDecoder=this._use(a,b);e(null===c.useDecoder._baseState.parent);c.useDecoder=c.useDecoder._baseState.children[0];c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit);return c.useDecoder}; -c.prototype._decodeChoice=function(a,b){var c=this._baseState,f=null,e=!1;Object.keys(c.choice).some(function(d){var k=a.save(),g=c.choice[d];try{var m=g._decode(a,b);if(a.isError(m))return!1;f={type:d,value:m};e=!0}catch(D){return a.restore(k),!1}return!0},this);return e?f:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new g(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a, -b,c),void 0!==a&&!this._skipDefault(a,b,c))return a};c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var k=null,g=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.contains)k=this._getUse(f.contains,c)._encode(a,b),g=!0;else if(f.children)k=f.children.map(function(c){if("null_"=== +c.prototype._decodeChoice=function(a,b){var c=this._baseState,f=null,e=!1;Object.keys(c.choice).some(function(d){var k=a.save(),h=c.choice[d];try{var m=h._decode(a,b);if(a.isError(m))return!1;f={type:d,value:m};e=!0}catch(D){return a.restore(k),!1}return!0},this);return e?f:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a, +b,c),void 0!==a&&!this._skipDefault(a,b,c))return a};c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var k=null,h=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.contains)k=this._getUse(f.contains,c)._encode(a,b),h=!0;else if(f.children)k=f.children.map(function(c){if("null_"=== c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var f=b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(f);return c},this).filter(function(a){return a}),k=this._createEncoderBuffer(k);else if("seqof"===f.tag||"setof"===f.tag){if(!f.args||1!==f.args.length)return b.error("Too many args for : "+f.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array"); -k=this.clone();k._baseState.implicit=null;k=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0],a)._encode(c,b)},k))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(k=this._encodePrimitive(f.tag,a),g=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var m=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,g,m,k))}null!==f.explicit&&(e= +k=this.clone();k._baseState.implicit=null;k=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0],a)._encode(c,b)},k))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(k=this._encodePrimitive(f.tag,a),h=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var m=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,h,m,k))}null!==f.explicit&&(e= this._encodeComposite(f.explicit,!1,"context",e));return e};c.prototype._encodeChoice=function(a,b){var c=this._baseState,f=c.choice[a.type];f||e(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return f._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if(/str$/.test(a))return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a|| -"utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b,c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);if("objDesc"===a)return this._encodeStr(b,a);throw Error("Unsupported tag: "+a);};c.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)};c.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(a)}},{"../base":22,"minimalistic-assert":125}],24:[function(h,a,b){function c(a){this._reporterState= -{obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}h=h("inherits");b.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.save=function(){var a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}};c.prototype.restore=function(a){var b=this._reporterState;b.obj=a.obj;b.path=b.path.slice(0,a.pathLen)};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.exitKey=function(a){var b=this._reporterState; +"utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b,c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);if("objDesc"===a)return this._encodeStr(b,a);throw Error("Unsupported tag: "+a);};c.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)};c.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(a)}},{"../base":22,"minimalistic-assert":125}],24:[function(g,a,b){function c(a){this._reporterState= +{obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}g=g("inherits");b.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.save=function(){var a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}};c.prototype.restore=function(a){var b=this._reporterState;b.obj=a.obj;b.path=b.path.slice(0,a.pathLen)};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.exitKey=function(a){var b=this._reporterState; b.path=b.path.slice(0,a-1)};c.prototype.leaveKey=function(a,b,c){var e=this._reporterState;this.exitKey(a);null!==e.obj&&(e.obj[b]=c)};c.prototype.path=function(){return this._reporterState.path.join("/")};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+ -"]"}).join(""),a.message||a,a.stack);if(!b.options.partial)throw a;c||b.errors.push(a);return a};c.prototype.wrapResult=function(a){var b=this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a};h(d,Error);d.prototype.rethrow=function(a){this.message=a+" at: "+(this.path||"(shallow)");Error.captureStackTrace&&Error.captureStackTrace(this,d);if(!this.stack)try{throw Error(this.message);}catch(k){this.stack=k.stack}return this}},{inherits:119}],25:[function(h, -a,b){arguments[4][11][0].apply(b,arguments)},{"../constants":26,dup:11}],26:[function(h,a,b){arguments[4][12][0].apply(b,arguments)},{"./der":25,dup:12}],27:[function(h,a,b){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function g(a,b){var c=a.readUInt8(b);if(a.isError(c))return c;var f=n.tagClass[c>>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d; -c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:n.tag[c]}}function k(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d; +c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:n.tag[c]}}function k(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4a?2E3+a:1900+a;else return a.error("Decoding "+b+" time is not supported yet");return Date.UTC(a,b-1,f,e,d,c,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){a=a.raw();a=new l(a);b&&(a=b[a.toString(10)]||a);return a};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":19,inherits:119}],28:[function(h,a, -b){b.der=h("./der");b.pem=h("./pem")},{"./der":27,"./pem":29}],29:[function(h,a,b){function c(a){g.call(this,a);this.enc="pem"}b=h("inherits");var d=h("buffer").Buffer,g=h("./der");b(c,g);a.exports=c;c.prototype.decode=function(a,b){a=a.toString().split(/[\r\n]+/g);for(var c=b.label.toUpperCase(),e=/^-----(BEGIN|END) ([^-]+)-----$/,f=-1,k=-1,h=0;ha?"0"+a:a}b=h("inherits");var k=h("buffer").Buffer;h=h("../../asn1");var e=h.base,l=h.constants.der;a.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a, +12)|0,a=70>a?2E3+a:1900+a;else return a.error("Decoding "+b+" time is not supported yet");return Date.UTC(a,b-1,f,e,d,c,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){a=a.raw();a=new l(a);b&&(a=b[a.toString(10)]||a);return a};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":19,inherits:119}],28:[function(g,a, +b){b.der=g("./der");b.pem=g("./pem")},{"./der":27,"./pem":29}],29:[function(g,a,b){function c(a){h.call(this,a);this.enc="pem"}b=g("inherits");var d=g("buffer").Buffer,h=g("./der");b(c,h);a.exports=c;c.prototype.decode=function(a,b){a=a.toString().split(/[\r\n]+/g);for(var c=b.label.toUpperCase(),e=/^-----(BEGIN|END) ([^-]+)-----$/,f=-1,k=-1,g=0;ga?"0"+a:a}b=g("inherits");var k=g("buffer").Buffer;g=g("../../asn1");var e=g.base,l=g.constants.der;a.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a, b).join()};b(d,e.Node);d.prototype._encodeComposite=function(a,b,c,e){a:{var f=a;a=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(l.tagByName.hasOwnProperty(f))f=l.tagByName[f];else if("number"!==typeof f||(f|0)!==f){a=a.error("Unknown tag: "+f);break a}31<=f?a=a.error("Multi-octet tag encoding unsupported"):(b||(f|=32),a=f|=l.tagClassByName[c||"universal"]<<6)}if(128>e.length)return b=new k(2),b[0]=a,b[1]=e.length,this._createEncoderBuffer([b,e]);f=1;for(c=e.length;256<=c;c>>=8)f++; b=new k(2+f);b[0]=a;b[1]=128|f;c=1+f;for(a=e.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,e])};d.prototype._encodeStr=function(a,b){if("bitstr"===b)return this._createEncoderBuffer([a.unused|0,a.data]);if("bmpstr"===b){b=new k(2*a.length);for(var c=0;c>=7)e++;var e=new k(e),f=e.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],e[f--]=c&127;0<(c>>=7);)e[f--]=128|c&127;return this._createEncoderBuffer(e)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[g(a.getFullYear()),g(a.getUTCMonth()+1),g(a.getUTCDate()),g(a.getUTCHours()),g(a.getUTCMinutes()),g(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[g(a.getFullYear()%100),g(a.getUTCMonth()+1),g(a.getUTCDate()), -g(a.getUTCHours()),g(a.getUTCMinutes()),g(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}"number"=== +2,40*a[0]+a[1])}var e=0;for(b=0;b>=7)e++;var e=new k(e),f=e.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],e[f--]=c&127;0<(c>>=7);)e[f--]=128|c&127;return this._createEncoderBuffer(e)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[h(a.getFullYear()),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[h(a.getFullYear()%100),h(a.getUTCMonth()+1),h(a.getUTCDate()), +h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}"number"=== typeof a||k.isBuffer(a)||(b=a.toArray(),!a.sign&&b[0]&128&&b.unshift(0),a=new k(b));if(k.isBuffer(a)){var c=a.length;0===a.length&&c++;c=new k(c);a.copy(c);0===a.length&&(c[0]=0);return this._createEncoderBuffer(c)}if(128>a)return this._createEncoderBuffer(a);if(256>a)return this._createEncoderBuffer([0,a]);c=1;for(b=a;256<=b;b>>=8)c++;c=Array(c);for(b=c.length-1;0<=b;b--)c[b]=a&255,a>>=8;c[0]&128&&c.unshift(0);return this._createEncoderBuffer(new k(c))};d.prototype._encodeBool=function(a){return this._createEncoderBuffer(a? -255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var e=this._baseState;if(null===e["default"])return!1;a=a.join();void 0===e.defaultBuffer&&(e.defaultBuffer=this._encodeValue(e["default"],b,c).join());if(a.length!==e.defaultBuffer.length)return!1;for(b=0;b>18&63]+g[b>>12&63]+g[b>>6&63]+g[b&63]);return e.join("")}b.byteLength=function(a){return 3*a.length/4-c(a)};b.toByteArray=function(a){var b,f,d,g,h;b=a.length;g=c(a);h=new e(3*b/4-g);f=0>16&255,h[l++]=d>>8&255,h[l++]=d&255;2===g?(d= -k[a.charCodeAt(b)]<<2|k[a.charCodeAt(b+1)]>>4,h[l++]=d&255):1===g&&(d=k[a.charCodeAt(b)]<<10|k[a.charCodeAt(b+1)]<<4|k[a.charCodeAt(b+2)]>>2,h[l++]=d>>8&255,h[l++]=d&255);return h};b.fromByteArray=function(a){for(var b=a.length,c=b%3,e="",k=[],h=0,l=b-c;hl?l:h+16383));1===c?(a=a[b-1],e+=g[a>>2],e+=g[a<<4&63],e+="\x3d\x3d"):2===c&&(a=(a[b-2]<<8)+a[b-1],e+=g[a>>10],e+=g[a>>4&63],e+=g[a<<2&63],e+="\x3d");k.push(e);return k.join("")};var g=[],k=[],e="undefined"!==typeof Uint8Array? -Uint8Array:Array;for(h=0;64>h;++h)g[h]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[h],k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(h)]=h;k[45]=62;k[95]=63},{}],34:[function(h,a,b){(function(a,b){function c(a,b){if(!a)throw Error(b||"Assertion failed");}function d(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function e(a,b,c){if(e.isBN(a))return a;this.negative=0;this.words=null;this.length= +255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var e=this._baseState;if(null===e["default"])return!1;a=a.join();void 0===e.defaultBuffer&&(e.defaultBuffer=this._encodeValue(e["default"],b,c).join());if(a.length!==e.defaultBuffer.length)return!1;for(b=0;b>18&63]+h[b>>12&63]+h[b>>6&63]+h[b&63]);return e.join("")}b.byteLength=function(a){return 3*a.length/4-c(a)};b.toByteArray=function(a){var b,f,d,h,g;b=a.length;h=c(a);g=new e(3*b/4-h);f=0>16&255,g[l++]=d>>8&255,g[l++]=d&255;2===h?(d= +k[a.charCodeAt(b)]<<2|k[a.charCodeAt(b+1)]>>4,g[l++]=d&255):1===h&&(d=k[a.charCodeAt(b)]<<10|k[a.charCodeAt(b+1)]<<4|k[a.charCodeAt(b+2)]>>2,g[l++]=d>>8&255,g[l++]=d&255);return g};b.fromByteArray=function(a){for(var b=a.length,c=b%3,e="",k=[],g=0,l=b-c;gl?l:g+16383));1===c?(a=a[b-1],e+=h[a>>2],e+=h[a<<4&63],e+="\x3d\x3d"):2===c&&(a=(a[b-2]<<8)+a[b-1],e+=h[a>>10],e+=h[a>>4&63],e+=h[a<<2&63],e+="\x3d");k.push(e);return k.join("")};var h=[],k=[],e="undefined"!==typeof Uint8Array? +Uint8Array:Array;for(g=0;64>g;++g)h[g]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g],k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(g)]=g;k[45]=62;k[95]=63},{}],34:[function(g,a,b){(function(a,b){function c(a,b){if(!a)throw Error(b||"Assertion failed");}function d(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function e(a,b,c){if(e.isBN(a))return a;this.negative=0;this.words=null;this.length= 0;this.red=null;if(null!==a){if("le"===b||"be"===b)c=b,b=10;this._init(a||0,b||10,c||"be")}}function l(a,b,c){var e=0;for(c=Math.min(a.length,c);b=f?e|f-49+10:17<=f&&22>=f?e|f-17+10:e|f&15;return e}function n(a,b,c,e){var f=0;for(c=Math.min(a.length,c);b>>26,m=k&67108863,k=Math.min(g,b.length-1),l=Math.max(0,g-a.length+1);l<=k;l++)f=a.words[g-l|0]|0,d=b.words[l]|0,f=f*d+m,h+=f/67108864|0,m=f&67108863;c.words[g]=m|0;k=h|0}0!==k?c.words[g]=k|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new e(b,16);this.n=this.p.bitLength();this.k=(new e(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function r(){p.call(this, +0,d=b.words[0]|0,f=f*d,k=f/67108864|0;c.words[0]=f&67108863;for(var h=1;h>>26,m=k&67108863,k=Math.min(h,b.length-1),l=Math.max(0,h-a.length+1);l<=k;l++)f=a.words[h-l|0]|0,d=b.words[l]|0,f=f*d+m,g+=f/67108864|0,m=f&67108863;c.words[h]=m|0;k=g|0}0!==k?c.words[h]=k|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new e(b,16);this.n=this.p.bitLength();this.k=(new e(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function r(){p.call(this, "k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function u(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(a){"string"===typeof a?(a=e._prime(a),this.m=a.p,this.prime=a):(c(a.gtn(1),"modulus must be greater than 1"),this.m=a, -this.prime=null)}function A(a){q.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new e(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof a?a.exports=e:b.BN=e;e.BN=e;e.wordSize=26;var D;try{D=h("buffer").Buffer}catch(B){}e.isBN=function(a){return a instanceof e?!0:null!==a&&"object"=== +this.prime=null)}function A(a){q.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new e(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof a?a.exports=e:b.BN=e;e.BN=e;e.wordSize=26;var D;try{D=g("buffer").Buffer}catch(B){}e.isBN=function(a){return a instanceof e?!0:null!==a&&"object"=== typeof a&&a.constructor.wordSize===e.wordSize&&Array.isArray(a.words)};e.max=function(a,b){return 0a.cmp(b)?a:b};e.prototype._init=function(a,b,e){if("number"===typeof a)return this._initNumber(a,b,e);if("object"===typeof a)return this._initArray(a,b,e);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&f++;16===b?this._parseHex(a,f):this._parseBase(a,b,f);"-"===a[0]&&(this.negative=1);this.strip();"le"===e&& this._initArray(this.toArray(),b,e)};e.prototype._initNumber=function(a,b,e){0>a&&(this.negative=1,a=-a);67108864>a?(this.words=[a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(c(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===e&&this._initArray(this.toArray(),b,e)};e.prototype._initArray=function(a,b,e){c("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length= Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);else if("le"===e)for(e=b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);return this.strip()};e.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length- -b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6)f=l(a,c,c+6),this.words[e]|=f<>>26-d&4194303,d+=24,26<=d&&(d-=26,e++);c+6!==b&&(f=l(a,b,c+6),this.words[e]|=f<>>26-d&4194303);this.strip()};e.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var e=0,f=1;67108863>=f;f*=b)e++;e--;for(var f=f/b|0,d=a.length-c,k=d%e,d=Math.min(d,d-k)+c,g=c;gthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==k){e=1;c=n(a,g,a.length,b);for(g=0;gthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b=b;c-=6)f=l(a,c,c+6),this.words[e]|=f<>>26-d&4194303,d+=24,26<=d&&(d-=26,e++);c+6!==b&&(f=l(a,b,c+6),this.words[e]|=f<>>26-d&4194303);this.strip()};e.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var e=0,f=1;67108863>=f;f*=b)e++;e--;for(var f=f/b|0,d=a.length-c,k=d%e,d=Math.min(d,d-k)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==k){e=1;c=n(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;e=0!==f||d!==this.length-1?w[6-g.length]+g+e:g+e;a+=2;26<=a&&(a-=26,d--)}for(0!==f&&(e=f.toString(16)+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}if(a===(a|0)&&2<=a&&36>=a){f=v[a];d=y[a];e="";k=this.clone();for(k.negative=0;!k.isZero();)g=k.modn(d).toString(a),k=k.idivn(d),e=k.isZero()?g+e:w[f-g.length]+g+e;for(this.isZero()&&(e="0"+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}c(!1,"Base should be between 2 and 36")}; +this.words[d],h=((k<>>24-a&16777215;e=0!==f||d!==this.length-1?w[6-h.length]+h+e:h+e;a+=2;26<=a&&(a-=26,d--)}for(0!==f&&(e=f.toString(16)+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}if(a===(a|0)&&2<=a&&36>=a){f=v[a];d=y[a];e="";k=this.clone();for(k.negative=0;!k.isZero();)h=k.modn(d).toString(a),k=k.idivn(d),e=k.isZero()?h+e:w[f-h.length]+h+e;for(this.isZero()&&(e="0"+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}c(!1,"Base should be between 2 and 36")}; e.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};e.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};e.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;b>26-a);return this.strip()};e.prototype.notn=function(a){return this.clone().inotn(a)};e.prototype.setn=function(a,b){c("number"===typeof a&&0<=a);var e=a/26|0;a%=26;this._expand(e+1);this.words[e]=b?this.words[e]|1<a.length?c=this:(c=a,a=this);for(var e=b=0;e>>=26;for(;0!==b&&e>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;ea.length?this.clone().iadd(a):a.clone().iadd(this)};e.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;var c;0>26,this.words[f]=b&67108863;for(;0!==e&&f>26,this.words[f]=b&67108863;if(0===e&&f>>13,n=e[1]|0,h=n&8191,p=n>>>13, +0,f=0;f>26,this.words[f]=b&67108863;for(;0!==e&&f>26,this.words[f]=b&67108863;if(0===e&&f>>13,n=e[1]|0,g=n&8191,p=n>>>13, r=e[2]|0,n=r&8191,q=r>>>13,u=e[3]|0,r=u&8191,x=u>>>13,A=e[4]|0,u=A&8191,C=A>>>13,v=e[5]|0,A=v&8191,B=v>>>13,D=e[6]|0,v=D&8191,w=D>>>13,y=e[7]|0,D=y&8191,z=y>>>13,G=e[8]|0,y=G&8191,G=G>>>13,E=e[9]|0,e=E&8191,E=E>>>13,F=f[0]|0,fa=F&8191,ga=F>>>13,V=f[1]|0,F=V&8191,ha=V>>>13,W=f[2]|0,V=W&8191,ia=W>>>13,X=f[3]|0,W=X&8191,ja=X>>>13,Y=f[4]|0,X=Y&8191,ka=Y>>>13,Z=f[5]|0,Y=Z&8191,la=Z>>>13,aa=f[6]|0,Z=aa&8191,ma=aa>>>13,ba=f[7]|0,aa=ba&8191,na=ba>>>13,ca=f[8]|0,ba=ca&8191,ca=ca>>>13,da=f[9]|0,f=da&8191,da= -da>>>13;c.negative=a.negative^b.negative;c.length=19;g=Math.imul(m,fa);a=Math.imul(m,ga);a=a+Math.imul(l,fa)|0;b=Math.imul(l,ga);var ra=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ra>>>26)|0,ra=ra&67108863;g=Math.imul(h,fa);a=Math.imul(h,ga);a=a+Math.imul(p,fa)|0;b=Math.imul(p,ga);g=g+Math.imul(m,F)|0;a=a+Math.imul(m,ha)|0;a=a+Math.imul(l,F)|0;b=b+Math.imul(l,ha)|0;var sa=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(sa>>>26)|0,sa=sa&67108863;g=Math.imul(n,fa);a=Math.imul(n,ga);a=a+Math.imul(q,fa)|0; -b=Math.imul(q,ga);g=g+Math.imul(h,F)|0;a=a+Math.imul(h,ha)|0;a=a+Math.imul(p,F)|0;b=b+Math.imul(p,ha)|0;g=g+Math.imul(m,V)|0;a=a+Math.imul(m,ia)|0;a=a+Math.imul(l,V)|0;b=b+Math.imul(l,ia)|0;var ta=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ta>>>26)|0,ta=ta&67108863;g=Math.imul(r,fa);a=Math.imul(r,ga);a=a+Math.imul(x,fa)|0;b=Math.imul(x,ga);g=g+Math.imul(n,F)|0;a=a+Math.imul(n,ha)|0;a=a+Math.imul(q,F)|0;b=b+Math.imul(q,ha)|0;g=g+Math.imul(h,V)|0;a=a+Math.imul(h,ia)|0;a=a+Math.imul(p,V)|0;b=b+Math.imul(p, -ia)|0;g=g+Math.imul(m,W)|0;a=a+Math.imul(m,ja)|0;a=a+Math.imul(l,W)|0;b=b+Math.imul(l,ja)|0;var ua=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ua>>>26)|0,ua=ua&67108863;g=Math.imul(u,fa);a=Math.imul(u,ga);a=a+Math.imul(C,fa)|0;b=Math.imul(C,ga);g=g+Math.imul(r,F)|0;a=a+Math.imul(r,ha)|0;a=a+Math.imul(x,F)|0;b=b+Math.imul(x,ha)|0;g=g+Math.imul(n,V)|0;a=a+Math.imul(n,ia)|0;a=a+Math.imul(q,V)|0;b=b+Math.imul(q,ia)|0;g=g+Math.imul(h,W)|0;a=a+Math.imul(h,ja)|0;a=a+Math.imul(p,W)|0;b=b+Math.imul(p,ja)|0; -g=g+Math.imul(m,X)|0;a=a+Math.imul(m,ka)|0;a=a+Math.imul(l,X)|0;b=b+Math.imul(l,ka)|0;var va=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(va>>>26)|0,va=va&67108863;g=Math.imul(A,fa);a=Math.imul(A,ga);a=a+Math.imul(B,fa)|0;b=Math.imul(B,ga);g=g+Math.imul(u,F)|0;a=a+Math.imul(u,ha)|0;a=a+Math.imul(C,F)|0;b=b+Math.imul(C,ha)|0;g=g+Math.imul(r,V)|0;a=a+Math.imul(r,ia)|0;a=a+Math.imul(x,V)|0;b=b+Math.imul(x,ia)|0;g=g+Math.imul(n,W)|0;a=a+Math.imul(n,ja)|0;a=a+Math.imul(q,W)|0;b=b+Math.imul(q,ja)|0;g=g+Math.imul(h, -X)|0;a=a+Math.imul(h,ka)|0;a=a+Math.imul(p,X)|0;b=b+Math.imul(p,ka)|0;g=g+Math.imul(m,Y)|0;a=a+Math.imul(m,la)|0;a=a+Math.imul(l,Y)|0;b=b+Math.imul(l,la)|0;var wa=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(wa>>>26)|0,wa=wa&67108863;g=Math.imul(v,fa);a=Math.imul(v,ga);a=a+Math.imul(w,fa)|0;b=Math.imul(w,ga);g=g+Math.imul(A,F)|0;a=a+Math.imul(A,ha)|0;a=a+Math.imul(B,F)|0;b=b+Math.imul(B,ha)|0;g=g+Math.imul(u,V)|0;a=a+Math.imul(u,ia)|0;a=a+Math.imul(C,V)|0;b=b+Math.imul(C,ia)|0;g=g+Math.imul(r,W)|0; -a=a+Math.imul(r,ja)|0;a=a+Math.imul(x,W)|0;b=b+Math.imul(x,ja)|0;g=g+Math.imul(n,X)|0;a=a+Math.imul(n,ka)|0;a=a+Math.imul(q,X)|0;b=b+Math.imul(q,ka)|0;g=g+Math.imul(h,Y)|0;a=a+Math.imul(h,la)|0;a=a+Math.imul(p,Y)|0;b=b+Math.imul(p,la)|0;g=g+Math.imul(m,Z)|0;a=a+Math.imul(m,ma)|0;a=a+Math.imul(l,Z)|0;b=b+Math.imul(l,ma)|0;var xa=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(xa>>>26)|0,xa=xa&67108863;g=Math.imul(D,fa);a=Math.imul(D,ga);a=a+Math.imul(z,fa)|0;b=Math.imul(z,ga);g=g+Math.imul(v,F)|0;a=a+Math.imul(v, -ha)|0;a=a+Math.imul(w,F)|0;b=b+Math.imul(w,ha)|0;g=g+Math.imul(A,V)|0;a=a+Math.imul(A,ia)|0;a=a+Math.imul(B,V)|0;b=b+Math.imul(B,ia)|0;g=g+Math.imul(u,W)|0;a=a+Math.imul(u,ja)|0;a=a+Math.imul(C,W)|0;b=b+Math.imul(C,ja)|0;g=g+Math.imul(r,X)|0;a=a+Math.imul(r,ka)|0;a=a+Math.imul(x,X)|0;b=b+Math.imul(x,ka)|0;g=g+Math.imul(n,Y)|0;a=a+Math.imul(n,la)|0;a=a+Math.imul(q,Y)|0;b=b+Math.imul(q,la)|0;g=g+Math.imul(h,Z)|0;a=a+Math.imul(h,ma)|0;a=a+Math.imul(p,Z)|0;b=b+Math.imul(p,ma)|0;g=g+Math.imul(m,aa)|0; -a=a+Math.imul(m,na)|0;a=a+Math.imul(l,aa)|0;b=b+Math.imul(l,na)|0;var ya=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ya>>>26)|0,ya=ya&67108863;g=Math.imul(y,fa);a=Math.imul(y,ga);a=a+Math.imul(G,fa)|0;b=Math.imul(G,ga);g=g+Math.imul(D,F)|0;a=a+Math.imul(D,ha)|0;a=a+Math.imul(z,F)|0;b=b+Math.imul(z,ha)|0;g=g+Math.imul(v,V)|0;a=a+Math.imul(v,ia)|0;a=a+Math.imul(w,V)|0;b=b+Math.imul(w,ia)|0;g=g+Math.imul(A,W)|0;a=a+Math.imul(A,ja)|0;a=a+Math.imul(B,W)|0;b=b+Math.imul(B,ja)|0;g=g+Math.imul(u,X)|0;a=a+ -Math.imul(u,ka)|0;a=a+Math.imul(C,X)|0;b=b+Math.imul(C,ka)|0;g=g+Math.imul(r,Y)|0;a=a+Math.imul(r,la)|0;a=a+Math.imul(x,Y)|0;b=b+Math.imul(x,la)|0;g=g+Math.imul(n,Z)|0;a=a+Math.imul(n,ma)|0;a=a+Math.imul(q,Z)|0;b=b+Math.imul(q,ma)|0;g=g+Math.imul(h,aa)|0;a=a+Math.imul(h,na)|0;a=a+Math.imul(p,aa)|0;b=b+Math.imul(p,na)|0;g=g+Math.imul(m,ba)|0;a=a+Math.imul(m,ca)|0;a=a+Math.imul(l,ba)|0;b=b+Math.imul(l,ca)|0;var za=(k+g|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(za>>>26)|0,za=za&67108863;g=Math.imul(e,fa); -a=Math.imul(e,ga);a=a+Math.imul(E,fa)|0;b=Math.imul(E,ga);g=g+Math.imul(y,F)|0;a=a+Math.imul(y,ha)|0;a=a+Math.imul(G,F)|0;b=b+Math.imul(G,ha)|0;g=g+Math.imul(D,V)|0;a=a+Math.imul(D,ia)|0;a=a+Math.imul(z,V)|0;b=b+Math.imul(z,ia)|0;g=g+Math.imul(v,W)|0;a=a+Math.imul(v,ja)|0;a=a+Math.imul(w,W)|0;b=b+Math.imul(w,ja)|0;g=g+Math.imul(A,X)|0;a=a+Math.imul(A,ka)|0;a=a+Math.imul(B,X)|0;b=b+Math.imul(B,ka)|0;g=g+Math.imul(u,Y)|0;a=a+Math.imul(u,la)|0;a=a+Math.imul(C,Y)|0;b=b+Math.imul(C,la)|0;g=g+Math.imul(r, -Z)|0;a=a+Math.imul(r,ma)|0;a=a+Math.imul(x,Z)|0;b=b+Math.imul(x,ma)|0;g=g+Math.imul(n,aa)|0;a=a+Math.imul(n,na)|0;a=a+Math.imul(q,aa)|0;b=b+Math.imul(q,na)|0;g=g+Math.imul(h,ba)|0;a=a+Math.imul(h,ca)|0;a=a+Math.imul(p,ba)|0;b=b+Math.imul(p,ca)|0;g=g+Math.imul(m,f)|0;a=a+Math.imul(m,da)|0;a=a+Math.imul(l,f)|0;b=b+Math.imul(l,da)|0;m=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(m>>>26)|0;m&=67108863;g=Math.imul(e,F);a=Math.imul(e,ha);a=a+Math.imul(E,F)|0;b=Math.imul(E,ha);g=g+Math.imul(y,V)|0;a=a+Math.imul(y, -ia)|0;a=a+Math.imul(G,V)|0;b=b+Math.imul(G,ia)|0;g=g+Math.imul(D,W)|0;a=a+Math.imul(D,ja)|0;a=a+Math.imul(z,W)|0;b=b+Math.imul(z,ja)|0;g=g+Math.imul(v,X)|0;a=a+Math.imul(v,ka)|0;a=a+Math.imul(w,X)|0;b=b+Math.imul(w,ka)|0;g=g+Math.imul(A,Y)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(B,Y)|0;b=b+Math.imul(B,la)|0;g=g+Math.imul(u,Z)|0;a=a+Math.imul(u,ma)|0;a=a+Math.imul(C,Z)|0;b=b+Math.imul(C,ma)|0;g=g+Math.imul(r,aa)|0;a=a+Math.imul(r,na)|0;a=a+Math.imul(x,aa)|0;b=b+Math.imul(x,na)|0;g=g+Math.imul(n,ba)| -0;a=a+Math.imul(n,ca)|0;a=a+Math.imul(q,ba)|0;b=b+Math.imul(q,ca)|0;g=g+Math.imul(h,f)|0;a=a+Math.imul(h,da)|0;a=a+Math.imul(p,f)|0;b=b+Math.imul(p,da)|0;h=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(h>>>26)|0;h&=67108863;g=Math.imul(e,V);a=Math.imul(e,ia);a=a+Math.imul(E,V)|0;b=Math.imul(E,ia);g=g+Math.imul(y,W)|0;a=a+Math.imul(y,ja)|0;a=a+Math.imul(G,W)|0;b=b+Math.imul(G,ja)|0;g=g+Math.imul(D,X)|0;a=a+Math.imul(D,ka)|0;a=a+Math.imul(z,X)|0;b=b+Math.imul(z,ka)|0;g=g+Math.imul(v,Y)|0;a=a+Math.imul(v, -la)|0;a=a+Math.imul(w,Y)|0;b=b+Math.imul(w,la)|0;g=g+Math.imul(A,Z)|0;a=a+Math.imul(A,ma)|0;a=a+Math.imul(B,Z)|0;b=b+Math.imul(B,ma)|0;g=g+Math.imul(u,aa)|0;a=a+Math.imul(u,na)|0;a=a+Math.imul(C,aa)|0;b=b+Math.imul(C,na)|0;g=g+Math.imul(r,ba)|0;a=a+Math.imul(r,ca)|0;a=a+Math.imul(x,ba)|0;b=b+Math.imul(x,ca)|0;g=g+Math.imul(n,f)|0;a=a+Math.imul(n,da)|0;a=a+Math.imul(q,f)|0;b=b+Math.imul(q,da)|0;n=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(n>>>26)|0;n&=67108863;g=Math.imul(e,W);a=Math.imul(e,ja);a= -a+Math.imul(E,W)|0;b=Math.imul(E,ja);g=g+Math.imul(y,X)|0;a=a+Math.imul(y,ka)|0;a=a+Math.imul(G,X)|0;b=b+Math.imul(G,ka)|0;g=g+Math.imul(D,Y)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(z,Y)|0;b=b+Math.imul(z,la)|0;g=g+Math.imul(v,Z)|0;a=a+Math.imul(v,ma)|0;a=a+Math.imul(w,Z)|0;b=b+Math.imul(w,ma)|0;g=g+Math.imul(A,aa)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(B,aa)|0;b=b+Math.imul(B,na)|0;g=g+Math.imul(u,ba)|0;a=a+Math.imul(u,ca)|0;a=a+Math.imul(C,ba)|0;b=b+Math.imul(C,ca)|0;g=g+Math.imul(r,f)|0;a=a+Math.imul(r, -da)|0;a=a+Math.imul(x,f)|0;b=b+Math.imul(x,da)|0;r=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(r>>>26)|0;r&=67108863;g=Math.imul(e,X);a=Math.imul(e,ka);a=a+Math.imul(E,X)|0;b=Math.imul(E,ka);g=g+Math.imul(y,Y)|0;a=a+Math.imul(y,la)|0;a=a+Math.imul(G,Y)|0;b=b+Math.imul(G,la)|0;g=g+Math.imul(D,Z)|0;a=a+Math.imul(D,ma)|0;a=a+Math.imul(z,Z)|0;b=b+Math.imul(z,ma)|0;g=g+Math.imul(v,aa)|0;a=a+Math.imul(v,na)|0;a=a+Math.imul(w,aa)|0;b=b+Math.imul(w,na)|0;g=g+Math.imul(A,ba)|0;a=a+Math.imul(A,ca)|0;a=a+Math.imul(B, -ba)|0;b=b+Math.imul(B,ca)|0;g=g+Math.imul(u,f)|0;a=a+Math.imul(u,da)|0;a=a+Math.imul(C,f)|0;b=b+Math.imul(C,da)|0;u=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(u>>>26)|0;u&=67108863;g=Math.imul(e,Y);a=Math.imul(e,la);a=a+Math.imul(E,Y)|0;b=Math.imul(E,la);g=g+Math.imul(y,Z)|0;a=a+Math.imul(y,ma)|0;a=a+Math.imul(G,Z)|0;b=b+Math.imul(G,ma)|0;g=g+Math.imul(D,aa)|0;a=a+Math.imul(D,na)|0;a=a+Math.imul(z,aa)|0;b=b+Math.imul(z,na)|0;g=g+Math.imul(v,ba)|0;a=a+Math.imul(v,ca)|0;a=a+Math.imul(w,ba)|0;b=b+Math.imul(w, -ca)|0;g=g+Math.imul(A,f)|0;a=a+Math.imul(A,da)|0;a=a+Math.imul(B,f)|0;b=b+Math.imul(B,da)|0;A=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;g=Math.imul(e,Z);a=Math.imul(e,ma);a=a+Math.imul(E,Z)|0;b=Math.imul(E,ma);g=g+Math.imul(y,aa)|0;a=a+Math.imul(y,na)|0;a=a+Math.imul(G,aa)|0;b=b+Math.imul(G,na)|0;g=g+Math.imul(D,ba)|0;a=a+Math.imul(D,ca)|0;a=a+Math.imul(z,ba)|0;b=b+Math.imul(z,ca)|0;g=g+Math.imul(v,f)|0;a=a+Math.imul(v,da)|0;a=a+Math.imul(w,f)|0;b=b+Math.imul(w,da)|0;v=(k+g| -0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(v>>>26)|0;v&=67108863;g=Math.imul(e,aa);a=Math.imul(e,na);a=a+Math.imul(E,aa)|0;b=Math.imul(E,na);g=g+Math.imul(y,ba)|0;a=a+Math.imul(y,ca)|0;a=a+Math.imul(G,ba)|0;b=b+Math.imul(G,ca)|0;g=g+Math.imul(D,f)|0;a=a+Math.imul(D,da)|0;a=a+Math.imul(z,f)|0;b=b+Math.imul(z,da)|0;D=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;g=Math.imul(e,ba);a=Math.imul(e,ca);a=a+Math.imul(E,ba)|0;b=Math.imul(E,ca);g=g+Math.imul(y,f)|0;a=a+Math.imul(y,da)|0;a=a+Math.imul(G, -f)|0;b=b+Math.imul(G,da)|0;y=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(y>>>26)|0;y&=67108863;g=Math.imul(e,f);a=Math.imul(e,da);a=a+Math.imul(E,f)|0;b=Math.imul(E,da);l=(k+g|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(l>>>26)|0;d[0]=ra;d[1]=sa;d[2]=ta;d[3]=ua;d[4]=va;d[5]=wa;d[6]=xa;d[7]=ya;d[8]=za;d[9]=m;d[10]=h;d[11]=n;d[12]=r;d[13]=u;d[14]=A;d[15]=v;d[16]=D;d[17]=y;d[18]=l&67108863;0!==k&&(d[19]=k,c.length++);return c};Math.imul||(z=f);e.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10=== -this.length&&10===a.length)a=z(this,a,b);else if(63>c)a=f(this,a,b);else if(1024>c){b.negative=a.negative^this.negative;b.length=this.length+a.length;for(var e=0,d=c=0;d>>26)|0,c=c+(g>>>26),g=g&67108863;b.words[d]=e;e=g}0!==e?b.words[d]=e:b.length--;a=b.strip()}else a=(new m).mulp(this,a, -b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=e.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,e,f,d){for(var g=0;g>>=1)c++;return 1<=c))for(var e=0;ec?0:c/67108864|0;return a};m.prototype.convert13b=function(a,b,e,f){for(var d=0,g=0;g>>=13,e[2*g+1]=d&8191,d>>>=13;for(g=2*b;g>>13;c.negative=a.negative^b.negative;c.length=19;h=Math.imul(m,fa);a=Math.imul(m,ga);a=a+Math.imul(l,fa)|0;b=Math.imul(l,ga);var ra=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ra>>>26)|0,ra=ra&67108863;h=Math.imul(g,fa);a=Math.imul(g,ga);a=a+Math.imul(p,fa)|0;b=Math.imul(p,ga);h=h+Math.imul(m,F)|0;a=a+Math.imul(m,ha)|0;a=a+Math.imul(l,F)|0;b=b+Math.imul(l,ha)|0;var sa=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(sa>>>26)|0,sa=sa&67108863;h=Math.imul(n,fa);a=Math.imul(n,ga);a=a+Math.imul(q,fa)|0; +b=Math.imul(q,ga);h=h+Math.imul(g,F)|0;a=a+Math.imul(g,ha)|0;a=a+Math.imul(p,F)|0;b=b+Math.imul(p,ha)|0;h=h+Math.imul(m,V)|0;a=a+Math.imul(m,ia)|0;a=a+Math.imul(l,V)|0;b=b+Math.imul(l,ia)|0;var ta=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ta>>>26)|0,ta=ta&67108863;h=Math.imul(r,fa);a=Math.imul(r,ga);a=a+Math.imul(x,fa)|0;b=Math.imul(x,ga);h=h+Math.imul(n,F)|0;a=a+Math.imul(n,ha)|0;a=a+Math.imul(q,F)|0;b=b+Math.imul(q,ha)|0;h=h+Math.imul(g,V)|0;a=a+Math.imul(g,ia)|0;a=a+Math.imul(p,V)|0;b=b+Math.imul(p, +ia)|0;h=h+Math.imul(m,W)|0;a=a+Math.imul(m,ja)|0;a=a+Math.imul(l,W)|0;b=b+Math.imul(l,ja)|0;var ua=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ua>>>26)|0,ua=ua&67108863;h=Math.imul(u,fa);a=Math.imul(u,ga);a=a+Math.imul(C,fa)|0;b=Math.imul(C,ga);h=h+Math.imul(r,F)|0;a=a+Math.imul(r,ha)|0;a=a+Math.imul(x,F)|0;b=b+Math.imul(x,ha)|0;h=h+Math.imul(n,V)|0;a=a+Math.imul(n,ia)|0;a=a+Math.imul(q,V)|0;b=b+Math.imul(q,ia)|0;h=h+Math.imul(g,W)|0;a=a+Math.imul(g,ja)|0;a=a+Math.imul(p,W)|0;b=b+Math.imul(p,ja)|0; +h=h+Math.imul(m,X)|0;a=a+Math.imul(m,ka)|0;a=a+Math.imul(l,X)|0;b=b+Math.imul(l,ka)|0;var va=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(va>>>26)|0,va=va&67108863;h=Math.imul(A,fa);a=Math.imul(A,ga);a=a+Math.imul(B,fa)|0;b=Math.imul(B,ga);h=h+Math.imul(u,F)|0;a=a+Math.imul(u,ha)|0;a=a+Math.imul(C,F)|0;b=b+Math.imul(C,ha)|0;h=h+Math.imul(r,V)|0;a=a+Math.imul(r,ia)|0;a=a+Math.imul(x,V)|0;b=b+Math.imul(x,ia)|0;h=h+Math.imul(n,W)|0;a=a+Math.imul(n,ja)|0;a=a+Math.imul(q,W)|0;b=b+Math.imul(q,ja)|0;h=h+Math.imul(g, +X)|0;a=a+Math.imul(g,ka)|0;a=a+Math.imul(p,X)|0;b=b+Math.imul(p,ka)|0;h=h+Math.imul(m,Y)|0;a=a+Math.imul(m,la)|0;a=a+Math.imul(l,Y)|0;b=b+Math.imul(l,la)|0;var wa=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(wa>>>26)|0,wa=wa&67108863;h=Math.imul(v,fa);a=Math.imul(v,ga);a=a+Math.imul(w,fa)|0;b=Math.imul(w,ga);h=h+Math.imul(A,F)|0;a=a+Math.imul(A,ha)|0;a=a+Math.imul(B,F)|0;b=b+Math.imul(B,ha)|0;h=h+Math.imul(u,V)|0;a=a+Math.imul(u,ia)|0;a=a+Math.imul(C,V)|0;b=b+Math.imul(C,ia)|0;h=h+Math.imul(r,W)|0; +a=a+Math.imul(r,ja)|0;a=a+Math.imul(x,W)|0;b=b+Math.imul(x,ja)|0;h=h+Math.imul(n,X)|0;a=a+Math.imul(n,ka)|0;a=a+Math.imul(q,X)|0;b=b+Math.imul(q,ka)|0;h=h+Math.imul(g,Y)|0;a=a+Math.imul(g,la)|0;a=a+Math.imul(p,Y)|0;b=b+Math.imul(p,la)|0;h=h+Math.imul(m,Z)|0;a=a+Math.imul(m,ma)|0;a=a+Math.imul(l,Z)|0;b=b+Math.imul(l,ma)|0;var xa=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(xa>>>26)|0,xa=xa&67108863;h=Math.imul(D,fa);a=Math.imul(D,ga);a=a+Math.imul(z,fa)|0;b=Math.imul(z,ga);h=h+Math.imul(v,F)|0;a=a+Math.imul(v, +ha)|0;a=a+Math.imul(w,F)|0;b=b+Math.imul(w,ha)|0;h=h+Math.imul(A,V)|0;a=a+Math.imul(A,ia)|0;a=a+Math.imul(B,V)|0;b=b+Math.imul(B,ia)|0;h=h+Math.imul(u,W)|0;a=a+Math.imul(u,ja)|0;a=a+Math.imul(C,W)|0;b=b+Math.imul(C,ja)|0;h=h+Math.imul(r,X)|0;a=a+Math.imul(r,ka)|0;a=a+Math.imul(x,X)|0;b=b+Math.imul(x,ka)|0;h=h+Math.imul(n,Y)|0;a=a+Math.imul(n,la)|0;a=a+Math.imul(q,Y)|0;b=b+Math.imul(q,la)|0;h=h+Math.imul(g,Z)|0;a=a+Math.imul(g,ma)|0;a=a+Math.imul(p,Z)|0;b=b+Math.imul(p,ma)|0;h=h+Math.imul(m,aa)|0; +a=a+Math.imul(m,na)|0;a=a+Math.imul(l,aa)|0;b=b+Math.imul(l,na)|0;var ya=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(ya>>>26)|0,ya=ya&67108863;h=Math.imul(y,fa);a=Math.imul(y,ga);a=a+Math.imul(G,fa)|0;b=Math.imul(G,ga);h=h+Math.imul(D,F)|0;a=a+Math.imul(D,ha)|0;a=a+Math.imul(z,F)|0;b=b+Math.imul(z,ha)|0;h=h+Math.imul(v,V)|0;a=a+Math.imul(v,ia)|0;a=a+Math.imul(w,V)|0;b=b+Math.imul(w,ia)|0;h=h+Math.imul(A,W)|0;a=a+Math.imul(A,ja)|0;a=a+Math.imul(B,W)|0;b=b+Math.imul(B,ja)|0;h=h+Math.imul(u,X)|0;a=a+ +Math.imul(u,ka)|0;a=a+Math.imul(C,X)|0;b=b+Math.imul(C,ka)|0;h=h+Math.imul(r,Y)|0;a=a+Math.imul(r,la)|0;a=a+Math.imul(x,Y)|0;b=b+Math.imul(x,la)|0;h=h+Math.imul(n,Z)|0;a=a+Math.imul(n,ma)|0;a=a+Math.imul(q,Z)|0;b=b+Math.imul(q,ma)|0;h=h+Math.imul(g,aa)|0;a=a+Math.imul(g,na)|0;a=a+Math.imul(p,aa)|0;b=b+Math.imul(p,na)|0;h=h+Math.imul(m,ba)|0;a=a+Math.imul(m,ca)|0;a=a+Math.imul(l,ba)|0;b=b+Math.imul(l,ca)|0;var za=(k+h|0)+((a&8191)<<13)|0,k=(b+(a>>>13)|0)+(za>>>26)|0,za=za&67108863;h=Math.imul(e,fa); +a=Math.imul(e,ga);a=a+Math.imul(E,fa)|0;b=Math.imul(E,ga);h=h+Math.imul(y,F)|0;a=a+Math.imul(y,ha)|0;a=a+Math.imul(G,F)|0;b=b+Math.imul(G,ha)|0;h=h+Math.imul(D,V)|0;a=a+Math.imul(D,ia)|0;a=a+Math.imul(z,V)|0;b=b+Math.imul(z,ia)|0;h=h+Math.imul(v,W)|0;a=a+Math.imul(v,ja)|0;a=a+Math.imul(w,W)|0;b=b+Math.imul(w,ja)|0;h=h+Math.imul(A,X)|0;a=a+Math.imul(A,ka)|0;a=a+Math.imul(B,X)|0;b=b+Math.imul(B,ka)|0;h=h+Math.imul(u,Y)|0;a=a+Math.imul(u,la)|0;a=a+Math.imul(C,Y)|0;b=b+Math.imul(C,la)|0;h=h+Math.imul(r, +Z)|0;a=a+Math.imul(r,ma)|0;a=a+Math.imul(x,Z)|0;b=b+Math.imul(x,ma)|0;h=h+Math.imul(n,aa)|0;a=a+Math.imul(n,na)|0;a=a+Math.imul(q,aa)|0;b=b+Math.imul(q,na)|0;h=h+Math.imul(g,ba)|0;a=a+Math.imul(g,ca)|0;a=a+Math.imul(p,ba)|0;b=b+Math.imul(p,ca)|0;h=h+Math.imul(m,f)|0;a=a+Math.imul(m,da)|0;a=a+Math.imul(l,f)|0;b=b+Math.imul(l,da)|0;m=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(m>>>26)|0;m&=67108863;h=Math.imul(e,F);a=Math.imul(e,ha);a=a+Math.imul(E,F)|0;b=Math.imul(E,ha);h=h+Math.imul(y,V)|0;a=a+Math.imul(y, +ia)|0;a=a+Math.imul(G,V)|0;b=b+Math.imul(G,ia)|0;h=h+Math.imul(D,W)|0;a=a+Math.imul(D,ja)|0;a=a+Math.imul(z,W)|0;b=b+Math.imul(z,ja)|0;h=h+Math.imul(v,X)|0;a=a+Math.imul(v,ka)|0;a=a+Math.imul(w,X)|0;b=b+Math.imul(w,ka)|0;h=h+Math.imul(A,Y)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(B,Y)|0;b=b+Math.imul(B,la)|0;h=h+Math.imul(u,Z)|0;a=a+Math.imul(u,ma)|0;a=a+Math.imul(C,Z)|0;b=b+Math.imul(C,ma)|0;h=h+Math.imul(r,aa)|0;a=a+Math.imul(r,na)|0;a=a+Math.imul(x,aa)|0;b=b+Math.imul(x,na)|0;h=h+Math.imul(n,ba)| +0;a=a+Math.imul(n,ca)|0;a=a+Math.imul(q,ba)|0;b=b+Math.imul(q,ca)|0;h=h+Math.imul(g,f)|0;a=a+Math.imul(g,da)|0;a=a+Math.imul(p,f)|0;b=b+Math.imul(p,da)|0;g=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(g>>>26)|0;g&=67108863;h=Math.imul(e,V);a=Math.imul(e,ia);a=a+Math.imul(E,V)|0;b=Math.imul(E,ia);h=h+Math.imul(y,W)|0;a=a+Math.imul(y,ja)|0;a=a+Math.imul(G,W)|0;b=b+Math.imul(G,ja)|0;h=h+Math.imul(D,X)|0;a=a+Math.imul(D,ka)|0;a=a+Math.imul(z,X)|0;b=b+Math.imul(z,ka)|0;h=h+Math.imul(v,Y)|0;a=a+Math.imul(v, +la)|0;a=a+Math.imul(w,Y)|0;b=b+Math.imul(w,la)|0;h=h+Math.imul(A,Z)|0;a=a+Math.imul(A,ma)|0;a=a+Math.imul(B,Z)|0;b=b+Math.imul(B,ma)|0;h=h+Math.imul(u,aa)|0;a=a+Math.imul(u,na)|0;a=a+Math.imul(C,aa)|0;b=b+Math.imul(C,na)|0;h=h+Math.imul(r,ba)|0;a=a+Math.imul(r,ca)|0;a=a+Math.imul(x,ba)|0;b=b+Math.imul(x,ca)|0;h=h+Math.imul(n,f)|0;a=a+Math.imul(n,da)|0;a=a+Math.imul(q,f)|0;b=b+Math.imul(q,da)|0;n=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(n>>>26)|0;n&=67108863;h=Math.imul(e,W);a=Math.imul(e,ja);a= +a+Math.imul(E,W)|0;b=Math.imul(E,ja);h=h+Math.imul(y,X)|0;a=a+Math.imul(y,ka)|0;a=a+Math.imul(G,X)|0;b=b+Math.imul(G,ka)|0;h=h+Math.imul(D,Y)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(z,Y)|0;b=b+Math.imul(z,la)|0;h=h+Math.imul(v,Z)|0;a=a+Math.imul(v,ma)|0;a=a+Math.imul(w,Z)|0;b=b+Math.imul(w,ma)|0;h=h+Math.imul(A,aa)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(B,aa)|0;b=b+Math.imul(B,na)|0;h=h+Math.imul(u,ba)|0;a=a+Math.imul(u,ca)|0;a=a+Math.imul(C,ba)|0;b=b+Math.imul(C,ca)|0;h=h+Math.imul(r,f)|0;a=a+Math.imul(r, +da)|0;a=a+Math.imul(x,f)|0;b=b+Math.imul(x,da)|0;r=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(r>>>26)|0;r&=67108863;h=Math.imul(e,X);a=Math.imul(e,ka);a=a+Math.imul(E,X)|0;b=Math.imul(E,ka);h=h+Math.imul(y,Y)|0;a=a+Math.imul(y,la)|0;a=a+Math.imul(G,Y)|0;b=b+Math.imul(G,la)|0;h=h+Math.imul(D,Z)|0;a=a+Math.imul(D,ma)|0;a=a+Math.imul(z,Z)|0;b=b+Math.imul(z,ma)|0;h=h+Math.imul(v,aa)|0;a=a+Math.imul(v,na)|0;a=a+Math.imul(w,aa)|0;b=b+Math.imul(w,na)|0;h=h+Math.imul(A,ba)|0;a=a+Math.imul(A,ca)|0;a=a+Math.imul(B, +ba)|0;b=b+Math.imul(B,ca)|0;h=h+Math.imul(u,f)|0;a=a+Math.imul(u,da)|0;a=a+Math.imul(C,f)|0;b=b+Math.imul(C,da)|0;u=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(u>>>26)|0;u&=67108863;h=Math.imul(e,Y);a=Math.imul(e,la);a=a+Math.imul(E,Y)|0;b=Math.imul(E,la);h=h+Math.imul(y,Z)|0;a=a+Math.imul(y,ma)|0;a=a+Math.imul(G,Z)|0;b=b+Math.imul(G,ma)|0;h=h+Math.imul(D,aa)|0;a=a+Math.imul(D,na)|0;a=a+Math.imul(z,aa)|0;b=b+Math.imul(z,na)|0;h=h+Math.imul(v,ba)|0;a=a+Math.imul(v,ca)|0;a=a+Math.imul(w,ba)|0;b=b+Math.imul(w, +ca)|0;h=h+Math.imul(A,f)|0;a=a+Math.imul(A,da)|0;a=a+Math.imul(B,f)|0;b=b+Math.imul(B,da)|0;A=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;h=Math.imul(e,Z);a=Math.imul(e,ma);a=a+Math.imul(E,Z)|0;b=Math.imul(E,ma);h=h+Math.imul(y,aa)|0;a=a+Math.imul(y,na)|0;a=a+Math.imul(G,aa)|0;b=b+Math.imul(G,na)|0;h=h+Math.imul(D,ba)|0;a=a+Math.imul(D,ca)|0;a=a+Math.imul(z,ba)|0;b=b+Math.imul(z,ca)|0;h=h+Math.imul(v,f)|0;a=a+Math.imul(v,da)|0;a=a+Math.imul(w,f)|0;b=b+Math.imul(w,da)|0;v=(k+h| +0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(v>>>26)|0;v&=67108863;h=Math.imul(e,aa);a=Math.imul(e,na);a=a+Math.imul(E,aa)|0;b=Math.imul(E,na);h=h+Math.imul(y,ba)|0;a=a+Math.imul(y,ca)|0;a=a+Math.imul(G,ba)|0;b=b+Math.imul(G,ca)|0;h=h+Math.imul(D,f)|0;a=a+Math.imul(D,da)|0;a=a+Math.imul(z,f)|0;b=b+Math.imul(z,da)|0;D=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;h=Math.imul(e,ba);a=Math.imul(e,ca);a=a+Math.imul(E,ba)|0;b=Math.imul(E,ca);h=h+Math.imul(y,f)|0;a=a+Math.imul(y,da)|0;a=a+Math.imul(G, +f)|0;b=b+Math.imul(G,da)|0;y=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(y>>>26)|0;y&=67108863;h=Math.imul(e,f);a=Math.imul(e,da);a=a+Math.imul(E,f)|0;b=Math.imul(E,da);l=(k+h|0)+((a&8191)<<13)|0;k=(b+(a>>>13)|0)+(l>>>26)|0;d[0]=ra;d[1]=sa;d[2]=ta;d[3]=ua;d[4]=va;d[5]=wa;d[6]=xa;d[7]=ya;d[8]=za;d[9]=m;d[10]=g;d[11]=n;d[12]=r;d[13]=u;d[14]=A;d[15]=v;d[16]=D;d[17]=y;d[18]=l&67108863;0!==k&&(d[19]=k,c.length++);return c};Math.imul||(z=f);e.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10=== +this.length&&10===a.length)a=z(this,a,b);else if(63>c)a=f(this,a,b);else if(1024>c){b.negative=a.negative^this.negative;b.length=this.length+a.length;for(var e=0,d=c=0;d>>26)|0,c=c+(k>>>26),k=k&67108863;b.words[d]=e;e=k}0!==e?b.words[d]=e:b.length--;a=b.strip()}else a=(new m).mulp(this,a, +b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=e.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,e,f,d){for(var k=0;k>>=1)c++;return 1<=c))for(var e=0;ec?0:c/67108864|0;return a};m.prototype.convert13b=function(a,b,e,f){for(var d=0,k=0;k>>=13,e[2*k+1]=d&8191,d>>>=13;for(k=2*b;ka);for(var b=0,e=0;e>26,b=b+(f/67108864|0),b=b+(d>>>26);this.words[e]=d&67108863}0!==b&&(this.words[e]=b,this.length++);return this};e.prototype.muln= function(a){return this.clone().imuln(a)};e.prototype.sqr=function(){return this.mul(this)};e.prototype.isqr=function(){return this.imul(this.clone())};e.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new e(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var d=0;for(f=0;f>>26-b}d&&(this.words[f]=d,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<d)for(this.length-=d,g=0;g=b);g--){var k=this.words[g]|0;this.words[g]=d<<26-f|k>>>f;d=k&a}e&&0!==d&&(e.words[e.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};e.prototype.ishrn= +a);var b=a%26;a=(a-b)/26;var e=67108863>>>26-b<<26-b,f;if(0!==b){var d=0;for(f=0;f>>26-b}d&&(this.words[f]=d,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<d)for(this.length-=d,k=0;k=b);k--){var h=this.words[k]|0;this.words[k]=d<<26-f|h>>>f;d=h&a}e&&0!==d&&(e.words[e.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};e.prototype.ishrn= function(a,b,e){c(0===this.negative);return this.iushrn(a,b,e)};e.prototype.shln=function(a){return this.clone().ishln(a)};e.prototype.ushln=function(a){return this.clone().iushln(a)};e.prototype.shrn=function(a){return this.clone().ishrn(a)};e.prototype.ushrn=function(a){return this.clone().iushrn(a)};e.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-= a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};e.prototype.addn=function(a){return this.clone().iaddn(a)};e.prototype.subn=function(a){return this.clone().isubn(a)};e.prototype.iabs=function(){this.negative=0;return this};e.prototype.abs=function(){return this.clone().iabs()};e.prototype._ishlnsubmul=function(a,b,e){var f;this._expand(a.length+e);var d, -g=0;for(f=0;f>26)-(g/67108864|0),this.words[f+e]=d&67108863;for(;f>26,this.words[f+e]=d&67108863;if(0===g)return this.strip();c(-1===g);for(f=g=0;f>26,this.words[f]=d&67108863;this.negative=1;return this.strip()};e.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,d=f.words[f.length-1]|0;a=26-this._countBits(d);0!==a&&(f=f.ushln(a), -c.iushln(a),d=f.words[f.length-1]|0);var g=c.length-f.length,k;if("mod"!==b){k=new e(null);k.length=g+1;k.words=Array(k.length);for(var h=0;hthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null,mod:new e(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new e(this.modn(a.words[0]))}:this._wordDiv(a,b)};e.prototype.div=function(a){return this.divmod(a,"div",!1).div};e.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};e.prototype.umod=function(a){return this.divmod(a,"mod", +k=0;for(f=0;f>26)-(k/67108864|0),this.words[f+e]=d&67108863;for(;f>26,this.words[f+e]=d&67108863;if(0===k)return this.strip();c(-1===k);for(f=k=0;f>26,this.words[f]=d&67108863;this.negative=1;return this.strip()};e.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,d=f.words[f.length-1]|0;a=26-this._countBits(d);0!==a&&(f=f.ushln(a), +c.iushln(a),d=f.words[f.length-1]|0);var k=c.length-f.length,h;if("mod"!==b){h=new e(null);h.length=k+1;h.words=Array(h.length);for(var g=0;gthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null,mod:new e(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new e(this.modn(a.words[0]))}:this._wordDiv(a,b)};e.prototype.div=function(a){return this.divmod(a,"div",!1).div};e.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};e.prototype.umod=function(a){return this.divmod(a,"mod", !0).mod};e.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,e=a.ushrn(1);a=a.andln(1);c=c.cmp(e);return 0>c||1===a&&0===c?b.div:0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};e.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,e=0,f=this.length-1;0<=f;f--)e=(b*e+(this.words[f]|0))%a;return e};e.prototype.idivn=function(a){c(67108863>=a);for(var b=0,e=this.length-1;0<=e;e--)b=(this.words[e]|0)+67108864*b, -this.words[e]=b/a|0,b%=a;return this.strip()};e.prototype.divn=function(a){return this.clone().idivn(a)};e.prototype.egcd=function(a){c(0===a.negative);c(!a.isZero());var b=this,f=a.clone(),b=0!==b.negative?b.umod(a):b.clone();a=new e(1);for(var d=new e(0),g=new e(0),k=new e(1),h=0;b.isEven()&&f.isEven();)b.iushrn(1),f.iushrn(1),++h;for(var l=f.clone(),m=b.clone();!b.isZero();){for(var n=0,p=1;0===(b.words[0]&p)&&26>n;++n,p<<=1);if(0n;++n,p<<=1);if(0h;++h,l<<=1);if(0h;++h,l<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};e.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1), +this.words[e]=b/a|0,b%=a;return this.strip()};e.prototype.divn=function(a){return this.clone().idivn(a)};e.prototype.egcd=function(a){c(0===a.negative);c(!a.isZero());var b=this,f=a.clone(),b=0!==b.negative?b.umod(a):b.clone();a=new e(1);for(var d=new e(0),k=new e(0),h=new e(1),g=0;b.isEven()&&f.isEven();)b.iushrn(1),f.iushrn(1),++g;for(var l=f.clone(),m=b.clone();!b.isZero();){for(var n=0,p=1;0===(b.words[0]&p)&&26>n;++n,p<<=1);if(0n;++n,p<<=1);if(0g;++g,l<<=1);if(0g;++g,l<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};e.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1), a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var e=b.cmp(a);if(0>e)e=b,b=a,a=e;else if(0===e||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};e.prototype.invm=function(a){return this.egcd(a).a.umod(a)};e.prototype.isEven=function(){return 0===(this.words[0]&1)};e.prototype.isOdd=function(){return 1===(this.words[0]&1)};e.prototype.andln=function(a){return this.words[0]&a};e.prototype.bincn=function(a){c("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26,e=e&67108863;this.words[a]=e}0!==b&&(this.words[a]=b,this.length++);return this};e.prototype.isZero=function(){return 1===this.length&&0===this.words[0]};e.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1;if(this.lengthf&&(b=1);break}}return b};e.prototype.gtn=function(a){return 1===this.cmpn(a)};e.prototype.gt=function(a){return 1===this.cmp(a)}; @@ -883,88 +883,88 @@ a.words[e];b.length=c;if(9>=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b 1]&&a.length--);return a};d(u,p);d(x,p);d(C,p);C.prototype.imulK=function(a){for(var b=0,c=0;c>>26;a.words[c]=e}0!==b&&(a.words[a.length++]=b);return a};e._prime=function(a){if(F[a])return F[a];var b;if("k256"===a)b=new r;else if("p224"===a)b=new u;else if("p192"===a)b=new x;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return F[a]=b};q.prototype._verify1=function(a){c(0===a.negative,"red works only with positives");c(a.red, "red works only with red numbers")};q.prototype._verify2=function(a,b){c(0===(a.negative|b.negative),"red works only with positives");c(a.red&&a.red===b.red,"red works only with red numbers")};q.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};q.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};q.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)}; q.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};q.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&&a.iadd(this.m);return a._forceRed(this)};q.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};q.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};q.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};q.prototype.mul=function(a, -b){this._verify2(a,b);return this.imod(a.mul(b))};q.prototype.isqr=function(a){return this.imul(a,a.clone())};q.prototype.sqr=function(a){return this.mul(a,a)};q.prototype.sqrt=function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b)return b=this.m.add(new e(1)).iushrn(2),this.pow(a,b);for(var f=this.m.subn(1),d=0;!f.isZero()&&0===f.andln(1);)d++,f.iushrn(1);c(!f.isZero());for(var b=(new e(1)).toRed(this),g=b.redNeg(),k=this.m.subn(1).iushrn(1),h=this.m.bitLength(),h= -(new e(2*h*h)).toRed(this);0!==this.pow(h,k).cmp(g);)h.redIAdd(g);k=this.pow(h,f);g=this.pow(a,f.addn(1).iushrn(1));a=this.pow(a,f);for(f=d;0!==a.cmp(b);){h=a;for(d=0;0!==h.cmp(b);d++)h=h.redSqr();c(d>k&1;a!==c[0]&&(a=this.sqr(a));if(0===l&&0===d)g=0;else if(d<<=1,d|=l,g++,4===g||0===f&&0===k)a=this.mul(a,c[d]),d=g=0}k=26}return a};q.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};q.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a}; +b){this._verify2(a,b);return this.imod(a.mul(b))};q.prototype.isqr=function(a){return this.imul(a,a.clone())};q.prototype.sqr=function(a){return this.mul(a,a)};q.prototype.sqrt=function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b)return b=this.m.add(new e(1)).iushrn(2),this.pow(a,b);for(var f=this.m.subn(1),d=0;!f.isZero()&&0===f.andln(1);)d++,f.iushrn(1);c(!f.isZero());for(var b=(new e(1)).toRed(this),k=b.redNeg(),h=this.m.subn(1).iushrn(1),g=this.m.bitLength(),g= +(new e(2*g*g)).toRed(this);0!==this.pow(g,h).cmp(k);)g.redIAdd(k);h=this.pow(g,f);k=this.pow(a,f.addn(1).iushrn(1));a=this.pow(a,f);for(f=d;0!==a.cmp(b);){g=a;for(d=0;0!==g.cmp(b);d++)g=g.redSqr();c(d>h&1;a!==c[0]&&(a=this.sqr(a));if(0===l&&0===d)k=0;else if(d<<=1,d|=l,k++,4===k||0===f&&0===h)a=this.mul(a,c[d]),d=k=0}h=26}return a};q.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};q.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a}; e.mont=function(a){return new A(a)};d(A,q);A.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};A.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv));a.red=null;return a};A.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};A.prototype.mul= -function(a,b){if(a.isZero()||b.isZero())return(new e(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};A.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof a||a,this)},{buffer:36}],35:[function(h,a,b){function c(a){this.rand=a}var d;a.exports=function(a){d||(d=new c(null)); +function(a,b){if(a.isZero()||b.isZero())return(new e(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};A.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof a||a,this)},{buffer:36}],35:[function(g,a,b){function c(a){this.rand=a}var d;a.exports=function(a){d||(d=new c(null)); return d.generate(a)};a.exports.Rand=c;c.prototype.generate=function(a){return this._rand(a)};c.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);a=new Uint8Array(a);for(var b=0;b>>24]^g[l>>>16&255]^k[m>>>8&255]^c[n&255]^b[u++],p=f[l>>>24]^g[m>>>16&255]^k[n>>>8&255]^c[h&255]^b[u++],r=f[m>>>24]^g[n>>>16&255]^k[h>>>8&255]^c[l&255]^b[u++],n=f[n>>>24]^g[h>>>16&255]^k[l>>>8&255]^c[m&255]^b[u++],h=a,l=p,m=r;a=(e[h>>>24]<<24|e[l>>>16&255]<<16|e[m>>>8&255]<<8|e[n&255])^b[u++];p=(e[l>>>24]<<24|e[m>>>16&255]<<16|e[n>>>8&255]<<8|e[h&255])^b[u++];r= -(e[m>>>24]<<24|e[n>>>16&255]<<16|e[h>>>8&255]<<8|e[l&255])^b[u++];n=(e[n>>>24]<<24|e[h>>>16&255]<<16|e[l>>>8&255]<<8|e[m&255])^b[u++];return[a>>>0,p>>>0,r>>>0,n>>>0]}function k(a){this._key=c(a);this._reset()}var e=h("safe-buffer").Buffer,l=[0,1,2,4,8,16,32,64,128,27,54],n=function(){for(var a=Array(256),b=0;256>b;b++)a[b]=128>b?b<<1:b<<1^283;for(var b=[],c=[],e=[[],[],[],[]],d=[[],[],[],[]],g=0,k=0,h=0;256>h;++h){var l=k^k<<1^k<<2^k<<3^k<<4,l=l>>>8^l&255^99;b[g]=l;c[l]=g;var n=a[g],w=a[n],v=a[w], -y=257*a[l]^16843008*l;e[0][g]=y<<24|y>>>8;e[1][g]=y<<16|y>>>16;e[2][g]=y<<8|y>>>24;e[3][g]=y;y=16843009*v^65537*w^257*n^16843008*g;d[0][l]=y<<24|y>>>8;d[1][l]=y<<16|y>>>16;d[2][l]=y<<8|y>>>24;d[3][l]=y;0===g?g=k=1:(g=n^a[a[a[v^n]]],k^=a[a[k]])}return{SBOX:b,INV_SBOX:c,SUB_MIX:e,INV_SUB_MIX:d}}();k.blockSize=16;k.keySize=32;k.prototype.blockSize=k.blockSize;k.prototype.keySize=k.keySize;k.prototype._reset=function(){for(var a=this._key,b=a.length,c=b+6,e=4*(c+1),d=[],g=0;g>>24,a=n.SBOX[a>>>24]<<24|n.SBOX[a>>>16&255]<<16|n.SBOX[a>>>8&255]<<8|n.SBOX[a&255],a^=l[g/b|0]<<24):6>>24]<<24|n.SBOX[a>>>16&255]<<16|n.SBOX[a>>>8&255]<<8|n.SBOX[a&255]),d[g]=d[g-b]^a;b=[];for(g=0;gg||4>=a?k:n.INV_SUB_MIX[0][n.SBOX[k>>>24]]^n.INV_SUB_MIX[1][n.SBOX[k>>>16&255]]^n.INV_SUB_MIX[2][n.SBOX[k>>>8&255]]^n.INV_SUB_MIX[3][n.SBOX[k&255]]}this._nRounds=c;this._keySchedule=d;this._invKeySchedule= -b};k.prototype.encryptBlockRaw=function(a){a=c(a);return g(a,this._keySchedule,n.SUB_MIX,n.SBOX,this._nRounds)};k.prototype.encryptBlock=function(a){a=this.encryptBlockRaw(a);var b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[1],4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[3],12);return b};k.prototype.decryptBlock=function(a){a=c(a);var b=a[1];a[1]=a[3];a[3]=b;a=g(a,this._invKeySchedule,n.INV_SUB_MIX,n.INV_SBOX,this._nRounds);b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[3], -4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[1],12);return b};k.prototype.scrub=function(){d(this._keySchedule);d(this._invKeySchedule);d(this._key)};a.exports.AES=k},{"safe-buffer":160}],38:[function(h,a,b){function c(a,b,c,h){k.call(this);var f=g.alloc(4,0);this._cipher=new d.AES(b);f=this._cipher.encryptBlock(f);this._ghash=new e(f);b=c;if(12===b.length)this._finID=g.concat([b,g.from([0,0,0,1])]),c=g.concat([b,g.from([0,0,0,2])]);else{c=new e(f);var f=b.length,l=f%16;c.update(b);l&&c.update(g.alloc(16- -l,0));c.update(g.alloc(8,0));b=8*f;f=g.alloc(8);f.writeUIntBE(b,0,8);c.update(f);this._finID=c.state;c=g.from(this._finID);n(c)}this._prev=g.from(c);this._cache=g.allocUnsafe(0);this._secCache=g.allocUnsafe(0);this._decrypt=h;this._len=this._alen=0;this._mode=a;this._authTag=null;this._called=!1}var d=h("./aes"),g=h("safe-buffer").Buffer,k=h("cipher-base");b=h("inherits");var e=h("./ghash"),l=h("buffer-xor"),n=h("./incr32");b(c,k);c.prototype._update=function(a){if(!this._called&&this._alen){var b= -16-this._alen%16;16>b&&(b=g.alloc(b,0),this._ghash.update(b))}this._called=!0;b=this._mode.encrypt(this,a);this._decrypt?this._ghash.update(a):this._ghash.update(b);this._len+=a.length;return b};c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var a=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),b;if(b=this._decrypt){b=this._authTag;var c=0;a.length!==b.length&&c++;for(var e=Math.min(a.length, -b.length),d=0;d>>24]^k[l>>>16&255]^h[m>>>8&255]^c[n&255]^b[u++],p=f[l>>>24]^k[m>>>16&255]^h[n>>>8&255]^c[g&255]^b[u++],r=f[m>>>24]^k[n>>>16&255]^h[g>>>8&255]^c[l&255]^b[u++],n=f[n>>>24]^k[g>>>16&255]^h[l>>>8&255]^c[m&255]^b[u++],g=a,l=p,m=r;a=(e[g>>>24]<<24|e[l>>>16&255]<<16|e[m>>>8&255]<<8|e[n&255])^b[u++];p=(e[l>>>24]<<24|e[m>>>16&255]<<16|e[n>>>8&255]<<8|e[g&255])^b[u++];r= +(e[m>>>24]<<24|e[n>>>16&255]<<16|e[g>>>8&255]<<8|e[l&255])^b[u++];n=(e[n>>>24]<<24|e[g>>>16&255]<<16|e[l>>>8&255]<<8|e[m&255])^b[u++];return[a>>>0,p>>>0,r>>>0,n>>>0]}function k(a){this._key=c(a);this._reset()}var e=g("safe-buffer").Buffer,l=[0,1,2,4,8,16,32,64,128,27,54],n=function(){for(var a=Array(256),b=0;256>b;b++)a[b]=128>b?b<<1:b<<1^283;for(var b=[],c=[],e=[[],[],[],[]],d=[[],[],[],[]],k=0,h=0,g=0;256>g;++g){var l=h^h<<1^h<<2^h<<3^h<<4,l=l>>>8^l&255^99;b[k]=l;c[l]=k;var n=a[k],w=a[n],v=a[w], +y=257*a[l]^16843008*l;e[0][k]=y<<24|y>>>8;e[1][k]=y<<16|y>>>16;e[2][k]=y<<8|y>>>24;e[3][k]=y;y=16843009*v^65537*w^257*n^16843008*k;d[0][l]=y<<24|y>>>8;d[1][l]=y<<16|y>>>16;d[2][l]=y<<8|y>>>24;d[3][l]=y;0===k?k=h=1:(k=n^a[a[a[v^n]]],h^=a[a[h]])}return{SBOX:b,INV_SBOX:c,SUB_MIX:e,INV_SUB_MIX:d}}();k.blockSize=16;k.keySize=32;k.prototype.blockSize=k.blockSize;k.prototype.keySize=k.keySize;k.prototype._reset=function(){for(var a=this._key,b=a.length,c=b+6,e=4*(c+1),d=[],k=0;k>>24,a=n.SBOX[a>>>24]<<24|n.SBOX[a>>>16&255]<<16|n.SBOX[a>>>8&255]<<8|n.SBOX[a&255],a^=l[k/b|0]<<24):6>>24]<<24|n.SBOX[a>>>16&255]<<16|n.SBOX[a>>>8&255]<<8|n.SBOX[a&255]),d[k]=d[k-b]^a;b=[];for(k=0;kk||4>=a?h:n.INV_SUB_MIX[0][n.SBOX[h>>>24]]^n.INV_SUB_MIX[1][n.SBOX[h>>>16&255]]^n.INV_SUB_MIX[2][n.SBOX[h>>>8&255]]^n.INV_SUB_MIX[3][n.SBOX[h&255]]}this._nRounds=c;this._keySchedule=d;this._invKeySchedule= +b};k.prototype.encryptBlockRaw=function(a){a=c(a);return h(a,this._keySchedule,n.SUB_MIX,n.SBOX,this._nRounds)};k.prototype.encryptBlock=function(a){a=this.encryptBlockRaw(a);var b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[1],4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[3],12);return b};k.prototype.decryptBlock=function(a){a=c(a);var b=a[1];a[1]=a[3];a[3]=b;a=h(a,this._invKeySchedule,n.INV_SUB_MIX,n.INV_SBOX,this._nRounds);b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[3], +4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[1],12);return b};k.prototype.scrub=function(){d(this._keySchedule);d(this._invKeySchedule);d(this._key)};a.exports.AES=k},{"safe-buffer":160}],38:[function(g,a,b){function c(a,b,c,g){k.call(this);var f=h.alloc(4,0);this._cipher=new d.AES(b);f=this._cipher.encryptBlock(f);this._ghash=new e(f);b=c;if(12===b.length)this._finID=h.concat([b,h.from([0,0,0,1])]),c=h.concat([b,h.from([0,0,0,2])]);else{c=new e(f);var f=b.length,l=f%16;c.update(b);l&&c.update(h.alloc(16- +l,0));c.update(h.alloc(8,0));b=8*f;f=h.alloc(8);f.writeUIntBE(b,0,8);c.update(f);this._finID=c.state;c=h.from(this._finID);n(c)}this._prev=h.from(c);this._cache=h.allocUnsafe(0);this._secCache=h.allocUnsafe(0);this._decrypt=g;this._len=this._alen=0;this._mode=a;this._authTag=null;this._called=!1}var d=g("./aes"),h=g("safe-buffer").Buffer,k=g("cipher-base");b=g("inherits");var e=g("./ghash"),l=g("buffer-xor"),n=g("./incr32");b(c,k);c.prototype._update=function(a){if(!this._called&&this._alen){var b= +16-this._alen%16;16>b&&(b=h.alloc(b,0),this._ghash.update(b))}this._called=!0;b=this._mode.encrypt(this,a);this._decrypt?this._ghash.update(a):this._ghash.update(b);this._len+=a.length;return b};c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var a=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),b;if(b=this._decrypt){b=this._authTag;var c=0;a.length!==b.length&&c++;for(var e=Math.min(a.length, +b.length),d=0;d>>0,0);b.writeUInt32BE(a[1]>>>0,4);b.writeUInt32BE(a[2]>>>0,8);b.writeUInt32BE(a[3]>>>0, -12);return b}function d(a){this.h=a;this.state=g.alloc(16,0);this.cache=g.allocUnsafe(0)}var g=h("safe-buffer").Buffer,k=g.alloc(16,0);d.prototype.ghash=function(a){for(var b=-1;++b++g;){if(d=0!==(this.state[~~(g/8)]&1<<7-g%8))b[0]^=a[0],b[1]^=a[1],b[2]^=a[2],b[3]^=a[3];f=0!==(a[3]&1);for(d=3;0< -d;d--)a[d]=a[d]>>>1|(a[d-1]&1)<<31;a[0]>>>=1;f&&(a[0]^=-520093696)}this.state=c(b)};d.prototype.update=function(a){for(this.cache=g.concat([this.cache,a]);16<=this.cache.length;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};d.prototype.final=function(a,b){this.cache.length&&this.ghash(g.concat([this.cache,k],16));this.ghash(c([0,a,0,b]));return this.state};a.exports=d},{"safe-buffer":160}],43:[function(h,a,b){a.exports=function(a){for(var b=a.length,c;b--;)if(c=a.readUInt8(b), -255===c)a.writeUInt8(0,b);else{c++;a.writeUInt8(c,b);break}}},{}],44:[function(h,a,b){var c=h("buffer-xor");b.encrypt=function(a,b){b=c(b,a._prev);a._prev=a._cipher.encryptBlock(b);return a._prev};b.decrypt=function(a,b){var d=a._prev;a._prev=b;a=a._cipher.decryptBlock(b);return c(a,d)}},{"buffer-xor":64}],45:[function(h,a,b){function c(a,b,c){var e=b.length,f=g(b,a._cache);a._cache=a._cache.slice(e);a._prev=d.concat([a._prev,c?b:f]);return f}var d=h("safe-buffer").Buffer,g=h("buffer-xor");b.encrypt= -function(a,b,g){for(var e=d.allocUnsafe(0),f;b.length;)if(0===a._cache.length&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=d.allocUnsafe(0)),a._cache.length<=b.length)f=a._cache.length,e=d.concat([e,c(a,b.slice(0,f),g)]),b=b.slice(f);else{e=d.concat([e,c(a,b,g)]);break}return e}},{"buffer-xor":64,"safe-buffer":160}],46:[function(h,a,b){var c=h("safe-buffer").Buffer;b.encrypt=function(a,b,k){for(var e=b.length,d=c.allocUnsafe(e),g=-1;++g++x;){u= -h._cipher.encryptBlock(h._prev);q=p&1<<7-x?128:0;A=u[0]^q;C+=(A&128)>>x%8;u=h;var D=h._prev;q=r?q:A;A=D.length;for(var w=-1,v=c.allocUnsafe(D.length),D=c.concat([D,c.from([q])]);++w>7;u._prev=v}d[f]=C}return d}},{"safe-buffer":160}],47:[function(h,a,b){(function(a){b.encrypt=function(b,c,k){for(var e=c.length,d=a.allocUnsafe(e),g=-1;++g>>0,0);b.writeUInt32BE(a[1]>>>0,4);b.writeUInt32BE(a[2]>>>0,8);b.writeUInt32BE(a[3]>>>0, +12);return b}function d(a){this.h=a;this.state=h.alloc(16,0);this.cache=h.allocUnsafe(0)}var h=g("safe-buffer").Buffer,k=h.alloc(16,0);d.prototype.ghash=function(a){for(var b=-1;++b++k;){if(d=0!==(this.state[~~(k/8)]&1<<7-k%8))b[0]^=a[0],b[1]^=a[1],b[2]^=a[2],b[3]^=a[3];f=0!==(a[3]&1);for(d=3;0< +d;d--)a[d]=a[d]>>>1|(a[d-1]&1)<<31;a[0]>>>=1;f&&(a[0]^=-520093696)}this.state=c(b)};d.prototype.update=function(a){for(this.cache=h.concat([this.cache,a]);16<=this.cache.length;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};d.prototype.final=function(a,b){this.cache.length&&this.ghash(h.concat([this.cache,k],16));this.ghash(c([0,a,0,b]));return this.state};a.exports=d},{"safe-buffer":160}],43:[function(g,a,b){a.exports=function(a){for(var b=a.length,c;b--;)if(c=a.readUInt8(b), +255===c)a.writeUInt8(0,b);else{c++;a.writeUInt8(c,b);break}}},{}],44:[function(g,a,b){var c=g("buffer-xor");b.encrypt=function(a,b){b=c(b,a._prev);a._prev=a._cipher.encryptBlock(b);return a._prev};b.decrypt=function(a,b){var d=a._prev;a._prev=b;a=a._cipher.decryptBlock(b);return c(a,d)}},{"buffer-xor":64}],45:[function(g,a,b){function c(a,b,c){var e=b.length,f=h(b,a._cache);a._cache=a._cache.slice(e);a._prev=d.concat([a._prev,c?b:f]);return f}var d=g("safe-buffer").Buffer,h=g("buffer-xor");b.encrypt= +function(a,b,h){for(var e=d.allocUnsafe(0),f;b.length;)if(0===a._cache.length&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=d.allocUnsafe(0)),a._cache.length<=b.length)f=a._cache.length,e=d.concat([e,c(a,b.slice(0,f),h)]),b=b.slice(f);else{e=d.concat([e,c(a,b,h)]);break}return e}},{"buffer-xor":64,"safe-buffer":160}],46:[function(g,a,b){var c=g("safe-buffer").Buffer;b.encrypt=function(a,b,k){for(var e=b.length,d=c.allocUnsafe(e),h=-1;++h++x;){u= +g._cipher.encryptBlock(g._prev);q=p&1<<7-x?128:0;A=u[0]^q;C+=(A&128)>>x%8;u=g;var D=g._prev;q=r?q:A;A=D.length;for(var w=-1,v=c.allocUnsafe(D.length),D=c.concat([D,c.from([q])]);++w>7;u._prev=v}d[f]=C}return d}},{"safe-buffer":160}],47:[function(g,a,b){(function(a){b.encrypt=function(b,c,k){for(var e=c.length,d=a.allocUnsafe(e),h=-1;++h=a.cmpn(0))throw Error("invalid sig");if(a.cmp(b)>=b)throw Error("invalid sig");}var g=h("bn.js"),k=h("elliptic").ec,e=h("parse-asn1"),l=h("./curves.json");a.exports=function(a,f,d,h,r){d=e(d); -if("ec"===d.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong public key type");h=l[d.data.algorithm.curve.join(".")];if(!h)throw Error("unknown curve "+d.data.algorithm.curve.join("."));return(new k(h)).verify(f,a,d.data.subjectPrivateKey.data)}if("dsa"===d.type){if("dsa"!==h)throw Error("wrong public key type");h=d.data.p;r=d.data.q;var m=d.data.g;d=d.data.pub_key;var n=e.signature.decode(a,"der");a=n.s;n=n.r;c(a,r);c(n,r);var p=g.mont(h);a=a.invm(r);return 0===m.toRed(p).redPow((new g(f)).mul(a).mod(r)).fromRed().mul(d.toRed(p).redPow(n.mul(a).mod(r)).fromRed()).mod(h).mod(r).cmp(n)}if("rsa"!== -h&&"ecdsa/rsa"!==h)throw Error("wrong public key type");f=b.concat([r,f]);r=d.modulus.byteLength();h=[1];for(m=0;f.length+h.length+2m?1:0;r=Math.min(a.length,h.length);a.length!==h.length&&(d=1);for(n=-1;++nt)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=d.prototype;return a}function d(a,b,c){if("number"===typeof a){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); -return e(a)}return g(a,b,c)}function g(a,b,e){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(G(a)){if(0>b||a.byteLength=a.cmpn(0))throw Error("invalid sig");if(a.cmp(b)>=b)throw Error("invalid sig");}var h=g("bn.js"),k=g("elliptic").ec,e=g("parse-asn1"),l=g("./curves.json");a.exports=function(a,f,d,g,r){d=e(d); +if("ec"===d.type){if("ecdsa"!==g&&"ecdsa/rsa"!==g)throw Error("wrong public key type");g=l[d.data.algorithm.curve.join(".")];if(!g)throw Error("unknown curve "+d.data.algorithm.curve.join("."));return(new k(g)).verify(f,a,d.data.subjectPrivateKey.data)}if("dsa"===d.type){if("dsa"!==g)throw Error("wrong public key type");g=d.data.p;r=d.data.q;var m=d.data.g;d=d.data.pub_key;var n=e.signature.decode(a,"der");a=n.s;n=n.r;c(a,r);c(n,r);var p=h.mont(g);a=a.invm(r);return 0===m.toRed(p).redPow((new h(f)).mul(a).mod(r)).fromRed().mul(d.toRed(p).redPow(n.mul(a).mod(r)).fromRed()).mod(g).mod(r).cmp(n)}if("rsa"!== +g&&"ecdsa/rsa"!==g)throw Error("wrong public key type");f=b.concat([r,f]);r=d.modulus.byteLength();g=[1];for(m=0;f.length+g.length+2m?1:0;r=Math.min(a.length,g.length);a.length!==g.length&&(d=1);for(n=-1;++nt)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=d.prototype;return a}function d(a,b,c){if("number"===typeof a){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); +return e(a)}return h(a,b,c)}function h(a,b,e){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(G(a)){if(0>b||a.byteLengtha)throw new RangeError('"size" argument must not be negative');}function e(a){k(a);return c(0>a?0:f(a)|0)}function l(a){for(var b=0>a.length?0:f(a.length)|0,e=c(b),d=0;d=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return a|0}function m(a,b){if(d.isBuffer(a))return a.length;if("function"=== typeof ArrayBuffer.isView&&ArrayBuffer.isView(a)||G(a))return a.byteLength;"string"!==typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var e=!1;;)switch(b){case "ascii":case "latin1":case "binary":return c;case "utf8":case "utf-8":case void 0:return z(a).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*c;case "hex":return c>>>1;case "base64":return E.toByteArray(y(a)).length;default:if(e)return z(a).length;b=(""+b).toLowerCase();e=!0}}function p(a,b,c){var e=!1;if(void 0=== b||0>b)b=0;if(b>this.length)return"";if(void 0===c||c>this.length)c=this.length;if(0>=c)return"";c>>>=0;b>>>=0;if(c<=b)return"";for(a||(a="utf8");;)switch(a){case "hex":a=b;b=c;c=this.length;if(!a||0>a)a=0;if(!b||0>b||b>c)b=c;e="";for(c=a;ce?"0"+e.toString(16):e.toString(16),e=a+e;return e;case "utf8":case "utf-8":return C(this,b,c);case "ascii":a="";for(c=Math.min(this.length,c);bc&&(c=-2147483648);c=+c;c!==c&&(c=f?0:a.length-1);0>c&&(c=a.length+c);if(c>=a.length){if(f)return-1;c=a.length-1}else if(0>c)if(f)c=0;else return-1;"string"===typeof b&&(b=d.from(b,e));if(d.isBuffer(b))return 0===b.length?-1:x(a,b,c,e,f);if("number"===typeof b)return b&=255,"function"===typeof Uint8Array.prototype.indexOf?f?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):x(a,[b],c,e,f);throw new TypeError("val must be string, number or Buffer"); -}function x(a,b,c,e,f){function d(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}var g=1,k=a.length,h=b.length;if(void 0!==e&&(e=String(e).toLowerCase(),"ucs2"===e||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(2>a.length||2>b.length)return-1;g=2;k/=2;h/=2;c/=2}if(f)for(e=-1;ck&&(c=k-h);0<=c;c--){k=!0;for(e=0;ef&&(d=f);break;case 2:k=a[b+1];128===(k&192)&&(f=(f&31)<<6|k&63,127f||57343f&&(d=f))}}null===d?(d= -65533,g=1):65535>>10&1023|55296),d=56320|d&1023);e.push(d);b+=g}a=e.length;if(a<=N)e=String.fromCharCode.apply(String,e);else{c="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length");}function A(a,b,c,e,f,g){if(!d.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>f||b< -g)throw new RangeError('"value" argument is out of bounds');if(c+e>a.length)throw new RangeError("Index out of range");}function D(a,b,c,e,f,d){if(c+e>a.length)throw new RangeError("Index out of range");if(0>c)throw new RangeError("Index out of range");}function w(a,b,c,e,f){b=+b;c>>>=0;f||D(a,b,c,4,3.4028234663852886E38,-3.4028234663852886E38);I.write(a,b,c,e,23,4);return c+4}function v(a,b,c,e,f){b=+b;c>>>=0;f||D(a,b,c,8,1.7976931348623157E308,-1.7976931348623157E308);I.write(a,b,c,e,52,8);return c+ -8}function y(a){a=a.trim().replace(J,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="\x3d";return a}function z(a,b){b=b||Infinity;for(var c,e=a.length,f=null,d=[],g=0;gc){if(!f){if(56319c){-1<(b-=3)&&d.push(239,191,189);f=c;continue}c=(f-55296<<10|c-56320)+65536}else f&&-1<(b-=3)&&d.push(239,191,189);f=null;if(128>c){if(0>--b)break; +}function x(a,b,c,e,f){function d(a,b){return 1===k?a[b]:a.readUInt16BE(b*k)}var k=1,h=a.length,g=b.length;if(void 0!==e&&(e=String(e).toLowerCase(),"ucs2"===e||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(2>a.length||2>b.length)return-1;k=2;h/=2;g/=2;c/=2}if(f)for(e=-1;ch&&(c=h-g);0<=c;c--){h=!0;for(e=0;ef&&(d=f);break;case 2:h=a[b+1];128===(h&192)&&(f=(f&31)<<6|h&63,127f||57343f&&(d=f))}}null===d?(d= +65533,k=1):65535>>10&1023|55296),d=56320|d&1023);e.push(d);b+=k}a=e.length;if(a<=N)e=String.fromCharCode.apply(String,e);else{c="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length");}function A(a,b,c,e,f,k){if(!d.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>f||b< +k)throw new RangeError('"value" argument is out of bounds');if(c+e>a.length)throw new RangeError("Index out of range");}function D(a,b,c,e,f,d){if(c+e>a.length)throw new RangeError("Index out of range");if(0>c)throw new RangeError("Index out of range");}function w(a,b,c,e,f){b=+b;c>>>=0;f||D(a,b,c,4,3.4028234663852886E38,-3.4028234663852886E38);I.write(a,b,c,e,23,4);return c+4}function v(a,b,c,e,f){b=+b;c>>>=0;f||D(a,b,c,8,1.7976931348623157E308,-1.7976931348623157E308);I.write(a,b,c,e,52,8);return c+ +8}function y(a){a=a.trim().replace(J,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="\x3d";return a}function z(a,b){b=b||Infinity;for(var c,e=a.length,f=null,d=[],k=0;kc){if(!f){if(56319c){-1<(b-=3)&&d.push(239,191,189);f=c;continue}c=(f-55296<<10|c-56320)+65536}else f&&-1<(b-=3)&&d.push(239,191,189);f=null;if(128>c){if(0>--b)break; d.push(c)}else if(2048>c){if(0>(b-=2))break;d.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;d.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;d.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error("Invalid code point");}return d}function F(a){for(var b=[],c=0;c=b.length||f>=a.length);++f)b[f+c]=a[f];return f}function G(a){return a instanceof ArrayBuffer|| -null!=a&&null!=a.constructor&&"ArrayBuffer"===a.constructor.name&&"number"===typeof a.byteLength}var E=h("base64-js"),I=h("ieee754");b.Buffer=d;b.SlowBuffer=function(a){+a!=a&&(a=0);return d.alloc(+a)};b.INSPECT_MAX_BYTES=50;var t=2147483647;b.kMaxLength=t;d.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1);a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===a.foo()}catch(ea){return!1}}();d.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error|| -console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&($jscomp.initSymbol(),Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));d.poolSize=8192;d.from=function(a,b,c){return g(a,b,c)};d.prototype.__proto__=Uint8Array.prototype; -d.__proto__=Uint8Array;d.alloc=function(a,b,e){k(a);a=0>=a?c(a):void 0!==b?"string"===typeof e?c(a).fill(b,e):c(a).fill(b):c(a);return a};d.allocUnsafe=function(a){return e(a)};d.allocUnsafeSlow=function(a){return e(a)};d.isBuffer=function(a){return null!=a&&!0===a._isBuffer};d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,e=b.length,f=0,g=Math.min(c,e);f=a?c(a):void 0!==b?"string"===typeof e?c(a).fill(b,e):c(a).fill(b):c(a);return a};d.allocUnsafe=function(a){return e(a)};d.allocUnsafeSlow=function(a){return e(a)};d.isBuffer=function(a){return null!=a&&!0===a._isBuffer};d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,e=b.length,f=0,k=Math.min(c,e);fc&&(a+=" ... "));return"\x3cBuffer "+a+"\x3e"};d.prototype.compare=function(a,b,c,e,f){if(!d.isBuffer(a))throw new TypeError("Argument must be a Buffer");void 0===b&&(b=0);void 0===c&&(c=a?a.length:0);void 0===e&&(e=0);void 0===f&&(f=this.length);if(0>b||c>a.length||0>e||f>this.length)throw new RangeError("out of range index");if(e>=f&&b>=c)return 0;if(e>= -f)return-1;if(b>=c)return 1;b>>>=0;c>>>=0;e>>>=0;f>>>=0;if(this===a)return 0;var g=f-e,k=c-b,h=Math.min(g,k);e=this.slice(e,f);a=a.slice(b,c);for(b=0;b=c)return 1;b>>>=0;c>>>=0;e>>>=0;f>>>=0;if(this===a)return 0;var k=f-e,h=c-b,g=Math.min(k,h);e=this.slice(e,f);a=a.slice(b,c);for(b=0;b>>=0,isFinite(c)?(c>>>=0,void 0===e&&(e="utf8")):(e=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f=this.length-b;if(void 0===c||c>f)c=f;if(0c||0>b)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(f=!1;;)switch(e){case "hex":a:{b=Number(b)||0;e=this.length-b;c?(c=Number(c),c>e&&(c=e)):c=e;e=a.length;if(0!==e% -2)throw new TypeError("Invalid hex string");c>e/2&&(c=e/2);for(e=0;e(e-=2));++k)d=a.charCodeAt(k),f=d>> -8,d%=256,g.push(d),g.push(f);return B(g,this,b,c);default:if(f)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase();f=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;d.prototype.slice=function(a,b){var c=this.length;a=~~a;b=void 0===b?c:~~b;0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);b>>= +2)throw new TypeError("Invalid hex string");c>e/2&&(c=e/2);for(e=0;e(e-=2));++h)d=a.charCodeAt(h),f=d>> +8,d%=256,k.push(d),k.push(f);return B(k,this,b,c);default:if(f)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase();f=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;d.prototype.slice=function(a,b){var c=this.length;a=~~a;b=void 0===b?c:~~b;0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);b>>= 0;b>>>=0;c||q(a,b,this.length);c=this[a];for(var e=1,f=0;++f>>=0;b>>>=0;c||q(a,b,this.length);c=this[a+--b];for(var e=1;0>>=0;b||q(a,1,this.length);return this[a]};d.prototype.readUInt16LE=function(a,b){a>>>=0;b||q(a,2,this.length);return this[a]|this[a+1]<<8};d.prototype.readUInt16BE=function(a,b){a>>>=0;b||q(a,2,this.length);return this[a]<< 8|this[a+1]};d.prototype.readUInt32LE=function(a,b){a>>>=0;b||q(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};d.prototype.readUInt32BE=function(a,b){a>>>=0;b||q(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};d.prototype.readIntLE=function(a,b,c){a>>>=0;b>>>=0;c||q(a,b,this.length);c=this[a];for(var e=1,f=0;++f=128*e&&(c-=Math.pow(2,8*b));return c};d.prototype.readIntBE=function(a,b,c){a>>>=0;b>>>=0; c||q(a,b,this.length);c=b;for(var e=1,f=this[a+--c];0=128*e&&(f-=Math.pow(2,8*b));return f};d.prototype.readInt8=function(a,b){a>>>=0;b||q(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};d.prototype.readInt16LE=function(a,b){a>>>=0;b||q(a,2,this.length);a=this[a]|this[a+1]<<8;return a&32768?a|4294901760:a};d.prototype.readInt16BE=function(a,b){a>>>=0;b||q(a,2,this.length);a=this[a+1]|this[a]<<8;return a&32768?a|4294901760:a};d.prototype.readInt32LE= @@ -976,142 +976,142 @@ a&&0===d&&0!==this[b+e+1]&&(d=1),this[b+e]=(a/f>>0)-d&255;return b+c};d.prototyp a,b,4,2147483647,-2147483648);this[b]=a&255;this[b+1]=a>>>8;this[b+2]=a>>>16;this[b+3]=a>>>24;return b+4};d.prototype.writeInt32BE=function(a,b,c){a=+a;b>>>=0;c||A(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};d.prototype.writeFloatLE=function(a,b,c){return w(this,a,b,!0,c)};d.prototype.writeFloatBE=function(a,b,c){return w(this,a,b,!1,c)};d.prototype.writeDoubleLE=function(a,b,c){return v(this,a,b,!0,c)};d.prototype.writeDoubleBE= function(a,b,c){return v(this,a,b,!1,c)};d.prototype.copy=function(a,b,c,e){c||(c=0);e||0===e||(e=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>e)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length);a.length-bf)for(e=0;ef&&(a=f)}if(void 0!==e&&"string"!==typeof e)throw new TypeError("encoding must be a string");if("string"===typeof e&&!d.isEncoding(e))throw new TypeError("Unknown encoding: "+ -e);}else"number"===typeof a&&(a&=255);if(0>b||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(e=b;eb||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(e=b;e>>2),k=0,f=0;k>5]|=128<>>9<<4)+14]=b;b=1732584193;for(var c=-271733879,f=-1732584194,h=271733878,m=0;m>>32-d,c)}function g(a,b,c,e,g,k,h){return d(b&c|~b&e,a,b,g,k,h)}function k(a,b,c,e,g,k,h){return d(b&e|c&~e,a,b,g,k,h)}function e(a,b,c,e,g,k,h){return d(c^(b|~e),a,b,g,k,h)}function l(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}var n=h("./make-hash");a.exports=function(a){return n(a,c)}},{"./make-hash":70}],72:[function(h,a,b){function c(a,b){g.call(this,"digest"); -"string"===typeof b&&(b=k.from(b));var c="sha512"===a||"sha384"===a?128:64;this._alg=a;this._key=b;b.length>c?b=("rmd160"===a?new l:n(a)).update(b).digest():b.lengthb.length&&(b=d.concat([b,k],64));a=this._ipad=d.allocUnsafe(64);for(var c=this._opad=d.allocUnsafe(64),e=0;64>e;e++)a[e]=b[e]^54,c[e]=b[e]^92;this._hash=[a]}b=h("inherits");var d=h("safe-buffer").Buffer,g=h("cipher-base"),k=d.alloc(128);b(c,g);c.prototype._update=function(a){this._hash.push(a)};c.prototype._final=function(){var a=this._alg(d.concat(this._hash));return this._alg(d.concat([this._opad,a]))};a.exports=c}, -{"cipher-base":66,inherits:119,"safe-buffer":160}],74:[function(h,a,b){b.randomBytes=b.rng=b.pseudoRandomBytes=b.prng=h("randombytes");b.createHash=b.Hash=h("create-hash");b.createHmac=b.Hmac=h("create-hmac");a=h("browserify-sign/algos");a=Object.keys(a);var c="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(a);b.getHashes=function(){return c};a=h("pbkdf2");b.pbkdf2=a.pbkdf2;b.pbkdf2Sync=a.pbkdf2Sync;a=h("browserify-cipher");b.Cipher=a.Cipher;b.createCipher=a.createCipher;b.Cipheriv= -a.Cipheriv;b.createCipheriv=a.createCipheriv;b.Decipher=a.Decipher;b.createDecipher=a.createDecipher;b.Decipheriv=a.Decipheriv;b.createDecipheriv=a.createDecipheriv;b.getCiphers=a.getCiphers;b.listCiphers=a.listCiphers;a=h("diffie-hellman");b.DiffieHellmanGroup=a.DiffieHellmanGroup;b.createDiffieHellmanGroup=a.createDiffieHellmanGroup;b.getDiffieHellman=a.getDiffieHellman;b.createDiffieHellman=a.createDiffieHellman;b.DiffieHellman=a.DiffieHellman;a=h("browserify-sign");b.createSign=a.createSign;b.Sign= -a.Sign;b.createVerify=a.createVerify;b.Verify=a.Verify;b.createECDH=h("create-ecdh");h=h("public-encrypt");b.publicEncrypt=h.publicEncrypt;b.privateEncrypt=h.privateEncrypt;b.publicDecrypt=h.publicDecrypt;b.privateDecrypt=h.privateDecrypt;b.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify");};b.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4, -DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":54,"browserify-sign":61,"browserify-sign/algos":58,"create-ecdh":68,"create-hash":69,"create-hmac":72,"diffie-hellman":81,pbkdf2:132,"public-encrypt":139,randombytes:145}],75:[function(h,a,b){b.utils=h("./des/utils"); -b.Cipher=h("./des/cipher");b.DES=h("./des/des");b.CBC=h("./des/cbc");b.EDE=h("./des/ede")},{"./des/cbc":76,"./des/cipher":77,"./des/des":78,"./des/ede":79,"./des/utils":80}],76:[function(h,a,b){function c(a){d.equal(a.length,8,"Invalid IV length");this.iv=Array(8);for(var b=0;b>>1],c=k.r28shl(c,f);b=k.r28shl(b,f);k.pc2(c,b,a.keys,e)}};d.prototype._update=function(a,b,c,e){var f=this._desState, -d=k.readUInt32BE(a,b);a=k.readUInt32BE(a,b+4);k.ip(d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];"encrypt"===this.type?this._encrypt(f,d,a,f.tmp,0):this._decrypt(f,d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];k.writeUInt32BE(c,d,e);k.writeUInt32BE(c,a,e+4)};d.prototype._pad=function(a,b){for(var c=a.length-b;b>>0;b=h}k.rip(c,b,e,d)};d.prototype._decrypt=function(a,b,c,e,d){for(var f=a.keys.length-2;0<=f;f-=2){var g=a.keys[f],h=a.keys[f+1];k.expand(c,a.tmp,0);g^=a.tmp[0];h^=a.tmp[1];g=k.substitute(g,h);g=k.permute(g);h=c;c=(b^g)>>>0;b=h}k.rip(c,b,e,d)}},{"../des":75,inherits:119,"minimalistic-assert":125}],79:[function(h,a,b){function c(a,b){g.equal(b.length,24, -"Invalid key length");var c=b.slice(0,8),d=b.slice(8,16);b=b.slice(16,24);this.ciphers="encrypt"===a?[e.create({type:"encrypt",key:c}),e.create({type:"decrypt",key:d}),e.create({type:"encrypt",key:b})]:[e.create({type:"decrypt",key:b}),e.create({type:"encrypt",key:d}),e.create({type:"decrypt",key:c})]}function d(a){k.call(this,a);this._edeState=new c(this.type,this.options.key)}var g=h("minimalistic-assert");b=h("inherits");h=h("../des");var k=h.Cipher,e=h.DES;b(d,k);a.exports=d;d.create=function(a){return new d(a)}; -d.prototype._update=function(a,b,c,e){var f=this._edeState;f.ciphers[0]._update(a,b,c,e);f.ciphers[1]._update(c,e,c,e);f.ciphers[2]._update(c,e,c,e)};d.prototype._pad=e.prototype._pad;d.prototype._unpad=e.prototype._unpad},{"../des":75,inherits:119,"minimalistic-assert":125}],80:[function(h,a,b){b.readUInt32BE=function(a,b){return(a[0+b]<<24|a[1+b]<<16|a[2+b]<<8|a[3+b])>>>0};b.writeUInt32BE=function(a,b,c){a[0+c]=b>>>24;a[1+c]=b>>>16&255;a[2+c]=b>>>8&255;a[3+c]=b&255};b.ip=function(a,b,c,d){for(var e= -0,g=0,k=6;0<=k;k-=2){for(var h=0;24>=h;h+=8)e<<=1,e|=b>>>h+k&1;for(h=0;24>=h;h+=8)e<<=1,e|=a>>>h+k&1}for(k=6;0<=k;k-=2){for(h=1;25>=h;h+=8)g<<=1,g|=b>>>h+k&1;for(h=1;25>=h;h+=8)g<<=1,g|=a>>>h+k&1}c[d+0]=e>>>0;c[d+1]=g>>>0};b.rip=function(a,b,c,d){for(var e=0,g=0,k=0;4>k;k++)for(var h=24;0<=h;h-=8)e<<=1,e|=b>>>h+k&1,e<<=1,e|=a>>>h+k&1;for(k=4;8>k;k++)for(h=24;0<=h;h-=8)g<<=1,g|=b>>>h+k&1,g<<=1,g|=a>>>h+k&1;c[d+0]=e>>>0;c[d+1]=g>>>0};b.pc1=function(a,b,c,d){for(var e=0,g=0,k=7;5<=k;k--){for(var h=0;24>= -h;h+=8)e<<=1,e|=b>>h+k&1;for(h=0;24>=h;h+=8)e<<=1,e|=a>>h+k&1}for(h=0;24>=h;h+=8)e<<=1,e|=b>>h+k&1;for(k=1;3>=k;k++){for(h=0;24>=h;h+=8)g<<=1,g|=b>>h+k&1;for(h=0;24>=h;h+=8)g<<=1,g|=a>>h+k&1}for(h=0;24>=h;h+=8)g<<=1,g|=a>>h+k&1;c[d+0]=e>>>0;c[d+1]=g>>>0};b.r28shl=function(a,b){return a<>>28-b};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];b.pc2=function(a,b,d,g){for(var e=0,k=0,h=c.length>>>1,l= -0;l>>c[l]&1;for(l=h;l>>c[l]&1;d[g+0]=e>>>0;d[g+1]=k>>>0};b.expand=function(a,b,c){var e,f=0;e=(a&1)<<5|a>>>27;for(var d=23;15<=d;d-=4)e<<=6,e|=a>>>d&63;for(d=11;3<=d;d-=4)f|=a>>>d&63,f<<=6;b[c+0]=e>>>0;b[c+1]=(f|(a&31)<<1|a>>>31)>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0, +b.isError=function(a){return"[object Error]"===Object.prototype.toString.call(a)||a instanceof Error};b.isFunction=function(a){return"function"===typeof a};b.isPrimitive=function(a){return null===a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};b.isBuffer=a.isBuffer}).call(this,{isBuffer:g("../../is-buffer/index.js")})},{"../../is-buffer/index.js":120}],68:[function(g,a,b){(function(b){function c(a){this.curveType=l[a];this.curveType|| +(this.curveType={name:a});this.curve=new k.ec(this.curveType.name);this.keys=void 0}function h(a,c,e){Array.isArray(a)||(a=a.toArray());a=new b(a);e&&a.length>>2),h=0,f=0;h>5]|=128<>>9<<4)+14]=b;b=1732584193;for(var c=-271733879,f=-1732584194,g=271733878,m=0;m>>32-d,c)}function h(a,b,c,e,k,h,g){return d(b&c|~b&e,a,b,k,h,g)}function k(a,b,c,e,k,h,g){return d(b&e|c&~e,a,b,k,h,g)}function e(a,b,c,e,k,h,g){return d(c^(b|~e),a,b,k,h,g)}function l(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}var n=g("./make-hash");a.exports=function(a){return n(a,c)}},{"./make-hash":70}],72:[function(g,a,b){function c(a,b){h.call(this,"digest"); +"string"===typeof b&&(b=k.from(b));var c="sha512"===a||"sha384"===a?128:64;this._alg=a;this._key=b;b.length>c?b=("rmd160"===a?new l:n(a)).update(b).digest():b.lengthb.length&&(b=d.concat([b,k],64));a=this._ipad=d.allocUnsafe(64);for(var c=this._opad=d.allocUnsafe(64),e=0;64>e;e++)a[e]=b[e]^54,c[e]=b[e]^92;this._hash=[a]}b=g("inherits");var d=g("safe-buffer").Buffer,h=g("cipher-base"),k=d.alloc(128);b(c,h);c.prototype._update=function(a){this._hash.push(a)};c.prototype._final=function(){var a=this._alg(d.concat(this._hash));return this._alg(d.concat([this._opad,a]))};a.exports=c}, +{"cipher-base":66,inherits:119,"safe-buffer":160}],74:[function(g,a,b){b.randomBytes=b.rng=b.pseudoRandomBytes=b.prng=g("randombytes");b.createHash=b.Hash=g("create-hash");b.createHmac=b.Hmac=g("create-hmac");a=g("browserify-sign/algos");a=Object.keys(a);var c="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(a);b.getHashes=function(){return c};a=g("pbkdf2");b.pbkdf2=a.pbkdf2;b.pbkdf2Sync=a.pbkdf2Sync;a=g("browserify-cipher");b.Cipher=a.Cipher;b.createCipher=a.createCipher;b.Cipheriv= +a.Cipheriv;b.createCipheriv=a.createCipheriv;b.Decipher=a.Decipher;b.createDecipher=a.createDecipher;b.Decipheriv=a.Decipheriv;b.createDecipheriv=a.createDecipheriv;b.getCiphers=a.getCiphers;b.listCiphers=a.listCiphers;a=g("diffie-hellman");b.DiffieHellmanGroup=a.DiffieHellmanGroup;b.createDiffieHellmanGroup=a.createDiffieHellmanGroup;b.getDiffieHellman=a.getDiffieHellman;b.createDiffieHellman=a.createDiffieHellman;b.DiffieHellman=a.DiffieHellman;a=g("browserify-sign");b.createSign=a.createSign;b.Sign= +a.Sign;b.createVerify=a.createVerify;b.Verify=a.Verify;b.createECDH=g("create-ecdh");g=g("public-encrypt");b.publicEncrypt=g.publicEncrypt;b.privateEncrypt=g.privateEncrypt;b.publicDecrypt=g.publicDecrypt;b.privateDecrypt=g.privateDecrypt;b.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify");};b.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4, +DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":54,"browserify-sign":61,"browserify-sign/algos":58,"create-ecdh":68,"create-hash":69,"create-hmac":72,"diffie-hellman":81,pbkdf2:132,"public-encrypt":139,randombytes:145}],75:[function(g,a,b){b.utils=g("./des/utils"); +b.Cipher=g("./des/cipher");b.DES=g("./des/des");b.CBC=g("./des/cbc");b.EDE=g("./des/ede")},{"./des/cbc":76,"./des/cipher":77,"./des/des":78,"./des/ede":79,"./des/utils":80}],76:[function(g,a,b){function c(a){d.equal(a.length,8,"Invalid IV length");this.iv=Array(8);for(var b=0;b>>1],c=k.r28shl(c,f);b=k.r28shl(b,f);k.pc2(c,b,a.keys,e)}};d.prototype._update=function(a,b,c,e){var f=this._desState, +d=k.readUInt32BE(a,b);a=k.readUInt32BE(a,b+4);k.ip(d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];"encrypt"===this.type?this._encrypt(f,d,a,f.tmp,0):this._decrypt(f,d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];k.writeUInt32BE(c,d,e);k.writeUInt32BE(c,a,e+4)};d.prototype._pad=function(a,b){for(var c=a.length-b;b>>0;b=g}k.rip(c,b,e,d)};d.prototype._decrypt=function(a,b,c,e,d){for(var f=a.keys.length-2;0<=f;f-=2){var h=a.keys[f],g=a.keys[f+1];k.expand(c,a.tmp,0);h^=a.tmp[0];g^=a.tmp[1];h=k.substitute(h,g);h=k.permute(h);g=c;c=(b^h)>>>0;b=g}k.rip(c,b,e,d)}},{"../des":75,inherits:119,"minimalistic-assert":125}],79:[function(g,a,b){function c(a,b){h.equal(b.length,24, +"Invalid key length");var c=b.slice(0,8),d=b.slice(8,16);b=b.slice(16,24);this.ciphers="encrypt"===a?[e.create({type:"encrypt",key:c}),e.create({type:"decrypt",key:d}),e.create({type:"encrypt",key:b})]:[e.create({type:"decrypt",key:b}),e.create({type:"encrypt",key:d}),e.create({type:"decrypt",key:c})]}function d(a){k.call(this,a);this._edeState=new c(this.type,this.options.key)}var h=g("minimalistic-assert");b=g("inherits");g=g("../des");var k=g.Cipher,e=g.DES;b(d,k);a.exports=d;d.create=function(a){return new d(a)}; +d.prototype._update=function(a,b,c,e){var f=this._edeState;f.ciphers[0]._update(a,b,c,e);f.ciphers[1]._update(c,e,c,e);f.ciphers[2]._update(c,e,c,e)};d.prototype._pad=e.prototype._pad;d.prototype._unpad=e.prototype._unpad},{"../des":75,inherits:119,"minimalistic-assert":125}],80:[function(g,a,b){b.readUInt32BE=function(a,b){return(a[0+b]<<24|a[1+b]<<16|a[2+b]<<8|a[3+b])>>>0};b.writeUInt32BE=function(a,b,c){a[0+c]=b>>>24;a[1+c]=b>>>16&255;a[2+c]=b>>>8&255;a[3+c]=b&255};b.ip=function(a,b,c,d){for(var e= +0,k=0,h=6;0<=h;h-=2){for(var g=0;24>=g;g+=8)e<<=1,e|=b>>>g+h&1;for(g=0;24>=g;g+=8)e<<=1,e|=a>>>g+h&1}for(h=6;0<=h;h-=2){for(g=1;25>=g;g+=8)k<<=1,k|=b>>>g+h&1;for(g=1;25>=g;g+=8)k<<=1,k|=a>>>g+h&1}c[d+0]=e>>>0;c[d+1]=k>>>0};b.rip=function(a,b,c,d){for(var e=0,k=0,h=0;4>h;h++)for(var g=24;0<=g;g-=8)e<<=1,e|=b>>>g+h&1,e<<=1,e|=a>>>g+h&1;for(h=4;8>h;h++)for(g=24;0<=g;g-=8)k<<=1,k|=b>>>g+h&1,k<<=1,k|=a>>>g+h&1;c[d+0]=e>>>0;c[d+1]=k>>>0};b.pc1=function(a,b,c,d){for(var e=0,k=0,h=7;5<=h;h--){for(var g=0;24>= +g;g+=8)e<<=1,e|=b>>g+h&1;for(g=0;24>=g;g+=8)e<<=1,e|=a>>g+h&1}for(g=0;24>=g;g+=8)e<<=1,e|=b>>g+h&1;for(h=1;3>=h;h++){for(g=0;24>=g;g+=8)k<<=1,k|=b>>g+h&1;for(g=0;24>=g;g+=8)k<<=1,k|=a>>g+h&1}for(g=0;24>=g;g+=8)k<<=1,k|=a>>g+h&1;c[d+0]=e>>>0;c[d+1]=k>>>0};b.r28shl=function(a,b){return a<>>28-b};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];b.pc2=function(a,b,d,h){for(var e=0,k=0,g=c.length>>>1,l= +0;l>>c[l]&1;for(l=g;l>>c[l]&1;d[h+0]=e>>>0;d[h+1]=k>>>0};b.expand=function(a,b,c){var e,f=0;e=(a&1)<<5|a>>>27;for(var d=23;15<=d;d-=4)e<<=6,e|=a>>>d&63;for(d=11;3<=d;d-=4)f|=a>>>d&63,f<<=6;b[c+0]=e>>>0;b[c+1]=(f|(a&31)<<1|a>>>31)>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0, 9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2, 8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];b.substitute= -function(a,b){for(var c=0,e=0;4>e;e++)var f=a>>>18-6*e&63,f=d[64*e+f],c=c<<4,c=c|f;for(e=0;4>e;e++)f=b>>>18-6*e&63,f=d[256+64*e+f],c<<=4,c|=f;return c>>>0};var g=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];b.permute=function(a){for(var b=0,c=0;c>>g[c]&1;return b>>>0};b.padSplit=function(a,b,c){for(a=a.toString(2);a.lengthe;e++)var f=a>>>18-6*e&63,f=d[64*e+f],c=c<<4,c=c|f;for(e=0;4>e;e++)f=b>>>18-6*e&63,f=d[256+64*e+f],c<<=4,c|=f;return c>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];b.permute=function(a){for(var b=0,c=0;c>>h[c]&1;return b>>>0};b.padSplit=function(a,b,c){for(a=a.toString(2);a.lengthe;e+=2){for(var f=Math.ceil(Math.sqrt(e)),d=0;da)return 2===b||5===b?new e([140,123]):new e([140,39]);b=new e(b);for(var g,h;;){for(g=new e(k(Math.ceil(a/8)));g.bitLength()>a;)g.ishrn(1);g.isEven()&&g.iadd(f);g.testn(1)||g.iadd(m);if(!b.cmp(m))for(;g.mod(l).cmp(x);)g.iadd(C);else if(!b.cmp(p))for(;g.mod(r).cmp(u);)g.iadd(C);h=g.shrn(1);if(c(h)&&c(g)&&d(h)&&d(g)&&n.test(h)&&n.test(g))return g}}var k=h("randombytes");a.exports=g;g.simpleSieve=c;g.fermatTest=d;var e=h("bn.js"), -l=new e(24),n=new (h("miller-rabin")),f=new e(1),m=new e(2),p=new e(5);new e(16);new e(8);var r=new e(10),u=new e(3);new e(7);var x=new e(11),C=new e(4);new e(12);var q=null},{"bn.js":34,"miller-rabin":124,randombytes:145}],84:[function(h,a,b){a.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"}, +(a=new b(a,c));this.__gen=a;this._gen=new l(a);return this}}).call(this,g("buffer").Buffer)},{"./generatePrime":83,"bn.js":34,buffer:65,"miller-rabin":124,randombytes:145}],83:[function(g,a,b){function c(a){var b;if(null!==q)b=q;else{b=[2];for(var c=1,e=3;1048576>e;e+=2){for(var f=Math.ceil(Math.sqrt(e)),d=0;da)return 2===b||5===b?new e([140,123]):new e([140,39]);b=new e(b);for(var h,g;;){for(h=new e(k(Math.ceil(a/8)));h.bitLength()>a;)h.ishrn(1);h.isEven()&&h.iadd(f);h.testn(1)||h.iadd(m);if(!b.cmp(m))for(;h.mod(l).cmp(x);)h.iadd(C);else if(!b.cmp(p))for(;h.mod(r).cmp(u);)h.iadd(C);g=h.shrn(1);if(c(g)&&c(h)&&d(g)&&d(h)&&n.test(g)&&n.test(h))return h}}var k=g("randombytes");a.exports=h;h.simpleSieve=c;h.fermatTest=d;var e=g("bn.js"), +l=new e(24),n=new (g("miller-rabin")),f=new e(1),m=new e(2),p=new e(5);new e(16);new e(8);var r=new e(10),u=new e(3);new e(7);var x=new e(11),C=new e(4);new e(12);var q=null},{"bn.js":34,"miller-rabin":124,randombytes:145}],84:[function(g,a,b){a.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"}, modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"}, modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"}, modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"}, modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"}, modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}, -{}],85:[function(h,a,b){b.version=h("../package.json").version;b.utils=h("./elliptic/utils");b.rand=h("brorand");b.curve=h("./elliptic/curve");b.curves=h("./elliptic/curves");b.ec=h("./elliptic/ec");b.eddsa=h("./elliptic/eddsa")},{"../package.json":100,"./elliptic/curve":88,"./elliptic/curves":91,"./elliptic/ec":92,"./elliptic/eddsa":95,"./elliptic/utils":99,brorand:35}],86:[function(h,a,b){function c(a,b){this.type=a;this.p=new g(b.p,16);this.red=b.prime?g.red(b.prime):g.mont(this.p);this.zero=(new g(0)).toRed(this.red); -this.one=(new g(1)).toRed(this.red);this.two=(new g(2)).toRed(this.red);this.n=b.n&&new g(b.n,16);this.g=b.g&&this.pointFromJSON(b.g,b.gRed);this._wnafT1=Array(4);this._wnafT2=Array(4);this._wnafT3=Array(4);this._wnafT4=Array(4);a=this.n&&this.p.div(this.n);!a||0=g;b--)k=(k<<1)+c[b];d.push(k)}b=this.jpoint(null,null,null);for(c=this.jpoint(null,null,null);0g)break;b=c[g];n(0!==b);d="affine"===a.type?0>1]):d.mixedAdd(f[-b-1>>1].neg()):0>1]):d.add(f[-b-1>>1].neg())}return"affine"===a.type?d.toP():d};c.prototype._wnafMulAdd=function(a,b,c,d,g){for(var f=this._wnafT1,k=this._wnafT2,h=this._wnafT3, -m=0,n=0;nn)break;for(a=0;a>1]:0>m&&(p=k[a][-m-1>>1].neg()),b="affine"===p.type?b.mixedAdd(p):b.add(p))}for(n=0;n=h;b--)k=(k<<1)+c[b];d.push(k)}b=this.jpoint(null,null,null);for(c=this.jpoint(null,null,null);0h)break;b=c[h];n(0!==b);d="affine"===a.type?0>1]):d.mixedAdd(f[-b-1>>1].neg()):0>1]):d.add(f[-b-1>>1].neg())}return"affine"===a.type?d.toP():d};c.prototype._wnafMulAdd=function(a,b,c,d,h){for(var f=this._wnafT1,k=this._wnafT2,g=this._wnafT3, +m=0,n=0;nn)break;for(a=0;a>1]:0>m&&(p=k[a][-m-1>>1].neg()),b="affine"===p.type?b.mixedAdd(p):b.add(p))}for(n=0;n=Math.ceil((a.bitLength()+1)/b.step):!1};d.prototype._getDoubles=function(a,b){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],e=this,f=0;fb[0].cmp(b[1])?b[0]:b[1],b=b.toRed(this.red));a.lambda?c=new e(a.lambda,16):(c=this._getEndoRoots(this.n),0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(b))?c=c[0]:(c=c[1],n(0===this.g.mul(c).x.cmp(this.g.x.redMul(b)))));a= -a.basis?a.basis.map(function(a){return{a:new e(a.a,16),b:new e(a.b,16)}}):this._getEndoBasis(c);return{beta:b,lambda:c,basis:a}}};c.prototype._getEndoRoots=function(a){var b=a===this.p?this.red:e.mont(a),c=(new e(2)).toRed(b).redInvm();a=c.redNeg();c=(new e(3)).toRed(b).redNeg().redSqrt().redMul(c);b=a.redAdd(c).fromRed();a=a.redSub(c).fromRed();return[b,a]};c.prototype._getEndoBasis=function(a){for(var b=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=this.n.clone(),f=new e(1),d=new e(0),g=new e(0), -k=new e(1),h,l,n,w,v,y,z=0,F;0!==a.cmpn(0);){var B=c.div(a);F=c.sub(B.mul(a));v=g.sub(B.mul(f));B=k.sub(B.mul(d));if(!n&&0>F.cmp(b))h=y.neg(),l=f,n=F.neg(),w=v;else if(n&&2===++z)break;y=F;c=a;a=F;g=f;f=v;k=d;d=B}b=F.neg();y=n.sqr().add(w.sqr());0<=b.sqr().add(v.sqr()).cmp(y)&&(b=h,v=l);n.negative&&(n=n.neg(),w=w.neg());b.negative&&(b=b.neg(),v=v.neg());return[{a:n,b:w},{a:b,b:v}]};c.prototype._endoSplit=function(a){var b=this.endo.basis,c=b[0],e=b[1],f=e.b.mul(a).divRound(this.n),d=c.b.neg().mul(a).divRound(this.n), -b=f.mul(c.a),g=d.mul(e.a),c=f.mul(c.b),e=d.mul(e.b);a=a.sub(b).sub(g);b=c.add(e).neg();return{k1:a,k2:b}};c.prototype.pointFromX=function(a,b){a=new e(a,16);a.red||(a=a.toRed(this.red));var c=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),f=c.redSqrt();if(0!==f.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");c=f.fromRed().isOdd();if(b&&!c||!b&&c)f=f.redNeg();return this.point(a,f)};c.prototype.validate=function(a){if(a.inf)return!0;var b=a.x;a=a.y;var c=this.a.redMul(b), -b=b.redSqr().redMul(b).redIAdd(c).redIAdd(this.b);return 0===a.redSqr().redISub(b).cmpn(0)};c.prototype._endoWnafMulAdd=function(a,b,c){for(var e=this._endoWnafT1,f=this._endoWnafT2,d=0;db[0].cmp(b[1])?b[0]:b[1],b=b.toRed(this.red));a.lambda?c=new e(a.lambda,16):(c=this._getEndoRoots(this.n),0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(b))?c=c[0]:(c=c[1],n(0===this.g.mul(c).x.cmp(this.g.x.redMul(b)))));a= +a.basis?a.basis.map(function(a){return{a:new e(a.a,16),b:new e(a.b,16)}}):this._getEndoBasis(c);return{beta:b,lambda:c,basis:a}}};c.prototype._getEndoRoots=function(a){var b=a===this.p?this.red:e.mont(a),c=(new e(2)).toRed(b).redInvm();a=c.redNeg();c=(new e(3)).toRed(b).redNeg().redSqrt().redMul(c);b=a.redAdd(c).fromRed();a=a.redSub(c).fromRed();return[b,a]};c.prototype._getEndoBasis=function(a){for(var b=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=this.n.clone(),f=new e(1),d=new e(0),h=new e(0), +k=new e(1),g,l,n,w,v,y,z=0,F;0!==a.cmpn(0);){var B=c.div(a);F=c.sub(B.mul(a));v=h.sub(B.mul(f));B=k.sub(B.mul(d));if(!n&&0>F.cmp(b))g=y.neg(),l=f,n=F.neg(),w=v;else if(n&&2===++z)break;y=F;c=a;a=F;h=f;f=v;k=d;d=B}b=F.neg();y=n.sqr().add(w.sqr());0<=b.sqr().add(v.sqr()).cmp(y)&&(b=g,v=l);n.negative&&(n=n.neg(),w=w.neg());b.negative&&(b=b.neg(),v=v.neg());return[{a:n,b:w},{a:b,b:v}]};c.prototype._endoSplit=function(a){var b=this.endo.basis,c=b[0],e=b[1],f=e.b.mul(a).divRound(this.n),d=c.b.neg().mul(a).divRound(this.n), +b=f.mul(c.a),h=d.mul(e.a),c=f.mul(c.b),e=d.mul(e.b);a=a.sub(b).sub(h);b=c.add(e).neg();return{k1:a,k2:b}};c.prototype.pointFromX=function(a,b){a=new e(a,16);a.red||(a=a.toRed(this.red));var c=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),f=c.redSqrt();if(0!==f.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");c=f.fromRed().isOdd();if(b&&!c||!b&&c)f=f.redNeg();return this.point(a,f)};c.prototype.validate=function(a){if(a.inf)return!0;var b=a.x;a=a.y;var c=this.a.redMul(b), +b=b.redSqr().redMul(b).redIAdd(c).redIAdd(this.b);return 0===a.redSqr().redISub(b).cmpn(0)};c.prototype._endoWnafMulAdd=function(a,b,c){for(var e=this._endoWnafT1,f=this._endoWnafT2,d=0;d=l.cmpn(1)||0<=l.cmp(k))){var m=this.g.mul(l);if(!m.isInfinity()){var p=m.getX();c=p.umod(this.n);if(0!==c.cmpn(0)&&(l=l.invm(this.n).mul(c.mul(b.getPrivate()).iadd(a)),l=l.umod(this.n),0!==l.cmpn(0)))return a=(m.getY().isOdd()?1:0)|(0!==p.cmp(c)?2:0),e.canonical&&0e.cmpn(1)||0<=e.cmp(this.n)||0>b.cmpn(1)||0<=b.cmp(this.n))return!1;b=b.invm(this.n);a=b.mul(a).umod(this.n);b=b.mul(e).umod(this.n);if(!this.curve._maxwellTrick)return c=this.g.mulAdd(a,c.getPublic(),b),c.isInfinity()?!1:0===c.getX().umod(this.n).cmp(e);c=this.g.jmulAdd(a,c.getPublic(),b);return c.isInfinity()?!1:c.eqXToP(e)};c.prototype.recoverPubKey=function(a,b,c,g){e((3&c)===c,"The recovery param is more than two bits");b=new n(b,g);g=this.n;var f=new d(a); -a=b.r;var k=b.s,h=c&1;c>>=1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);b=b.r.invm(g);c=g.sub(f).mul(b).umod(g);g=k.mul(b).umod(g);return this.g.mulAdd(c,a,g)};c.prototype.getKeyRecoveryParam=function(a,b,c,e){b=new n(b,e);if(null!==b.recoveryParam)return b.recoveryParam;for(e=0;4>e;e++){var d;try{d=this.recoverPubKey(a,b,e)}catch(x){continue}if(d.eq(c))return e}throw Error("Unable to find valid recovery factor"); -}},{"../../elliptic":85,"./key":93,"./signature":94,"bn.js":34,"hmac-drbg":116}],93:[function(h,a,b){function c(a,b){this.ec=a;this.pub=this.priv=null;b.priv&&this._importPrivate(b.priv,b.privEnc);b.pub&&this._importPublic(b.pub,b.pubEnc)}var d=h("bn.js"),g=h("../../elliptic").utils.assert;a.exports=c;c.fromPublic=function(a,b,d){return b instanceof c?b:new c(a,{pub:b,pubEnc:d})};c.fromPrivate=function(a,b,d){return b instanceof c?b:new c(a,{priv:b,privEnc:d})};c.prototype.validate=function(){var a= +e);b=new n(b,"hex");e=b.r;b=b.s;if(0>e.cmpn(1)||0<=e.cmp(this.n)||0>b.cmpn(1)||0<=b.cmp(this.n))return!1;b=b.invm(this.n);a=b.mul(a).umod(this.n);b=b.mul(e).umod(this.n);if(!this.curve._maxwellTrick)return c=this.g.mulAdd(a,c.getPublic(),b),c.isInfinity()?!1:0===c.getX().umod(this.n).cmp(e);c=this.g.jmulAdd(a,c.getPublic(),b);return c.isInfinity()?!1:c.eqXToP(e)};c.prototype.recoverPubKey=function(a,b,c,h){e((3&c)===c,"The recovery param is more than two bits");b=new n(b,h);h=this.n;var f=new d(a); +a=b.r;var k=b.s,g=c&1;c>>=1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),g):this.curve.pointFromX(a,g);b=b.r.invm(h);c=h.sub(f).mul(b).umod(h);h=k.mul(b).umod(h);return this.g.mulAdd(c,a,h)};c.prototype.getKeyRecoveryParam=function(a,b,c,e){b=new n(b,e);if(null!==b.recoveryParam)return b.recoveryParam;for(e=0;4>e;e++){var d;try{d=this.recoverPubKey(a,b,e)}catch(x){continue}if(d.eq(c))return e}throw Error("Unable to find valid recovery factor"); +}},{"../../elliptic":85,"./key":93,"./signature":94,"bn.js":34,"hmac-drbg":116}],93:[function(g,a,b){function c(a,b){this.ec=a;this.pub=this.priv=null;b.priv&&this._importPrivate(b.priv,b.privEnc);b.pub&&this._importPublic(b.pub,b.pubEnc)}var d=g("bn.js"),h=g("../../elliptic").utils.assert;a.exports=c;c.fromPublic=function(a,b,d){return b instanceof c?b:new c(a,{pub:b,pubEnc:d})};c.fromPrivate=function(a,b,d){return b instanceof c?b:new c(a,{priv:b,privEnc:d})};c.prototype.validate=function(){var a= this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N !\x3d O"}:{result:!1,reason:"Public key is not a point"}};c.prototype.getPublic=function(a,b){"string"===typeof a&&(b=a,a=null);this.pub||(this.pub=this.ec.g.mul(this.priv));return b?this.pub.encode(b,a):this.pub};c.prototype.getPrivate=function(a){return"hex"===a?this.priv.toString(16,2):this.priv};c.prototype._importPrivate= -function(a,b){this.priv=new d(a,b||16);this.priv=this.priv.umod(this.ec.curve.n)};c.prototype._importPublic=function(a,b){a.x||a.y?("mont"===this.ec.curve.type?g(a.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||g(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y)):this.pub=this.ec.curve.decodePoint(a,b)};c.prototype.derive=function(a){return a.mul(this.priv).getX()};c.prototype.sign=function(a,b,c){return this.ec.sign(a,this,b,c)}; -c.prototype.verify=function(a,b){return this.ec.verify(a,b,this)};c.prototype.inspect=function(){return"\x3cKey priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" \x3e"}},{"../../elliptic":85,"bn.js":34}],94:[function(h,a,b){function c(a,b){if(a instanceof c)return a;this._importDER(a,b)||(f(a.r&&a.s,"Signature without r or s"),this.r=new l(a.r,16),this.s=new l(a.s,16),this.recoveryParam=void 0===a.recoveryParam?null:a.recoveryParam)}function d(){this.place=0} -function g(a,b){var c=a[b.place++];if(!(c&128))return c;for(var c=c&15,e=0,d=0,f=b.place;db)){var c=1+(Math.log(b)/Math.LN2>>>3);for(a.push(c|128);--c;)a.push(b>>>(c<<3)&255)}a.push(b)}var l=h("bn.js"),n=h("../../elliptic").utils,f=n.assert;a.exports=c;c.prototype._importDER=function(a,b){a=n.toArray(a,b);var c=new d;if(48!==a[c.place++]|| -g(a,c)+c.place!==a.length||2!==a[c.place++])return!1;var e=g(a,c);b=a.slice(c.place,e+c.place);c.place+=e;if(2!==a[c.place++])return!1;e=g(a,c);if(a.length!==e+c.place)return!1;a=a.slice(c.place,e+c.place);0===b[0]&&b[1]&128&&(b=b.slice(1));0===a[0]&&a[1]&128&&(a=a.slice(1));this.r=new l(b);this.s=new l(a);this.recoveryParam=null;return!0};c.prototype.toDER=function(a){var b=this.r.toArray(),c=this.s.toArray();b[0]&128&&(b=[0].concat(b));c[0]&128&&(c=[0].concat(c));b=k(b);for(c=k(c);!(c[0]||c[1]& -128);)c=c.slice(1);var d=[2];e(d,b.length);d=d.concat(b);d.push(2);e(d,c.length);b=d.concat(c);c=[48];e(c,b.length);c=c.concat(b);return n.encode(c,a)}},{"../../elliptic":85,"bn.js":34}],95:[function(h,a,b){function c(a){e("ed25519"===a,"only tested with ed25519 so far");if(!(this instanceof c))return new c(a);this.curve=a=g.curves[a].curve;this.g=a.g;this.g.precompute(a.n.bitLength()+1);this.pointClass=a.point().constructor;this.encodingLength=Math.ceil(a.n.bitLength()/8);this.hash=d.sha512}var d= -h("hash.js"),g=h("../../elliptic"),k=g.utils,e=k.assert,l=k.parseBytes,n=h("./key"),f=h("./signature");a.exports=c;c.prototype.sign=function(a,b){a=l(a);var c=this.keyFromSecret(b),e=this.hashInt(c.messagePrefix(),a);b=this.g.mul(e);var d=this.encodePoint(b);a=this.hashInt(d,c.pubBytes(),a).mul(c.priv());a=e.add(a).umod(this.curve.n);return this.makeSignature({R:b,S:a,Rencoded:d})};c.prototype.verify=function(a,b,c){a=l(a);b=this.makeSignature(b);c=this.keyFromPublic(c);a=this.hashInt(b.Rencoded(), +function(a,b){this.priv=new d(a,b||16);this.priv=this.priv.umod(this.ec.curve.n)};c.prototype._importPublic=function(a,b){a.x||a.y?("mont"===this.ec.curve.type?h(a.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||h(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y)):this.pub=this.ec.curve.decodePoint(a,b)};c.prototype.derive=function(a){return a.mul(this.priv).getX()};c.prototype.sign=function(a,b,c){return this.ec.sign(a,this,b,c)}; +c.prototype.verify=function(a,b){return this.ec.verify(a,b,this)};c.prototype.inspect=function(){return"\x3cKey priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" \x3e"}},{"../../elliptic":85,"bn.js":34}],94:[function(g,a,b){function c(a,b){if(a instanceof c)return a;this._importDER(a,b)||(f(a.r&&a.s,"Signature without r or s"),this.r=new l(a.r,16),this.s=new l(a.s,16),this.recoveryParam=void 0===a.recoveryParam?null:a.recoveryParam)}function d(){this.place=0} +function h(a,b){var c=a[b.place++];if(!(c&128))return c;for(var c=c&15,e=0,d=0,f=b.place;db)){var c=1+(Math.log(b)/Math.LN2>>>3);for(a.push(c|128);--c;)a.push(b>>>(c<<3)&255)}a.push(b)}var l=g("bn.js"),n=g("../../elliptic").utils,f=n.assert;a.exports=c;c.prototype._importDER=function(a,b){a=n.toArray(a,b);var c=new d;if(48!==a[c.place++]|| +h(a,c)+c.place!==a.length||2!==a[c.place++])return!1;var e=h(a,c);b=a.slice(c.place,e+c.place);c.place+=e;if(2!==a[c.place++])return!1;e=h(a,c);if(a.length!==e+c.place)return!1;a=a.slice(c.place,e+c.place);0===b[0]&&b[1]&128&&(b=b.slice(1));0===a[0]&&a[1]&128&&(a=a.slice(1));this.r=new l(b);this.s=new l(a);this.recoveryParam=null;return!0};c.prototype.toDER=function(a){var b=this.r.toArray(),c=this.s.toArray();b[0]&128&&(b=[0].concat(b));c[0]&128&&(c=[0].concat(c));b=k(b);for(c=k(c);!(c[0]||c[1]& +128);)c=c.slice(1);var d=[2];e(d,b.length);d=d.concat(b);d.push(2);e(d,c.length);b=d.concat(c);c=[48];e(c,b.length);c=c.concat(b);return n.encode(c,a)}},{"../../elliptic":85,"bn.js":34}],95:[function(g,a,b){function c(a){e("ed25519"===a,"only tested with ed25519 so far");if(!(this instanceof c))return new c(a);this.curve=a=h.curves[a].curve;this.g=a.g;this.g.precompute(a.n.bitLength()+1);this.pointClass=a.point().constructor;this.encodingLength=Math.ceil(a.n.bitLength()/8);this.hash=d.sha512}var d= +g("hash.js"),h=g("../../elliptic"),k=h.utils,e=k.assert,l=k.parseBytes,n=g("./key"),f=g("./signature");a.exports=c;c.prototype.sign=function(a,b){a=l(a);var c=this.keyFromSecret(b),e=this.hashInt(c.messagePrefix(),a);b=this.g.mul(e);var d=this.encodePoint(b);a=this.hashInt(d,c.pubBytes(),a).mul(c.priv());a=e.add(a).umod(this.curve.n);return this.makeSignature({R:b,S:a,Rencoded:d})};c.prototype.verify=function(a,b,c){a=l(a);b=this.makeSignature(b);c=this.keyFromPublic(c);a=this.hashInt(b.Rencoded(), c.pubBytes(),a);var e=this.g.mul(b.S());return b.R().add(c.pub().mul(a)).eq(e)};c.prototype.hashInt=function(){for(var a=this.hash(),b=0;b(e>>1)-1?(e>>1)-d:d,a.isubn(d)):d=0;c.push(d);d=0!==a.cmpn(0)&&0===a.andln(e-1)?b+1:1;for(var g=1;g(e>>1)-1?(e>>1)-d:d,a.isubn(d)):d=0;c.push(d);d=0!==a.cmpn(0)&&0===a.andln(e-1)?b+1:1;for(var h=1;ha||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};c.prototype.emit=function(a){var b, -c,k,f;this._events||(this._events={});if("error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){b=arguments[1];if(b instanceof Error)throw b;c=Error('Uncaught, unspecified "error" event. ('+b+")");c.context=b;throw c;}c=this._events[a];if(void 0===c)return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:b=Array.prototype.slice.call(arguments,1),c.apply(this, -b)}else if(g(c))for(b=Array.prototype.slice.call(arguments,1),f=c.slice(),c=f.length,k=0;ka||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};c.prototype.emit=function(a){var b, +c,k,f;this._events||(this._events={});if("error"===a&&(!this._events.error||h(this._events.error)&&!this._events.error.length)){b=arguments[1];if(b instanceof Error)throw b;c=Error('Uncaught, unspecified "error" event. ('+b+")");c.context=b;throw c;}c=this._events[a];if(void 0===c)return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:b=Array.prototype.slice.call(arguments,1),c.apply(this, +b)}else if(h(c))for(b=Array.prototype.slice.call(arguments,1),f=c.slice(),c=f.length,k=0;kb&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"===typeof console.trace&&console.trace());return this};c.prototype.on=c.prototype.addListener;c.prototype.once=function(a,b){function c(){this.removeListener(a,c);e||(e=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function"); -var e=!1;c.listener=b;this.on(a,c);return this};c.prototype.removeListener=function(a,b){var c,e,f;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;c=this._events[a];f=c.length;e=-1;if(c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(;0e)return this;1===c.length?(c.length=0,delete this._events[a]): +var e=!1;c.listener=b;this.on(a,c);return this};c.prototype.removeListener=function(a,b){var c,e,f;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;c=this._events[a];f=c.length;e=-1;if(c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(h(c)){for(;0e)return this;1===c.length?(c.length=0,delete this._events[a]): c.splice(e,1);this._events.removeListener&&this.emit("removeListener",a,b)}return this};c.prototype.removeAllListeners=function(a){var b;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);this.removeAllListeners("removeListener");this._events={};return this}b=this._events[a];if(d(b))this.removeListener(a, -b);else if(b)for(;b.length;)this.removeListener(a,b[b.length-1]);delete this._events[a];return this};c.prototype.listeners=function(a){return this._events&&this._events[a]?d(this._events[a])?[this._events[a]]:this._events[a].slice():[]};c.prototype.listenerCount=function(a){if(this._events){a=this._events[a];if(d(a))return 1;if(a)return a.length}return 0};c.listenerCount=function(a,b){return a.listenerCount(b)}},{}],102:[function(h,a,b){var c=h("safe-buffer").Buffer,d=h("md5.js");a.exports=function(a, -b,e,h){c.isBuffer(a)||(a=c.from(a,"binary"));if(b&&(c.isBuffer(b)||(b=c.from(b,"binary")),8!==b.length))throw new RangeError("salt should be Buffer with 8 byte length");e/=8;for(var g=c.alloc(e),f=c.alloc(h||0),k=c.alloc(0);0=this._blockSize;){for(var d=this._blockOffset;d=this._delta8)for(a=this.pending,b=a.length%this._delta8,this.pending=a.slice(a.length-b,a.length),0===this.pending.length&&(this.pending=null),a=d.join32(a,0,a.length-b,this.endian),b=0;b>>24&255;b[d++]=a>>>16&255;b[d++]=a>>>8&255;b[d++]=a&255}else for(b[d++]=a&255,b[d++]=a>>>8&255,b[d++]=a>>>16&255,b[d++]=a>>>24&255,b[d++]=0,b[d++]=0, -b[d++]=0,b[d++]=0,c=8;cthis.blockSize&&(a=(new this.Hash).update(a).digest());g(a.length<=this.blockSize);for(var b=a.length;b< -this.blockSize;b++)a.push(0);for(b=0;b=a?b^c^e:31>=a?b&c|~b&e:47>=a?(b|~c)^e:63>=a?b&e|c&~e:b^(c|~e)}var g=h("./utils");h=h("./common");var k=g.rotl32,e=g.sum32,l=g.sum32_3,n=g.sum32_4,f=h.BlockHash;g.inherits(c,f);b.ripemd160=c;c.blockSize=512;c.outSize=160;c.hmacStrength=192;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.h[0],f=this.h[1],g=this.h[2],h=this.h[3],v=this.h[4],C=c,x=f,F=g,B=h,G=v,E=0;80>E;E++)var I=e(k(n(c,d(E,f,g,h),a[m[E]+b],15>= -E?0:31>=E?1518500249:47>=E?1859775393:63>=E?2400959708:2840853838),r[E]),v),c=v,v=h,h=k(g,10),g=f,f=I,I=e(k(n(C,d(79-E,x,F,B),a[p[E]+b],15>=E?1352829926:31>=E?1548603684:47>=E?1836072691:63>=E?2053994217:0),u[E]),G),C=G,G=B,B=k(F,10),F=x,x=I;I=l(this.h[1],g,B);this.h[1]=l(this.h[2],h,G);this.h[2]=l(this.h[3],v,C);this.h[3]=l(this.h[4],c,x);this.h[4]=l(this.h[0],f,F);this.h[0]=I};c.prototype._digest=function(a){return"hex"===a?g.toHex32(this.h,"little"):g.split32(this.h,"little")};var m=[0,1,2,3,4, +};c.prototype.digest=function(a){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var b=this._digest();void 0!==a&&(b=b.toString(a));return b};c.prototype._digest=function(){throw Error("_digest is not implemented");};a.exports=c}).call(this,g("buffer").Buffer)},{buffer:65,inherits:119,stream:169}],104:[function(g,a,b){b.utils=g("./hash/utils");b.common=g("./hash/common");b.sha=g("./hash/sha");b.ripemd=g("./hash/ripemd");b.hmac=g("./hash/hmac");b.sha1=b.sha.sha1;b.sha256= +b.sha.sha256;b.sha224=b.sha.sha224;b.sha384=b.sha.sha384;b.sha512=b.sha.sha512;b.ripemd160=b.ripemd.ripemd160},{"./hash/common":105,"./hash/hmac":106,"./hash/ripemd":107,"./hash/sha":108,"./hash/utils":115}],105:[function(g,a,b){function c(){this.pending=null;this.pendingTotal=0;this.blockSize=this.constructor.blockSize;this.outSize=this.constructor.outSize;this.hmacStrength=this.constructor.hmacStrength;this.padLength=this.constructor.padLength/8;this.endian="big";this._delta8=this.blockSize/8;this._delta32= +this.blockSize/32}var d=g("./utils"),h=g("minimalistic-assert");b.BlockHash=c;c.prototype.update=function(a,b){a=d.toArray(a,b);this.pending=this.pending?this.pending.concat(a):a;this.pendingTotal+=a.length;if(this.pending.length>=this._delta8)for(a=this.pending,b=a.length%this._delta8,this.pending=a.slice(a.length-b,a.length),0===this.pending.length&&(this.pending=null),a=d.join32(a,0,a.length-b,this.endian),b=0;b>>24&255;b[d++]=a>>>16&255;b[d++]=a>>>8&255;b[d++]=a&255}else for(b[d++]=a&255,b[d++]=a>>>8&255,b[d++]=a>>>16&255,b[d++]=a>>>24&255,b[d++]=0,b[d++]=0, +b[d++]=0,b[d++]=0,c=8;cthis.blockSize&&(a=(new this.Hash).update(a).digest());h(a.length<=this.blockSize);for(var b=a.length;b< +this.blockSize;b++)a.push(0);for(b=0;b=a?b^c^e:31>=a?b&c|~b&e:47>=a?(b|~c)^e:63>=a?b&e|c&~e:b^(c|~e)}var h=g("./utils");g=g("./common");var k=h.rotl32,e=h.sum32,l=h.sum32_3,n=h.sum32_4,f=g.BlockHash;h.inherits(c,f);b.ripemd160=c;c.blockSize=512;c.outSize=160;c.hmacStrength=192;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.h[0],f=this.h[1],h=this.h[2],g=this.h[3],v=this.h[4],C=c,x=f,F=h,B=g,G=v,E=0;80>E;E++)var I=e(k(n(c,d(E,f,h,g),a[m[E]+b],15>= +E?0:31>=E?1518500249:47>=E?1859775393:63>=E?2400959708:2840853838),r[E]),v),c=v,v=g,g=k(h,10),h=f,f=I,I=e(k(n(C,d(79-E,x,F,B),a[p[E]+b],15>=E?1352829926:31>=E?1548603684:47>=E?1836072691:63>=E?2053994217:0),u[E]),G),C=G,G=B,B=k(F,10),F=x,x=I;I=l(this.h[1],h,B);this.h[1]=l(this.h[2],g,G);this.h[2]=l(this.h[3],v,C);this.h[3]=l(this.h[4],c,x);this.h[4]=l(this.h[0],f,F);this.h[0]=I};c.prototype._digest=function(a){return"hex"===a?h.toHex32(this.h,"little"):h.split32(this.h,"little")};var m=[0,1,2,3,4, 5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],r=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11, -12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":105,"./utils":115}],108:[function(h,a,b){b.sha1=h("./sha/1");b.sha224=h("./sha/224");b.sha256=h("./sha/256");b.sha384=h("./sha/384");b.sha512=h("./sha/512")},{"./sha/1":109,"./sha/224":110,"./sha/256":111,"./sha/384":112, -"./sha/512":113}],109:[function(h,a,b){function c(){if(!(this instanceof c))return new c;n.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=Array(80)}var d=h("../utils");b=h("../common");h=h("./common");var g=d.rotl32,k=d.sum32,e=d.sum32_5,l=h.ft_1,n=b.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];d.inherits(c,n);a.exports=c;c.blockSize=512;c.outSize=160;c.hmacStrength=80;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.W,d=0;16>d;d++)c[d]= -a[b+d];for(;dd;d++)c[d]= +a[b+d];for(;dd;d++)c[d]=a[b+d];for(;dd;d++)c[d]=a[b+d];for(;dd;d++)c[d]=a[b+d];for(;da&&(a+=4294967296);var g=c[d-4],h=c[d-3];b=e(g,h,19);f=e(h,g,29);g=n(g,h,6);b=b^f^g;0>b&&(b+=4294967296); -var f=c[d-14],g=c[d-13],m=c[d-30],q=c[d-29],h=k(m,q,1),p=k(m,q,8),m=l(m,q,7),h=h^p^m;0>h&&(h+=4294967296);var q=c[d-30],A=c[d-29],p=e(q,A,1),m=e(q,A,8),q=n(q,A,7),p=p^m^q;0>p&&(p+=4294967296);m=c[d-32];q=c[d-31];c[d]=r(a,b,f,g,h,p,m,q);c[d+1]=u(a,b,f,g,h,p,m,q)}};c.prototype._update=function(a,b){this._prepareBlock(a,b);a=this.W;b=this.h[0];var c=this.h[1],d=this.h[2],h=this.h[3],l=this.h[4],n=this.h[5],q=this.h[6],r=this.h[7],u=this.h[8],A=this.h[9],D=this.h[10],w=this.h[11],Q=this.h[12],ea=this.h[13], -P=this.h[14],T=this.h[15];g(this.k.length===a.length);for(var S=0;SR&&(R+=4294967296);K=R;var M=u,H=A,R=e(M,H,14),O=e(M,H,18),M=e(H,M,9),R=R^O^M;0>R&&(R+=4294967296);M=R;R=u&D^~u&Q;0>R&&(R+=4294967296);O=R;R=A&w^~A&ea;0>R&&(R+=4294967296);var H=R,L=this.k[S],U=this.k[S+1],oa=a[S],pa=a[S+1],R=x(P,T,K,M,O,H,L,U,oa,pa),O=C(P,T,K,M,O,H,L,U,oa,pa);K=b;M=c;P=k(K,M,28);T=k(M,K,2);K=k(M,K,7);P=P^T^K;0>P&&(P+=4294967296);M=b;H= -c;T=e(M,H,28);K=e(H,M,2);M=e(H,M,7);T=T^K^M;0>T&&(T+=4294967296);K=b&d^b&l^d&l;0>K&&(K+=4294967296);M=c&h^c&n^h&n;0>M&&(M+=4294967296);H=m(P,T,K,M);K=p(P,T,K,M);P=Q;T=ea;Q=D;ea=w;D=u;w=A;u=m(q,r,R,O);A=p(r,r,R,O);q=l;r=n;l=d;n=h;d=b;h=c;b=m(R,O,H,K);c=p(R,O,H,K)}f(this.h,0,b,c);f(this.h,2,d,h);f(this.h,4,l,n);f(this.h,6,q,r);f(this.h,8,u,A);f(this.h,10,D,w);f(this.h,12,Q,ea);f(this.h,14,P,T)};c.prototype._digest=function(a){return"hex"===a?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":105, -"../utils":115,"minimalistic-assert":125}],114:[function(h,a,b){function c(a,b,c){return a&b^a&c^b&c}var d=h("../utils").rotr32;b.ft_1=function(a,b,e,d){if(0===a)return b&e^~b&d;if(1===a||3===a)return b^e^d;if(2===a)return c(b,e,d)};b.ch32=function(a,b,c){return a&b^~a&c};b.maj32=c;b.p32=function(a,b,c){return a^b^c};b.s0_256=function(a){return d(a,2)^d(a,13)^d(a,22)};b.s1_256=function(a){return d(a,6)^d(a,11)^d(a,25)};b.g0_256=function(a){return d(a,7)^d(a,18)^a>>>3};b.g1_256=function(a){return d(a, -17)^d(a,19)^a>>>10}},{"../utils":115}],115:[function(h,a,b){function c(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24)>>>0}function d(a){return 1===a.length?"0"+a:a}function g(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}var k=h("minimalistic-assert");h=h("inherits");b.inherits=h;b.toArray=function(a,b){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if("string"=== -typeof a)if(!b)for(b=0;b>8,e=e&255;d?c.push(d,e):c.push(e)}else{if("hex"===b)for(a=a.replace(/[^a-z0-9]+/ig,""),0!==a.length%2&&(a="0"+a),b=0;b>>0;return c};b.split32=function(a,b){for(var c=Array(4*a.length),e=0,d=0;e>>24,c[d+1]=g>>>16&255,c[d+2]=g>>>8&255,c[d+3]=g&255):(c[d+3]=g>>>24,c[d+2]=g>>>16&255,c[d+1]=g>>>8&255,c[d]=g&255)}return c};b.rotr32=function(a,b){return a>>>b|a<<32-b};b.rotl32=function(a, -b){return a<>>32-b};b.sum32=function(a,b){return a+b>>>0};b.sum32_3=function(a,b,c){return a+b+c>>>0};b.sum32_4=function(a,b,c,d){return a+b+c+d>>>0};b.sum32_5=function(a,b,c,d,g){return a+b+c+d+g>>>0};b.sum64=function(a,b,c,d){var e=d+a[b+1]>>>0;a[b]=(e>>0;a[b+1]=e};b.sum64_hi=function(a,b,c,d){return(b+d>>>0>>0};b.sum64_lo=function(a,b,c,d){return b+d>>>0};b.sum64_4_hi=function(a,b,c,d,g,k,h,u){d=b+d>>>0;b=0+(d>>0;b+=d>> -0>>0};b.sum64_4_lo=function(a,b,c,d,g,k,h,u){return b+d+k+u>>>0};b.sum64_5_hi=function(a,b,c,d,g,k,h,u,x,C){d=b+d>>>0;b=0+(d>>0;b+=d>>0;b+=d>>0>>0};b.sum64_5_lo=function(a,b,c,d,g,k,h,u,x,C){return b+d+k+u+C>>>0};b.rotr64_hi=function(a,b,c){return(b<<32-c|a>>>c)>>>0};b.rotr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0};b.shr64_hi=function(a,b,c){return a>>>c};b.shr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0}},{inherits:119, -"minimalistic-assert":125}],116:[function(h,a,b){function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash;this.predResist=!!a.predResist;this.outLen=this.hash.outSize;this.minEntropy=a.minEntropy||this.hash.hmacStrength;this.V=this.K=this.reseedInterval=this._reseed=null;var b=g.toArray(a.entropy,a.entropyEnc||"hex"),e=g.toArray(a.nonce,a.nonceEnc||"hex");a=g.toArray(a.pers,a.persEnc||"hex");k(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(b, -e,a)}var d=h("hash.js"),g=h("minimalistic-crypto-utils"),k=h("minimalistic-assert");a.exports=c;c.prototype._init=function(a,b,c){a=a.concat(b).concat(c);this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(b=0;b=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(a.concat(c||[]));this._reseed=1};c.prototype.generate=function(a,b,c,d){if(this._reseed>this.reseedInterval)throw Error("Reseed is required"); -"string"!==typeof b&&(d=c,c=b,b=null);c&&(c=g.toArray(c,d||"hex"),this._update(c));for(d=[];d.length>1,h=-7;e=g?e-1:0;var p=g?-1:1,r=a[b+e];e+=p;g=r&(1<<-h)-1;r>>=-h;for(h+=c;0>=-h;for(h+=k;0>1,r=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;h=k?0:h-1;var u=k?1:-1,x=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,k=l):(k=Math.floor(Math.log(b)/Math.LN2),1>b*(c=Math.pow(2,-k))&&(k--,c*=2),b=1<=k+p?b+r/c:b+r*Math.pow(2,1-p),2<=b*c&&(k++, -c/=2),k+p>=l?(b=0,k=l):1<=k+p?(b=(b*c-1)*Math.pow(2,e),k+=p):(b=b*Math.pow(2,p-1)*Math.pow(2,e),k=0));for(;8<=e;a[g+h]=b&255,h+=u,b/=256,e-=8);k=k<>>32-b}function k(a, -b,c,e,d,f,k){return g(a+(b&c|~b&e)+d+f|0,k)+b|0}function e(a,b,c,e,d,f,k){return g(a+(b&e|c&~e)+d+f|0,k)+b|0}function l(a,b,c,e,d,f,k){return g(a+(b^c^e)+d+f|0,k)+b|0}function n(a,b,c,e,d,f,k){return g(a+(c^(b|~e))+d+f|0,k)+b|0}var f=h("inherits"),m=h("hash-base"),p=Array(16);f(c,m);c.prototype._update=function(){for(var a=0;16>a;++a)p[a]=this._block.readInt32LE(4*a);var a=this._a,b=this._b,c=this._c,d=this._d,a=k(a,b,c,d,p[0],3614090360,7),d=k(d,a,b,c,p[1],3905402710,12),c=k(c,d,a,b,p[2],606105819, +1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];d.inherits(c,q);a.exports=c;c.blockSize=1024;c.outSize=512;c.hmacStrength=192;c.padLength=128;c.prototype._prepareBlock=function(a,b){for(var c=this.W,d=0;32>d;d++)c[d]=a[b+d];for(;da&&(a+=4294967296);var h=c[d-4],g=c[d-3];b=e(h,g,19);f=e(g,h,29);h=n(h,g,6);b=b^f^h;0>b&&(b+=4294967296); +var f=c[d-14],h=c[d-13],m=c[d-30],q=c[d-29],g=k(m,q,1),p=k(m,q,8),m=l(m,q,7),g=g^p^m;0>g&&(g+=4294967296);var q=c[d-30],A=c[d-29],p=e(q,A,1),m=e(q,A,8),q=n(q,A,7),p=p^m^q;0>p&&(p+=4294967296);m=c[d-32];q=c[d-31];c[d]=r(a,b,f,h,g,p,m,q);c[d+1]=u(a,b,f,h,g,p,m,q)}};c.prototype._update=function(a,b){this._prepareBlock(a,b);a=this.W;b=this.h[0];var c=this.h[1],d=this.h[2],g=this.h[3],l=this.h[4],n=this.h[5],q=this.h[6],r=this.h[7],u=this.h[8],A=this.h[9],D=this.h[10],w=this.h[11],Q=this.h[12],ea=this.h[13], +P=this.h[14],T=this.h[15];h(this.k.length===a.length);for(var S=0;SR&&(R+=4294967296);K=R;var M=u,H=A,R=e(M,H,14),O=e(M,H,18),M=e(H,M,9),R=R^O^M;0>R&&(R+=4294967296);M=R;R=u&D^~u&Q;0>R&&(R+=4294967296);O=R;R=A&w^~A&ea;0>R&&(R+=4294967296);var H=R,L=this.k[S],U=this.k[S+1],oa=a[S],pa=a[S+1],R=x(P,T,K,M,O,H,L,U,oa,pa),O=C(P,T,K,M,O,H,L,U,oa,pa);K=b;M=c;P=k(K,M,28);T=k(M,K,2);K=k(M,K,7);P=P^T^K;0>P&&(P+=4294967296);M=b;H= +c;T=e(M,H,28);K=e(H,M,2);M=e(H,M,7);T=T^K^M;0>T&&(T+=4294967296);K=b&d^b&l^d&l;0>K&&(K+=4294967296);M=c&g^c&n^g&n;0>M&&(M+=4294967296);H=m(P,T,K,M);K=p(P,T,K,M);P=Q;T=ea;Q=D;ea=w;D=u;w=A;u=m(q,r,R,O);A=p(r,r,R,O);q=l;r=n;l=d;n=g;d=b;g=c;b=m(R,O,H,K);c=p(R,O,H,K)}f(this.h,0,b,c);f(this.h,2,d,g);f(this.h,4,l,n);f(this.h,6,q,r);f(this.h,8,u,A);f(this.h,10,D,w);f(this.h,12,Q,ea);f(this.h,14,P,T)};c.prototype._digest=function(a){return"hex"===a?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":105, +"../utils":115,"minimalistic-assert":125}],114:[function(g,a,b){function c(a,b,c){return a&b^a&c^b&c}var d=g("../utils").rotr32;b.ft_1=function(a,b,e,d){if(0===a)return b&e^~b&d;if(1===a||3===a)return b^e^d;if(2===a)return c(b,e,d)};b.ch32=function(a,b,c){return a&b^~a&c};b.maj32=c;b.p32=function(a,b,c){return a^b^c};b.s0_256=function(a){return d(a,2)^d(a,13)^d(a,22)};b.s1_256=function(a){return d(a,6)^d(a,11)^d(a,25)};b.g0_256=function(a){return d(a,7)^d(a,18)^a>>>3};b.g1_256=function(a){return d(a, +17)^d(a,19)^a>>>10}},{"../utils":115}],115:[function(g,a,b){function c(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24)>>>0}function d(a){return 1===a.length?"0"+a:a}function h(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}var k=g("minimalistic-assert");g=g("inherits");b.inherits=g;b.toArray=function(a,b){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if("string"=== +typeof a)if(!b)for(b=0;b>8,e=e&255;d?c.push(d,e):c.push(e)}else{if("hex"===b)for(a=a.replace(/[^a-z0-9]+/ig,""),0!==a.length%2&&(a="0"+a),b=0;b>>0;return c};b.split32=function(a,b){for(var c=Array(4*a.length),e=0,d=0;e>>24,c[d+1]=h>>>16&255,c[d+2]=h>>>8&255,c[d+3]=h&255):(c[d+3]=h>>>24,c[d+2]=h>>>16&255,c[d+1]=h>>>8&255,c[d]=h&255)}return c};b.rotr32=function(a,b){return a>>>b|a<<32-b};b.rotl32=function(a, +b){return a<>>32-b};b.sum32=function(a,b){return a+b>>>0};b.sum32_3=function(a,b,c){return a+b+c>>>0};b.sum32_4=function(a,b,c,d){return a+b+c+d>>>0};b.sum32_5=function(a,b,c,d,h){return a+b+c+d+h>>>0};b.sum64=function(a,b,c,d){var e=d+a[b+1]>>>0;a[b]=(e>>0;a[b+1]=e};b.sum64_hi=function(a,b,c,d){return(b+d>>>0>>0};b.sum64_lo=function(a,b,c,d){return b+d>>>0};b.sum64_4_hi=function(a,b,c,d,h,k,g,u){d=b+d>>>0;b=0+(d>>0;b+=d>> +0>>0};b.sum64_4_lo=function(a,b,c,d,h,k,g,u){return b+d+k+u>>>0};b.sum64_5_hi=function(a,b,c,d,h,k,g,u,x,C){d=b+d>>>0;b=0+(d>>0;b+=d>>0;b+=d>>0>>0};b.sum64_5_lo=function(a,b,c,d,h,k,g,u,x,C){return b+d+k+u+C>>>0};b.rotr64_hi=function(a,b,c){return(b<<32-c|a>>>c)>>>0};b.rotr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0};b.shr64_hi=function(a,b,c){return a>>>c};b.shr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0}},{inherits:119, +"minimalistic-assert":125}],116:[function(g,a,b){function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash;this.predResist=!!a.predResist;this.outLen=this.hash.outSize;this.minEntropy=a.minEntropy||this.hash.hmacStrength;this.V=this.K=this.reseedInterval=this._reseed=null;var b=h.toArray(a.entropy,a.entropyEnc||"hex"),e=h.toArray(a.nonce,a.nonceEnc||"hex");a=h.toArray(a.pers,a.persEnc||"hex");k(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(b, +e,a)}var d=g("hash.js"),h=g("minimalistic-crypto-utils"),k=g("minimalistic-assert");a.exports=c;c.prototype._init=function(a,b,c){a=a.concat(b).concat(c);this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(b=0;b=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(a.concat(c||[]));this._reseed=1};c.prototype.generate=function(a,b,c,d){if(this._reseed>this.reseedInterval)throw Error("Reseed is required"); +"string"!==typeof b&&(d=c,c=b,b=null);c&&(c=h.toArray(c,d||"hex"),this._update(c));for(d=[];d.length>1,g=-7;e=h?e-1:0;var p=h?-1:1,r=a[b+e];e+=p;h=r&(1<<-g)-1;r>>=-g;for(g+=c;0>=-g;for(g+=k;0>1,r=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;g=k?0:g-1;var u=k?1:-1,x=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,k=l):(k=Math.floor(Math.log(b)/Math.LN2),1>b*(c=Math.pow(2,-k))&&(k--,c*=2),b=1<=k+p?b+r/c:b+r*Math.pow(2,1-p),2<=b*c&&(k++, +c/=2),k+p>=l?(b=0,k=l):1<=k+p?(b=(b*c-1)*Math.pow(2,e),k+=p):(b=b*Math.pow(2,p-1)*Math.pow(2,e),k=0));for(;8<=e;a[h+g]=b&255,g+=u,b/=256,e-=8);k=k<>>32-b}function k(a, +b,c,e,d,f,k){return h(a+(b&c|~b&e)+d+f|0,k)+b|0}function e(a,b,c,e,d,f,k){return h(a+(b&e|c&~e)+d+f|0,k)+b|0}function l(a,b,c,e,d,f,k){return h(a+(b^c^e)+d+f|0,k)+b|0}function n(a,b,c,e,d,f,k){return h(a+(c^(b|~e))+d+f|0,k)+b|0}var f=g("inherits"),m=g("hash-base"),p=Array(16);f(c,m);c.prototype._update=function(){for(var a=0;16>a;++a)p[a]=this._block.readInt32LE(4*a);var a=this._a,b=this._b,c=this._c,d=this._d,a=k(a,b,c,d,p[0],3614090360,7),d=k(d,a,b,c,p[1],3905402710,12),c=k(c,d,a,b,p[2],606105819, 17),b=k(b,c,d,a,p[3],3250441966,22),a=k(a,b,c,d,p[4],4118548399,7),d=k(d,a,b,c,p[5],1200080426,12),c=k(c,d,a,b,p[6],2821735955,17),b=k(b,c,d,a,p[7],4249261313,22),a=k(a,b,c,d,p[8],1770035416,7),d=k(d,a,b,c,p[9],2336552879,12),c=k(c,d,a,b,p[10],4294925233,17),b=k(b,c,d,a,p[11],2304563134,22),a=k(a,b,c,d,p[12],1804603682,7),d=k(d,a,b,c,p[13],4254626195,12),c=k(c,d,a,b,p[14],2792965006,17),b=k(b,c,d,a,p[15],1236535329,22),a=e(a,b,c,d,p[1],4129170786,5),d=e(d,a,b,c,p[6],3225465664,9),c=e(c,d,a,b,p[11], 643717713,14),b=e(b,c,d,a,p[0],3921069994,20),a=e(a,b,c,d,p[5],3593408605,5),d=e(d,a,b,c,p[10],38016083,9),c=e(c,d,a,b,p[15],3634488961,14),b=e(b,c,d,a,p[4],3889429448,20),a=e(a,b,c,d,p[9],568446438,5),d=e(d,a,b,c,p[14],3275163606,9),c=e(c,d,a,b,p[3],4107603335,14),b=e(b,c,d,a,p[8],1163531501,20),a=e(a,b,c,d,p[13],2850285829,5),d=e(d,a,b,c,p[2],4243563512,9),c=e(c,d,a,b,p[7],1735328473,14),b=e(b,c,d,a,p[12],2368359562,20),a=l(a,b,c,d,p[5],4294588738,4),d=l(d,a,b,c,p[8],2272392833,11),c=l(c,d,a,b, p[11],1839030562,16),b=l(b,c,d,a,p[14],4259657740,23),a=l(a,b,c,d,p[1],2763975236,4),d=l(d,a,b,c,p[4],1272893353,11),c=l(c,d,a,b,p[7],4139469664,16),b=l(b,c,d,a,p[10],3200236656,23),a=l(a,b,c,d,p[13],681279174,4),d=l(d,a,b,c,p[0],3936430074,11),c=l(c,d,a,b,p[3],3572445317,16),b=l(b,c,d,a,p[6],76029189,23),a=l(a,b,c,d,p[9],3654602809,4),d=l(d,a,b,c,p[12],3873151461,11),c=l(c,d,a,b,p[15],530742520,16),b=l(b,c,d,a,p[2],3299628645,23),a=n(a,b,c,d,p[0],4096336452,6),d=n(d,a,b,c,p[7],1126891415,10),c=n(c, d,a,b,p[14],2878612391,15),b=n(b,c,d,a,p[5],4237533241,21),a=n(a,b,c,d,p[12],1700485571,6),d=n(d,a,b,c,p[3],2399980690,10),c=n(c,d,a,b,p[10],4293915773,15),b=n(b,c,d,a,p[1],2240044497,21),a=n(a,b,c,d,p[8],1873313359,6),d=n(d,a,b,c,p[15],4264355552,10),c=n(c,d,a,b,p[6],2734768916,15),b=n(b,c,d,a,p[13],1309151649,21),a=n(a,b,c,d,p[4],4149444226,6),d=n(d,a,b,c,p[11],3174756917,10),c=n(c,d,a,b,p[2],718787259,15),b=n(b,c,d,a,p[9],3951481745,21);this._a=this._a+a|0;this._b=this._b+b|0;this._c=this._c+c| -0;this._d=this._d+d|0};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._blockSize;){for(var e=this._blockOffset;ea;++a)this._length[a]=0;return b};c.prototype._digest=function(){throw Error("_digest is not implemented");};a.exports=c},{inherits:119,"safe-buffer":160,stream:169}],124:[function(h,a,b){function c(a){this.rand=a||new g.Rand} -var d=h("bn.js"),g=h("brorand");a.exports=c;c.create=function(a){return new c(a)};c.prototype._randbelow=function(a){var b=a.bitLength(),b=Math.ceil(b/8);do var c=new d(this.rand.generate(b));while(0<=c.cmp(a));return c};c.prototype._randrange=function(a,b){b=b.sub(a);return a.add(this._randbelow(b))};c.prototype.test=function(a,b,c){var e=a.bitLength(),f=d.mont(a),g=(new d(1)).toRed(f);b||(b=Math.max(1,e/48|0));for(var e=a.subn(1),k=0;!e.testn(k);k++);a=a.shrn(k);for(var h=e.toRed(f);0>8,d=d&255;g?c.push(g,d):c.push(d)}return c};b.zero2=c;b.toHex=d;b.encode=function(a,b){return"hex"===b?d(a):a}},{}],127:[function(h,a,b){a.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb", -"2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],128:[function(h,a,b){a=h("asn1.js");b.certificate=h("./certificate");h=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(), -this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});b.RSAPrivateKey=h;h=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});b.RSAPublicKey=h;h=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}); -b.PublicKey=h;var c=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});h=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});b.PrivateKey=h;h=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), -this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});b.EncryptedPrivateKey=h;h=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}); -b.DSAPrivateKey=h;b.DSAparam=a.define("DSAparam",function(){this.int()});h=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});b.ECPrivateKey=h;var d=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});b.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":129, -"asn1.js":19}],129:[function(h,a,b){h=h("asn1.js");var c=h.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),d=h.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),g=h.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),k=h.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(g),this.key("subjectPublicKey").bitstr())}), -e=h.define("RelativeDistinguishedName",function(){this.setof(d)}),l=h.define("RDNSequence",function(){this.seqof(e)}),n=h.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=h.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))}),m=h.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=h.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(), -this.key("serialNumber").int(),this.key("signature").use(g),this.key("issuer").use(n),this.key("validity").use(f),this.key("subject").use(n),this.key("subjectPublicKeyInfo").use(k),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(m).optional())});h=h.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(g),this.key("signatureValue").bitstr())}); -a.exports=h},{"asn1.js":19}],130:[function(h,a,b){(function(b){var c=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,g=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,k=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,e=h("evp_bytestokey"),l=h("browserify-aes");a.exports=function(a,d){a=a.toString();var f=a.match(c),h;if(f){var n="aes"+f[1],u=new b(f[2],"hex");h=new b(f[3].replace(/\r?\n/g, -""),"base64");f=e(d,u.slice(0,8),parseInt(f[1],10)).key;d=[];n=l.createDecipheriv(n,f,u);d.push(n.update(h));d.push(n.final());h=b.concat(d)}else h=a.match(k),h=new b(h[2].replace(/\r?\n/g,""),"base64");return{tag:a.match(g)[1],data:h}}}).call(this,h("buffer").Buffer)},{"browserify-aes":39,buffer:65,evp_bytestokey:102}],131:[function(h,a,b){(function(b){function c(a){var c;"object"!==typeof a||b.isBuffer(a)||(c=a.passphrase,a=a.key);"string"===typeof a&&(a=new b(a));var d=e(a,c);a=d.tag;var d=d.data, -f;switch(a){case "CERTIFICATE":f=g.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case "PUBLIC KEY":f||(f=g.PublicKey.decode(d,"der"));c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return g.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case "1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case "1.2.840.10040.4.1":return f.algorithm.params.pub_key=g.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params}; -default:throw Error("unknown key id "+c);}throw Error("unknown key type "+a);case "ENCRYPTED PRIVATE KEY":var h=d=g.EncryptedPrivateKey.decode(d,"der"),d=c,x=h.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10);f=k[h.algorithm.decrypt.cipher.algo.join(".")];a=h.algorithm.decrypt.cipher.iv;c=h.subjectPrivateKey;h=parseInt(f.split("-")[1],10)/8;d=n.pbkdf2Sync(d,x,C,h);f=l.createDecipheriv(f,d,a);a=[];a.push(f.update(c));a.push(f.final());d=b.concat(a); -case "PRIVATE KEY":f=g.PrivateKey.decode(d,"der");c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return g.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case "1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:g.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case "1.2.840.10040.4.1":return f.algorithm.params.priv_key=g.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw Error("unknown key id "+c);}throw Error("unknown key type "+ -a);case "RSA PUBLIC KEY":return g.RSAPublicKey.decode(d,"der");case "RSA PRIVATE KEY":return g.RSAPrivateKey.decode(d,"der");case "DSA PRIVATE KEY":return{type:"dsa",params:g.DSAPrivateKey.decode(d,"der")};case "EC PRIVATE KEY":return d=g.ECPrivateKey.decode(d,"der"),{curve:d.parameters.value,privateKey:d.privateKey};default:throw Error("unknown key type "+a);}}var g=h("./asn1"),k=h("./aesid.json"),e=h("./fixProc"),l=h("browserify-aes"),n=h("pbkdf2");a.exports=c;c.signature=g.signature}).call(this, -h("buffer").Buffer)},{"./aesid.json":127,"./asn1":128,"./fixProc":130,"browserify-aes":39,buffer:65,pbkdf2:132}],132:[function(h,a,b){b.pbkdf2=h("./lib/async");b.pbkdf2Sync=h("./lib/sync")},{"./lib/async":133,"./lib/sync":136}],133:[function(h,a,b){(function(b,d){function c(a){if(d.process&&!d.process.browser||!r||!r.importKey||!r.deriveBits)return Promise.resolve(!1);if(void 0!==x[a])return x[a];p=p||m.alloc(8);var b=k(p,p,10,128,a).then(function(){return!0}).catch(function(){return!1});return x[a]= -b}function k(a,b,c,e,d){return r.importKey("raw",a,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return r.deriveBits({name:"PBKDF2",salt:b,iterations:c,hash:{name:d}},a,e<<3)}).then(function(a){return m.from(a)})}function e(a,c){a.then(function(a){b.nextTick(function(){c(null,a)})},function(a){b.nextTick(function(){c(a)})})}var l=h("./precondition"),n=h("./default-encoding"),f=h("./sync"),m=h("safe-buffer").Buffer,p,r=d.crypto&&d.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256", -"sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},x=[];a.exports=function(a,g,h,p,r,v){m.isBuffer(a)||(a=m.from(a,n));m.isBuffer(g)||(g=m.from(g,n));l(h,p);"function"===typeof r&&(v=r,r=void 0);if("function"!==typeof v)throw Error("No callback provided to pbkdf2");r=r||"sha1";var q=u[r.toLowerCase()];if(!q||"function"!==typeof d.Promise)return b.nextTick(function(){var b;try{b=f(a,g,h,p,r)}catch(F){return v(F)}v(null,b)});e(c(q).then(function(b){return b? -k(a,g,h,p,q):f(a,g,h,p,r)}),v)}}).call(this,h("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./default-encoding":134,"./precondition":135,"./sync":136,_process:138,"safe-buffer":160}],134:[function(h,a,b){h=h("_process");h=h.browser?"utf-8":6<=parseInt(h.version.split(".")[0].slice(1),10)?"utf-8":"binary";a.exports=h},{_process:138}],135:[function(h,a,b){var c=Math.pow(2,30)-1;a.exports=function(a,b){if("number"!==typeof a)throw new TypeError("Iterations not a number"); -if(0>a)throw new TypeError("Bad iterations");if("number"!==typeof b)throw new TypeError("Key length not a number");if(0>b||b>c||b!==b)throw new TypeError("Bad key length");}},{}],136:[function(h,a,b){function c(a,b,c){var e=d(a),g="sha512"===a||"sha384"===a?128:64;b.length>g?b=e(b):b.lengthp||0<=(new e(d)).cmp(a.modulus))throw Error("decryption error");d=h?f(new e(d),a):l(d,a);var r=new b(p-d.length);r.fill(0);d=b.concat([r,d],p);if(4===m){p=d;m=a.modulus.byteLength();a=n("sha1").update(new b("")).digest();h=a.length;if(0!==p[0])throw Error("decryption error");d=p.slice(1,h+1);p=p.slice(h+1);d=k(d,g(p,h));m=k(p,g(d,m-h-1));p=m.slice(0,h);a=new b(a);p=new b(p);d=0;r=a.length;a.length!== -p.length&&(d++,r=Math.min(a.length,p.length));for(var q=-1;++q=m.length){d++;break}r=m.slice(2,p-1);m.slice(p-1,p);("0002"!==a.toString("hex")&&!h||"0001"!==a.toString("hex")&&h)&&d++;8>r.length&&d++;if(d)throw Error("decryption error");return m.slice(p)}if(3===m)return d;throw Error("unknown padding");}}).call(this, -h("buffer").Buffer)},{"./mgf":140,"./withPublic":143,"./xor":144,"bn.js":34,"browserify-rsa":57,buffer:65,"create-hash":69,"parse-asn1":131}],142:[function(h,a,b){(function(b){var c=h("parse-asn1"),g=h("randombytes"),k=h("create-hash"),e=h("./mgf"),l=h("./xor"),n=h("bn.js"),f=h("./withPublic"),m=h("browserify-rsa");a.exports=function(a,d,h){var p;p=a.padding?a.padding:h?1:4;a=c(a);if(4===p){p=a.modulus.byteLength();var r=d.length,q=k("sha1").update(new b("")).digest(),A=q.length,u=2*A;if(r>p-u-2)throw Error("message too long"); -u=new b(p-r-u-2);u.fill(0);var w=p-A-1,r=g(A);d=l(b.concat([q,u,new b([1]),d],w),e(r,w));A=l(r,e(d,A));d=new n(b.concat([new b([0]),A,d],p))}else if(1===p){A=d.length;p=a.modulus.byteLength();if(A>p-11)throw Error("message too long");if(h)A=new b(p-A-3),A.fill(255);else{for(var A=p-A-3,q=new b(A),r=0,u=g(2*A),w=0,v;ra;++a)this._length[a]=0;return b};c.prototype._digest=function(){throw Error("_digest is not implemented");};a.exports=c},{inherits:119,"safe-buffer":160,stream:169}],124:[function(g,a,b){function c(a){this.rand=a||new h.Rand} +var d=g("bn.js"),h=g("brorand");a.exports=c;c.create=function(a){return new c(a)};c.prototype._randbelow=function(a){var b=a.bitLength(),b=Math.ceil(b/8);do var c=new d(this.rand.generate(b));while(0<=c.cmp(a));return c};c.prototype._randrange=function(a,b){b=b.sub(a);return a.add(this._randbelow(b))};c.prototype.test=function(a,b,c){var e=a.bitLength(),f=d.mont(a),h=(new d(1)).toRed(f);b||(b=Math.max(1,e/48|0));for(var e=a.subn(1),k=0;!e.testn(k);k++);a=a.shrn(k);for(var g=e.toRed(f);0>8,d=d&255;h?c.push(h,d):c.push(d)}return c};b.zero2=c;b.toHex=d;b.encode=function(a,b){return"hex"===b?d(a):a}},{}],127:[function(g,a,b){a.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb", +"2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],128:[function(g,a,b){a=g("asn1.js");b.certificate=g("./certificate");g=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(), +this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});b.RSAPrivateKey=g;g=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});b.RSAPublicKey=g;g=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}); +b.PublicKey=g;var c=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});g=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});b.PrivateKey=g;g=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), +this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});b.EncryptedPrivateKey=g;g=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}); +b.DSAPrivateKey=g;b.DSAparam=a.define("DSAparam",function(){this.int()});g=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});b.ECPrivateKey=g;var d=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});b.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":129, +"asn1.js":19}],129:[function(g,a,b){g=g("asn1.js");var c=g.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),d=g.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),h=g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),k=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())}), +e=g.define("RelativeDistinguishedName",function(){this.setof(d)}),l=g.define("RDNSequence",function(){this.seqof(e)}),n=g.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=g.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))}),m=g.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=g.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(), +this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(n),this.key("validity").use(f),this.key("subject").use(n),this.key("subjectPublicKeyInfo").use(k),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(m).optional())});g=g.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(h),this.key("signatureValue").bitstr())}); +a.exports=g},{"asn1.js":19}],130:[function(g,a,b){(function(b){var c=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,h=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,k=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,e=g("evp_bytestokey"),l=g("browserify-aes");a.exports=function(a,d){a=a.toString();var f=a.match(c),g;if(f){var n="aes"+f[1],u=new b(f[2],"hex");g=new b(f[3].replace(/\r?\n/g, +""),"base64");f=e(d,u.slice(0,8),parseInt(f[1],10)).key;d=[];n=l.createDecipheriv(n,f,u);d.push(n.update(g));d.push(n.final());g=b.concat(d)}else g=a.match(k),g=new b(g[2].replace(/\r?\n/g,""),"base64");return{tag:a.match(h)[1],data:g}}}).call(this,g("buffer").Buffer)},{"browserify-aes":39,buffer:65,evp_bytestokey:102}],131:[function(g,a,b){(function(b){function c(a){var c;"object"!==typeof a||b.isBuffer(a)||(c=a.passphrase,a=a.key);"string"===typeof a&&(a=new b(a));var d=e(a,c);a=d.tag;var d=d.data, +f;switch(a){case "CERTIFICATE":f=h.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case "PUBLIC KEY":f||(f=h.PublicKey.decode(d,"der"));c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case "1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case "1.2.840.10040.4.1":return f.algorithm.params.pub_key=h.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params}; +default:throw Error("unknown key id "+c);}throw Error("unknown key type "+a);case "ENCRYPTED PRIVATE KEY":var g=d=h.EncryptedPrivateKey.decode(d,"der"),d=c,x=g.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(g.algorithm.decrypt.kde.kdeparams.iters.toString(),10);f=k[g.algorithm.decrypt.cipher.algo.join(".")];a=g.algorithm.decrypt.cipher.iv;c=g.subjectPrivateKey;g=parseInt(f.split("-")[1],10)/8;d=n.pbkdf2Sync(d,x,C,g);f=l.createDecipheriv(f,d,a);a=[];a.push(f.update(c));a.push(f.final());d=b.concat(a); +case "PRIVATE KEY":f=h.PrivateKey.decode(d,"der");c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case "1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:h.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case "1.2.840.10040.4.1":return f.algorithm.params.priv_key=h.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw Error("unknown key id "+c);}throw Error("unknown key type "+ +a);case "RSA PUBLIC KEY":return h.RSAPublicKey.decode(d,"der");case "RSA PRIVATE KEY":return h.RSAPrivateKey.decode(d,"der");case "DSA PRIVATE KEY":return{type:"dsa",params:h.DSAPrivateKey.decode(d,"der")};case "EC PRIVATE KEY":return d=h.ECPrivateKey.decode(d,"der"),{curve:d.parameters.value,privateKey:d.privateKey};default:throw Error("unknown key type "+a);}}var h=g("./asn1"),k=g("./aesid.json"),e=g("./fixProc"),l=g("browserify-aes"),n=g("pbkdf2");a.exports=c;c.signature=h.signature}).call(this, +g("buffer").Buffer)},{"./aesid.json":127,"./asn1":128,"./fixProc":130,"browserify-aes":39,buffer:65,pbkdf2:132}],132:[function(g,a,b){b.pbkdf2=g("./lib/async");b.pbkdf2Sync=g("./lib/sync")},{"./lib/async":133,"./lib/sync":136}],133:[function(g,a,b){(function(b,d){function c(a){if(d.process&&!d.process.browser||!r||!r.importKey||!r.deriveBits)return Promise.resolve(!1);if(void 0!==x[a])return x[a];p=p||m.alloc(8);var b=k(p,p,10,128,a).then(function(){return!0}).catch(function(){return!1});return x[a]= +b}function k(a,b,c,e,d){return r.importKey("raw",a,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return r.deriveBits({name:"PBKDF2",salt:b,iterations:c,hash:{name:d}},a,e<<3)}).then(function(a){return m.from(a)})}function e(a,c){a.then(function(a){b.nextTick(function(){c(null,a)})},function(a){b.nextTick(function(){c(a)})})}var l=g("./precondition"),n=g("./default-encoding"),f=g("./sync"),m=g("safe-buffer").Buffer,p,r=d.crypto&&d.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256", +"sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},x=[];a.exports=function(a,h,g,p,r,v){m.isBuffer(a)||(a=m.from(a,n));m.isBuffer(h)||(h=m.from(h,n));l(g,p);"function"===typeof r&&(v=r,r=void 0);if("function"!==typeof v)throw Error("No callback provided to pbkdf2");r=r||"sha1";var q=u[r.toLowerCase()];if(!q||"function"!==typeof d.Promise)return b.nextTick(function(){var b;try{b=f(a,h,g,p,r)}catch(F){return v(F)}v(null,b)});e(c(q).then(function(b){return b? +k(a,h,g,p,q):f(a,h,g,p,r)}),v)}}).call(this,g("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./default-encoding":134,"./precondition":135,"./sync":136,_process:138,"safe-buffer":160}],134:[function(g,a,b){g=g("_process");g=g.browser?"utf-8":6<=parseInt(g.version.split(".")[0].slice(1),10)?"utf-8":"binary";a.exports=g},{_process:138}],135:[function(g,a,b){var c=Math.pow(2,30)-1;a.exports=function(a,b){if("number"!==typeof a)throw new TypeError("Iterations not a number"); +if(0>a)throw new TypeError("Bad iterations");if("number"!==typeof b)throw new TypeError("Key length not a number");if(0>b||b>c||b!==b)throw new TypeError("Bad key length");}},{}],136:[function(g,a,b){function c(a,b,c){var e=d(a),h="sha512"===a||"sha384"===a?128:64;b.length>h?b=e(b):b.lengthp||0<=(new e(d)).cmp(a.modulus))throw Error("decryption error");d=g?f(new e(d),a):l(d,a);var r=new b(p-d.length);r.fill(0);d=b.concat([r,d],p);if(4===m){p=d;m=a.modulus.byteLength();a=n("sha1").update(new b("")).digest();g=a.length;if(0!==p[0])throw Error("decryption error");d=p.slice(1,g+1);p=p.slice(g+1);d=k(d,h(p,g));m=k(p,h(d,m-g-1));p=m.slice(0,g);a=new b(a);p=new b(p);d=0;r=a.length;a.length!== +p.length&&(d++,r=Math.min(a.length,p.length));for(var q=-1;++q=m.length){d++;break}r=m.slice(2,p-1);m.slice(p-1,p);("0002"!==a.toString("hex")&&!g||"0001"!==a.toString("hex")&&g)&&d++;8>r.length&&d++;if(d)throw Error("decryption error");return m.slice(p)}if(3===m)return d;throw Error("unknown padding");}}).call(this, +g("buffer").Buffer)},{"./mgf":140,"./withPublic":143,"./xor":144,"bn.js":34,"browserify-rsa":57,buffer:65,"create-hash":69,"parse-asn1":131}],142:[function(g,a,b){(function(b){var c=g("parse-asn1"),h=g("randombytes"),k=g("create-hash"),e=g("./mgf"),l=g("./xor"),n=g("bn.js"),f=g("./withPublic"),m=g("browserify-rsa");a.exports=function(a,d,g){var p;p=a.padding?a.padding:g?1:4;a=c(a);if(4===p){p=a.modulus.byteLength();var r=d.length,q=k("sha1").update(new b("")).digest(),A=q.length,u=2*A;if(r>p-u-2)throw Error("message too long"); +u=new b(p-r-u-2);u.fill(0);var w=p-A-1,r=h(A);d=l(b.concat([q,u,new b([1]),d],w),e(r,w));A=l(r,e(d,A));d=new n(b.concat([new b([0]),A,d],p))}else if(1===p){A=d.length;p=a.modulus.byteLength();if(A>p-11)throw Error("message too long");if(g)A=new b(p-A-3),A.fill(255);else{for(var A=p-A-3,q=new b(A),r=0,u=h(2*A),w=0,v;r=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}function m(a){var b=a._readableState;b.needReadable=!1;b.emittedReadable||(t("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?y(p,a):p(a))}function p(a){t("emit readable"); a.emit("readable");q(a)}function r(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length)c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear();else{c=b.buffer;b=b.decoder;if(af.length?f.length:a,d=g===f.length?d+f:d+f.slice(0,a);a-=g;if(0===a){g===f.length?(++e,c.head=b.next?b.next:c.tail=null):(c.head=b,b.data=f.slice(g));break}++e}c.length-=e;c=d}else{b=G.allocUnsafe(a);e=c.head;d=1;e.data.copy(b);for(a-=e.data.length;e=e.next;){f=e.data;g=a>f.length?f.length:a;f.copy(b,b.length-a,0,g);a-=g;if(0===a){g===f.length?(++d,c.head=e.next?e.next:c.tail=null):(c.head= -e,e.data=f.slice(g));break}++d}c.length-=d;c=b}b=c}c=b}return c}function D(a){var b=a._readableState;if(0f.length?f.length:a,d=h===f.length?d+f:d+f.slice(0,a);a-=h;if(0===a){h===f.length?(++e,c.head=b.next?b.next:c.tail=null):(c.head=b,b.data=f.slice(h));break}++e}c.length-=e;c=d}else{b=G.allocUnsafe(a);e=c.head;d=1;e.data.copy(b);for(a-=e.data.length;e=e.next;){f=e.data;h=a>f.length?f.length:a;f.copy(b,b.length-a,0,h);a-=h;if(0===a){h===f.length?(++d,c.head=e.next?e.next:c.tail=null):(c.head= +e,e.data=f.slice(h));break}++d}c.length-=d;c=b}b=c}c=b}return c}function D(a){var b=a._readableState;if(0=b.highWaterMark||b.ended))return t("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?D(this):m(this),null;a=f(a,b);if(0===a&&b.ended)return 0===b.length&&D(this),null;var e=b.needReadable;t("need readable",e);if(0===b.length||b.length-a>>0);for(var b=this.head,e=0;b;)b.data.copy(a,e),e+=b.data.length,b=b.next;return a};return a}()},{"safe-buffer":160}],153:[function(h,a,b){function c(a,b){a.emit("error",b)}var d=h("process-nextick-args"); -a.exports={destroy:function(a,b){var e=this,g=this._writableState&&this._writableState.destroyed;this._readableState&&this._readableState.destroyed||g?b?b(a):!a||this._writableState&&this._writableState.errorEmitted||d(c,this,a):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?(d(c,e,a),e._writableState&&(e._writableState.errorEmitted=!0)):b&&b(a)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed= -!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":137}],154:[function(h,a,b){a.exports=h("events").EventEmitter},{events:101}],155:[function(h,a,b){a.exports=h("./readable").PassThrough},{"./readable":156}],156:[function(h,a,b){b=a.exports=h("./lib/_stream_readable.js"); -b.Stream=b;b.Readable=b;b.Writable=h("./lib/_stream_writable.js");b.Duplex=h("./lib/_stream_duplex.js");b.Transform=h("./lib/_stream_transform.js");b.PassThrough=h("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":147,"./lib/_stream_passthrough.js":148,"./lib/_stream_readable.js":149,"./lib/_stream_transform.js":150,"./lib/_stream_writable.js":151}],157:[function(h,a,b){a.exports=h("./readable").Transform},{"./readable":156}],158:[function(h,a,b){a.exports=h("./lib/_stream_writable.js")}, -{"./lib/_stream_writable.js":151}],159:[function(h,a,b){(function(b){function c(){p.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}function g(a,b){return a<>>32-b}function k(a,b,c,e,d,f,k,h){return g(a+(b^c^e)+f+k|0,h)+d|0}function e(a,b,c,e,d,f,k,h){return g(a+(b&c|~b&e)+f+k|0,h)+d|0}function l(a,b,c,e,d,f,k,h){return g(a+((b|~c)^e)+f+k|0,h)+d|0}function n(a,b,c,e,d,f,k,h){return g(a+(b&e|c&~e)+f+k|0,h)+d|0}function f(a,b,c,e,d,f, -k,h){return g(a+(b^(c|~e))+f+k|0,h)+d|0}var m=h("inherits"),p=h("hash-base");m(c,p);c.prototype._update=function(){for(var a=Array(16),b=0;16>b;++b)a[b]=this._block.readInt32LE(4*b);var b=this._a,c=this._b,d=this._c,h=this._d,m=this._e,b=k(b,c,d,h,m,a[0],0,11),d=g(d,10),m=k(m,b,c,d,h,a[1],0,14),c=g(c,10),h=k(h,m,b,c,d,a[2],0,15),b=g(b,10),d=k(d,h,m,b,c,a[3],0,12),m=g(m,10),c=k(c,d,h,m,b,a[4],0,5),h=g(h,10),b=k(b,c,d,h,m,a[5],0,8),d=g(d,10),m=k(m,b,c,d,h,a[6],0,7),c=g(c,10),h=k(h,m,b,c,d,a[7],0,9), -b=g(b,10),d=k(d,h,m,b,c,a[8],0,11),m=g(m,10),c=k(c,d,h,m,b,a[9],0,13),h=g(h,10),b=k(b,c,d,h,m,a[10],0,14),d=g(d,10),m=k(m,b,c,d,h,a[11],0,15),c=g(c,10),h=k(h,m,b,c,d,a[12],0,6),b=g(b,10),d=k(d,h,m,b,c,a[13],0,7),m=g(m,10),c=k(c,d,h,m,b,a[14],0,9),h=g(h,10),b=k(b,c,d,h,m,a[15],0,8),d=g(d,10),m=e(m,b,c,d,h,a[7],1518500249,7),c=g(c,10),h=e(h,m,b,c,d,a[4],1518500249,6),b=g(b,10),d=e(d,h,m,b,c,a[13],1518500249,8),m=g(m,10),c=e(c,d,h,m,b,a[1],1518500249,13),h=g(h,10),b=e(b,c,d,h,m,a[10],1518500249,11), -d=g(d,10),m=e(m,b,c,d,h,a[6],1518500249,9),c=g(c,10),h=e(h,m,b,c,d,a[15],1518500249,7),b=g(b,10),d=e(d,h,m,b,c,a[3],1518500249,15),m=g(m,10),c=e(c,d,h,m,b,a[12],1518500249,7),h=g(h,10),b=e(b,c,d,h,m,a[0],1518500249,12),d=g(d,10),m=e(m,b,c,d,h,a[9],1518500249,15),c=g(c,10),h=e(h,m,b,c,d,a[5],1518500249,9),b=g(b,10),d=e(d,h,m,b,c,a[2],1518500249,11),m=g(m,10),c=e(c,d,h,m,b,a[14],1518500249,7),h=g(h,10),b=e(b,c,d,h,m,a[11],1518500249,13),d=g(d,10),m=e(m,b,c,d,h,a[8],1518500249,12),c=g(c,10),h=l(h,m, -b,c,d,a[3],1859775393,11),b=g(b,10),d=l(d,h,m,b,c,a[10],1859775393,13),m=g(m,10),c=l(c,d,h,m,b,a[14],1859775393,6),h=g(h,10),b=l(b,c,d,h,m,a[4],1859775393,7),d=g(d,10),m=l(m,b,c,d,h,a[9],1859775393,14),c=g(c,10),h=l(h,m,b,c,d,a[15],1859775393,9),b=g(b,10),d=l(d,h,m,b,c,a[8],1859775393,13),m=g(m,10),c=l(c,d,h,m,b,a[1],1859775393,15),h=g(h,10),b=l(b,c,d,h,m,a[2],1859775393,14),d=g(d,10),m=l(m,b,c,d,h,a[7],1859775393,8),c=g(c,10),h=l(h,m,b,c,d,a[0],1859775393,13),b=g(b,10),d=l(d,h,m,b,c,a[6],1859775393, -6),m=g(m,10),c=l(c,d,h,m,b,a[13],1859775393,5),h=g(h,10),b=l(b,c,d,h,m,a[11],1859775393,12),d=g(d,10),m=l(m,b,c,d,h,a[5],1859775393,7),c=g(c,10),h=l(h,m,b,c,d,a[12],1859775393,5),b=g(b,10),d=n(d,h,m,b,c,a[1],2400959708,11),m=g(m,10),c=n(c,d,h,m,b,a[9],2400959708,12),h=g(h,10),b=n(b,c,d,h,m,a[11],2400959708,14),d=g(d,10),m=n(m,b,c,d,h,a[10],2400959708,15),c=g(c,10),h=n(h,m,b,c,d,a[0],2400959708,14),b=g(b,10),d=n(d,h,m,b,c,a[8],2400959708,15),m=g(m,10),c=n(c,d,h,m,b,a[12],2400959708,9),h=g(h,10),b= -n(b,c,d,h,m,a[4],2400959708,8),d=g(d,10),m=n(m,b,c,d,h,a[13],2400959708,9),c=g(c,10),h=n(h,m,b,c,d,a[3],2400959708,14),b=g(b,10),d=n(d,h,m,b,c,a[7],2400959708,5),m=g(m,10),c=n(c,d,h,m,b,a[15],2400959708,6),h=g(h,10),b=n(b,c,d,h,m,a[14],2400959708,8),d=g(d,10),m=n(m,b,c,d,h,a[5],2400959708,6),c=g(c,10),h=n(h,m,b,c,d,a[6],2400959708,5),b=g(b,10),d=n(d,h,m,b,c,a[2],2400959708,12),m=g(m,10),c=f(c,d,h,m,b,a[4],2840853838,9),h=g(h,10),b=f(b,c,d,h,m,a[0],2840853838,15),d=g(d,10),m=f(m,b,c,d,h,a[5],2840853838, -5),c=g(c,10),h=f(h,m,b,c,d,a[9],2840853838,11),b=g(b,10),d=f(d,h,m,b,c,a[7],2840853838,6),m=g(m,10),c=f(c,d,h,m,b,a[12],2840853838,8),h=g(h,10),b=f(b,c,d,h,m,a[2],2840853838,13),d=g(d,10),m=f(m,b,c,d,h,a[10],2840853838,12),c=g(c,10),h=f(h,m,b,c,d,a[14],2840853838,5),b=g(b,10),d=f(d,h,m,b,c,a[1],2840853838,12),m=g(m,10),c=f(c,d,h,m,b,a[3],2840853838,13),h=g(h,10),b=f(b,c,d,h,m,a[8],2840853838,14),d=g(d,10),m=f(m,b,c,d,h,a[11],2840853838,11),c=g(c,10),h=f(h,m,b,c,d,a[6],2840853838,8),b=g(b,10),d=f(d, -h,m,b,c,a[15],2840853838,5),m=g(m,10),c=f(c,d,h,m,b,a[13],2840853838,6),h=g(h,10),p=this._a,w=this._b,v=this._c,y=this._d,z=this._e,p=f(p,w,v,y,z,a[5],1352829926,8),v=g(v,10),z=f(z,p,w,v,y,a[14],1352829926,9),w=g(w,10),y=f(y,z,p,w,v,a[7],1352829926,9),p=g(p,10),v=f(v,y,z,p,w,a[0],1352829926,11),z=g(z,10),w=f(w,v,y,z,p,a[9],1352829926,13),y=g(y,10),p=f(p,w,v,y,z,a[2],1352829926,15),v=g(v,10),z=f(z,p,w,v,y,a[11],1352829926,15),w=g(w,10),y=f(y,z,p,w,v,a[4],1352829926,5),p=g(p,10),v=f(v,y,z,p,w,a[13], -1352829926,7),z=g(z,10),w=f(w,v,y,z,p,a[6],1352829926,7),y=g(y,10),p=f(p,w,v,y,z,a[15],1352829926,8),v=g(v,10),z=f(z,p,w,v,y,a[8],1352829926,11),w=g(w,10),y=f(y,z,p,w,v,a[1],1352829926,14),p=g(p,10),v=f(v,y,z,p,w,a[10],1352829926,14),z=g(z,10),w=f(w,v,y,z,p,a[3],1352829926,12),y=g(y,10),p=f(p,w,v,y,z,a[12],1352829926,6),v=g(v,10),z=n(z,p,w,v,y,a[6],1548603684,9),w=g(w,10),y=n(y,z,p,w,v,a[11],1548603684,13),p=g(p,10),v=n(v,y,z,p,w,a[3],1548603684,15),z=g(z,10),w=n(w,v,y,z,p,a[7],1548603684,7),y=g(y, -10),p=n(p,w,v,y,z,a[0],1548603684,12),v=g(v,10),z=n(z,p,w,v,y,a[13],1548603684,8),w=g(w,10),y=n(y,z,p,w,v,a[5],1548603684,9),p=g(p,10),v=n(v,y,z,p,w,a[10],1548603684,11),z=g(z,10),w=n(w,v,y,z,p,a[14],1548603684,7),y=g(y,10),p=n(p,w,v,y,z,a[15],1548603684,7),v=g(v,10),z=n(z,p,w,v,y,a[8],1548603684,12),w=g(w,10),y=n(y,z,p,w,v,a[12],1548603684,7),p=g(p,10),v=n(v,y,z,p,w,a[4],1548603684,6),z=g(z,10),w=n(w,v,y,z,p,a[9],1548603684,15),y=g(y,10),p=n(p,w,v,y,z,a[1],1548603684,13),v=g(v,10),z=n(z,p,w,v,y, -a[2],1548603684,11),w=g(w,10),y=l(y,z,p,w,v,a[15],1836072691,9),p=g(p,10),v=l(v,y,z,p,w,a[5],1836072691,7),z=g(z,10),w=l(w,v,y,z,p,a[1],1836072691,15),y=g(y,10),p=l(p,w,v,y,z,a[3],1836072691,11),v=g(v,10),z=l(z,p,w,v,y,a[7],1836072691,8),w=g(w,10),y=l(y,z,p,w,v,a[14],1836072691,6),p=g(p,10),v=l(v,y,z,p,w,a[6],1836072691,6),z=g(z,10),w=l(w,v,y,z,p,a[9],1836072691,14),y=g(y,10),p=l(p,w,v,y,z,a[11],1836072691,12),v=g(v,10),z=l(z,p,w,v,y,a[8],1836072691,13),w=g(w,10),y=l(y,z,p,w,v,a[12],1836072691,5), -p=g(p,10),v=l(v,y,z,p,w,a[2],1836072691,14),z=g(z,10),w=l(w,v,y,z,p,a[10],1836072691,13),y=g(y,10),p=l(p,w,v,y,z,a[0],1836072691,13),v=g(v,10),z=l(z,p,w,v,y,a[4],1836072691,7),w=g(w,10),y=l(y,z,p,w,v,a[13],1836072691,5),p=g(p,10),v=e(v,y,z,p,w,a[8],2053994217,15),z=g(z,10),w=e(w,v,y,z,p,a[6],2053994217,5),y=g(y,10),p=e(p,w,v,y,z,a[4],2053994217,8),v=g(v,10),z=e(z,p,w,v,y,a[1],2053994217,11),w=g(w,10),y=e(y,z,p,w,v,a[3],2053994217,14),p=g(p,10),v=e(v,y,z,p,w,a[11],2053994217,14),z=g(z,10),w=e(w,v, -y,z,p,a[15],2053994217,6),y=g(y,10),p=e(p,w,v,y,z,a[0],2053994217,14),v=g(v,10),z=e(z,p,w,v,y,a[5],2053994217,6),w=g(w,10),y=e(y,z,p,w,v,a[12],2053994217,9),p=g(p,10),v=e(v,y,z,p,w,a[2],2053994217,12),z=g(z,10),w=e(w,v,y,z,p,a[13],2053994217,9),y=g(y,10),p=e(p,w,v,y,z,a[9],2053994217,12),v=g(v,10),z=e(z,p,w,v,y,a[7],2053994217,5),w=g(w,10),y=e(y,z,p,w,v,a[10],2053994217,15),p=g(p,10),v=e(v,y,z,p,w,a[14],2053994217,8),z=g(z,10),w=k(w,v,y,z,p,a[12],0,8),y=g(y,10),p=k(p,w,v,y,z,a[15],0,5),v=g(v,10), -z=k(z,p,w,v,y,a[10],0,12),w=g(w,10),y=k(y,z,p,w,v,a[4],0,9),p=g(p,10),v=k(v,y,z,p,w,a[1],0,12),z=g(z,10),w=k(w,v,y,z,p,a[5],0,5),y=g(y,10),p=k(p,w,v,y,z,a[8],0,14),v=g(v,10),z=k(z,p,w,v,y,a[7],0,6),w=g(w,10),y=k(y,z,p,w,v,a[6],0,8),p=g(p,10),v=k(v,y,z,p,w,a[2],0,13),z=g(z,10),w=k(w,v,y,z,p,a[13],0,6),y=g(y,10),p=k(p,w,v,y,z,a[14],0,5),v=g(v,10),z=k(z,p,w,v,y,a[0],0,15),w=g(w,10),y=k(y,z,p,w,v,a[3],0,13),p=g(p,10),v=k(v,y,z,p,w,a[9],0,11),z=g(z,10),w=k(w,v,y,z,p,a[11],0,11),y=g(y,10),a=this._b+d+y| -0;this._b=this._c+h+z|0;this._c=this._d+m+p|0;this._d=this._e+b+w|0;this._e=this._a+c+v|0;this._a=a};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._finalSize&&(this._update(this._block),this._block.fill(0));b=8*this._len; -if(4294967295>=b)this._block.writeUInt32BE(b,this._blockSize-4);else{var c=b&4294967295;this._block.writeUInt32BE((b-c)/4294967296,this._blockSize-8);this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);b=this._hash();return a?b.toString(a):b};c.prototype._update=function(){throw Error("_update must be implemented by subclass");};a.exports=c},{"safe-buffer":160}],162:[function(h,a,b){b=a.exports=function(a){a=a.toLowerCase();var c=b[a];if(!c)throw Error(a+" is not supported (we accept pull requests)"); -return new c};b.sha=h("./sha");b.sha1=h("./sha1");b.sha224=h("./sha224");b.sha256=h("./sha256");b.sha384=h("./sha384");b.sha512=h("./sha512")},{"./sha":163,"./sha1":164,"./sha224":165,"./sha256":166,"./sha384":167,"./sha512":168}],163:[function(h,a,b){function c(){this.init();this._w=e;d.call(this,64,56)}b=h("inherits");var d=h("./hash"),g=h("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);b(c,d);c.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c= -2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,g=this._d|0,h=this._e|0,l=0;16>l;++l)b[l]=a.readInt32BE(4*l);for(;80>l;++l)b[l]=b[l-3]^b[l-8]^b[l-14]^b[l-16];for(a=0;80>a;++a){var l=~~(a/20),C=c<<5|c>>>27,q;q=0===l?e&d|~e&g:2===l?e&d|e&g|d&g:e^d^g;l=C+q+h+b[a]+k[l]|0;h=g;g=d;d=e<<30|e>>>2;e=c;c=l}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=g+this._d|0;this._e=h+this._e|0};c.prototype._hash= -function(){var a=g.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],164:[function(h,a,b){function c(){this.init();this._w=e;d.call(this,64,56)}b=h("inherits");var d=h("./hash"),g=h("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);b(c,d);c.prototype.init=function(){this._a=1732584193;this._b= -4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,g=this._d|0,h=this._e|0,l=0;16>l;++l)b[l]=a.readInt32BE(4*l);for(;80>l;++l)a=b[l-3]^b[l-8]^b[l-14]^b[l-16],b[l]=a<<1|a>>>31;for(l=0;80>l;++l){a=~~(l/20);var C=c<<5|c>>>27,q;q=0===a?e&d|~e&g:2===a?e&d|e&g|d&g:e^d^g;a=C+q+h+b[l]+k[a]|0;h=g;g=d;d=e<<30|e>>>2;e=c;c=a}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=g+this._d| -0;this._e=h+this._e|0};c.prototype._hash=function(){var a=g.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],165:[function(h,a,b){function c(){this.init();this._w=e;g.call(this,64,56)}b=h("inherits");var d=h("./sha256"),g=h("./hash"),k=h("safe-buffer").Buffer,e=Array(64);b(c,d);c.prototype.init=function(){this._a=3238371032; -this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};c.prototype._hash=function(){var a=k.allocUnsafe(28);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);return a};a.exports=c},{"./hash":161,"./sha256":166,inherits:119,"safe-buffer":160}],166:[function(h,a,b){function c(){this.init(); -this._w=e;d.call(this,64,56)}b=h("inherits");var d=h("./hash"),g=h("safe-buffer").Buffer,k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350, +function(){this.head=this.tail=null;this.length=0};a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c};a.prototype.concat=function(a){if(0===this.length)return c.alloc(0);if(1===this.length)return this.head.data;a=c.allocUnsafe(a>>>0);for(var b=this.head,e=0;b;)b.data.copy(a,e),e+=b.data.length,b=b.next;return a};return a}()},{"safe-buffer":160}],153:[function(g,a,b){function c(a,b){a.emit("error",b)}var d=g("process-nextick-args"); +a.exports={destroy:function(a,b){var e=this,h=this._writableState&&this._writableState.destroyed;this._readableState&&this._readableState.destroyed||h?b?b(a):!a||this._writableState&&this._writableState.errorEmitted||d(c,this,a):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?(d(c,e,a),e._writableState&&(e._writableState.errorEmitted=!0)):b&&b(a)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed= +!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":137}],154:[function(g,a,b){a.exports=g("events").EventEmitter},{events:101}],155:[function(g,a,b){a.exports=g("./readable").PassThrough},{"./readable":156}],156:[function(g,a,b){b=a.exports=g("./lib/_stream_readable.js"); +b.Stream=b;b.Readable=b;b.Writable=g("./lib/_stream_writable.js");b.Duplex=g("./lib/_stream_duplex.js");b.Transform=g("./lib/_stream_transform.js");b.PassThrough=g("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":147,"./lib/_stream_passthrough.js":148,"./lib/_stream_readable.js":149,"./lib/_stream_transform.js":150,"./lib/_stream_writable.js":151}],157:[function(g,a,b){a.exports=g("./readable").Transform},{"./readable":156}],158:[function(g,a,b){a.exports=g("./lib/_stream_writable.js")}, +{"./lib/_stream_writable.js":151}],159:[function(g,a,b){(function(b){function c(){p.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}function h(a,b){return a<>>32-b}function k(a,b,c,e,d,f,k,g){return h(a+(b^c^e)+f+k|0,g)+d|0}function e(a,b,c,e,d,f,k,g){return h(a+(b&c|~b&e)+f+k|0,g)+d|0}function l(a,b,c,e,d,f,k,g){return h(a+((b|~c)^e)+f+k|0,g)+d|0}function n(a,b,c,e,d,f,k,g){return h(a+(b&e|c&~e)+f+k|0,g)+d|0}function f(a,b,c,e,d,f, +k,g){return h(a+(b^(c|~e))+f+k|0,g)+d|0}var m=g("inherits"),p=g("hash-base");m(c,p);c.prototype._update=function(){for(var a=Array(16),b=0;16>b;++b)a[b]=this._block.readInt32LE(4*b);var b=this._a,c=this._b,d=this._c,g=this._d,m=this._e,b=k(b,c,d,g,m,a[0],0,11),d=h(d,10),m=k(m,b,c,d,g,a[1],0,14),c=h(c,10),g=k(g,m,b,c,d,a[2],0,15),b=h(b,10),d=k(d,g,m,b,c,a[3],0,12),m=h(m,10),c=k(c,d,g,m,b,a[4],0,5),g=h(g,10),b=k(b,c,d,g,m,a[5],0,8),d=h(d,10),m=k(m,b,c,d,g,a[6],0,7),c=h(c,10),g=k(g,m,b,c,d,a[7],0,9), +b=h(b,10),d=k(d,g,m,b,c,a[8],0,11),m=h(m,10),c=k(c,d,g,m,b,a[9],0,13),g=h(g,10),b=k(b,c,d,g,m,a[10],0,14),d=h(d,10),m=k(m,b,c,d,g,a[11],0,15),c=h(c,10),g=k(g,m,b,c,d,a[12],0,6),b=h(b,10),d=k(d,g,m,b,c,a[13],0,7),m=h(m,10),c=k(c,d,g,m,b,a[14],0,9),g=h(g,10),b=k(b,c,d,g,m,a[15],0,8),d=h(d,10),m=e(m,b,c,d,g,a[7],1518500249,7),c=h(c,10),g=e(g,m,b,c,d,a[4],1518500249,6),b=h(b,10),d=e(d,g,m,b,c,a[13],1518500249,8),m=h(m,10),c=e(c,d,g,m,b,a[1],1518500249,13),g=h(g,10),b=e(b,c,d,g,m,a[10],1518500249,11), +d=h(d,10),m=e(m,b,c,d,g,a[6],1518500249,9),c=h(c,10),g=e(g,m,b,c,d,a[15],1518500249,7),b=h(b,10),d=e(d,g,m,b,c,a[3],1518500249,15),m=h(m,10),c=e(c,d,g,m,b,a[12],1518500249,7),g=h(g,10),b=e(b,c,d,g,m,a[0],1518500249,12),d=h(d,10),m=e(m,b,c,d,g,a[9],1518500249,15),c=h(c,10),g=e(g,m,b,c,d,a[5],1518500249,9),b=h(b,10),d=e(d,g,m,b,c,a[2],1518500249,11),m=h(m,10),c=e(c,d,g,m,b,a[14],1518500249,7),g=h(g,10),b=e(b,c,d,g,m,a[11],1518500249,13),d=h(d,10),m=e(m,b,c,d,g,a[8],1518500249,12),c=h(c,10),g=l(g,m, +b,c,d,a[3],1859775393,11),b=h(b,10),d=l(d,g,m,b,c,a[10],1859775393,13),m=h(m,10),c=l(c,d,g,m,b,a[14],1859775393,6),g=h(g,10),b=l(b,c,d,g,m,a[4],1859775393,7),d=h(d,10),m=l(m,b,c,d,g,a[9],1859775393,14),c=h(c,10),g=l(g,m,b,c,d,a[15],1859775393,9),b=h(b,10),d=l(d,g,m,b,c,a[8],1859775393,13),m=h(m,10),c=l(c,d,g,m,b,a[1],1859775393,15),g=h(g,10),b=l(b,c,d,g,m,a[2],1859775393,14),d=h(d,10),m=l(m,b,c,d,g,a[7],1859775393,8),c=h(c,10),g=l(g,m,b,c,d,a[0],1859775393,13),b=h(b,10),d=l(d,g,m,b,c,a[6],1859775393, +6),m=h(m,10),c=l(c,d,g,m,b,a[13],1859775393,5),g=h(g,10),b=l(b,c,d,g,m,a[11],1859775393,12),d=h(d,10),m=l(m,b,c,d,g,a[5],1859775393,7),c=h(c,10),g=l(g,m,b,c,d,a[12],1859775393,5),b=h(b,10),d=n(d,g,m,b,c,a[1],2400959708,11),m=h(m,10),c=n(c,d,g,m,b,a[9],2400959708,12),g=h(g,10),b=n(b,c,d,g,m,a[11],2400959708,14),d=h(d,10),m=n(m,b,c,d,g,a[10],2400959708,15),c=h(c,10),g=n(g,m,b,c,d,a[0],2400959708,14),b=h(b,10),d=n(d,g,m,b,c,a[8],2400959708,15),m=h(m,10),c=n(c,d,g,m,b,a[12],2400959708,9),g=h(g,10),b= +n(b,c,d,g,m,a[4],2400959708,8),d=h(d,10),m=n(m,b,c,d,g,a[13],2400959708,9),c=h(c,10),g=n(g,m,b,c,d,a[3],2400959708,14),b=h(b,10),d=n(d,g,m,b,c,a[7],2400959708,5),m=h(m,10),c=n(c,d,g,m,b,a[15],2400959708,6),g=h(g,10),b=n(b,c,d,g,m,a[14],2400959708,8),d=h(d,10),m=n(m,b,c,d,g,a[5],2400959708,6),c=h(c,10),g=n(g,m,b,c,d,a[6],2400959708,5),b=h(b,10),d=n(d,g,m,b,c,a[2],2400959708,12),m=h(m,10),c=f(c,d,g,m,b,a[4],2840853838,9),g=h(g,10),b=f(b,c,d,g,m,a[0],2840853838,15),d=h(d,10),m=f(m,b,c,d,g,a[5],2840853838, +5),c=h(c,10),g=f(g,m,b,c,d,a[9],2840853838,11),b=h(b,10),d=f(d,g,m,b,c,a[7],2840853838,6),m=h(m,10),c=f(c,d,g,m,b,a[12],2840853838,8),g=h(g,10),b=f(b,c,d,g,m,a[2],2840853838,13),d=h(d,10),m=f(m,b,c,d,g,a[10],2840853838,12),c=h(c,10),g=f(g,m,b,c,d,a[14],2840853838,5),b=h(b,10),d=f(d,g,m,b,c,a[1],2840853838,12),m=h(m,10),c=f(c,d,g,m,b,a[3],2840853838,13),g=h(g,10),b=f(b,c,d,g,m,a[8],2840853838,14),d=h(d,10),m=f(m,b,c,d,g,a[11],2840853838,11),c=h(c,10),g=f(g,m,b,c,d,a[6],2840853838,8),b=h(b,10),d=f(d, +g,m,b,c,a[15],2840853838,5),m=h(m,10),c=f(c,d,g,m,b,a[13],2840853838,6),g=h(g,10),p=this._a,w=this._b,v=this._c,y=this._d,z=this._e,p=f(p,w,v,y,z,a[5],1352829926,8),v=h(v,10),z=f(z,p,w,v,y,a[14],1352829926,9),w=h(w,10),y=f(y,z,p,w,v,a[7],1352829926,9),p=h(p,10),v=f(v,y,z,p,w,a[0],1352829926,11),z=h(z,10),w=f(w,v,y,z,p,a[9],1352829926,13),y=h(y,10),p=f(p,w,v,y,z,a[2],1352829926,15),v=h(v,10),z=f(z,p,w,v,y,a[11],1352829926,15),w=h(w,10),y=f(y,z,p,w,v,a[4],1352829926,5),p=h(p,10),v=f(v,y,z,p,w,a[13], +1352829926,7),z=h(z,10),w=f(w,v,y,z,p,a[6],1352829926,7),y=h(y,10),p=f(p,w,v,y,z,a[15],1352829926,8),v=h(v,10),z=f(z,p,w,v,y,a[8],1352829926,11),w=h(w,10),y=f(y,z,p,w,v,a[1],1352829926,14),p=h(p,10),v=f(v,y,z,p,w,a[10],1352829926,14),z=h(z,10),w=f(w,v,y,z,p,a[3],1352829926,12),y=h(y,10),p=f(p,w,v,y,z,a[12],1352829926,6),v=h(v,10),z=n(z,p,w,v,y,a[6],1548603684,9),w=h(w,10),y=n(y,z,p,w,v,a[11],1548603684,13),p=h(p,10),v=n(v,y,z,p,w,a[3],1548603684,15),z=h(z,10),w=n(w,v,y,z,p,a[7],1548603684,7),y=h(y, +10),p=n(p,w,v,y,z,a[0],1548603684,12),v=h(v,10),z=n(z,p,w,v,y,a[13],1548603684,8),w=h(w,10),y=n(y,z,p,w,v,a[5],1548603684,9),p=h(p,10),v=n(v,y,z,p,w,a[10],1548603684,11),z=h(z,10),w=n(w,v,y,z,p,a[14],1548603684,7),y=h(y,10),p=n(p,w,v,y,z,a[15],1548603684,7),v=h(v,10),z=n(z,p,w,v,y,a[8],1548603684,12),w=h(w,10),y=n(y,z,p,w,v,a[12],1548603684,7),p=h(p,10),v=n(v,y,z,p,w,a[4],1548603684,6),z=h(z,10),w=n(w,v,y,z,p,a[9],1548603684,15),y=h(y,10),p=n(p,w,v,y,z,a[1],1548603684,13),v=h(v,10),z=n(z,p,w,v,y, +a[2],1548603684,11),w=h(w,10),y=l(y,z,p,w,v,a[15],1836072691,9),p=h(p,10),v=l(v,y,z,p,w,a[5],1836072691,7),z=h(z,10),w=l(w,v,y,z,p,a[1],1836072691,15),y=h(y,10),p=l(p,w,v,y,z,a[3],1836072691,11),v=h(v,10),z=l(z,p,w,v,y,a[7],1836072691,8),w=h(w,10),y=l(y,z,p,w,v,a[14],1836072691,6),p=h(p,10),v=l(v,y,z,p,w,a[6],1836072691,6),z=h(z,10),w=l(w,v,y,z,p,a[9],1836072691,14),y=h(y,10),p=l(p,w,v,y,z,a[11],1836072691,12),v=h(v,10),z=l(z,p,w,v,y,a[8],1836072691,13),w=h(w,10),y=l(y,z,p,w,v,a[12],1836072691,5), +p=h(p,10),v=l(v,y,z,p,w,a[2],1836072691,14),z=h(z,10),w=l(w,v,y,z,p,a[10],1836072691,13),y=h(y,10),p=l(p,w,v,y,z,a[0],1836072691,13),v=h(v,10),z=l(z,p,w,v,y,a[4],1836072691,7),w=h(w,10),y=l(y,z,p,w,v,a[13],1836072691,5),p=h(p,10),v=e(v,y,z,p,w,a[8],2053994217,15),z=h(z,10),w=e(w,v,y,z,p,a[6],2053994217,5),y=h(y,10),p=e(p,w,v,y,z,a[4],2053994217,8),v=h(v,10),z=e(z,p,w,v,y,a[1],2053994217,11),w=h(w,10),y=e(y,z,p,w,v,a[3],2053994217,14),p=h(p,10),v=e(v,y,z,p,w,a[11],2053994217,14),z=h(z,10),w=e(w,v, +y,z,p,a[15],2053994217,6),y=h(y,10),p=e(p,w,v,y,z,a[0],2053994217,14),v=h(v,10),z=e(z,p,w,v,y,a[5],2053994217,6),w=h(w,10),y=e(y,z,p,w,v,a[12],2053994217,9),p=h(p,10),v=e(v,y,z,p,w,a[2],2053994217,12),z=h(z,10),w=e(w,v,y,z,p,a[13],2053994217,9),y=h(y,10),p=e(p,w,v,y,z,a[9],2053994217,12),v=h(v,10),z=e(z,p,w,v,y,a[7],2053994217,5),w=h(w,10),y=e(y,z,p,w,v,a[10],2053994217,15),p=h(p,10),v=e(v,y,z,p,w,a[14],2053994217,8),z=h(z,10),w=k(w,v,y,z,p,a[12],0,8),y=h(y,10),p=k(p,w,v,y,z,a[15],0,5),v=h(v,10), +z=k(z,p,w,v,y,a[10],0,12),w=h(w,10),y=k(y,z,p,w,v,a[4],0,9),p=h(p,10),v=k(v,y,z,p,w,a[1],0,12),z=h(z,10),w=k(w,v,y,z,p,a[5],0,5),y=h(y,10),p=k(p,w,v,y,z,a[8],0,14),v=h(v,10),z=k(z,p,w,v,y,a[7],0,6),w=h(w,10),y=k(y,z,p,w,v,a[6],0,8),p=h(p,10),v=k(v,y,z,p,w,a[2],0,13),z=h(z,10),w=k(w,v,y,z,p,a[13],0,6),y=h(y,10),p=k(p,w,v,y,z,a[14],0,5),v=h(v,10),z=k(z,p,w,v,y,a[0],0,15),w=h(w,10),y=k(y,z,p,w,v,a[3],0,13),p=h(p,10),v=k(v,y,z,p,w,a[9],0,11),z=h(z,10),w=k(w,v,y,z,p,a[11],0,11),y=h(y,10),a=this._b+d+y| +0;this._b=this._c+g+z|0;this._c=this._d+m+p|0;this._d=this._e+b+w|0;this._e=this._a+c+v|0;this._a=a};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._finalSize&&(this._update(this._block),this._block.fill(0));b=8*this._len; +if(4294967295>=b)this._block.writeUInt32BE(b,this._blockSize-4);else{var c=b&4294967295;this._block.writeUInt32BE((b-c)/4294967296,this._blockSize-8);this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);b=this._hash();return a?b.toString(a):b};c.prototype._update=function(){throw Error("_update must be implemented by subclass");};a.exports=c},{"safe-buffer":160}],162:[function(g,a,b){b=a.exports=function(a){a=a.toLowerCase();var c=b[a];if(!c)throw Error(a+" is not supported (we accept pull requests)"); +return new c};b.sha=g("./sha");b.sha1=g("./sha1");b.sha224=g("./sha224");b.sha256=g("./sha256");b.sha384=g("./sha384");b.sha512=g("./sha512")},{"./sha":163,"./sha1":164,"./sha224":165,"./sha256":166,"./sha384":167,"./sha512":168}],163:[function(g,a,b){function c(){this.init();this._w=e;d.call(this,64,56)}b=g("inherits");var d=g("./hash"),h=g("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);b(c,d);c.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c= +2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,g=this._e|0,l=0;16>l;++l)b[l]=a.readInt32BE(4*l);for(;80>l;++l)b[l]=b[l-3]^b[l-8]^b[l-14]^b[l-16];for(a=0;80>a;++a){var l=~~(a/20),C=c<<5|c>>>27,q;q=0===l?e&d|~e&h:2===l?e&d|e&h|d&h:e^d^h;l=C+q+g+b[a]+k[l]|0;g=h;h=d;d=e<<30|e>>>2;e=c;c=l}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d|0;this._e=g+this._e|0};c.prototype._hash= +function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],164:[function(g,a,b){function c(){this.init();this._w=e;d.call(this,64,56)}b=g("inherits");var d=g("./hash"),h=g("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);b(c,d);c.prototype.init=function(){this._a=1732584193;this._b= +4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,g=this._e|0,l=0;16>l;++l)b[l]=a.readInt32BE(4*l);for(;80>l;++l)a=b[l-3]^b[l-8]^b[l-14]^b[l-16],b[l]=a<<1|a>>>31;for(l=0;80>l;++l){a=~~(l/20);var C=c<<5|c>>>27,q;q=0===a?e&d|~e&h:2===a?e&d|e&h|d&h:e^d^h;a=C+q+g+b[l]+k[a]|0;g=h;h=d;d=e<<30|e>>>2;e=c;c=a}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d| +0;this._e=g+this._e|0};c.prototype._hash=function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],165:[function(g,a,b){function c(){this.init();this._w=e;h.call(this,64,56)}b=g("inherits");var d=g("./sha256"),h=g("./hash"),k=g("safe-buffer").Buffer,e=Array(64);b(c,d);c.prototype.init=function(){this._a=3238371032; +this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};c.prototype._hash=function(){var a=k.allocUnsafe(28);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);return a};a.exports=c},{"./hash":161,"./sha256":166,inherits:119,"safe-buffer":160}],166:[function(g,a,b){function c(){this.init(); +this._w=e;d.call(this,64,56)}b=g("inherits");var d=g("./hash"),h=g("safe-buffer").Buffer,k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350, 2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],e=Array(64);b(c,d);c.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};c.prototype._update= -function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,g=this._d|0,h=this._e|0,l=this._f|0,C=this._g|0,q=this._h|0,A=0;16>A;++A)b[A]=a.readInt32BE(4*A);for(;64>A;++A){a=b[A-2];var D=b[A-15];b[A]=((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+b[A-7]+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3)+b[A-16]|0}for(A=0;64>A;++A)a=q+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(C^h&(l^C))+k[A]+b[A]|0,D=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&e|d&(c|e))|0,q=C,C=l,l=h,h=g+a|0,g=d,d=e,e=c,c=a+D|0;this._a= -c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=g+this._d|0;this._e=h+this._e|0;this._f=l+this._f|0;this._g=C+this._g|0;this._h=q+this._h|0};c.prototype._hash=function(){var a=g.allocUnsafe(32);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);a.writeInt32BE(this._h,28);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],167:[function(h, -a,b){function c(){this.init();this._w=e;g.call(this,128,112)}b=h("inherits");var d=h("./sha512"),g=h("./hash"),k=h("safe-buffer").Buffer,e=Array(160);b(c,d);c.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428; -return this};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=k.allocUnsafe(48);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);return b};a.exports=c},{"./hash":161,"./sha512":168,inherits:119,"safe-buffer":160}],168:[function(h,a,b){function c(){this.init();this._w=l;g.call(this,128,112)}function d(a,b){return a>>>0>>0?1:0}b=h("inherits");var g=h("./hash"), -k=h("safe-buffer").Buffer,e=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235, +function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,g=this._e|0,l=this._f|0,C=this._g|0,q=this._h|0,A=0;16>A;++A)b[A]=a.readInt32BE(4*A);for(;64>A;++A){a=b[A-2];var D=b[A-15];b[A]=((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+b[A-7]+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3)+b[A-16]|0}for(A=0;64>A;++A)a=q+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(C^g&(l^C))+k[A]+b[A]|0,D=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&e|d&(c|e))|0,q=C,C=l,l=g,g=h+a|0,h=d,d=e,e=c,c=a+D|0;this._a= +c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d|0;this._e=g+this._e|0;this._f=l+this._f|0;this._g=C+this._g|0;this._h=q+this._h|0};c.prototype._hash=function(){var a=h.allocUnsafe(32);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);a.writeInt32BE(this._h,28);return a};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],167:[function(g, +a,b){function c(){this.init();this._w=e;h.call(this,128,112)}b=g("inherits");var d=g("./sha512"),h=g("./hash"),k=g("safe-buffer").Buffer,e=Array(160);b(c,d);c.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428; +return this};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=k.allocUnsafe(48);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);return b};a.exports=c},{"./hash":161,"./sha512":168,inherits:119,"safe-buffer":160}],168:[function(g,a,b){function c(){this.init();this._w=l;h.call(this,128,112)}function d(a,b){return a>>>0>>0?1:0}b=g("inherits");var h=g("./hash"), +k=g("safe-buffer").Buffer,e=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235, 1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804, 1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554, -174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=Array(160);b(c,g);c.prototype.init=function(){this._ah=1779033703;this._bh=3144134277;this._ch=1013904242;this._dh=2773480762;this._eh=1359893119;this._fh=2600822924;this._gh=528734635;this._hh=1541459225;this._al=4089235720;this._bl=2227873595;this._cl=4271175723; -this._dl=1595750129;this._el=2917565137;this._fl=725511199;this._gl=4215389547;this._hl=327033209;return this};c.prototype._update=function(a){for(var b=this._w,c=this._ah|0,g=this._bh|0,k=this._ch|0,h=this._dh|0,l=this._eh|0,n=this._fh|0,q=this._gh|0,A=this._hh|0,D=this._al|0,w=this._bl|0,v=this._cl|0,y=this._dl|0,z=this._el|0,F=this._fl|0,B=this._gl|0,G=this._hl|0,E=0;32>E;E+=2)b[E]=a.readInt32BE(4*E),b[E+1]=a.readInt32BE(4*E+4);for(;160>E;E+=2){a=b[E-30];var I=b[E-30+1],t=(a>>>1|I<<31)^(a>>>8| -I<<24)^a>>>7,N=(I>>>1|a<<31)^(I>>>8|a<<24)^(I>>>7|a<<25);a=b[E-4];var I=b[E-4+1],J=(a>>>19|I<<13)^(I>>>29|a<<3)^a>>>6,I=(I>>>19|a<<13)^(a>>>29|I<<3)^(I>>>6|a<<26),Q=b[E-32],ea=b[E-32+1];a=N+b[E-14+1]|0;t=t+b[E-14]+d(a,N)|0;a=a+I|0;t=t+J+d(a,I)|0;a=a+ea|0;t=t+Q+d(a,ea)|0;b[E]=t;b[E+1]=a}for(E=0;160>E;E+=2){t=b[E];a=b[E+1];var I=c&g|k&(c|g),P=D&w|v&(D|w),Q=(c>>>28|D<<4)^(D>>>2|c<<30)^(D>>>7|c<<25),ea=(D>>>28|c<<4)^(c>>>2|D<<30)^(c>>>7|D<<25),T=e[E],S=e[E+1],K=q^l&(n^q),M=B^z&(F^B),J=G+((z>>>14|l<<18)^ -(z>>>18|l<<14)^(l>>>9|z<<23))|0,N=A+((l>>>14|z<<18)^(l>>>18|z<<14)^(z>>>9|l<<23))+d(J,G)|0,J=J+M|0,N=N+K+d(J,M)|0,J=J+S|0,N=N+T+d(J,S)|0,J=J+a|0,N=N+t+d(J,a)|0;a=ea+P|0;t=Q+I+d(a,ea)|0;A=q;G=B;q=n;B=F;n=l;F=z;z=y+J|0;l=h+N+d(z,y)|0;h=k;y=v;k=g;v=w;g=c;w=D;D=J+a|0;c=N+t+d(D,J)|0}this._al=this._al+D|0;this._bl=this._bl+w|0;this._cl=this._cl+v|0;this._dl=this._dl+y|0;this._el=this._el+z|0;this._fl=this._fl+F|0;this._gl=this._gl+B|0;this._hl=this._hl+G|0;this._ah=this._ah+c+d(this._al,D)|0;this._bh=this._bh+ -g+d(this._bl,w)|0;this._ch=this._ch+k+d(this._cl,v)|0;this._dh=this._dh+h+d(this._dl,y)|0;this._eh=this._eh+l+d(this._el,z)|0;this._fh=this._fh+n+d(this._fl,F)|0;this._gh=this._gh+q+d(this._gl,B)|0;this._hh=this._hh+A+d(this._hl,G)|0};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=k.allocUnsafe(64);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);a(this._gh, -this._gl,48);a(this._hh,this._hl,56);return b};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],169:[function(h,a,b){function c(){d.call(this)}a.exports=c;var d=h("events").EventEmitter;h("inherits")(c,d);c.Readable=h("readable-stream/readable.js");c.Writable=h("readable-stream/writable.js");c.Duplex=h("readable-stream/duplex.js");c.Transform=h("readable-stream/transform.js");c.PassThrough=h("readable-stream/passthrough.js");c.Stream=c;c.prototype.pipe=function(a,b){function c(b){a.writable&& -!1===a.write(b)&&r.pause&&r.pause()}function g(){r.readable&&r.resume&&r.resume()}function k(){u||(u=!0,a.end())}function f(){u||(u=!0,"function"===typeof a.destroy&&a.destroy())}function h(a){p();if(0===d.listenerCount(this,"error"))throw a;}function p(){r.removeListener("data",c);a.removeListener("drain",g);r.removeListener("end",k);r.removeListener("close",f);r.removeListener("error",h);a.removeListener("error",h);r.removeListener("end",p);r.removeListener("close",p);a.removeListener("close",p)} -var r=this;r.on("data",c);a.on("drain",g);a._isStdio||b&&!1===b.end||(r.on("end",k),r.on("close",f));var u=!1;r.on("error",h);a.on("error",h);r.on("end",p);r.on("close",p);a.on("close",p);a.emit("pipe",r);return a}},{events:101,inherits:119,"readable-stream/duplex.js":146,"readable-stream/passthrough.js":155,"readable-stream/readable.js":156,"readable-stream/transform.js":157,"readable-stream/writable.js":158}],170:[function(h,a,b){function c(a){if(!a)return"utf8";for(var b;;)switch(a){case "utf8":case "utf-8":return"utf8"; +174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=Array(160);b(c,h);c.prototype.init=function(){this._ah=1779033703;this._bh=3144134277;this._ch=1013904242;this._dh=2773480762;this._eh=1359893119;this._fh=2600822924;this._gh=528734635;this._hh=1541459225;this._al=4089235720;this._bl=2227873595;this._cl=4271175723; +this._dl=1595750129;this._el=2917565137;this._fl=725511199;this._gl=4215389547;this._hl=327033209;return this};c.prototype._update=function(a){for(var b=this._w,c=this._ah|0,h=this._bh|0,k=this._ch|0,g=this._dh|0,l=this._eh|0,n=this._fh|0,q=this._gh|0,A=this._hh|0,D=this._al|0,w=this._bl|0,v=this._cl|0,y=this._dl|0,z=this._el|0,F=this._fl|0,B=this._gl|0,G=this._hl|0,E=0;32>E;E+=2)b[E]=a.readInt32BE(4*E),b[E+1]=a.readInt32BE(4*E+4);for(;160>E;E+=2){a=b[E-30];var I=b[E-30+1],t=(a>>>1|I<<31)^(a>>>8| +I<<24)^a>>>7,N=(I>>>1|a<<31)^(I>>>8|a<<24)^(I>>>7|a<<25);a=b[E-4];var I=b[E-4+1],J=(a>>>19|I<<13)^(I>>>29|a<<3)^a>>>6,I=(I>>>19|a<<13)^(a>>>29|I<<3)^(I>>>6|a<<26),Q=b[E-32],ea=b[E-32+1];a=N+b[E-14+1]|0;t=t+b[E-14]+d(a,N)|0;a=a+I|0;t=t+J+d(a,I)|0;a=a+ea|0;t=t+Q+d(a,ea)|0;b[E]=t;b[E+1]=a}for(E=0;160>E;E+=2){t=b[E];a=b[E+1];var I=c&h|k&(c|h),P=D&w|v&(D|w),Q=(c>>>28|D<<4)^(D>>>2|c<<30)^(D>>>7|c<<25),ea=(D>>>28|c<<4)^(c>>>2|D<<30)^(c>>>7|D<<25),T=e[E],S=e[E+1],K=q^l&(n^q),M=B^z&(F^B),J=G+((z>>>14|l<<18)^ +(z>>>18|l<<14)^(l>>>9|z<<23))|0,N=A+((l>>>14|z<<18)^(l>>>18|z<<14)^(z>>>9|l<<23))+d(J,G)|0,J=J+M|0,N=N+K+d(J,M)|0,J=J+S|0,N=N+T+d(J,S)|0,J=J+a|0,N=N+t+d(J,a)|0;a=ea+P|0;t=Q+I+d(a,ea)|0;A=q;G=B;q=n;B=F;n=l;F=z;z=y+J|0;l=g+N+d(z,y)|0;g=k;y=v;k=h;v=w;h=c;w=D;D=J+a|0;c=N+t+d(D,J)|0}this._al=this._al+D|0;this._bl=this._bl+w|0;this._cl=this._cl+v|0;this._dl=this._dl+y|0;this._el=this._el+z|0;this._fl=this._fl+F|0;this._gl=this._gl+B|0;this._hl=this._hl+G|0;this._ah=this._ah+c+d(this._al,D)|0;this._bh=this._bh+ +h+d(this._bl,w)|0;this._ch=this._ch+k+d(this._cl,v)|0;this._dh=this._dh+g+d(this._dl,y)|0;this._eh=this._eh+l+d(this._el,z)|0;this._fh=this._fh+n+d(this._fl,F)|0;this._gh=this._gh+q+d(this._gl,B)|0;this._hh=this._hh+A+d(this._hl,G)|0};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=k.allocUnsafe(64);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);a(this._gh, +this._gl,48);a(this._hh,this._hl,56);return b};a.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],169:[function(g,a,b){function c(){d.call(this)}a.exports=c;var d=g("events").EventEmitter;g("inherits")(c,d);c.Readable=g("readable-stream/readable.js");c.Writable=g("readable-stream/writable.js");c.Duplex=g("readable-stream/duplex.js");c.Transform=g("readable-stream/transform.js");c.PassThrough=g("readable-stream/passthrough.js");c.Stream=c;c.prototype.pipe=function(a,b){function c(b){a.writable&& +!1===a.write(b)&&r.pause&&r.pause()}function h(){r.readable&&r.resume&&r.resume()}function k(){u||(u=!0,a.end())}function f(){u||(u=!0,"function"===typeof a.destroy&&a.destroy())}function g(a){p();if(0===d.listenerCount(this,"error"))throw a;}function p(){r.removeListener("data",c);a.removeListener("drain",h);r.removeListener("end",k);r.removeListener("close",f);r.removeListener("error",g);a.removeListener("error",g);r.removeListener("end",p);r.removeListener("close",p);a.removeListener("close",p)} +var r=this;r.on("data",c);a.on("drain",h);a._isStdio||b&&!1===b.end||(r.on("end",k),r.on("close",f));var u=!1;r.on("error",g);a.on("error",g);r.on("end",p);r.on("close",p);a.on("close",p);a.emit("pipe",r);return a}},{events:101,inherits:119,"readable-stream/duplex.js":146,"readable-stream/passthrough.js":155,"readable-stream/readable.js":156,"readable-stream/transform.js":157,"readable-stream/writable.js":158}],170:[function(g,a,b){function c(a){if(!a)return"utf8";for(var b;;)switch(a){case "utf8":case "utf-8":return"utf8"; case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le";case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return a;default:if(b)return;a=(""+a).toLowerCase();b=!0}}function d(a){var b=c(a);if("string"!==typeof b&&(u.isEncoding===x||!x(a)))throw Error("Unknown encoding: "+a);this.encoding=b||a;switch(this.encoding){case "utf16le":this.text=l;this.end=n;a=4;break;case "utf8":this.fillLast=e;a=4;break;case "base64":this.text=f;this.end=m;a=3;break;default:this.write= -p;this.end=r;return}this.lastTotal=this.lastNeed=0;this.lastChar=u.allocUnsafe(a)}function g(a){return 127>=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:-1}function k(a,b,c){var e=b.length-1;if(e=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:-1}function k(a,b,c){var e=b.length-1;if(e=c)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],b.slice(0,-1)}return b}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=a[a.length-1];return a.toString("utf16le",b,a.length-1)}function n(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):a}function f(a,b){var c=(a.length-b)%3;if(0===c)return a.toString("base64",b);this.lastNeed=3-c;this.lastTotal=3; -1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]);return a.toString("base64",b,a.length-c)}function m(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function p(a){return a.toString(this.encoding)}function r(a){return a&&a.length?this.write(a):""}var u=h("safe-buffer").Buffer,x=u.isEncoding||function(a){a=""+a;switch(a&&a.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0; +1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]);return a.toString("base64",b,a.length-c)}function m(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function p(a){return a.toString(this.encoding)}function r(a){return a&&a.length?this.write(a):""}var u=g("safe-buffer").Buffer,x=u.isEncoding||function(a){a=""+a;switch(a&&a.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0; default:return!1}};b.StringDecoder=d;d.prototype.write=function(a){if(0===a.length)return"";var b,c;if(this.lastNeed){b=this.fillLast(a);if(void 0===b)return"";c=this.lastNeed;this.lastNeed=0}else c=0;return ca||0>c||null==b||a+d>this.length||c+d>b.length)return!1;var g=this.substring(a,a+d),k=b.substring(c,c+d);return h?g.equalsIgnoreCase(k):g===k});String.prototype.contains||(String.prototype.contains=function(h){return 0<=this.indexOf(h)});String.prototype.getClass||(String.prototype.getClass=stjs.JavalikeGetClass); -String.valueOf=function(h){return new String(h)};var Byte=Number,Double=Number,Float=Number,Integer=Number,Long=Number,Short=Number;Number.prototype.intValue||(Number.prototype.intValue=function(){return parseInt(this)});Number.prototype.shortValue||(Number.prototype.shortValue=function(){return parseInt(this)});Number.prototype.longValue||(Number.prototype.longValue=function(){return parseInt(this)});Number.prototype.byteValue||(Number.prototype.byteValue=function(){return parseInt(this)}); +c.prototype={};var n=b.Script=function(a){if(!(this instanceof n))return new n(a);this.code=a};n.prototype.runInContext=function(a){if(!(a instanceof c))throw new TypeError("needs a 'context' argument.");var b=document.createElement("iframe");b.style||(b.style={});b.style.display="none";document.body.appendChild(b);var f=b.contentWindow,g=f.eval,n=f.execScript;!g&&n&&(n.call(f,"null"),g=f.eval);k(h(a),function(b){f[b]=a[b]});k(l,function(b){a[b]&&(f[b]=a[b])});var x=h(f),g=g.call(f,this.code);k(h(f), +function(b){if(b in a||-1===d(x,b))a[b]=f[b]});k(l,function(b){b in a||e(a,b,f[b])});document.body.removeChild(b);return g};n.prototype.runInThisContext=function(){return eval(this.code)};n.prototype.runInNewContext=function(a){var b=n.createContext(a),c=this.runInContext(b);k(h(b),function(c){a[c]=b[c]});return c};k(h(n.prototype),function(a){b[a]=n[a]=function(b){var c=n(b);return c[a].apply(c,[].slice.call(arguments,1))}});b.createScript=function(a){return b.Script(a)};b.createContext=n.createContext= +function(a){var b=new c;"object"===typeof a&&k(h(a),function(c){b[c]=a[c]});return b}},{indexof:118}]},{},[18]);var stjs={NOT_IMPLEMENTED:function(){throw"This method is not implemented in Javascript.";},JavalikeEquals:function(g){return null==g?!1:g.valueOf?this.valueOf()===g.valueOf():this===g},JavalikeGetClass:function(){return this.constructor}};String.prototype.equals||(String.prototype.equals=stjs.JavalikeEquals);String.prototype.getBytes||(String.prototype.getBytes=stjs.NOT_IMPLEMENTED); +String.prototype.getChars||(String.prototype.getChars=stjs.NOT_IMPLEMENTED);String.prototype.contentEquals||(String.prototype.contentEquals=stjs.NOT_IMPLEMENTED);String.prototype.startsWith||(String.prototype.startsWith=function(g,a){a=null!=a?a:0;return this.substring(a,a+g.length)==g});String.prototype.endsWith||(String.prototype.endsWith=function(g){return null==g||this.lengtha||0>c||null==b||a+d>this.length||c+d>b.length)return!1;var h=this.substring(a,a+d),k=b.substring(c,c+d);return g?h.equalsIgnoreCase(k):h===k});String.prototype.contains||(String.prototype.contains=function(g){return 0<=this.indexOf(g)});String.prototype.getClass||(String.prototype.getClass=stjs.JavalikeGetClass); +String.valueOf=function(g){return new String(g)};var Byte=Number,Double=Number,Float=Number,Integer=Number,Long=Number,Short=Number;Number.prototype.intValue||(Number.prototype.intValue=function(){return parseInt(this)});Number.prototype.shortValue||(Number.prototype.shortValue=function(){return parseInt(this)});Number.prototype.longValue||(Number.prototype.longValue=function(){return parseInt(this)});Number.prototype.byteValue||(Number.prototype.byteValue=function(){return parseInt(this)}); Number.prototype.floatValue||(Number.prototype.floatValue=function(){return parseFloat(this)});Number.prototype.doubleValue||(Number.prototype.doubleValue=function(){return parseFloat(this)});Number.parseInt||(Number.parseInt=parseInt);Number.parseShort||(Number.parseShort=parseInt);Number.parseLong||(Number.parseLong=parseInt);Number.parseByte||(Number.parseByte=parseInt);Number.parseDouble||(Number.parseDouble=parseFloat);Number.parseFloat||(Number.parseFloat=parseFloat); -Number.isNaN||(Number.isNaN=isNaN);Number.prototype.isNaN||(Number.prototype.isNaN=function(){return isNaN(this)});Number.prototype.equals||(Number.prototype.equals=stjs.JavalikeEquals);Number.prototype.getClass||(Number.prototype.getClass=stjs.JavalikeGetClass);Number.valueOf=function(h){return(new Number(h)).valueOf()};Boolean.prototype.equals||(Boolean.prototype.equals=stjs.JavalikeEquals);Boolean.prototype.getClass||(Boolean.prototype.getClass=stjs.JavalikeGetClass);Boolean.valueOf=function(h){return(new Boolean(h)).valueOf()}; -stjs.global=this;stjs.skipCopy={prototype:!0,constructor:!0,$typeDescription:!0,$inherit:!0};stjs.ns=function(h){h=h.split(".");for(var a=stjs.global,b=0;ba?"0"+a:""+a}return h?""+h.getFullYear()+"-"+b(h.getMonth()+1)+"-"+b(h.getDate())+" "+b(h.getHours())+":"+b(h.getMinutes())+":"+b(h.getSeconds()):null},Enum:function(h,a){return null!=h?h.toString():null}}; -stjs.bind=function(h,a,b){var c=!1;null==a&&(a=h,h=null,c=!0);var d=null!=b;return function(){var g=arguments;d&&Array.prototype.splice.call(g,b,0,this);c&&(h=Array.prototype.shift.call(g));return"string"===typeof a?h[a].apply(h,g):a.apply(h,g)}};function exception(h){return h}function isEnum(h){return null!=h&&h.constructor==stjs.enumEntry} -stjs.parseJSON=function(){function h(a,b,c){return b?k[b]:String.fromCharCode(parseInt(c,16))}function a(a,b){var c=e[a];c||(e[a]=c=eval(a));return new c(b)}function b(b){return b?"function"==typeof b?new b:b.name?"Map"==b.name?{}:"Array"==b.name?[]:a(b.name):a(b):{}}function c(a){a=d.exec(a);return null!=a?a[0]:null}var d=/(?:false|true|null|[\{\}\[\]]|(?:-?\b(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\b)|(?:"(?:[^\0-\x08\x0a-\x1f"\\]|\\(?:["/\\bfnrt]|u[0-9A-Fa-f]{4}))*"))/g,g=/\\(?:([^u])|u(.{4}))/g, -k={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},e={},l=new String("");return function(e,d){var f,k=c(e),n=!1;"{"===k?f=b(d,null):"["===k?f=[]:(f=[],n=!0);var u,x=[f];d=[d];for(k=c(e);null!=k;k=c(e)){var C;switch(k.charCodeAt(0)){default:C=x[0];C[u||C.length]=+k;u=void 0;break;case 34:k=k.substring(1,k.length-1);-1!==k.indexOf("\\")&&(k=k.replace(g,h));C=x[0];if(!u)if(C instanceof Array)u=C.length;else{u=k||l;d[0]=C.constructor.$typeDescription?C.constructor.$typeDescription[u]:d[1].arguments[1]; +Number.isNaN||(Number.isNaN=isNaN);Number.prototype.isNaN||(Number.prototype.isNaN=function(){return isNaN(this)});Number.prototype.equals||(Number.prototype.equals=stjs.JavalikeEquals);Number.prototype.getClass||(Number.prototype.getClass=stjs.JavalikeGetClass);Number.valueOf=function(g){return(new Number(g)).valueOf()};Boolean.prototype.equals||(Boolean.prototype.equals=stjs.JavalikeEquals);Boolean.prototype.getClass||(Boolean.prototype.getClass=stjs.JavalikeGetClass);Boolean.valueOf=function(g){return(new Boolean(g)).valueOf()}; +stjs.global=this;stjs.skipCopy={prototype:!0,constructor:!0,$typeDescription:!0,$inherit:!0};stjs.ns=function(g){g=g.split(".");for(var a=stjs.global,b=0;ba?"0"+a:""+a}return g?""+g.getFullYear()+"-"+b(g.getMonth()+1)+"-"+b(g.getDate())+" "+b(g.getHours())+":"+b(g.getMinutes())+":"+b(g.getSeconds()):null},Enum:function(g,a){return null!=g?g.toString():null}}; +stjs.bind=function(g,a,b){var c=!1;null==a&&(a=g,g=null,c=!0);var d=null!=b;return function(){var h=arguments;d&&Array.prototype.splice.call(h,b,0,this);c&&(g=Array.prototype.shift.call(h));return"string"===typeof a?g[a].apply(g,h):a.apply(g,h)}};function exception(g){return g}function isEnum(g){return null!=g&&g.constructor==stjs.enumEntry} +stjs.parseJSON=function(){function g(a,b,c){return b?k[b]:String.fromCharCode(parseInt(c,16))}function a(a,b){var c=e[a];c||(e[a]=c=eval(a));return new c(b)}function b(b){return b?"function"==typeof b?new b:b.name?"Map"==b.name?{}:"Array"==b.name?[]:a(b.name):a(b):{}}function c(a){a=d.exec(a);return null!=a?a[0]:null}var d=/(?:false|true|null|[\{\}\[\]]|(?:-?\b(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\b)|(?:"(?:[^\0-\x08\x0a-\x1f"\\]|\\(?:["/\\bfnrt]|u[0-9A-Fa-f]{4}))*"))/g,h=/\\(?:([^u])|u(.{4}))/g, +k={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},e={},l=new String("");return function(e,d){var f,k=c(e),n=!1;"{"===k?f=b(d,null):"["===k?f=[]:(f=[],n=!0);var u,x=[f];d=[d];for(k=c(e);null!=k;k=c(e)){var C;switch(k.charCodeAt(0)){default:C=x[0];C[u||C.length]=+k;u=void 0;break;case 34:k=k.substring(1,k.length-1);-1!==k.indexOf("\\")&&(k=k.replace(h,g));C=x[0];if(!u)if(C instanceof Array)u=C.length;else{u=k||l;d[0]=C.constructor.$typeDescription?C.constructor.$typeDescription[u]:d[1].arguments[1]; break}var q=d[0];if(q)var A=stjs.converters[q.name||q],k=A?A(k,q):a(q,k);C[u]=k;u=void 0;break;case 91:C=x[0];x.unshift(C[u||C.length]=[]);d.unshift(d[0].arguments[0]);u=void 0;break;case 93:x.shift();d.shift();break;case 102:C=x[0];C[u||C.length]=!1;u=void 0;break;case 110:C=x[0];C[u||C.length]=null;u=void 0;break;case 116:C=x[0];C[u||C.length]=!0;u=void 0;break;case 123:C=x[0];x.unshift(C[u||C.length]=b(d[0]));d.unshift(null);u=void 0;break;case 125:x.shift(),d.shift()}}if(n){if(1!==x.length)throw Error(); -f=f[0]}else if(x.length)throw Error();return f}}();stjs.isArray=function(h){return"[object Array]"===stjs.toString.call(h)}; -stjs.typefy=function(h,a){function b(a,b){var c=e[a];c||(e[a]=c=eval(a));return new c(b)}function c(a){return"function"==typeof a?a:a.arguments?eval(a.arguments[0]):"string"==typeof a?eval(a):Object}function d(a,c){if(!a)return c;var e=stjs.converters[a.name||a];return e?e(c,a):b(a,c)}if(stjs.isArray(h)){for(var g=[],k=0;kTask.lastFrame+ -d))return null==Task.updateFrameHandle&&Task.updateFrame(),setTimeout(function(){Task.delayedFunctions++;a()},0);Task.immediateFunctions++;a();return null};h.asyncImmediate=function(a){Task.tasks.push(a);Task.asyncImmediateFunctions++;return 20>Task.runningAsyncFunctions?(Task.runningAsyncFunctions++,setTimeout(function(){Task.asyncContinue()},0)):null};h.asyncContinue=function(){var a=function(){Task.asyncContinue()};0Task.lastFrame+ +d))return null==Task.updateFrameHandle&&Task.updateFrame(),setTimeout(function(){Task.delayedFunctions++;a()},0);Task.immediateFunctions++;a();return null};g.asyncImmediate=function(a){Task.tasks.push(a);Task.asyncImmediateFunctions++;return 20>Task.runningAsyncFunctions?(Task.runningAsyncFunctions++,setTimeout(function(){Task.asyncContinue()},0)):null};g.asyncContinue=function(){var a=function(){Task.asyncContinue()};0=this.counter}},{},{}); +return!0};a.getOpposite=function(a,c){for(var b=0;b=this.counter}},{},{}); if(document&&document.getElementsByTagName){var scripts=document.getElementsByTagName("script");window.scriptPath=scripts[scripts.length-1].src.substr(0,scripts[scripts.length-1].src.lastIndexOf("/"))+"/"} -function generateUUID(){var h=(new Date).getTime();window&&window.performance&&"function"===typeof window.performance.now&&(h+=performance.now());return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=(h+16*Math.random())%16|0;h=Math.floor(h/16);return("x"==a?b:b&3|8).toString(16)})} -function base64ToBlob(h,a){a=a||"";h=forge.util.decode64(h);for(var b=h.length,c=Math.ceil(b/1024),d=Array(c),g=0;gh;++h)b[h]=c.getInt32();for(;64>h;++h)e=b[h-2],e=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,d=b[h-15],d=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,b[h]=e+b[h-7]+d+b[h-16]|0;l=a.h0;m=a.h1;n=a.h2;p=a.h3;r=a.h4;F=a.h5;B=a.h6;G=a.h7;for(h=0;64>h;++h)e=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),g=B^r&(F^B),d=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),k=l&m|n&(l^m),e=G+e+g+f[h]+b[h],d+=k,G=B,B=F,F=r,r=p+e|0, -p=n,n=m,m=l,l=e+d|0;a.h0=a.h0+l|0;a.h1=a.h1+m|0;a.h2=a.h2+n|0;a.h3=a.h3+p|0;a.h4=a.h4+r|0;a.h5=a.h5+F|0;a.h6=a.h6+B|0;a.h7=a.h7+G|0;E-=64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){g||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206, +(function(){function g(a){function b(a,b,c){for(var e,d,h,k,g,l,m,n,p,r,F,B,G,E=c.length();64<=E;){for(g=0;16>g;++g)b[g]=c.getInt32();for(;64>g;++g)e=b[g-2],e=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,d=b[g-15],d=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,b[g]=e+b[g-7]+d+b[g-16]|0;l=a.h0;m=a.h1;n=a.h2;p=a.h3;r=a.h4;F=a.h5;B=a.h6;G=a.h7;for(g=0;64>g;++g)e=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),h=B^r&(F^B),d=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),k=l&m|n&(l^m),e=G+e+h+f[g]+b[g],d+=k,G=B,B=F,F=r,r=p+e|0, +p=n,n=m,m=l,l=e+d|0;a.h0=a.h0+l|0;a.h1=a.h1+m|0;a.h2=a.h2+n|0;a.h3=a.h3+p|0;a.h4=a.h4+r|0;a.h5=a.h5+F|0;a.h6=a.h6+B|0;a.h7=a.h7+G|0;E-=64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206, 2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474, -2756734187,3204031479,3329325298],g=!0);var c=null,e=a.util.createBuffer(),k=Array(64),h={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,messageLength64:[0,0],start:function(){h.messageLength=0;h.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225};return h}};h.start();h.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));h.messageLength+=d.length;h.messageLength64[0]+= -d.length/4294967296>>>0;h.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,k,e);(2048>>28);f.putInt32(h.messageLength64[1]<<3);var g={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(g,k,f);f=a.util.createBuffer();f.putInt32(g.h0);f.putInt32(g.h1);f.putInt32(g.h2); -f.putInt32(g.h3);f.putInt32(g.h4);f.putInt32(g.h5);f.putInt32(g.h6);f.putInt32(g.h7);return f};return h};var d=null,g=!1,f=null}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),h(forge);var b,c=function(a,c){c.exports=function(c){var e=b.map(function(b){return a(b)}).concat(h);c=c||{};c.defined=c.defined||{};if(c.defined.sha256)return c.sha256;c.defined.sha256=!0;for(var d= +2756734187,3204031479,3329325298],h=!0);var c=null,e=a.util.createBuffer(),k=Array(64),g={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,messageLength64:[0,0],start:function(){g.messageLength=0;g.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225};return g}};g.start();g.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));g.messageLength+=d.length;g.messageLength64[0]+= +d.length/4294967296>>>0;g.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,k,e);(2048>>28);f.putInt32(g.messageLength64[1]<<3);var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(h,k,f);f=a.util.createBuffer();f.putInt32(h.h0);f.putInt32(h.h1);f.putInt32(h.h2); +f.putInt32(h.h3);f.putInt32(h.h4);f.putInt32(h.h5);f.putInt32(h.h6);f.putInt32(h.h7);return f};return g};var d=null,h=!1,f=null}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),g(forge);var b,c=function(a,c){c.exports=function(c){var e=b.map(function(b){return a(b)}).concat(g);c=c||{};c.defined=c.defined||{};if(c.defined.sha256)return c.sha256;c.defined.sha256=!0;for(var d= 0;dc&&(a+="0");a+=c.toString(16)}return a};c.DataBuffer.prototype.toString=function(a){var b=new Uint8Array(this.data,this.read,this.length());a=a||"utf8";if("binary"===a||"raw"===a)return c.binary.raw.encode(b);if("hex"===a)return c.binary.hex.encode(b);if("base64"===a)return c.binary.base64.encode(b);if("utf8"===a)return c.text.utf8.decode(b); -if("utf16"===a)return c.text.utf16.decode(b);throw Error("Invalid encoding: "+a);};c.createBuffer=function(a,b){void 0!==a&&"utf8"===(b||"raw")&&(a=c.encodeUtf8(a));return new c.ByteBuffer(a)};c.fillString=function(a,b){for(var c="";0>>=1,0>>=1,0>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var d=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28, -29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",d="",e,f,g,k=0;k>2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f&15)<<2|g>>6),c+= -isNaN(g)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(g&63)),b&&c.length>b&&(d+=c.substr(0,b)+"\r\n",c=c.substr(b));return d+c};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,e,f,g,k=0;k>4),64!==f&&(b+=String.fromCharCode((e&15)<<4|f>>2),64!==g&&(b+=String.fromCharCode((f&3)<<6|g)));return b}; +29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",d="",e,f,h,k=0;k>2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f&15)<<2|h>>6),c+= +isNaN(h)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(h&63)),b&&c.length>b&&(d+=c.substr(0,b)+"\r\n",c=c.substr(b));return d+c};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,e,f,h,k=0;k>4),64!==f&&(b+=String.fromCharCode((e&15)<<4|f>>2),64!==h&&(b+=String.fromCharCode((f&3)<<6|h)));return b}; c.encodeUtf8=function(a){return unescape(encodeURIComponent(a))};c.decodeUtf8=function(a){return decodeURIComponent(escape(a))};c.binary={raw:{},hex:{},base64:{}};c.binary.raw.encode=function(a){return String.fromCharCode.apply(null,a)};c.binary.raw.decode=function(a,b,c){var d=b;d||(d=new Uint8Array(a.length));for(var e=c=c||0,f=0;f>2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f& -15)<<2|g>>6),c+=isNaN(g)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(g&63)),b&&c.length>b&&(d+=c.substr(0,b)+"\r\n",c=c.substr(b));return d+c};c.binary.base64.decode=function(a,b,c){var e=b;e||(e=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");c=c||0;for(var f,g,k,h,l=0,m=c;l>4,64!==k&&(e[m++]=(g&15)<< -4|k>>2,64!==h&&(e[m++]=(k&3)<<6|h));return b?m-c:e.subarray(0,m)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,d){a=c.encodeUtf8(a);var e=b;e||(e=new Uint8Array(a.length));for(var f=d=d||0,g=0;g>2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f& +15)<<2|h>>6),c+=isNaN(h)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(h&63)),b&&c.length>b&&(d+=c.substr(0,b)+"\r\n",c=c.substr(b));return d+c};c.binary.base64.decode=function(a,b,c){var e=b;e||(e=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");c=c||0;for(var f,h,k,g,l=0,m=c;l>4,64!==k&&(e[m++]=(h&15)<< +4|k>>2,64!==g&&(e[m++]=(k&3)<<6|g));return b?m-c:e.subarray(0,m)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,d){a=c.encodeUtf8(a);var e=b;e||(e=new Uint8Array(a.length));for(var f=d=d||0,h=0;ha?"-":"";var f=parseInt(a=Math.abs(+a||0).toFixed(e),10)+"",g=3a?"-":"";var f=parseInt(a=Math.abs(+a||0).toFixed(e),10)+"",h=3f;++f)if(a[f]&&0!==a[f].length){var g=c.hexToBytes(a[f]);2>g.length&&e.putByte(0);e.putBytes(g)}else e.fillWithByte(0,d),d=0;return e.getBytes()};c.bytesToIP=function(a){return 4===a.length?c.bytesToIPv4(a):16===a.length?c.bytesToIPv6(a):null};c.bytesToIPv4=function(a){if(4!==a.length)return null;for(var b=[],c=0;c< -a.length;++c)b.push(a.charCodeAt(c));return b.join(".")};c.bytesToIPv6=function(a){if(16!==a.length)return null;for(var b=[],d=[],e=0,f=0;fd[e].end-d[e].start&&(e=d.length-1)):d.push({start:h,end:h})}b.push(g)}0k.st&&e.ste.st&&k.stf;++f)if(a[f]&&0!==a[f].length){var h=c.hexToBytes(a[f]);2>h.length&&e.putByte(0);e.putBytes(h)}else e.fillWithByte(0,d),d=0;return e.getBytes()};c.bytesToIP=function(a){return 4===a.length?c.bytesToIPv4(a):16===a.length?c.bytesToIPv6(a):null};c.bytesToIPv4=function(a){if(4!==a.length)return null;for(var b=[],c=0;c< +a.length;++c)b.push(a.charCodeAt(c));return b.join(".")};c.bytesToIPv6=function(a){if(16!==a.length)return null;for(var b=[],d=[],e=0,f=0;fd[e].end-d[e].start&&(e=d.length-1)):d.push({start:g,end:g})}b.push(h)}0k.st&&e.ste.st&&k.stm;++m)d=c.getInt32(),b[m]=d,l=k^f&(g^k),d=(e<<5|e>>>27)+l+h+1518500249+d,h=k,k=g,g=f<<30|f>>>2,f=e,e=d;for(;20>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=k^f&(g^k),d=(e<<5|e>>>27)+l+h+1518500249+d,h=k,k=g,g=f<<30|f>>>2,f=e,e=d;for(;32>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=f^g^k,d=(e<<5|e>>>27)+l+h+1859775393+d,h=k,k=g,g=f<< -30|f>>>2,f=e,e=d;for(;40>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^g^k,d=(e<<5|e>>>27)+l+h+1859775393+d,h=k,k=g,g=f<<30|f>>>2,f=e,e=d;for(;60>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f&g|k&(f^g),d=(e<<5|e>>>27)+l+h+2400959708+d,h=k,k=g,g=f<<30|f>>>2,f=e,e=d;for(;80>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^g^k,d=(e<<5|e>>>27)+l+h+3395469782+d,h=k,k=g,g=f<<30|f>>>2,f=e,e=d;a.h0=a.h0+e|0;a.h1=a.h1+f|0;a.h2=a.h2+g|0;a.h3=a.h3+k|0;a.h4= -a.h4+h|0;n-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){g||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),g=!0);var c=null,e=a.util.createBuffer(),k=Array(80),h={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0],start:function(){h.messageLength=0;h.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878, -h4:3285377520};return h}};h.start();h.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));h.messageLength+=d.length;h.messageLength64[0]+=d.length/4294967296>>>0;h.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,k,e);(2048>>28);f.putInt32(h.messageLength64[1]<<3); -var g={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(g,k,f);f=a.util.createBuffer();f.putInt32(g.h0);f.putInt32(g.h1);f.putInt32(g.h2);f.putInt32(g.h3);f.putInt32(g.h4);return f};return h};var d=null,g=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),h(forge);var b,c=function(a,c){c.exports=function(c){var d=b.map(function(b){return a(b)}).concat(h);c=c||{};c.defined=c.defined|| +(function(){function g(a){function b(a,b,c){for(var d,e,f,h,k,g,l,m,n=c.length();64<=n;){e=a.h0;f=a.h1;h=a.h2;k=a.h3;g=a.h4;for(m=0;16>m;++m)d=c.getInt32(),b[m]=d,l=k^f&(h^k),d=(e<<5|e>>>27)+l+g+1518500249+d,g=k,k=h,h=f<<30|f>>>2,f=e,e=d;for(;20>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=k^f&(h^k),d=(e<<5|e>>>27)+l+g+1518500249+d,g=k,k=h,h=f<<30|f>>>2,f=e,e=d;for(;32>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=f^h^k,d=(e<<5|e>>>27)+l+g+1859775393+d,g=k,k=h,h=f<< +30|f>>>2,f=e,e=d;for(;40>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^h^k,d=(e<<5|e>>>27)+l+g+1859775393+d,g=k,k=h,h=f<<30|f>>>2,f=e,e=d;for(;60>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f&h|k&(f^h),d=(e<<5|e>>>27)+l+g+2400959708+d,g=k,k=h,h=f<<30|f>>>2,f=e,e=d;for(;80>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^h^k,d=(e<<5|e>>>27)+l+g+3395469782+d,g=k,k=h,h=f<<30|f>>>2,f=e,e=d;a.h0=a.h0+e|0;a.h1=a.h1+f|0;a.h2=a.h2+h|0;a.h3=a.h3+k|0;a.h4= +a.h4+g|0;n-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),h=!0);var c=null,e=a.util.createBuffer(),k=Array(80),g={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0],start:function(){g.messageLength=0;g.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878, +h4:3285377520};return g}};g.start();g.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));g.messageLength+=d.length;g.messageLength64[0]+=d.length/4294967296>>>0;g.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,k,e);(2048>>28);f.putInt32(g.messageLength64[1]<<3); +var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(h,k,f);f=a.util.createBuffer();f.putInt32(h.h0);f.putInt32(h.h1);f.putInt32(h.h2);f.putInt32(h.h3);f.putInt32(h.h4);return f};return g};var d=null,h=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),g(forge);var b,c=function(a,c){c.exports=function(c){var d=b.map(function(b){return a(b)}).concat(g);c=c||{};c.defined=c.defined|| {};if(c.defined.sha1)return c.sha1;c.defined.sha1=!0;for(var e=0;ec-11)throw e=Error("Message is too long for PKCS#1 v1.5 padding."),e.length=b.length,e.max=c-11,e;e.putByte(0);e.putByte(d);c=c-3-b.length;if(0===d||1===d){d=0===d?0:255;for(var f=0;fb.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(h.ONE).gcd(b.e).compareTo(h.ONE)?(b.p=null,e()):0!==b.q.subtract(h.ONE).gcd(b.e).compareTo(h.ONE)?(b.q=null,f(b.qBits,g)):(b.p1=b.p.subtract(h.ONE),b.q1=b.q.subtract(h.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(h.ONE)? -(b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,f(b.qBits,g)):(a=b.e.modInverse(b.phi),b.keys={privateKey:r.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:r.rsa.setPublicKey(b.n,b.e)},d(null,b.keys))))}"function"===typeof c&&(d=c,c={});c=c||{};var k={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(k.prng=c.prng);e()}function g(b){b=b.toString(16); -"8"<=b[0]&&(b="00"+b);return a.util.hexToBytes(b)}function f(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"===typeof h)var h=a.jsbn.BigInteger;var p=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var r=a.pki,u=[6,4,2,4,2,4,6,2],x={name:"PrivateKeyInfo",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1, +var EcAesParameters=function(g){this.iv=forge.util.decode64(g)},EcAesParameters=stjs.extend(EcAesParameters,null,[],function(g,a){a.iv=null},{iv:"forge.payload"},{}); +(function(){function g(a){function b(b,c,d){var e=a.util.createBuffer();c=Math.ceil(c.n.bitLength()/8);if(b.length>c-11)throw e=Error("Message is too long for PKCS#1 v1.5 padding."),e.length=b.length,e.max=c-11,e;e.putByte(0);e.putByte(d);c=c-3-b.length;if(0===d||1===d){d=0===d?0:255;for(var f=0;fb.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(g.ONE).gcd(b.e).compareTo(g.ONE)?(b.p=null,e()):0!==b.q.subtract(g.ONE).gcd(b.e).compareTo(g.ONE)?(b.q=null,f(b.qBits,h)):(b.p1=b.p.subtract(g.ONE),b.q1=b.q.subtract(g.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(g.ONE)? +(b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,f(b.qBits,h)):(a=b.e.modInverse(b.phi),b.keys={privateKey:r.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:r.rsa.setPublicKey(b.n,b.e)},d(null,b.keys))))}"function"===typeof c&&(d=c,c={});c=c||{};var k={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(k.prng=c.prng);e()}function h(b){b=b.toString(16); +"8"<=b[0]&&(b="00"+b);return a.util.hexToBytes(b)}function f(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"===typeof g)var g=a.jsbn.BigInteger;var p=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var r=a.pki,u=[6,4,2,4,2,4,6,2],x={name:"PrivateKeyInfo",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1, capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:p.Class.UNIVERSAL,type:p.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:p.Class.UNIVERSAL,type:p.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},C={name:"RSAPrivateKey",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version", tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1", tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:p.Class.UNIVERSAL, type:p.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},q={name:"RSAPublicKey",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:p.Class.UNIVERSAL,type:p.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},A=a.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE, constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:p.Class.UNIVERSAL,type:p.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:p.Class.UNIVERSAL,type:p.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:p.Class.UNIVERSAL,type:p.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:p.Class.UNIVERSAL, type:p.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},D=function(a){var b;if(a.algorithm in r.oids)b=r.oids[a.algorithm];else throw b=Error("Unknown message digest algorithm."),b.algorithm=a.algorithm,b;var c=p.oidToDer(b).getBytes();b=p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[]);var d=p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[]);d.value.push(p.create(p.Class.UNIVERSAL,p.Type.OID,!1,c));d.value.push(p.create(p.Class.UNIVERSAL,p.Type.NULL,!1,""));a=p.create(p.Class.UNIVERSAL, -p.Type.OCTETSTRING,!1,a.digest().getBytes());b.value.push(d);b.value.push(a);return p.toDer(b).getBytes()},w=function(b,c,d){if(d)return b.modPow(c.e,c.n);if(!c.p||!c.q)return b.modPow(c.d,c.n);c.dP||(c.dP=c.d.mod(c.p.subtract(h.ONE)));c.dQ||(c.dQ=c.d.mod(c.q.subtract(h.ONE)));c.qInv||(c.qInv=c.q.modInverse(c.p));do d=(new h(a.util.bytesToHex(a.random.getBytes(c.n.bitLength()/8)),16)).mod(c.n);while(d.equals(h.ZERO));b=b.multiply(d.modPow(c.e,c.n)).mod(c.n);var e=b.mod(c.p).modPow(c.dP,c.p);for(b= -b.mod(c.q).modPow(c.dQ,c.q);0>e.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(d.modInverse(c.n)).mod(c.n)};r.rsa.encrypt=function(c,d,e){var f=e,g=Math.ceil(d.n.bitLength()/8);!1!==e&&!0!==e?(f=2===e,e=b(c,d,e)):(e=a.util.createBuffer(),e.putBytes(c));c=new h(e.toHex(),16);d=w(c,d,f).toString(16);f=a.util.createBuffer();for(g-=Math.ceil(d.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null,keys:null},b.e.fromInt(b.eInt);else throw Error("Invalid key generation algorithm: "+d);return b};r.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a|| -(a.algorithm="PRIMEINC");var c=new h(null);c.fromInt(30);for(var d=0,e=function(a,b){return a|b},g=+new Date,k,l=0;null===a.keys&&(0>=b||lk?a.pqState=0:a.num.isProbablePrime(f(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(u[d++%8],0):2===a.pqState? -a.pqState=0===a.num.subtract(h.ONE).gcd(a.e).compareTo(h.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(h.ONE),a.q1=a.q.subtract(h.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(h.ONE)?++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state: -(a.q=null,a.state=0)):5===a.state&&(k=a.e.modInverse(a.phi),a.keys={privateKey:r.rsa.setPrivateKey(a.n,a.e,k,a.p,a.q,k.mod(a.p1),k.mod(a.q1),a.q.modInverse(a.p)),publicKey:r.rsa.setPublicKey(a.n,a.e)});k=+new Date;l+=k-g;g=k}return null!==a.keys};r.rsa.generateKeyPair=function(a,b,c,e){1===arguments.length?"object"===typeof a?(c=a,a=void 0):"function"===typeof a&&(e=a,a=void 0):2===arguments.length?"number"===typeof a?"function"===typeof b?(e=b,b=void 0):"number"!==typeof b&&(c=b,b=void 0):(c=a,e= +p.Type.OCTETSTRING,!1,a.digest().getBytes());b.value.push(d);b.value.push(a);return p.toDer(b).getBytes()},w=function(b,c,d){if(d)return b.modPow(c.e,c.n);if(!c.p||!c.q)return b.modPow(c.d,c.n);c.dP||(c.dP=c.d.mod(c.p.subtract(g.ONE)));c.dQ||(c.dQ=c.d.mod(c.q.subtract(g.ONE)));c.qInv||(c.qInv=c.q.modInverse(c.p));do d=(new g(a.util.bytesToHex(a.random.getBytes(c.n.bitLength()/8)),16)).mod(c.n);while(d.equals(g.ZERO));b=b.multiply(d.modPow(c.e,c.n)).mod(c.n);var e=b.mod(c.p).modPow(c.dP,c.p);for(b= +b.mod(c.q).modPow(c.dQ,c.q);0>e.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(d.modInverse(c.n)).mod(c.n)};r.rsa.encrypt=function(c,d,e){var f=e,h=Math.ceil(d.n.bitLength()/8);!1!==e&&!0!==e?(f=2===e,e=b(c,d,e)):(e=a.util.createBuffer(),e.putBytes(c));c=new g(e.toHex(),16);d=w(c,d,f).toString(16);f=a.util.createBuffer();for(h-=Math.ceil(d.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null,keys:null},b.e.fromInt(b.eInt);else throw Error("Invalid key generation algorithm: "+d);return b};r.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a|| +(a.algorithm="PRIMEINC");var c=new g(null);c.fromInt(30);for(var d=0,e=function(a,b){return a|b},h=+new Date,k,l=0;null===a.keys&&(0>=b||lk?a.pqState=0:a.num.isProbablePrime(f(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(u[d++%8],0):2===a.pqState? +a.pqState=0===a.num.subtract(g.ONE).gcd(a.e).compareTo(g.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(g.ONE),a.q1=a.q.subtract(g.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(g.ONE)?++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state: +(a.q=null,a.state=0)):5===a.state&&(k=a.e.modInverse(a.phi),a.keys={privateKey:r.rsa.setPrivateKey(a.n,a.e,k,a.p,a.q,k.mod(a.p1),k.mod(a.q1),a.q.modInverse(a.p)),publicKey:r.rsa.setPublicKey(a.n,a.e)});k=+new Date;l+=k-h;h=k}return null!==a.keys};r.rsa.generateKeyPair=function(a,b,c,e){1===arguments.length?"object"===typeof a?(c=a,a=void 0):"function"===typeof a&&(e=a,a=void 0):2===arguments.length?"number"===typeof a?"function"===typeof b?(e=b,b=void 0):"number"!==typeof b&&(c=b,b=void 0):(c=a,e= b,b=a=void 0):3===arguments.length&&("number"===typeof b?"function"===typeof c&&(e=c,c=void 0):(e=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var f=r.rsa.createKeyPairGenerationState(a,b,c);if(!e)return r.rsa.stepKeyPairGenerationState(f,0),f.keys;d(f,c,e)};r.setRsaPublicKey=r.rsa.setPublicKey=function(d,e){var f={n:d,e:e,encrypt:function(c,d,e){"string"===typeof d?d=d.toUpperCase():void 0===d&&(d="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===d)d={encode:function(a, c,d){return b(a,c,2).getBytes()}};else if("RSA-OAEP"===d||"RSAES-OAEP"===d)d={encode:function(b,c){return a.pkcs1.encode_rsa_oaep(c,b,e)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(d))d={encode:function(a){return a}};else if("string"===typeof d)throw Error('Unsupported encryption scheme: "'+d+'".');c=d.encode(c,f,!0);return r.rsa.encrypt(c,f,!0)},verify:function(a,b,d){"string"===typeof d?d=d.toUpperCase():void 0===d&&(d="RSASSA-PKCS1-V1_5");if("RSASSA-PKCS1-V1_5"===d)d={verify:function(a,b){b= -c(b,f,!0);b=p.fromDer(b);return a===b.value[1].value}};else if("NONE"===d||"NULL"===d||null===d)d={verify:function(a,b){b=c(b,f,!0);return a===b}};b=r.rsa.decrypt(b,f,!0,!1);return d.verify(a,b,f.n.bitLength())}};return f};r.setRsaPrivateKey=r.rsa.setPrivateKey=function(b,d,e,f,g,k,h,l){var m={n:b,e:d,d:e,p:f,q:g,dP:k,dQ:h,qInv:l,decrypt:function(b,d,e){"string"===typeof d?d=d.toUpperCase():void 0===d&&(d="RSAES-PKCS1-V1_5");b=r.rsa.decrypt(b,m,!1,!1);if("RSAES-PKCS1-V1_5"===d)d={decode:c};else if("RSA-OAEP"=== +c(b,f,!0);b=p.fromDer(b);return a===b.value[1].value}};else if("NONE"===d||"NULL"===d||null===d)d={verify:function(a,b){b=c(b,f,!0);return a===b}};b=r.rsa.decrypt(b,f,!0,!1);return d.verify(a,b,f.n.bitLength())}};return f};r.setRsaPrivateKey=r.rsa.setPrivateKey=function(b,d,e,f,h,k,g,l){var m={n:b,e:d,d:e,p:f,q:h,dP:k,dQ:g,qInv:l,decrypt:function(b,d,e){"string"===typeof d?d=d.toUpperCase():void 0===d&&(d="RSAES-PKCS1-V1_5");b=r.rsa.decrypt(b,m,!1,!1);if("RSAES-PKCS1-V1_5"===d)d={decode:c};else if("RSA-OAEP"=== d||"RSAES-OAEP"===d)d={decode:function(b,c){return a.pkcs1.decode_rsa_oaep(c,b,e)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(d))d={decode:function(a){return a}};else throw Error('Unsupported encryption scheme: "'+d+'".');return d.decode(b,m,!1)},sign:function(a,b){var c=!1;"string"===typeof b&&(b=b.toUpperCase());if(void 0===b||"RSASSA-PKCS1-V1_5"===b)b={encode:D},c=1;else if("NONE"===b||"NULL"===b||null===b)b={encode:function(){return a}},c=1;b=b.encode(a,m.n.bitLength());return r.rsa.encrypt(b, m,c)}};return m};r.wrapRsaPrivateKey=function(a){return p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,p.integerToDer(0).getBytes()),p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL,p.Type.OID,!1,p.oidToDer(r.oids.rsaEncryption).getBytes()),p.create(p.Class.UNIVERSAL,p.Type.NULL,!1,"")]),p.create(p.Class.UNIVERSAL,p.Type.OCTETSTRING,!1,p.toDer(a).getBytes())])};r.privateKeyFromAsn1=function(b){var c={},d=[];p.validate(b,x,c,d)&& -(b=p.fromDer(a.util.createBuffer(c.privateKey)));c={};d=[];if(!p.validate(b,C,c,d))throw c=Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey."),c.errors=d,c;var e,f,g,k,l,d=a.util.createBuffer(c.privateKeyModulus).toHex();b=a.util.createBuffer(c.privateKeyPublicExponent).toHex();e=a.util.createBuffer(c.privateKeyPrivateExponent).toHex();f=a.util.createBuffer(c.privateKeyPrime1).toHex();g=a.util.createBuffer(c.privateKeyPrime2).toHex();k=a.util.createBuffer(c.privateKeyExponent1).toHex(); -l=a.util.createBuffer(c.privateKeyExponent2).toHex();c=a.util.createBuffer(c.privateKeyCoefficient).toHex();return r.setRsaPrivateKey(new h(d,16),new h(b,16),new h(e,16),new h(f,16),new h(g,16),new h(k,16),new h(l,16),new h(c,16))};r.privateKeyToAsn1=r.privateKeyToRSAPrivateKey=function(a){return p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,p.integerToDer(0).getBytes()),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.n)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER, -!1,g(a.e)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.d)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.p)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.q)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.dP)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.dQ)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.qInv))])};r.publicKeyFromAsn1=function(b){var c={},d=[];if(p.validate(b,A,c,d)){d=p.derToOid(c.publicKeyOid);if(d!==r.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."), -c.oid=d,c;b=c.rsaPublicKey}d=[];if(!p.validate(b,q,c,d))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=d,c;d=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return r.setRsaPublicKey(new h(d,16),new h(c,16))};r.publicKeyToAsn1=r.publicKeyToSubjectPublicKeyInfo=function(a){return p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL, -p.Type.OID,!1,p.oidToDer(r.oids.rsaEncryption).getBytes()),p.create(p.Class.UNIVERSAL,p.Type.NULL,!1,"")]),p.create(p.Class.UNIVERSAL,p.Type.BITSTRING,!1,[r.publicKeyToRSAPublicKey(a)])])};r.publicKeyToRSAPublicKey=function(a){return p.create(p.Class.UNIVERSAL,p.Type.SEQUENCE,!0,[p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.n)),p.create(p.Class.UNIVERSAL,p.Type.INTEGER,!1,g(a.e))])}}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require, -module)}}else return"undefined"===typeof forge&&(forge={}),h(forge);var b,c=function(a,c){c.exports=function(c){var d=b.map(function(b){return a(b)}).concat(h);c=c||{};c.defined=c.defined||{};if(c.defined.rsa)return c.rsa;c.defined.rsa=!0;for(var e=0;eb;++b)p[b]=Math.floor(4294967296* -Math.abs(Math.sin(b+1)));r=!0}function c(a,b,c){for(var d,e,g,k,l,m,n,r=c.length();64<=r;){e=a.h0;g=a.h1;k=a.h2;l=a.h3;for(n=0;16>n;++n)b[n]=c.getInt32Le(),d=l^g&(k^l),d=e+d+p[n]+b[n],m=h[n],e=l,l=k,k=g,g+=d<>>32-m;for(;32>n;++n)d=k^l&(g^k),d=e+d+p[n]+b[f[n]],m=h[n],e=l,l=k,k=g,g+=d<>>32-m;for(;48>n;++n)d=g^k^l,d=e+d+p[n]+b[f[n]],m=h[n],e=l,l=k,k=g,g+=d<>>32-m;for(;64>n;++n)d=k^(g|~l),d=e+d+p[n]+b[f[n]],m=h[n],e=l,l=k,k=g,g+=d<>>32-m;a.h0=a.h0+e|0;a.h1=a.h1+g|0;a.h2=a.h2+k|0;a.h3= -a.h3+l|0;r-=64}}var d=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=d;d.create=function(){r||b();var d=null,e=a.util.createBuffer(),f=Array(16),k={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,messageLength64:[0,0],start:function(){k.messageLength=0;k.messageLength64=[0,0];e=a.util.createBuffer();d={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878};return k}};k.start();k.update=function(b,g){"utf8"===g&&(b=a.util.encodeUtf8(b)); -k.messageLength+=b.length;k.messageLength64[0]+=b.length/4294967296>>>0;k.messageLength64[1]+=b.length>>>0;e.putBytes(b);c(d,f,e);(2048>>28);var h={h0:d.h0,h1:d.h1,h2:d.h2,h3:d.h3};c(h,f,b);b=a.util.createBuffer();b.putInt32Le(h.h0); -b.putInt32Le(h.h1);b.putInt32Le(h.h2);b.putInt32Le(h.h3);return b};return k};var g=null,f=null,h=null,p=null,r=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),h(forge);var b,c=function(a,c){c.exports=function(c){var d=b.map(function(b){return a(b)}).concat(h);c=c||{};c.defined=c.defined||{};if(c.defined.md5)return c.md5;c.defined.md5=!0;for(var e=0;eb;++b)p[b]=Math.floor(4294967296* +Math.abs(Math.sin(b+1)));r=!0}function c(a,b,c){for(var d,e,h,k,l,m,n,r=c.length();64<=r;){e=a.h0;h=a.h1;k=a.h2;l=a.h3;for(n=0;16>n;++n)b[n]=c.getInt32Le(),d=l^h&(k^l),d=e+d+p[n]+b[n],m=g[n],e=l,l=k,k=h,h+=d<>>32-m;for(;32>n;++n)d=k^l&(h^k),d=e+d+p[n]+b[f[n]],m=g[n],e=l,l=k,k=h,h+=d<>>32-m;for(;48>n;++n)d=h^k^l,d=e+d+p[n]+b[f[n]],m=g[n],e=l,l=k,k=h,h+=d<>>32-m;for(;64>n;++n)d=k^(h|~l),d=e+d+p[n]+b[f[n]],m=g[n],e=l,l=k,k=h,h+=d<>>32-m;a.h0=a.h0+e|0;a.h1=a.h1+h|0;a.h2=a.h2+k|0;a.h3= +a.h3+l|0;r-=64}}var d=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=d;d.create=function(){r||b();var d=null,e=a.util.createBuffer(),f=Array(16),k={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,messageLength64:[0,0],start:function(){k.messageLength=0;k.messageLength64=[0,0];e=a.util.createBuffer();d={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878};return k}};k.start();k.update=function(b,h){"utf8"===h&&(b=a.util.encodeUtf8(b)); +k.messageLength+=b.length;k.messageLength64[0]+=b.length/4294967296>>>0;k.messageLength64[1]+=b.length>>>0;e.putBytes(b);c(d,f,e);(2048>>28);var g={h0:d.h0,h1:d.h1,h2:d.h2,h3:d.h3};c(g,f,b);b=a.util.createBuffer();b.putInt32Le(g.h0); +b.putInt32Le(g.h1);b.putInt32Le(g.h2);b.putInt32Le(g.h3);return b};return k};var h=null,f=null,g=null,p=null,r=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var a=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),g(forge);var b,c=function(a,c){c.exports=function(c){var d=b.map(function(b){return a(b)}).concat(g);c=c||{};c.defined=c.defined||{};if(c.defined.md5)return c.md5;c.defined.md5=!0;for(var e=0;ea;a++)EcRsaOaepAsyncWorker.createWorker(a)}};h.createWorker=function(a){EcRsaOaepAsyncWorker.q1.push([]); -EcRsaOaepAsyncWorker.q2.push([]);var b;null!=window.scriptPath?EcRsaOaepAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcRsaOaepAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcRsaOaepAsyncWorker.q1[a].shift(),d=EcRsaOaepAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcRsaOaepAsyncWorker.q1[a].shift();var c=EcRsaOaepAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};h.encrypt= -function(a,c,d,g){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.pk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="encryptRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(g);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.encrypt(a,c))};h.decrypt=function(a,c,d,g){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[a.toPem()+c];if(null!= -b){d(b);return}}EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=c;e.cmd="decryptRsaOaep";EcCrypto.caching?EcRsaOaepAsyncWorker.q1[b].push(function(b){EcCrypto.decryptionCache[a.toPem()+c]=forge.util.decodeUtf8(b);d(forge.util.decodeUtf8(b))}):EcRsaOaepAsyncWorker.q1[b].push(function(a){d(forge.util.decodeUtf8(a))});EcRsaOaepAsyncWorker.q2[b].push(g);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.decrypt(a, -c))};h.sign=function(a,c,d,g){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="signRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(g);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.sign(a,c))};h.signSha256=function(a,c,d,g){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b= -EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="signSha256RsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(g);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.signSha256(a,c))};h.verify=function(a,c,d,g,k){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var h={};h.pk=a.toPem();h.text= -forge.util.encodeUtf8(c);h.signature=d;h.cmd="verifyRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(g);EcRsaOaepAsyncWorker.q2[b].push(k);EcRsaOaepAsyncWorker.w[b].postMessage(h)}else g(EcRsaOaep.verify(a,c,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]},q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcAesCtrAsyncWorker=function(){},EcAesCtrAsyncWorker=stjs.extend(EcAesCtrAsyncWorker, -null,[],function(h,a){h.rotator=0;h.w=null;h.q1=null;h.q2=null;h.initWorker=function(){if(!(null==window&&(typeof self).equals("undefined")||void 0==Worker||null==Worker)&&EcRemote.async&&null==EcAesCtrAsyncWorker.w){EcAesCtrAsyncWorker.rotator=0;EcAesCtrAsyncWorker.q1=[];EcAesCtrAsyncWorker.q2=[];EcAesCtrAsyncWorker.w=[];for(var a=0;8>a;a++)EcAesCtrAsyncWorker.createWorker(a)}};h.createWorker=function(a){EcAesCtrAsyncWorker.q1.push([]);EcAesCtrAsyncWorker.q2.push([]);var b;null!=window.scriptPath? -EcAesCtrAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcAesCtrAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcAesCtrAsyncWorker.q1[a].shift(),d=EcAesCtrAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcAesCtrAsyncWorker.q1[a].shift();var c=EcAesCtrAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};h.encrypt=function(a,c,d,g,k){EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&& -null!=EcAesCtrAsyncWorker.w){var b=EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var h={};h.secret=c;h.iv=d;h.text=forge.util.encodeUtf8(a);h.cmd="encryptAesCtr";EcAesCtrAsyncWorker.q1[b].push(g);EcAesCtrAsyncWorker.q2[b].push(k);EcAesCtrAsyncWorker.w[b].postMessage(h)}else g(EcAesCtr.encrypt(a,c,d))};h.decrypt=function(a,c,d,g,k){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[c+d+a];if(null!=b){g(b);return}}EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&&null!=EcAesCtrAsyncWorker.w){b= -EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var h={};h.secret=c;h.iv=d;h.text=a;h.cmd="decryptAesCtr";EcCrypto.caching?EcAesCtrAsyncWorker.q1[b].push(function(b){EcCrypto.decryptionCache[c+d+a]=forge.util.decodeUtf8(b);g(forge.util.decodeUtf8(b))}):EcAesCtrAsyncWorker.q1[b].push(function(a){g(forge.util.decodeUtf8(a))});EcAesCtrAsyncWorker.q2[b].push(k);EcAesCtrAsyncWorker.w[b].postMessage(h)}else g(EcAesCtr.decrypt(a,c,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]}, -q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcRsaOaepAsync=function(){},EcRsaOaepAsync=stjs.extend(EcRsaOaepAsync,null,[],function(h,a){h.encrypt=function(a,c,d,g){if(0==EcRemote.async)d(EcRsaOaep.encrypt(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.encrypt(a,c,d,g);else{var b=[];b.push("encrypt");var e={name:"RSA-OAEP", -hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.key=b;window.crypto.subtle.encrypt(e,b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)},g):window.crypto.subtle.encrypt(e,a.key,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)}};h.decrypt=function(a,c,d,g){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[a.toPem()+c];if(null!=b){d(b);return}}if(0==EcRemote.async)d(EcRsaOaep.decrypt(a,c)); -else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.decrypt(a,c,d,g);else{b=[];b.push("decrypt");var e={name:"RSA-OAEP",hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.key=b;window.crypto.subtle.decrypt(e,b,base64.decode(c)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))},g)},g):window.crypto.subtle.decrypt(e,a.key,base64.decode(c)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))}, -g)}};h.sign=function(a,c,d,g){if(0==EcRemote.async)d(EcRsaOaep.sign(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,c,d,g);else{var b=[];b.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.sign(e,b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)},g):window.crypto.subtle.sign(e, -a.signKey,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)}};h.signSha256=function(a,c,d,g){if(0==EcRemote.async)d(EcRsaOaep.signSha256(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,c,d,g);else{var b=[];b.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.sign(e, -b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)},g):window.crypto.subtle.sign(e,a.signKey,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},g)}};h.verify=function(a,c,d,g,k){if(0==EcRemote.async)g(EcRsaOaep.verify(a,c,d));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.verify(a,c,d,g,k);else{var b=[];b.push("verify");var h={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey? -window.crypto.subtle.importKey("jwk",a.toJwk(),h,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.verify(h,b,base64.decode(d),str2ab(forge.util.encodeUtf8(c))).then(function(a){g(a)},k)},k):window.crypto.subtle.verify(h,a.signKey,base64.decode(d),str2ab(forge.util.encodeUtf8(c))).then(function(a){g(a)},k)}}},{},{}),EcAesCtrAsync=function(){},EcAesCtrAsync=stjs.extend(EcAesCtrAsync,null,[],function(h,a){h.encrypt=function(a,c,d,g,k){if(null==window||null==window.crypto||null==window.crypto.subtle)EcAesCtrAsyncWorker.encrypt(a, -c,d,g,k);else if(0==EcRemote.async)g(EcAesCtr.encrypt(a,c,d));else{var b=[];b.push("encrypt","decrypt");var h={name:"AES-CTR"};h.counter=base64.decode(d);h.length=128;var n;n=str2ab(forge.util.encodeUtf8(a));window.crypto.subtle.importKey("raw",base64.decode(c),h,!1,b).then(function(a){window.crypto.subtle.encrypt(h,a,n).then(function(a){g(base64.encode(a))},k)},k)}};h.decrypt=function(a,c,d,g,k){if(EcCrypto.caching){var b=EcCrypto.decryptionCache[c+d+a];if(null!=b){g(b);return}}if(null==window.crypto|| -null==window.crypto.subtle)EcAesCtrAsyncWorker.decrypt(a,c,d,g,k);else{0==EcRemote.async&&g(EcAesCtr.decrypt(a,c,d));b=[];b.push("encrypt","decrypt");var h={name:"AES-CTR"};h.counter=base64.decode(d);h.length=128;var n;n=base64.decode(a);window.crypto.subtle.importKey("raw",base64.decode(c),h,!1,b).then(function(b){window.crypto.subtle.decrypt(h,b,n).then(function(b){EcCrypto.decryptionCache[c+d+a]=forge.util.decodeUtf8(ab2str(b));g(forge.util.decodeUtf8(ab2str(b)))},k)},k)}}},{},{}),EcLinkedData= -function(h,a){this.setContextAndType(h,a)},EcLinkedData=stjs.extend(EcLinkedData,null,[],function(h,a){h.atProperties="id type schema context signature graph owner reader encryptedType".split(" ");a.type=null;a.context=null;h.isAtProperty=function(a){for(var b=0;ba;a++)EcRsaOaepAsyncWorker.createWorker(a)}};g.createWorker=function(a){EcRsaOaepAsyncWorker.q1.push([]); +EcRsaOaepAsyncWorker.q2.push([]);var b;null!=window.scriptPath?EcRsaOaepAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcRsaOaepAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcRsaOaepAsyncWorker.q1[a].shift(),d=EcRsaOaepAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcRsaOaepAsyncWorker.q1[a].shift();var c=EcRsaOaepAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};g.encrypt= +function(a,c,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.pk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="encryptRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(h);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.encrypt(a,c))};g.decrypt=function(a,c,d,h){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[a.toPem()+c];if(null!= +b){d(b);return}}EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=c;e.cmd="decryptRsaOaep";EcCrypto.caching?EcRsaOaepAsyncWorker.q1[b].push(function(b){EcCrypto.decryptionCache[a.toPem()+c]=forge.util.decodeUtf8(b);d(forge.util.decodeUtf8(b))}):EcRsaOaepAsyncWorker.q1[b].push(function(a){d(forge.util.decodeUtf8(a))});EcRsaOaepAsyncWorker.q2[b].push(h);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.decrypt(a, +c))};g.sign=function(a,c,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="signRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(h);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.sign(a,c))};g.signSha256=function(a,c,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b= +EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(c);e.cmd="signSha256RsaOaep";EcRsaOaepAsyncWorker.q1[b].push(d);EcRsaOaepAsyncWorker.q2[b].push(h);EcRsaOaepAsyncWorker.w[b].postMessage(e)}else d(EcRsaOaep.signSha256(a,c))};g.verify=function(a,c,d,h,k){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var b=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var g={};g.pk=a.toPem();g.text= +forge.util.encodeUtf8(c);g.signature=d;g.cmd="verifyRsaOaep";EcRsaOaepAsyncWorker.q1[b].push(h);EcRsaOaepAsyncWorker.q2[b].push(k);EcRsaOaepAsyncWorker.w[b].postMessage(g)}else h(EcRsaOaep.verify(a,c,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]},q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcAesCtrAsyncWorker=function(){},EcAesCtrAsyncWorker=stjs.extend(EcAesCtrAsyncWorker, +null,[],function(g,a){g.rotator=0;g.w=null;g.q1=null;g.q2=null;g.initWorker=function(){if(!(null==window&&(typeof self).equals("undefined")||void 0==Worker||null==Worker)&&EcRemote.async&&null==EcAesCtrAsyncWorker.w){EcAesCtrAsyncWorker.rotator=0;EcAesCtrAsyncWorker.q1=[];EcAesCtrAsyncWorker.q2=[];EcAesCtrAsyncWorker.w=[];for(var a=0;8>a;a++)EcAesCtrAsyncWorker.createWorker(a)}};g.createWorker=function(a){EcAesCtrAsyncWorker.q1.push([]);EcAesCtrAsyncWorker.q2.push([]);var b;null!=window.scriptPath? +EcAesCtrAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcAesCtrAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcAesCtrAsyncWorker.q1[a].shift(),d=EcAesCtrAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcAesCtrAsyncWorker.q1[a].shift();var c=EcAesCtrAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};g.encrypt=function(a,c,d,h,k){EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&& +null!=EcAesCtrAsyncWorker.w){var b=EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var g={};g.secret=c;g.iv=d;g.text=forge.util.encodeUtf8(a);g.cmd="encryptAesCtr";EcAesCtrAsyncWorker.q1[b].push(h);EcAesCtrAsyncWorker.q2[b].push(k);EcAesCtrAsyncWorker.w[b].postMessage(g)}else h(EcAesCtr.encrypt(a,c,d))};g.decrypt=function(a,c,d,h,k){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[c+d+a];if(null!=b){h(b);return}}EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&&null!=EcAesCtrAsyncWorker.w){b= +EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var g={};g.secret=c;g.iv=d;g.text=a;g.cmd="decryptAesCtr";EcCrypto.caching?EcAesCtrAsyncWorker.q1[b].push(function(b){EcCrypto.decryptionCache[c+d+a]=forge.util.decodeUtf8(b);h(forge.util.decodeUtf8(b))}):EcAesCtrAsyncWorker.q1[b].push(function(a){h(forge.util.decodeUtf8(a))});EcAesCtrAsyncWorker.q2[b].push(k);EcAesCtrAsyncWorker.w[b].postMessage(g)}else h(EcAesCtr.decrypt(a,c,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]}, +q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcRsaOaepAsync=function(){},EcRsaOaepAsync=stjs.extend(EcRsaOaepAsync,null,[],function(g,a){g.encrypt=function(a,c,d,h){if(0==EcRemote.async)d(EcRsaOaep.encrypt(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.encrypt(a,c,d,h);else{var b=[];b.push("encrypt");var e={name:"RSA-OAEP", +hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.key=b;window.crypto.subtle.encrypt(e,b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.encrypt(e,a.key,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)}};g.decrypt=function(a,c,d,h){if(EcCrypto.caching){var b=null,b=EcCrypto.decryptionCache[a.toPem()+c];if(null!=b){d(b);return}}if(0==EcRemote.async)d(EcRsaOaep.decrypt(a,c)); +else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.decrypt(a,c,d,h);else{b=[];b.push("decrypt");var e={name:"RSA-OAEP",hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.key=b;window.crypto.subtle.decrypt(e,b,base64.decode(c)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))},h)},h):window.crypto.subtle.decrypt(e,a.key,base64.decode(c)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))}, +h)}};g.sign=function(a,c,d,h){if(0==EcRemote.async)d(EcRsaOaep.sign(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,c,d,h);else{var b=[];b.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.sign(e,b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(e, +a.signKey,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)}};g.signSha256=function(a,c,d,h){if(0==EcRemote.async)d(EcRsaOaep.signSha256(a,c));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,c,d,h);else{var b=[];b.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.sign(e, +b,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(e,a.signKey,str2ab(forge.util.encodeUtf8(c))).then(function(a){d(base64.encode(a))},h)}};g.verify=function(a,c,d,h,k){if(0==EcRemote.async)h(EcRsaOaep.verify(a,c,d));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.verify(a,c,d,h,k);else{var b=[];b.push("verify");var g={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey? +window.crypto.subtle.importKey("jwk",a.toJwk(),g,!1,b).then(function(b){a.signKey=b;window.crypto.subtle.verify(g,b,base64.decode(d),str2ab(forge.util.encodeUtf8(c))).then(function(a){h(a)},k)},k):window.crypto.subtle.verify(g,a.signKey,base64.decode(d),str2ab(forge.util.encodeUtf8(c))).then(function(a){h(a)},k)}}},{},{}),EcAesCtrAsync=function(){},EcAesCtrAsync=stjs.extend(EcAesCtrAsync,null,[],function(g,a){g.encrypt=function(a,c,d,h,k){if(null==window||null==window.crypto||null==window.crypto.subtle)EcAesCtrAsyncWorker.encrypt(a, +c,d,h,k);else if(0==EcRemote.async)h(EcAesCtr.encrypt(a,c,d));else{var b=[];b.push("encrypt","decrypt");var g={name:"AES-CTR"};g.counter=base64.decode(d);g.length=128;var n;n=str2ab(forge.util.encodeUtf8(a));window.crypto.subtle.importKey("raw",base64.decode(c),g,!1,b).then(function(a){window.crypto.subtle.encrypt(g,a,n).then(function(a){h(base64.encode(a))},k)},k)}};g.decrypt=function(a,c,d,h,k){if(EcCrypto.caching){var b=EcCrypto.decryptionCache[c+d+a];if(null!=b){h(b);return}}if(null==window.crypto|| +null==window.crypto.subtle)EcAesCtrAsyncWorker.decrypt(a,c,d,h,k);else{0==EcRemote.async&&h(EcAesCtr.decrypt(a,c,d));b=[];b.push("encrypt","decrypt");var g={name:"AES-CTR"};g.counter=base64.decode(d);g.length=128;var n;n=base64.decode(a);window.crypto.subtle.importKey("raw",base64.decode(c),g,!1,b).then(function(b){window.crypto.subtle.decrypt(g,b,n).then(function(b){EcCrypto.decryptionCache[c+d+a]=forge.util.decodeUtf8(ab2str(b));h(forge.util.decodeUtf8(ab2str(b)))},k)},k)}}},{},{}),EcLinkedData= +function(g,a){this.setContextAndType(g,a)},EcLinkedData=stjs.extend(EcLinkedData,null,[],function(g,a){g.atProperties="id type schema context signature graph owner reader encryptedType".split(" ");a.type=null;a.context=null;g.isAtProperty=function(a){for(var b=0;b(new Date).getTime()+a)return b[1]; -a+=2E4}b=[];for(var g=0;g(new Date).getTime()+ -a){d(e[1]);return}a+=2E4}var h=a;(new EcAsyncHelper).each(EcIdentityManager.ids,function(a,d){EcIdentityManager.createSignatureAsync(h,c,a.ppk,function(a){b.push(a.atIfy());d()},function(a){g(a);d()})},function(a){var e=JSON.stringify(b);EcIdentityManager.signatureSheetCaching&&(a=[],a[0]=(new Date).getTime()+h,a[1]=e,EcIdentityManager.signatureSheetCache[c]=a);d(e)})}else a=EcIdentityManager.signatureSheet(a,c),null!=d&&d(a)};h.createSignature=function(a,c,d){var b=new EbacSignature;b.owner=d.toPk().toPem(); -b.expiry=(new Date).getTime()+a;b.server=c;b.signature=EcRsaOaep.sign(d,b.toJson());return b};h.createSignatureAsync=function(a,c,d,g,k){var b=new EbacSignature;b.owner=d.toPk().toPem();b.expiry=(new Date).getTime()+a;b.server=c;EcRsaOaepAsync.sign(d,b.toJson(),function(a){b.signature=a;g(b)},k)};h.getPpk=function(a){a=a.toPem();for(var b=0;b(new Date).getTime()+a)return b[1]; +a+=2E4}b=[];for(var h=0;h(new Date).getTime()+ +a){d(e[1]);return}a+=2E4}var g=a;(new EcAsyncHelper).each(EcIdentityManager.ids,function(a,d){EcIdentityManager.createSignatureAsync(g,c,a.ppk,function(a){b.push(a.atIfy());d()},function(a){h(a);d()})},function(a){var e=JSON.stringify(b);EcIdentityManager.signatureSheetCaching&&(a=[],a[0]=(new Date).getTime()+g,a[1]=e,EcIdentityManager.signatureSheetCache[c]=a);d(e)})}else a=EcIdentityManager.signatureSheet(a,c),null!=d&&d(a)};g.createSignature=function(a,c,d){var b=new EbacSignature;b.owner=d.toPk().toPem(); +b.expiry=(new Date).getTime()+a;b.server=c;b.signature=EcRsaOaep.sign(d,b.toJson());return b};g.createSignatureAsync=function(a,c,d,h,k){var b=new EbacSignature;b.owner=d.toPk().toPem();b.expiry=(new Date).getTime()+a;b.server=c;EcRsaOaepAsync.sign(d,b.toJson(),function(a){b.signature=a;h(b)},k)};g.getPpk=function(a){a=a.toPem();for(var b=0;bb.usernameSalt.length?c("Insufficient length on Username Salt"):(b.usernameIterations=stjs.trunc(d.usernameIterations),1E3>b.usernameIterations?c("Insufficient iterations on Username Hash"): +c.displayName+".pem","text/plain"),h={};h.id=c.id;void 0==h.id&&(h.parent=a);h.name=b.name;a=[];a.push(b);h.file=a;hello.api(this.network+"/me/files",void 0==c.id?"post":"put",h).then(function(a){c.id=a.id})};a.readIdentityFiles=function(a,c,d){var b=this,k={};k.parent=a;hello.api(this.network+"/me/files","get",k).then(function(a){a=a.data;(new EcAsyncHelper).each(a,function(a,c){var e=a.name.replace("\\.pem",""),h=a.id;EcRemote.getExpectingString("",a.downloadUrl+"\x26access_token\x3d"+hello.getAuthResponse(b.network).access_token, +function(a){var b=new EcIdentity;b.displayName=e.replace(".pem","");b.ppk=EcPpk.fromPem(a);b.source="google";b.id=h;EcIdentityManager.addIdentityQuietly(b);c()},d)},function(a){c(null)})})};a.readContactFiles=function(a,c,d){var b=this,k={};k.parent=a;hello.api(this.network+"/me/files","get",k).then(function(a){a=a.data;(new EcAsyncHelper).each(a,function(a,c){var e=a.name.replace("\\.pem",""),h=a.id;EcRemote.getExpectingString("",a.downloadUrl+"\x26access_token\x3d"+hello.getAuthResponse(b.network).access_token, +function(a){var b=new EcContact;b.displayName=e.replace(".pem","");b.pk=EcPk.fromPem(a);b.source="google";b.id=h;EcIdentityManager.addContactQuietly(b);c()},d)},function(a){c(null)})})};a.hookIdentityManagerIdentities=function(a){var b=this;EcIdentityManager.onIdentityChanged=function(c){b.writeIdentityFile(a,c,null)}};a.hookIdentityManagerContacts=function(a){var b=this;EcIdentityManager.onContactChanged=function(c){b.writeContactFile(a,c)}};a.commit=function(a,c){var b=this,h={};h.network=this.network; +hello.getAuthResponse(this.server)?hello.api(b.network+"/me/folders","get",h).then(function(c){c=c.data;for(var d=0;db.usernameSalt.length?c("Insufficient length on Username Salt"):(b.usernameIterations=stjs.trunc(d.usernameIterations),1E3>b.usernameIterations?c("Insufficient iterations on Username Hash"): (b.usernameWidth=stjs.trunc(d.usernameLength),64!=b.usernameWidth?c("Username Hash required to be length 64."):(b.passwordSalt=d.passwordSalt,16>b.passwordSalt.length?c("Insufficient length on Password Salt"):(b.passwordIterations=stjs.trunc(d.passwordIterations),1E3>b.passwordIterations?c("Insufficient iterations on Password Hash"):(b.passwordWidth=stjs.trunc(d.passwordLength),64!=b.passwordWidth?c("Password Hash required to be length 64."):(b.secretSalt=d.secretSalt,16>b.secretSalt.length?c("Insufficient length on Secret Salt"): (b.secretIterations=stjs.trunc(d.secretIterations),1E3>b.secretIterations?c("Insufficient iterations on Secret Hash"):(b.configured=!0,null!=a&&a(d)))))))))},function(a){b.configured=!1;null!=c?c(a):console.error(a)})};a.clear=function(){this.token=this.pad=this.secretWithSalt=this.passwordWithSalt=this.usernameWithSalt=null};a.setDefaultIdentityManagementServer=function(a){this.server=a};a.startLogin=function(a,c){if(!this.configured)throw new RuntimeException("Remote Identity not configured."); this.usernameWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.usernameSalt,this.usernameIterations,this.usernameWidth));this.passwordWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(c,this.passwordSalt,this.passwordIterations,this.passwordWidth));var b=[];b.push(a,c);a=this.splicePasswords(b);this.secretWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.secretSalt,this.secretIterations,32))};a.changePassword=function(a,c,d){var b=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.usernameSalt, this.usernameIterations,this.usernameWidth));if(this.usernameWithSalt!=b)throw new RuntimeException("Username does not match. Aborting password change.");c=forge.util.encode64(forge.pkcs5.pbkdf2(c,this.passwordSalt,this.passwordIterations,this.passwordWidth));if(this.passwordWithSalt!=c)throw new RuntimeException("Old password does not match. Aborting password change.");this.passwordWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(d,this.passwordSalt,this.passwordIterations,this.passwordWidth));c= -[];c.push(a,d);a=this.splicePasswords(c);this.secretWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.secretSalt,this.secretIterations,32));return!0};a.fetch=function(a,c){if(this.configured)if(null==this.usernameWithSalt||null==this.passwordWithSalt||null==this.secretWithSalt)c("Please log in before performing this operation.");else{var b=new EbacCredentialRequest;b.username=this.usernameWithSalt;b.password=this.passwordWithSalt;var g=new FormData;g.append("credentialRequest",b.toJson());var k= -this;EcRemote.postExpectingObject(this.server,"sky/id/login",g,function(b){k.pad=b.pad;k.token=b.token;if(null!=b.credentials)for(var c=0;c=a[k].length||(b+=a[k].charAt(d),g=!0);if(!g)break}return b}},{},{}),EcEncryptedValue=function(){EbacEncryptedValue.call(this)},EcEncryptedValue=stjs.extend(EcEncryptedValue,EbacEncryptedValue, -[],function(h,a){h.encryptOnSaveMap=null;h.revive=function(a){if(null==a)return null;var b=new EcEncryptedValue;b.copyFrom(a);return b};h.toEncryptedValue=function(a,c){a.updateTimestamp();var b=new EcEncryptedValue;null!=c&&c||(b.encryptedType=a.type);c=EcAes.newIv(16);var g=EcAes.newIv(16),k=a["skos:prefLabel"],e=a["dcterms:title"];b.payload=EcAesCtr.encrypt(a.toJson(),g,c);b.owner=a.owner;b.reader=a.reader;b.id=a.id;null!=a.name&&(b.name=a.name);if(null!=a.owner)for(var h=0;h=a[k].length||(b+=a[k].charAt(d),h=!0);if(!h)break}return b}},{},{}),EcEncryptedValue=function(){EbacEncryptedValue.call(this)},EcEncryptedValue=stjs.extend(EcEncryptedValue,EbacEncryptedValue, +[],function(g,a){g.encryptOnSaveMap=null;g.revive=function(a){if(null==a)return null;var b=new EcEncryptedValue;b.copyFrom(a);return b};g.toEncryptedValue=function(a,c){a.updateTimestamp();var b=new EcEncryptedValue;null!=c&&c||(b.encryptedType=a.type);c=EcAes.newIv(16);var h=EcAes.newIv(16),k=a["skos:prefLabel"],e=a["dcterms:title"];b.payload=EcAesCtr.encrypt(a.toJson(),h,c);b.owner=a.owner;b.reader=a.reader;b.id=a.id;null!=a.name&&(b.name=a.name);if(null!=a.owner)for(var g=0;gc||g!=c)try{b=this.tryDecryptSecretByKeyAndIndex(a,g)}catch(k){}if(null!=b)return b}}return null};a.decryptSecretAsync=function(a,c){var b=[],g=[];if(null!=this.owner)for(var k=0;kc||c>=this.secret.length?this.decryptSecretsByKeyAsync(a,d,g):EcRsaOaepAsync.decrypt(a,this.secret[c],function(c){EcLinkedData.isProbablyJson(c)?d(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(c))):b.decryptSecretsByKeyAsync(a,d,g)},function(c){b.decryptSecretsByKeyAsync(a, -d,g)}):g("Secret field is empty.")};a.decryptSecretsByKeyAsync=function(a,c,d){var b=new EcAsyncHelper;b.each(this.secret,function(d,e){EcRsaOaepAsync.decrypt(a,d,function(a){-1!=b.counter&&(EcLinkedData.isProbablyJson(a)?(b.stop(),c(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(a)))):e())},function(a){e()})},function(a){d("Could not find decryption key.")})};a.isAnEncrypted=function(a){if(null==this.encryptedType)return!1;var b=a.split("/");return this.encryptedType==a||this.encryptedType== +d&&c("Could not decrypt data.");EcLinkedData.isProbablyJson(d)||c("Could not decrypt data.");var h=new EcRemoteLinkedData("","");h.copyFrom(JSON.parse(d));EcEncryptedValue.encryptOnSave(h.id,!0);h.id=b;a(h.deAtify())},c)};a.decryptIntoObjectUsingIvAndSecretAsync=function(a,c,d,h){this.decryptIntoStringUsingIvAndSecretAsync(a,c,function(a){null==a&&h("Could not decrypt data.");EcLinkedData.isProbablyJson(a)||h("Could not decrypt data.");var b=new EcRemoteLinkedData("","");b.copyFrom(JSON.parse(a)); +EcEncryptedValue.encryptOnSave(b.id,!0);d(b.deAtify())},h)};a.decryptIntoString=function(){var a=this.decryptSecret();return null!=a?EcAesCtr.decrypt(this.payload,a.secret,a.iv):null};a.decryptIntoStringUsingSecret=function(a){return null!=a?EcAesCtr.decrypt(this.payload,a.secret,a.iv):null};a.decryptIntoStringAsync=function(a,c){var b=this;this.decryptSecretAsync(function(d){null!=d&&(b.context!=Ebac.context_0_2&&b.context!=Ebac.context_0_3||32!=base64.decode(d.iv).byteLength||(d.iv=base64.encode(base64.decode(d.iv).slice(0, +16))),EcAesCtrAsync.decrypt(b.payload,d.secret,d.iv,a,c))},c)};a.decryptIntoStringUsingSecretAsync=function(a,c,d){null!=a&&(this.context!=Ebac.context_0_2&&this.context!=Ebac.context_0_3||32!=base64.decode(a.iv).byteLength||(a.iv=base64.encode(base64.decode(a.iv).slice(0,16))),EcAesCtrAsync.decrypt(this.payload,a.secret,a.iv,c,d))};a.decryptIntoStringUsingIvAndSecretAsync=function(a,c,d,h){this.context!=Ebac.context_0_2&&this.context!=Ebac.context_0_3||32!=base64.decode(a).byteLength||(a=base64.encode(base64.decode(a).slice(0, +16)));EcAesCtrAsync.decrypt(this.payload,c,a,d,h)};a.decryptSecret=function(){var a=0;if(null!=this.owner)for(var c=0;cc||h!=c)try{b=this.tryDecryptSecretByKeyAndIndex(a,h)}catch(k){}if(null!=b)return b}}return null};a.decryptSecretAsync=function(a,c){var b=[],h=[];if(null!=this.owner)for(var k=0;kc||c>=this.secret.length?this.decryptSecretsByKeyAsync(a,d,h):EcRsaOaepAsync.decrypt(a,this.secret[c],function(c){EcLinkedData.isProbablyJson(c)?d(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(c))):b.decryptSecretsByKeyAsync(a,d,h)},function(c){b.decryptSecretsByKeyAsync(a, +d,h)}):h("Secret field is empty.")};a.decryptSecretsByKeyAsync=function(a,c,d){var b=new EcAsyncHelper;b.each(this.secret,function(d,e){EcRsaOaepAsync.decrypt(a,d,function(a){-1!=b.counter&&(EcLinkedData.isProbablyJson(a)?(b.stop(),c(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(a)))):e())},function(a){e()})},function(a){d("Could not find decryption key.")})};a.isAnEncrypted=function(a){if(null==this.encryptedType)return!1;var b=a.split("/");return this.encryptedType==a||this.encryptedType== b[b.length-1]};a.addReader=function(a){this.addReaderBasic(a);var b=this.decryptSecret();null==b?console.error("Cannot add a Reader if you don't know the secret"):EcArray.setAdd(this.secret,EcRsaOaep.encrypt(a,b.toEncryptableJson()))};a.addReaderBasic=function(a){a=a.toPem();null==this.reader&&(this.reader=[]);EcArray.has(this.reader,a)||null!=this.owner&&EcArray.has(this.owner,a)||EcArray.setAdd(this.reader,a)};a.removeReader=function(a){var b=this.decryptSecret();a=a.toPem();null!=this.reader&& -EcArray.setRemove(this.reader,a);if(null==b)console.error("Cannot remove a Reader if you don't know the secret");else{this.secret=[];if(null!=this.owner)for(a=0;a(new Date).getTime()){setTimeout(function(){EcRepository.get(b,c,d)},100);return}EcRepository.fetching[a]=(new Date).getTime()+6E4}}if(!EcRepository.shouldTryUrl(a))if(1==EcRepository.repos.length)a=EcRemoteLinkedData.veryShortId(EcRepository.repos[0].selectedServer, -EcCrypto.md5(a));else{EcRepository.find(a,"Could not locate object. May be due to EcRepository.alwaysTryUrl flag.",{},0,c,d);return}var k=new FormData,e=a;EcRepository.unsigned?EcRemote.getExpectingObject(e,null,function(a){EcRepository.getHandleData(a,b,c,d,e)},function(a){EcRepository.find(b,a,{},0,c,d)}):EcIdentityManager.signatureSheetAsync(6E4,a,function(a){null!=EcRepository.cache[b]?(delete EcRepository.fetching[b],c(EcRepository.cache[b])):(k.append("signatureSheet",a),EcRemote.postExpectingObject(e, -null,k,function(a){EcRepository.getHandleData(a,b,c,d,e)},function(a){EcRepository.find(b,a,{},0,c,d)}))},d)}}};h.getHandleData=function(a,c,d,g,k){delete EcRepository.fetching[c];var b=new EcRemoteLinkedData("","");b.copyFrom(a);null==b.getFullType()?EcRepository.find(c,JSON.stringify(a),{},0,d,g):(EcRepository.caching&&(EcRepository.cache[k]=b,null!=b.id&&(EcRepository.cache[b.id]=b)),d(b))};h.shouldTryUrl=function(a){if(null==a)return!1;if(EcRepository.alwaysTryUrl||0==EcRepository.repos.length|| --1!=a.indexOf("/api/")||-1!=a.indexOf("/data/"))return!0;a=!1;for(var b=0;bEcRepository.repos.length||null==EcRepository.repos[g])delete EcRepository.fetching[a],null!=e&&e(c);else{var b=EcRepository.repos[g];null==b.selectedServer?EcRepository.find(a,c,d,g+1,k,e):1==d[b.selectedServer]?EcRepository.find(a,c,d,g+1,k,e):(d[b.selectedServer]=!0,b.search('@id:"'+ -a+'"',null,function(g){if(null!=g&&0!=g.length){for(var f=!1,h=0;hEcRepository.repos.length||null==EcRepository.repos[g])return delete EcRepository.fetching[a], -null;var b=EcRepository.repos[g];1==d[b.selectedServer]&&EcRepository.findBlocking(a,c,d,g+1);d[b.selectedServer]=!0;b=b.searchBlocking('@id:"'+a+'"');if(null!=b&&0!=b.length)for(var e=0;e(new Date).getTime()){setTimeout(function(){m.searchWithParams(a, -c,d,g,k)},100);return}EcRepository.fetching[f]=(new Date).getTime()+6E4}}else f=null;var p=new FormData;p.append("data",b);null!=n&&p.append("searchParams",JSON.stringify(n));m=this;1==EcRepository.unsigned||1==h.unsigned?(p.append("signatureSheet","[]"),EcRemote.postExpectingObject(m.selectedServer,"sky/repo/search",p,function(a){EcRepository.cachingSearch&&(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];m.handleSearchResults(a,d,g,k)},function(a){null!=f&&delete EcRepository.fetching[f]; -null!=k&&k(a)})):EcIdentityManager.signatureSheetAsync(6E4+this.timeOffset,this.selectedServer,function(a){p.append("signatureSheet",a);EcRemote.postExpectingObject(m.selectedServer,"sky/repo/search",p,function(a){EcRepository.cachingSearch&&(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];m.handleSearchResults(a,d,g,k)},function(a){null!=f&&delete EcRepository.fetching[f];null!=k&&k(a)})},k)}};a.searchWithParamsBlocking=function(a,c){var b;null==c&&(c={});var g={};b=this.searchParamProps(a, -c,g);null!=c.fields&&(g.fields=c.fields);a=EcRemote.async;EcRemote.async=!1;var k;k=JSON.stringify(g)+b;if(EcRepository.cachingSearch&&null!=EcRepository.cache[k])return this.handleSearchResults(EcRepository.cache[k],null,null,null);var e=new FormData;e.append("data",b);null!=g&&e.append("searchParams",JSON.stringify(g));1==EcRepository.unsigned||1==c.unsigned?(e.append("signatureSheet","[]"),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[k]=a; -null!=k&&delete EcRepository.fetching[k]},function(a){null!=k&&delete EcRepository.fetching[k];EcRepository.cache[k]=null})):(c=EcIdentityManager.signatureSheet(6E4+this.timeOffset,this.selectedServer),e.append("signatureSheet",c),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[k]=a;null!=k&&delete EcRepository.fetching[k]},function(a){null!=k&&delete EcRepository.fetching[k];EcRepository.cache[k]=null}));c=this.handleSearchResults(EcRepository.cache[k], -null,null,null);EcRepository.cachingSearch||delete EcRepository.cache[k];EcRemote.async=a;return c};a.searchParamProps=function(a,c,d){null!=c.start&&(d.start=c.start);null!=c.size&&(d.size=c.size);null!=c.types&&(d.types=c.types);null!=c.sort&&(d.sort=c.sort);null!=c.track_scores&&(d.track_scores=c.track_scores);if(null!=c.ownership)if(c=c.ownership,a.startsWith("(")&&a.endsWith(")")||(a="("+a+")"),"public"==c)a+=" AND (_missing_:@owner)";else if("owned"==c)a+=" AND (_exists_:@owner)";else if("me"== -c){a+=" AND (";for(c=0;c=this.relation.length&&null!=d?d(""):EcAlignment.get(this.relation[c],function(k){null!=k&&k.source==b||k.target==b||k.source==a||k.target==a?(e.relation.splice(c,1),e.removeRelationshipsThatInclude(a,c,d,g)):e.removeRelationshipsThatInclude(a,c+1,d,g)},function(b){e.removeRelationshipsThatInclude(a,c+1,d,g)})};a.removeLevelsThatInclude=function(a,c,d,g){var b=EcRemoteLinkedData.trimVersionFromUrl(a), -e=this;c>=this.level.length&&null!=d?d(""):EcLevel.get(this.level[c],function(k){k.competency==b||k.competency==a?(e.level.splice(c,1),e.removeLevelsThatInclude(a,c,d,g)):e.removeLevelsThatInclude(a,c+1,d,g)},function(b){e.removeLevelsThatInclude(a,c+1,d,g)})};a.addRelation=function(a){a=EcRemoteLinkedData.trimVersionFromUrl(a);null==this.relation&&(this.relation=[]);for(var b=0;bg)u("Name Index not Set");else{var b=[];Papa.parse(a,{encoding:"UTF-8",complete:function(a){a=a.data;for(var l= -a[0],v=1;vg?f("Source Index not Set"):null==k||0>k?f("Relation Type Index not Set"):null==e||0>e?f("Destination Index not Set"):Papa.parse(d,{encoding:"UTF-8",complete:function(d){d=d.data;for(var l=1;la?1:0=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS);a>=PapCompetencyNetwork.HIGH_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.HIGH_CONFLICT_CLASS);return b};a.getDependencies=function(){return this.dependencies};a.setDependencies=function(a){this.dependencies= -a};a.getActivations=function(){return this.activations};a.setActivations=function(a){this.activations=a};a.getAlphas=function(){return this.alphas};a.setAlphas=function(a){this.alphas=a};a.getBetas=function(){return this.betas};a.setBetas=function(a){this.betas=a};a.getUpdated=function(){return this.updated};a.setUpdated=function(a){this.updated=a};a.getNumberNodes=function(){return this.numberNodes};a.setNumberNodes=function(a){this.numberNodes=a}},{dependencies:{name:"Map",arguments:[null,{name:"Map", -arguments:[null,{name:"Array",arguments:["PapDependency"]}]}]},activations:{name:"Array",arguments:[null]},alphas:{name:"Array",arguments:[null]},betas:{name:"Array",arguments:[null]},updated:{name:"Array",arguments:[null]}},{}),PapAssertion=function(h,a,b,c,d){this.confidence=h;this.assertionDate=b;this.expirationDate=c;this.result=d;this.competencyIndex=a},PapAssertion=stjs.extend(PapAssertion,null,[],function(h,a){a.confidence=null;a.competencyIndex=null;a.assertionDate=null;a.expirationDate=null; -a.result=!1;a.getConfidence=function(){return this.confidence};a.setConfidence=function(a){this.confidence=a};a.getCompetencyIndex=function(){return this.competencyIndex};a.setCompetencyIndex=function(a){this.competencyIndex=a};a.getAssertionDate=function(){return this.assertionDate};a.setAssertionDate=function(a){this.assertionDate=a};a.getExpirationDate=function(){return this.expirationDate};a.setExpirationDate=function(a){this.expirationDate=a};a.getResult=function(){return this.result};a.setResult= -function(a){this.result=a}},{},{}),RollupRuleInterface=function(h,a){h=new antlr4.InputStream(h);h=new RollupLexer.RollupLexer(h);h=new antlr4.CommonTokenStream(h);this.parser=new RollupParser.RollupParser(h);this.parser.buildParseTrees=!0;this.listener=new RollupListener.RollupListener;this.processor=a;var b=this;this.listener.enterS=function(a){b.processor.enterS(a)};this.listener.exitS=function(a){b.processor.exitS(a);b.success(!0)};this.listener.exitToken=function(a){b.processor.exitToken(a)}; -this.listener.enterQuery=function(a){b.processor.enterQuery(a)};this.listener.exitQuery=function(a){b.processor.exitQuery(a)};this.listener.exitInnerquery=function(a){b.processor.exitInnerquery(a)};this.listener.exitLogical_or_math_operator=function(a){b.processor.exitLogical_or_math_operator(a)};this.parser.addParseListener(this.listener)},RollupRuleInterface=stjs.extend(RollupRuleInterface,null,[],function(h,a){a.logFunction=null;a.success=null;a.failure=null;a.listener=null;a.parser=null;a.processor= -null;a.go=function(){this.processor.logFunction=this.logFunction;this.processor.success=this.success;this.processor.failure=this.failure;this.parser.s()}},{logFunction:{name:"Callback1",arguments:["Object"]},success:{name:"Callback1",arguments:[null]},failure:{name:"Callback1",arguments:[null]},listener:"RollupListener.RollupListener",parser:"RollupParser.RollupParser",processor:"RollupRuleProcessor"},{}),RollupRulePacketGenerator=function(h,a){this.ip=h;this.ep=a;this.queries=[];this.queryOperations= -[]},RollupRulePacketGenerator=stjs.extend(RollupRulePacketGenerator,null,[],function(h,a){a.queries=null;a.queryOperations=null;a.ip=null;a.ep=null;h.main=function(a){};a.addQuery=function(a){this.queries.push(a)};a.addQueryOperation=function(a){this.queryOperations.push(a)};a.hasOrOperation=function(){for(var a=0;a=this.queryOperations.length)){var b=this.generateComboAndPacket(),d;RollupRulePacketGenerator.OperationType.OR.equals(this.queryOperations[0])?a.subPackets.push(this.generateRollupRulePacket(this.queries[0])):b.subPackets.push(this.generateRollupRulePacket(this.queries[0]));d=this.queryOperations[0];for(var g=1;gEcRepository.repos.length||null==EcRepository.repos[h])delete EcRepository.fetching[a], +null!=e&&e(c);else{var b=EcRepository.repos[h];null==b.selectedServer?EcRepository.find(a,c,d,h+1,k,e):1==d[b.selectedServer]?EcRepository.find(a,c,d,h+1,k,e):(d[b.selectedServer]=!0,b.search('@id:"'+a+'"',null,function(h){if(null!=h&&0!=h.length){for(var f=!1,g=0;gEcRepository.repos.length||null==EcRepository.repos[h])return delete EcRepository.fetching[a],null;var b=EcRepository.repos[h];1==d[b.selectedServer]&&EcRepository.findBlocking(a,c,d,h+1);d[b.selectedServer]=!0;b=b.searchBlocking('@id:"'+a+'"');if(null!=b&&0!=b.length)for(var e=0;e(new Date).getTime()){setTimeout(function(){m.searchWithParams(a,c,d,h,k)},100);return}EcRepository.fetching[f]=(new Date).getTime()+6E4}}else f=null;var p=new FormData;p.append("data",b);null!=n&&p.append("searchParams",JSON.stringify(n));m=this;1==EcRepository.unsigned||1==g.unsigned?(p.append("signatureSheet","[]"),EcRemote.postExpectingObject(m.selectedServer,"sky/repo/search",p,function(a){EcRepository.cachingSearch&& +(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];m.handleSearchResults(a,d,h,k)},function(a){null!=f&&delete EcRepository.fetching[f];null!=k&&k(a)})):EcIdentityManager.signatureSheetAsync(6E4+this.timeOffset,this.selectedServer,function(a){p.append("signatureSheet",a);EcRemote.postExpectingObject(m.selectedServer,"sky/repo/search",p,function(a){EcRepository.cachingSearch&&(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];m.handleSearchResults(a,d,h,k)},function(a){null!= +f&&delete EcRepository.fetching[f];null!=k&&k(a)})},k)}};a.searchWithParamsBlocking=function(a,c){var b;null==c&&(c={});var h={};b=this.searchParamProps(a,c,h);null!=c.fields&&(h.fields=c.fields);a=EcRemote.async;EcRemote.async=!1;var k;k=JSON.stringify(h)+b;if(EcRepository.cachingSearch&&null!=EcRepository.cache[k])return this.handleSearchResults(EcRepository.cache[k],null,null,null);var e=new FormData;e.append("data",b);null!=h&&e.append("searchParams",JSON.stringify(h));1==EcRepository.unsigned|| +1==c.unsigned?(e.append("signatureSheet","[]"),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[k]=a;null!=k&&delete EcRepository.fetching[k]},function(a){null!=k&&delete EcRepository.fetching[k];EcRepository.cache[k]=null})):(c=EcIdentityManager.signatureSheet(6E4+this.timeOffset,this.selectedServer),e.append("signatureSheet",c),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[k]=a;null!=k&&delete EcRepository.fetching[k]}, +function(a){null!=k&&delete EcRepository.fetching[k];EcRepository.cache[k]=null}));c=this.handleSearchResults(EcRepository.cache[k],null,null,null);EcRepository.cachingSearch||delete EcRepository.cache[k];EcRemote.async=a;return c};a.searchParamProps=function(a,c,d){null!=c.start&&(d.start=c.start);null!=c.size&&(d.size=c.size);null!=c.types&&(d.types=c.types);null!=c.sort&&(d.sort=c.sort);null!=c.track_scores&&(d.track_scores=c.track_scores);if(null!=c.ownership)if(c=c.ownership,a.startsWith("(")&& +a.endsWith(")")||(a="("+a+")"),"public"==c)a+=" AND (_missing_:@owner)";else if("owned"==c)a+=" AND (_exists_:@owner)";else if("me"==c){a+=" AND (";for(c=0;c=this.relation.length&&null!=d?d(""):EcAlignment.get(this.relation[c],function(k){null!=k&&k.source==b||k.target==b||k.source==a||k.target==a?(e.relation.splice(c, +1),e.removeRelationshipsThatInclude(a,c,d,h)):e.removeRelationshipsThatInclude(a,c+1,d,h)},function(b){e.removeRelationshipsThatInclude(a,c+1,d,h)})};a.removeLevelsThatInclude=function(a,c,d,h){var b=EcRemoteLinkedData.trimVersionFromUrl(a),e=this;c>=this.level.length&&null!=d?d(""):EcLevel.get(this.level[c],function(k){k.competency==b||k.competency==a?(e.level.splice(c,1),e.removeLevelsThatInclude(a,c,d,h)):e.removeLevelsThatInclude(a,c+1,d,h)},function(b){e.removeLevelsThatInclude(a,c+1,d,h)})}; +a.addRelation=function(a){a=EcRemoteLinkedData.trimVersionFromUrl(a);null==this.relation&&(this.relation=[]);for(var b=0;bh)u("Name Index not Set");else{var b=[];Papa.parse(a,{encoding:"UTF-8",complete:function(a){a=a.data;for(var l=a[0],v=1;vh?f("Source Index not Set"):null==k||0>k?f("Relation Type Index not Set"):null==e||0>e?f("Destination Index not Set"):Papa.parse(d,{encoding:"UTF-8",complete:function(d){d=d.data;for(var l=1;la?1:0=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS); +a>=PapCompetencyNetwork.HIGH_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.HIGH_CONFLICT_CLASS);return b};a.getDependencies=function(){return this.dependencies};a.setDependencies=function(a){this.dependencies=a};a.getActivations=function(){return this.activations};a.setActivations=function(a){this.activations=a};a.getAlphas=function(){return this.alphas};a.setAlphas=function(a){this.alphas=a};a.getBetas=function(){return this.betas};a.setBetas=function(a){this.betas=a};a.getUpdated=function(){return this.updated}; +a.setUpdated=function(a){this.updated=a};a.getNumberNodes=function(){return this.numberNodes};a.setNumberNodes=function(a){this.numberNodes=a}},{dependencies:{name:"Map",arguments:[null,{name:"Map",arguments:[null,{name:"Array",arguments:["PapDependency"]}]}]},activations:{name:"Array",arguments:[null]},alphas:{name:"Array",arguments:[null]},betas:{name:"Array",arguments:[null]},updated:{name:"Array",arguments:[null]}},{}),PapAssertion=function(g,a,b,c,d){this.confidence=g;this.assertionDate=b;this.expirationDate= +c;this.result=d;this.competencyIndex=a},PapAssertion=stjs.extend(PapAssertion,null,[],function(g,a){a.confidence=null;a.competencyIndex=null;a.assertionDate=null;a.expirationDate=null;a.result=!1;a.getConfidence=function(){return this.confidence};a.setConfidence=function(a){this.confidence=a};a.getCompetencyIndex=function(){return this.competencyIndex};a.setCompetencyIndex=function(a){this.competencyIndex=a};a.getAssertionDate=function(){return this.assertionDate};a.setAssertionDate=function(a){this.assertionDate= +a};a.getExpirationDate=function(){return this.expirationDate};a.setExpirationDate=function(a){this.expirationDate=a};a.getResult=function(){return this.result};a.setResult=function(a){this.result=a}},{},{}),RollupRuleInterface=function(g,a){g=new antlr4.InputStream(g);g=new RollupLexer.RollupLexer(g);g=new antlr4.CommonTokenStream(g);this.parser=new RollupParser.RollupParser(g);this.parser.buildParseTrees=!0;this.listener=new RollupListener.RollupListener;this.processor=a;var b=this;this.listener.enterS= +function(a){b.processor.enterS(a)};this.listener.exitS=function(a){b.processor.exitS(a);b.success(!0)};this.listener.exitToken=function(a){b.processor.exitToken(a)};this.listener.enterQuery=function(a){b.processor.enterQuery(a)};this.listener.exitQuery=function(a){b.processor.exitQuery(a)};this.listener.exitInnerquery=function(a){b.processor.exitInnerquery(a)};this.listener.exitLogical_or_math_operator=function(a){b.processor.exitLogical_or_math_operator(a)};this.parser.addParseListener(this.listener)}, +RollupRuleInterface=stjs.extend(RollupRuleInterface,null,[],function(g,a){a.logFunction=null;a.success=null;a.failure=null;a.listener=null;a.parser=null;a.processor=null;a.go=function(){this.processor.logFunction=this.logFunction;this.processor.success=this.success;this.processor.failure=this.failure;this.parser.s()}},{logFunction:{name:"Callback1",arguments:["Object"]},success:{name:"Callback1",arguments:[null]},failure:{name:"Callback1",arguments:[null]},listener:"RollupListener.RollupListener", +parser:"RollupParser.RollupParser",processor:"RollupRuleProcessor"},{}),RollupRulePacketGenerator=function(g,a){this.ip=g;this.ep=a;this.queries=[];this.queryOperations=[]},RollupRulePacketGenerator=stjs.extend(RollupRulePacketGenerator,null,[],function(g,a){a.queries=null;a.queryOperations=null;a.ip=null;a.ep=null;g.main=function(a){};a.addQuery=function(a){this.queries.push(a)};a.addQueryOperation=function(a){this.queryOperations.push(a)};a.hasOrOperation=function(){for(var a=0;a=this.queryOperations.length)){var b=this.generateComboAndPacket(),d;RollupRulePacketGenerator.OperationType.OR.equals(this.queryOperations[0])?a.subPackets.push(this.generateRollupRulePacket(this.queries[0])):b.subPackets.push(this.generateRollupRulePacket(this.queries[0])); +d=this.queryOperations[0];for(var h=1;h=this.numberOfRelationsToProcess&&this.finishRelationProcessing()};a.processFindCompetencyRelationshipSuccess=function(a,c){c.numberOfQueriesRunning--;var b=null;if(c.hasId(a.source)&&c.hasId(a.target))this.numberOfRelationsProcessed++, -this.checkForFinish();else{if(c.hasId(a.source))b=a.target;else if(c.hasId(a.target))b=a.source;else{this.numberOfRelationsProcessed++;this.checkForFinish();return}this.log("Relationship found ("+a.relationType+") source: "+a.source+" target: "+a.target);c.numberOfQueriesRunning++;var g=this;c.context.isId(a.source)||c.context.isId(a.target)?(this.numberOfRelationsProcessed++,c.numberOfQueriesRunning--,this.checkForFinish()):EcCompetency.get(b,function(b){g.processGetRelatedCompetencySuccess(b,a)}, -function(a){g.processEventFailure(a,c)})}};a.go=function(){if(null==this.ip.getContext().relation)this.success();else for(var a=this.numberOfRelationsToProcess=0;a=this.numberOfRelationsToProcess&&this.finishRelationProcessing()};a.processFindCompetencyRelationshipSuccess=function(a,c){c.numberOfQueriesRunning--;var b=null;if(c.hasId(a.source)&&c.hasId(a.target))this.numberOfRelationsProcessed++, +this.checkForFinish();else{if(c.hasId(a.source))b=a.target;else if(c.hasId(a.target))b=a.source;else{this.numberOfRelationsProcessed++;this.checkForFinish();return}this.log("Relationship found ("+a.relationType+") source: "+a.source+" target: "+a.target);c.numberOfQueriesRunning++;var h=this;c.context.isId(a.source)||c.context.isId(a.target)?(this.numberOfRelationsProcessed++,c.numberOfQueriesRunning--,this.checkForFinish()):EcCompetency.get(b,function(b){h.processGetRelatedCompetencySuccess(b,a)}, +function(a){h.processEventFailure(a,c)})}};a.go=function(){if(null==this.ip.getContext().relation)this.success();else for(var a=this.numberOfRelationsToProcess=0;a=this.assertionsToFillIn&&(this.addAssertionsToGraph(),this.returnGraph())};a.fetchAssertionDetailsNegativeStatus=function(a,c){var b=this;a.getNegativeAsync(function(a){null!=a&&a?c.setNegative(!0):c.setNegative(!1);b.assertionMap[c.getId()]= @@ -3721,64 +3729,64 @@ c;b.assertionsFilledIn++;b.checkAssertionDetailsFetched()},function(a){c.setNega a))})};a.fetchAssertionDetailsAssertionDate=function(a,c){var b=this;a.getAssertionDateAsync(function(d){null==d||d>stjs.trunc((new Date).getTime())?(b.assertionsFilledIn++,b.checkAssertionDetailsFetched()):(c.setAssertionDate(d),b.fetchAssertionDetailsExpirationDate(a,c))},function(a){b.failure(new ExceptionReturn("Failed fetchAssertionDetailsAssertionDate: "+a))})};a.isASubject=function(a){if(null==this.subjects||0==this.subjects.length)return!0;for(var b,d=0;d=this.repositoriesToQuery&&this.fillInAssertions()};a.addAssertionsToList=function(a){for(var b=0;b=this.relationshipsToProcess&&this.assembleGraphComponents()};a.addRelationshipToList=function(a){this.frameworkRelationList.push(a);this.relationshipsProcessed++};a.fetchFrameworkRelations=function(a){this.relationshipsToProcess=a.relation.length;this.relationshipsProcessed=0;var b=this;if(0==this.relationshipsToProcess)this.competencyGraph.addNode(this.rootCompetencyId),this.success(this.competencyGraph);else for(var d= 0;d=this.subjectPem.length)this.addAssertions(this.inputGraph.getNegativeAssertions()),this.addAssertions(this.inputGraph.getPositiveAssertions());else{for(var a,c=[],d=0;d=this.subjectPem.length)this.addAssertions(this.inputGraph.getNegativeAssertions()),this.addAssertions(this.inputGraph.getPositiveAssertions());else{for(var a,c=[],d=0;dc?PredictiveAssertionProcessor.ABRUBT_EXP_RETENTION:this.settings.getGradualForgetting()?(a=this.getTimeFactor(a,c),Math.exp(-a)):PredictiveAssertionProcessor.DEFAULT_RETENTION};a.addAssertionsToUpdateQueue=function(a){for(var b, -d,g,h=0;hthis.priorityQueueThreshold&&a.push(new PapUpdate(d.getCompetencyIndex(),g,d.getResult()))}};a.processNecessaryNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.NECESSARY_TYPE][String.valueOf(a.getIndex())]; -if(null!=b){var g=PredictiveAssertionProcessor.DEFAULT_PROB_LEARN_UNMET_REQS;0this.priorityQueueThreshold&&c.push(a.updateChild(h.getChildIndex(), -l)))}};a.processSufficientNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.SUFFICIENT_TYPE][String.valueOf(a.getIndex())];if(null!=b){var g=PredictiveAssertionProcessor.DEFAULT_PROB_INSUFF;0this.priorityQueueThreshold&&c.push(a.updateChild(h.getChildIndex(),l)))}};a.processEquivalenceNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.EQUIVALENCE_TYPE][String.valueOf(a.getIndex())];if(null!=b)for(var g,h,e=0;ethis.priorityQueueThreshold&& -c.push(a.updateChild(g.getChildIndex(),h)))};a.processBroadensNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.BROADENS_TYPE][String.valueOf(a.getIndex())];if(null!=b)for(var g,h,e=0;ethis.priorityQueueThreshold&&c.push(a.updateChild(g.getChildIndex(),h)))};a.predictCompetence=function(){this.competencyNetwork=new PapCompetencyNetwork(this.dependencies, +d,h,g=0;gthis.priorityQueueThreshold&&a.push(new PapUpdate(d.getCompetencyIndex(),h,d.getResult()))}};a.processNecessaryNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.NECESSARY_TYPE][String.valueOf(a.getIndex())]; +if(null!=b){var h=PredictiveAssertionProcessor.DEFAULT_PROB_LEARN_UNMET_REQS;0this.priorityQueueThreshold&&c.push(a.updateChild(g.getChildIndex(), +l)))}};a.processSufficientNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.SUFFICIENT_TYPE][String.valueOf(a.getIndex())];if(null!=b){var h=PredictiveAssertionProcessor.DEFAULT_PROB_INSUFF;0this.priorityQueueThreshold&&c.push(a.updateChild(g.getChildIndex(),l)))}};a.processEquivalenceNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.EQUIVALENCE_TYPE][String.valueOf(a.getIndex())];if(null!=b)for(var h,g,e=0;ethis.priorityQueueThreshold&& +c.push(a.updateChild(h.getChildIndex(),g)))};a.processBroadensNetworkDependencies=function(a,c){var b=this.competencyNetwork.getDependencies()[PapDependency.BROADENS_TYPE][String.valueOf(a.getIndex())];if(null!=b)for(var h,g,e=0;ethis.priorityQueueThreshold&&c.push(a.updateChild(h.getChildIndex(),g)))};a.predictCompetence=function(){this.competencyNetwork=new PapCompetencyNetwork(this.dependencies, this.inputGraph.getNodes().length,this.settings);for(var a,c,d=0;d=this.frameworksToProcess&&(this.debugMessage("All profile assertion framework graphs processed"), this.successCallback())};a.processFrameworkGraphAssertions=function(a,c){this.debugMessage("("+Date.now()+") Processing framework graph assertions for:");this.debugMessage(c.shortId());this.debugMessage(c.getName());var b=this;a.processAssertionsBoolean(this.profileAssertions,function(){b.frameworksProcessed++;b.assertedFrameworkGraphs.push(a);b.checkAllFrameworkGraphAssertionsHaveProcessed()},function(a){b.handleFailedFrameworkGraphOperation("Process Graph: "+a)})};a.handleFailedFrameworkGraphOperation= function(a){this.debugMessage("handleFailedFrameworkGraphOperation: "+a);this.frameworksProcessed++;this.checkAllFrameworkGraphAssertionsHaveProcessed()};a.buildProfileAssertionFrameworkGraph=function(a){this.debugMessage("("+Date.now()+") Generating framework graph for:");this.debugMessage(a.shortId());this.debugMessage(a.getName());var b=this,d=new EcFrameworkGraph;d.addFramework(a,this.repo,function(){b.processFrameworkGraphAssertions(d,a)},function(a){b.handleFailedFrameworkGraphOperation("Build Graph: "+ a)})};a.generateProfileAssertionFrameworkGraphs=function(a){if(0>=a.length)this.successCallback();else{this.frameworksToProcess=a.length;this.debugMessage("Generating framework graphs...");this.debugMessage(a);for(var b=0;bstjs.trunc((new Date).getTime())?(b.log(d,"Assertion is made for a future date."),g()):a.getExpirationDateAsync(function(c){null!=c&&c<=stjs.trunc((new Date).getTime())?(b.log(d,"Assertion is expired. Skipping."),g()):(b.logFoundAssertion(a,d),a.getNegativeAsync(function(c){null!=c&&c?(b.log(d,"Found valid negative assertion"),d.negative.push(a)):(b.log(d,"Found valid positive assertion"),d.positive.push(a));g()}, -function(c){b.log(d,"Found valid positive assertion");d.positive.push(a);g()}))},h)},h)):h("Incorrect subject.")},h)};a.processFindAssertionsSuccess=function(a,c){0==a.length?this.log(c,"No results found."):this.log(c,"Total number of assertions found: "+a.length);c.numberOfQueriesRunning--;this.checkStepSecondPass(c)};a.findSubjectAssertionsForCompetency=function(a){if(null==this.assertions)return!0;a.hasCheckedAssertionsForCompetency=!0;if(!InquiryPacket.IPType.COMPETENCY.equals(a.type)&&!InquiryPacket.IPType.ROLLUPRULE.equals(a.type))return this.log(a, +function(c){b.log(d,"Found valid positive assertion");d.positive.push(a);g()}))},k)},k)):k("Incorrect subject.")},k)};a.processFindAssertionsSuccess=function(a,c){0==a.length?this.log(c,"No results found."):this.log(c,"Total number of assertions found: "+a.length);c.numberOfQueriesRunning--;this.checkStepSecondPass(c)};a.findSubjectAssertionsForCompetency=function(a){if(null==this.assertions)return!0;a.hasCheckedAssertionsForCompetency=!0;if(!InquiryPacket.IPType.COMPETENCY.equals(a.type)&&!InquiryPacket.IPType.ROLLUPRULE.equals(a.type))return this.log(a, "No assertions for combinator types"),!1;var b=this;if(InquiryPacket.IPType.COMPETENCY.equals(a.type))for(var d=0;dc.competency.length)h("Framework has no competencies");else if(null==a)h("Repo is null or undefined");else{this.repo=a;this.framework=c;this.createImpliedRelations= -d;this.successCallback=g;this.failureCallback=h;var b=this;EcCompetency.search(a,EcGraphUtil.buildIdSearchQueryForIdList(c.competency),function(a){b.competencyArray=a;b.fetchFrameworkAlignments(c)},b.failureCallback,null)}}},{repo:"EcRepository",framework:"EcFramework",competencyArray:{name:"Array",arguments:["EcCompetency"]},competencyNodeMap:{name:"Map",arguments:[null,"Node"]},relationArray:{name:"Array",arguments:["EcAlignment"]},frameworkNodeGraph:"NodeGraph",collapsedFrameworkNodePacketGraph:"NodePacketGraph", -successCallback:{name:"Callback2",arguments:[null,"NodePacketGraph"]},failureCallback:{name:"Callback1",arguments:[null]}},{}),OptimisticQuadnaryAssertionProcessor=function(){CombinatorAssertionProcessor.call(this)},OptimisticQuadnaryAssertionProcessor=stjs.extend(OptimisticQuadnaryAssertionProcessor,CombinatorAssertionProcessor,[],function(h,a){a.transferIndeterminateOptimistically=!0;a.determineCombinatorAndResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()? +b.toString())}};a.fetchFrameworkAlignments=function(a){var b=this;EcAlignment.search(this.repo,EcGraphUtil.buildIdSearchQueryForIdList(a.relation),function(a){b.relationArray=a;b.continueFrameworkCollapse()},b.failureCallback,null)};a.collapseFramework=function(a,c,d,g,k){if(null==c)k("Framework is null or undefined");else if(null==c.competency||1>c.competency.length)k("Framework has no competencies");else if(null==a)k("Repo is null or undefined");else{this.repo=a;this.framework=c;this.createImpliedRelations= +d;this.successCallback=g;this.failureCallback=k;var b=this;EcCompetency.search(a,EcGraphUtil.buildIdSearchQueryForIdList(c.competency),function(a){b.competencyArray=a;b.fetchFrameworkAlignments(c)},b.failureCallback,null)}}},{repo:"EcRepository",framework:"EcFramework",competencyArray:{name:"Array",arguments:["EcCompetency"]},competencyNodeMap:{name:"Map",arguments:[null,"Node"]},relationArray:{name:"Array",arguments:["EcAlignment"]},frameworkNodeGraph:"NodeGraph",collapsedFrameworkNodePacketGraph:"NodePacketGraph", +successCallback:{name:"Callback2",arguments:[null,"NodePacketGraph"]},failureCallback:{name:"Callback1",arguments:[null]}},{}),OptimisticQuadnaryAssertionProcessor=function(){CombinatorAssertionProcessor.call(this)},OptimisticQuadnaryAssertionProcessor=stjs.extend(OptimisticQuadnaryAssertionProcessor,CombinatorAssertionProcessor,[],function(g,a){a.transferIndeterminateOptimistically=!0;a.determineCombinatorAndResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()? a.result=InquiryPacket.ResultType.INDETERMINANT:a.anyChildPacketsAreUnknown()?a.result=InquiryPacket.ResultType.UNKNOWN:a.result=InquiryPacket.ResultType.TRUE};a.determineCombinatorNarrowsResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.FALSE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorBroadensResult=function(a){a.anyChildPacketsAreFalse()? a.result=InquiryPacket.ResultType.FALSE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.TRUE:a.anyChildPacketsAreFalse()||a.anyChildPacketsAreUnknown()?a.result=InquiryPacket.ResultType.UNKNOWN:a.result=InquiryPacket.ResultType.TRUE};a.determineCombinatorRequiresResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.TRUE: a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorIsRequiredByResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.FALSE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorOrResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.INDETERMINANT: @@ -3788,7 +3796,7 @@ a.result=InquiryPacket.ResultType.INDETERMINANT:a.result=InquiryPacket.ResultTyp a.result=InquiryPacket.ResultType.INDETERMINANT:a.result=InquiryPacket.ResultType.INDETERMINANT};a.determineCompetencyOrRollupRuleResult=function(a){var b=this.getPacketAssertionResult(a);InquiryPacket.ResultType.INDETERMINANT.equals(b)||a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.INDETERMINANT:InquiryPacket.ResultType.UNKNOWN.equals(b)?this.determineResultForUnknownAssertionResult(a):InquiryPacket.ResultType.TRUE.equals(b)?this.determineResultForTrueAssertionResult(a):this.determineResultForFalseAssertionResult(a)}; a.determineResult=function(a){0==a.numberOfQueriesRunning?InquiryPacket.IPType.RELATION_AND.equals(a.type)?this.determineCombinatorAndResult(a):InquiryPacket.IPType.RELATION_OR.equals(a.type)?this.determineCombinatorOrResult(a):InquiryPacket.IPType.RELATION_NARROWS.equals(a.type)?this.determineCombinatorNarrowsResult(a):InquiryPacket.IPType.RELATION_BROADENS.equals(a.type)?this.determineCombinatorBroadensResult(a):InquiryPacket.IPType.RELATION_REQUIRES.equals(a.type)?this.determineCombinatorRequiresResult(a): InquiryPacket.IPType.RELATION_ISREQUIREDBY.equals(a.type)?this.determineCombinatorIsRequiredByResult(a):this.determineCompetencyOrRollupRuleResult(a):this.log(a,"We are not finished accumulating data to answer this query. Error: "+a.numberOfQueriesRunning)}},{relationLookup:"Object",repositories:{name:"Array",arguments:["EcRepository"]},logFunction:{name:"Callback1",arguments:["Object"]},assertions:"Object",coprocessors:{name:"Array",arguments:["AssertionCoprocessor"]},processedEquivalencies:{name:"Map", -arguments:[null,null]},context:"EcFramework"},{}),PessimisticQuadnaryAssertionProcessor=function(){CombinatorAssertionProcessor.call(this)},PessimisticQuadnaryAssertionProcessor=stjs.extend(PessimisticQuadnaryAssertionProcessor,CombinatorAssertionProcessor,[],function(h,a){a.transferIndeterminateOptimistically=!0;a.determineCombinatorAndResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.INDETERMINANT: +arguments:[null,null]},context:"EcFramework"},{}),PessimisticQuadnaryAssertionProcessor=function(){CombinatorAssertionProcessor.call(this)},PessimisticQuadnaryAssertionProcessor=stjs.extend(PessimisticQuadnaryAssertionProcessor,CombinatorAssertionProcessor,[],function(g,a){a.transferIndeterminateOptimistically=!0;a.determineCombinatorAndResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.INDETERMINANT: a.anyChildPacketsAreUnknown()?a.result=InquiryPacket.ResultType.UNKNOWN:a.result=InquiryPacket.ResultType.TRUE};a.determineCombinatorNarrowsResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.TRUE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorBroadensResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()? a.result=InquiryPacket.ResultType.FALSE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorRequiresResult=function(a){a.anyChildPacketsAreFalse()?a.result=InquiryPacket.ResultType.FALSE:a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.FALSE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorIsRequiredByResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:this.transferIndeterminateOptimistically&&a.anyIndeterminantChildPackets()? a.result=InquiryPacket.ResultType.TRUE:a.result=InquiryPacket.ResultType.UNKNOWN};a.determineCombinatorOrResult=function(a){a.anyChildPacketsAreTrue()?a.result=InquiryPacket.ResultType.TRUE:a.anyIndeterminantChildPackets()?a.result=InquiryPacket.ResultType.INDETERMINANT:a.allChildPacketsUnknown()?a.result=InquiryPacket.ResultType.UNKNOWN:a.result=InquiryPacket.ResultType.FALSE};a.getPacketAssertionResult=function(a){return 0 0) { - signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); } else { - signatureSheet = EcIdentityManager.signatureSheet(60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheet(60000 + offset, data.id); } afterSignatureSheet(signatureSheet); } else if (data.owner != null && data.owner.length > 0) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, afterSignatureSheet, failure); } else { - EcIdentityManager.signatureSheetAsync(60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetAsync(60000 + offset, data.id, afterSignatureSheet, failure); } }; /** @@ -1491,9 +1509,10 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } var targetUrl; targetUrl = data.shortId(); + var offset = EcRepository.setOffset(data.id); if (data.owner != null && data.owner.length > 0) { if (EcRemote.async) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000, data.id, function(signatureSheet) { + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, function(signatureSheet) { if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -1506,7 +1525,7 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRemote._delete(targetUrl, signatureSheet, success, failure); }, failure); } else { - var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000, data.id); + var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { diff --git a/src/main/js/cass/org.cassproject.schema.cass.js b/src/main/js/cass/org.cassproject.schema.cass.js index 27da4c14d..c86cc6545 100644 --- a/src/main/js/cass/org.cassproject.schema.cass.js +++ b/src/main/js/cass/org.cassproject.schema.cass.js @@ -31,8 +31,8 @@ Cass = stjs.extend(Cass, null, [], function(constructor, prototype) { constructor.context_0_3 = "http://schema.cassproject.org/0.2"; constructor.context_0_4 = "http://schema.cassproject.org/0.3"; constructor.context_0_5 = "https://schema.cassproject.org/0.3"; - constructor.context_0_6 = "http://schema.cassproject.org/0.4"; - constructor.context = Cass.context_0_5; + constructor.context_0_6 = "https://schema.cassproject.org/0.4"; + constructor.context = Cass.context_0_6; }, {}, {}); var AssertionCodebook = function() {}; AssertionCodebook = stjs.extend(AssertionCodebook, null, [], function(constructor, prototype) { @@ -63,7 +63,8 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Competency"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Competency"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Competency"; - constructor.myType = Competency.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Competency"; + constructor.myType = Competency.TYPE_0_6; /** * Scope in which the competency may be applied. e.g. Underwater. * @@ -92,9 +93,13 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro if (Competency.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Competency.TYPE_0_5); } + if (Competency.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Competency.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Competency.TYPE_0_6); a.push(Competency.TYPE_0_5); a.push(Competency.TYPE_0_4); a.push(Competency.TYPE_0_3); @@ -121,7 +126,8 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Level"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Level"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Level"; - constructor.myType = Level.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Level"; + constructor.myType = Level.TYPE_0_6; /** * Specifies the URL of the competency this level relates to. * @@ -161,9 +167,13 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { if (Level.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Level.TYPE_0_5); } + if (Level.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Level.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Level.TYPE_0_6); a.push(Level.TYPE_0_5); a.push(Level.TYPE_0_4); a.push(Level.TYPE_0_3); @@ -189,7 +199,8 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/RollupRule"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/RollupRule"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/RollupRule"; - constructor.myType = RollupRule.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/RollupRule"; + constructor.myType = RollupRule.TYPE_0_6; /** * The rollup rule encoded as source code that is understandable to the assertion processor. * @@ -215,9 +226,13 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro if (RollupRule.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, RollupRule.TYPE_0_5); } + if (RollupRule.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, RollupRule.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(RollupRule.TYPE_0_6); a.push(RollupRule.TYPE_0_5); a.push(RollupRule.TYPE_0_4); a.push(RollupRule.TYPE_0_3); @@ -243,7 +258,8 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Framework"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Framework"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Framework"; - constructor.myType = Framework.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Framework"; + constructor.myType = Framework.TYPE_0_6; /** * URLs of competencies included in this framework. * @@ -289,9 +305,13 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto if (Framework.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Framework.TYPE_0_5); } + if (Framework.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Framework.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Framework.TYPE_0_6); a.push(Framework.TYPE_0_5); a.push(Framework.TYPE_0_4); a.push(Framework.TYPE_0_3); @@ -374,7 +394,8 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Relation"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Relation"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Relation"; - constructor.myType = Relation.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Relation"; + constructor.myType = Relation.TYPE_0_6; /** * URL of the object at the beginning of the relation. * A B, this is A. @@ -432,9 +453,13 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy if (Relation.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Relation.TYPE_0_5); } + if (Relation.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Relation.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Relation.TYPE_0_6); a.push(Relation.TYPE_0_5); a.push(Relation.TYPE_0_4); a.push(Relation.TYPE_0_3); @@ -461,7 +486,8 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Assertion"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Assertion"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Assertion"; - constructor.myType = Assertion.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Assertion"; + constructor.myType = Assertion.TYPE_0_6; constructor.codebooks = null; /** * URL of the competency. @@ -717,6 +743,9 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto if (Assertion.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Assertion.TYPE_0_5); } + if (Assertion.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Assertion.TYPE_0_6); + } this.agent = EcEncryptedValue.revive(this.agent); this.subject = EcEncryptedValue.revive(this.subject); this.assertionDate = EcEncryptedValue.revive(this.assertionDate); @@ -730,6 +759,7 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto }; prototype.getTypes = function() { var a = new Array(); + a.push(Assertion.TYPE_0_6); a.push(Assertion.TYPE_0_5); a.push(Assertion.TYPE_0_4); a.push(Assertion.TYPE_0_3); @@ -753,11 +783,12 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto */ var AssertionEnvelope = function() { CreativeWork.call(this); - this.setContextAndType(Cass.context_0_6, AssertionEnvelope.myType); + this.setContextAndType(Cass.context, AssertionEnvelope.myType); }; AssertionEnvelope = stjs.extend(AssertionEnvelope, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_5 = "http://schema.cassproject.org/0.4/AssertionEnvelope"; - constructor.myType = AssertionEnvelope.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/AssertionEnvelope"; + constructor.myType = AssertionEnvelope.TYPE_0_6; /** * List of assertions to pack in the envelope. * diff --git a/src/main/js/cass/org.cassproject.schema.ebac.js b/src/main/js/cass/org.cassproject.schema.ebac.js index afcb14bd9..ee90fe169 100644 --- a/src/main/js/cass/org.cassproject.schema.ebac.js +++ b/src/main/js/cass/org.cassproject.schema.ebac.js @@ -27,12 +27,13 @@ * @module org.cassproject */ var EbacCredential = function() { - EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_4); }; EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credential"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credential"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credential"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credential"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -72,9 +73,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc if (EbacCredential.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredential.TYPE_0_3); } + if (EbacCredential.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredential.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredential.TYPE_0_4); a.push(EbacCredential.TYPE_0_3); a.push(EbacCredential.TYPE_0_2); a.push(EbacCredential.TYPE_0_1); @@ -91,12 +96,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc * @module org.cassproject */ var EbacCredentialRequest = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_4); }; EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialRequest"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialRequest"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialRequest"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialRequest"; /** * Hashed username. * @@ -122,9 +128,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun if (EbacCredentialRequest.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacCredentialRequest.TYPE_0_3); } + if (EbacCredentialRequest.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialRequest.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialRequest.TYPE_0_4); a.push(EbacCredentialRequest.TYPE_0_3); a.push(EbacCredentialRequest.TYPE_0_2); a.push(EbacCredentialRequest.TYPE_0_1); @@ -140,12 +150,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun * @module org.cassproject */ var EbacCredentials = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_4); }; EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentials"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentials"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credentials"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credentials"; /** * One time pad that may be used in password recovery. Base64 encoded. * @@ -185,9 +196,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr if (EbacCredentials.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentials.TYPE_0_3); } + if (EbacCredentials.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentials.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentials.TYPE_0_4); a.push(EbacCredentials.TYPE_0_3); a.push(EbacCredentials.TYPE_0_2); a.push(EbacCredentials.TYPE_0_1); @@ -204,12 +219,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr * @module org.cassproject */ var EbacContact = function() { - EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_4); }; EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Contact"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Contact"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -263,9 +279,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p if (EbacContact.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContact.TYPE_0_3); } + if (EbacContact.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContact.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContact.TYPE_0_4); a.push(EbacContact.TYPE_0_3); a.push(EbacContact.TYPE_0_2); a.push(EbacContact.TYPE_0_1); @@ -287,12 +307,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p * @module org.cassproject */ var EbacEncryptedSecret = function() { - EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_4); }; EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedSecret"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedSecret"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedSecret"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedSecret"; /** * IV used to encrypt/decrypt payload. Base64 encoded. * @@ -369,9 +390,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio if (EbacEncryptedSecret.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedSecret.TYPE_0_3); } + if (EbacEncryptedSecret.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedSecret.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedSecret.TYPE_0_4); a.push(EbacEncryptedSecret.TYPE_0_3); a.push(EbacEncryptedSecret.TYPE_0_2); a.push(EbacEncryptedSecret.TYPE_0_1); @@ -387,12 +412,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio * @module org.cassproject */ var EbacSignature = function() { - EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_4); }; EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/timeLimitedSignature"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/timeLimitedSignature"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/TimeLimitedSignature"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/TimeLimitedSignature"; /** * The public key of the authorizing party in PEM format. * @@ -436,9 +462,13 @@ EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructo if (EbacSignature.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacSignature.TYPE_0_3); } + if (EbacSignature.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacSignature.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacSignature.TYPE_0_4); a.push(EbacSignature.TYPE_0_3); a.push(EbacSignature.TYPE_0_2); a.push(EbacSignature.TYPE_0_1); @@ -459,7 +489,8 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedValue"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedValue"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedValue"; - constructor.myType = EbacEncryptedValue.TYPE_0_3; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedValue"; + constructor.myType = EbacEncryptedValue.TYPE_0_4; /** * Optional Hint used to aid in search. * Displays the type of the encrypted object. @@ -515,9 +546,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun if (EbacEncryptedValue.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedValue.TYPE_0_3); } + if (EbacEncryptedValue.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedValue.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedValue.TYPE_0_4); a.push(EbacEncryptedValue.TYPE_0_3); a.push(EbacEncryptedValue.TYPE_0_2); a.push(EbacEncryptedValue.TYPE_0_1); @@ -535,12 +570,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun * @module org.cassproject */ var EbacContactGrant = function() { - EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_3); + EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_4); }; EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/contactGrant"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contactGrant"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/ContactGrant"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/ContactGrant"; /** * Public key being granted to the owner of this message. * @@ -588,9 +624,13 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio if (EbacContactGrant.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContactGrant.TYPE_0_3); } + if (EbacContactGrant.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContactGrant.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContactGrant.TYPE_0_4); a.push(EbacContactGrant.TYPE_0_3); a.push(EbacContactGrant.TYPE_0_2); a.push(EbacContactGrant.TYPE_0_1); @@ -608,13 +648,14 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio * @module org.cassproject */ var EbacCredentialCommit = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_4); this.credentials = new EbacCredentials(); }; EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialCommit"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialCommit"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialCommit"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialCommit"; /** * Hashed username. * @@ -655,9 +696,13 @@ EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], funct if (EbacCredentialCommit.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentialCommit.TYPE_0_3); } + if (EbacCredentialCommit.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialCommit.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialCommit.TYPE_0_4); a.push(EbacCredentialCommit.TYPE_0_3); a.push(EbacCredentialCommit.TYPE_0_2); a.push(EbacCredentialCommit.TYPE_0_1); diff --git a/src/main/js/cass/org.cassproject.schema.general.js b/src/main/js/cass/org.cassproject.schema.general.js index 9baff76b2..d88103b83 100644 --- a/src/main/js/cass/org.cassproject.schema.general.js +++ b/src/main/js/cass/org.cassproject.schema.general.js @@ -49,6 +49,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { constructor.context_0_1 = "http://schema.eduworks.com/ebac/0.1"; constructor.context_0_2 = "http://schema.eduworks.com/ebac/0.2"; constructor.context_0_3 = "http://schema.cassproject.org/kbac/0.2"; + constructor.context_0_4 = "https://schema.cassproject.org/kbac/0.4"; /** * Current version of KBAC. * @@ -56,7 +57,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { * @static * @type string (URL) */ - constructor.context = "http://schema.cassproject.org/kbac/0.2"; + constructor.context = Ebac.context_0_4; }, {}, {}); /** * Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for diff --git a/src/main/js/cass/org.w3.skos.js b/src/main/js/cass/org.w3.skos.js index 52c94acd3..1a36864d2 100644 --- a/src/main/js/cass/org.w3.skos.js +++ b/src/main/js/cass/org.w3.skos.js @@ -30,7 +30,7 @@ var Collection = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "http://schema.cassproject.org/0.3/skos/", "Collection"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Collection"); }; Collection = stjs.extend(Collection, EcRemoteLinkedData, [], function(constructor, prototype) { /** @@ -53,12 +53,13 @@ var Concept = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "Concept"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Concept"); }; Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/Concept"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/Concept"; - constructor.myType = Concept.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/Concept"; + constructor.myType = Concept.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/topConceptOf * Relates a concept to the concept scheme that it is a top level concept of. @@ -78,9 +79,13 @@ Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, pro if (Concept.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", Concept.TYPE_0_2); } + if (Concept.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", Concept.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Concept.TYPE_0_3); a.push(Concept.TYPE_0_2); a.push(Concept.TYPE_0_1); return a; @@ -99,12 +104,13 @@ var ConceptScheme = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "ConceptScheme"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "ConceptScheme"); }; ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/ConceptScheme"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/ConceptScheme"; - constructor.myType = ConceptScheme.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/ConceptScheme"; + constructor.myType = ConceptScheme.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/hasTopConcept * Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies. @@ -117,9 +123,13 @@ ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(cons if (ConceptScheme.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", ConceptScheme.TYPE_0_2); } + if (ConceptScheme.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", ConceptScheme.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(ConceptScheme.TYPE_0_3); a.push(ConceptScheme.TYPE_0_2); a.push(ConceptScheme.TYPE_0_1); return a; @@ -140,7 +150,7 @@ var OrderedCollection = /** */ function() { Collection.call(this); - this.context = "http://schema.cassproject.org/0.3/skos/"; + this.context = "https://schema.cassproject.org/0.4/skos/"; this.type = "OrderedCollection"; }; OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(constructor, prototype) { diff --git a/src/main/resources/b-skyrepo/kbac.skyrepo.js b/src/main/resources/b-skyrepo/kbac.skyrepo.js index d07a87d6c..34944f022 100644 --- a/src/main/resources/b-skyrepo/kbac.skyrepo.js +++ b/src/main/resources/b-skyrepo/kbac.skyrepo.js @@ -65,7 +65,7 @@ var signatureSheet = function() { signature.copyFrom(sigSheet[i]); if (signature == null) error("Missing Signature.", 496); - if (getTypeFromObject(sigSheet[i]) != "http://schema.cassproject.org/kbac/0.2/TimeLimitedSignature") + if (getTypeFromObject(sigSheet[i]) != "https://schema.cassproject.org/kbac/0.4/TimeLimitedSignature") error("Invalid Signature Version.", 422); if (signature.expiry == null) error("Missing expiry date.", 422); diff --git a/src/main/webapp/cass-align b/src/main/webapp/cass-align index 34f019800..e454078a1 160000 --- a/src/main/webapp/cass-align +++ b/src/main/webapp/cass-align @@ -1 +1 @@ -Subproject commit 34f019800ba829ea5b577b1e7ee224e07a4d5ba7 +Subproject commit e454078a1bc31ab3828d3d6662a606a5ef245c6a diff --git a/src/main/webapp/cass-editor b/src/main/webapp/cass-editor index 4ba9c6338..d8c69f265 160000 --- a/src/main/webapp/cass-editor +++ b/src/main/webapp/cass-editor @@ -1 +1 @@ -Subproject commit 4ba9c6338e3245c3ee82a0339627116624981a08 +Subproject commit d8c69f265bab1ae2ff66967d19956589c7db17d5 diff --git a/src/main/webapp/cass-gap-analysis b/src/main/webapp/cass-gap-analysis index 727a47512..a0adb7de7 160000 --- a/src/main/webapp/cass-gap-analysis +++ b/src/main/webapp/cass-gap-analysis @@ -1 +1 @@ -Subproject commit 727a47512907273754cb580855e57d0e11139a6d +Subproject commit a0adb7de776519beb4ee191b1045ca5126ad5800 diff --git a/src/main/webapp/cass-profile b/src/main/webapp/cass-profile index 6f32f4215..50b5ea154 160000 --- a/src/main/webapp/cass-profile +++ b/src/main/webapp/cass-profile @@ -1 +1 @@ -Subproject commit 6f32f421566e8a50a7f9edae16fcee073aa8abed +Subproject commit 50b5ea154e657840785eb665082b5f98056230c2 diff --git a/src/main/webapp/cass-ui-concept-editor-ctr.html b/src/main/webapp/cass-ui-concept-editor-ctr.html index 23a0411ad..e853d1dee 100644 --- a/src/main/webapp/cass-ui-concept-editor-ctr.html +++ b/src/main/webapp/cass-ui-concept-editor-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Concept Editor + CaSS 1.2.12 Concept Editor diff --git a/src/main/webapp/cass-ui-editor-ctr.html b/src/main/webapp/cass-ui-editor-ctr.html index 353089960..f0d1ff10a 100644 --- a/src/main/webapp/cass-ui-editor-ctr.html +++ b/src/main/webapp/cass-ui-editor-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Competency Editor + CaSS 1.2.12 Competency Editor diff --git a/src/main/webapp/cass-ui-framework-exp-ctr.html b/src/main/webapp/cass-ui-framework-exp-ctr.html index fa8e24c3c..ac946d822 100644 --- a/src/main/webapp/cass-ui-framework-exp-ctr.html +++ b/src/main/webapp/cass-ui-framework-exp-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Framework Explorer + CaSS 1.2.12 Framework Explorer diff --git a/src/main/webapp/cass-ui-gap-analysis-ctr.html b/src/main/webapp/cass-ui-gap-analysis-ctr.html index f6e45757a..8d6539048 100644 --- a/src/main/webapp/cass-ui-gap-analysis-ctr.html +++ b/src/main/webapp/cass-ui-gap-analysis-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Gap Analysis + CaSS 1.2.12 Gap Analysis diff --git a/src/main/webapp/cass-ui-home.html b/src/main/webapp/cass-ui-home.html index b73f15c7f..e86f54df8 100644 --- a/src/main/webapp/cass-ui-home.html +++ b/src/main/webapp/cass-ui-home.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Explorer + CaSS 1.2.12 Explorer diff --git a/src/main/webapp/cass-ui-profile-exp-ctr.html b/src/main/webapp/cass-ui-profile-exp-ctr.html index f063351cf..eef0f7742 100644 --- a/src/main/webapp/cass-ui-profile-exp-ctr.html +++ b/src/main/webapp/cass-ui-profile-exp-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Profile Explorer + CaSS 1.2.12 Profile Explorer diff --git a/src/main/webapp/cass-ui-resource-aln-ctr.html b/src/main/webapp/cass-ui-resource-aln-ctr.html index 1fc49dd85..2c40b72fe 100644 --- a/src/main/webapp/cass-ui-resource-aln-ctr.html +++ b/src/main/webapp/cass-ui-resource-aln-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Resource Alignment + CaSS 1.2.12 Resource Alignment diff --git a/src/main/webapp/cass-ui-vlrc-exp-ctr.html b/src/main/webapp/cass-ui-vlrc-exp-ctr.html index 945324f94..020831de9 100644 --- a/src/main/webapp/cass-ui-vlrc-exp-ctr.html +++ b/src/main/webapp/cass-ui-vlrc-exp-ctr.html @@ -5,7 +5,7 @@ - CaSS 1.2.11 Virtual Learning Resource Center + CaSS 1.2.12 Virtual Learning Resource Center diff --git a/src/main/webapp/cass-viewer b/src/main/webapp/cass-viewer index cacf85fb0..4cc23f1bd 160000 --- a/src/main/webapp/cass-viewer +++ b/src/main/webapp/cass-viewer @@ -1 +1 @@ -Subproject commit cacf85fb08a3b2672cc6d8506909bbb307342e04 +Subproject commit 4cc23f1bd6e57513bc856ec1f8dcfdb681a7806a diff --git a/src/main/webapp/cass-vlrc b/src/main/webapp/cass-vlrc index a8cd87383..464bc4fa0 160000 --- a/src/main/webapp/cass-vlrc +++ b/src/main/webapp/cass-vlrc @@ -1 +1 @@ -Subproject commit a8cd87383993500b6801eff35f215ebb212e8b90 +Subproject commit 464bc4fa0debc98eedca0b74619c438a9f9ba686 diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index c5d84422a..9251f69c8 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -13,7 +13,7 @@ - CaSS 1.2.11 + CaSS 1.2.12 diff --git a/src/main/webapp/js/cass/cass.js b/src/main/webapp/js/cass/cass.js index 5138f3a6a..826db68f7 100644 --- a/src/main/webapp/js/cass/cass.js +++ b/src/main/webapp/js/cass/cass.js @@ -41069,6 +41069,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { constructor.context_0_1 = "http://schema.eduworks.com/ebac/0.1"; constructor.context_0_2 = "http://schema.eduworks.com/ebac/0.2"; constructor.context_0_3 = "http://schema.cassproject.org/kbac/0.2"; + constructor.context_0_4 = "https://schema.cassproject.org/kbac/0.4"; /** * Current version of KBAC. * @@ -41076,7 +41077,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { * @static * @type string (URL) */ - constructor.context = "http://schema.cassproject.org/kbac/0.2"; + constructor.context = Ebac.context_0_4; }, {}, {}); /** * Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for @@ -64046,7 +64047,7 @@ var Collection = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "http://schema.cassproject.org/0.3/skos/", "Collection"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Collection"); }; Collection = stjs.extend(Collection, EcRemoteLinkedData, [], function(constructor, prototype) { /** @@ -64069,12 +64070,13 @@ var Concept = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "Concept"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Concept"); }; Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/Concept"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/Concept"; - constructor.myType = Concept.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/Concept"; + constructor.myType = Concept.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/topConceptOf * Relates a concept to the concept scheme that it is a top level concept of. @@ -64094,9 +64096,13 @@ Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, pro if (Concept.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", Concept.TYPE_0_2); } + if (Concept.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", Concept.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Concept.TYPE_0_3); a.push(Concept.TYPE_0_2); a.push(Concept.TYPE_0_1); return a; @@ -64115,12 +64121,13 @@ var ConceptScheme = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "ConceptScheme"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "ConceptScheme"); }; ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/ConceptScheme"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/ConceptScheme"; - constructor.myType = ConceptScheme.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/ConceptScheme"; + constructor.myType = ConceptScheme.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/hasTopConcept * Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies. @@ -64133,9 +64140,13 @@ ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(cons if (ConceptScheme.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", ConceptScheme.TYPE_0_2); } + if (ConceptScheme.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", ConceptScheme.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(ConceptScheme.TYPE_0_3); a.push(ConceptScheme.TYPE_0_2); a.push(ConceptScheme.TYPE_0_1); return a; @@ -64156,7 +64167,7 @@ var OrderedCollection = /** */ function() { Collection.call(this); - this.context = "http://schema.cassproject.org/0.3/skos/"; + this.context = "https://schema.cassproject.org/0.4/skos/"; this.type = "OrderedCollection"; }; OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(constructor, prototype) { @@ -64178,12 +64189,13 @@ OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(cons * @module org.cassproject */ var EbacCredential = function() { - EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_4); }; EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credential"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credential"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credential"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credential"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -64223,9 +64235,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc if (EbacCredential.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredential.TYPE_0_3); } + if (EbacCredential.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredential.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredential.TYPE_0_4); a.push(EbacCredential.TYPE_0_3); a.push(EbacCredential.TYPE_0_2); a.push(EbacCredential.TYPE_0_1); @@ -64242,12 +64258,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc * @module org.cassproject */ var EbacCredentialRequest = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_4); }; EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialRequest"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialRequest"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialRequest"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialRequest"; /** * Hashed username. * @@ -64273,9 +64290,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun if (EbacCredentialRequest.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacCredentialRequest.TYPE_0_3); } + if (EbacCredentialRequest.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialRequest.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialRequest.TYPE_0_4); a.push(EbacCredentialRequest.TYPE_0_3); a.push(EbacCredentialRequest.TYPE_0_2); a.push(EbacCredentialRequest.TYPE_0_1); @@ -64291,12 +64312,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun * @module org.cassproject */ var EbacCredentials = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_4); }; EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentials"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentials"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credentials"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credentials"; /** * One time pad that may be used in password recovery. Base64 encoded. * @@ -64336,9 +64358,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr if (EbacCredentials.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentials.TYPE_0_3); } + if (EbacCredentials.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentials.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentials.TYPE_0_4); a.push(EbacCredentials.TYPE_0_3); a.push(EbacCredentials.TYPE_0_2); a.push(EbacCredentials.TYPE_0_1); @@ -64355,12 +64381,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr * @module org.cassproject */ var EbacContact = function() { - EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_4); }; EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Contact"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Contact"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -64414,9 +64441,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p if (EbacContact.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContact.TYPE_0_3); } + if (EbacContact.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContact.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContact.TYPE_0_4); a.push(EbacContact.TYPE_0_3); a.push(EbacContact.TYPE_0_2); a.push(EbacContact.TYPE_0_1); @@ -64438,12 +64469,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p * @module org.cassproject */ var EbacEncryptedSecret = function() { - EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_4); }; EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedSecret"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedSecret"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedSecret"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedSecret"; /** * IV used to encrypt/decrypt payload. Base64 encoded. * @@ -64520,9 +64552,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio if (EbacEncryptedSecret.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedSecret.TYPE_0_3); } + if (EbacEncryptedSecret.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedSecret.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedSecret.TYPE_0_4); a.push(EbacEncryptedSecret.TYPE_0_3); a.push(EbacEncryptedSecret.TYPE_0_2); a.push(EbacEncryptedSecret.TYPE_0_1); @@ -64538,12 +64574,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio * @module org.cassproject */ var EbacSignature = function() { - EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_4); }; EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/timeLimitedSignature"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/timeLimitedSignature"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/TimeLimitedSignature"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/TimeLimitedSignature"; /** * The public key of the authorizing party in PEM format. * @@ -64587,9 +64624,13 @@ EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructo if (EbacSignature.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacSignature.TYPE_0_3); } + if (EbacSignature.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacSignature.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacSignature.TYPE_0_4); a.push(EbacSignature.TYPE_0_3); a.push(EbacSignature.TYPE_0_2); a.push(EbacSignature.TYPE_0_1); @@ -64610,7 +64651,8 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedValue"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedValue"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedValue"; - constructor.myType = EbacEncryptedValue.TYPE_0_3; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedValue"; + constructor.myType = EbacEncryptedValue.TYPE_0_4; /** * Optional Hint used to aid in search. * Displays the type of the encrypted object. @@ -64666,9 +64708,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun if (EbacEncryptedValue.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedValue.TYPE_0_3); } + if (EbacEncryptedValue.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedValue.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedValue.TYPE_0_4); a.push(EbacEncryptedValue.TYPE_0_3); a.push(EbacEncryptedValue.TYPE_0_2); a.push(EbacEncryptedValue.TYPE_0_1); @@ -64686,12 +64732,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun * @module org.cassproject */ var EbacContactGrant = function() { - EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_3); + EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_4); }; EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/contactGrant"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contactGrant"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/ContactGrant"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/ContactGrant"; /** * Public key being granted to the owner of this message. * @@ -64739,9 +64786,13 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio if (EbacContactGrant.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContactGrant.TYPE_0_3); } + if (EbacContactGrant.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContactGrant.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContactGrant.TYPE_0_4); a.push(EbacContactGrant.TYPE_0_3); a.push(EbacContactGrant.TYPE_0_2); a.push(EbacContactGrant.TYPE_0_1); @@ -64759,13 +64810,14 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio * @module org.cassproject */ var EbacCredentialCommit = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_4); this.credentials = new EbacCredentials(); }; EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialCommit"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialCommit"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialCommit"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialCommit"; /** * Hashed username. * @@ -64806,9 +64858,13 @@ EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], funct if (EbacCredentialCommit.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentialCommit.TYPE_0_3); } + if (EbacCredentialCommit.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialCommit.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialCommit.TYPE_0_4); a.push(EbacCredentialCommit.TYPE_0_3); a.push(EbacCredentialCommit.TYPE_0_2); a.push(EbacCredentialCommit.TYPE_0_1); @@ -64829,8 +64885,8 @@ Cass = stjs.extend(Cass, null, [], function(constructor, prototype) { constructor.context_0_3 = "http://schema.cassproject.org/0.2"; constructor.context_0_4 = "http://schema.cassproject.org/0.3"; constructor.context_0_5 = "https://schema.cassproject.org/0.3"; - constructor.context_0_6 = "http://schema.cassproject.org/0.4"; - constructor.context = Cass.context_0_5; + constructor.context_0_6 = "https://schema.cassproject.org/0.4"; + constructor.context = Cass.context_0_6; }, {}, {}); var AssertionCodebook = function() {}; AssertionCodebook = stjs.extend(AssertionCodebook, null, [], function(constructor, prototype) { @@ -64861,7 +64917,8 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Competency"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Competency"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Competency"; - constructor.myType = Competency.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Competency"; + constructor.myType = Competency.TYPE_0_6; /** * Scope in which the competency may be applied. e.g. Underwater. * @@ -64890,9 +64947,13 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro if (Competency.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Competency.TYPE_0_5); } + if (Competency.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Competency.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Competency.TYPE_0_6); a.push(Competency.TYPE_0_5); a.push(Competency.TYPE_0_4); a.push(Competency.TYPE_0_3); @@ -64919,7 +64980,8 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Level"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Level"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Level"; - constructor.myType = Level.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Level"; + constructor.myType = Level.TYPE_0_6; /** * Specifies the URL of the competency this level relates to. * @@ -64959,9 +65021,13 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { if (Level.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Level.TYPE_0_5); } + if (Level.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Level.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Level.TYPE_0_6); a.push(Level.TYPE_0_5); a.push(Level.TYPE_0_4); a.push(Level.TYPE_0_3); @@ -64987,7 +65053,8 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/RollupRule"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/RollupRule"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/RollupRule"; - constructor.myType = RollupRule.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/RollupRule"; + constructor.myType = RollupRule.TYPE_0_6; /** * The rollup rule encoded as source code that is understandable to the assertion processor. * @@ -65013,9 +65080,13 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro if (RollupRule.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, RollupRule.TYPE_0_5); } + if (RollupRule.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, RollupRule.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(RollupRule.TYPE_0_6); a.push(RollupRule.TYPE_0_5); a.push(RollupRule.TYPE_0_4); a.push(RollupRule.TYPE_0_3); @@ -65041,7 +65112,8 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Framework"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Framework"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Framework"; - constructor.myType = Framework.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Framework"; + constructor.myType = Framework.TYPE_0_6; /** * URLs of competencies included in this framework. * @@ -65087,9 +65159,13 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto if (Framework.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Framework.TYPE_0_5); } + if (Framework.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Framework.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Framework.TYPE_0_6); a.push(Framework.TYPE_0_5); a.push(Framework.TYPE_0_4); a.push(Framework.TYPE_0_3); @@ -65172,7 +65248,8 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Relation"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Relation"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Relation"; - constructor.myType = Relation.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Relation"; + constructor.myType = Relation.TYPE_0_6; /** * URL of the object at the beginning of the relation. * A B, this is A. @@ -65230,9 +65307,13 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy if (Relation.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Relation.TYPE_0_5); } + if (Relation.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Relation.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Relation.TYPE_0_6); a.push(Relation.TYPE_0_5); a.push(Relation.TYPE_0_4); a.push(Relation.TYPE_0_3); @@ -65259,7 +65340,8 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Assertion"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Assertion"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Assertion"; - constructor.myType = Assertion.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Assertion"; + constructor.myType = Assertion.TYPE_0_6; constructor.codebooks = null; /** * URL of the competency. @@ -65515,6 +65597,9 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto if (Assertion.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Assertion.TYPE_0_5); } + if (Assertion.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Assertion.TYPE_0_6); + } this.agent = EcEncryptedValue.revive(this.agent); this.subject = EcEncryptedValue.revive(this.subject); this.assertionDate = EcEncryptedValue.revive(this.assertionDate); @@ -65528,6 +65613,7 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto }; prototype.getTypes = function() { var a = new Array(); + a.push(Assertion.TYPE_0_6); a.push(Assertion.TYPE_0_5); a.push(Assertion.TYPE_0_4); a.push(Assertion.TYPE_0_3); @@ -65551,11 +65637,12 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto */ var AssertionEnvelope = function() { CreativeWork.call(this); - this.setContextAndType(Cass.context_0_6, AssertionEnvelope.myType); + this.setContextAndType(Cass.context, AssertionEnvelope.myType); }; AssertionEnvelope = stjs.extend(AssertionEnvelope, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_5 = "http://schema.cassproject.org/0.4/AssertionEnvelope"; - constructor.myType = AssertionEnvelope.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/AssertionEnvelope"; + constructor.myType = AssertionEnvelope.TYPE_0_6; /** * List of assertions to pack in the envelope. * @@ -68917,8 +69004,9 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy }, function(p1) { EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); - } else - EcIdentityManager.signatureSheetAsync(60000, url, function(p1) { + } else { + var offset = EcRepository.setOffset(url); + EcIdentityManager.signatureSheetAsync(60000 + offset, url, function(p1) { if ((EcRepository.cache)[originalUrl] != null) { delete (EcRepository.fetching)[originalUrl]; success((EcRepository.cache)[originalUrl]); @@ -68931,6 +69019,16 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRepository.find(originalUrl, p1, new Object(), 0, success, failure); }); }, failure); + } + }; + constructor.setOffset = function(url) { + var offset = 0; + for (var i = 0; i < EcRepository.repos.length; i++) { + if (url.indexOf(EcRepository.repos[i].selectedServer) != -1) { + offset = EcRepository.repos[i].timeOffset; + } + } + return offset; }; constructor.getHandleData = function(p1, originalUrl, success, failure, finalUrl) { delete (EcRepository.fetching)[originalUrl]; @@ -69069,7 +69167,8 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy var fd = new FormData(); var p1 = null; if (EcRepository.unsigned == false) { - p1 = EcIdentityManager.signatureSheet(60000, originalUrl); + var offset = EcRepository.setOffset(url); + p1 = EcIdentityManager.signatureSheet(60000 + offset, originalUrl); fd.append("signatureSheet", p1); } var oldAsync = EcRemote.async; @@ -69329,18 +69428,24 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } EcRemote.postExpectingString(data.id, "", fd, success, failure); }; + var offset = 0; + if (repo == null) { + offset = EcRepository.setOffset(data.id); + } else { + offset = repo.timeOffset; + } if (EcRemote.async == false) { var signatureSheet; if (data.owner != null && data.owner.length > 0) { - signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); } else { - signatureSheet = EcIdentityManager.signatureSheet(60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheet(60000 + offset, data.id); } afterSignatureSheet(signatureSheet); } else if (data.owner != null && data.owner.length > 0) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, afterSignatureSheet, failure); } else { - EcIdentityManager.signatureSheetAsync(60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetAsync(60000 + offset, data.id, afterSignatureSheet, failure); } }; /** @@ -69383,9 +69488,10 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } var targetUrl; targetUrl = data.shortId(); + var offset = EcRepository.setOffset(data.id); if (data.owner != null && data.owner.length > 0) { if (EcRemote.async) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000, data.id, function(signatureSheet) { + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, function(signatureSheet) { if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -69398,7 +69504,7 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRemote._delete(targetUrl, signatureSheet, success, failure); }, failure); } else { - var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000, data.id); + var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { diff --git a/src/main/webapp/js/cass/cass.min.js b/src/main/webapp/js/cass/cass.min.js index 6e6ff235d..91892ce5d 100644 --- a/src/main/webapp/js/cass/cass.min.js +++ b/src/main/webapp/js/cass/cass.min.js @@ -2,15 +2,15 @@ var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.definePr $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(k){return $jscomp.SYMBOL_PREFIX+(k||"")+$jscomp.symbolCounter_++}; $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var k=$jscomp.global.Symbol.iterator;k||(k=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[k]&&$jscomp.defineProperty(Array.prototype,k,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(k){var b=0;return $jscomp.iteratorPrototype(function(){return b=this.length()};c.ByteStringBuffer.prototype.putByte=function(a){return this.putBytes(String.fromCharCode(a))}; c.ByteStringBuffer.prototype.fillWithByte=function(a,b){a=String.fromCharCode(a);for(var c=this.data;0>>=1,0>8& 255)+String.fromCharCode(a&255))};c.ByteStringBuffer.prototype.putInt24=function(a){return this.putBytes(String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255))};c.ByteStringBuffer.prototype.putInt32=function(a){return this.putBytes(String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255))};c.ByteStringBuffer.prototype.putInt16Le=function(a){return this.putBytes(String.fromCharCode(a&255)+String.fromCharCode(a>> @@ -21,11 +21,11 @@ function(){var a=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+ function(a){var b=this.getInt(a);a=2<=a&&(b-=a<<1),b};c.ByteStringBuffer.prototype.getBytes=function(a){var b;return a?(a=Math.min(this.length(),a),b=this.data.slice(this.read,this.read+a),this.read+=a):0===a?b="":(b=0===this.read?this.data:this.data.slice(this.read),this.clear()),b};c.ByteStringBuffer.prototype.bytes=function(a){return"undefined"==typeof a?this.data.slice(this.read):this.data.slice(this.read,this.read+a)};c.ByteStringBuffer.prototype.at=function(a){return this.data.charCodeAt(this.read+ a)};c.ByteStringBuffer.prototype.setAt=function(a,b){return this.data=this.data.substr(0,this.read+a)+String.fromCharCode(b)+this.data.substr(this.read+a+1),this};c.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};c.ByteStringBuffer.prototype.copy=function(){var a=c.createBuffer(this.data);return a.read=this.read,a};c.ByteStringBuffer.prototype.compact=function(){return 0c&&(a+="0");a+=c.toString(16)}return a};c.ByteStringBuffer.prototype.toString=function(){return c.decodeUtf8(this.bytes())};c.DataBuffer=function(a,b){b=b||{};this.read=b.readOffset|| -0;this.growSize=b.growSize||1024;var f=c.isArrayBuffer(a),m=c.isArrayBufferView(a);f||m?(f?this.data=new DataView(a):this.data=new DataView(a.buffer,a.byteOffset,a.byteLength),this.write="writeOffset"in b?b.writeOffset:this.data.byteLength):(this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==a&&void 0!==a&&this.putBytes(a),"writeOffset"in b&&(this.write=b.writeOffset))};c.DataBuffer.prototype.length=function(){return this.write-this.read};c.DataBuffer.prototype.isEmpty=function(){return 0>= +0;this.growSize=b.growSize||1024;var e=c.isArrayBuffer(a),m=c.isArrayBufferView(a);e||m?(e?this.data=new DataView(a):this.data=new DataView(a.buffer,a.byteOffset,a.byteLength),this.write="writeOffset"in b?b.writeOffset:this.data.byteLength):(this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==a&&void 0!==a&&this.putBytes(a),"writeOffset"in b&&(this.write=b.writeOffset))};c.DataBuffer.prototype.length=function(){return this.write-this.read};c.DataBuffer.prototype.isEmpty=function(){return 0>= this.length()};c.DataBuffer.prototype.accommodate=function(a,b){if(this.length()>=a)return this;b=Math.max(b||this.growSize,a);a=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength);b=new Uint8Array(this.length()+b);return b.set(a),this.data=new DataView(b.buffer),this};c.DataBuffer.prototype.putByte=function(a){return this.accommodate(1),this.data.setUint8(this.write++,a),this};c.DataBuffer.prototype.fillWithByte=function(a,b){this.accommodate(b);for(var c=0;c>8&65535),this.data.setInt8(this.write,a>>16&255),this.write+=3,this};c.DataBuffer.prototype.putInt32=function(a){return this.accommodate(4), this.data.setInt32(this.write,a),this.write+=4,this};c.DataBuffer.prototype.putInt16Le=function(a){return this.accommodate(2),this.data.setInt16(this.write,a,!0),this.write+=2,this};c.DataBuffer.prototype.putInt24Le=function(a){return this.accommodate(3),this.data.setInt8(this.write,a>>16&255),this.data.setInt16(this.write,a>>8&65535,!0),this.write+=3,this};c.DataBuffer.prototype.putInt32Le=function(a){return this.accommodate(4),this.data.setInt32(this.write,a,!0),this.write+=4,this};c.DataBuffer.prototype.putInt= function(a,b){this.accommodate(b/8);do b-=8,this.data.setInt8(this.write++,a>>b&255);while(0a&&(a+=2<c&&(a+="0");a+=c.toString(16)}return a};c.DataBuffer.prototype.toString= function(a){var b=new Uint8Array(this.data,this.read,this.length());a=a||"utf8";if("binary"===a||"raw"===a)return c.binary.raw.encode(b);if("hex"===a)return c.binary.hex.encode(b);if("base64"===a)return c.binary.base64.encode(b);if("utf8"===a)return c.text.utf8.decode(b);if("utf16"===a)return c.text.utf16.decode(b);throw Error("Invalid encoding: "+a);};c.createBuffer=function(a,b){return b=b||"raw",void 0!==a&&"utf8"===b&&(a=c.encodeUtf8(a)),new c.ByteBuffer(a)};c.fillString=function(a,b){for(var c= -"";0>>=1,0> -24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var m=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",f="",m,e,d,l=0;l> -2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((m&3)<<4|e>>4),isNaN(e)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(f+=c.substr(0,b)+"\r\n",c=c.substr(b));return f+=c,f};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,f,e,d,l=0;l>4),64!==e&&(b+=String.fromCharCode((f&15)<<4|e>>2),64!==d&&(b+=String.fromCharCode((e&3)<<6|d)));return b};c.encodeUtf8=function(a){return unescape(encodeURIComponent(a))};c.decodeUtf8=function(a){return decodeURIComponent(escape(a))};c.binary={raw:{},hex:{},base64:{}};c.binary.raw.encode=function(a){return String.fromCharCode.apply(null,a)};c.binary.raw.decode=function(a,b,c){var f=b; -f||(f=new Uint8Array(a.length));for(var m=c=c||0,e=0;e> -2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((m&3)<<4|e>>4),isNaN(e)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((e&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(f+=c.substr(0,b)+"\r\n",c=c.substr(b));return f+=c,f};c.binary.base64.decode=function(a,b,c){var f=b;f||(f=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g, -"");c=c||0;for(var e,d,l,h,n=0,p=c;n>4,64!==l&&(f[p++]=(d&15)<<4|l>>2,64!==h&&(f[p++]=(l&3)<<6|h));return b?p-c:f.subarray(0,p)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,f){a=c.encodeUtf8(a);var m=b;m||(m=new Uint8Array(a.length));for(var e=f=f||0,d=0;da?"-":"";var e=parseInt(a=Math.abs(+a|| -0).toFixed(m),10)+"",d=3e;++e)if(a[e]&&0!==a[e].length){var d=c.hexToBytes(a[e]);2>d.length&&m.putByte(0);m.putBytes(d)}else m.fillWithByte(0,f),f=0;return m.getBytes()}; -c.bytesToIP=function(a){return 4===a.length?c.bytesToIPv4(a):16===a.length?c.bytesToIPv6(a):null};c.bytesToIPv4=function(a){if(4!==a.length)return null;for(var b=[],c=0;cf[m].end-f[m].start&&(m= -f.length-1)):f.push({start:h,end:h})}b.push(d)}0l.st&&m.stm.st&&l.st>>=1,0> +24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var m=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];c.encode64=function(a,b){for(var c="",e="",m,f,d,l=0;l> +2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((m&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(e+=c.substr(0,b)+"\r\n",c=c.substr(b));return e+=c,e};c.decode64=function(a){a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var b="",c,e,f,d,l=0;l>4),64!==f&&(b+=String.fromCharCode((e&15)<<4|f>>2),64!==d&&(b+=String.fromCharCode((f&3)<<6|d)));return b};c.encodeUtf8=function(a){return unescape(encodeURIComponent(a))};c.decodeUtf8=function(a){return decodeURIComponent(escape(a))};c.binary={raw:{},hex:{},base64:{}};c.binary.raw.encode=function(a){return String.fromCharCode.apply(null,a)};c.binary.raw.decode=function(a,b,c){var e=b; +e||(e=new Uint8Array(a.length));for(var m=c=c||0,f=0;f> +2),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((m&3)<<4|f>>4),isNaN(f)?c+="\x3d\x3d":(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt((f&15)<<2|d>>6),c+=isNaN(d)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d&63)),b&&c.length>b&&(e+=c.substr(0,b)+"\r\n",c=c.substr(b));return e+=c,e};c.binary.base64.decode=function(a,b,c){var e=b;e||(e=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g, +"");c=c||0;for(var f,d,l,h,n=0,p=c;n>4,64!==l&&(e[p++]=(d&15)<<4|l>>2,64!==h&&(e[p++]=(l&3)<<6|h));return b?p-c:e.subarray(0,p)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,e){a=c.encodeUtf8(a);var m=b;m||(m=new Uint8Array(a.length));for(var f=e=e||0,d=0;da?"-":"";var f=parseInt(a=Math.abs(+a|| +0).toFixed(m),10)+"",d=3f;++f)if(a[f]&&0!==a[f].length){var d=c.hexToBytes(a[f]);2>d.length&&m.putByte(0);m.putBytes(d)}else m.fillWithByte(0,e),e=0;return m.getBytes()}; +c.bytesToIP=function(a){return 4===a.length?c.bytesToIPv4(a):16===a.length?c.bytesToIPv6(a):null};c.bytesToIPv4=function(a){if(4!==a.length)return null;for(var b=[],c=0;ce[m].end-e[m].start&&(m= +e.length-1)):e.push({start:h,end:h})}b.push(d)}0l.st&&m.stm.st&&l.stthis.blockSize<<2?!1:(a.truncate(b),!0)};e.cbc=function(a){a=a||{};this.name="CBC";this.cipher=a.cipher;this.blockSize=a.blockSize||16;this._ints=this.blockSize/4;this._inBlock=Array(this._ints);this._outBlock=Array(this._ints)};e.cbc.prototype.start=function(a){if(null===a.iv){if(!this._prev)throw Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in a))throw Error("Invalid IV parameter.");this._iv=b(a.iv);this._prev=this._iv.slice(0)}};e.cbc.prototype.encrypt= -function(a,b,c){if(a.length()this.blockSize<<2?!1:(a.truncate(b),!0)};e.cfb=function(b){b=b||{};this.name="CFB";this.cipher=b.cipher;this.blockSize=b.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=Array(this._ints);this._partialBlock= -Array(this._ints);this._partialOutput=a.util.createBuffer();this._partialBytes=0};e.cfb.prototype.start=function(a){if(!("iv"in a))throw Error("Invalid IV parameter.");this._iv=b(a.iv);this._inBlock=this._iv.slice(0);this._partialBytes=0};e.cfb.prototype.encrypt=function(a,b,c){var f=a.length();if(0===f)return!0;this.cipher.encrypt(this._inBlock,this._outBlock);if(0===this._partialBytes&&f>=this.blockSize)for(var m=0;m=this.blockSize)for(var m=0;m=this.blockSize)for(var m= -0;m=this.blockSize)for(var e=0;e=this.blockSize){for(var e=0;ef;++f)a[f/32|0]&1<<31-f%32&&(c[0]^=b[0],c[1]^=b[1],c[2]^=b[2],c[3]^=b[3]),this.pow(b,b);return c};e.gcm.prototype.pow=function(a,b){for(var c=a[3]&1,f=3;0>>1|(a[f-1]&1)<<31;b[0]=a[0]>>>1;c&&(b[0]^=this._R)};e.gcm.prototype.tableMultiply=function(a){for(var b=[0,0,0,0],c=0;32>c;++c){var f=this._m[c][a[c/8|0]>>>4*(7-c%8)&15];b[0]^=f[0];b[1]^=f[1];b[2]^=f[2];b[3]^=f[3]}return b};e.gcm.prototype.ghash=function(a,b,c){return b[0]^=c[0],b[1]^=c[1],b[2]^=c[2],b[3]^=c[3],this.tableMultiply(b)}; -e.gcm.prototype.generateHashTable=function(a,b){for(var c=8/b,f=4*c,c=16*c,m=Array(c),e=0;e>>1,f=Array(b);f[c]=a.slice(0);for(var m=c>>>1;0>=1;for(m=2;mb;++b)a[b]=b<<1,a[b+ -128]=b+128<<1^283;k=Array(256);q=Array(256);D=Array(4);v=Array(4);for(b=0;4>b;++b)D[b]=Array(256),v[b]=Array(256);for(var c=0,f=0,m,e,d,l,n,b=0;256>b;++b){l=f^f<<1^f<<2^f<<3^f<<4;l=l>>8^l&255^99;k[c]=l;q[l]=c;n=a[l];m=a[c];e=a[m];d=a[e];n^=n<<24^l<<16^l<<8^l;e=(m^e^d)<<24^(c^d)<<16^(c^e^d)<<8^c^m^d;for(var p=0;4>p;++p)D[p][c]=n,v[p][l]=e,n=n<<24|n>>>8,e=e<<24|e>>>8;0===c?c=f=1:(c=m^a[a[a[m^d]]],f^=a[a[f]])}}function m(a,b){a=a.slice(0);for(var c,f=1,m=a.length,e=g*(m+6+1),d=m;d>>16&255]<<24^k[c>>>8&255]<<16^k[c&255]<<8^k[c>>>24]^z[f]<<24,f++):6>>24]<<24^k[c>>>16&255]<<16^k[c>>>8&255]<<8^k[c&255]),a[d]=a[d-m]^c;if(b){c=v[0];for(var f=v[1],m=v[2],l=v[3],h=a.slice(0),e=a.length,d=0,n=e-g;d>>24]]^f[k[b>>>16&255]]^m[k[b>>>8&255]]^l[k[b&255]];a=h}return a}function e(a,b,c,f){var m=a.length/4-1,e,d,l,h,n;f?(e=v[0], -d=v[1],l=v[2],h=v[3],n=q):(e=D[0],d=D[1],l=D[2],h=D[3],n=k);var p,u,r,g,y,w;p=b[0]^a[0];u=b[f?3:1]^a[1];r=b[2]^a[2];b=b[f?1:3]^a[3];for(var F=3,C=1;C>>24]^d[u>>>16&255]^l[r>>>8&255]^h[b&255]^a[++F],y=e[u>>>24]^d[r>>>16&255]^l[b>>>8&255]^h[p&255]^a[++F],w=e[r>>>24]^d[b>>>16&255]^l[p>>>8&255]^h[u&255]^a[++F],b=e[b>>>24]^d[p>>>16&255]^l[u>>>8&255]^h[r&255]^a[++F],p=g,u=y,r=w;c[0]=n[p>>>24]<<24^n[u>>>16&255]<<16^n[r>>>8&255]<<8^n[b&255]^a[++F];c[f?3:1]=n[u>>>24]<<24^n[r>>>16&255]<<16^n[b>>> -8&255]<<8^n[p&255]^a[++F];c[2]=n[r>>>24]<<24^n[b>>>16&255]<<16^n[p>>>8&255]<<8^n[u&255]^a[++F];c[f?1:3]=n[b>>>24]<<24^n[p>>>16&255]<<16^n[u>>>8&255]<<8^n[r&255]^a[++F]}function d(b){b=b||{};var c="AES-"+(b.mode||"CBC").toUpperCase(),f;b.decrypt?f=a.cipher.createDecipher(c,b.key):f=a.cipher.createCipher(c,b.key);var m=f.start;return f.start=function(b,c){var e=null;c instanceof a.util.ByteBuffer&&(e=c,c={});c=c||{};c.output=e;c.iv=b;m.call(f,c)},f}a.aes=a.aes||{};a.aes.startEncrypting=function(a,b, -c,f){a=d({key:a,output:c,decrypt:!1,mode:f});return a.start(b),a};a.aes.createEncryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!1,mode:b})};a.aes.startDecrypting=function(a,b,c,f){a=d({key:a,output:c,decrypt:!0,mode:f});return a.start(b),a};a.aes.createDecryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!0,mode:b})};a.aes.Algorithm=function(a,b){h||c();var f=this;f.name=a;f.mode=new b({blockSize:16,cipher:{encrypt:function(a,b){return e(f._w,a,b,!1)},decrypt:function(a, -b){return e(f._w,a,b,!0)}}});f._init=!1};a.aes.Algorithm.prototype.initialize=function(b){if(!this._init){var c=b.key,f;if("string"!=typeof c||16!==c.length&&24!==c.length&&32!==c.length){if(a.util.isArray(c)&&(16===c.length||24===c.length||32===c.length)){f=c;for(var c=a.util.createBuffer(),e=0;e>>=2,e=0;ethis.blockSize<<2?!1:(a.truncate(b),!0)};f.cbc=function(a){a=a||{};this.name="CBC";this.cipher=a.cipher;this.blockSize=a.blockSize||16;this._ints=this.blockSize/4;this._inBlock=Array(this._ints);this._outBlock=Array(this._ints)};f.cbc.prototype.start=function(a){if(null===a.iv){if(!this._prev)throw Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in a))throw Error("Invalid IV parameter.");this._iv=b(a.iv);this._prev=this._iv.slice(0)}};f.cbc.prototype.encrypt= +function(a,b,c){if(a.length()this.blockSize<<2?!1:(a.truncate(b),!0)};f.cfb=function(b){b=b||{};this.name="CFB";this.cipher=b.cipher;this.blockSize=b.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=Array(this._ints);this._partialBlock= +Array(this._ints);this._partialOutput=a.util.createBuffer();this._partialBytes=0};f.cfb.prototype.start=function(a){if(!("iv"in a))throw Error("Invalid IV parameter.");this._iv=b(a.iv);this._inBlock=this._iv.slice(0);this._partialBytes=0};f.cfb.prototype.encrypt=function(a,b,c){var e=a.length();if(0===e)return!0;this.cipher.encrypt(this._inBlock,this._outBlock);if(0===this._partialBytes&&e>=this.blockSize)for(var m=0;m=this.blockSize)for(var m=0;m=this.blockSize)for(var m= +0;m=this.blockSize)for(var f=0;f=this.blockSize){for(var f=0;fe;++e)a[e/32|0]&1<<31-e%32&&(c[0]^=b[0],c[1]^=b[1],c[2]^=b[2],c[3]^=b[3]),this.pow(b,b);return c};f.gcm.prototype.pow=function(a,b){for(var c=a[3]&1,e=3;0>>1|(a[e-1]&1)<<31;b[0]=a[0]>>>1;c&&(b[0]^=this._R)};f.gcm.prototype.tableMultiply=function(a){for(var b=[0,0,0,0],c=0;32>c;++c){var e=this._m[c][a[c/8|0]>>>4*(7-c%8)&15];b[0]^=e[0];b[1]^=e[1];b[2]^=e[2];b[3]^=e[3]}return b};f.gcm.prototype.ghash=function(a,b,c){return b[0]^=c[0],b[1]^=c[1],b[2]^=c[2],b[3]^=c[3],this.tableMultiply(b)}; +f.gcm.prototype.generateHashTable=function(a,b){for(var c=8/b,e=4*c,c=16*c,m=Array(c),f=0;f>>1,e=Array(b);e[c]=a.slice(0);for(var m=c>>>1;0>=1;for(m=2;mb;++b)a[b]=b<<1,a[b+ +128]=b+128<<1^283;k=Array(256);q=Array(256);D=Array(4);v=Array(4);for(b=0;4>b;++b)D[b]=Array(256),v[b]=Array(256);for(var c=0,e=0,m,f,d,l,n,b=0;256>b;++b){l=e^e<<1^e<<2^e<<3^e<<4;l=l>>8^l&255^99;k[c]=l;q[l]=c;n=a[l];m=a[c];f=a[m];d=a[f];n^=n<<24^l<<16^l<<8^l;f=(m^f^d)<<24^(c^d)<<16^(c^f^d)<<8^c^m^d;for(var p=0;4>p;++p)D[p][c]=n,v[p][l]=f,n=n<<24|n>>>8,f=f<<24|f>>>8;0===c?c=e=1:(c=m^a[a[a[m^d]]],e^=a[a[e]])}}function m(a,b){a=a.slice(0);for(var c,e=1,m=a.length,f=g*(m+6+1),d=m;d>>16&255]<<24^k[c>>>8&255]<<16^k[c&255]<<8^k[c>>>24]^z[e]<<24,e++):6>>24]<<24^k[c>>>16&255]<<16^k[c>>>8&255]<<8^k[c&255]),a[d]=a[d-m]^c;if(b){c=v[0];for(var e=v[1],m=v[2],l=v[3],h=a.slice(0),f=a.length,d=0,n=f-g;d>>24]]^e[k[b>>>16&255]]^m[k[b>>>8&255]]^l[k[b&255]];a=h}return a}function f(a,b,c,e){var m=a.length/4-1,f,d,l,h,n;e?(f=v[0], +d=v[1],l=v[2],h=v[3],n=q):(f=D[0],d=D[1],l=D[2],h=D[3],n=k);var p,u,r,g,y,w;p=b[0]^a[0];u=b[e?3:1]^a[1];r=b[2]^a[2];b=b[e?1:3]^a[3];for(var F=3,C=1;C>>24]^d[u>>>16&255]^l[r>>>8&255]^h[b&255]^a[++F],y=f[u>>>24]^d[r>>>16&255]^l[b>>>8&255]^h[p&255]^a[++F],w=f[r>>>24]^d[b>>>16&255]^l[p>>>8&255]^h[u&255]^a[++F],b=f[b>>>24]^d[p>>>16&255]^l[u>>>8&255]^h[r&255]^a[++F],p=g,u=y,r=w;c[0]=n[p>>>24]<<24^n[u>>>16&255]<<16^n[r>>>8&255]<<8^n[b&255]^a[++F];c[e?3:1]=n[u>>>24]<<24^n[r>>>16&255]<<16^n[b>>> +8&255]<<8^n[p&255]^a[++F];c[2]=n[r>>>24]<<24^n[b>>>16&255]<<16^n[p>>>8&255]<<8^n[u&255]^a[++F];c[e?1:3]=n[b>>>24]<<24^n[p>>>16&255]<<16^n[u>>>8&255]<<8^n[r&255]^a[++F]}function d(b){b=b||{};var c="AES-"+(b.mode||"CBC").toUpperCase(),e;b.decrypt?e=a.cipher.createDecipher(c,b.key):e=a.cipher.createCipher(c,b.key);var m=e.start;return e.start=function(b,c){var f=null;c instanceof a.util.ByteBuffer&&(f=c,c={});c=c||{};c.output=f;c.iv=b;m.call(e,c)},e}a.aes=a.aes||{};a.aes.startEncrypting=function(a,b, +c,e){a=d({key:a,output:c,decrypt:!1,mode:e});return a.start(b),a};a.aes.createEncryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!1,mode:b})};a.aes.startDecrypting=function(a,b,c,e){a=d({key:a,output:c,decrypt:!0,mode:e});return a.start(b),a};a.aes.createDecryptionCipher=function(a,b){return d({key:a,output:null,decrypt:!0,mode:b})};a.aes.Algorithm=function(a,b){h||c();var e=this;e.name=a;e.mode=new b({blockSize:16,cipher:{encrypt:function(a,b){return f(e._w,a,b,!1)},decrypt:function(a, +b){return f(e._w,a,b,!0)}}});e._init=!1};a.aes.Algorithm.prototype.initialize=function(b){if(!this._init){var c=b.key,e;if("string"!=typeof c||16!==c.length&&24!==c.length&&32!==c.length){if(a.util.isArray(c)&&(16===c.length||24===c.length||32===c.length)){e=c;for(var c=a.util.createBuffer(),f=0;f>>=2,f=0;ff.length()){var m=Error("Too few bytes to parse DER.");throw m.bytes=f.length(),m;}var d=f.getByte(),m=d&192,l=d&31,h=c(f);if(f.length()=m.length())f.putByte(m.length()&127);else{d=m.length();c="";do c+=String.fromCharCode(d&255),d>>>=8;while(0>>=7,f||(d|=128),e.push(d),f=!1;while(0e.length()){var m=Error("Too few bytes to parse DER.");throw m.bytes=e.length(),m;}var d=e.getByte(),m=d&192,l=d&31,h=c(e);if(e.length()=m.length())e.putByte(m.length()&127);else{d=m.length();c="";do c+=String.fromCharCode(d&255),d>>>=8;while(0>>=7,e||(d|=128),f.push(d),e=!1;while(0c[a].length&&(b+="0"),b+=c[a];return b+="Z",b};b.dateToGeneralizedTime=function(a){if("string"==typeof a)return a;var b="",c=[];c.push(""+a.getUTCFullYear());c.push(""+(a.getUTCMonth()+1));c.push(""+a.getUTCDate());c.push(""+a.getUTCHours());c.push(""+a.getUTCMinutes());c.push(""+a.getUTCSeconds());for(a=0;ac[a].length&&(b+="0"),b+=c[a];return b+="Z",b};b.integerToDer=function(b){var c= -a.util.createBuffer();if(-128<=b&&128>b)return c.putSignedInt(b,8);if(-32768<=b&&32768>b)return c.putSignedInt(b,16);if(-8388608<=b&&8388608>b)return c.putSignedInt(b,24);if(-2147483648<=b&&2147483648>b)return c.putSignedInt(b,32);c=Error("Integer too large; max is 32-bits.");throw c.integer=b,c;};b.derToInteger=function(b){"string"==typeof b&&(b=a.util.createBuffer(b));var c=8*b.length();if(32b)return c.putSignedInt(b,8);if(-32768<=b&&32768>b)return c.putSignedInt(b,16);if(-8388608<=b&&8388608>b)return c.putSignedInt(b,24);if(-2147483648<=b&&2147483648>b)return c.putSignedInt(b,32);c=Error("Integer too large; max is 32-bits.");throw c.integer=b,c;};b.derToInteger=function(b){"string"==typeof b&&(b=a.util.createBuffer(b));var c=8*b.length();if(32b;++b)g[b]=Math.floor(4294967296*Math.abs(Math.sin(b+1)));k=!0}function c(a,b,c){for(var f,e,d,l,p,B,n,u=c.length();64<=u;){e=a.h0;d=a.h1;l=a.h2;p=a.h3;for(n=0;16>n;++n)b[n]=c.getInt32Le(),f=p^d&(l^p),f=e+f+g[n]+b[n],B=h[n],e=p,p=l,l=d,d+=f<>>32-B;for(;32>n;++n)f=l^p&(d^l),f=e+ -f+g[n]+b[m[n]],B=h[n],e=p,p=l,l=d,d+=f<>>32-B;for(;48>n;++n)f=d^l^p,f=e+f+g[n]+b[m[n]],B=h[n],e=p,p=l,l=d,d+=f<>>32-B;for(;64>n;++n)f=l^(d|~p),f=e+f+g[n]+b[m[n]],B=h[n],e=p,p=l,l=d,d+=f<>>32-B;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+l|0;a.h3=a.h3+p|0;u-=64}}var e=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=e;e.create=function(){k||b();var f=null,e=a.util.createBuffer(),m=Array(16),l={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0, -messageLength64:[0,0]};return l.start=function(){return l.messageLength=0,l.messageLength64=[0,0],e=a.util.createBuffer(),f={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},l},l.start(),l.update=function(b,d){return"utf8"===d&&(b=a.util.encodeUtf8(b)),l.messageLength+=b.length,l.messageLength64[0]+=b.length/4294967296>>>0,l.messageLength64[1]+=b.length>>>0,e.putBytes(b),c(f,m,e),(2048>>28);var h={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3};c(h,m,b);b=a.util.createBuffer();return b.putInt32Le(h.h0),b.putInt32Le(h.h1),b.putInt32Le(h.h2),b.putInt32Le(h.h3),b},l};var d=null,m=null,h=null,g=null,k=!1}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b, -module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.md5)return b.md5;b.defined.md5=!0;for(var e=0;en;++n)f=c.getInt32(),b[n]=f,p=l^d&(m^l),f=(e<<5|e>>>27)+p+h+1518500249+f,h=l,l=m,m=d<<30|d>>>2,d=e,e=f;for(;20>n;++n)f=b[n-3]^b[n-8]^b[n-14]^b[n-16],f=f<<1|f>>>31,b[n]=f,p=l^d&(m^l),f=(e<<5|e>>>27)+p+h+1518500249+f,h=l,l=m,m=d<<30|d>>>2,d=e,e=f;for(;32>n;++n)f=b[n-3]^b[n-8]^b[n-14]^b[n-16],f=f<<1|f>>>31,b[n]=f,p=d^m^l,f=(e<<5|e>>>27)+p+h+1859775393+f,h=l,l= -m,m=d<<30|d>>>2,d=e,e=f;for(;40>n;++n)f=b[n-6]^b[n-16]^b[n-28]^b[n-32],f=f<<2|f>>>30,b[n]=f,p=d^m^l,f=(e<<5|e>>>27)+p+h+1859775393+f,h=l,l=m,m=d<<30|d>>>2,d=e,e=f;for(;60>n;++n)f=b[n-6]^b[n-16]^b[n-28]^b[n-32],f=f<<2|f>>>30,b[n]=f,p=d&m|l&(d^m),f=(e<<5|e>>>27)+p+h+2400959708+f,h=l,l=m,m=d<<30|d>>>2,d=e,e=f;for(;80>n;++n)f=b[n-6]^b[n-16]^b[n-28]^b[n-32],f=f<<2|f>>>30,b[n]=f,p=d^m^l,f=(e<<5|e>>>27)+p+h+3395469782+f,h=l,l=m,m=d<<30|d>>>2,d=e,e=f;a.h0=a.h0+e|0;a.h1=a.h1+d|0;a.h2=a.h2+m|0;a.h3=a.h3+l| -0;a.h4=a.h4+h|0;u-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){d||(e=String.fromCharCode(128),e+=a.util.fillString(String.fromCharCode(0),64),d=!0);var c=null,f=a.util.createBuffer(),m=Array(80),l={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0]};return l.start=function(){return l.messageLength=0,l.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1732584193,h1:4023233417, -h2:2562383102,h3:271733878,h4:3285377520},l},l.start(),l.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),l.messageLength+=e.length,l.messageLength64[0]+=e.length/4294967296>>>0,l.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,m,f),(2048>>28);d.putInt32(l.messageLength64[1]<< -3);var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(h,m,d);d=a.util.createBuffer();return d.putInt32(h.h0),d.putInt32(h.h1),d.putInt32(h.h2),d.putInt32(h.h3),d.putInt32(h.h4),d},l};var e=null,d=!1}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha1)return b.sha1; -b.defined.sha1=!0;for(var e=0;eh;++h)b[h]=c.getInt32(); -for(;64>h;++h)f=b[h-2],f=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,e=b[h-15],e=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,b[h]=f+b[h-7]+e+b[h-16]|0;p=a.h0;n=a.h1;u=a.h2;B=a.h3;g=a.h4;r=a.h5;k=a.h6;y=a.h7;for(h=0;64>h;++h)f=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),d=k^g&(r^k),e=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),l=p&n|u&(p^n),f=y+f+d+m[h]+b[h],e+=l,y=k,k=r,r=g,g=B+f|0,B=u,u=n,n=p,p=f+e|0;a.h0=a.h0+p|0;a.h1=a.h1+n|0;a.h2=a.h2+u|0;a.h3=a.h3+B|0;a.h4=a.h4+g|0;a.h5=a.h5+r|0;a.h6=a.h6+k|0;a.h7=a.h7+y|0;C-= -64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){d||(e=String.fromCharCode(128),e+=a.util.fillString(String.fromCharCode(0),64),m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349, -2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=!0);var c=null,f=a.util.createBuffer(),l=Array(64),h={algorithm:"sha256",blockLength:64,digestLength:32, -messageLength:0,messageLength64:[0,0]};return h.start=function(){return h.messageLength=0,h.messageLength64=[0,0],f=a.util.createBuffer(),c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},h},h.start(),h.update=function(e,d){return"utf8"===d&&(e=a.util.encodeUtf8(e)),h.messageLength+=e.length,h.messageLength64[0]+=e.length/4294967296>>>0,h.messageLength64[1]+=e.length>>>0,f.putBytes(e),b(c,l,f),(2048>>28);d.putInt32(h.messageLength64[1]<<3);var m={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(m,l,d);d=a.util.createBuffer();return d.putInt32(m.h0),d.putInt32(m.h1),d.putInt32(m.h2),d.putInt32(m.h3),d.putInt32(m.h4),d.putInt32(m.h5),d.putInt32(m.h6),d.putInt32(m.h7),d},h};var e=null,d=!1,m=null} -if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha256)return b.sha256;b.defined.sha256=!0;for(var e=0;eU;++U)b[U][0]=c.getInt32()>>>0,b[U][1]=c.getInt32()>>>0;for(;80>U;++U)l=b[U-2],u=l[0],l=l[1],f=((u>>>19|l<<13)^(l>>>29|u<<3)^u>>>6)>>>0,e=((u<<13|l>>>19)^(l<<3|u>>>29)^(u<<26|l>>>6))>>> -0,l=b[U-15],u=l[0],l=l[1],d=((u>>>1|l<<31)^(u>>>8|l<<24)^u>>>7)>>>0,m=((u<<31|l>>>1)^(u<<24|l>>>8)^(u<<25|l>>>7))>>>0,u=b[U-7],g=b[U-16],l=e+u[1]+m+g[1],b[U][0]=f+u[0]+d+g[0]+(l/4294967296>>>0)>>>0,b[U][1]=l>>>0;u=a[0][0];g=a[0][1];r=a[1][0];k=a[1][1];y=a[2][0];q=a[2][1];C=a[3][0];z=a[3][1];T=a[4][0];S=a[4][1];K=a[5][0];M=a[5][1];R=a[6][0];O=a[6][1];G=a[7][0];L=a[7][1];for(U=0;80>U;++U)f=((T>>>14|S<<18)^(T>>>18|S<<14)^(S>>>9|T<<23))>>>0,l=((T<<18|S>>>14)^(T<<14|S>>>18)^(S<<23|T>>>9))>>>0,e=(R^T&(K^ -R))>>>0,p=(O^S&(M^O))>>>0,d=((u>>>28|g<<4)^(g>>>2|u<<30)^(g>>>7|u<<25))>>>0,m=((u<<4|g>>>28)^(g<<30|u>>>2)^(g<<25|u>>>7))>>>0,B=(u&r|y&(u^r))>>>0,n=(g&k|q&(g^k))>>>0,l=L+l+p+h[U][1]+b[U][1],f=G+f+e+h[U][0]+b[U][0]+(l/4294967296>>>0)>>>0,e=l>>>0,l=m+n,d=d+B+(l/4294967296>>>0)>>>0,m=l>>>0,G=R,L=O,R=K,O=M,K=T,M=S,l=z+e,T=C+f+(l/4294967296>>>0)>>>0,S=l>>>0,C=y,z=q,y=r,q=k,r=u,k=g,l=e+m,u=f+d+(l/4294967296>>>0)>>>0,g=l>>>0;l=a[0][1]+g;a[0][0]=a[0][0]+u+(l/4294967296>>>0)>>>0;a[0][1]=l>>>0;l=a[1][1]+k; +" (Set)";break;case b.Type.PRINTABLESTRING:d+=" (Printable String)";break;case b.Type.IA5String:d+=" (IA5String (ASCII))";break;case b.Type.UTCTIME:d+=" (UTC time)";break;case b.Type.GENERALIZEDTIME:d+=" (Generalized time)";break;case b.Type.BMPSTRING:d+=" (BMP String)"}else d+=c.type;d=d+"\n"+(l+"Constructed: "+c.constructed+"\n");if(c.composed){for(var p=0,n="",h=0;hb;++b)g[b]=Math.floor(4294967296*Math.abs(Math.sin(b+1)));k=!0}function c(a,b,c){for(var e,f,d,l,p,B,n,u=c.length();64<=u;){f=a.h0;d=a.h1;l=a.h2;p=a.h3;for(n=0;16>n;++n)b[n]=c.getInt32Le(),e=p^d&(l^p),e=f+e+g[n]+b[n],B=h[n],f=p,p=l,l=d,d+=e<>>32-B;for(;32>n;++n)e=l^p&(d^l),e=f+ +e+g[n]+b[m[n]],B=h[n],f=p,p=l,l=d,d+=e<>>32-B;for(;48>n;++n)e=d^l^p,e=f+e+g[n]+b[m[n]],B=h[n],f=p,p=l,l=d,d+=e<>>32-B;for(;64>n;++n)e=l^(d|~p),e=f+e+g[n]+b[m[n]],B=h[n],f=p,p=l,l=d,d+=e<>>32-B;a.h0=a.h0+f|0;a.h1=a.h1+d|0;a.h2=a.h2+l|0;a.h3=a.h3+p|0;u-=64}}var f=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=f;f.create=function(){k||b();var e=null,f=a.util.createBuffer(),m=Array(16),l={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0, +messageLength64:[0,0]};return l.start=function(){return l.messageLength=0,l.messageLength64=[0,0],f=a.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},l},l.start(),l.update=function(b,d){return"utf8"===d&&(b=a.util.encodeUtf8(b)),l.messageLength+=b.length,l.messageLength64[0]+=b.length/4294967296>>>0,l.messageLength64[1]+=b.length>>>0,f.putBytes(b),c(e,m,f),(2048>>28);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};c(h,m,b);b=a.util.createBuffer();return b.putInt32Le(h.h0),b.putInt32Le(h.h1),b.putInt32Le(h.h2),b.putInt32Le(h.h3),b},l};var d=null,m=null,h=null,g=null,k=!1}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b, +module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.md5)return b.md5;b.defined.md5=!0;for(var f=0;fn;++n)e=c.getInt32(),b[n]=e,p=l^d&(m^l),e=(f<<5|f>>>27)+p+h+1518500249+e,h=l,l=m,m=d<<30|d>>>2,d=f,f=e;for(;20>n;++n)e=b[n-3]^b[n-8]^b[n-14]^b[n-16],e=e<<1|e>>>31,b[n]=e,p=l^d&(m^l),e=(f<<5|f>>>27)+p+h+1518500249+e,h=l,l=m,m=d<<30|d>>>2,d=f,f=e;for(;32>n;++n)e=b[n-3]^b[n-8]^b[n-14]^b[n-16],e=e<<1|e>>>31,b[n]=e,p=d^m^l,e=(f<<5|f>>>27)+p+h+1859775393+e,h=l,l= +m,m=d<<30|d>>>2,d=f,f=e;for(;40>n;++n)e=b[n-6]^b[n-16]^b[n-28]^b[n-32],e=e<<2|e>>>30,b[n]=e,p=d^m^l,e=(f<<5|f>>>27)+p+h+1859775393+e,h=l,l=m,m=d<<30|d>>>2,d=f,f=e;for(;60>n;++n)e=b[n-6]^b[n-16]^b[n-28]^b[n-32],e=e<<2|e>>>30,b[n]=e,p=d&m|l&(d^m),e=(f<<5|f>>>27)+p+h+2400959708+e,h=l,l=m,m=d<<30|d>>>2,d=f,f=e;for(;80>n;++n)e=b[n-6]^b[n-16]^b[n-28]^b[n-32],e=e<<2|e>>>30,b[n]=e,p=d^m^l,e=(f<<5|f>>>27)+p+h+3395469782+e,h=l,l=m,m=d<<30|d>>>2,d=f,f=e;a.h0=a.h0+f|0;a.h1=a.h1+d|0;a.h2=a.h2+m|0;a.h3=a.h3+l| +0;a.h4=a.h4+h|0;u-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){d||(f=String.fromCharCode(128),f+=a.util.fillString(String.fromCharCode(0),64),d=!0);var c=null,e=a.util.createBuffer(),m=Array(80),l={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0]};return l.start=function(){return l.messageLength=0,l.messageLength64=[0,0],e=a.util.createBuffer(),c={h0:1732584193,h1:4023233417, +h2:2562383102,h3:271733878,h4:3285377520},l},l.start(),l.update=function(f,d){return"utf8"===d&&(f=a.util.encodeUtf8(f)),l.messageLength+=f.length,l.messageLength64[0]+=f.length/4294967296>>>0,l.messageLength64[1]+=f.length>>>0,e.putBytes(f),b(c,m,e),(2048>>28);d.putInt32(l.messageLength64[1]<< +3);var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(h,m,d);d=a.util.createBuffer();return d.putInt32(h.h0),d.putInt32(h.h1),d.putInt32(h.h2),d.putInt32(h.h3),d.putInt32(h.h4),d},l};var f=null,d=!1}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha1)return b.sha1; +b.defined.sha1=!0;for(var f=0;fh;++h)b[h]=c.getInt32(); +for(;64>h;++h)e=b[h-2],e=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,f=b[h-15],f=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,b[h]=e+b[h-7]+f+b[h-16]|0;p=a.h0;n=a.h1;u=a.h2;B=a.h3;g=a.h4;r=a.h5;k=a.h6;y=a.h7;for(h=0;64>h;++h)e=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),d=k^g&(r^k),f=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),l=p&n|u&(p^n),e=y+e+d+m[h]+b[h],f+=l,y=k,k=r,r=g,g=B+e|0,B=u,u=n,n=p,p=e+f|0;a.h0=a.h0+p|0;a.h1=a.h1+n|0;a.h2=a.h2+u|0;a.h3=a.h3+B|0;a.h4=a.h4+g|0;a.h5=a.h5+r|0;a.h6=a.h6+k|0;a.h7=a.h7+y|0;C-= +64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){d||(f=String.fromCharCode(128),f+=a.util.fillString(String.fromCharCode(0),64),m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349, +2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=!0);var c=null,e=a.util.createBuffer(),l=Array(64),h={algorithm:"sha256",blockLength:64,digestLength:32, +messageLength:0,messageLength64:[0,0]};return h.start=function(){return h.messageLength=0,h.messageLength64=[0,0],e=a.util.createBuffer(),c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},h},h.start(),h.update=function(f,d){return"utf8"===d&&(f=a.util.encodeUtf8(f)),h.messageLength+=f.length,h.messageLength64[0]+=f.length/4294967296>>>0,h.messageLength64[1]+=f.length>>>0,e.putBytes(f),b(c,l,e),(2048>>28);d.putInt32(h.messageLength64[1]<<3);var m={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(m,l,d);d=a.util.createBuffer();return d.putInt32(m.h0),d.putInt32(m.h1),d.putInt32(m.h2),d.putInt32(m.h3),d.putInt32(m.h4),d.putInt32(m.h5),d.putInt32(m.h6),d.putInt32(m.h7),d},h};var f=null,d=!1,m=null} +if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.sha256)return b.sha256;b.defined.sha256=!0;for(var f=0;fU;++U)b[U][0]=c.getInt32()>>>0,b[U][1]=c.getInt32()>>>0;for(;80>U;++U)l=b[U-2],u=l[0],l=l[1],e=((u>>>19|l<<13)^(l>>>29|u<<3)^u>>>6)>>>0,f=((u<<13|l>>>19)^(l<<3|u>>>29)^(u<<26|l>>>6))>>> +0,l=b[U-15],u=l[0],l=l[1],d=((u>>>1|l<<31)^(u>>>8|l<<24)^u>>>7)>>>0,m=((u<<31|l>>>1)^(u<<24|l>>>8)^(u<<25|l>>>7))>>>0,u=b[U-7],g=b[U-16],l=f+u[1]+m+g[1],b[U][0]=e+u[0]+d+g[0]+(l/4294967296>>>0)>>>0,b[U][1]=l>>>0;u=a[0][0];g=a[0][1];r=a[1][0];k=a[1][1];y=a[2][0];q=a[2][1];C=a[3][0];z=a[3][1];T=a[4][0];S=a[4][1];K=a[5][0];M=a[5][1];R=a[6][0];O=a[6][1];G=a[7][0];L=a[7][1];for(U=0;80>U;++U)e=((T>>>14|S<<18)^(T>>>18|S<<14)^(S>>>9|T<<23))>>>0,l=((T<<18|S>>>14)^(T<<14|S>>>18)^(S<<23|T>>>9))>>>0,f=(R^T&(K^ +R))>>>0,p=(O^S&(M^O))>>>0,d=((u>>>28|g<<4)^(g>>>2|u<<30)^(g>>>7|u<<25))>>>0,m=((u<<4|g>>>28)^(g<<30|u>>>2)^(g<<25|u>>>7))>>>0,B=(u&r|y&(u^r))>>>0,n=(g&k|q&(g^k))>>>0,l=L+l+p+h[U][1]+b[U][1],e=G+e+f+h[U][0]+b[U][0]+(l/4294967296>>>0)>>>0,f=l>>>0,l=m+n,d=d+B+(l/4294967296>>>0)>>>0,m=l>>>0,G=R,L=O,R=K,O=M,K=T,M=S,l=z+f,T=C+e+(l/4294967296>>>0)>>>0,S=l>>>0,C=y,z=q,y=r,q=k,r=u,k=g,l=f+m,u=e+d+(l/4294967296>>>0)>>>0,g=l>>>0;l=a[0][1]+g;a[0][0]=a[0][0]+u+(l/4294967296>>>0)>>>0;a[0][1]=l>>>0;l=a[1][1]+k; a[1][0]=a[1][0]+r+(l/4294967296>>>0)>>>0;a[1][1]=l>>>0;l=a[2][1]+q;a[2][0]=a[2][0]+y+(l/4294967296>>>0)>>>0;a[2][1]=l>>>0;l=a[3][1]+z;a[3][0]=a[3][0]+C+(l/4294967296>>>0)>>>0;a[3][1]=l>>>0;l=a[4][1]+S;a[4][0]=a[4][0]+T+(l/4294967296>>>0)>>>0;a[4][1]=l>>>0;l=a[5][1]+M;a[5][0]=a[5][0]+K+(l/4294967296>>>0)>>>0;a[5][1]=l>>>0;l=a[6][1]+O;a[6][0]=a[6][0]+R+(l/4294967296>>>0)>>>0;a[6][1]=l>>>0;l=a[7][1]+L;a[7][0]=a[7][0]+G+(l/4294967296>>>0)>>>0;a[7][1]=l>>>0;oa-=128}}var c=a.sha512=a.sha512||{};a.md=a.md|| -{};a.md.algorithms=a.md.algorithms||{};a.md.sha512=a.md.algorithms.sha512=c;var e=a.sha384=a.sha512.sha384=a.sha512.sha384||{};e.create=function(){return c.create("SHA-384")};a.md.sha384=a.md.algorithms.sha384=e;a.sha512.sha256=a.sha512.sha256||{create:function(){return c.create("SHA-512/256")}};a.md["sha512/256"]=a.md.algorithms["sha512/256"]=a.sha512.sha256;a.sha512.sha224=a.sha512.sha224||{create:function(){return c.create("SHA-512/224")}};a.md["sha512/224"]=a.md.algorithms["sha512/224"]=a.sha512.sha224; +{};a.md.algorithms=a.md.algorithms||{};a.md.sha512=a.md.algorithms.sha512=c;var f=a.sha384=a.sha512.sha384=a.sha512.sha384||{};f.create=function(){return c.create("SHA-384")};a.md.sha384=a.md.algorithms.sha384=f;a.sha512.sha256=a.sha512.sha256||{create:function(){return c.create("SHA-512/256")}};a.md["sha512/256"]=a.md.algorithms["sha512/256"]=a.sha512.sha256;a.sha512.sha224=a.sha512.sha224||{create:function(){return c.create("SHA-512/224")}};a.md["sha512/224"]=a.md.algorithms["sha512/224"]=a.sha512.sha224; c.create=function(c){m||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),128),h=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458], [4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350, 1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044], [2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],g={"SHA-512":[[1779033703,4089235720], [3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],"SHA-384":[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],"SHA-512/256":[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141, -1401305490],[721525244,746961066],[246885852,2177182882]],"SHA-512/224":[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]]},m=!0);"undefined"==typeof c&&(c="SHA-512");if(c in g){for(var f=g[c],e=null,l=a.util.createBuffer(),p=Array(80),n=0;80>n;++n)p[n]=Array(2);var u={algorithm:c.replace("-","").toLowerCase(),blockLength:128,digestLength:64,messageLength:0,messageLength128:[0, -0,0,0]};return u.start=function(){u.messageLength=0;u.messageLength128=[0,0,0,0];l=a.util.createBuffer();e=Array(f.length);for(var b=0;b>>0,f>>>0];for(var d=3;0<=d;--d)u.messageLength128[d]+=f[1],f[1]=f[0]+(u.messageLength128[d]/4294967296>>>0),u.messageLength128[d]>>>=0,f[0]=f[1]/4294967296>>>0;return l.putBytes(c),b(e,p,l),(2048h;++h)m[h]=u.messageLength128[h]<<3|u.messageLength128[h-1]>>>28;m[3]=u.messageLength128[3]<<3;f.putInt32(m[0]);f.putInt32(m[1]);f.putInt32(m[2]);f.putInt32(m[3]);m=Array(e.length);for(h=0;hb.blockLength&&(b.start(),b.update(d.bytes()),d=b.digest());c=a.util.createBuffer();e=a.util.createBuffer();m=d.length();for(l=0;ln;++n)p[n]=Array(2);var u={algorithm:c.replace("-","").toLowerCase(),blockLength:128,digestLength:64,messageLength:0,messageLength128:[0, +0,0,0]};return u.start=function(){u.messageLength=0;u.messageLength128=[0,0,0,0];l=a.util.createBuffer();f=Array(e.length);for(var b=0;b>>0,e>>>0];for(var d=3;0<=d;--d)u.messageLength128[d]+=e[1],e[1]=e[0]+(u.messageLength128[d]/4294967296>>>0),u.messageLength128[d]>>>=0,e[0]=e[1]/4294967296>>>0;return l.putBytes(c),b(f,p,l),(2048h;++h)m[h]=u.messageLength128[h]<<3|u.messageLength128[h-1]>>>28;m[3]=u.messageLength128[3]<<3;e.putInt32(m[0]);e.putInt32(m[1]);e.putInt32(m[2]);e.putInt32(m[3]);m=Array(f.length);for(h=0;hb.blockLength&&(b.start(),b.update(d.bytes()),d=b.digest());c=a.util.createBuffer();f=a.util.createBuffer();m=d.length();for(l=0;l>>4^p)&252645135;p^=b;f^=b<<4;b=(f>>>16^p)&65535;p^=b;f^=b<<16;b=(p>>>2^f)&858993459;f^=b;p^=b<<2;b=(p>>>8^f)&16711935;f^=b;p^=b<<8;b=(f>>>1^p)&1431655765;p^=b;f^=b<<1;f=f<<1|f>>>31;for(var p=p<<1|p>>>31,n=0;n>>4|p<<28)^a[y+1];b=f;f=p;p=b^(m[w>>>24&63]|g[w>>>16&63]|q[w>>>8&63]|D[w&63]| -d[P>>>24&63]|h[P>>>16&63]|k[P>>>8&63]|z[P&63])}b=f;f=p;p=b}f=f>>>1|f<<31;p=p>>>1|p<<31;b=(f>>>1^p)&1431655765;p^=b;f^=b<<1;b=(p>>>8^f)&16711935;f^=b;p^=b<<8;b=(p>>>2^f)&858993459;f^=b;p^=b<<2;b=(f>>>16^p)&65535;p^=b;f^=b<<16;b=(f>>>4^p)&252645135;c[0]=f^b<<4;c[1]=p^b}function e(b){b=b||{};var c="DES-"+(b.mode||"CBC").toUpperCase(),f;b.decrypt?f=a.cipher.createDecipher(c,b.key):f=a.cipher.createCipher(c,b.key);var e=f.start;return f.start=function(b,c){var d=null;c instanceof a.util.ByteBuffer&&(d= -c,c={});c=c||{};c.output=d;c.iv=b;e.call(f,c)},f}a.des=a.des||{};a.des.startEncrypting=function(a,b,c,f){a=e({key:a,output:c,decrypt:!1,mode:f||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createEncryptionCipher=function(a,b){return e({key:a,output:null,decrypt:!1,mode:b})};a.des.startDecrypting=function(a,b,c,f){a=e({key:a,output:c,decrypt:!0,mode:f||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createDecryptionCipher=function(a,b){return e({key:a,output:null,decrypt:!0,mode:b})};a.des.Algorithm= -function(a,b){var f=this;f.name=a;f.mode=new b({blockSize:8,cipher:{encrypt:function(a,b){return c(f._keys,a,b,!1)},decrypt:function(a,b){return c(f._keys,a,b,!0)}}});f._init=!1};a.des.Algorithm.prototype.initialize=function(b){if(!this._init){b=a.util.createBuffer(b.key);if(0===this.name.indexOf("3DES")&&24!==b.length())throw Error("Invalid Triple-DES key size: "+8*b.length());for(var c=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964], -f=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],e=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],d=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],l=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],m=[0,1024,32,1056,0,1024,32,1056,33554432,33555456, -33554464,33555488,33554432,33555456,33554464,33555488],h=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],p=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],n=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024, -268436480,1032,268436488],g=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],r=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],k=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],y=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],q=8>>4^L)&252645135;L^=v;G^=v<<4;v=(L>>>-16^G)&65535;G^=v;L^=v<<-16;v=(G>>>2^L)&858993459;L^=v;G^=v<<2;v=(L>>>-16^G)&65535;G^=v;L^=v<<-16;v=(G>>>1^L)&1431655765;L^=v;G^=v<<1;v=(L>>>8^G)&16711935;G^=v;L^=v<<8;v=(G>>>1^L)&1431655765;L^=v;G^=v<<1;v=G<<8|L>>>20&240;for(var G=L<<24|L<<8&16711680|L>>>8&65280|L>>>24&240,L=v,U=0;U>>26,L=L<<2|L>>>26):(G=G<<1|G>>>27,L=L<<1|L>>>27);var G=G&-15,L=L&-15,oa=c[G>>>28]|f[G>>>24&15]| -e[G>>>20&15]|d[G>>>16&15]|l[G>>>12&15]|m[G>>>8&15]|h[G>>>4&15],pa=p[L>>>28]|n[L>>>24&15]|u[L>>>20&15]|g[L>>>16&15]|r[L>>>12&15]|k[L>>>8&15]|y[L>>>4&15];v=(pa>>>16^oa)&65535;C[D++]=oa^v;C[D++]=pa^v<<16}}this._keys=C;this._init=!0}};b("DES-ECB",a.cipher.modes.ecb);b("DES-CBC",a.cipher.modes.cbc);b("DES-CFB",a.cipher.modes.cfb);b("DES-OFB",a.cipher.modes.ofb);b("DES-CTR",a.cipher.modes.ctr);b("3DES-ECB",a.cipher.modes.ecb);b("3DES-CBC",a.cipher.modes.cbc);b("3DES-CFB",a.cipher.modes.cfb);b("3DES-OFB", +l.procType&&!l.dekInfo)throw Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".');}}if(0===c.length)throw Error("Invalid PEM formatted message.");return c}}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.pem)return b.pem; +b.defined.pem=!0;for(var f=0;f>>4^p)&252645135;p^=b;e^=b<<4;b=(e>>>16^p)&65535;p^=b;e^=b<<16;b=(p>>>2^e)&858993459;e^=b;p^=b<<2;b=(p>>>8^e)&16711935;e^=b;p^=b<<8;b=(e>>>1^p)&1431655765;p^=b;e^=b<<1;e=e<<1|e>>>31;for(var p=p<<1|p>>>31,n=0;n>>4|p<<28)^a[y+1];b=e;e=p;p=b^(m[w>>>24&63]|g[w>>>16&63]|q[w>>>8&63]|D[w&63]| +d[P>>>24&63]|h[P>>>16&63]|k[P>>>8&63]|z[P&63])}b=e;e=p;p=b}e=e>>>1|e<<31;p=p>>>1|p<<31;b=(e>>>1^p)&1431655765;p^=b;e^=b<<1;b=(p>>>8^e)&16711935;e^=b;p^=b<<8;b=(p>>>2^e)&858993459;e^=b;p^=b<<2;b=(e>>>16^p)&65535;p^=b;e^=b<<16;b=(e>>>4^p)&252645135;c[0]=e^b<<4;c[1]=p^b}function f(b){b=b||{};var c="DES-"+(b.mode||"CBC").toUpperCase(),e;b.decrypt?e=a.cipher.createDecipher(c,b.key):e=a.cipher.createCipher(c,b.key);var f=e.start;return e.start=function(b,c){var d=null;c instanceof a.util.ByteBuffer&&(d= +c,c={});c=c||{};c.output=d;c.iv=b;f.call(e,c)},e}a.des=a.des||{};a.des.startEncrypting=function(a,b,c,e){a=f({key:a,output:c,decrypt:!1,mode:e||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createEncryptionCipher=function(a,b){return f({key:a,output:null,decrypt:!1,mode:b})};a.des.startDecrypting=function(a,b,c,e){a=f({key:a,output:c,decrypt:!0,mode:e||(null===b?"ECB":"CBC")});return a.start(b),a};a.des.createDecryptionCipher=function(a,b){return f({key:a,output:null,decrypt:!0,mode:b})};a.des.Algorithm= +function(a,b){var e=this;e.name=a;e.mode=new b({blockSize:8,cipher:{encrypt:function(a,b){return c(e._keys,a,b,!1)},decrypt:function(a,b){return c(e._keys,a,b,!0)}}});e._init=!1};a.des.Algorithm.prototype.initialize=function(b){if(!this._init){b=a.util.createBuffer(b.key);if(0===this.name.indexOf("3DES")&&24!==b.length())throw Error("Invalid Triple-DES key size: "+8*b.length());for(var c=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964], +e=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],f=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],d=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],l=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],m=[0,1024,32,1056,0,1024,32,1056,33554432,33555456, +33554464,33555488,33554432,33555456,33554464,33555488],h=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],p=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],n=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],g=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024, +268436480,1032,268436488],u=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],k=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],r=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],y=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],q=8>>4^L)&252645135;L^=v;G^=v<<4;v=(L>>>-16^G)&65535;G^=v;L^=v<<-16;v=(G>>>2^L)&858993459;L^=v;G^=v<<2;v=(L>>>-16^G)&65535;G^=v;L^=v<<-16;v=(G>>>1^L)&1431655765;L^=v;G^=v<<1;v=(L>>>8^G)&16711935;G^=v;L^=v<<8;v=(G>>>1^L)&1431655765;L^=v;G^=v<<1;v=G<<8|L>>>20&240;for(var G=L<<24|L<<8&16711680|L>>>8&65280|L>>>24&240,L=v,U=0;U>>26,L=L<<2|L>>>26):(G=G<<1|G>>>27,L=L<<1|L>>>27);var G=G&-15,L=L&-15,oa=c[G>>>28]|e[G>>>24&15]| +f[G>>>20&15]|d[G>>>16&15]|l[G>>>12&15]|m[G>>>8&15]|h[G>>>4&15],pa=p[L>>>28]|n[L>>>24&15]|g[L>>>20&15]|u[L>>>16&15]|k[L>>>12&15]|r[L>>>8&15]|y[L>>>4&15];v=(pa>>>16^oa)&65535;C[D++]=oa^v;C[D++]=pa^v<<16}}this._keys=C;this._init=!0}};b("DES-ECB",a.cipher.modes.ecb);b("DES-CBC",a.cipher.modes.cbc);b("DES-CFB",a.cipher.modes.cfb);b("DES-OFB",a.cipher.modes.ofb);b("DES-CTR",a.cipher.modes.ctr);b("3DES-ECB",a.cipher.modes.ecb);b("3DES-CBC",a.cipher.modes.cbc);b("3DES-CFB",a.cipher.modes.cfb);b("3DES-OFB", a.cipher.modes.ofb);b("3DES-CTR",a.cipher.modes.ctr);var d=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756], m=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616, 1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],h=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736, @@ -189,163 +189,163 @@ m=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-214 34078976,1073742080],q=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0, 541081600,536870912,4194320,536887312],z=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912, 2048,2097154],D=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696]} -if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.des)return b.des;b.defined.des=!0;for(var e=0;eu)return h(null,y);r.start(null,null);r.update(c);r.update(a.util.int32ToBytes(H)); -B=C=r.digest().getBytes();t=2;n()}function n(){if(t<=d)return r.start(null,null),r.update(C),q=r.digest().getBytes(),B=a.util.xorBytes(B,q,g),C=q,++t,a.util.setImmediate(n);y+=H4294967295*g){b=Error("Derived key is too long.");if(h)return h(b);throw b;}var u=Math.ceil(l/g),k=l-(u-1)*g,r=a.hmac.create(); -r.start(m,b);var y="",B,q,C;if(!h){for(var H=1;H<=u;++H){r.start(null,null);r.update(c);r.update(a.util.int32ToBytes(H));B=C=r.digest().getBytes();for(var t=2;t<=d;++t)r.start(null,null),r.update(C),q=r.digest().getBytes(),B=a.util.xorBytes(B,q,g),C=q;y+=Hc;++c)b=31===b?2147483648:b<<2,0===b%l.reseeds&&(a.update(l.pools[c].digest().getBytes()),l.pools[c].start());b=a.digest().getBytes();a.start();a.update(b);a=a.digest().getBytes();l.key=l.plugin.formatKey(b);l.seed=l.plugin.formatSeed(a);l.reseeds=4294967295===l.reseeds?0:l.reseeds+1;l.generated=0}function d(b){var c=null;if("undefined"!=typeof window){var f=window.crypto||window.msCrypto;f&&f.getRandomValues&&(c=function(a){return f.getRandomValues(a)})}var e=a.util.createBuffer();if(c)for(;e.length()< -b;){var d=Math.max(1,Math.min(b-e.length(),65536)/4),l=new Uint32Array(Math.floor(d));try{for(c(l),d=0;d>16),d+=(c&32767)<<16,d+=c>>15,d=(d&2147483647)+(d>>31),c=d&4294967295,d=0;3>d;++d)l=c>>>(d<<3),l^=Math.floor(256*Math.random()),e.putByte(String.fromCharCode(l&255));return e.getBytes(b)} -var l={plugin:b,key:null,seed:null,time:null,reseeds:0,generated:0};b=b.md;for(var m=Array(32),h=0;32>h;++h)m[h]=b.create();return l.pools=m,l.pool=0,l.generate=function(b,f){function e(n){if(n)return f(n);if(B.length()>=b)return f(null,B.getBytes(b));1048575> -f&255);l.collect(c)},l.registerWorker=function(a){a===self?l.seedFile=function(a,b){function c(a){a=a.data;a.forge&&a.forge.prng&&(self.removeEventListener("message",c),b(a.forge.prng.err,a.forge.prng.bytes))}self.addEventListener("message",c);self.postMessage({forge:{prng:{needed:a}}})}:a.addEventListener("message",function(b){b=b.data;b.forge&&b.forge.prng&&l.seedFile(b.forge.prng.needed,function(b,c){a.postMessage({forge:{prng:{err:b,bytes:c}}})})})},l}}if("function"!=typeof a){if("object"!=typeof module|| -!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.prng)return b.prng;b.defined.prng=!0;for(var e=0;eu)return h(null,y);r.start(null,null);r.update(c);r.update(a.util.int32ToBytes(H)); +B=C=r.digest().getBytes();t=2;n()}function n(){if(t<=d)return r.start(null,null),r.update(C),q=r.digest().getBytes(),B=a.util.xorBytes(B,q,g),C=q,++t,a.util.setImmediate(n);y+=H4294967295*g){b=Error("Derived key is too long.");if(h)return h(b);throw b;}var u=Math.ceil(l/g),k=l-(u-1)*g,r=a.hmac.create(); +r.start(m,b);var y="",B,q,C;if(!h){for(var H=1;H<=u;++H){r.start(null,null);r.update(c);r.update(a.util.int32ToBytes(H));B=C=r.digest().getBytes();for(var t=2;t<=d;++t)r.start(null,null),r.update(C),q=r.digest().getBytes(),B=a.util.xorBytes(B,q,g),C=q;y+=Hc;++c)b=31===b?2147483648:b<<2,0===b%l.reseeds&&(a.update(l.pools[c].digest().getBytes()),l.pools[c].start());b=a.digest().getBytes();a.start();a.update(b);a=a.digest().getBytes();l.key=l.plugin.formatKey(b);l.seed=l.plugin.formatSeed(a);l.reseeds=4294967295===l.reseeds?0:l.reseeds+1;l.generated=0}function d(b){var c=null;if("undefined"!=typeof window){var e=window.crypto||window.msCrypto;e&&e.getRandomValues&&(c=function(a){return e.getRandomValues(a)})}var f=a.util.createBuffer();if(c)for(;f.length()< +b;){var d=Math.max(1,Math.min(b-f.length(),65536)/4),l=new Uint32Array(Math.floor(d));try{for(c(l),d=0;d>16),d+=(c&32767)<<16,d+=c>>15,d=(d&2147483647)+(d>>31),c=d&4294967295,d=0;3>d;++d)l=c>>>(d<<3),l^=Math.floor(256*Math.random()),f.putByte(String.fromCharCode(l&255));return f.getBytes(b)} +var l={plugin:b,key:null,seed:null,time:null,reseeds:0,generated:0};b=b.md;for(var m=Array(32),h=0;32>h;++h)m[h]=b.create();return l.pools=m,l.pool=0,l.generate=function(b,e){function f(n){if(n)return e(n);if(B.length()>=b)return e(null,B.getBytes(b));1048575> +e&255);l.collect(c)},l.registerWorker=function(a){a===self?l.seedFile=function(a,b){function c(a){a=a.data;a.forge&&a.forge.prng&&(self.removeEventListener("message",c),b(a.forge.prng.err,a.forge.prng.bytes))}self.addEventListener("message",c);self.postMessage({forge:{prng:{needed:a}}})}:a.addEventListener("message",function(b){b=b.data;b.forge&&b.forge.prng&&l.seedFile(b.forge.prng.needed,function(b,c){a.postMessage({forge:{prng:{err:b,bytes:c}}})})})},l}}if("function"!=typeof a){if("object"!=typeof module|| +!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.prng)return b.prng;b.defined.prng=!0;for(var f=0;f>(d&7),l;for(l=c;128>l;l++)e.putByte(b[e.at(l-1)+e.at(l-c)&255]);e.setAt(128-f,b[e.at(128- -f)&d]);for(l=127-f;0<=l;l--)e.setAt(l,b[e.at(l+1)^e.at(l+f)]);return e};var e=function(b,f,e){var d=!1,l=null,h=null,m=null,p,n,g,u,k=[];b=a.rc2.expandKey(b,f);for(g=0;64>g;g++)k.push(b.getInt16Le());e?(p=function(a){for(g=0;4>g;g++){a[g]+=k[u]+(a[(g+3)%4]&a[(g+2)%4])+(~a[(g+3)%4]&a[(g+1)%4]);var b=a[g],f=c[g];a[g]=b<>16-f;u++}},n=function(a){for(g=0;4>g;g++)a[g]+=k[a[(g+3)%4]&63]}):(p=function(a){for(g=3;0<=g;g--){var b=a[g],f=c[g];a[g]=(b&65535)>>f|b<<16-f&65535;a[g]-=k[u]+(a[(g+ -3)%4]&a[(g+2)%4])+(~a[(g+3)%4]&a[(g+1)%4]);u--}},n=function(a){for(g=3;0<=g;g--)a[g]-=k[a[(g+3)%4]&63]});var r=null;return r={start:function(b,c){b&&"string"==typeof b&&(b=a.util.createBuffer(b));d=!1;l=a.util.createBuffer();h=c||new a.util.createBuffer;m=b;r.output=h},update:function(a){for(d||l.putBuffer(a);8<=l.length();){a=[[5,p],[1,n],[6,p],[1,n],[5,p]];var b=[];for(g=0;4>g;g++){var c=l.getInt16Le();null!==m&&(e?c^=m.getInt16Le():m.putInt16Le(c));b.push(c&65535)}u=e?0:63;for(c=0;cg;g++)null!==m&&(e?m.putInt16Le(b[g]):b[g]^=m.getInt16Le()),h.putInt16Le(b[g])}},finish:function(a){var b=!0;if(e)if(a)b=a(8,l,!e);else{var c=8===l.length()?8:8-l.length();l.fillWithByte(c,c)}b&&(d=!0,r.update());!e&&(b=0===l.length())&&(a?b=a(8,h,!e):(a=h.length(),c=h.at(a-1),c>a?b=!1:h.truncate(c)));return b}},r};a.rc2.startEncrypting=function(b,c,f){b=a.rc2.createEncryptionCipher(b,128);return b.start(c,f),b};a.rc2.createEncryptionCipher=function(a,b){return e(a, -b,!0)};a.rc2.startDecrypting=function(b,c,f){b=a.rc2.createDecryptionCipher(b,128);return b.start(c,f),b};a.rc2.createDecryptionCipher=function(a,b){return e(a,b,!1)}}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rc2)return b.rc2;b.defined.rc2=!0;for(var e= -0;e>=15;0<=--d;){var h=this.data[a]&32767,m=this.data[a++]>>15,B=b*h+m*l,h=l*h+((B&32767)<<15)+c.data[f]+(e&1073741823);e=(h>>>30)+(B>>>15)+b*m+(e>>>30);c.data[f++]=h&1073741823}return e}function h(a,b,c,f,e,d){var l=b&16383;for(b>>=14;0<=--d;){var h=this.data[a]&16383,m= -this.data[a++]>>14,B=b*h+m*l,h=l*h+((B&16383)<<14)+c.data[f]+e;e=(h>>28)+(B>>14)+b*m;c.data[f++]=h&268435455}return e}function m(a,b){a=H[a.charCodeAt(b)];return null==a?-1:a}function g(a){var b=c();return b.fromInt(a),b}function k(a){var b=1,c;return 0!=(c=a>>>16)&&(a=c,b+=16),0!=(c=a>>8)&&(a=c,b+=8),0!=(c=a>>4)&&(a=c,b+=4),0!=(c=a>>2)&&(a=c,b+=2),0!=a>>1&&(b+=1),b}function q(a){this.m=a}function z(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<>(d&7),l;for(l=c;128>l;l++)f.putByte(b[f.at(l-1)+f.at(l-c)&255]);f.setAt(128-e,b[f.at(128- +e)&d]);for(l=127-e;0<=l;l--)f.setAt(l,b[f.at(l+1)^f.at(l+e)]);return f};var f=function(b,e,f){var d=!1,l=null,h=null,m=null,p,n,g,u,k=[];b=a.rc2.expandKey(b,e);for(g=0;64>g;g++)k.push(b.getInt16Le());f?(p=function(a){for(g=0;4>g;g++){a[g]+=k[u]+(a[(g+3)%4]&a[(g+2)%4])+(~a[(g+3)%4]&a[(g+1)%4]);var b=a[g],e=c[g];a[g]=b<>16-e;u++}},n=function(a){for(g=0;4>g;g++)a[g]+=k[a[(g+3)%4]&63]}):(p=function(a){for(g=3;0<=g;g--){var b=a[g],e=c[g];a[g]=(b&65535)>>e|b<<16-e&65535;a[g]-=k[u]+(a[(g+ +3)%4]&a[(g+2)%4])+(~a[(g+3)%4]&a[(g+1)%4]);u--}},n=function(a){for(g=3;0<=g;g--)a[g]-=k[a[(g+3)%4]&63]});var r=null;return r={start:function(b,c){b&&"string"==typeof b&&(b=a.util.createBuffer(b));d=!1;l=a.util.createBuffer();h=c||new a.util.createBuffer;m=b;r.output=h},update:function(a){for(d||l.putBuffer(a);8<=l.length();){a=[[5,p],[1,n],[6,p],[1,n],[5,p]];var b=[];for(g=0;4>g;g++){var c=l.getInt16Le();null!==m&&(f?c^=m.getInt16Le():m.putInt16Le(c));b.push(c&65535)}u=f?0:63;for(c=0;cg;g++)null!==m&&(f?m.putInt16Le(b[g]):b[g]^=m.getInt16Le()),h.putInt16Le(b[g])}},finish:function(a){var b=!0;if(f)if(a)b=a(8,l,!f);else{var c=8===l.length()?8:8-l.length();l.fillWithByte(c,c)}b&&(d=!0,r.update());!f&&(b=0===l.length())&&(a?b=a(8,h,!f):(a=h.length(),c=h.at(a-1),c>a?b=!1:h.truncate(c)));return b}},r};a.rc2.startEncrypting=function(b,c,e){b=a.rc2.createEncryptionCipher(b,128);return b.start(c,e),b};a.rc2.createEncryptionCipher=function(a,b){return f(a, +b,!0)};a.rc2.startDecrypting=function(b,c,e){b=a.rc2.createDecryptionCipher(b,128);return b.start(c,e),b};a.rc2.createDecryptionCipher=function(a,b){return f(a,b,!1)}}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rc2)return b.rc2;b.defined.rc2=!0;for(var f= +0;f>=15;0<=--d;){var h=this.data[a]&32767,m=this.data[a++]>>15,B=b*h+m*l,h=l*h+((B&32767)<<15)+c.data[e]+(f&1073741823);f=(h>>>30)+(B>>>15)+b*m+(f>>>30);c.data[e++]=h&1073741823}return f}function h(a,b,c,e,f,d){var l=b&16383;for(b>>=14;0<=--d;){var h=this.data[a]&16383,m= +this.data[a++]>>14,B=b*h+m*l,h=l*h+((B&16383)<<14)+c.data[e]+f;f=(h>>28)+(B>>14)+b*m;c.data[e++]=h&268435455}return f}function m(a,b){a=H[a.charCodeAt(b)];return null==a?-1:a}function g(a){var b=c();return b.fromInt(a),b}function k(a){var b=1,c;return 0!=(c=a>>>16)&&(a=c,b+=16),0!=(c=a>>8)&&(a=c,b+=8),0!=(c=a>>4)&&(a=c,b+=4),0!=(c=a>>2)&&(a=c,b+=2),0!=a>>1&&(b+=1),b}function q(a){this.m=a}function z(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<=t;++t)H[E++]=t;E=97;for(t=10;36>t;++t)H[E++]=t;E=65;for(t=10;36>t;++t)H[E++]=t;q.prototype.convert=function(a){return 0>a.s||0<=a.compareTo(this.m)?a.mod(this.m):a};q.prototype.revert=function(a){return a};q.prototype.reduce=function(a){a.divRemTo(this.m,null, -a)};q.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};q.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};z.prototype.convert=function(a){var f=c();return a.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),0>a.s&&0>15)*this.mpl&this.um)<<15)&a.DM,c=b+this.m.t;for(a.data[c]+=this.m.am(0,f,a,b,0,this.m.t);a.data[c]>=a.DV;)a.data[c]-=a.DV,a.data[++c]++}a.clamp();a.drShiftTo(this.m.t,a);0<=a.compareTo(this.m)&&a.subTo(this.m,a)};z.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};z.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};b.prototype.copyTo=function(a){for(var b=this.t-1;0<=b;--b)a.data[b]=this.data[b];a.t=this.t;a.s=this.s};b.prototype.fromInt=function(a){this.t= -1;this.s=0>a?-1:0;0a?this.data[0]=a+this.DV:this.t=0};b.prototype.fromString=function(a,c){if(16==c)c=4;else if(8==c)c=3;else if(256==c)c=8;else if(2==c)c=1;else if(32==c)c=5;else{if(4!=c){this.fromRadix(a,c);return}c=2}this.s=this.t=0;for(var f=a.length,e=!1,d=0;0<=--f;){var l=8==c?a[f]&255:m(a,f);0>l?"-"==a.charAt(f)&&(e=!0):(e=!1,0==d?this.data[this.t++]=l:d+c>this.DB?(this.data[this.t-1]|=(l&(1<>this.DB-d):this.data[this.t-1]|=l<=this.DB&&(d-=this.DB))}8==c&&0!=(a[0]&128)&&(this.s=-1,0>f|d,d=(this.data[l]&e)<=this.t)b.t=0;else{a%=this.DB;var f=this.DB-a,e=(1<>a;for(var d=c+1;d>a;0>=this.DB;if(a.t>=this.DB;f+=this.s}else{for(f+=this.s;c>=this.DB;f-=a.s}b.s=0>f?-1:0;-1>f?b.data[c++]=this.DV+f:0=b.DV&&(a.data[c+b.t]-=b.DV,a.data[c+b.t+1]=1)}0=d.t)){var l=this.abs();if(l.t>this.F2:0),p=this.FV/n,n=(1<m&&b.ZERO.subTo(e,e)}}}};b.prototype.invDigit=function(){if(1>this.t)return 0;var a=this.data[0];if(0==(a&1))return 0;var b=a&3;return b=b*(2-(a&15)*b)& -15,b=b*(2-(a&255)*b)&255,b=b*(2-((a&65535)*b&65535))&65535,b=b*(2-a*b%this.DV)%this.DV,0a)return b.ONE;var e=c(),d=c(),l=f.convert(this),h=k(a)-1;for(l.copyTo(e);0<=--h;)if(f.sqrTo(e,d),0<(a&1<this.s)return"-"+this.negate().toString(a);if(16==a)a=4;else if(8==a)a= -3;else if(2==a)a=1;else if(32==a)a=5;else{if(4!=a)return this.toRadix(a);a=2}var b=(1<>l)&&(f=!0,e="0123456789abcdefghijklmnopqrstuvwxyz".charAt(c));0<=d;)l>(l+=this.DB-a)):(c=this.data[d]>>(l-=a)&b,0>=l&&(l+=this.DB,--d)),0this.s?this.negate():this};b.prototype.compareTo=function(a){var b=this.s-a.s;if(0!=b)return b;var c=this.t,b=c-a.t;if(0!=b)return 0>this.s?-b:b;for(;0<=--c;)if(0!=(b=this.data[c]-a.data[c]))return b;return 0};b.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+k(this.data[this.t-1]^this.s&this.DM)};b.prototype.mod=function(a){var f=c();return this.abs().divRemTo(a,null,f),0>this.s&&0=t;++t)H[E++]=t;E=97;for(t=10;36>t;++t)H[E++]=t;E=65;for(t=10;36>t;++t)H[E++]=t;q.prototype.convert=function(a){return 0>a.s||0<=a.compareTo(this.m)?a.mod(this.m):a};q.prototype.revert=function(a){return a};q.prototype.reduce=function(a){a.divRemTo(this.m,null, +a)};q.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};q.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};z.prototype.convert=function(a){var e=c();return a.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),0>a.s&&0>15)*this.mpl&this.um)<<15)&a.DM,c=b+this.m.t;for(a.data[c]+=this.m.am(0,e,a,b,0,this.m.t);a.data[c]>=a.DV;)a.data[c]-=a.DV,a.data[++c]++}a.clamp();a.drShiftTo(this.m.t,a);0<=a.compareTo(this.m)&&a.subTo(this.m,a)};z.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};z.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};b.prototype.copyTo=function(a){for(var b=this.t-1;0<=b;--b)a.data[b]=this.data[b];a.t=this.t;a.s=this.s};b.prototype.fromInt=function(a){this.t= +1;this.s=0>a?-1:0;0a?this.data[0]=a+this.DV:this.t=0};b.prototype.fromString=function(a,c){if(16==c)c=4;else if(8==c)c=3;else if(256==c)c=8;else if(2==c)c=1;else if(32==c)c=5;else{if(4!=c){this.fromRadix(a,c);return}c=2}this.s=this.t=0;for(var e=a.length,f=!1,d=0;0<=--e;){var l=8==c?a[e]&255:m(a,e);0>l?"-"==a.charAt(e)&&(f=!0):(f=!1,0==d?this.data[this.t++]=l:d+c>this.DB?(this.data[this.t-1]|=(l&(1<>this.DB-d):this.data[this.t-1]|=l<=this.DB&&(d-=this.DB))}8==c&&0!=(a[0]&128)&&(this.s=-1,0>e|d,d=(this.data[l]&f)<=this.t)b.t=0;else{a%=this.DB;var e=this.DB-a,f=(1<>a;for(var d=c+1;d>a;0>=this.DB;if(a.t>=this.DB;e+=this.s}else{for(e+=this.s;c>=this.DB;e-=a.s}b.s=0>e?-1:0;-1>e?b.data[c++]=this.DV+e:0=b.DV&&(a.data[c+b.t]-=b.DV,a.data[c+b.t+1]=1)}0=d.t)){var l=this.abs();if(l.t>this.F2:0),p=this.FV/n,n=(1<m&&b.ZERO.subTo(f,f)}}}};b.prototype.invDigit=function(){if(1>this.t)return 0;var a=this.data[0];if(0==(a&1))return 0;var b=a&3;return b=b*(2-(a&15)*b)& +15,b=b*(2-(a&255)*b)&255,b=b*(2-((a&65535)*b&65535))&65535,b=b*(2-a*b%this.DV)%this.DV,0a)return b.ONE;var f=c(),d=c(),l=e.convert(this),h=k(a)-1;for(l.copyTo(f);0<=--h;)if(e.sqrTo(f,d),0<(a&1<this.s)return"-"+this.negate().toString(a);if(16==a)a=4;else if(8==a)a= +3;else if(2==a)a=1;else if(32==a)a=5;else{if(4!=a)return this.toRadix(a);a=2}var b=(1<>l)&&(e=!0,f="0123456789abcdefghijklmnopqrstuvwxyz".charAt(c));0<=d;)l>(l+=this.DB-a)):(c=this.data[d]>>(l-=a)&b,0>=l&&(l+=this.DB,--d)),0this.s?this.negate():this};b.prototype.compareTo=function(a){var b=this.s-a.s;if(0!=b)return b;var c=this.t,b=c-a.t;if(0!=b)return 0>this.s?-b:b;for(;0<=--c;)if(0!=(b=this.data[c]-a.data[c]))return b;return 0};b.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+k(this.data[this.t-1]^this.s&this.DM)};b.prototype.mod=function(a){var e=c();return this.abs().divRemTo(a,null,e),0>this.s&&0a||b.isEven()?c=new q(b):c=new z(b),this.exp(a,c)};b.ZERO=g(0);b.ONE=g(1);A.prototype.convert=F;A.prototype.revert=F;A.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c)};A.prototype.sqrTo=function(a,b){a.squareTo(b)};B.prototype.convert=function(a){if(0>a.s||a.t>2*this.m.t)return a.mod(this.m);if(0>a.compareTo(this.m))return a;var b=c();return a.copyTo(b),this.reduce(b),b};B.prototype.revert=function(a){return a};B.prototype.reduce=function(a){a.drShiftTo(this.m.t-1, this.r2);a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp());this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>a.compareTo(this.r2);)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);0<=a.compareTo(this.m);)a.subTo(this.m,a)};B.prototype.mulTo=function(a,b,c){a.multiplyTo(b,c);this.reduce(c)};B.prototype.sqrTo=function(a,b){a.squareTo(b);this.reduce(b)};var N=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113, 127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],J=67108864/N[N.length-1];b.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))};b.prototype.toRadix=function(a){null==a&&(a=10);if(0==this.signum()||2>a||36n?"-"==a.charAt(B)&&0==this.signum()&&(d=!0):(h=c*h+n,++l>=f&&(this.dMultiply(e),this.dAddOffset(h,0),l=0,h=0))}0a)this.fromInt(1);else for(this.fromNumber(a,f),this.testBit(a-1)||this.bitwiseTo(b.ONE.shiftLeft(a-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(b.ONE.shiftLeft(a-1),this);else{f=[];var e=a&7;f.length=(a>>3)+1;c.nextBytes(f);0>=this.DB;if(a.t>=this.DB;f+=this.s}else{for(f+=this.s;c>=this.DB;f+=a.s}b.s=0>f?-1:0;0f&&(b.data[c++]=this.DV+f);b.t=c;b.clamp()};b.prototype.dMultiply=function(a){this.data[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()};b.prototype.dAddOffset=function(a,b){if(0!=a){for(;this.t<=b;)this.data[this.t++]=0;for(this.data[b]+=a;this.data[b]>=this.DV;)this.data[b]-=this.DV,++b>=this.t&&(this.data[this.t++]= -0),++this.data[b]}};b.prototype.multiplyLowerTo=function(a,b,c){var f=Math.min(this.t+a.t,b);c.s=0;for(c.t=f;0=a)return 0;var b=this.DV%a,c=0>this.s?a-1:0;if(0=f)return!1;for(var e=c.shiftRight(f),d=I(),l,h=0;h=l.compareTo(b.ONE)||0<=l.compareTo(c));l=l.modPow(e,this);if(0!=l.compareTo(b.ONE)&&0!=l.compareTo(c)){for(var m=1;m++n?"-"==a.charAt(B)&&0==this.signum()&&(d=!0):(h=c*h+n,++l>=e&&(this.dMultiply(f),this.dAddOffset(h,0),l=0,h=0))}0a)this.fromInt(1);else for(this.fromNumber(a,e),this.testBit(a-1)||this.bitwiseTo(b.ONE.shiftLeft(a-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(b.ONE.shiftLeft(a-1),this);else{e=[];var f=a&7;e.length=(a>>3)+1;c.nextBytes(e);0>=this.DB;if(a.t>=this.DB;e+=this.s}else{for(e+=this.s;c>=this.DB;e+=a.s}b.s=0>e?-1:0;0e&&(b.data[c++]=this.DV+e);b.t=c;b.clamp()};b.prototype.dMultiply=function(a){this.data[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()};b.prototype.dAddOffset=function(a,b){if(0!=a){for(;this.t<=b;)this.data[this.t++]=0;for(this.data[b]+=a;this.data[b]>=this.DV;)this.data[b]-=this.DV,++b>=this.t&&(this.data[this.t++]= +0),++this.data[b]}};b.prototype.multiplyLowerTo=function(a,b,c){var e=Math.min(this.t+a.t,b);c.s=0;for(c.t=e;0=a)return 0;var b=this.DV%a,c=0>this.s?a-1:0;if(0=e)return!1;for(var f=c.shiftRight(e),d=I(),l,h=0;h=l.compareTo(b.ONE)||0<=l.compareTo(c));l=l.modPow(f,this);if(0!=l.compareTo(b.ONE)&&0!=l.compareTo(c)){for(var m=1;m++this.s){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24};b.prototype.shortValue= -function(){return 0==this.t?this.s:this.data[0]<<16>>16};b.prototype.signum=function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this.data[0]?0:1};b.prototype.toByteArray=function(){var a=this.t,b=[];b[0]=this.s;var c=this.DB-a*this.DB%8,f,e=0;if(0>c)!=(this.s&this.DM)>>c&&(b[e++]=f|this.s<c?(f=(this.data[a]&(1<>(c+=this.DB-8)):(f=this.data[a]>>(c-=8)&255,0>=c&&(c+=this.DB,--a)),0!=(f&128)&&(f|=-256),0==e&& -(this.s&128)!=(f&128)&&++e,0this.compareTo(a)?this:a};b.prototype.max=function(a){return 0a?this.rShiftTo(-a,b):this.lShiftTo(a,b),b};b.prototype.shiftRight=function(a){var b=c();return 0>a?this.lShiftTo(-a,b):this.rShiftTo(a,b),b};b.prototype.getLowestSetBit=function(){for(var a=0;a>=16,f+=16), -0==(c&255)&&(c>>=8,f+=8),0==(c&15)&&(c>>=4,f+=4),0==(c&3)&&(c>>=2,f+=2),0==(c&1)&&++f,f);return b+a}return 0>this.s?this.t*this.DB:-1};b.prototype.bitCount=function(){for(var a=0,b=this.s&this.DM,c=0;c=this.t?0!=this.s:0!=(this.data[b]&1<=f)return d;18>f?e=1:48>f?e=3:144>f?e=4:768>f?e=5:e=6;8>f?l=new q(b):b.isEven()?l=new B(b):l=new z(b);b=[];var h=3,m=e-1,n=(1<=m?u=a.data[p]>>f-m&n:(u=(a.data[p]&(1<>this.DB+f-m));for(h=e;0==(u&1);)u>>=1,--h;0>(f-=h)&&(f+=this.DB, ---p);if(r)b[u].copyTo(d),r=!1;else{for(;1--f&&(f=this.DB-1,--p)}return l.revert(d)};b.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||0==a.signum())return b.ZERO;for(var f=a.clone(),e=this.clone(),d=g(1),l=g(0),h=g(0),m=g(1);0!=f.signum();){for(;f.isEven();)f.rShiftTo(1,f),c?(d.isEven()&&l.isEven()||(d.addTo(this,d),l.subTo(a,l)),d.rShiftTo(1, -d)):l.isEven()||l.subTo(a,l),l.rShiftTo(1,l);for(;e.isEven();)e.rShiftTo(1,e),c?(h.isEven()&&m.isEven()||(h.addTo(this,h),m.subTo(a,m)),h.rShiftTo(1,h)):m.isEven()||m.subTo(a,m),m.rShiftTo(1,m);0<=f.compareTo(e)?(f.subTo(e,f),c&&d.subTo(h,d),l.subTo(m,l)):(e.subTo(f,e),c&&h.subTo(d,h),m.subTo(l,m))}return 0!=e.compareTo(b.ONE)?b.ZERO:0<=m.compareTo(a)?m.subtract(a):0>m.signum()?(m.addTo(a,m),0>m.signum()?m.add(a):m):m};b.prototype.pow=function(a){return this.exp(a,new A)};b.prototype.gcd=function(a){var b= -0>this.s?this.negate():this.clone();a=0>a.s?a.negate():a.clone();0>b.compareTo(a)&&(a=b=a);var c=b.getLowestSetBit(),f=a.getLowestSetBit();if(0>f)return b;c>24&255,l>>16&255,l>>8&255,l&255);f.start();f.update(b+h);e+=f.digest().getBytes()}return e.substring(0,c)}var c=a.pkcs1=a.pkcs1||{};c.encode_rsa_oaep=function(c,f,e,d,h){var l,m,n,p;"string"==typeof e?(l=e,m=d||void 0,n=h||void 0):e&&(l=e.label||void 0,m=e.seed||void 0,n=e.md||void 0,e.mgf1&&e.mgf1.md&&(p=e.mgf1.md));n?n.start():n=a.md.sha1.create();p||(p=n);c=Math.ceil(c.n.bitLength()/8);e=c-2*n.digestLength-2;if(f.length> -e)throw p=Error("RSAES-OAEP input message length is too long."),p.length=f.length,p.maxLength=e,p;l||(l="");n.update(l,"raw");l=n.digest();d="";e-=f.length;for(h=0;h -b&&(m=d(b,f));if(m.isProbablePrime(B))return l(null,m);m.dAddOffset(k[p++%8],0)}while(0>n||+new Date-gb&&(m=d(b,f));e=m.toString(16);a.target.postMessage({hex:e,workLoad:p});m.dAddOffset(n,0)}}B=Math.max(1,B);for(var c=[],e=0;e=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if(!a.prime){var m= -a.prime=a.prime||{},g=a.jsbn.BigInteger,k=[6,4,2,4,2,4,6,2],q=new g(null);q.fromInt(30);var z=function(a,b){return a|b};m.generateProbablePrime=function(c,f,e){"function"==typeof f&&(e=f,f={});f=f||{};var d=f.algorithm||"PRIMEINC";"string"==typeof d&&(d={name:d});d.options=d.options||{};var l=f.prng||a.random;f={nextBytes:function(a){for(var b=l.getBytesSync(a.length),c=0;cc-11)throw e=Error("Message is too long for PKCS#1 v1.5 padding."),e.length=b.length,e.max=c-11,e;e.putByte(0);e.putByte(f);c=c-3-b.length;if(0===f||1===f){f=0===f?0:255;for(var d=0;db.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(m.ONE).gcd(b.e).compareTo(m.ONE)? -(b.p=null,e()):0!==b.q.subtract(m.ONE).gcd(b.e).compareTo(m.ONE)?(b.q=null,d(b.qBits,l)):(b.p1=b.p.subtract(m.ONE),b.q1=b.q.subtract(m.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(m.ONE)?(b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,d(b.qBits,l)):(a=b.e.modInverse(b.phi),b.keys={privateKey:k.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:k.rsa.setPublicKey(b.n,b.e)},f(null,b.keys))))}"function"==typeof c&&(f= -c,c={});c=c||{};var h={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(h.prng=c.prng);e()}function d(b){b=b.toString(16);return"8"<=b[0]&&(b="00"+b),a.util.hexToBytes(b)}function h(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"==typeof m)var m=a.jsbn.BigInteger;var g=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var k=a.pki, +function(){return 0==this.t?this.s:this.data[0]<<16>>16};b.prototype.signum=function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this.data[0]?0:1};b.prototype.toByteArray=function(){var a=this.t,b=[];b[0]=this.s;var c=this.DB-a*this.DB%8,e,f=0;if(0>c)!=(this.s&this.DM)>>c&&(b[f++]=e|this.s<c?(e=(this.data[a]&(1<>(c+=this.DB-8)):(e=this.data[a]>>(c-=8)&255,0>=c&&(c+=this.DB,--a)),0!=(e&128)&&(e|=-256),0==f&& +(this.s&128)!=(e&128)&&++f,0this.compareTo(a)?this:a};b.prototype.max=function(a){return 0a?this.rShiftTo(-a,b):this.lShiftTo(a,b),b};b.prototype.shiftRight=function(a){var b=c();return 0>a?this.lShiftTo(-a,b):this.rShiftTo(a,b),b};b.prototype.getLowestSetBit=function(){for(var a=0;a>=16,e+=16), +0==(c&255)&&(c>>=8,e+=8),0==(c&15)&&(c>>=4,e+=4),0==(c&3)&&(c>>=2,e+=2),0==(c&1)&&++e,e);return b+a}return 0>this.s?this.t*this.DB:-1};b.prototype.bitCount=function(){for(var a=0,b=this.s&this.DM,c=0;c=this.t?0!=this.s:0!=(this.data[b]&1<=e)return d;18>e?f=1:48>e?f=3:144>e?f=4:768>e?f=5:f=6;8>e?l=new q(b):b.isEven()?l=new B(b):l=new z(b);b=[];var h=3,m=f-1,n=(1<=m?u=a.data[p]>>e-m&n:(u=(a.data[p]&(1<>this.DB+e-m));for(h=f;0==(u&1);)u>>=1,--h;0>(e-=h)&&(e+=this.DB, +--p);if(r)b[u].copyTo(d),r=!1;else{for(;1--e&&(e=this.DB-1,--p)}return l.revert(d)};b.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||0==a.signum())return b.ZERO;for(var e=a.clone(),f=this.clone(),d=g(1),l=g(0),h=g(0),m=g(1);0!=e.signum();){for(;e.isEven();)e.rShiftTo(1,e),c?(d.isEven()&&l.isEven()||(d.addTo(this,d),l.subTo(a,l)),d.rShiftTo(1, +d)):l.isEven()||l.subTo(a,l),l.rShiftTo(1,l);for(;f.isEven();)f.rShiftTo(1,f),c?(h.isEven()&&m.isEven()||(h.addTo(this,h),m.subTo(a,m)),h.rShiftTo(1,h)):m.isEven()||m.subTo(a,m),m.rShiftTo(1,m);0<=e.compareTo(f)?(e.subTo(f,e),c&&d.subTo(h,d),l.subTo(m,l)):(f.subTo(e,f),c&&h.subTo(d,h),m.subTo(l,m))}return 0!=f.compareTo(b.ONE)?b.ZERO:0<=m.compareTo(a)?m.subtract(a):0>m.signum()?(m.addTo(a,m),0>m.signum()?m.add(a):m):m};b.prototype.pow=function(a){return this.exp(a,new A)};b.prototype.gcd=function(a){var b= +0>this.s?this.negate():this.clone();a=0>a.s?a.negate():a.clone();0>b.compareTo(a)&&(a=b=a);var c=b.getLowestSetBit(),e=a.getLowestSetBit();if(0>e)return b;c>24&255,l>>16&255,l>>8&255,l&255);e.start();e.update(b+h);f+=e.digest().getBytes()}return f.substring(0,c)}var c=a.pkcs1=a.pkcs1||{};c.encode_rsa_oaep=function(c,e,f,d,h){var l,m,p,n;"string"==typeof f?(l=f,m=d||void 0,p=h||void 0):f&&(l=f.label||void 0,m=f.seed||void 0,p=f.md||void 0,f.mgf1&&f.mgf1.md&&(n=f.mgf1.md));p?p.start():p=a.md.sha1.create();n||(n=p);c=Math.ceil(c.n.bitLength()/8);f=c-2*p.digestLength-2;if(e.length> +f)throw n=Error("RSAES-OAEP input message length is too long."),n.length=e.length,n.maxLength=f,n;l||(l="");p.update(l,"raw");l=p.digest();d="";f-=e.length;for(h=0;h +b&&(m=d(b,e));if(m.isProbablePrime(B))return l(null,m);m.dAddOffset(k[p++%8],0)}while(0>n||+new Date-gb&&(m=d(b,e));f=m.toString(16);a.target.postMessage({hex:f,workLoad:p});m.dAddOffset(n,0)}}B=Math.max(1,B);for(var c=[],f=0;f=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if(!a.prime){var m= +a.prime=a.prime||{},g=a.jsbn.BigInteger,k=[6,4,2,4,2,4,6,2],q=new g(null);q.fromInt(30);var z=function(a,b){return a|b};m.generateProbablePrime=function(c,e,f){"function"==typeof e&&(f=e,e={});e=e||{};var d=e.algorithm||"PRIMEINC";"string"==typeof d&&(d={name:d});d.options=d.options||{};var l=e.prng||a.random;e={nextBytes:function(a){for(var b=l.getBytesSync(a.length),c=0;cc-11)throw f=Error("Message is too long for PKCS#1 v1.5 padding."),f.length=b.length,f.max=c-11,f;f.putByte(0);f.putByte(e);c=c-3-b.length;if(0===e||1===e){e=0===e?0:255;for(var d=0;db.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(m.ONE).gcd(b.e).compareTo(m.ONE)? +(b.p=null,f()):0!==b.q.subtract(m.ONE).gcd(b.e).compareTo(m.ONE)?(b.q=null,d(b.qBits,l)):(b.p1=b.p.subtract(m.ONE),b.q1=b.q.subtract(m.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(m.ONE)?(b.p=b.q=null,f()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,d(b.qBits,l)):(a=b.e.modInverse(b.phi),b.keys={privateKey:k.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:k.rsa.setPublicKey(b.n,b.e)},e(null,b.keys))))}"function"==typeof c&&(e= +c,c={});c=c||{};var h={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(h.prng=c.prng);f()}function d(b){b=b.toString(16);return"8"<=b[0]&&(b="00"+b),a.util.hexToBytes(b)}function h(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"==typeof m)var m=a.jsbn.BigInteger;var g=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var k=a.pki, q=[6,4,2,4,2,4,6,2],z={name:"PrivateKeyInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:g.Class.UNIVERSAL, type:g.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},D={name:"RSAPrivateKey",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"}, {name:"RSAPrivateKey.privateExponent",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2", tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},v={name:"RSAPublicKey",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER, constructed:!1,capture:"publicKeyExponent"}]},w=a.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:g.Class.UNIVERSAL, -type:g.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},x=function(a){var b;if(a.algorithm in k.oids){b=k.oids[a.algorithm];var c=g.oidToDer(b).getBytes();b=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);var f=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);f.value.push(g.create(g.Class.UNIVERSAL,g.Type.OID,!1,c));f.value.push(g.create(g.Class.UNIVERSAL, -g.Type.NULL,!1,""));a=g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,a.digest().getBytes());return b.value.push(f),b.value.push(a),g.toDer(b).getBytes()}b=Error("Unknown message digest algorithm.");throw b.algorithm=a.algorithm,b;},A=function(b,c,f){if(f)return b.modPow(c.e,c.n);if(!c.p||!c.q)return b.modPow(c.d,c.n);c.dP||(c.dP=c.d.mod(c.p.subtract(m.ONE)));c.dQ||(c.dQ=c.d.mod(c.q.subtract(m.ONE)));c.qInv||(c.qInv=c.q.modInverse(c.p));do f=(new m(a.util.bytesToHex(a.random.getBytes(c.n.bitLength()/ -8)),16)).mod(c.n);while(f.equals(m.ZERO));b=b.multiply(f.modPow(c.e,c.n)).mod(c.n);var e=b.mod(c.p).modPow(c.dP,c.p);for(b=b.mod(c.q).modPow(c.dQ,c.q);0>e.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(f.modInverse(c.n)).mod(c.n),b};k.rsa.encrypt=function(c,f,e){var d=e,l,h=Math.ceil(f.n.bitLength()/8);!1!==e&&!0!==e?(d=2===e,l=b(c,f,e)):(l=a.util.createBuffer(),l.putBytes(c));c=new m(l.toHex(),16);f=A(c,f,d).toString(16);d=a.util.createBuffer(); -for(h-=Math.ceil(f.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null, -keys:null},d.e.fromInt(d.eInt),d};k.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a||(a.algorithm="PRIMEINC");var c=new m(null);c.fromInt(30);for(var f=0,e=function(a,b){return a|b},d=+new Date,l,g=0;null===a.keys&&(0>=b||gl?a.pqState= -0:a.num.isProbablePrime(h(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(q[f++%8],0):2===a.pqState?a.pqState=0===a.num.subtract(m.ONE).gcd(a.e).compareTo(m.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(m.ONE),a.q1=a.q.subtract(m.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(m.ONE)? -++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state:(a.q=null,a.state=0)):5===a.state&&(l=a.e.modInverse(a.phi),a.keys={privateKey:k.rsa.setPrivateKey(a.n,a.e,l,a.p,a.q,l.mod(a.p1),l.mod(a.q1),a.q.modInverse(a.p)),publicKey:k.rsa.setPublicKey(a.n,a.e)});l=+new Date;g+=l-d;d=l}return null!==a.keys};k.rsa.generateKeyPair=function(a,b,c,f){1===arguments.length?"object"==typeof a?(c=a,a=void 0):"function"==typeof a&&(f=a,a=void 0):2===arguments.length? -"number"==typeof a?"function"==typeof b?(f=b,b=void 0):"number"!=typeof b&&(c=b,b=void 0):(c=a,f=b,a=void 0,b=void 0):3===arguments.length&&("number"==typeof b?"function"==typeof c&&(f=c,c=void 0):(f=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var d=k.rsa.createKeyPairGenerationState(a,b,c);if(!f)return k.rsa.stepKeyPairGenerationState(d,0),d.keys;e(d,c,f)};k.setRsaPublicKey=k.rsa.setPublicKey=function(f,e){var d={n:f,e:e};return d.encrypt=function(c,f,e){"string"== -typeof f?f=f.toUpperCase():void 0===f&&(f="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===f)f={encode:function(a,c,f){return b(a,c,2).getBytes()}};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={encode:function(b,c){return a.pkcs1.encode_rsa_oaep(c,b,e)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(f))f={encode:function(a){return a}};else if("string"==typeof f)throw Error('Unsupported encryption scheme: "'+f+'".');c=f.encode(c,d,!0);return k.rsa.encrypt(c,d,!0)},d.verify=function(a,b,f){"string"==typeof f? -f=f.toUpperCase():void 0===f&&(f="RSASSA-PKCS1-V1_5");if("RSASSA-PKCS1-V1_5"===f)f={verify:function(a,b){b=c(b,d,!0);b=g.fromDer(b);return a===b.value[1].value}};else if("NONE"===f||"NULL"===f||null===f)f={verify:function(a,b){return b=c(b,d,!0),a===b}};b=k.rsa.decrypt(b,d,!0,!1);return f.verify(a,b,d.n.bitLength())},d};k.setRsaPrivateKey=k.rsa.setPrivateKey=function(b,f,e,d,l,h,m,g){var p={n:b,e:f,d:e,p:d,q:l,dP:h,dQ:m,qInv:g};return p.decrypt=function(b,f,e){"string"==typeof f?f=f.toUpperCase(): -void 0===f&&(f="RSAES-PKCS1-V1_5");b=k.rsa.decrypt(b,p,!1,!1);if("RSAES-PKCS1-V1_5"===f)f={decode:c};else if("RSA-OAEP"===f||"RSAES-OAEP"===f)f={decode:function(b,c){return a.pkcs1.decode_rsa_oaep(c,b,e)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(f))throw Error('Unsupported encryption scheme: "'+f+'".');f={decode:function(a){return a}}}return f.decode(b,p,!1)},p.sign=function(a,b){var c=!1;"string"==typeof b&&(b=b.toUpperCase());if(void 0===b||"RSASSA-PKCS1-V1_5"===b)b={encode:x},c=1;else if("NONE"=== +type:g.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},x=function(a){var b;if(a.algorithm in k.oids){b=k.oids[a.algorithm];var c=g.oidToDer(b).getBytes();b=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);var e=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);e.value.push(g.create(g.Class.UNIVERSAL,g.Type.OID,!1,c));e.value.push(g.create(g.Class.UNIVERSAL, +g.Type.NULL,!1,""));a=g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,a.digest().getBytes());return b.value.push(e),b.value.push(a),g.toDer(b).getBytes()}b=Error("Unknown message digest algorithm.");throw b.algorithm=a.algorithm,b;},A=function(b,c,e){if(e)return b.modPow(c.e,c.n);if(!c.p||!c.q)return b.modPow(c.d,c.n);c.dP||(c.dP=c.d.mod(c.p.subtract(m.ONE)));c.dQ||(c.dQ=c.d.mod(c.q.subtract(m.ONE)));c.qInv||(c.qInv=c.q.modInverse(c.p));do e=(new m(a.util.bytesToHex(a.random.getBytes(c.n.bitLength()/ +8)),16)).mod(c.n);while(e.equals(m.ZERO));b=b.multiply(e.modPow(c.e,c.n)).mod(c.n);var f=b.mod(c.p).modPow(c.dP,c.p);for(b=b.mod(c.q).modPow(c.dQ,c.q);0>f.compareTo(b);)f=f.add(c.p);b=f.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(e.modInverse(c.n)).mod(c.n),b};k.rsa.encrypt=function(c,e,f){var d=f,l,h=Math.ceil(e.n.bitLength()/8);!1!==f&&!0!==f?(d=2===f,l=b(c,e,f)):(l=a.util.createBuffer(),l.putBytes(c));c=new m(l.toHex(),16);e=A(c,e,d).toString(16);d=a.util.createBuffer(); +for(h-=Math.ceil(e.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null, +keys:null},d.e.fromInt(d.eInt),d};k.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a||(a.algorithm="PRIMEINC");var c=new m(null);c.fromInt(30);for(var e=0,f=function(a,b){return a|b},d=+new Date,l,g=0;null===a.keys&&(0>=b||gl?a.pqState= +0:a.num.isProbablePrime(h(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(q[e++%8],0):2===a.pqState?a.pqState=0===a.num.subtract(m.ONE).gcd(a.e).compareTo(m.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(m.ONE),a.q1=a.q.subtract(m.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(m.ONE)? +++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state:(a.q=null,a.state=0)):5===a.state&&(l=a.e.modInverse(a.phi),a.keys={privateKey:k.rsa.setPrivateKey(a.n,a.e,l,a.p,a.q,l.mod(a.p1),l.mod(a.q1),a.q.modInverse(a.p)),publicKey:k.rsa.setPublicKey(a.n,a.e)});l=+new Date;g+=l-d;d=l}return null!==a.keys};k.rsa.generateKeyPair=function(a,b,c,e){1===arguments.length?"object"==typeof a?(c=a,a=void 0):"function"==typeof a&&(e=a,a=void 0):2===arguments.length? +"number"==typeof a?"function"==typeof b?(e=b,b=void 0):"number"!=typeof b&&(c=b,b=void 0):(c=a,e=b,a=void 0,b=void 0):3===arguments.length&&("number"==typeof b?"function"==typeof c&&(e=c,c=void 0):(e=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var d=k.rsa.createKeyPairGenerationState(a,b,c);if(!e)return k.rsa.stepKeyPairGenerationState(d,0),d.keys;f(d,c,e)};k.setRsaPublicKey=k.rsa.setPublicKey=function(e,f){var d={n:e,e:f};return d.encrypt=function(c,e,f){"string"== +typeof e?e=e.toUpperCase():void 0===e&&(e="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===e)e={encode:function(a,c,e){return b(a,c,2).getBytes()}};else if("RSA-OAEP"===e||"RSAES-OAEP"===e)e={encode:function(b,c){return a.pkcs1.encode_rsa_oaep(c,b,f)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(e))e={encode:function(a){return a}};else if("string"==typeof e)throw Error('Unsupported encryption scheme: "'+e+'".');c=e.encode(c,d,!0);return k.rsa.encrypt(c,d,!0)},d.verify=function(a,b,e){"string"==typeof e? +e=e.toUpperCase():void 0===e&&(e="RSASSA-PKCS1-V1_5");if("RSASSA-PKCS1-V1_5"===e)e={verify:function(a,b){b=c(b,d,!0);b=g.fromDer(b);return a===b.value[1].value}};else if("NONE"===e||"NULL"===e||null===e)e={verify:function(a,b){return b=c(b,d,!0),a===b}};b=k.rsa.decrypt(b,d,!0,!1);return e.verify(a,b,d.n.bitLength())},d};k.setRsaPrivateKey=k.rsa.setPrivateKey=function(b,e,f,d,l,h,m,g){var p={n:b,e:e,d:f,p:d,q:l,dP:h,dQ:m,qInv:g};return p.decrypt=function(b,e,f){"string"==typeof e?e=e.toUpperCase(): +void 0===e&&(e="RSAES-PKCS1-V1_5");b=k.rsa.decrypt(b,p,!1,!1);if("RSAES-PKCS1-V1_5"===e)e={decode:c};else if("RSA-OAEP"===e||"RSAES-OAEP"===e)e={decode:function(b,c){return a.pkcs1.decode_rsa_oaep(c,b,f)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(e))throw Error('Unsupported encryption scheme: "'+e+'".');e={decode:function(a){return a}}}return e.decode(b,p,!1)},p.sign=function(a,b){var c=!1;"string"==typeof b&&(b=b.toUpperCase());if(void 0===b||"RSASSA-PKCS1-V1_5"===b)b={encode:x},c=1;else if("NONE"=== b||"NULL"===b||null===b)b={encode:function(){return a}},c=1;b=b.encode(a,p.n.bitLength());return k.rsa.encrypt(b,p,c)},p};k.wrapRsaPrivateKey=function(a){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(0).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(k.oids.rsaEncryption).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")]),g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING, -!1,g.toDer(a).getBytes())])};k.privateKeyFromAsn1=function(b){var c={},f=[];g.validate(b,z,c,f)&&(b=g.fromDer(a.util.createBuffer(c.privateKey)));c={};f=[];if(!g.validate(b,D,c,f))throw b=Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey."),b.errors=f,b;var e,d,l,h,p,n,u,r;return e=a.util.createBuffer(c.privateKeyModulus).toHex(),d=a.util.createBuffer(c.privateKeyPublicExponent).toHex(),l=a.util.createBuffer(c.privateKeyPrivateExponent).toHex(),h=a.util.createBuffer(c.privateKeyPrime1).toHex(), -p=a.util.createBuffer(c.privateKeyPrime2).toHex(),n=a.util.createBuffer(c.privateKeyExponent1).toHex(),u=a.util.createBuffer(c.privateKeyExponent2).toHex(),r=a.util.createBuffer(c.privateKeyCoefficient).toHex(),k.setRsaPrivateKey(new m(e,16),new m(d,16),new m(l,16),new m(h,16),new m(p,16),new m(n,16),new m(u,16),new m(r,16))};k.privateKeyToAsn1=k.privateKeyToRSAPrivateKey=function(a){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(0).getBytes()), -g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.n)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.e)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.d)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.p)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.q)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.dP)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.dQ)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.qInv))])};k.publicKeyFromAsn1=function(b){var c={},f=[];if(g.validate(b,w,c,f)){f= -g.derToOid(c.publicKeyOid);if(f!==k.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."),c.oid=f,c;b=c.rsaPublicKey}f=[];if(!g.validate(b,v,c,f))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=f,c;f=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return k.setRsaPublicKey(new m(f,16),new m(c,16))};k.publicKeyToAsn1=k.publicKeyToSubjectPublicKeyInfo=function(a){return g.create(g.Class.UNIVERSAL, +!1,g.toDer(a).getBytes())])};k.privateKeyFromAsn1=function(b){var c={},e=[];g.validate(b,z,c,e)&&(b=g.fromDer(a.util.createBuffer(c.privateKey)));c={};e=[];if(!g.validate(b,D,c,e))throw b=Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey."),b.errors=e,b;var f,d,l,h,p,n,u,r;return f=a.util.createBuffer(c.privateKeyModulus).toHex(),d=a.util.createBuffer(c.privateKeyPublicExponent).toHex(),l=a.util.createBuffer(c.privateKeyPrivateExponent).toHex(),h=a.util.createBuffer(c.privateKeyPrime1).toHex(), +p=a.util.createBuffer(c.privateKeyPrime2).toHex(),n=a.util.createBuffer(c.privateKeyExponent1).toHex(),u=a.util.createBuffer(c.privateKeyExponent2).toHex(),r=a.util.createBuffer(c.privateKeyCoefficient).toHex(),k.setRsaPrivateKey(new m(f,16),new m(d,16),new m(l,16),new m(h,16),new m(p,16),new m(n,16),new m(u,16),new m(r,16))};k.privateKeyToAsn1=k.privateKeyToRSAPrivateKey=function(a){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(0).getBytes()), +g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.n)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.e)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.d)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.p)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.q)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.dP)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.dQ)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.qInv))])};k.publicKeyFromAsn1=function(b){var c={},e=[];if(g.validate(b,w,c,e)){e= +g.derToOid(c.publicKeyOid);if(e!==k.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."),c.oid=e,c;b=c.rsaPublicKey}e=[];if(!g.validate(b,v,c,e))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=e,c;e=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return k.setRsaPublicKey(new m(e,16),new m(c,16))};k.publicKeyToAsn1=k.publicKeyToSubjectPublicKeyInfo=function(a){return g.create(g.Class.UNIVERSAL, g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(k.oids.rsaEncryption).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")]),g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,[k.publicKeyToRSAPublicKey(a)])])};k.publicKeyToRSAPublicKey=function(a){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.n)),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,d(a.e))])}}if("function"!=typeof a){if("object"!= -typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.rsa)return b.rsa;b.defined.rsa=!0;for(var e=0;e>=8,z+=y.at(m)+x.at(m),x.setAt(m,z&255);C.putBuffer(x)}u=C;n.putBuffer(q)}return n.truncate(n.length()-d),n};d.pbe.getCipher=function(a,b,c){switch(a){case d.oids.pkcs5PBES2:return d.pbe.getCipherForPBES2(a,b,c);case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case d.oids["pbewithSHAAnd40BitRC2-CBC"]:return d.pbe.getCipherForPKCS12PBE(a, -b,c);default:throw b=Error("Cannot read encrypted PBE data block. Unsupported OID."),b.oid=a,b.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],b;}};d.pbe.getCipherForPBES2=function(b,c,f){var l={};b=[];if(!e.validate(c,g,l,b)){var h=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw h.errors=b,h;}b=e.derToOid(l.kdfOid);if(b!==d.oids.pkcs5PBKDF2)throw h=Error("Cannot read encrypted private key. Unsupported key derivation function OID."), -h.oid=b,h.supportedOids=["pkcs5PBKDF2"],h;b=e.derToOid(l.encOid);if(b!==d.oids["aes128-CBC"]&&b!==d.oids["aes192-CBC"]&&b!==d.oids["aes256-CBC"]&&b!==d.oids["des-EDE3-CBC"]&&b!==d.oids.desCBC)throw h=Error("Cannot read encrypted private key. Unsupported encryption scheme OID."),h.oid=b,h.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],h;c=l.kdfSalt;var m=a.util.createBuffer(l.kdfIterationCount),m=m.getInt(m.length()<<3),p;switch(d.oids[b]){case "aes128-CBC":p=16;h=a.aes.createDecryptionCipher; -break;case "aes192-CBC":p=24;h=a.aes.createDecryptionCipher;break;case "aes256-CBC":p=32;h=a.aes.createDecryptionCipher;break;case "des-EDE3-CBC":p=24;h=a.des.createDecryptionCipher;break;case "desCBC":p=8,h=a.des.createDecryptionCipher}b=a.pkcs5.pbkdf2(f,c,m,p);l=l.encIv;h=h(b);return h.start(l),h};d.pbe.getCipherForPKCS12PBE=function(b,c,f){var l={},h=[];if(!e.validate(c,k,l,h))throw f=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo."), -f.errors=h,f;var h=a.util.createBuffer(l.salt),l=a.util.createBuffer(l.iterations),l=l.getInt(l.length()<<3),m;switch(b){case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:m=24;c=8;b=a.des.startDecrypting;break;case d.oids["pbewithSHAAnd40BitRC2-CBC"]:m=5;c=8;b=function(b,c){b=a.rc2.createDecryptionCipher(b,40);return b.start(c,null),b};break;default:throw f=Error("Cannot read PKCS #12 PBE data block. Unsupported OID."),f.oid=b,f;}m=d.pbe.generatePkcs12Key(f,h,1,l,m);f=d.pbe.generatePkcs12Key(f,h,2,l, -c);return b(m,f)};d.pbe.opensslDeriveBytes=function(c,f,e,d){if("undefined"==typeof d||null===d)d=a.md.md5.create();null===f&&(f="");for(var l=[b(d,c+f)],h=16,m=1;h>=8,z+=y.at(m)+x.at(m),x.setAt(m,z&255);C.putBuffer(x)}u=C;n.putBuffer(q)}return n.truncate(n.length()-d),n};d.pbe.getCipher=function(a,b,c){switch(a){case d.oids.pkcs5PBES2:return d.pbe.getCipherForPBES2(a,b,c);case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case d.oids["pbewithSHAAnd40BitRC2-CBC"]:return d.pbe.getCipherForPKCS12PBE(a, +b,c);default:throw b=Error("Cannot read encrypted PBE data block. Unsupported OID."),b.oid=a,b.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],b;}};d.pbe.getCipherForPBES2=function(b,c,e){var l={};b=[];if(!f.validate(c,g,l,b)){var h=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw h.errors=b,h;}b=f.derToOid(l.kdfOid);if(b!==d.oids.pkcs5PBKDF2)throw h=Error("Cannot read encrypted private key. Unsupported key derivation function OID."), +h.oid=b,h.supportedOids=["pkcs5PBKDF2"],h;b=f.derToOid(l.encOid);if(b!==d.oids["aes128-CBC"]&&b!==d.oids["aes192-CBC"]&&b!==d.oids["aes256-CBC"]&&b!==d.oids["des-EDE3-CBC"]&&b!==d.oids.desCBC)throw h=Error("Cannot read encrypted private key. Unsupported encryption scheme OID."),h.oid=b,h.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],h;c=l.kdfSalt;var m=a.util.createBuffer(l.kdfIterationCount),m=m.getInt(m.length()<<3),p;switch(d.oids[b]){case "aes128-CBC":p=16;h=a.aes.createDecryptionCipher; +break;case "aes192-CBC":p=24;h=a.aes.createDecryptionCipher;break;case "aes256-CBC":p=32;h=a.aes.createDecryptionCipher;break;case "des-EDE3-CBC":p=24;h=a.des.createDecryptionCipher;break;case "desCBC":p=8,h=a.des.createDecryptionCipher}b=a.pkcs5.pbkdf2(e,c,m,p);l=l.encIv;h=h(b);return h.start(l),h};d.pbe.getCipherForPKCS12PBE=function(b,c,e){var l={},h=[];if(!f.validate(c,k,l,h))throw e=Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo."), +e.errors=h,e;var h=a.util.createBuffer(l.salt),l=a.util.createBuffer(l.iterations),l=l.getInt(l.length()<<3),m;switch(b){case d.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:m=24;c=8;b=a.des.startDecrypting;break;case d.oids["pbewithSHAAnd40BitRC2-CBC"]:m=5;c=8;b=function(b,c){b=a.rc2.createDecryptionCipher(b,40);return b.start(c,null),b};break;default:throw e=Error("Cannot read PKCS #12 PBE data block. Unsupported OID."),e.oid=b,e;}m=d.pbe.generatePkcs12Key(e,h,1,l,m);e=d.pbe.generatePkcs12Key(e,h,2,l, +c);return b(m,e)};d.pbe.opensslDeriveBytes=function(c,e,f,d){if("undefined"==typeof d||null===d)d=a.md.md5.create();null===e&&(e="");for(var l=[b(d,c+e)],h=16,m=1;h>8*p-f&255;return n=String.fromCharCode(n.charCodeAt(0)&~f)+ -n.substr(1),n+b+String.fromCharCode(188)},p.verify=function(b,f,l){var h;h=l-1;l=Math.ceil(h/8);f=f.substr(-l);if(l>8*l-h&255;if(0!==(n.charCodeAt(0)&p))throw Error("Bits beyond keysize not zero as expected.");var u=e.generate(f,g),B="";for(h=0;h>8*p-e&255;return n=String.fromCharCode(n.charCodeAt(0)&~e)+ +n.substr(1),n+b+String.fromCharCode(188)},p.verify=function(b,e,l){var h;h=l-1;l=Math.ceil(h/8);e=e.substr(-l);if(l>8*l-h&255;if(0!==(p.charCodeAt(0)&n))throw Error("Bits beyond keysize not zero as expected.");var u=f.generate(e,g),B="";for(h=0;hh.length)throw Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime."); -l.validity.notBefore=h[0];l.validity.notAfter=h[1];l.tbsCertificate=d.tbsCertificate;if(f){l.md=null;if(l.signatureOid in q)switch(h=q[l.signatureOid],h){case "sha1WithRSAEncryption":l.md=a.md.sha1.create();break;case "md5WithRSAEncryption":l.md=a.md.md5.create();break;case "sha256WithRSAEncryption":l.md=a.md.sha256.create();break;case "RSASSA-PSS":l.md=a.md.sha256.create()}if(null===l.md)throw d=Error("Could not compute certificate digest. Unknown signature OID."),d.signatureOid=l.signatureOid,d; -f=g.toDer(l.tbsCertificate);l.md.update(f.getBytes())}f=a.md.sha1.create();l.issuer.getField=function(a){return b(l.issuer,a)};l.issuer.addField=function(a){e([a]);l.issuer.attributes.push(a)};l.issuer.attributes=k.RDNAttributesAsArray(d.certIssuer,f);d.certIssuerUniqueId&&(l.issuer.uniqueId=d.certIssuerUniqueId);l.issuer.hash=f.digest().toHex();f=a.md.sha1.create();return l.subject.getField=function(a){return b(l.subject,a)},l.subject.addField=function(a){e([a]);l.subject.attributes.push(a)},l.subject.attributes= -k.RDNAttributesAsArray(d.certSubject,f),d.certSubjectUniqueId&&(l.subject.uniqueId=d.certSubjectUniqueId),l.subject.hash=f.digest().toHex(),d.certExtensions?l.extensions=k.certificateExtensionsFromAsn1(d.certExtensions):l.extensions=[],l.publicKey=k.publicKeyFromAsn1(d.subjectPublicKeyInfo),l};k.certificateExtensionsFromAsn1=function(a){for(var b=[],c=0;cm.validity.notAfter)l={message:"Certificate is not valid yet or has expired.", +h(a.signatureOid,a.signatureParameters)]),g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,String.fromCharCode(0)+a.signature)])};k.createCaStore=function(b){function e(b){if(!b.hash){var e=a.md.sha1.create();b.attributes=k.RDNAttributesAsArray(c(b),e);b.hash=e.digest().toHex()}return f.certs[b.hash]||null}var f={certs:{},getIssuer:function(a){return e(a.issuer)},addCertificate:function(b){"string"==typeof b&&(b=a.pki.certificateFromPem(b));if(!b.subject.hash){var e=a.md.sha1.create();b.subject.attributes= +k.RDNAttributesAsArray(c(b.subject),e);b.subject.hash=e.digest().toHex()}b.subject.hash in f.certs?(e=f.certs[b.subject.hash],a.util.isArray(e)||(e=[e]),e.push(b)):f.certs[b.subject.hash]=b},hasCertificate:function(b){var c=e(b.subject);if(!c)return!1;a.util.isArray(c)||(c=[c]);b=g.toDer(k.certificateToAsn1(b)).getBytes();for(var f=0;fm.validity.notAfter)l={message:"Certificate is not valid yet or has expired.", error:k.certificateError.certificate_expired,notBefore:m.validity.notBefore,notAfter:m.validity.notAfter,now:d};if(null===l){n=c[0]||b.getIssuer(m);null===n&&m.isIssuer(m)&&(p=!0,n=m);if(n){var u=n;a.util.isArray(u)||(u=[u]);for(var r=!1;!r&&0h.pathLenConstraint&&(l={message:"Certificate basicConstraints pathLenConstraint violated.", -error:k.certificateError.bad_certificate}));m=null===l?!0:l.error;h=f?f(m,g,e):m;if(!0!==h){!0===m&&(l={message:"The application rejected the certificate.",error:k.certificateError.bad_certificate});if(h||0===h)"object"!=typeof h||a.util.isArray(h)?"string"==typeof h&&(l.error=h):(h.message&&(l.message=h.message),h.error&&(l.error=h.error));throw l;}l=null;h=!1;++g}while(0>1,h=g+(b.length&1),l=b.substr(0,h),h=b.substr(g,h);b=a.util.createBuffer(); -g=a.hmac.create();f=c+f;var m=Math.ceil(e/16);c=Math.ceil(e/20);g.start("MD5",l);l=a.util.createBuffer();b.putBytes(f);for(var n=0;n>1,h=g+(b.length&1),l=b.substr(0,h),h=b.substr(g,h);b=a.util.createBuffer(); +g=a.hmac.create();e=c+e;var m=Math.ceil(f/16);c=Math.ceil(f/20);g.start("MD5",l);l=a.util.createBuffer();b.putBytes(e);for(var n=0;nf)b.error(b,{message:h?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{c=c.fragment;var l=c.length(),e={version:{major:c.getByte(),minor:c.getByte()},random:a.util.createBuffer(c.getBytes(32)),session_id:d(c,1),extensions:[]};h?(e.cipher_suite= -c.getBytes(2),e.compression_method=c.getByte()):(e.cipher_suites=d(c,2),e.compression_methods=d(c,1));l=f-(l-c.length());if(0e)b.error(b,{message:h?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{c=c.fragment;var l=c.length(),f={version:{major:c.getByte(),minor:c.getByte()},random:a.util.createBuffer(c.getBytes(32)),session_id:d(c,1),extensions:[]};h?(f.cipher_suite= +c.getBytes(2),f.compression_method=c.getByte()):(f.cipher_suites=d(c,2),f.compression_methods=d(c,1));l=e-(l-c.length());if(0c.version.minor)f=null,e="";0===e.length&&(e=a.random.getBytes(32));b.session.id=e;b.session.clientHelloVersion=c.version;b.session.sp={};if(f)b.version=b.session.version=f.version,b.session.sp=f.sp;else{for(var d,e=1;ec.version.minor)e=null,f="";0===f.length&&(f=a.random.getBytes(32));b.session.id=f;b.session.clientHelloVersion=c.version;b.session.sp={};if(e)b.version=b.session.version=e.version,b.session.sp=e.sp;else{for(var d,f=1;ff)return b.error(b,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal, -description:g.Alert.Description.illegal_parameter}});f=d(c.fragment,3);var e,h;c=[];try{for(;0f)return b.error(b,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});c=d(c.fragment,2).getBytes();f=null;if(b.getPrivateKey)try{f=b.getPrivateKey(b,b.session.serverCertificate),f=a.pki.privateKeyFromPem(f)}catch(qa){b.error(b,{message:"Could not get private key.",cause:qa,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(null=== -f)return b.error(b,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var e=b.session.sp;e.pre_master_secret=f.decrypt(c);var h=b.session.clientHelloVersion;if(h.major!==e.pre_master_secret.charCodeAt(0)||h.minor!==e.pre_master_secret.charCodeAt(1))throw Error("TLS version rollback attack detected.");}catch(qa){e.pre_master_secret=a.random.getBytes(48)}b.expect=I;null!==b.session.clientCertificate&&(b.expect=B);b.process()}; -g.handleCertificateRequest=function(a,b,c){if(3>c)return a.error(a,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});b=b.fragment;b={certificate_types:d(b,1),certificate_authorities:d(b,2)};a.session.certificateRequest=b;a.expect=z;a.process()};g.handleCertificateVerify=function(b,c,f){if(2>f)return b.error(b,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal, -description:g.Alert.Description.illegal_parameter}});f=c.fragment;f.read-=4;c=f.bytes();f.read+=4;f=d(f,2).getBytes();var e=a.util.createBuffer();e.putBuffer(b.session.md5.digest());e.putBuffer(b.session.sha1.digest());e=e.getBytes();try{if(!b.session.clientCertificate.publicKey.verify(e,f,"NONE"))throw Error("CertificateVerify signature does not match.");b.session.md5.update(c);b.session.sha1.update(c)}catch(pa){return b.error(b,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal, -description:g.Alert.Description.handshake_failure}})}b.expect=I;b.process()};g.handleServerHelloDone=function(b,c,f){if(0e)return b.error(b,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal, +description:g.Alert.Description.illegal_parameter}});e=d(c.fragment,3);var f,h;c=[];try{for(;0e)return b.error(b,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});c=d(c.fragment,2).getBytes();e=null;if(b.getPrivateKey)try{e=b.getPrivateKey(b,b.session.serverCertificate),e=a.pki.privateKeyFromPem(e)}catch(qa){b.error(b,{message:"Could not get private key.",cause:qa,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(null=== +e)return b.error(b,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var f=b.session.sp;f.pre_master_secret=e.decrypt(c);var h=b.session.clientHelloVersion;if(h.major!==f.pre_master_secret.charCodeAt(0)||h.minor!==f.pre_master_secret.charCodeAt(1))throw Error("TLS version rollback attack detected.");}catch(qa){f.pre_master_secret=a.random.getBytes(48)}b.expect=I;null!==b.session.clientCertificate&&(b.expect=B);b.process()}; +g.handleCertificateRequest=function(a,b,c){if(3>c)return a.error(a,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});b=b.fragment;b={certificate_types:d(b,1),certificate_authorities:d(b,2)};a.session.certificateRequest=b;a.expect=z;a.process()};g.handleCertificateVerify=function(b,c,e){if(2>e)return b.error(b,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal, +description:g.Alert.Description.illegal_parameter}});e=c.fragment;e.read-=4;c=e.bytes();e.read+=4;e=d(e,2).getBytes();var f=a.util.createBuffer();f.putBuffer(b.session.md5.digest());f.putBuffer(b.session.sha1.digest());f=f.getBytes();try{if(!b.session.clientCertificate.publicKey.verify(f,e,"NONE"))throw Error("CertificateVerify signature does not match.");b.session.md5.update(c);b.session.sha1.update(c)}catch(pa){return b.error(b,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal, +description:g.Alert.Description.handshake_failure}})}b.expect=I;b.process()};g.handleServerHelloDone=function(b,c,e){if(0f.length())return b.fragmented=c,c.fragment=a.util.createBuffer(),f.read-=4,b.process();b.fragmented=null;f.read-=4;var h=f.bytes(d+4);f.read+=4;e in K[b.entity][b.expect]?(b.entity===g.ConnectionEnd.server&&!b.open&&!b.fail&&(b.handshaking=!0,b.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:a.md.md5.create(),sha1:a.md.sha1.create()}),e!==g.HandshakeType.hello_request&&e!==g.HandshakeType.certificate_verify&& -e!==g.HandshakeType.finished&&(b.session.md5.update(h),b.session.sha1.update(h)),K[b.entity][b.expect][e](b,c,d)):g.handleUnexpected(b,c)};g.handleApplicationData=function(a,b){a.data.putBuffer(b.fragment);a.dataReady(a);a.process()};g.handleHeartbeat=function(b,c){var f=c.fragment;c=f.getByte();var e=f.getInt16(),f=f.getBytes(e);if(c===g.HeartbeatMessageType.heartbeat_request){if(b.handshaking||e>f.length)return b.process();g.queue(b,g.createRecord(b,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response, -f)}));g.flush(b)}else if(c===g.HeartbeatMessageType.heartbeat_response){if(f!==b.expectedHeartbeatPayload)return b.process();b.heartbeatReceived&&b.heartbeatReceived(b,a.util.createBuffer(f))}b.process()};var m=1,k=2,q=3,z=4,D=5,v=6,w=7,x=8,A=1,F=2,B=3,I=4,E=5,H=6,t=g.handleUnexpected,N=g.handleChangeCipherSpec,J=g.handleAlert,P=g.handleHandshake,ea=g.handleApplicationData,Q=g.handleHeartbeat,T=[];T[g.ConnectionEnd.client]=[[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[N,J,t,t,Q],[t, +break;case g.Alert.Description.internal_error:c="Internal error.";break;case g.Alert.Description.user_canceled:c="User canceled.";break;case g.Alert.Description.no_renegotiation:c="Renegotiation not supported.";break;default:c="Unknown error."}if(b.description===g.Alert.Description.close_notify)return a.close();a.error(a,{message:c,send:!1,origin:a.entity===g.ConnectionEnd.client?"server":"client",alert:b});a.process()};g.handleHandshake=function(b,c){var e=c.fragment,f=e.getByte(),d=e.getInt24(); +if(d>e.length())return b.fragmented=c,c.fragment=a.util.createBuffer(),e.read-=4,b.process();b.fragmented=null;e.read-=4;var h=e.bytes(d+4);e.read+=4;f in K[b.entity][b.expect]?(b.entity===g.ConnectionEnd.server&&!b.open&&!b.fail&&(b.handshaking=!0,b.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:a.md.md5.create(),sha1:a.md.sha1.create()}),f!==g.HandshakeType.hello_request&&f!==g.HandshakeType.certificate_verify&& +f!==g.HandshakeType.finished&&(b.session.md5.update(h),b.session.sha1.update(h)),K[b.entity][b.expect][f](b,c,d)):g.handleUnexpected(b,c)};g.handleApplicationData=function(a,b){a.data.putBuffer(b.fragment);a.dataReady(a);a.process()};g.handleHeartbeat=function(b,c){var e=c.fragment;c=e.getByte();var f=e.getInt16(),e=e.getBytes(f);if(c===g.HeartbeatMessageType.heartbeat_request){if(b.handshaking||f>e.length)return b.process();g.queue(b,g.createRecord(b,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response, +e)}));g.flush(b)}else if(c===g.HeartbeatMessageType.heartbeat_response){if(e!==b.expectedHeartbeatPayload)return b.process();b.heartbeatReceived&&b.heartbeatReceived(b,a.util.createBuffer(e))}b.process()};var m=1,k=2,q=3,z=4,D=5,v=6,w=7,x=8,A=1,F=2,B=3,I=4,E=5,H=6,t=g.handleUnexpected,N=g.handleChangeCipherSpec,J=g.handleAlert,P=g.handleHandshake,ea=g.handleApplicationData,Q=g.handleHeartbeat,T=[];T[g.ConnectionEnd.client]=[[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[N,J,t,t,Q],[t, J,P,t,Q],[t,J,P,ea,Q],[t,J,P,t,Q]];T[g.ConnectionEnd.server]=[[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[t,J,P,t,Q],[N,J,t,t,Q],[t,J,P,t,Q],[t,J,P,ea,Q],[t,J,P,t,Q]];var N=g.handleHelloRequest,J=g.handleCertificate,P=g.handleServerKeyExchange,ea=g.handleCertificateRequest,Q=g.handleServerHelloDone,S=g.handleFinished,K=[];K[g.ConnectionEnd.client]=[[t,t,g.handleServerHello,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,J,P,ea,Q,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,P,ea,Q,t,t,t,t,t,t],[N,t, t,t,t,t,t,t,t,t,t,t,t,ea,Q,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,Q,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,S],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[N,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]];K[g.ConnectionEnd.server]=[[t,g.handleClientHello,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,J,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,g.handleClientKeyExchange,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,g.handleCertificateVerify, -t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,S],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]];g.generateKeys=function(a,c){var f=c.client_random+c.server_random;a.session.resuming||(c.master_secret=b(c.pre_master_secret,"master secret",f,48).bytes(),c.pre_master_secret=null);var f=c.server_random+c.client_random,e=2*c.mac_key_length+2*c.enc_key_length;(a=a.version.major===g.Versions.TLS_1_0.major&&a.version.minor=== -g.Versions.TLS_1_0.minor)&&(e+=2*c.fixed_iv_length);f=b(c.master_secret,"key expansion",f,e);e={client_write_MAC_key:f.getBytes(c.mac_key_length),server_write_MAC_key:f.getBytes(c.mac_key_length),client_write_key:f.getBytes(c.enc_key_length),server_write_key:f.getBytes(c.enc_key_length)};return a&&(e.client_write_IV=f.getBytes(c.fixed_iv_length),e.server_write_IV=f.getBytes(c.fixed_iv_length)),e};g.createConnectionState=function(a){var b=a.entity===g.ConnectionEnd.client,f=function(){var a={sequenceNumber:[0, -0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(a){return!0},compressionState:null,compressFunction:function(a){return!0},updateSequenceNumber:function(){4294967295===a.sequenceNumber[1]?(a.sequenceNumber[1]=0,++a.sequenceNumber[0]):++a.sequenceNumber[1]}};return a},d={read:f(),write:f()};d.read.update=function(a,b){return d.read.cipherFunction(b,d.read)?d.read.compressFunction(a,b,d.read)||a.error(a,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal, +t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,S],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t],[t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]];g.generateKeys=function(a,c){var e=c.client_random+c.server_random;a.session.resuming||(c.master_secret=b(c.pre_master_secret,"master secret",e,48).bytes(),c.pre_master_secret=null);var e=c.server_random+c.client_random,f=2*c.mac_key_length+2*c.enc_key_length;(a=a.version.major===g.Versions.TLS_1_0.major&&a.version.minor=== +g.Versions.TLS_1_0.minor)&&(f+=2*c.fixed_iv_length);e=b(c.master_secret,"key expansion",e,f);f={client_write_MAC_key:e.getBytes(c.mac_key_length),server_write_MAC_key:e.getBytes(c.mac_key_length),client_write_key:e.getBytes(c.enc_key_length),server_write_key:e.getBytes(c.enc_key_length)};return a&&(f.client_write_IV=e.getBytes(c.fixed_iv_length),f.server_write_IV=e.getBytes(c.fixed_iv_length)),f};g.createConnectionState=function(a){var b=a.entity===g.ConnectionEnd.client,e=function(){var a={sequenceNumber:[0, +0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(a){return!0},compressionState:null,compressFunction:function(a){return!0},updateSequenceNumber:function(){4294967295===a.sequenceNumber[1]?(a.sequenceNumber[1]=0,++a.sequenceNumber[0]):++a.sequenceNumber[1]}};return a},d={read:e(),write:e()};d.read.update=function(a,b){return d.read.cipherFunction(b,d.read)?d.read.compressFunction(a,b,d.read)||a.error(a,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal, description:g.Alert.Description.decompression_failure}}):a.error(a,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!a.fail};d.write.update=function(a,b){return d.write.compressFunction(a,b,d.write)?d.write.cipherFunction(b,d.write)||a.error(a,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):a.error(a,{message:"Could not compress record.", -send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!a.fail};if(a.session)switch(f=a.session.sp,a.session.cipherSuite.initSecurityParameters(f),f.keys=g.generateKeys(a,f),d.read.macKey=b?f.keys.server_write_MAC_key:f.keys.client_write_MAC_key,d.write.macKey=b?f.keys.client_write_MAC_key:f.keys.server_write_MAC_key,a.session.cipherSuite.initConnectionState(d,a,f),f.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:d.read.compressFunction= -e;d.write.compressFunction=c;break;default:throw Error("Unsupported compression algorithm.");}return d};g.createRandom=function(){var b=new Date,b=+b+6E4*b.getTimezoneOffset(),c=a.util.createBuffer();return c.putInt32(b),c.putBytes(a.random.getBytes(28)),c};g.createRecord=function(a,b){return b.data?{type:b.type,version:{major:a.version.major,minor:a.version.minor},length:b.data.length(),fragment:b.data}:null};g.createAlert=function(b,c){var f=a.util.createBuffer();return f.putByte(c.level),f.putByte(c.description), -g.createRecord(b,{type:g.ContentType.alert,data:f})};g.createClientHello=function(b){b.session.clientHelloVersion={major:b.version.major,minor:b.version.minor};for(var c=a.util.createBuffer(),f=0;fg.MaxFragment;)f.push(g.createRecord(b,{type:c.type,data:a.util.createBuffer(e.slice(0,g.MaxFragment))})),e=e.slice(g.MaxFragment);0g.MaxFragment;)e.push(g.createRecord(b,{type:c.type,data:a.util.createBuffer(f.slice(0,g.MaxFragment))})),f=f.slice(g.MaxFragment);0f?c=5-f:(h.record={type:b.getByte(),version:{major:b.getByte(),minor:b.getByte()},length:b.getInt16(),fragment:a.util.createBuffer(),ready:!1},(b=h.record.version.major===h.version.major)&&h.session&& -h.session.version&&(b=h.record.version.minor===h.version.minor),b||h.error(h,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}}))}if(!h.fail&&null!==h.record&&!h.record.ready){c=h;b=0;var f=c.input,e=f.length();ee?c=5-e:(h.record={type:b.getByte(),version:{major:b.getByte(),minor:b.getByte()},length:b.getInt16(),fragment:a.util.createBuffer(),ready:!1},(b=h.record.version.major===h.version.major)&&h.session&& +h.session.version&&(b=h.record.version.minor===h.version.minor),b||h.error(h,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}}))}if(!h.fail&&null!==h.record&&!h.record.ready){c=h;b=0;var e=c.input,f=e.length();f=h.Versions.TLS_1_1.minor&&c.output.putBytes(g),c.update(b.fragment),c.finish(e)&&(b.fragment=c.output,b.length=b.fragment.length(),f=!0),f}function e(a,b,c){c||(a-=b.length()%a,b.fillWithByte(a-1,a));return!0}function d(a,b,c){a= -!0;if(c){c=b.length();for(var f=b.last(),e=c-1-f;e=g?(b.fragment=e.output.getBytes(n-g),l=e.output.getBytes(g)):b.fragment=e.output.getBytes(); -b.fragment=a.util.createBuffer(b.fragment);b.length=b.fragment.length();b=c.macFunction(c.macKey,c.sequenceNumber,b);c.updateSequenceNumber();c=c.macKey;e=a.hmac.create();return f=(e.start("SHA1",c),e.update(l),l=e.digest().getBytes(),e.start(null,null),e.update(b),b=e.digest().getBytes(),l===b)&&f,f}var h=a.tls;h.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(a){a.bulk_cipher_algorithm=h.BulkCipherAlgorithm.aes;a.cipher_type= +h.handshaking)h.isConnected=h.handshaking=!1,g.queue(h,g.createAlert(h,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(h);h.closed(h)}h.reset(a)},h};a.tls=a.tls||{};for(var O in g)"function"!=typeof g[O]&&(a.tls[O]=g[O]);a.tls.prf_tls1=b;a.tls.hmac_sha1=function(b,c,e){var f=a.hmac.create();f.start("SHA1",b);b=a.util.createBuffer();return b.putInt32(c[0]),b.putInt32(c[1]),b.putByte(e.type),b.putByte(e.version.major),b.putByte(e.version.minor),b.putInt16(e.length), +b.putBytes(e.fragment.bytes()),f.update(b.getBytes()),f.digest().getBytes()};a.tls.createSessionCache=g.createSessionCache;a.tls.createConnection=g.createConnection}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var e=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.tls)return b.tls;b.defined.tls=!0;for(var f= +0;f=h.Versions.TLS_1_1.minor&&c.output.putBytes(g),c.update(b.fragment),c.finish(f)&&(b.fragment=c.output,b.length=b.fragment.length(),e=!0),e}function f(a,b,c){c||(a-=b.length()%a,b.fillWithByte(a-1,a));return!0}function d(a,b,c){a= +!0;if(c){c=b.length();for(var e=b.last(),f=c-1-e;f=g?(b.fragment=f.output.getBytes(n-g),l=f.output.getBytes(g)):b.fragment=f.output.getBytes(); +b.fragment=a.util.createBuffer(b.fragment);b.length=b.fragment.length();b=c.macFunction(c.macKey,c.sequenceNumber,b);c.updateSequenceNumber();c=c.macKey;f=a.hmac.create();return e=(f.start("SHA1",c),f.update(l),l=f.digest().getBytes(),f.start(null,null),f.update(b),b=f.digest().getBytes(),l===b)&&e,e}var h=a.tls;h.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(a){a.bulk_cipher_algorithm=h.BulkCipherAlgorithm.aes;a.cipher_type= h.CipherType.block;a.enc_key_length=16;a.block_length=16;a.fixed_iv_length=16;a.record_iv_length=16;a.mac_algorithm=h.MACAlgorithm.hmac_sha1;a.mac_length=20;a.mac_key_length=20},initConnectionState:b};h.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(a){a.bulk_cipher_algorithm=h.BulkCipherAlgorithm.aes;a.cipher_type=h.CipherType.block;a.enc_key_length=32;a.block_length=16;a.fixed_iv_length=16;a.record_iv_length=16;a.mac_algorithm= -h.MACAlgorithm.hmac_sha1;a.mac_length=20;a.mac_key_length=20},initConnectionState:b};var m=0}if("function"!=typeof a){if("object"!=typeof module||!module.exports)return"undefined"==typeof forge&&(forge={}),c(forge);var d=!0;a=function(a,c){c(b,module)}}var h,g=function(a,b){b.exports=function(b){var f=h.map(function(b){return a(b)}).concat(c);b=b||{};b.defined=b.defined||{};if(b.defined.aesCipherSuites)return b.aesCipherSuites;b.defined.aesCipherSuites=!0;for(var e=0;e=f&&d=e&&db.contentInfo.value.length)throw Error("Could not sign PKCS#7 message; there is no content to sign.");var h=q.derToOid(b.contentInfo.value[0].value),f=b.contentInfo.value[1],f=f.value[0],l=q.toDer(f);l.getByte();q.getBerValueLength(l);var l=l.getBytes(),m;for(m in c)c[m].start().update(l);m=new Date;for(f=0;fb.contentInfo.value.length)throw Error("Could not sign PKCS#7 message; there is no content to sign.");var h=q.derToOid(b.contentInfo.value[0].value),e=b.contentInfo.value[1],e=e.value[0],l=q.toDer(e);l.getByte();q.getBerValueLength(l);var l=l.getBytes(),m;for(m in c)c[m].start().update(l);m=new Date;for(e=0;e>2],c+=chars[(k[b]&3)<<4|k[b+1]>>4],c+=chars[(k[b+1]&15)<<2|k[b+2]>>6],c+=chars[k[b+2]&63];2===a%3?c=c.substring(0,c.length-1)+"\x3d":1===a%3&&(c=c.substring(0,c.length-2)+"\x3d\x3d");return c}; -base64.decode=function(k){var b=.75*k.length,a=k.length,c=0,d,h,g,e;"\x3d"===k[k.length-1]&&(b--,"\x3d"===k[k.length-2]&&b--);for(var m=new ArrayBuffer(b),p=new Uint8Array(m),b=0;b>4,p[c++]=(h&15)<<4|g>>2,p[c++]=(g&3)<<6|e&63;return m}; -(function(k){function b(a,b,c){return b<=a&&a<=c}function a(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function c(a){return 0<=a&&127>=a}function d(a){this.tokens=[].slice.call(a);this.tokens.reverse()}function h(a,b){if(a)throw TypeError("Decoder error");return b||65533}function g(a){throw TypeError("The code point "+a+" could not be encoded.");}function e(a){a=String(a).trim().toLowerCase();return Object.prototype.hasOwnProperty.call(R, -a)?R[a]:null}function m(a,b){return b?b[a]||null:null}function p(a,b){a=b.indexOf(a);return-1===a?null:a}function f(a){if(!("encoding-indexes"in k))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return k["encoding-indexes"][a]}function l(a){L=L||f("jis0208").map(function(a,c){return b(c,8272,8835)?null:a});return L.indexOf(a)}function n(a){var b=U=U||f("big5").map(function(a,b){return 5024>b?null:a});return 9552===a||9566===a||9569===a||9578===a||21313===a||21317=== -a?b.lastIndexOf(a):p(a,b)}function r(b,c){if(!(this instanceof r))throw TypeError("Called as a function. Did you forget 'new'?");b=void 0!==b?String(b):"utf-8";c=a(c);this._decoder=this._encoding=null;this._BOMseen=this._ignoreBOM=!1;this._error_mode="replacement";this._do_not_flush=!1;var f=e(b);if(null===f||"replacement"===f.name)throw RangeError("Unknown encoding: "+b);if(!G[f.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=f;c.fatal&& -(this._error_mode="fatal");c.ignoreBOM&&(this._ignoreBOM=!0);Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase(),this.fatal="fatal"===this._error_mode,this.ignoreBOM=this._ignoreBOM);return this}function u(b,c){if(!(this instanceof u))throw TypeError("Called as a function. Did you forget 'new'?");c=a(c);this._encoder=this._encoding=null;this._do_not_flush=!1;this._fatal=c.fatal?"fatal":"replacement";if(c.NONSTANDARD_allowLegacyEncoding){b=void 0!==b?String(b):"utf-8";c=e(b);if(null=== -c||"replacement"===c.name)throw RangeError("Unknown encoding: "+b);if(!O[c.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=c}else this._encoding=e("utf-8"),void 0!==b&&"console"in k&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase());return this}function y(a){var c=a.fatal,f=0,e=0,d=0,g=128,l=191;this.handler=function(a,m){if(-1=== -m&&0!==d)return d=0,h(c);if(-1===m)return-1;if(0===d){if(b(m,0,127))return m;if(b(m,194,223))d=1,f=m&31;else if(b(m,224,239))224===m&&(g=160),237===m&&(l=159),d=2,f=m&15;else if(b(m,240,244))240===m&&(g=144),244===m&&(l=143),d=3,f=m&7;else return h(c);return null}if(!b(m,g,l))return f=d=e=0,g=128,l=191,a.prepend(m),h(c);g=128;l=191;f=f<<6|m&63;e+=1;if(e!==d)return null;a=f;f=d=e=0;return a}}function C(a){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;var f,e;b(c,128,2047)?(f=1,e=192): -b(c,2048,65535)?(f=2,e=224):b(c,65536,1114111)&&(f=3,e=240);for(a=[(c>>6*f)+e];0>6*(f-1)&63),--f;return a}}function q(a,b){var f=b.fatal;this.handler=function(b,e){if(-1===e)return-1;if(c(e))return e;b=a[e-128];return null===b?h(f):b}}function z(a,b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;b=p(c,a);null===b&&g(c);return b+128}}function D(a){var e=a.fatal,d=0,g=0,l=0;this.handler=function(a,k){if(-1===k&&0===d&&0===g&&0===l)return-1;-1!==k||0===d&&0===g&&0=== -l||(l=g=d=0,h(e));var n;if(0!==l){n=null;if(b(k,48,57))if(n=10*(126*(10*(d-129)+g-48)+l-129)+k-48,39419n||1237575k?64:65;if(b(k,64,126)||b(k,128, -254))p=190*(n-129)+(k-r);n=null===p?null:m(p,f("gb18030"));null===n&&c(k)&&a.prepend(k);return null===n?h(e):n}return c(k)?k:128===k?8364:b(k,129,254)?(d=k,null):h(e)}}function v(a,b){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(58853===c)return g(c);if(b&&8364===c)return 128;a=p(c,f("gb18030"));if(null!==a)return c=S(a/190)+129,a%=190,[c,a+(63>a?64:65)];if(b)return g(c);if(59335===c)a=7457;else{var e=a=0,d=f("gb18030-ranges"),h;for(h=0;hg?64:98;if(b(g,64,126)||b(g,161,254))k=157*(l-129)+(g-n);switch(k){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}l=null===k?null:m(k,f("big5"));null===l&&c(g)&& -a.prepend(g);return null===l?h(e):l}return c(g)?g:b(g,129,254)?(d=g,null):h(e)}}function x(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;var c=n(b);if(null===c)return g(b);a=S(c/157)+129;if(161>a)return g(b);b=c%157;return[a,b+(63>b?64:98)]}}function A(a){var e=a.fatal,d=!1,g=0;this.handler=function(a,l){if(-1===l&&0!==g)return g=0,h(e);if(-1===l&&0===g)return-1;if(142===g&&b(l,161,223))return g=0,65216+l;if(143===g&&b(l,161,254))return d=!0,g=l,null;if(0!==g){var k=g;g=0;var n= -null;b(k,161,254)&&b(l,161,254)&&(n=m(94*(k-161)+(l-161),f(d?"jis0212":"jis0208")));d=!1;b(l,161,254)||a.prepend(l);return null===n?h(e):n}return c(l)?l:142===l||143===l||b(l,161,254)?(g=l,null):h(e)}}function F(a){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(165===c)return 92;if(8254===c)return 126;if(b(c,65377,65439))return[142,c-65377+161];8722===c&&(c=65293);a=p(c,f("jis0208"));return null===a?g(c):[S(a/94)+161,a%94+161]}}function B(a){var c=a.fatal,e=0,d=0,g=!1;this.handler= -function(a,l){switch(e){default:case 0:if(27===l)return e=5,null;if(b(l,0,127)&&14!==l&&15!==l&&27!==l)return g=!1,l;if(-1===l)return-1;g=!1;return h(c);case 1:if(27===l)return e=5,null;if(92===l)return g=!1,165;if(126===l)return g=!1,8254;if(b(l,0,127)&&14!==l&&15!==l&&27!==l&&92!==l&&126!==l)return g=!1,l;if(-1===l)return-1;g=!1;return h(c);case 2:if(27===l)return e=5,null;if(b(l,33,95))return g=!1,65344+l;if(-1===l)return-1;g=!1;return h(c);case 3:if(27===l)return e=5,null;if(b(l,33,126))return g= -!1,d=l,e=4,null;if(-1===l)return-1;g=!1;return h(c);case 4:if(27===l)return e=5,h(c);if(b(l,33,126))return e=3,a=m(94*(d-33)+l-33,f("jis0208")),null===a?h(c):a;if(-1===l)return e=3,a.prepend(l),h(c);e=3;return h(c);case 5:if(36===l||40===l)return d=l,e=6,null;a.prepend(l);g=!1;e=0;return h(c);case 6:var k=d;d=0;var n=null;40===k&&66===l&&(n=0);40===k&&74===l&&(n=1);40===k&&73===l&&(n=2);36!==k||64!==l&&66!==l||(n=3);if(null!==n)return e=e=n,a=g,g=!0,a?h(c):null;a.prepend([k,l]);g=!1;e=0;return h(c)}}} -function I(a){var b=0;this.handler=function(a,c){if(-1===c&&0!==b)return a.prepend(c),b=0,[27,40,66];if(-1===c&&0===b)return-1;if(!(0!==b&&1!==b||14!==c&&15!==c&&27!==c))return g(65533);if(0===b&&K(c))return c;if(1===b&&(K(c)&&92!==c&&126!==c||165==c||8254==c)){if(K(c))return c;if(165===c)return 92;if(8254===c)return 126}if(K(c)&&0!==b)return a.prepend(c),b=0,[27,40,66];if((165===c||8254===c)&&1!==b)return a.prepend(c),b=1,[27,40,74];8722===c&&(c=65293);var e=p(c,f("jis0208"));return null===e?g(c): -2!==b?(a.prepend(c),b=2,[27,36,66]):[S(e/94)+33,e%94+33]}}function E(a){var e=a.fatal,d=0;this.handler=function(a,g){if(-1===g&&0!==d)return d=0,h(e);if(-1===g&&0===d)return-1;if(0!==d){var l=d,k=null;d=0;var n=127>g?64:65,p=160>l?129:193;if(b(g,64,126)||b(g,128,252))k=188*(l-p)+g-n;if(b(k,8836,10715))return 48508+k;l=null===k?null:m(k,f("jis0208"));null===l&&c(g)&&a.prepend(g);return null===l?h(e):l}return c(g)||128===g?g:b(g,161,223)?65216+g:b(g,129,159)||b(g,224,252)?(d=g,null):h(e)}}function H(a){this.handler= -function(a,c){if(-1===c)return-1;if(K(c)||128===c)return c;if(165===c)return 92;if(8254===c)return 126;if(b(c,65377,65439))return c-65377+161;8722===c&&(c=65293);a=l(c);if(null===a)return g(c);c=S(a/188);a%=188;return[c+(31>c?129:193),a+(63>a?64:65)]}}function t(a){var e=a.fatal,d=0;this.handler=function(a,g){if(-1===g&&0!==d)return d=0,h(e);if(-1===g&&0===d)return-1;if(0!==d){var l=d,k=null;d=0;b(g,65,254)&&(k=190*(l-129)+(g-65));l=null===k?null:m(k,f("euc-kr"));null===k&&c(g)&&a.prepend(g);return null=== -l?h(e):l}return c(g)?g:b(g,129,254)?(d=g,null):h(e)}}function N(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;a=p(b,f("euc-kr"));return null===a?g(b):[S(a/190)+129,a%190+65]}}function J(a,b){var c=a>>8;a&=255;return b?[c,a]:[a,c]}function P(a,c){var f=c.fatal,e=null,d=null;this.handler=function(c,g){if(-1===g&&(null!==e||null!==d))return h(f);if(-1===g&&null===e&&null===d)return-1;if(null===e)return e=g,null;g=a?(e<<8)+g:(g<<8)+e;e=null;if(null!==d){var l=d;d=null;if(b(g,56320, -57343))return 65536+1024*(l-55296)+(g-56320);c.prepend(J(g,a));return h(f)}return b(g,55296,56319)?(d=g,null):b(g,56320,57343)?h(f):g}}function ea(a,c){this.handler=function(c,f){if(-1===f)return-1;if(b(f,0,65535))return J(f,a);c=J((f-65536>>10)+55296,a);f=J((f-65536&1023)+56320,a);return c.concat(f)}}function Q(a){this.handler=function(a,b){return-1===b?-1:c(b)?b:63360+b-128};project}function T(a){this.handler=function(a,c){return-1===c?-1:K(c)?c:b(c,63360,63487)?c-63360+128:g(c)}}"undefined"!== +base64.decode=function(k){var b=.75*k.length,a=k.length,c=0,d,h,g,f;"\x3d"===k[k.length-1]&&(b--,"\x3d"===k[k.length-2]&&b--);for(var m=new ArrayBuffer(b),p=new Uint8Array(m),b=0;b>4,p[c++]=(h&15)<<4|g>>2,p[c++]=(g&3)<<6|f&63;return m}; +(function(k){function b(a,b,c){return b<=a&&a<=c}function a(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function c(a){return 0<=a&&127>=a}function d(a){this.tokens=[].slice.call(a);this.tokens.reverse()}function h(a,b){if(a)throw TypeError("Decoder error");return b||65533}function g(a){throw TypeError("The code point "+a+" could not be encoded.");}function f(a){a=String(a).trim().toLowerCase();return Object.prototype.hasOwnProperty.call(R, +a)?R[a]:null}function m(a,b){return b?b[a]||null:null}function p(a,b){a=b.indexOf(a);return-1===a?null:a}function e(a){if(!("encoding-indexes"in k))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return k["encoding-indexes"][a]}function l(a){L=L||e("jis0208").map(function(a,c){return b(c,8272,8835)?null:a});return L.indexOf(a)}function n(a){var b=U=U||e("big5").map(function(a,b){return 5024>b?null:a});return 9552===a||9566===a||9569===a||9578===a||21313===a||21317=== +a?b.lastIndexOf(a):p(a,b)}function r(b,c){if(!(this instanceof r))throw TypeError("Called as a function. Did you forget 'new'?");b=void 0!==b?String(b):"utf-8";c=a(c);this._decoder=this._encoding=null;this._BOMseen=this._ignoreBOM=!1;this._error_mode="replacement";this._do_not_flush=!1;var e=f(b);if(null===e||"replacement"===e.name)throw RangeError("Unknown encoding: "+b);if(!G[e.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=e;c.fatal&& +(this._error_mode="fatal");c.ignoreBOM&&(this._ignoreBOM=!0);Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase(),this.fatal="fatal"===this._error_mode,this.ignoreBOM=this._ignoreBOM);return this}function u(b,c){if(!(this instanceof u))throw TypeError("Called as a function. Did you forget 'new'?");c=a(c);this._encoder=this._encoding=null;this._do_not_flush=!1;this._fatal=c.fatal?"fatal":"replacement";if(c.NONSTANDARD_allowLegacyEncoding){b=void 0!==b?String(b):"utf-8";c=f(b);if(null=== +c||"replacement"===c.name)throw RangeError("Unknown encoding: "+b);if(!O[c.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");this._encoding=c}else this._encoding=f("utf-8"),void 0!==b&&"console"in k&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");Object.defineProperty||(this.encoding=this._encoding.name.toLowerCase());return this}function y(a){var c=a.fatal,e=0,f=0,d=0,g=128,l=191;this.handler=function(a,m){if(-1=== +m&&0!==d)return d=0,h(c);if(-1===m)return-1;if(0===d){if(b(m,0,127))return m;if(b(m,194,223))d=1,e=m&31;else if(b(m,224,239))224===m&&(g=160),237===m&&(l=159),d=2,e=m&15;else if(b(m,240,244))240===m&&(g=144),244===m&&(l=143),d=3,e=m&7;else return h(c);return null}if(!b(m,g,l))return e=d=f=0,g=128,l=191,a.prepend(m),h(c);g=128;l=191;e=e<<6|m&63;f+=1;if(f!==d)return null;a=e;e=d=f=0;return a}}function C(a){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;var e,f;b(c,128,2047)?(e=1,f=192): +b(c,2048,65535)?(e=2,f=224):b(c,65536,1114111)&&(e=3,f=240);for(a=[(c>>6*e)+f];0>6*(e-1)&63),--e;return a}}function q(a,b){var e=b.fatal;this.handler=function(b,f){if(-1===f)return-1;if(c(f))return f;b=a[f-128];return null===b?h(e):b}}function z(a,b){this.handler=function(b,c){if(-1===c)return-1;if(K(c))return c;b=p(c,a);null===b&&g(c);return b+128}}function D(a){var f=a.fatal,d=0,g=0,l=0;this.handler=function(a,k){if(-1===k&&0===d&&0===g&&0===l)return-1;-1!==k||0===d&&0===g&&0=== +l||(l=g=d=0,h(f));var n;if(0!==l){n=null;if(b(k,48,57))if(n=10*(126*(10*(d-129)+g-48)+l-129)+k-48,39419n||1237575k?64:65;if(b(k,64,126)||b(k,128, +254))p=190*(n-129)+(k-r);n=null===p?null:m(p,e("gb18030"));null===n&&c(k)&&a.prepend(k);return null===n?h(f):n}return c(k)?k:128===k?8364:b(k,129,254)?(d=k,null):h(f)}}function v(a,b){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(58853===c)return g(c);if(b&&8364===c)return 128;a=p(c,e("gb18030"));if(null!==a)return c=S(a/190)+129,a%=190,[c,a+(63>a?64:65)];if(b)return g(c);if(59335===c)a=7457;else{var f=a=0,d=e("gb18030-ranges"),h;for(h=0;hg?64:98;if(b(g,64,126)||b(g,161,254))k=157*(l-129)+(g-n);switch(k){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}l=null===k?null:m(k,e("big5"));null===l&&c(g)&& +a.prepend(g);return null===l?h(f):l}return c(g)?g:b(g,129,254)?(d=g,null):h(f)}}function x(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;var c=n(b);if(null===c)return g(b);a=S(c/157)+129;if(161>a)return g(b);b=c%157;return[a,b+(63>b?64:98)]}}function A(a){var f=a.fatal,d=!1,g=0;this.handler=function(a,l){if(-1===l&&0!==g)return g=0,h(f);if(-1===l&&0===g)return-1;if(142===g&&b(l,161,223))return g=0,65216+l;if(143===g&&b(l,161,254))return d=!0,g=l,null;if(0!==g){var k=g;g=0;var n= +null;b(k,161,254)&&b(l,161,254)&&(n=m(94*(k-161)+(l-161),e(d?"jis0212":"jis0208")));d=!1;b(l,161,254)||a.prepend(l);return null===n?h(f):n}return c(l)?l:142===l||143===l||b(l,161,254)?(g=l,null):h(f)}}function F(a){this.handler=function(a,c){if(-1===c)return-1;if(K(c))return c;if(165===c)return 92;if(8254===c)return 126;if(b(c,65377,65439))return[142,c-65377+161];8722===c&&(c=65293);a=p(c,e("jis0208"));return null===a?g(c):[S(a/94)+161,a%94+161]}}function B(a){var c=a.fatal,f=0,d=0,g=!1;this.handler= +function(a,l){switch(f){default:case 0:if(27===l)return f=5,null;if(b(l,0,127)&&14!==l&&15!==l&&27!==l)return g=!1,l;if(-1===l)return-1;g=!1;return h(c);case 1:if(27===l)return f=5,null;if(92===l)return g=!1,165;if(126===l)return g=!1,8254;if(b(l,0,127)&&14!==l&&15!==l&&27!==l&&92!==l&&126!==l)return g=!1,l;if(-1===l)return-1;g=!1;return h(c);case 2:if(27===l)return f=5,null;if(b(l,33,95))return g=!1,65344+l;if(-1===l)return-1;g=!1;return h(c);case 3:if(27===l)return f=5,null;if(b(l,33,126))return g= +!1,d=l,f=4,null;if(-1===l)return-1;g=!1;return h(c);case 4:if(27===l)return f=5,h(c);if(b(l,33,126))return f=3,a=m(94*(d-33)+l-33,e("jis0208")),null===a?h(c):a;if(-1===l)return f=3,a.prepend(l),h(c);f=3;return h(c);case 5:if(36===l||40===l)return d=l,f=6,null;a.prepend(l);g=!1;f=0;return h(c);case 6:var k=d;d=0;var n=null;40===k&&66===l&&(n=0);40===k&&74===l&&(n=1);40===k&&73===l&&(n=2);36!==k||64!==l&&66!==l||(n=3);if(null!==n)return f=f=n,a=g,g=!0,a?h(c):null;a.prepend([k,l]);g=!1;f=0;return h(c)}}} +function I(a){var b=0;this.handler=function(a,c){if(-1===c&&0!==b)return a.prepend(c),b=0,[27,40,66];if(-1===c&&0===b)return-1;if(!(0!==b&&1!==b||14!==c&&15!==c&&27!==c))return g(65533);if(0===b&&K(c))return c;if(1===b&&(K(c)&&92!==c&&126!==c||165==c||8254==c)){if(K(c))return c;if(165===c)return 92;if(8254===c)return 126}if(K(c)&&0!==b)return a.prepend(c),b=0,[27,40,66];if((165===c||8254===c)&&1!==b)return a.prepend(c),b=1,[27,40,74];8722===c&&(c=65293);var f=p(c,e("jis0208"));return null===f?g(c): +2!==b?(a.prepend(c),b=2,[27,36,66]):[S(f/94)+33,f%94+33]}}function E(a){var f=a.fatal,d=0;this.handler=function(a,g){if(-1===g&&0!==d)return d=0,h(f);if(-1===g&&0===d)return-1;if(0!==d){var l=d,k=null;d=0;var n=127>g?64:65,p=160>l?129:193;if(b(g,64,126)||b(g,128,252))k=188*(l-p)+g-n;if(b(k,8836,10715))return 48508+k;l=null===k?null:m(k,e("jis0208"));null===l&&c(g)&&a.prepend(g);return null===l?h(f):l}return c(g)||128===g?g:b(g,161,223)?65216+g:b(g,129,159)||b(g,224,252)?(d=g,null):h(f)}}function H(a){this.handler= +function(a,c){if(-1===c)return-1;if(K(c)||128===c)return c;if(165===c)return 92;if(8254===c)return 126;if(b(c,65377,65439))return c-65377+161;8722===c&&(c=65293);a=l(c);if(null===a)return g(c);c=S(a/188);a%=188;return[c+(31>c?129:193),a+(63>a?64:65)]}}function t(a){var f=a.fatal,d=0;this.handler=function(a,g){if(-1===g&&0!==d)return d=0,h(f);if(-1===g&&0===d)return-1;if(0!==d){var l=d,k=null;d=0;b(g,65,254)&&(k=190*(l-129)+(g-65));l=null===k?null:m(k,e("euc-kr"));null===k&&c(g)&&a.prepend(g);return null=== +l?h(f):l}return c(g)?g:b(g,129,254)?(d=g,null):h(f)}}function N(a){this.handler=function(a,b){if(-1===b)return-1;if(K(b))return b;a=p(b,e("euc-kr"));return null===a?g(b):[S(a/190)+129,a%190+65]}}function J(a,b){var c=a>>8;a&=255;return b?[c,a]:[a,c]}function P(a,c){var e=c.fatal,f=null,d=null;this.handler=function(c,g){if(-1===g&&(null!==f||null!==d))return h(e);if(-1===g&&null===f&&null===d)return-1;if(null===f)return f=g,null;g=a?(f<<8)+g:(g<<8)+f;f=null;if(null!==d){var l=d;d=null;if(b(g,56320, +57343))return 65536+1024*(l-55296)+(g-56320);c.prepend(J(g,a));return h(e)}return b(g,55296,56319)?(d=g,null):b(g,56320,57343)?h(e):g}}function ea(a,c){this.handler=function(c,e){if(-1===e)return-1;if(b(e,0,65535))return J(e,a);c=J((e-65536>>10)+55296,a);e=J((e-65536&1023)+56320,a);return c.concat(e)}}function Q(a){this.handler=function(a,b){return-1===b?-1:c(b)?b:63360+b-128};project}function T(a){this.handler=function(a,c){return-1===c?-1:K(c)?c:b(c,63360,63487)?c-63360+128:g(c)}}"undefined"!== typeof module&&module.exports&&!k["encoding-indexes"]&&(k["encoding-indexes"]=require("./encoding-indexes.js")["encoding-indexes"]);var S=Math.floor,K=c;d.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():-1},prepend:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.push(a.pop());else this.tokens.push(a)},push:function(a){if(Array.isArray(a))for(;a.length;)this.tokens.unshift(a.shift());else this.tokens.unshift(a)}};var M= [{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:"csisolatin2 iso-8859-2 iso-ir-101 iso8859-2 iso88592 iso_8859-2 iso_8859-2:1987 l2 latin2".split(" "),name:"ISO-8859-2"},{labels:"csisolatin3 iso-8859-3 iso-ir-109 iso8859-3 iso88593 iso_8859-3 iso_8859-3:1988 l3 latin3".split(" "),name:"ISO-8859-3"},{labels:"csisolatin4 iso-8859-4 iso-ir-110 iso8859-4 iso88594 iso_8859-4 iso_8859-4:1988 l4 latin4".split(" "), name:"ISO-8859-4"},{labels:"csisolatincyrillic cyrillic iso-8859-5 iso-ir-144 iso8859-5 iso88595 iso_8859-5 iso_8859-5:1988".split(" "),name:"ISO-8859-5"},{labels:"arabic asmo-708 csiso88596e csiso88596i csisolatinarabic ecma-114 iso-8859-6 iso-8859-6-e iso-8859-6-i iso-ir-127 iso8859-6 iso88596 iso_8859-6 iso_8859-6:1987".split(" "),name:"ISO-8859-6"},{labels:"csisolatingreek ecma-118 elot_928 greek greek8 iso-8859-7 iso-ir-126 iso8859-7 iso88597 iso_8859-7 iso_8859-7:1987 sun_eu_greek".split(" "), @@ -607,106 +607,106 @@ name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows- "euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:"csshiftjis ms932 ms_kanji shift-jis shift_jis sjis windows-31j x-sjis".split(" "),name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:"cseuckr csksc56011987 euc-kr iso-ir-149 korean ks_c_5601-1987 ks_c_5601-1989 ksc5601 ksc_5601 windows-949".split(" "),name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312", "iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],R={};M.forEach(function(a){a.encodings.forEach(function(a){a.labels.forEach(function(b){R[b]=a})})});var O={},G={},L,U;Object.defineProperty&&(Object.defineProperty(r.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(r.prototype, "fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(r.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}}));r.prototype.decode=function(b,c){b="object"===typeof b&&b instanceof ArrayBuffer?new Uint8Array(b):"object"===typeof b&&"buffer"in b&&b.buffer instanceof ArrayBuffer?new Uint8Array(b.buffer,b.byteOffset,b.byteLength):new Uint8Array(0);c=a(c);this._do_not_flush||(this._decoder=G[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1); -this._do_not_flush=!!c.stream;b=new d(b);c=[];for(var f;;){f=b.read();if(-1===f)break;f=this._decoder.handler(b,f);if(-1===f)break;null!==f&&(Array.isArray(f)?c.push.apply(c,f):c.push(f))}if(!this._do_not_flush){do{f=this._decoder.handler(b,b.read());if(-1===f)break;null!==f&&(Array.isArray(f)?c.push.apply(c,f):c.push(f))}while(!b.endOfStream());this._decoder=null}-1===["UTF-8","UTF-16LE","UTF-16BE"].indexOf(this._encoding.name)||this._ignoreBOM||this._BOMseen||(0=e?b+=String.fromCharCode(e):(e-=65536,b+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return b};Object.defineProperty&&Object.defineProperty(u.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});u.prototype.encode=function(b,c){b=void 0===b?"":String(b);c=a(c);this._do_not_flush||(this._encoder=O[this._encoding.name]({fatal:"fatal"===this._fatal}));this._do_not_flush=!!c.stream; -b=String(b);c=b.length;for(var f=0,e=[];fg||57343=g)e.push(65533);else if(55296<=g&&56319>=g)if(f===c-1)e.push(65533);else{var h=b.charCodeAt(f+1);56320<=h&&57343>=h?(e.push(65536+((g&1023)<<10)+(h&1023)),f+=1):e.push(65533)}f+=1}b=new d(e);for(c=[];;){f=b.read();if(-1===f)break;f=this._encoder.handler(b,f);if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}if(!this._do_not_flush){for(;;){f=this._encoder.handler(b, -b.read());if(-1===f)break;Array.isArray(f)?c.push.apply(c,f):c.push(f)}this._encoder=null}return new Uint8Array(c)};O["UTF-8"]=function(a){return new C(a)};G["UTF-8"]=function(a){return new y(a)};(function(){"encoding-indexes"in k&&M.forEach(function(a){"Legacy single-byte encodings"===a.heading&&a.encodings.forEach(function(a){a=a.name;var b=f(a.toLowerCase());G[a]=function(a){return new q(b,a)};O[a]=function(a){return new z(b,a)}})})})();G.GBK=function(a){return new D(a)};O.GBK=function(a){return new v(a, +this._do_not_flush=!!c.stream;b=new d(b);c=[];for(var e;;){e=b.read();if(-1===e)break;e=this._decoder.handler(b,e);if(-1===e)break;null!==e&&(Array.isArray(e)?c.push.apply(c,e):c.push(e))}if(!this._do_not_flush){do{e=this._decoder.handler(b,b.read());if(-1===e)break;null!==e&&(Array.isArray(e)?c.push.apply(c,e):c.push(e))}while(!b.endOfStream());this._decoder=null}-1===["UTF-8","UTF-16LE","UTF-16BE"].indexOf(this._encoding.name)||this._ignoreBOM||this._BOMseen||(0=f?b+=String.fromCharCode(f):(f-=65536,b+=String.fromCharCode((f>>10)+55296,(f&1023)+56320))}return b};Object.defineProperty&&Object.defineProperty(u.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});u.prototype.encode=function(b,c){b=void 0===b?"":String(b);c=a(c);this._do_not_flush||(this._encoder=O[this._encoding.name]({fatal:"fatal"===this._fatal}));this._do_not_flush=!!c.stream; +b=String(b);c=b.length;for(var e=0,f=[];eg||57343=g)f.push(65533);else if(55296<=g&&56319>=g)if(e===c-1)f.push(65533);else{var h=b.charCodeAt(e+1);56320<=h&&57343>=h?(f.push(65536+((g&1023)<<10)+(h&1023)),e+=1):f.push(65533)}e+=1}b=new d(f);for(c=[];;){e=b.read();if(-1===e)break;e=this._encoder.handler(b,e);if(-1===e)break;Array.isArray(e)?c.push.apply(c,e):c.push(e)}if(!this._do_not_flush){for(;;){e=this._encoder.handler(b, +b.read());if(-1===e)break;Array.isArray(e)?c.push.apply(c,e):c.push(e)}this._encoder=null}return new Uint8Array(c)};O["UTF-8"]=function(a){return new C(a)};G["UTF-8"]=function(a){return new y(a)};(function(){"encoding-indexes"in k&&M.forEach(function(a){"Legacy single-byte encodings"===a.heading&&a.encodings.forEach(function(a){a=a.name;var b=e(a.toLowerCase());G[a]=function(a){return new q(b,a)};O[a]=function(a){return new z(b,a)}})})})();G.GBK=function(a){return new D(a)};O.GBK=function(a){return new v(a, !0)};O.gb18030=function(a){return new v(a)};G.gb18030=function(a){return new D(a)};O.Big5=function(a){return new x(a)};G.Big5=function(a){return new w(a)};O["EUC-JP"]=function(a){return new F(a)};G["EUC-JP"]=function(a){return new A(a)};O["ISO-2022-JP"]=function(a){return new I(a)};G["ISO-2022-JP"]=function(a){return new B(a)};O.Shift_JIS=function(a){return new H(a)};G.Shift_JIS=function(a){return new E(a)};O["EUC-KR"]=function(a){return new N(a)};G["EUC-KR"]=function(a){return new t(a)};O["UTF-16BE"]= function(a){return new ea(!0,a)};G["UTF-16BE"]=function(a){return new P(!0,a)};O["UTF-16LE"]=function(a){return new ea(!1,a)};G["UTF-16LE"]=function(a){return new P(!1,a)};O["x-user-defined"]=function(a){return new T(a)};G["x-user-defined"]=function(a){return new Q(a)};k.TextEncoder||(k.TextEncoder=u);k.TextDecoder||(k.TextDecoder=r);"undefined"!==typeof module&&module.exports&&(module.exports={TextEncoder:k.TextEncoder,TextDecoder:k.TextDecoder,EncodingIndexes:k["encoding-indexes"]})})(this||{}); -(function e$jscomp$0(b,a,c){function d(e,g){if(!a[e]){if(!b[e]){var m="function"==typeof require&&require;if(!g&&m)return m(e,!0);if(h)return h(e,!0);g=Error("Cannot find module '"+e+"'");throw g.code="MODULE_NOT_FOUND",g;}g=a[e]={exports:{}};b[e][0].call(g.exports,function(a){var c=b[e][1][a];return d(c?c:a)},g,g.exports,e$jscomp$0,b,a,c)}return a[e].exports}for(var h="function"==typeof require&&require,g=0;g=b.cmp(l)||0<=b.cmp(m));m=a;l=f;b=b.toRed(d.red(l)).redPow(m).fromRed();for(m=h;0!==b.cmp(g);)m=b,b=b.mul(b).mod(l);b=0===m.cmp(l.sub(g))?h:m}while(0===b.cmp(h));a=b.sub(g).gcd(f);return{p:a,q:f.div(a)}}},{"asn1.js":5,crypto:74}],4:[function(k,b,a){(function(a){function c(b){return a(b,"hex").toString("base64").replace(/\+/g, -"-").replace(/\//g,"_").replace(/=/g,"")}function h(a,b){b=b||{};Object.keys(b).forEach(function(c){a[c]=b[c]});return a}function g(a){return 1===a.length%2?"0"+a:a}function e(a,b){a=q.decode(a,"der");var f=g(a.e.toString(16));a={kty:"RSA",n:n(a.n),e:c(f)};return h(a,b)}function m(a,b){a=x.decode(a,"der");var f=g(a.e.toString(16));a={kty:"RSA",n:n(a.n),e:c(f),d:n(a.d),p:n(a.p),q:n(a.q),dp:n(a.dp),dq:n(a.dq),qi:n(a.qi)};return h(a,b)}function p(a,b){a=D.decode(a,"der");return e(a.publicKey.data,b)} -function f(a,b){a=A.decode(a,"der");return m(a.privateKey.data,b)}function l(a){a=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(a);if(!a)return null;var b=!!a[1];return"PRIVATE"===a[2]?b?m:f:b?e:p}function n(a){return c(g(a.toString(16)))}function r(b){return/^[0-9]+$/.test(b)?new u.bignum(b,10):new u.bignum(a(b,"base64"))}var u=k("asn1.js"),y=k("./factor"),C=new u.bignum(1),q=u.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),z=u.define("AlgorithmIdentifier", +g=new d(1),f=new d(2);b.exports=function(a,b,e){a=a.mul(b).sub(g);if(0===a.cmp(h))a=h;else for(;a.isEven();)a=a.div(f);do{var l=f,m=e;do b=new d(c.randomBytes(m.byteLength()));while(0>=b.cmp(l)||0<=b.cmp(m));m=a;l=e;b=b.toRed(d.red(l)).redPow(m).fromRed();for(m=h;0!==b.cmp(g);)m=b,b=b.mul(b).mod(l);b=0===m.cmp(l.sub(g))?h:m}while(0===b.cmp(h));a=b.sub(g).gcd(e);return{p:a,q:e.div(a)}}},{"asn1.js":5,crypto:74}],4:[function(k,b,a){(function(a){function c(b){return a(b,"hex").toString("base64").replace(/\+/g, +"-").replace(/\//g,"_").replace(/=/g,"")}function h(a,b){b=b||{};Object.keys(b).forEach(function(c){a[c]=b[c]});return a}function g(a){return 1===a.length%2?"0"+a:a}function f(a,b){a=q.decode(a,"der");var e=g(a.e.toString(16));a={kty:"RSA",n:n(a.n),e:c(e)};return h(a,b)}function m(a,b){a=x.decode(a,"der");var e=g(a.e.toString(16));a={kty:"RSA",n:n(a.n),e:c(e),d:n(a.d),p:n(a.p),q:n(a.q),dp:n(a.dp),dq:n(a.dq),qi:n(a.qi)};return h(a,b)}function p(a,b){a=D.decode(a,"der");return f(a.publicKey.data,b)} +function e(a,b){a=A.decode(a,"der");return m(a.privateKey.data,b)}function l(a){a=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(a);if(!a)return null;var b=!!a[1];return"PRIVATE"===a[2]?b?m:e:b?f:p}function n(a){return c(g(a.toString(16)))}function r(b){return/^[0-9]+$/.test(b)?new u.bignum(b,10):new u.bignum(a(b,"base64"))}var u=k("asn1.js"),y=k("./factor"),C=new u.bignum(1),q=u.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),z=u.define("AlgorithmIdentifier", function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),D=u.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(z),this.key("publicKey").bitstr())}),v=u.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),w=u.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),x=u.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(v),this.key("n").int(), -this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(w))}),A=u.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(v),this.key("algorithm").use(z),this.key("privateKey").bitstr())});b.exports={pem2jwk:function(b,c){b=b.toString().split(/(\r\n|\r|\n)+/g);b=b.filter(function(a){return 0!==a.trim().length});var f=l(b[0]);b=b.slice(1,-1).join("");return f(new a(b.replace(/[^\w\d\+\/=]+/g, -""),"base64"),c)},jwk2pem:function(b){var c;c={n:r(b.n),e:r(b.e),d:b.d&&r(b.d),p:b.p&&r(b.p),q:b.q&&r(b.q),dp:b.dp&&r(b.dp),dq:b.dq&&r(b.dq),qi:b.qi&&r(b.qi)};var f=!!c.d,e=f?"PRIVATE":"PUBLIC";b="-----BEGIN RSA "+e+" KEY-----\n";e="\n-----END RSA "+e+" KEY-----\n";a(0);if(f){if(!c.p){var d=y(c.e,c.d,c.n),f=d.p,d=d.q,g=c.d.mod(f.sub(C)),h=c.d.mod(d.sub(C)),l=d.invm(f);c={n:c.n,e:c.e,d:c.d,p:f,q:d,dp:g,dq:h,qi:l}}c.version="two-prime";c=x.encode(c,"der")}else c=q.encode(c,"der");c=c.toString("base64").match(/.{1,64}/g).join("\n"); -return b+c+e},BN:u.bignum}}).call(this,k("buffer").Buffer)},{"./factor":3,"asn1.js":5,buffer:65}],5:[function(k,b,a){a.bignum=k("bn.js");a.define=k("./asn1/api").define;a.base=k("./asn1/base");a.constants=k("./asn1/constants");a.decoders=k("./asn1/decoders");a.encoders=k("./asn1/encoders")},{"./asn1/api":6,"./asn1/base":8,"./asn1/constants":12,"./asn1/decoders":14,"./asn1/encoders":16,"bn.js":17}],6:[function(k,b,a){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=k("../asn1"), +this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(w))}),A=u.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(v),this.key("algorithm").use(z),this.key("privateKey").bitstr())});b.exports={pem2jwk:function(b,c){b=b.toString().split(/(\r\n|\r|\n)+/g);b=b.filter(function(a){return 0!==a.trim().length});var e=l(b[0]);b=b.slice(1,-1).join("");return e(new a(b.replace(/[^\w\d\+\/=]+/g, +""),"base64"),c)},jwk2pem:function(b){var c;c={n:r(b.n),e:r(b.e),d:b.d&&r(b.d),p:b.p&&r(b.p),q:b.q&&r(b.q),dp:b.dp&&r(b.dp),dq:b.dq&&r(b.dq),qi:b.qi&&r(b.qi)};var e=!!c.d,f=e?"PRIVATE":"PUBLIC";b="-----BEGIN RSA "+f+" KEY-----\n";f="\n-----END RSA "+f+" KEY-----\n";a(0);if(e){if(!c.p){var d=y(c.e,c.d,c.n),e=d.p,d=d.q,g=c.d.mod(e.sub(C)),h=c.d.mod(d.sub(C)),l=d.invm(e);c={n:c.n,e:c.e,d:c.d,p:e,q:d,dp:g,dq:h,qi:l}}c.version="two-prime";c=x.encode(c,"der")}else c=q.encode(c,"der");c=c.toString("base64").match(/.{1,64}/g).join("\n"); +return b+c+f},BN:u.bignum}}).call(this,k("buffer").Buffer)},{"./factor":3,"asn1.js":5,buffer:65}],5:[function(k,b,a){a.bignum=k("bn.js");a.define=k("./asn1/api").define;a.base=k("./asn1/base");a.constants=k("./asn1/constants");a.decoders=k("./asn1/decoders");a.encoders=k("./asn1/encoders")},{"./asn1/api":6,"./asn1/base":8,"./asn1/constants":12,"./asn1/decoders":14,"./asn1/encoders":16,"bn.js":17}],6:[function(k,b,a){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=k("../asn1"), h=k("inherits"),g=k("vm");a.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b=g.runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})");h(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a,b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder= function(a){this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":5,inherits:1,vm:172}],7:[function(k,b,a){function c(a,b){h.call(this,b);g.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length=0,this.value=a.map(function(a){a instanceof d||(a=new d(a,b));this.length+=a.length; return a},this);else if("number"===typeof a){if(!(0<=a&&255>=a))return b.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=g.byteLength(a);else if(g.isBuffer(a))this.value=a,this.length=a.length;else return b.error("Unsupported type: "+typeof a)}b=k("inherits");var h=k("../base").Reporter,g=k("buffer").Buffer;b(c,h);a.DecoderBuffer=c;c.prototype.save=function(){return{offset:this.offset}};c.prototype.restore=function(a){var b=new c(this.base); b.offset=a.offset;b.length=this.offset;this.offset=a.offset;return b};c.prototype.isEmpty=function(){return this.offset===this.length};c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};c.prototype.skip=function(a,b){if(!(this.offset+a<=this.length))return this.error(b||"DecoderBuffer overrun");b=new c(this.base);b._reporterState=this._reporterState;b.offset=this.offset;b.length=this.offset+a;this.offset+= a;return b};c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};a.EncoderBuffer=d;d.prototype.join=function(a,b){a||(a=new g(this.length));b||(b=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(c){c.join(a,b);b+=c.length}):("number"===typeof this.value?a[b]=this.value:"string"===typeof this.value?a.write(this.value,b):g.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":8,buffer:65,inherits:1}],8:[function(k, b,a){a.Reporter=k("./reporter").Reporter;a.DecoderBuffer=k("./buffer").DecoderBuffer;a.EncoderBuffer=k("./buffer").EncoderBuffer;a.Node=k("./node")},{"./buffer":7,"./node":9,"./reporter":10}],9:[function(k,b,a){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null;c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.parent||(c.children=[],this._wrap())} -var d=k("../base").Reporter,h=k("../base").EncoderBuffer,g=k("minimalistic-assert");k="seq seqof set setof octstr bitstr objid bool gentime utctime null_ enum int ia5str".split(" ");var e="key obj use optional explicit implicit def choice any".split(" ").concat(k);b.exports=c;var m="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};m.forEach(function(c){b[c]=a[c]});var c= -new this.constructor(b.parent);c._baseState=b;return c};c.prototype._wrap=function(){var a=this._baseState;e.forEach(function(b){this[b]=function(){var c=new this.constructor(this);a.children.push(c);return c[b].apply(c,arguments)}},this)};c.prototype._init=function(a){var b=this._baseState;g(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);g.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b= +var d=k("../base").Reporter,h=k("../base").EncoderBuffer,g=k("minimalistic-assert");k="seq seqof set setof octstr bitstr objid bool gentime utctime null_ enum int ia5str".split(" ");var f="key obj use optional explicit implicit def choice any".split(" ").concat(k);b.exports=c;var m="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};m.forEach(function(c){b[c]=a[c]});var c= +new this.constructor(b.parent);c._baseState=b;return c};c.prototype._wrap=function(){var a=this._baseState;f.forEach(function(b){this[b]=function(){var c=new this.constructor(this);a.children.push(c);return c[b].apply(c,arguments)}},this)};c.prototype._init=function(a){var b=this._baseState;g(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);g.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b= this._baseState,c=a.filter(function(a){return a instanceof this.constructor},this);a=a.filter(function(a){return!(a instanceof this.constructor)},this);0!==c.length&&(g(null===b.children),b.children=c,c.forEach(function(a){a._baseState.parent=this},this));0!==a.length&&(g(null===b.args),b.args=a,b.reverseArgs=a.map(function(a){if("object"!==typeof a||a.constructor!==Object)return a;var b={};Object.keys(a).forEach(function(c){c==(c|0)&&(c|=0);b[a[c]]=c});return b}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(a){c.prototype[a]= function(){throw Error(a+" not implemented for encoding: "+this._baseState.enc);}});k.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);g(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){var b=this._baseState;g(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;g(null===b["default"]);b["default"]=a;b.optional= !0;return this};c.prototype.explicit=function(a){var b=this._baseState;g(null===b.explicit&&null===b.implicit);b.explicit=a;return this};c.prototype.implicit=function(a){var b=this._baseState;g(null===b.explicit&&null===b.implicit);b.implicit=a;return this};c.prototype.obj=function(){var a=this._baseState,b=Array.prototype.slice.call(arguments);a.obj=!0;0!==b.length&&this._useArgs(b);return this};c.prototype.key=function(a){var b=this._baseState;g(null===b.key);b.key=a;return this};c.prototype.any= -function(){this._baseState.any=!0;return this};c.prototype.choice=function(a){var b=this._baseState;g(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype._decode=function(a){var b=this._baseState;if(null===b.parent)return a.wrapResult(b.children[0]._decode(a));var c=b["default"],e=!0,d;null!==b.key&&(d=a.enterKey(b.key));if(b.optional&&(e=this._peekTag(a,null!==b.explicit?b.explicit:null!==b.implicit?b.implicit:b.tag||0),a.isError(e)))return e; -var g;b.obj&&e&&(g=a.enterObject());if(e){if(null!==b.explicit){var h=this._decodeTag(a,b.explicit);if(a.isError(h))return h;a=h}if(null===b.use&&null===b.choice){if(b.any)var m=a.save();h=this._decodeTag(a,null!==b.implicit?b.implicit:b.tag,b.any);if(a.isError(h))return h;b.any?c=a.raw(m):a=h}b.any||(c=null===b.choice?this._decodeGeneric(b.tag,a):this._decodeChoice(a));if(a.isError(c))return c;if(!b.any&&null===b.choice&&null!==b.children&&b.children.some(function(b){b._decode(a)}))return err}b.obj&& -e&&(c=a.leaveObject(g));null===b.key||null===c&&!0!==e||a.leaveKey(d,b.key,c);return c};c.prototype._decodeGeneric=function(a,b){var c=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,c.args[0]):"octstr"===a||"bitstr"===a||"ia5str"===a?this._decodeStr(b,a):"objid"===a&&c.args?this._decodeObjid(b,c.args[0],c.args[1]):"objid"===a?this._decodeObjid(b,null,null):"gentime"===a||"utctime"===a?this._decodeTime(b,a):"null_"===a?this._decodeNull(b):"bool"===a?this._decodeBool(b): +function(){this._baseState.any=!0;return this};c.prototype.choice=function(a){var b=this._baseState;g(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype._decode=function(a){var b=this._baseState;if(null===b.parent)return a.wrapResult(b.children[0]._decode(a));var c=b["default"],f=!0,d;null!==b.key&&(d=a.enterKey(b.key));if(b.optional&&(f=this._peekTag(a,null!==b.explicit?b.explicit:null!==b.implicit?b.implicit:b.tag||0),a.isError(f)))return f; +var g;b.obj&&f&&(g=a.enterObject());if(f){if(null!==b.explicit){var h=this._decodeTag(a,b.explicit);if(a.isError(h))return h;a=h}if(null===b.use&&null===b.choice){if(b.any)var m=a.save();h=this._decodeTag(a,null!==b.implicit?b.implicit:b.tag,b.any);if(a.isError(h))return h;b.any?c=a.raw(m):a=h}b.any||(c=null===b.choice?this._decodeGeneric(b.tag,a):this._decodeChoice(a));if(a.isError(c))return c;if(!b.any&&null===b.choice&&null!==b.children&&b.children.some(function(b){b._decode(a)}))return err}b.obj&& +f&&(c=a.leaveObject(g));null===b.key||null===c&&!0!==f||a.leaveKey(d,b.key,c);return c};c.prototype._decodeGeneric=function(a,b){var c=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,c.args[0]):"octstr"===a||"bitstr"===a||"ia5str"===a?this._decodeStr(b,a):"objid"===a&&c.args?this._decodeObjid(b,c.args[0],c.args[1]):"objid"===a?this._decodeObjid(b,null,null):"gentime"===a||"utctime"===a?this._decodeTime(b,a):"null_"===a?this._decodeNull(b):"bool"===a?this._decodeBool(b): "int"===a||"enum"===a?this._decodeInt(b,c.args&&c.args[0]):null!==c.use?this._getUse(c.use,b._reporterState.obj)._decode(b):b.error("unknown tag: "+a)};c.prototype._getUse=function(a,b){var c=this._baseState;c.useDecoder=this._use(a,b);g(null===c.useDecoder._baseState.parent);c.useDecoder=c.useDecoder._baseState.children[0];c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit);return c.useDecoder};c.prototype._decodeChoice=function(a){var b= -this._baseState,c=null,e=!1;Object.keys(b.choice).some(function(f){var d=a.save(),g=b.choice[f];try{var h=g._decode(a);if(a.isError(h))return!1;c={type:f,value:h};e=!0}catch(q){return a.restore(d),!1}return!0},this);return e?c:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a,b,c),void 0!==a&&!this._skipDefault(a,b,c))return a}; -c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var g=null,h=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.children)g=f.children.map(function(c){if("null_"===c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var f= -b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(f);return c},this).filter(function(a){return a}),g=this._createEncoderBuffer(g);else if("seqof"===f.tag||"setof"===f.tag){if(!f.args||1!==f.args.length)return b.error("Too many args for : "+f.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array");g=this.clone();g._baseState.implicit=null;g=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0], -a)._encode(c,b)},g))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(g=this._encodePrimitive(f.tag,a),h=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var l=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,h,l,g))}null!==f.explicit&&(e=this._encodeComposite(f.explicit,!1,"context",e));return e};c.prototype._encodeChoice=function(a,b){var c=this._baseState,f=c.choice[a.type]; -f||g(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return f._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if("octstr"===a||"bitstr"===a||"ia5str"===a)return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a||"utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b, -c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);throw Error("Unsupported tag: "+a);}},{"../base":8,"minimalistic-assert":2}],10:[function(k,b,a){function c(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}k=k("inherits");a.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.leaveKey=function(a,b,c){var e=this._reporterState; -e.path=e.path.slice(0,a-1);null!==e.obj&&(e.obj[b]=c)};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),a.message||a,a.stack);if(!b.options.partial)throw a;c||b.errors.push(a);return a};c.prototype.wrapResult=function(a){var b= +this._baseState,c=null,f=!1;Object.keys(b.choice).some(function(e){var d=a.save(),g=b.choice[e];try{var h=g._decode(a);if(a.isError(h))return!1;c={type:e,value:h};f=!0}catch(q){return a.restore(d),!1}return!0},this);return f?c:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var e=this._baseState;if(null===e["default"]||e["default"]!==a)if(a=this._encodeValue(a,b,c),void 0!==a&&!this._skipDefault(a,b,c))return a}; +c.prototype._encodeValue=function(a,b,c){var e=this._baseState;if(null===e.parent)return e.children[0]._encode(a,b||new d);var f=null;this.reporter=b;if(e.optional&&void 0===a)if(null!==e["default"])a=e["default"];else return;var g=null,h=!1;if(e.any)f=this._createEncoderBuffer(a);else if(e.choice)f=this._encodeChoice(a,b);else if(e.children)g=e.children.map(function(c){if("null_"===c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var e= +b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(e);return c},this).filter(function(a){return a}),g=this._createEncoderBuffer(g);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return b.error("Too many args for : "+e.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array");g=this.clone();g._baseState.implicit=null;g=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0], +a)._encode(c,b)},g))}else null!==e.use?f=this._getUse(e.use,c)._encode(a,b):(g=this._encodePrimitive(e.tag,a),h=!0);if(!e.any&&null===e.choice){c=null!==e.implicit?e.implicit:e.tag;var l=null===e.implicit?"universal":"context";null===c?null===e.use&&b.error("Tag could be ommited only for .use()"):null===e.use&&(f=this._encodeComposite(c,h,l,g))}null!==e.explicit&&(f=this._encodeComposite(e.explicit,!1,"context",f));return f};c.prototype._encodeChoice=function(a,b){var c=this._baseState,e=c.choice[a.type]; +e||g(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return e._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if("octstr"===a||"bitstr"===a||"ia5str"===a)return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a||"utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b, +c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);throw Error("Unsupported tag: "+a);}},{"../base":8,"minimalistic-assert":2}],10:[function(k,b,a){function c(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}k=k("inherits");a.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.leaveKey=function(a,b,c){var f=this._reporterState; +f.path=f.path.slice(0,a-1);null!==f.obj&&(f.obj[b]=c)};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),a.message||a,a.stack);if(!b.options.partial)throw a;c||b.errors.push(a);return a};c.prototype.wrapResult=function(a){var b= this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a};k(d,Error);d.prototype.rethrow=function(a){this.message=a+" at: "+(this.path||"(shallow)");Error.captureStackTrace(this,d);return this}},{inherits:1}],11:[function(k,b,a){k=k("../constants");a.tagClass={0:"universal",1:"application",2:"context",3:"private"};a.tagClassByName=k._reverse(a.tagClass);a.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real", 10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};a.tagByName=k._reverse(a.tag)},{"../constants":12}],12:[function(k,b,a){a._reverse=function(a){var b={};Object.keys(a).forEach(function(c){(c|0)==c&&(c|=0);b[a[c]]=c});return b};a.der=k("./der")},{"./der":11}],13:[function(k,b,a){function c(a){this.enc="der";this.name= -a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function h(a,b){var c=a.readUInt8(b);if(a.isError(c))return c;var f=p.tagClass[c>>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d;c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:p.tag[c]}}function g(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4<=b)return a.error("length octect is too long"); -for(var e=f=0;eb?2E3+b:1900+b;else return this.error("Decoding "+b+" time is not supported yet");return Date.UTC(b,c-1,f,e,d,a,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){var c=0,f=a.raw();if(3< -f.length)return new m(f);for(;!a.isEmpty();){c<<=8;f=a.readUInt8();if(a.isError(f))return f;c|=f}b&&(c=b[c]||c);return c};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":5,inherits:1}],14:[function(k,b,a){a.der=k("./der")},{"./der":13}],15:[function(k,b,a){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function h(a){return 10>=a?"0"+a:a}a=k("inherits"); -var g=k("buffer").Buffer;k=k("../../asn1");var e=k.base,m=k.bignum,p=k.constants.der;b.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a,b).join()};a(d,e.Node);d.prototype._encodeComposite=function(a,b,c,e){a:{var f=a;a=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(p.tagByName.hasOwnProperty(f))f=p.tagByName[f];else if("number"!==typeof f||(f|0)!==f){a=a.error("Unknown tag: "+f);break a}31<=f?a=a.error("Multi-octet tag encoding unsupported"):(b||(f|=32),a=f|=p.tagClassByName[c|| -"universal"]<<6)}if(128>e.length)return b=new g(2),b[0]=a,b[1]=e.length,this._createEncoderBuffer([b,e]);f=1;for(c=e.length;256<=c;c>>=8)f++;b=new g(2+f);b[0]=a;b[1]=128|f;c=1+f;for(a=e.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,e])};d.prototype._encodeStr=function(a,b){return"octstr"===b?this._createEncoderBuffer(a):"bitstr"===b?this._createEncoderBuffer([a.unused|0,a.data]):"ia5str"===b?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: "+b+" unsupported")}; +a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){f.Node.call(this,"der",a)}function h(a,b){var c=a.readUInt8(b);if(a.isError(c))return c;var e=p.tagClass[c>>6],f=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d;c<<=7;c|=d&127}else c&=31;return{cls:e,primitive:f,tag:c,tagStr:p.tag[c]}}function g(a,b,c){var e=a.readUInt8(c);if(a.isError(e))return e;if(!b&&128===e)return null;if(0===(e&128))return e;b=e&127;if(4<=b)return a.error("length octect is too long"); +for(var f=e=0;fb?2E3+b:1900+b;else return this.error("Decoding "+b+" time is not supported yet");return Date.UTC(b,c-1,e,f,d,a,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){var c=0,e=a.raw();if(3< +e.length)return new m(e);for(;!a.isEmpty();){c<<=8;e=a.readUInt8();if(a.isError(e))return e;c|=e}b&&(c=b[c]||c);return c};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":5,inherits:1}],14:[function(k,b,a){a.der=k("./der")},{"./der":13}],15:[function(k,b,a){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){f.Node.call(this,"der",a)}function h(a){return 10>=a?"0"+a:a}a=k("inherits"); +var g=k("buffer").Buffer;k=k("../../asn1");var f=k.base,m=k.bignum,p=k.constants.der;b.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a,b).join()};a(d,f.Node);d.prototype._encodeComposite=function(a,b,c,f){a:{var e=a;a=this.reporter;"seqof"===e?e="seq":"setof"===e&&(e="set");if(p.tagByName.hasOwnProperty(e))e=p.tagByName[e];else if("number"!==typeof e||(e|0)!==e){a=a.error("Unknown tag: "+e);break a}31<=e?a=a.error("Multi-octet tag encoding unsupported"):(b||(e|=32),a=e|=p.tagClassByName[c|| +"universal"]<<6)}if(128>f.length)return b=new g(2),b[0]=a,b[1]=f.length,this._createEncoderBuffer([b,f]);e=1;for(c=f.length;256<=c;c>>=8)e++;b=new g(2+e);b[0]=a;b[1]=128|e;c=1+e;for(a=f.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,f])};d.prototype._encodeStr=function(a,b){return"octstr"===b?this._createEncoderBuffer(a):"bitstr"===b?this._createEncoderBuffer([a.unused|0,a.data]):"ia5str"===b?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: "+b+" unsupported")}; d.prototype._encodeObjid=function(a,b,c){if("string"===typeof a){if(!b)return this.reporter.error("string objid given, but no values map found");if(!b.hasOwnProperty(a))return this.reporter.error("objid not found in values map");a=b[a].split(/\s+/g);for(b=0;b>=7)f++;var f=new g(f),e=f.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],f[e--]=c&127;0<(c>>=7);)f[e--]=128|c&127;return this._createEncoderBuffer(f)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[a.getFullYear(),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[a.getFullYear()%100,h(a.getUTCMonth()+1),h(a.getUTCDate()), +a.splice(0,2,40*a[0]+a[1])}var e=0;for(b=0;b>=7)e++;var e=new g(e),f=e.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],e[f--]=c&127;0<(c>>=7);)e[f--]=128|c&127;return this._createEncoderBuffer(e)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[a.getFullYear(),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[a.getFullYear()%100,h(a.getUTCMonth()+1),h(a.getUTCDate()), h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}null!== m&&a instanceof m&&(b=a.toArray(),!1===a.sign&&b[0]&128&&b.unshift(0),a=new g(b));if(g.isBuffer(a)){var c=a.length;0===a.length&&c++;c=new g(c);a.copy(c);0===a.length&&(c[0]=0);return this._createEncoderBuffer(c)}if(128>a)return this._createEncoderBuffer(a);if(256>a)return this._createEncoderBuffer([0,a]);c=1;for(b=a;256<=b;b>>=8)c++;c=Array(c);for(b=c.length-1;0<=b;b--)c[b]=a&255,a>>=8;c[0]&128&&c.unshift(0);return this._createEncoderBuffer(new g(c))};d.prototype._encodeBool=function(a){return this._createEncoderBuffer(a? -255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var f=this._baseState;if(null===f["default"])return!1;a=a.join();void 0===f.defaultBuffer&&(f.defaultBuffer=this._encodeValue(f["default"],b,c).join());if(a.length!==f.defaultBuffer.length)return!1;for(b=0;b=e?f|e-49+10:17<=e&&22>=e?f|e-17+10:f|e&15;return f}function k(a,b,c,f){var e=0;for(c=Math.min(a.length,c);ba&&(this.sign=!0,a=-a),67108864>a?(this.words=[a&67108863],this.length=1):(this.words=[a&67108863,a/67108864&67108863],this.length=2);else{if("object"===typeof a)return this._initArray(a,b,f);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");f=0;"-"=== -a[0]&&f++;16===b?this._parseHex(a,f):this._parseBase(a,b,f);"-"===a[0]&&(this.sign=!0);this.strip()}};e.prototype._initArray=function(a,b,f){c("number"===typeof a.length);this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-e&67108863;e+=24;26<=e&&(e-=26,f++)}else if("le"===f)for(f=b=0;b>>26-e&67108863,e+=24,26<=e&&(e-=26,f++);return this.strip()};e.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6){var d=m(a,c,c+6);this.words[e]|=d<>>26-f&4194303;f+=24;26<=f&&(f-=26,e++)}c+6!==b&&(d=m(a,b,c+6),this.words[e]|=d<>>26-f&4194303); -this.strip()};e.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,e=1;67108863>=e;e*=b)f++;f--;for(var e=e/b|0,d=a.length-c,g=d%f,d=Math.min(d,d-g)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==g){f=1;c=k(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215,f=0!==e||d!==this.length-1?q[6-h.length]+h+f:h+f;a+=2;26<=a&&(a-=26,d--)}for(0!==e&&(f=e.toString(16)+f);0!==f.length%b;)f="0"+f;this.sign&&(f="-"+f);return f}if(a===(a|0)&&2<=a&&36>=a){b=z[a];e=D[a];f="";d=this.clone();for(d.sign=!1;0!==d.cmpn(0);)g=d.modn(e).toString(a),d=d.idivn(e),f=0!==d.cmpn(0)?q[b-g.length]+g+f:g+f;0===this.cmpn(0)&&(f="0"+f);this.sign&&(f="-"+f);return f}c(!1,"Base should be between 2 and 36")};e.prototype.toJSON= -function(){return this.toString(16)};e.prototype.toArray=function(){this.strip();var a=Array(this.byteLength());a[0]=0;for(var b=this.clone(),c=0;0!==b.cmpn(0);c++){var f=b.andln(255);b.ishrn(8);a[a.length-c-1]=f}return a};e.prototype._countBits=function(a){return 33554432<=a?26:16777216<=a?25:8388608<=a?24:4194304<=a?23:2097152<=a?22:1048576<=a?21:524288<=a?20:262144<=a?19:131072<=a?18:65536<=a?17:32768<=a?16:16384<=a?15:8192<=a?14:4096<=a?13:2048<=a?12:1024<=a?11:512<=a?10:256<=a?9:128<=a?8:64<= -a?7:32<=a?6:16<=a?5:8<=a?4:4<=a?3:2<=a?2:1<=a?1:0};e.prototype.bitLength=function(){var a;a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)};e.prototype.neg=function(){if(0===this.cmpn(0))return this.clone();var a=this.clone();a.sign=!this.sign;return a};e.prototype.ior=function(a){for(this.sign=this.sign||a.sign;this.lengtha.length?this.clone().ior(a):a.clone().ior(this)};e.prototype.iand=function(a){this.sign=this.sign&&a.sign;var b;b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};e.prototype.ixor=function(a){this.sign=this.sign||a.sign;var b;this.length>a.length?b= -this:(b=a,a=this);for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};e.prototype.setn=function(a,b){c("number"===typeof a&&0<=a);var f=a/26|0;for(a%=26;this.length<=f;)this.words[this.length++]=0;this.words[f]=b?this.words[f]|1<a.length?c=this:(c=a,a=this);for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};e.prototype.isub=function(a){if(a.sign){a.sign=!1;var b=this.iadd(a);a.sign=!0;return b._normSign()}if(this.sign)return this.sign=!1,this.iadd(a),this.sign=!0,this._normSign();b=this.cmp(a);if(0===b)return this.sign=!1,this.length=1,this.words[0]= -0,this;var c;0>26,this.words[e]=b&67108863;for(;0!==f&&e>26,this.words[e]=b&67108863;if(0===f&&e>>26,c=c&67108863,d=Math.min(f,a.length-1),g=Math.max(0,f-this.length+1);g<=d;g++)var h=(this.words[f-g]|0)*(a.words[g]|0),l=h&67108863,e=e+(h/67108864|0)|0,l=l+c|0,c=l&67108863,e=e+(l>>>26)|0;b.words[f]=c;c=e}0!==c?b.words[f]=c:b.length--;return b.strip()};e.prototype._bigMulTo=function(a,b){b.sign=a.sign!==this.sign;b.length=this.length+a.length;for(var c=0,f=0,e=0;e>>26)|0,f=f+(d>>>26),d=d&67108863;b.words[e]=c;c=d}0!==c?b.words[e]=c:b.length--;return b.strip()};e.prototype.mulTo=function(a,b){return 63>this.length+a.length?this._smallMulTo(a,b):this._bigMulTo(a,b)};e.prototype.mul=function(a){var b=new e(null);b.words=Array(this.length+a.length);return this.mulTo(a,b)};e.prototype.imul=function(a){if(0===this.cmpn(0)||0===a.cmpn(0))return this.words[0]= -0,this.length=1,this;var b=this.length,c=a.length;this.sign=a.sign!==this.sign;this.length+=a.length;this.words[this.length-1]=0;for(var f=this.length-2;0<=f;f--){for(var e=0,d=0,g=Math.min(f,c-1),h=Math.max(0,f-b+1);h<=g;h++)var l=f-h,l=this.words[l]*a.words[h],m=l&67108863,e=e+(l/67108864|0),m=m+d,d=m&67108863,e=e+(m>>>26);this.words[f]=d;this.words[f+1]+=e}e=0;for(l=1;l>>26;return this.strip()};e.prototype.imuln=function(a){c("number"=== -typeof a);for(var b=0,f=0;f>26,b=b+(e/67108864|0),b=b+(d>>>26);this.words[f]=d&67108863}0!==b&&(this.words[f]=b,this.length++);return this};e.prototype.sqr=function(){return this.mul(this)};e.prototype.isqr=function(){return this.mul(this)};e.prototype.ishln=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;var f=67108863>>>26-b<<26-b;if(0!==b){for(var e=0,d=0;d>>26-b}e&&(this.words[d]=e,this.length++)}if(0!==a){for(d=this.length-1;0<=d;d--)this.words[d+a]=this.words[d];for(d=0;d>>e<d)for(this.length-=d,g=0;g=b);g--){var h=this.words[g];this.words[g]=d<<26-e|h>>>e;d=h&a}f&&0!==d&&(f.words[f.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);this.strip();return f?{hi:this,lo:f}:this};e.prototype.shln=function(a){return this.clone().ishln(a)};e.prototype.shrn=function(a){return this.clone().ishrn(a)};e.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a? -!1:!!(this.words[a]&1<>>b<a)return this.isubn(-a);if(this.sign){if(1===this.length&&this.words[0]a)return this.iaddn(-a);if(this.sign)return this.sign=!1,this.iaddn(a),this.sign=!0,this;this.words[0]-=a; -for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};e.prototype.addn=function(a){return this.clone().iaddn(a)};e.prototype.subn=function(a){return this.clone().isubn(a)};e.prototype.iabs=function(){this.sign=!1;return this};e.prototype.abs=function(){return this.clone().iabs()};e.prototype._ishlnsubmul=function(a,b,f){var e=a.length+f,d;if(this.words.length>26)-(g/67108864|0),this.words[d+f]=e&67108863;for(;d>26,this.words[d+f]=e&67108863;if(0===g)return this.strip();c(-1===g);for(d=g=0;d>26,this.words[d]=e&67108863;this.sign=!0;return this.strip()};e.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,d=f.words[f.length- -1];for(a=0;33554432>d;a++)d<<=1;0!==a&&(f=f.shln(a),c.ishln(a),d=f.words[f.length-1]);var g=c.length-f.length,h;if("mod"!==b){h=new e(null);h.length=g+1;h.words=Array(h.length);for(var l=0;lthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]), -mod:null}:"mod"===b?{div:null,mod:new e(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new e(this.modn(a.words[0]))}:this._wordDiv(a,b)};e.prototype.div=function(a){return this.divmod(a,"div").div};e.prototype.mod=function(a){return this.divmod(a,"mod").mod};e.prototype.divRound=function(a){var b=this.divmod(a);if(0===b.mod.cmpn(0))return b.div;var c=b.div.sign?b.mod.isub(a):b.mod,f=a.shrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div:b.div.sign?b.div.isubn(1):b.div.iaddn(1)}; -e.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,f=0,e=this.length-1;0<=e;e--)f=(b*f+this.words[e])%a;return f};e.prototype.idivn=function(a){c(67108863>=a);for(var b=0,f=this.length-1;0<=f;f--)b=this.words[f]+67108864*b,this.words[f]=b/a|0,b%=a;return this.strip()};e.prototype.divn=function(a){return this.clone().idivn(a)};e.prototype._egcd=function(a,b){c(!b.sign);c(0!==b.cmpn(0));var f=this,d=b.clone(),f=f.sign?f.mod(b):f.clone();for(b=new e(0);d.isEven();)d.ishrn(1);for(var g= -d.clone();0b.cmp(a)){var f=b,b=a;a=f}b.isub(b.div(a).mul(a))}while(0!==b.cmpn(0)&&0!==a.cmpn(0));return 0===b.cmpn(0)?a.ishln(c):b.ishln(c)};e.prototype.invm=function(a){return this._egcd(new e(1),a).mod(a)};e.prototype.isEven=function(){return 0===(this.words[0]&1)};e.prototype.isOdd=function(){return 1===(this.words[0]&1)};e.prototype.andln=function(a){return this.words[0]&a};e.prototype.bincn=function(a){c("number"===typeof a);var b=a%26;a=(a-b)/26;var f=1<>>26,a&=67108863,this.words[b]=a;0!==f&&(this.words[b]=f,this.length++);return this};e.prototype.cmpn=function(a){var b=0>a;b&&(a=-a);if(this.sign&&!b)return-1;if(!this.sign&&b)return 1;a&=67108863;this.strip();1a.length)return 1;if(this.lengthe&&(b=1);break}}return b};e.red=function(a){return new y(a)};e.prototype.toRed=function(a){c(!this.red,"Already a number in reduction context");c(!this.sign,"red works only with positives");return a.convertTo(this)._forceRed(a)};e.prototype.fromRed=function(){c(this.red,"fromRed works only with numbers in reduction context"); -return this.red.convertFrom(this)};e.prototype._forceRed=function(a){this.red=a;return this};e.prototype.forceRed=function(a){c(!this.red,"Already a number in reduction context");return this._forceRed(a)};e.prototype.redAdd=function(a){c(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};e.prototype.redIAdd=function(a){c(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};e.prototype.redSub=function(a){c(this.red,"redSub works only with red numbers"); -return this.red.sub(this,a)};e.prototype.redISub=function(a){c(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};e.prototype.redShl=function(a){c(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};e.prototype.redMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};e.prototype.redIMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this, -a)};e.prototype.redSqr=function(){c(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};e.prototype.redISqr=function(){c(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};e.prototype.redSqrt=function(){c(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};e.prototype.redInvm=function(){c(this.red,"redInvm works only with red numbers");this.red._verify1(this); -return this.red.invm(this)};e.prototype.redNeg=function(){c(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};e.prototype.redPow=function(a){c(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var v={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var a=new e(null);a.words=Array(Math.ceil(this.n/13));return a};f.prototype.ireduce=function(a){var b;do b=a.ishrn(this.n,0,this.tmp),a=this.imulK(b.hi), -a=a.iadd(b.lo),b=a.bitLength();while(b>this.n);b=b>>26;a.words[c]=f}0!==b&&(a.words[a.length++]=b);return a};e._prime=function(a){if(v[a])return v[a];var b;if("k256"===a)b=new l;else if("p224"===a)b=new n;else if("p192"===a)b=new r;else if("p25519"===a)b=new u;else throw Error("Unknown prime "+a);return v[a]=b};y.prototype._verify1=function(a){c(!a.sign,"red works only with positives");c(a.red,"red works only with red numbers")};y.prototype._verify2= +255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var e=this._baseState;if(null===e["default"])return!1;a=a.join();void 0===e.defaultBuffer&&(e.defaultBuffer=this._encodeValue(e["default"],b,c).join());if(a.length!==e.defaultBuffer.length)return!1;for(b=0;b=f?e|f-49+10:17<=f&&22>=f?e|f-17+10:e|f&15;return e}function k(a,b,c,e){var f=0;for(c=Math.min(a.length,c);ba&&(this.sign=!0,a=-a),67108864>a?(this.words=[a&67108863],this.length=1):(this.words=[a&67108863,a/67108864&67108863],this.length=2);else{if("object"===typeof a)return this._initArray(a,b,e);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");e=0;"-"=== +a[0]&&e++;16===b?this._parseHex(a,e):this._parseBase(a,b,e);"-"===a[0]&&(this.sign=!0);this.strip()}};f.prototype._initArray=function(a,b,e){c("number"===typeof a.length);this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,e++)}else if("le"===e)for(e=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,e++);return this.strip()};f.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6){var d=m(a,c,c+6);this.words[f]|=d<>>26-e&4194303;e+=24;26<=e&&(e-=26,f++)}c+6!==b&&(d=m(a,b,c+6),this.words[f]|=d<>>26-e&4194303); +this.strip()};f.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var e=0,f=1;67108863>=f;f*=b)e++;e--;for(var f=f/b|0,d=a.length-c,g=d%e,d=Math.min(d,d-g)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==g){e=1;c=k(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};f.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215,e=0!==f||d!==this.length-1?q[6-h.length]+h+e:h+e;a+=2;26<=a&&(a-=26,d--)}for(0!==f&&(e=f.toString(16)+e);0!==e.length%b;)e="0"+e;this.sign&&(e="-"+e);return e}if(a===(a|0)&&2<=a&&36>=a){b=z[a];f=D[a];e="";d=this.clone();for(d.sign=!1;0!==d.cmpn(0);)g=d.modn(f).toString(a),d=d.idivn(f),e=0!==d.cmpn(0)?q[b-g.length]+g+e:g+e;0===this.cmpn(0)&&(e="0"+e);this.sign&&(e="-"+e);return e}c(!1,"Base should be between 2 and 36")};f.prototype.toJSON= +function(){return this.toString(16)};f.prototype.toArray=function(){this.strip();var a=Array(this.byteLength());a[0]=0;for(var b=this.clone(),c=0;0!==b.cmpn(0);c++){var e=b.andln(255);b.ishrn(8);a[a.length-c-1]=e}return a};f.prototype._countBits=function(a){return 33554432<=a?26:16777216<=a?25:8388608<=a?24:4194304<=a?23:2097152<=a?22:1048576<=a?21:524288<=a?20:262144<=a?19:131072<=a?18:65536<=a?17:32768<=a?16:16384<=a?15:8192<=a?14:4096<=a?13:2048<=a?12:1024<=a?11:512<=a?10:256<=a?9:128<=a?8:64<= +a?7:32<=a?6:16<=a?5:8<=a?4:4<=a?3:2<=a?2:1<=a?1:0};f.prototype.bitLength=function(){var a;a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)};f.prototype.neg=function(){if(0===this.cmpn(0))return this.clone();var a=this.clone();a.sign=!this.sign;return a};f.prototype.ior=function(a){for(this.sign=this.sign||a.sign;this.lengtha.length?this.clone().ior(a):a.clone().ior(this)};f.prototype.iand=function(a){this.sign=this.sign&&a.sign;var b;b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};f.prototype.ixor=function(a){this.sign=this.sign||a.sign;var b;this.length>a.length?b= +this:(b=a,a=this);for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};f.prototype.setn=function(a,b){c("number"===typeof a&&0<=a);var e=a/26|0;for(a%=26;this.length<=e;)this.words[this.length++]=0;this.words[e]=b?this.words[e]|1<a.length?c=this:(c=a,a=this);for(var e=b=0;e>>=26;for(;0!==b&&e>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;ea.length?this.clone().iadd(a):a.clone().iadd(this)};f.prototype.isub=function(a){if(a.sign){a.sign=!1;var b=this.iadd(a);a.sign=!0;return b._normSign()}if(this.sign)return this.sign=!1,this.iadd(a),this.sign=!0,this._normSign();b=this.cmp(a);if(0===b)return this.sign=!1,this.length=1,this.words[0]= +0,this;var c;0>26,this.words[f]=b&67108863;for(;0!==e&&f>26,this.words[f]=b&67108863;if(0===e&&f>>26,c=c&67108863,d=Math.min(e,a.length-1),g=Math.max(0,e-this.length+1);g<=d;g++)var h=(this.words[e-g]|0)*(a.words[g]|0),l=h&67108863,f=f+(h/67108864|0)|0,l=l+c|0,c=l&67108863,f=f+(l>>>26)|0;b.words[e]=c;c=f}0!==c?b.words[e]=c:b.length--;return b.strip()};f.prototype._bigMulTo=function(a,b){b.sign=a.sign!==this.sign;b.length=this.length+a.length;for(var c=0,e=0,f=0;f>>26)|0,e=e+(d>>>26),d=d&67108863;b.words[f]=c;c=d}0!==c?b.words[f]=c:b.length--;return b.strip()};f.prototype.mulTo=function(a,b){return 63>this.length+a.length?this._smallMulTo(a,b):this._bigMulTo(a,b)};f.prototype.mul=function(a){var b=new f(null);b.words=Array(this.length+a.length);return this.mulTo(a,b)};f.prototype.imul=function(a){if(0===this.cmpn(0)||0===a.cmpn(0))return this.words[0]= +0,this.length=1,this;var b=this.length,c=a.length;this.sign=a.sign!==this.sign;this.length+=a.length;this.words[this.length-1]=0;for(var e=this.length-2;0<=e;e--){for(var f=0,d=0,g=Math.min(e,c-1),h=Math.max(0,e-b+1);h<=g;h++)var l=e-h,l=this.words[l]*a.words[h],m=l&67108863,f=f+(l/67108864|0),m=m+d,d=m&67108863,f=f+(m>>>26);this.words[e]=d;this.words[e+1]+=f}f=0;for(l=1;l>>26;return this.strip()};f.prototype.imuln=function(a){c("number"=== +typeof a);for(var b=0,e=0;e>26,b=b+(f/67108864|0),b=b+(d>>>26);this.words[e]=d&67108863}0!==b&&(this.words[e]=b,this.length++);return this};f.prototype.sqr=function(){return this.mul(this)};f.prototype.isqr=function(){return this.mul(this)};f.prototype.ishln=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;var e=67108863>>>26-b<<26-b;if(0!==b){for(var f=0,d=0;d>>26-b}f&&(this.words[d]=f,this.length++)}if(0!==a){for(d=this.length-1;0<=d;d--)this.words[d+a]=this.words[d];for(d=0;d>>f<d)for(this.length-=d,g=0;g=b);g--){var h=this.words[g];this.words[g]=d<<26-f|h>>>f;d=h&a}e&&0!==d&&(e.words[e.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);this.strip();return e?{hi:this,lo:e}:this};f.prototype.shln=function(a){return this.clone().ishln(a)};f.prototype.shrn=function(a){return this.clone().ishrn(a)};f.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a? +!1:!!(this.words[a]&1<>>b<a)return this.isubn(-a);if(this.sign){if(1===this.length&&this.words[0]a)return this.iaddn(-a);if(this.sign)return this.sign=!1,this.iaddn(a),this.sign=!0,this;this.words[0]-=a; +for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};f.prototype.addn=function(a){return this.clone().iaddn(a)};f.prototype.subn=function(a){return this.clone().isubn(a)};f.prototype.iabs=function(){this.sign=!1;return this};f.prototype.abs=function(){return this.clone().iabs()};f.prototype._ishlnsubmul=function(a,b,e){var f=a.length+e,d;if(this.words.length>26)-(g/67108864|0),this.words[d+e]=f&67108863;for(;d>26,this.words[d+e]=f&67108863;if(0===g)return this.strip();c(-1===g);for(d=g=0;d>26,this.words[d]=f&67108863;this.sign=!0;return this.strip()};f.prototype._wordDiv=function(a,b){var c=this.clone(),e=a,d=e.words[e.length- +1];for(a=0;33554432>d;a++)d<<=1;0!==a&&(e=e.shln(a),c.ishln(a),d=e.words[e.length-1]);var g=c.length-e.length,h;if("mod"!==b){h=new f(null);h.length=g+1;h.words=Array(h.length);for(var l=0;lthis.length||0>this.cmp(a)?{div:new f(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]), +mod:null}:"mod"===b?{div:null,mod:new f(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new f(this.modn(a.words[0]))}:this._wordDiv(a,b)};f.prototype.div=function(a){return this.divmod(a,"div").div};f.prototype.mod=function(a){return this.divmod(a,"mod").mod};f.prototype.divRound=function(a){var b=this.divmod(a);if(0===b.mod.cmpn(0))return b.div;var c=b.div.sign?b.mod.isub(a):b.mod,e=a.shrn(1);a=a.andln(1);c=c.cmp(e);return 0>c||1===a&&0===c?b.div:b.div.sign?b.div.isubn(1):b.div.iaddn(1)}; +f.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,e=0,f=this.length-1;0<=f;f--)e=(b*e+this.words[f])%a;return e};f.prototype.idivn=function(a){c(67108863>=a);for(var b=0,e=this.length-1;0<=e;e--)b=this.words[e]+67108864*b,this.words[e]=b/a|0,b%=a;return this.strip()};f.prototype.divn=function(a){return this.clone().idivn(a)};f.prototype._egcd=function(a,b){c(!b.sign);c(0!==b.cmpn(0));var e=this,d=b.clone(),e=e.sign?e.mod(b):e.clone();for(b=new f(0);d.isEven();)d.ishrn(1);for(var g= +d.clone();0b.cmp(a)){var e=b,b=a;a=e}b.isub(b.div(a).mul(a))}while(0!==b.cmpn(0)&&0!==a.cmpn(0));return 0===b.cmpn(0)?a.ishln(c):b.ishln(c)};f.prototype.invm=function(a){return this._egcd(new f(1),a).mod(a)};f.prototype.isEven=function(){return 0===(this.words[0]&1)};f.prototype.isOdd=function(){return 1===(this.words[0]&1)};f.prototype.andln=function(a){return this.words[0]&a};f.prototype.bincn=function(a){c("number"===typeof a);var b=a%26;a=(a-b)/26;var e=1<>>26,a&=67108863,this.words[b]=a;0!==e&&(this.words[b]=e,this.length++);return this};f.prototype.cmpn=function(a){var b=0>a;b&&(a=-a);if(this.sign&&!b)return-1;if(!this.sign&&b)return 1;a&=67108863;this.strip();1a.length)return 1;if(this.lengthf&&(b=1);break}}return b};f.red=function(a){return new y(a)};f.prototype.toRed=function(a){c(!this.red,"Already a number in reduction context");c(!this.sign,"red works only with positives");return a.convertTo(this)._forceRed(a)};f.prototype.fromRed=function(){c(this.red,"fromRed works only with numbers in reduction context"); +return this.red.convertFrom(this)};f.prototype._forceRed=function(a){this.red=a;return this};f.prototype.forceRed=function(a){c(!this.red,"Already a number in reduction context");return this._forceRed(a)};f.prototype.redAdd=function(a){c(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};f.prototype.redIAdd=function(a){c(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};f.prototype.redSub=function(a){c(this.red,"redSub works only with red numbers"); +return this.red.sub(this,a)};f.prototype.redISub=function(a){c(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};f.prototype.redShl=function(a){c(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};f.prototype.redMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};f.prototype.redIMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this, +a)};f.prototype.redSqr=function(){c(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};f.prototype.redISqr=function(){c(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};f.prototype.redSqrt=function(){c(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};f.prototype.redInvm=function(){c(this.red,"redInvm works only with red numbers");this.red._verify1(this); +return this.red.invm(this)};f.prototype.redNeg=function(){c(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};f.prototype.redPow=function(a){c(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var v={k256:null,p224:null,p192:null,p25519:null};e.prototype._tmp=function(){var a=new f(null);a.words=Array(Math.ceil(this.n/13));return a};e.prototype.ireduce=function(a){var b;do b=a.ishrn(this.n,0,this.tmp),a=this.imulK(b.hi), +a=a.iadd(b.lo),b=a.bitLength();while(b>this.n);b=b>>26;a.words[c]=e}0!==b&&(a.words[a.length++]=b);return a};f._prime=function(a){if(v[a])return v[a];var b;if("k256"===a)b=new l;else if("p224"===a)b=new n;else if("p192"===a)b=new r;else if("p25519"===a)b=new u;else throw Error("Unknown prime "+a);return v[a]=b};y.prototype._verify1=function(a){c(!a.sign,"red works only with positives");c(a.red,"red works only with red numbers")};y.prototype._verify2= function(a,b){c(!a.sign&&!b.sign,"red works only with positives");c(a.red&&a.red===b.red,"red works only with red numbers")};y.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.mod(this.m)._forceRed(this)};y.prototype.neg=function(a){a=a.clone();a.sign=!a.sign;return a.iadd(this.m)._forceRed(this)};y.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};y.prototype.iadd=function(a,b){this._verify2(a, b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};y.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&&a.iadd(this.m);return a._forceRed(this)};y.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};y.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.shln(b))};y.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};y.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))}; -y.prototype.isqr=function(a){return this.imul(a,a)};y.prototype.sqr=function(a){return this.mul(a,a)};y.prototype.sqrt=function(a){if(0===a.cmpn(0))return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b){var b=this.m.add(new e(1)).ishrn(2),f=this.pow(a,b);return f}for(var d=this.m.subn(1),g=0;0!==d.cmpn(0)&&0===d.andln(1);)g++,d.ishrn(1);c(0!==d.cmpn(0));for(var b=(new e(1)).toRed(this),f=b.redNeg(),h=this.m.subn(1).ishrn(1),l=this.m.bitLength(),l=(new e(2*l*l)).toRed(this);0!==this.pow(l,h).cmp(f);)l.redIAdd(f); -h=this.pow(l,d);f=this.pow(a,d.addn(1).ishrn(1));a=this.pow(a,d);for(d=g;0!==a.cmp(b);){l=a;for(g=0;0!==l.cmp(b);g++)l=l.redSqr();c(ga.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};C.prototype.mul=function(a,b){if(0===a.cmpn(0)||0===b.cmpn(0))return(new e(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).ishrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)}; +y.prototype.isqr=function(a){return this.imul(a,a)};y.prototype.sqr=function(a){return this.mul(a,a)};y.prototype.sqrt=function(a){if(0===a.cmpn(0))return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b){var b=this.m.add(new f(1)).ishrn(2),e=this.pow(a,b);return e}for(var d=this.m.subn(1),g=0;0!==d.cmpn(0)&&0===d.andln(1);)g++,d.ishrn(1);c(0!==d.cmpn(0));for(var b=(new f(1)).toRed(this),e=b.redNeg(),h=this.m.subn(1).ishrn(1),l=this.m.bitLength(),l=(new f(2*l*l)).toRed(this);0!==this.pow(l,h).cmp(e);)l.redIAdd(e); +h=this.pow(l,d);e=this.pow(a,d.addn(1).ishrn(1));a=this.pow(a,d);for(d=g;0!==a.cmp(b);){l=a;for(g=0;0!==l.cmp(b);g++)l=l.redSqr();c(ga.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};C.prototype.mul=function(a,b){if(0===a.cmpn(0)||0===b.cmpn(0))return(new f(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).ishrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)}; C.prototype.invm=function(a){return this.imod(a.invm(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof b||b,this)},{}],18:[function(k,b,a){window.pemJwk=k("pem-jwk");b.exports=window.pemJwk},{"pem-jwk":4}],19:[function(k,b,a){arguments[4][5][0].apply(a,arguments)},{"./asn1/api":20,"./asn1/base":22,"./asn1/constants":26,"./asn1/decoders":28,"./asn1/encoders":31,"bn.js":34,dup:5}],20:[function(k,b,a){function c(a,b){this.name=a;this.body=b;this.decoders={};this.encoders={}}var d=k("../asn1"), h=k("inherits");a.define=function(a,b){return new c(a,b)};c.prototype._createNamed=function(a){var b;try{b=k("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(m){b=function(a){this._initNamed(a)}}h(b,a);b.prototype._initNamed=function(b){a.call(this,b)};return new b(this)};c.prototype._getDecoder=function(a){a=a||"der";this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(d.decoders[a]));return this.decoders[a]};c.prototype.decode=function(a, b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder=function(a){a=a||"der";this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(d.encoders[a]));return this.encoders[a]};c.prototype.encode=function(a,b,c){return this._getEncoder(b).encode(a,c)}},{"../asn1":19,inherits:119,vm:172}],21:[function(k,b,a){function c(a,b){h.call(this,b);g.isBuffer(a)?(this.base=a,this.offset=0,this.length=a.length):this.error("Input not Buffer")}function d(a,b){if(Array.isArray(a))this.length= @@ -714,83 +714,83 @@ b,c){return this._getDecoder(b).decode(a,c)};c.prototype._getEncoder=function(a) function(){return{offset:this.offset,reporter:h.prototype.save.call(this)}};c.prototype.restore=function(a){var b=new c(this.base);b.offset=a.offset;b.length=this.offset;this.offset=a.offset;h.prototype.restore.call(this,a.reporter);return b};c.prototype.isEmpty=function(){return this.offset===this.length};c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};c.prototype.skip=function(a,b){if(!(this.offset+ a<=this.length))return this.error(b||"DecoderBuffer overrun");b=new c(this.base);b._reporterState=this._reporterState;b.offset=this.offset;b.length=this.offset+a;this.offset+=a;return b};c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};a.EncoderBuffer=d;d.prototype.join=function(a,b){a||(a=new g(this.length));b||(b=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(c){c.join(a,b);b+=c.length}):("number"===typeof this.value?a[b]= this.value:"string"===typeof this.value?a.write(this.value,b):g.isBuffer(this.value)&&this.value.copy(a,b),b+=this.length);return a}},{"../base":22,buffer:65,inherits:119}],22:[function(k,b,a){arguments[4][8][0].apply(a,arguments)},{"./buffer":21,"./node":23,"./reporter":24,dup:8}],23:[function(k,b,a){function c(a,b){var c={};this._baseState=c;c.enc=a;c.parent=b||null;c.children=null;c.tag=null;c.args=null;c.reverseArgs=null;c.choice=null;c.optional=!1;c.any=!1;c.obj=!1;c.use=null;c.useDecoder=null; -c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.contains=null;c.parent||(c.children=[],this._wrap())}var d=k("../base").Reporter,h=k("../base").EncoderBuffer,g=k("../base").DecoderBuffer,e=k("minimalistic-assert");k="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var m="key obj use optional explicit implicit def choice any contains".split(" ").concat(k); +c.key=null;c["default"]=null;c.explicit=null;c.implicit=null;c.contains=null;c.parent||(c.children=[],this._wrap())}var d=k("../base").Reporter,h=k("../base").EncoderBuffer,g=k("../base").DecoderBuffer,f=k("minimalistic-assert");k="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var m="key obj use optional explicit implicit def choice any contains".split(" ").concat(k); b.exports=c;var p="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");c.prototype.clone=function(){var a=this._baseState,b={};p.forEach(function(c){b[c]=a[c]});var c=new this.constructor(b.parent);c._baseState=b;return c};c.prototype._wrap=function(){var a=this._baseState;m.forEach(function(b){this[b]=function(){var c=new this.constructor(this);a.children.push(c);return c[b].apply(c,arguments)}},this)};c.prototype._init= -function(a){var b=this._baseState;e(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);e.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b=this._baseState,c=a.filter(function(a){return a instanceof this.constructor},this);a=a.filter(function(a){return!(a instanceof this.constructor)},this);0!==c.length&&(e(null===b.children),b.children=c,c.forEach(function(a){a._baseState.parent=this}, -this));0!==a.length&&(e(null===b.args),b.args=a,b.reverseArgs=a.map(function(a){if("object"!==typeof a||a.constructor!==Object)return a;var b={};Object.keys(a).forEach(function(c){c==(c|0)&&(c|=0);b[a[c]]=c});return b}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(a){c.prototype[a]=function(){throw Error(a+" not implemented for encoding: "+ -this._baseState.enc);}});k.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);e(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){e(a);var b=this._baseState;e(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;e(null===b["default"]);b["default"]=a;b.optional=!0;return this};c.prototype.explicit=function(a){var b= -this._baseState;e(null===b.explicit&&null===b.implicit);b.explicit=a;return this};c.prototype.implicit=function(a){var b=this._baseState;e(null===b.explicit&&null===b.implicit);b.implicit=a;return this};c.prototype.obj=function(){var a=this._baseState,b=Array.prototype.slice.call(arguments);a.obj=!0;0!==b.length&&this._useArgs(b);return this};c.prototype.key=function(a){var b=this._baseState;e(null===b.key);b.key=a;return this};c.prototype.any=function(){this._baseState.any=!0;return this};c.prototype.choice= -function(a){var b=this._baseState;e(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype.contains=function(a){var b=this._baseState;e(null===b.use);b.contains=a;return this};c.prototype._decode=function(a,b){var c=this._baseState;if(null===c.parent)return a.wrapResult(c.children[0]._decode(a,b));var f=c["default"],e=!0,d=null;null!==c.key&&(d=a.enterKey(c.key));if(c.optional){var h=null;null!==c.explicit?h=c.explicit:null!==c.implicit?h= -c.implicit:null!==c.tag&&(h=c.tag);if(null!==h||c.any){if(e=this._peekTag(a,h,c.any),a.isError(e))return e}else{var l=a.save();try{null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b),e=!0}catch(v){e=!1}a.restore(l)}}var m;c.obj&&e&&(m=a.enterObject());if(e){if(null!==c.explicit){h=this._decodeTag(a,c.explicit);if(a.isError(h))return h;a=h}h=a.offset;if(null===c.use&&null===c.choice){c.any&&(l=a.save());var k=this._decodeTag(a,null!==c.implicit?c.implicit:c.tag,c.any);if(a.isError(k))return k; -c.any?f=a.raw(l):a=k}b&&b.track&&null!==c.tag&&b.track(a.path(),h,a.length,"tagged");b&&b.track&&null!==c.tag&&b.track(a.path(),a.offset,a.length,"content");c.any||(f=null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b));if(a.isError(f))return f;c.any||null!==c.choice||null===c.children||c.children.forEach(function(c){c._decode(a,b)});!c.contains||"octstr"!==c.tag&&"bitstr"!==c.tag||(f=new g(f),f=this._getUse(c.contains,a._reporterState.obj)._decode(f,b))}c.obj&&e&&(f=a.leaveObject(m)); -null===c.key||null===f&&!0!==e?null!==d&&a.exitKey(d):a.leaveKey(d,c.key,f);return f};c.prototype._decodeGeneric=function(a,b,c){var f=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,f.args[0],c):/str$/.test(a)?this._decodeStr(b,a,c):"objid"===a&&f.args?this._decodeObjid(b,f.args[0],f.args[1],c):"objid"===a?this._decodeObjid(b,null,null,c):"gentime"===a||"utctime"===a?this._decodeTime(b,a,c):"null_"===a?this._decodeNull(b,c):"bool"===a?this._decodeBool(b, -c):"objDesc"===a?this._decodeStr(b,a,c):"int"===a||"enum"===a?this._decodeInt(b,f.args&&f.args[0],c):null!==f.use?this._getUse(f.use,b._reporterState.obj)._decode(b,c):b.error("unknown tag: "+a)};c.prototype._getUse=function(a,b){var c=this._baseState;c.useDecoder=this._use(a,b);e(null===c.useDecoder._baseState.parent);c.useDecoder=c.useDecoder._baseState.children[0];c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit);return c.useDecoder}; -c.prototype._decodeChoice=function(a,b){var c=this._baseState,f=null,e=!1;Object.keys(c.choice).some(function(d){var g=a.save(),h=c.choice[d];try{var l=h._decode(a,b);if(a.isError(l))return!1;f={type:d,value:l};e=!0}catch(D){return a.restore(g),!1}return!0},this);return e?f:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var f=this._baseState;if(null===f["default"]||f["default"]!==a)if(a=this._encodeValue(a, -b,c),void 0!==a&&!this._skipDefault(a,b,c))return a};c.prototype._encodeValue=function(a,b,c){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(a,b||new d);var e=null;this.reporter=b;if(f.optional&&void 0===a)if(null!==f["default"])a=f["default"];else return;var g=null,h=!1;if(f.any)e=this._createEncoderBuffer(a);else if(f.choice)e=this._encodeChoice(a,b);else if(f.contains)g=this._getUse(f.contains,c)._encode(a,b),h=!0;else if(f.children)g=f.children.map(function(c){if("null_"=== -c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var f=b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(f);return c},this).filter(function(a){return a}),g=this._createEncoderBuffer(g);else if("seqof"===f.tag||"setof"===f.tag){if(!f.args||1!==f.args.length)return b.error("Too many args for : "+f.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array"); -g=this.clone();g._baseState.implicit=null;g=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0],a)._encode(c,b)},g))}else null!==f.use?e=this._getUse(f.use,c)._encode(a,b):(g=this._encodePrimitive(f.tag,a),h=!0);if(!f.any&&null===f.choice){c=null!==f.implicit?f.implicit:f.tag;var l=null===f.implicit?"universal":"context";null===c?null===f.use&&b.error("Tag could be ommited only for .use()"):null===f.use&&(e=this._encodeComposite(c,h,l,g))}null!==f.explicit&&(e= -this._encodeComposite(f.explicit,!1,"context",e));return e};c.prototype._encodeChoice=function(a,b){var c=this._baseState,f=c.choice[a.type];f||e(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return f._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if(/str$/.test(a))return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a|| +function(a){var b=this._baseState;f(null===b.parent);a.call(this);b.children=b.children.filter(function(a){return a._baseState.parent===this},this);f.equal(b.children.length,1,"Root node can have only one child")};c.prototype._useArgs=function(a){var b=this._baseState,c=a.filter(function(a){return a instanceof this.constructor},this);a=a.filter(function(a){return!(a instanceof this.constructor)},this);0!==c.length&&(f(null===b.children),b.children=c,c.forEach(function(a){a._baseState.parent=this}, +this));0!==a.length&&(f(null===b.args),b.args=a,b.reverseArgs=a.map(function(a){if("object"!==typeof a||a.constructor!==Object)return a;var b={};Object.keys(a).forEach(function(c){c==(c|0)&&(c|=0);b[a[c]]=c});return b}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(a){c.prototype[a]=function(){throw Error(a+" not implemented for encoding: "+ +this._baseState.enc);}});k.forEach(function(a){c.prototype[a]=function(){var b=this._baseState,c=Array.prototype.slice.call(arguments);f(null===b.tag);b.tag=a;this._useArgs(c);return this}});c.prototype.use=function(a){f(a);var b=this._baseState;f(null===b.use);b.use=a;return this};c.prototype.optional=function(){this._baseState.optional=!0;return this};c.prototype.def=function(a){var b=this._baseState;f(null===b["default"]);b["default"]=a;b.optional=!0;return this};c.prototype.explicit=function(a){var b= +this._baseState;f(null===b.explicit&&null===b.implicit);b.explicit=a;return this};c.prototype.implicit=function(a){var b=this._baseState;f(null===b.explicit&&null===b.implicit);b.implicit=a;return this};c.prototype.obj=function(){var a=this._baseState,b=Array.prototype.slice.call(arguments);a.obj=!0;0!==b.length&&this._useArgs(b);return this};c.prototype.key=function(a){var b=this._baseState;f(null===b.key);b.key=a;return this};c.prototype.any=function(){this._baseState.any=!0;return this};c.prototype.choice= +function(a){var b=this._baseState;f(null===b.choice);b.choice=a;this._useArgs(Object.keys(a).map(function(b){return a[b]}));return this};c.prototype.contains=function(a){var b=this._baseState;f(null===b.use);b.contains=a;return this};c.prototype._decode=function(a,b){var c=this._baseState;if(null===c.parent)return a.wrapResult(c.children[0]._decode(a,b));var e=c["default"],f=!0,d=null;null!==c.key&&(d=a.enterKey(c.key));if(c.optional){var h=null;null!==c.explicit?h=c.explicit:null!==c.implicit?h= +c.implicit:null!==c.tag&&(h=c.tag);if(null!==h||c.any){if(f=this._peekTag(a,h,c.any),a.isError(f))return f}else{var l=a.save();try{null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b),f=!0}catch(v){f=!1}a.restore(l)}}var m;c.obj&&f&&(m=a.enterObject());if(f){if(null!==c.explicit){h=this._decodeTag(a,c.explicit);if(a.isError(h))return h;a=h}h=a.offset;if(null===c.use&&null===c.choice){c.any&&(l=a.save());var k=this._decodeTag(a,null!==c.implicit?c.implicit:c.tag,c.any);if(a.isError(k))return k; +c.any?e=a.raw(l):a=k}b&&b.track&&null!==c.tag&&b.track(a.path(),h,a.length,"tagged");b&&b.track&&null!==c.tag&&b.track(a.path(),a.offset,a.length,"content");c.any||(e=null===c.choice?this._decodeGeneric(c.tag,a,b):this._decodeChoice(a,b));if(a.isError(e))return e;c.any||null!==c.choice||null===c.children||c.children.forEach(function(c){c._decode(a,b)});!c.contains||"octstr"!==c.tag&&"bitstr"!==c.tag||(e=new g(e),e=this._getUse(c.contains,a._reporterState.obj)._decode(e,b))}c.obj&&f&&(e=a.leaveObject(m)); +null===c.key||null===e&&!0!==f?null!==d&&a.exitKey(d):a.leaveKey(d,c.key,e);return e};c.prototype._decodeGeneric=function(a,b,c){var e=this._baseState;return"seq"===a||"set"===a?null:"seqof"===a||"setof"===a?this._decodeList(b,a,e.args[0],c):/str$/.test(a)?this._decodeStr(b,a,c):"objid"===a&&e.args?this._decodeObjid(b,e.args[0],e.args[1],c):"objid"===a?this._decodeObjid(b,null,null,c):"gentime"===a||"utctime"===a?this._decodeTime(b,a,c):"null_"===a?this._decodeNull(b,c):"bool"===a?this._decodeBool(b, +c):"objDesc"===a?this._decodeStr(b,a,c):"int"===a||"enum"===a?this._decodeInt(b,e.args&&e.args[0],c):null!==e.use?this._getUse(e.use,b._reporterState.obj)._decode(b,c):b.error("unknown tag: "+a)};c.prototype._getUse=function(a,b){var c=this._baseState;c.useDecoder=this._use(a,b);f(null===c.useDecoder._baseState.parent);c.useDecoder=c.useDecoder._baseState.children[0];c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit);return c.useDecoder}; +c.prototype._decodeChoice=function(a,b){var c=this._baseState,e=null,f=!1;Object.keys(c.choice).some(function(d){var g=a.save(),h=c.choice[d];try{var l=h._decode(a,b);if(a.isError(l))return!1;e={type:d,value:l};f=!0}catch(D){return a.restore(g),!1}return!0},this);return f?e:a.error("Choice not matched")};c.prototype._createEncoderBuffer=function(a){return new h(a,this.reporter)};c.prototype._encode=function(a,b,c){var e=this._baseState;if(null===e["default"]||e["default"]!==a)if(a=this._encodeValue(a, +b,c),void 0!==a&&!this._skipDefault(a,b,c))return a};c.prototype._encodeValue=function(a,b,c){var e=this._baseState;if(null===e.parent)return e.children[0]._encode(a,b||new d);var f=null;this.reporter=b;if(e.optional&&void 0===a)if(null!==e["default"])a=e["default"];else return;var g=null,h=!1;if(e.any)f=this._createEncoderBuffer(a);else if(e.choice)f=this._encodeChoice(a,b);else if(e.contains)g=this._getUse(e.contains,c)._encode(a,b),h=!0;else if(e.children)g=e.children.map(function(c){if("null_"=== +c._baseState.tag)return c._encode(null,b,a);if(null===c._baseState.key)return b.error("Child should have a key");var e=b.enterKey(c._baseState.key);if("object"!==typeof a)return b.error("Child expected, but input is not object");c=c._encode(a[c._baseState.key],b,a);b.leaveKey(e);return c},this).filter(function(a){return a}),g=this._createEncoderBuffer(g);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return b.error("Too many args for : "+e.tag);if(!Array.isArray(a))return b.error("seqof/setof, but data is not Array"); +g=this.clone();g._baseState.implicit=null;g=this._createEncoderBuffer(a.map(function(c){return this._getUse(this._baseState.args[0],a)._encode(c,b)},g))}else null!==e.use?f=this._getUse(e.use,c)._encode(a,b):(g=this._encodePrimitive(e.tag,a),h=!0);if(!e.any&&null===e.choice){c=null!==e.implicit?e.implicit:e.tag;var l=null===e.implicit?"universal":"context";null===c?null===e.use&&b.error("Tag could be ommited only for .use()"):null===e.use&&(f=this._encodeComposite(c,h,l,g))}null!==e.explicit&&(f= +this._encodeComposite(e.explicit,!1,"context",f));return f};c.prototype._encodeChoice=function(a,b){var c=this._baseState,e=c.choice[a.type];e||f(!1,a.type+" not found in "+JSON.stringify(Object.keys(c.choice)));return e._encode(a.value,b)};c.prototype._encodePrimitive=function(a,b){var c=this._baseState;if(/str$/.test(a))return this._encodeStr(b,a);if("objid"===a&&c.args)return this._encodeObjid(b,c.reverseArgs[0],c.args[1]);if("objid"===a)return this._encodeObjid(b,null,null);if("gentime"===a|| "utctime"===a)return this._encodeTime(b,a);if("null_"===a)return this._encodeNull();if("int"===a||"enum"===a)return this._encodeInt(b,c.args&&c.reverseArgs[0]);if("bool"===a)return this._encodeBool(b);if("objDesc"===a)return this._encodeStr(b,a);throw Error("Unsupported tag: "+a);};c.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)};c.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(a)}},{"../base":22,"minimalistic-assert":125}],24:[function(k,b,a){function c(a){this._reporterState= {obj:null,path:[],options:a||{},errors:[]}}function d(a,b){this.path=a;this.rethrow(b)}k=k("inherits");a.Reporter=c;c.prototype.isError=function(a){return a instanceof d};c.prototype.save=function(){var a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}};c.prototype.restore=function(a){var b=this._reporterState;b.obj=a.obj;b.path=b.path.slice(0,a.pathLen)};c.prototype.enterKey=function(a){return this._reporterState.path.push(a)};c.prototype.exitKey=function(a){var b=this._reporterState; -b.path=b.path.slice(0,a-1)};c.prototype.leaveKey=function(a,b,c){var e=this._reporterState;this.exitKey(a);null!==e.obj&&(e.obj[b]=c)};c.prototype.path=function(){return this._reporterState.path.join("/")};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+ +b.path=b.path.slice(0,a-1)};c.prototype.leaveKey=function(a,b,c){var f=this._reporterState;this.exitKey(a);null!==f.obj&&(f.obj[b]=c)};c.prototype.path=function(){return this._reporterState.path.join("/")};c.prototype.enterObject=function(){var a=this._reporterState,b=a.obj;a.obj={};return b};c.prototype.leaveObject=function(a){var b=this._reporterState,c=b.obj;b.obj=a;return c};c.prototype.error=function(a){var b=this._reporterState,c=a instanceof d;a=c?a:new d(b.path.map(function(a){return"["+JSON.stringify(a)+ "]"}).join(""),a.message||a,a.stack);if(!b.options.partial)throw a;c||b.errors.push(a);return a};c.prototype.wrapResult=function(a){var b=this._reporterState;return b.options.partial?{result:this.isError(a)?null:a,errors:b.errors}:a};k(d,Error);d.prototype.rethrow=function(a){this.message=a+" at: "+(this.path||"(shallow)");Error.captureStackTrace&&Error.captureStackTrace(this,d);if(!this.stack)try{throw Error(this.message);}catch(g){this.stack=g.stack}return this}},{inherits:119}],25:[function(k, -b,a){arguments[4][11][0].apply(a,arguments)},{"../constants":26,dup:11}],26:[function(k,b,a){arguments[4][12][0].apply(a,arguments)},{"./der":25,dup:12}],27:[function(k,b,a){function c(a){this.enc="der";this.name=a.name;this.entity=a;this.tree=new d;this.tree._init(a.body)}function d(a){e.Node.call(this,"der",a)}function h(a,b){var c=a.readUInt8(b);if(a.isError(c))return c;var f=p.tagClass[c>>6],e=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d; -c<<=7;c|=d&127}else c&=31;return{cls:f,primitive:e,tag:c,tagStr:p.tag[c]}}function g(a,b,c){var f=a.readUInt8(c);if(a.isError(f))return f;if(!b&&128===f)return null;if(0===(f&128))return f;b=f&127;if(4a?2E3+a:1900+a;else return a.error("Decoding "+b+" time is not supported yet");return Date.UTC(a,b-1,f,e,d,c,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){a=a.raw();a=new m(a);b&&(a=b[a.toString(10)]||a);return a};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":19,inherits:119}],28:[function(k,b, -a){a.der=k("./der");a.pem=k("./pem")},{"./der":27,"./pem":29}],29:[function(k,b,a){function c(a){h.call(this,a);this.enc="pem"}a=k("inherits");var d=k("buffer").Buffer,h=k("./der");a(c,h);b.exports=c;c.prototype.decode=function(a,b){a=a.toString().split(/[\r\n]+/g);for(var c=b.label.toUpperCase(),e=/^-----(BEGIN|END) ([^-]+)-----$/,f=-1,g=-1,k=0;ka?"0"+a:a}a=k("inherits");var g=k("buffer").Buffer;k=k("../../asn1");var e=k.base,m=k.constants.der;b.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a, -b).join()};a(d,e.Node);d.prototype._encodeComposite=function(a,b,c,e){a:{var f=a;a=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(m.tagByName.hasOwnProperty(f))f=m.tagByName[f];else if("number"!==typeof f||(f|0)!==f){a=a.error("Unknown tag: "+f);break a}31<=f?a=a.error("Multi-octet tag encoding unsupported"):(b||(f|=32),a=f|=m.tagClassByName[c||"universal"]<<6)}if(128>e.length)return b=new g(2),b[0]=a,b[1]=e.length,this._createEncoderBuffer([b,e]);f=1;for(c=e.length;256<=c;c>>=8)f++; -b=new g(2+f);b[0]=a;b[1]=128|f;c=1+f;for(a=e.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,e])};d.prototype._encodeStr=function(a,b){if("bitstr"===b)return this._createEncoderBuffer([a.unused|0,a.data]);if("bmpstr"===b){b=new g(2*a.length);for(var c=0;c>6],f=0===(c&32);if(31===(c&31))for(var d=c,c=0;128===(d&128);){d=a.readUInt8(b);if(a.isError(d))return d; +c<<=7;c|=d&127}else c&=31;return{cls:e,primitive:f,tag:c,tagStr:p.tag[c]}}function g(a,b,c){var e=a.readUInt8(c);if(a.isError(e))return e;if(!b&&128===e)return null;if(0===(e&128))return e;b=e&127;if(4a?2E3+a:1900+a;else return a.error("Decoding "+b+" time is not supported yet");return Date.UTC(a,b-1,e,f,d,c,0)};d.prototype._decodeNull=function(a){return null};d.prototype._decodeBool=function(a){var b=a.readUInt8();return a.isError(b)?b:0!==b};d.prototype._decodeInt=function(a,b){a=a.raw();a=new m(a);b&&(a=b[a.toString(10)]||a);return a};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getDecoder("der").tree}},{"../../asn1":19,inherits:119}],28:[function(k,b, +a){a.der=k("./der");a.pem=k("./pem")},{"./der":27,"./pem":29}],29:[function(k,b,a){function c(a){h.call(this,a);this.enc="pem"}a=k("inherits");var d=k("buffer").Buffer,h=k("./der");a(c,h);b.exports=c;c.prototype.decode=function(a,b){a=a.toString().split(/[\r\n]+/g);for(var c=b.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/,e=-1,g=-1,k=0;ka?"0"+a:a}a=k("inherits");var g=k("buffer").Buffer;k=k("../../asn1");var f=k.base,m=k.constants.der;b.exports=c;c.prototype.encode=function(a,b){return this.tree._encode(a, +b).join()};a(d,f.Node);d.prototype._encodeComposite=function(a,b,c,f){a:{var e=a;a=this.reporter;"seqof"===e?e="seq":"setof"===e&&(e="set");if(m.tagByName.hasOwnProperty(e))e=m.tagByName[e];else if("number"!==typeof e||(e|0)!==e){a=a.error("Unknown tag: "+e);break a}31<=e?a=a.error("Multi-octet tag encoding unsupported"):(b||(e|=32),a=e|=m.tagClassByName[c||"universal"]<<6)}if(128>f.length)return b=new g(2),b[0]=a,b[1]=f.length,this._createEncoderBuffer([b,f]);e=1;for(c=f.length;256<=c;c>>=8)e++; +b=new g(2+e);b[0]=a;b[1]=128|e;c=1+e;for(a=f.length;0>=8)b[c]=a&255;return this._createEncoderBuffer([b,f])};d.prototype._encodeStr=function(a,b){if("bitstr"===b)return this._createEncoderBuffer([a.unused|0,a.data]);if("bmpstr"===b){b=new g(2*a.length);for(var c=0;c>=7)f++;var f=new g(f),e=f.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],f[e--]=c&127;0<(c>>=7);)f[e--]=128|c&127;return this._createEncoderBuffer(f)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[h(a.getFullYear()),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[h(a.getFullYear()%100),h(a.getUTCMonth()+1),h(a.getUTCDate()), +2,40*a[0]+a[1])}var e=0;for(b=0;b>=7)e++;var e=new g(e),f=e.length-1;for(b=a.length-1;0<=b;b--)for(c=a[b],e[f--]=c&127;0<(c>>=7);)e[f--]=128|c&127;return this._createEncoderBuffer(e)};d.prototype._encodeTime=function(a,b){var c;a=new Date(a);"gentime"===b?c=[h(a.getFullYear()),h(a.getUTCMonth()+1),h(a.getUTCDate()),h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):"utctime"===b?c=[h(a.getFullYear()%100),h(a.getUTCMonth()+1),h(a.getUTCDate()), h(a.getUTCHours()),h(a.getUTCMinutes()),h(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet");return this._encodeStr(c,"octstr")};d.prototype._encodeNull=function(){return this._createEncoderBuffer("")};d.prototype._encodeInt=function(a,b){if("string"===typeof a){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=b[a]}"number"=== typeof a||g.isBuffer(a)||(b=a.toArray(),!a.sign&&b[0]&128&&b.unshift(0),a=new g(b));if(g.isBuffer(a)){var c=a.length;0===a.length&&c++;c=new g(c);a.copy(c);0===a.length&&(c[0]=0);return this._createEncoderBuffer(c)}if(128>a)return this._createEncoderBuffer(a);if(256>a)return this._createEncoderBuffer([0,a]);c=1;for(b=a;256<=b;b>>=8)c++;c=Array(c);for(b=c.length-1;0<=b;b--)c[b]=a&255,a>>=8;c[0]&128&&c.unshift(0);return this._createEncoderBuffer(new g(c))};d.prototype._encodeBool=function(a){return this._createEncoderBuffer(a? 255:0)};d.prototype._use=function(a,b){"function"===typeof a&&(a=a(b));return a._getEncoder("der").tree};d.prototype._skipDefault=function(a,b,c){var e=this._baseState;if(null===e["default"])return!1;a=a.join();void 0===e.defaultBuffer&&(e.defaultBuffer=this._encodeValue(e["default"],b,c).join());if(a.length!==e.defaultBuffer.length)return!1;for(b=0;b>18&63]+h[b>>12&63]+h[b>>6&63]+h[b&63]);return e.join("")}a.byteLength=function(a){return 3*a.length/4-c(a)};a.toByteArray=function(a){var b,f,d,h,m;b=a.length;h=c(a);m=new e(3*b/4-h);f=0>16&255,m[k++]=d>>8&255,m[k++]=d&255;2===h?(d= -g[a.charCodeAt(b)]<<2|g[a.charCodeAt(b+1)]>>4,m[k++]=d&255):1===h&&(d=g[a.charCodeAt(b)]<<10|g[a.charCodeAt(b+1)]<<4|g[a.charCodeAt(b+2)]>>2,m[k++]=d>>8&255,m[k++]=d&255);return m};a.fromByteArray=function(a){for(var b=a.length,c=b%3,e="",g=[],m=0,k=b-c;mk?k:m+16383));1===c?(a=a[b-1],e+=h[a>>2],e+=h[a<<4&63],e+="\x3d\x3d"):2===c&&(a=(a[b-2]<<8)+a[b-1],e+=h[a>>10],e+=h[a>>4&63],e+=h[a<<2&63],e+="\x3d");g.push(e);return g.join("")};var h=[],g=[],e="undefined"!==typeof Uint8Array? -Uint8Array:Array;for(k=0;64>k;++k)h[k]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[k],g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(k)]=k;g[45]=62;g[95]=63},{}],34:[function(k,b,a){(function(a,b){function c(a,b){if(!a)throw Error(b||"Assertion failed");}function d(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function e(a,b,c){if(e.isBN(a))return a;this.negative=0;this.words=null;this.length= -0;this.red=null;if(null!==a){if("le"===b||"be"===b)c=b,b=10;this._init(a||0,b||10,c||"be")}}function m(a,b,c){var e=0;for(c=Math.min(a.length,c);b=f?e|f-49+10:17<=f&&22>=f?e|f-17+10:e|f&15;return e}function p(a,b,c,e){var f=0;for(c=Math.min(a.length,c);b>>26,m=g&67108863,g=Math.min(h,b.length-1),k=Math.max(0,h-a.length+1);k<=g;k++)f=a.words[h-k|0]|0,d=b.words[k]|0,f=f*d+m,l+=f/67108864|0,m=f&67108863;c.words[h]=m|0;g=l|0}0!==g?c.words[h]=g|0:c.length--;return c.strip()}function l(a,b){this.x=a;this.y=b}function n(a,b){this.name=a;this.p=new e(b,16);this.n=this.p.bitLength();this.k=(new e(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function r(){n.call(this, -"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function u(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(a){"string"===typeof a?(a=e._prime(a),this.m=a.p,this.prime=a):(c(a.gtn(1),"modulus must be greater than 1"),this.m=a, -this.prime=null)}function z(a){q.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new e(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof a?a.exports=e:b.BN=e;e.BN=e;e.wordSize=26;var D;try{D=k("buffer").Buffer}catch(B){}e.isBN=function(a){return a instanceof e?!0:null!==a&&"object"=== -typeof a&&a.constructor.wordSize===e.wordSize&&Array.isArray(a.words)};e.max=function(a,b){return 0a.cmp(b)?a:b};e.prototype._init=function(a,b,e){if("number"===typeof a)return this._initNumber(a,b,e);if("object"===typeof a)return this._initArray(a,b,e);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&f++;16===b?this._parseHex(a,f):this._parseBase(a,b,f);"-"===a[0]&&(this.negative=1);this.strip();"le"===e&& -this._initArray(this.toArray(),b,e)};e.prototype._initNumber=function(a,b,e){0>a&&(this.negative=1,a=-a);67108864>a?(this.words=[a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(c(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===e&&this._initArray(this.toArray(),b,e)};e.prototype._initArray=function(a,b,e){c("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length= -Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);else if("le"===e)for(e=b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);return this.strip()};e.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length- -b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6)f=m(a,c,c+6),this.words[e]|=f<>>26-d&4194303,d+=24,26<=d&&(d-=26,e++);c+6!==b&&(f=m(a,b,c+6),this.words[e]|=f<>>26-d&4194303);this.strip()};e.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var e=0,f=1;67108863>=f;f*=b)e++;e--;for(var f=f/b|0,d=a.length-c,g=d%e,d=Math.min(d,d-g)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==g){e=1;c=p(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};e.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>18&63]+h[b>>12&63]+h[b>>6&63]+h[b&63]);return e.join("")}a.byteLength=function(a){return 3*a.length/4-c(a)};a.toByteArray=function(a){var b,e,d,h,m;b=a.length;h=c(a);m=new f(3*b/4-h);e=0>16&255,m[k++]=d>>8&255,m[k++]=d&255;2===h?(d= +g[a.charCodeAt(b)]<<2|g[a.charCodeAt(b+1)]>>4,m[k++]=d&255):1===h&&(d=g[a.charCodeAt(b)]<<10|g[a.charCodeAt(b+1)]<<4|g[a.charCodeAt(b+2)]>>2,m[k++]=d>>8&255,m[k++]=d&255);return m};a.fromByteArray=function(a){for(var b=a.length,c=b%3,f="",g=[],k=0,m=b-c;km?m:k+16383));1===c?(a=a[b-1],f+=h[a>>2],f+=h[a<<4&63],f+="\x3d\x3d"):2===c&&(a=(a[b-2]<<8)+a[b-1],f+=h[a>>10],f+=h[a>>4&63],f+=h[a<<2&63],f+="\x3d");g.push(f);return g.join("")};var h=[],g=[],f="undefined"!==typeof Uint8Array? +Uint8Array:Array;for(k=0;64>k;++k)h[k]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[k],g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(k)]=k;g[45]=62;g[95]=63},{}],34:[function(k,b,a){(function(a,b){function c(a,b){if(!a)throw Error(b||"Assertion failed");}function d(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function f(a,b,c){if(f.isBN(a))return a;this.negative=0;this.words=null;this.length= +0;this.red=null;if(null!==a){if("le"===b||"be"===b)c=b,b=10;this._init(a||0,b||10,c||"be")}}function m(a,b,c){var f=0;for(c=Math.min(a.length,c);b=e?f|e-49+10:17<=e&&22>=e?f|e-17+10:f|e&15;return f}function p(a,b,c,f){var e=0;for(c=Math.min(a.length,c);b>>26,k=g&67108863,g=Math.min(h,b.length-1),m=Math.max(0,h-a.length+1);m<=g;m++)e=a.words[h-m|0]|0,d=b.words[m]|0,e=e*d+k,l+=e/67108864|0,k=e&67108863;c.words[h]=k|0;g=l|0}0!==g?c.words[h]=g|0:c.length--;return c.strip()}function l(a,b){this.x=a;this.y=b}function n(a,b){this.name=a;this.p=new f(b,16);this.n=this.p.bitLength();this.k=(new f(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function r(){n.call(this, +"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function u(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(a){"string"===typeof a?(a=f._prime(a),this.m=a.p,this.prime=a):(c(a.gtn(1),"modulus must be greater than 1"),this.m=a, +this.prime=null)}function z(a){q.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new f(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof a?a.exports=f:b.BN=f;f.BN=f;f.wordSize=26;var D;try{D=k("buffer").Buffer}catch(B){}f.isBN=function(a){return a instanceof f?!0:null!==a&&"object"=== +typeof a&&a.constructor.wordSize===f.wordSize&&Array.isArray(a.words)};f.max=function(a,b){return 0a.cmp(b)?a:b};f.prototype._init=function(a,b,e){if("number"===typeof a)return this._initNumber(a,b,e);if("object"===typeof a)return this._initArray(a,b,e);"hex"===b&&(b=16);c(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&f++;16===b?this._parseHex(a,f):this._parseBase(a,b,f);"-"===a[0]&&(this.negative=1);this.strip();"le"===e&& +this._initArray(this.toArray(),b,e)};f.prototype._initNumber=function(a,b,e){0>a&&(this.negative=1,a=-a);67108864>a?(this.words=[a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(c(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===e&&this._initArray(this.toArray(),b,e)};f.prototype._initArray=function(a,b,e){c("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length= +Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);else if("le"===e)for(e=b=0;b>>26-d&67108863,d+=24,26<=d&&(d-=26,e++);return this.strip()};f.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length- +b)/6);this.words=Array(this.length);for(var c=0;c=b;c-=6)f=m(a,c,c+6),this.words[e]|=f<>>26-d&4194303,d+=24,26<=d&&(d-=26,e++);c+6!==b&&(f=m(a,b,c+6),this.words[e]|=f<>>26-d&4194303);this.strip()};f.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var e=0,f=1;67108863>=f;f*=b)e++;e--;for(var f=f/b|0,d=a.length-c,g=d%e,d=Math.min(d,d-g)+c,h=c;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c);if(0!==g){e=1;c=p(a,h,a.length,b);for(h=0;hthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};f.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;e=0!==f||d!==this.length-1?v[6-h.length]+h+e:h+e;a+=2;26<=a&&(a-=26,d--)}for(0!==f&&(e=f.toString(16)+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}if(a===(a|0)&&2<=a&&36>=a){f=w[a];d=x[a];e="";g=this.clone();for(g.negative=0;!g.isZero();)h=g.modn(d).toString(a),g=g.idivn(d),e=g.isZero()?h+e:v[f-h.length]+h+e;for(this.isZero()&&(e="0"+e);0!==e.length%b;)e="0"+e;0!==this.negative&&(e="-"+e);return e}c(!1,"Base should be between 2 and 36")}; -e.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= -13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};e.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};e.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};e.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};e.prototype.iuand=function(a){var b;b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};e.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};e.prototype.iuxor=function(a){var b;this.length>a.length?b=this:(b=a,a=this);for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};e.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};e.prototype.inotn=function(a){c("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};e.prototype.notn=function(a){return this.clone().inotn(a)};e.prototype.setn=function(a,b){c("number"===typeof a&&0<=a);var e=a/26|0;a%=26;this._expand(e+1);this.words[e]=b?this.words[e]|1<a.length?c=this:(c=a,a=this);for(var e=b=0;e>>=26;for(;0!==b&&e>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;ea.length?this.clone().iadd(a):a.clone().iadd(this)};e.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;var c;0>26,this.words[f]=b&67108863;for(;0!==e&&f>26,this.words[f]=b&67108863;if(0===e&&f>>13,n=e[1]|0,l=n&8191,p=n>>>13, +f.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= +13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};f.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};f.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};f.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};f.prototype.iuand=function(a){var b;b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};f.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};f.prototype.iuxor=function(a){var b;this.length>a.length?b=this:(b=a,a=this);for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};f.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};f.prototype.inotn=function(a){c("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};f.prototype.notn=function(a){return this.clone().inotn(a)};f.prototype.setn=function(a,b){c("number"===typeof a&&0<=a);var e=a/26|0;a%=26;this._expand(e+1);this.words[e]=b?this.words[e]|1<a.length?c=this:(c=a,a=this);for(var e=b=0;e>>=26;for(;0!==b&&e>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;ea.length?this.clone().iadd(a):a.clone().iadd(this)};f.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;var c;0>26,this.words[f]=b&67108863;for(;0!==e&&f>26,this.words[f]=b&67108863;if(0===e&&f>>13,n=e[1]|0,l=n&8191,p=n>>>13, r=e[2]|0,n=r&8191,q=r>>>13,u=e[3]|0,r=u&8191,y=u>>>13,z=e[4]|0,u=z&8191,B=z>>>13,C=e[5]|0,z=C&8191,w=C>>>13,D=e[6]|0,C=D&8191,v=D>>>13,x=e[7]|0,D=x&8191,A=x>>>13,I=e[8]|0,x=I&8191,I=I>>>13,E=e[9]|0,e=E&8191,E=E>>>13,F=f[0]|0,fa=F&8191,ga=F>>>13,V=f[1]|0,F=V&8191,ha=V>>>13,W=f[2]|0,V=W&8191,ia=W>>>13,X=f[3]|0,W=X&8191,ja=X>>>13,Y=f[4]|0,X=Y&8191,ka=Y>>>13,Z=f[5]|0,Y=Z&8191,la=Z>>>13,aa=f[6]|0,Z=aa&8191,ma=aa>>>13,ba=f[7]|0,aa=ba&8191,na=ba>>>13,ca=f[8]|0,ba=ca&8191,ca=ca>>>13,da=f[9]|0,f=da&8191,da= -da>>>13;c.negative=a.negative^b.negative;c.length=19;h=Math.imul(m,fa);a=Math.imul(m,ga);a=a+Math.imul(k,fa)|0;b=Math.imul(k,ga);var ra=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ra>>>26)|0,ra=ra&67108863;h=Math.imul(l,fa);a=Math.imul(l,ga);a=a+Math.imul(p,fa)|0;b=Math.imul(p,ga);h=h+Math.imul(m,F)|0;a=a+Math.imul(m,ha)|0;a=a+Math.imul(k,F)|0;b=b+Math.imul(k,ha)|0;var sa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(sa>>>26)|0,sa=sa&67108863;h=Math.imul(n,fa);a=Math.imul(n,ga);a=a+Math.imul(q,fa)|0; -b=Math.imul(q,ga);h=h+Math.imul(l,F)|0;a=a+Math.imul(l,ha)|0;a=a+Math.imul(p,F)|0;b=b+Math.imul(p,ha)|0;h=h+Math.imul(m,V)|0;a=a+Math.imul(m,ia)|0;a=a+Math.imul(k,V)|0;b=b+Math.imul(k,ia)|0;var ta=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ta>>>26)|0,ta=ta&67108863;h=Math.imul(r,fa);a=Math.imul(r,ga);a=a+Math.imul(y,fa)|0;b=Math.imul(y,ga);h=h+Math.imul(n,F)|0;a=a+Math.imul(n,ha)|0;a=a+Math.imul(q,F)|0;b=b+Math.imul(q,ha)|0;h=h+Math.imul(l,V)|0;a=a+Math.imul(l,ia)|0;a=a+Math.imul(p,V)|0;b=b+Math.imul(p, -ia)|0;h=h+Math.imul(m,W)|0;a=a+Math.imul(m,ja)|0;a=a+Math.imul(k,W)|0;b=b+Math.imul(k,ja)|0;var ua=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ua>>>26)|0,ua=ua&67108863;h=Math.imul(u,fa);a=Math.imul(u,ga);a=a+Math.imul(B,fa)|0;b=Math.imul(B,ga);h=h+Math.imul(r,F)|0;a=a+Math.imul(r,ha)|0;a=a+Math.imul(y,F)|0;b=b+Math.imul(y,ha)|0;h=h+Math.imul(n,V)|0;a=a+Math.imul(n,ia)|0;a=a+Math.imul(q,V)|0;b=b+Math.imul(q,ia)|0;h=h+Math.imul(l,W)|0;a=a+Math.imul(l,ja)|0;a=a+Math.imul(p,W)|0;b=b+Math.imul(p,ja)|0; -h=h+Math.imul(m,X)|0;a=a+Math.imul(m,ka)|0;a=a+Math.imul(k,X)|0;b=b+Math.imul(k,ka)|0;var va=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(va>>>26)|0,va=va&67108863;h=Math.imul(z,fa);a=Math.imul(z,ga);a=a+Math.imul(w,fa)|0;b=Math.imul(w,ga);h=h+Math.imul(u,F)|0;a=a+Math.imul(u,ha)|0;a=a+Math.imul(B,F)|0;b=b+Math.imul(B,ha)|0;h=h+Math.imul(r,V)|0;a=a+Math.imul(r,ia)|0;a=a+Math.imul(y,V)|0;b=b+Math.imul(y,ia)|0;h=h+Math.imul(n,W)|0;a=a+Math.imul(n,ja)|0;a=a+Math.imul(q,W)|0;b=b+Math.imul(q,ja)|0;h=h+Math.imul(l, -X)|0;a=a+Math.imul(l,ka)|0;a=a+Math.imul(p,X)|0;b=b+Math.imul(p,ka)|0;h=h+Math.imul(m,Y)|0;a=a+Math.imul(m,la)|0;a=a+Math.imul(k,Y)|0;b=b+Math.imul(k,la)|0;var wa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(wa>>>26)|0,wa=wa&67108863;h=Math.imul(C,fa);a=Math.imul(C,ga);a=a+Math.imul(v,fa)|0;b=Math.imul(v,ga);h=h+Math.imul(z,F)|0;a=a+Math.imul(z,ha)|0;a=a+Math.imul(w,F)|0;b=b+Math.imul(w,ha)|0;h=h+Math.imul(u,V)|0;a=a+Math.imul(u,ia)|0;a=a+Math.imul(B,V)|0;b=b+Math.imul(B,ia)|0;h=h+Math.imul(r,W)|0; -a=a+Math.imul(r,ja)|0;a=a+Math.imul(y,W)|0;b=b+Math.imul(y,ja)|0;h=h+Math.imul(n,X)|0;a=a+Math.imul(n,ka)|0;a=a+Math.imul(q,X)|0;b=b+Math.imul(q,ka)|0;h=h+Math.imul(l,Y)|0;a=a+Math.imul(l,la)|0;a=a+Math.imul(p,Y)|0;b=b+Math.imul(p,la)|0;h=h+Math.imul(m,Z)|0;a=a+Math.imul(m,ma)|0;a=a+Math.imul(k,Z)|0;b=b+Math.imul(k,ma)|0;var xa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(xa>>>26)|0,xa=xa&67108863;h=Math.imul(D,fa);a=Math.imul(D,ga);a=a+Math.imul(A,fa)|0;b=Math.imul(A,ga);h=h+Math.imul(C,F)|0;a=a+Math.imul(C, -ha)|0;a=a+Math.imul(v,F)|0;b=b+Math.imul(v,ha)|0;h=h+Math.imul(z,V)|0;a=a+Math.imul(z,ia)|0;a=a+Math.imul(w,V)|0;b=b+Math.imul(w,ia)|0;h=h+Math.imul(u,W)|0;a=a+Math.imul(u,ja)|0;a=a+Math.imul(B,W)|0;b=b+Math.imul(B,ja)|0;h=h+Math.imul(r,X)|0;a=a+Math.imul(r,ka)|0;a=a+Math.imul(y,X)|0;b=b+Math.imul(y,ka)|0;h=h+Math.imul(n,Y)|0;a=a+Math.imul(n,la)|0;a=a+Math.imul(q,Y)|0;b=b+Math.imul(q,la)|0;h=h+Math.imul(l,Z)|0;a=a+Math.imul(l,ma)|0;a=a+Math.imul(p,Z)|0;b=b+Math.imul(p,ma)|0;h=h+Math.imul(m,aa)|0; -a=a+Math.imul(m,na)|0;a=a+Math.imul(k,aa)|0;b=b+Math.imul(k,na)|0;var ya=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ya>>>26)|0,ya=ya&67108863;h=Math.imul(x,fa);a=Math.imul(x,ga);a=a+Math.imul(I,fa)|0;b=Math.imul(I,ga);h=h+Math.imul(D,F)|0;a=a+Math.imul(D,ha)|0;a=a+Math.imul(A,F)|0;b=b+Math.imul(A,ha)|0;h=h+Math.imul(C,V)|0;a=a+Math.imul(C,ia)|0;a=a+Math.imul(v,V)|0;b=b+Math.imul(v,ia)|0;h=h+Math.imul(z,W)|0;a=a+Math.imul(z,ja)|0;a=a+Math.imul(w,W)|0;b=b+Math.imul(w,ja)|0;h=h+Math.imul(u,X)|0;a=a+ -Math.imul(u,ka)|0;a=a+Math.imul(B,X)|0;b=b+Math.imul(B,ka)|0;h=h+Math.imul(r,Y)|0;a=a+Math.imul(r,la)|0;a=a+Math.imul(y,Y)|0;b=b+Math.imul(y,la)|0;h=h+Math.imul(n,Z)|0;a=a+Math.imul(n,ma)|0;a=a+Math.imul(q,Z)|0;b=b+Math.imul(q,ma)|0;h=h+Math.imul(l,aa)|0;a=a+Math.imul(l,na)|0;a=a+Math.imul(p,aa)|0;b=b+Math.imul(p,na)|0;h=h+Math.imul(m,ba)|0;a=a+Math.imul(m,ca)|0;a=a+Math.imul(k,ba)|0;b=b+Math.imul(k,ca)|0;var za=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(za>>>26)|0,za=za&67108863;h=Math.imul(e,fa); +da>>>13;c.negative=a.negative^b.negative;c.length=19;h=Math.imul(k,fa);a=Math.imul(k,ga);a=a+Math.imul(m,fa)|0;b=Math.imul(m,ga);var ra=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ra>>>26)|0,ra=ra&67108863;h=Math.imul(l,fa);a=Math.imul(l,ga);a=a+Math.imul(p,fa)|0;b=Math.imul(p,ga);h=h+Math.imul(k,F)|0;a=a+Math.imul(k,ha)|0;a=a+Math.imul(m,F)|0;b=b+Math.imul(m,ha)|0;var sa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(sa>>>26)|0,sa=sa&67108863;h=Math.imul(n,fa);a=Math.imul(n,ga);a=a+Math.imul(q,fa)|0; +b=Math.imul(q,ga);h=h+Math.imul(l,F)|0;a=a+Math.imul(l,ha)|0;a=a+Math.imul(p,F)|0;b=b+Math.imul(p,ha)|0;h=h+Math.imul(k,V)|0;a=a+Math.imul(k,ia)|0;a=a+Math.imul(m,V)|0;b=b+Math.imul(m,ia)|0;var ta=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ta>>>26)|0,ta=ta&67108863;h=Math.imul(r,fa);a=Math.imul(r,ga);a=a+Math.imul(y,fa)|0;b=Math.imul(y,ga);h=h+Math.imul(n,F)|0;a=a+Math.imul(n,ha)|0;a=a+Math.imul(q,F)|0;b=b+Math.imul(q,ha)|0;h=h+Math.imul(l,V)|0;a=a+Math.imul(l,ia)|0;a=a+Math.imul(p,V)|0;b=b+Math.imul(p, +ia)|0;h=h+Math.imul(k,W)|0;a=a+Math.imul(k,ja)|0;a=a+Math.imul(m,W)|0;b=b+Math.imul(m,ja)|0;var ua=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ua>>>26)|0,ua=ua&67108863;h=Math.imul(u,fa);a=Math.imul(u,ga);a=a+Math.imul(B,fa)|0;b=Math.imul(B,ga);h=h+Math.imul(r,F)|0;a=a+Math.imul(r,ha)|0;a=a+Math.imul(y,F)|0;b=b+Math.imul(y,ha)|0;h=h+Math.imul(n,V)|0;a=a+Math.imul(n,ia)|0;a=a+Math.imul(q,V)|0;b=b+Math.imul(q,ia)|0;h=h+Math.imul(l,W)|0;a=a+Math.imul(l,ja)|0;a=a+Math.imul(p,W)|0;b=b+Math.imul(p,ja)|0; +h=h+Math.imul(k,X)|0;a=a+Math.imul(k,ka)|0;a=a+Math.imul(m,X)|0;b=b+Math.imul(m,ka)|0;var va=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(va>>>26)|0,va=va&67108863;h=Math.imul(z,fa);a=Math.imul(z,ga);a=a+Math.imul(w,fa)|0;b=Math.imul(w,ga);h=h+Math.imul(u,F)|0;a=a+Math.imul(u,ha)|0;a=a+Math.imul(B,F)|0;b=b+Math.imul(B,ha)|0;h=h+Math.imul(r,V)|0;a=a+Math.imul(r,ia)|0;a=a+Math.imul(y,V)|0;b=b+Math.imul(y,ia)|0;h=h+Math.imul(n,W)|0;a=a+Math.imul(n,ja)|0;a=a+Math.imul(q,W)|0;b=b+Math.imul(q,ja)|0;h=h+Math.imul(l, +X)|0;a=a+Math.imul(l,ka)|0;a=a+Math.imul(p,X)|0;b=b+Math.imul(p,ka)|0;h=h+Math.imul(k,Y)|0;a=a+Math.imul(k,la)|0;a=a+Math.imul(m,Y)|0;b=b+Math.imul(m,la)|0;var wa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(wa>>>26)|0,wa=wa&67108863;h=Math.imul(C,fa);a=Math.imul(C,ga);a=a+Math.imul(v,fa)|0;b=Math.imul(v,ga);h=h+Math.imul(z,F)|0;a=a+Math.imul(z,ha)|0;a=a+Math.imul(w,F)|0;b=b+Math.imul(w,ha)|0;h=h+Math.imul(u,V)|0;a=a+Math.imul(u,ia)|0;a=a+Math.imul(B,V)|0;b=b+Math.imul(B,ia)|0;h=h+Math.imul(r,W)|0; +a=a+Math.imul(r,ja)|0;a=a+Math.imul(y,W)|0;b=b+Math.imul(y,ja)|0;h=h+Math.imul(n,X)|0;a=a+Math.imul(n,ka)|0;a=a+Math.imul(q,X)|0;b=b+Math.imul(q,ka)|0;h=h+Math.imul(l,Y)|0;a=a+Math.imul(l,la)|0;a=a+Math.imul(p,Y)|0;b=b+Math.imul(p,la)|0;h=h+Math.imul(k,Z)|0;a=a+Math.imul(k,ma)|0;a=a+Math.imul(m,Z)|0;b=b+Math.imul(m,ma)|0;var xa=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(xa>>>26)|0,xa=xa&67108863;h=Math.imul(D,fa);a=Math.imul(D,ga);a=a+Math.imul(A,fa)|0;b=Math.imul(A,ga);h=h+Math.imul(C,F)|0;a=a+Math.imul(C, +ha)|0;a=a+Math.imul(v,F)|0;b=b+Math.imul(v,ha)|0;h=h+Math.imul(z,V)|0;a=a+Math.imul(z,ia)|0;a=a+Math.imul(w,V)|0;b=b+Math.imul(w,ia)|0;h=h+Math.imul(u,W)|0;a=a+Math.imul(u,ja)|0;a=a+Math.imul(B,W)|0;b=b+Math.imul(B,ja)|0;h=h+Math.imul(r,X)|0;a=a+Math.imul(r,ka)|0;a=a+Math.imul(y,X)|0;b=b+Math.imul(y,ka)|0;h=h+Math.imul(n,Y)|0;a=a+Math.imul(n,la)|0;a=a+Math.imul(q,Y)|0;b=b+Math.imul(q,la)|0;h=h+Math.imul(l,Z)|0;a=a+Math.imul(l,ma)|0;a=a+Math.imul(p,Z)|0;b=b+Math.imul(p,ma)|0;h=h+Math.imul(k,aa)|0; +a=a+Math.imul(k,na)|0;a=a+Math.imul(m,aa)|0;b=b+Math.imul(m,na)|0;var ya=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(ya>>>26)|0,ya=ya&67108863;h=Math.imul(x,fa);a=Math.imul(x,ga);a=a+Math.imul(I,fa)|0;b=Math.imul(I,ga);h=h+Math.imul(D,F)|0;a=a+Math.imul(D,ha)|0;a=a+Math.imul(A,F)|0;b=b+Math.imul(A,ha)|0;h=h+Math.imul(C,V)|0;a=a+Math.imul(C,ia)|0;a=a+Math.imul(v,V)|0;b=b+Math.imul(v,ia)|0;h=h+Math.imul(z,W)|0;a=a+Math.imul(z,ja)|0;a=a+Math.imul(w,W)|0;b=b+Math.imul(w,ja)|0;h=h+Math.imul(u,X)|0;a=a+ +Math.imul(u,ka)|0;a=a+Math.imul(B,X)|0;b=b+Math.imul(B,ka)|0;h=h+Math.imul(r,Y)|0;a=a+Math.imul(r,la)|0;a=a+Math.imul(y,Y)|0;b=b+Math.imul(y,la)|0;h=h+Math.imul(n,Z)|0;a=a+Math.imul(n,ma)|0;a=a+Math.imul(q,Z)|0;b=b+Math.imul(q,ma)|0;h=h+Math.imul(l,aa)|0;a=a+Math.imul(l,na)|0;a=a+Math.imul(p,aa)|0;b=b+Math.imul(p,na)|0;h=h+Math.imul(k,ba)|0;a=a+Math.imul(k,ca)|0;a=a+Math.imul(m,ba)|0;b=b+Math.imul(m,ca)|0;var za=(g+h|0)+((a&8191)<<13)|0,g=(b+(a>>>13)|0)+(za>>>26)|0,za=za&67108863;h=Math.imul(e,fa); a=Math.imul(e,ga);a=a+Math.imul(E,fa)|0;b=Math.imul(E,ga);h=h+Math.imul(x,F)|0;a=a+Math.imul(x,ha)|0;a=a+Math.imul(I,F)|0;b=b+Math.imul(I,ha)|0;h=h+Math.imul(D,V)|0;a=a+Math.imul(D,ia)|0;a=a+Math.imul(A,V)|0;b=b+Math.imul(A,ia)|0;h=h+Math.imul(C,W)|0;a=a+Math.imul(C,ja)|0;a=a+Math.imul(v,W)|0;b=b+Math.imul(v,ja)|0;h=h+Math.imul(z,X)|0;a=a+Math.imul(z,ka)|0;a=a+Math.imul(w,X)|0;b=b+Math.imul(w,ka)|0;h=h+Math.imul(u,Y)|0;a=a+Math.imul(u,la)|0;a=a+Math.imul(B,Y)|0;b=b+Math.imul(B,la)|0;h=h+Math.imul(r, -Z)|0;a=a+Math.imul(r,ma)|0;a=a+Math.imul(y,Z)|0;b=b+Math.imul(y,ma)|0;h=h+Math.imul(n,aa)|0;a=a+Math.imul(n,na)|0;a=a+Math.imul(q,aa)|0;b=b+Math.imul(q,na)|0;h=h+Math.imul(l,ba)|0;a=a+Math.imul(l,ca)|0;a=a+Math.imul(p,ba)|0;b=b+Math.imul(p,ca)|0;h=h+Math.imul(m,f)|0;a=a+Math.imul(m,da)|0;a=a+Math.imul(k,f)|0;b=b+Math.imul(k,da)|0;m=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(m>>>26)|0;m&=67108863;h=Math.imul(e,F);a=Math.imul(e,ha);a=a+Math.imul(E,F)|0;b=Math.imul(E,ha);h=h+Math.imul(x,V)|0;a=a+Math.imul(x, +Z)|0;a=a+Math.imul(r,ma)|0;a=a+Math.imul(y,Z)|0;b=b+Math.imul(y,ma)|0;h=h+Math.imul(n,aa)|0;a=a+Math.imul(n,na)|0;a=a+Math.imul(q,aa)|0;b=b+Math.imul(q,na)|0;h=h+Math.imul(l,ba)|0;a=a+Math.imul(l,ca)|0;a=a+Math.imul(p,ba)|0;b=b+Math.imul(p,ca)|0;h=h+Math.imul(k,f)|0;a=a+Math.imul(k,da)|0;a=a+Math.imul(m,f)|0;b=b+Math.imul(m,da)|0;k=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(k>>>26)|0;k&=67108863;h=Math.imul(e,F);a=Math.imul(e,ha);a=a+Math.imul(E,F)|0;b=Math.imul(E,ha);h=h+Math.imul(x,V)|0;a=a+Math.imul(x, ia)|0;a=a+Math.imul(I,V)|0;b=b+Math.imul(I,ia)|0;h=h+Math.imul(D,W)|0;a=a+Math.imul(D,ja)|0;a=a+Math.imul(A,W)|0;b=b+Math.imul(A,ja)|0;h=h+Math.imul(C,X)|0;a=a+Math.imul(C,ka)|0;a=a+Math.imul(v,X)|0;b=b+Math.imul(v,ka)|0;h=h+Math.imul(z,Y)|0;a=a+Math.imul(z,la)|0;a=a+Math.imul(w,Y)|0;b=b+Math.imul(w,la)|0;h=h+Math.imul(u,Z)|0;a=a+Math.imul(u,ma)|0;a=a+Math.imul(B,Z)|0;b=b+Math.imul(B,ma)|0;h=h+Math.imul(r,aa)|0;a=a+Math.imul(r,na)|0;a=a+Math.imul(y,aa)|0;b=b+Math.imul(y,na)|0;h=h+Math.imul(n,ba)| 0;a=a+Math.imul(n,ca)|0;a=a+Math.imul(q,ba)|0;b=b+Math.imul(q,ca)|0;h=h+Math.imul(l,f)|0;a=a+Math.imul(l,da)|0;a=a+Math.imul(p,f)|0;b=b+Math.imul(p,da)|0;l=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(l>>>26)|0;l&=67108863;h=Math.imul(e,V);a=Math.imul(e,ia);a=a+Math.imul(E,V)|0;b=Math.imul(E,ia);h=h+Math.imul(x,W)|0;a=a+Math.imul(x,ja)|0;a=a+Math.imul(I,W)|0;b=b+Math.imul(I,ja)|0;h=h+Math.imul(D,X)|0;a=a+Math.imul(D,ka)|0;a=a+Math.imul(A,X)|0;b=b+Math.imul(A,ka)|0;h=h+Math.imul(C,Y)|0;a=a+Math.imul(C, la)|0;a=a+Math.imul(v,Y)|0;b=b+Math.imul(v,la)|0;h=h+Math.imul(z,Z)|0;a=a+Math.imul(z,ma)|0;a=a+Math.imul(w,Z)|0;b=b+Math.imul(w,ma)|0;h=h+Math.imul(u,aa)|0;a=a+Math.imul(u,na)|0;a=a+Math.imul(B,aa)|0;b=b+Math.imul(B,na)|0;h=h+Math.imul(r,ba)|0;a=a+Math.imul(r,ca)|0;a=a+Math.imul(y,ba)|0;b=b+Math.imul(y,ca)|0;h=h+Math.imul(n,f)|0;a=a+Math.imul(n,da)|0;a=a+Math.imul(q,f)|0;b=b+Math.imul(q,da)|0;n=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(n>>>26)|0;n&=67108863;h=Math.imul(e,W);a=Math.imul(e,ja);a= @@ -799,102 +799,102 @@ da)|0;a=a+Math.imul(y,f)|0;b=b+Math.imul(y,da)|0;r=(g+h|0)+((a&8191)<<13)|0;g=(b ba)|0;b=b+Math.imul(w,ca)|0;h=h+Math.imul(u,f)|0;a=a+Math.imul(u,da)|0;a=a+Math.imul(B,f)|0;b=b+Math.imul(B,da)|0;u=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(u>>>26)|0;u&=67108863;h=Math.imul(e,Y);a=Math.imul(e,la);a=a+Math.imul(E,Y)|0;b=Math.imul(E,la);h=h+Math.imul(x,Z)|0;a=a+Math.imul(x,ma)|0;a=a+Math.imul(I,Z)|0;b=b+Math.imul(I,ma)|0;h=h+Math.imul(D,aa)|0;a=a+Math.imul(D,na)|0;a=a+Math.imul(A,aa)|0;b=b+Math.imul(A,na)|0;h=h+Math.imul(C,ba)|0;a=a+Math.imul(C,ca)|0;a=a+Math.imul(v,ba)|0;b=b+Math.imul(v, ca)|0;h=h+Math.imul(z,f)|0;a=a+Math.imul(z,da)|0;a=a+Math.imul(w,f)|0;b=b+Math.imul(w,da)|0;z=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(z>>>26)|0;z&=67108863;h=Math.imul(e,Z);a=Math.imul(e,ma);a=a+Math.imul(E,Z)|0;b=Math.imul(E,ma);h=h+Math.imul(x,aa)|0;a=a+Math.imul(x,na)|0;a=a+Math.imul(I,aa)|0;b=b+Math.imul(I,na)|0;h=h+Math.imul(D,ba)|0;a=a+Math.imul(D,ca)|0;a=a+Math.imul(A,ba)|0;b=b+Math.imul(A,ca)|0;h=h+Math.imul(C,f)|0;a=a+Math.imul(C,da)|0;a=a+Math.imul(v,f)|0;b=b+Math.imul(v,da)|0;C=(g+h| 0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(C>>>26)|0;C&=67108863;h=Math.imul(e,aa);a=Math.imul(e,na);a=a+Math.imul(E,aa)|0;b=Math.imul(E,na);h=h+Math.imul(x,ba)|0;a=a+Math.imul(x,ca)|0;a=a+Math.imul(I,ba)|0;b=b+Math.imul(I,ca)|0;h=h+Math.imul(D,f)|0;a=a+Math.imul(D,da)|0;a=a+Math.imul(A,f)|0;b=b+Math.imul(A,da)|0;D=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;h=Math.imul(e,ba);a=Math.imul(e,ca);a=a+Math.imul(E,ba)|0;b=Math.imul(E,ca);h=h+Math.imul(x,f)|0;a=a+Math.imul(x,da)|0;a=a+Math.imul(I, -f)|0;b=b+Math.imul(I,da)|0;x=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(x>>>26)|0;x&=67108863;h=Math.imul(e,f);a=Math.imul(e,da);a=a+Math.imul(E,f)|0;b=Math.imul(E,da);k=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(k>>>26)|0;d[0]=ra;d[1]=sa;d[2]=ta;d[3]=ua;d[4]=va;d[5]=wa;d[6]=xa;d[7]=ya;d[8]=za;d[9]=m;d[10]=l;d[11]=n;d[12]=r;d[13]=u;d[14]=z;d[15]=C;d[16]=D;d[17]=x;d[18]=k&67108863;0!==g&&(d[19]=g,c.length++);return c};Math.imul||(A=f);e.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10=== -this.length&&10===a.length)a=A(this,a,b);else if(63>c)a=f(this,a,b);else if(1024>c){b.negative=a.negative^this.negative;b.length=this.length+a.length;for(var e=0,d=c=0;d>>26)|0,c=c+(g>>>26),g=g&67108863;b.words[d]=e;e=g}0!==e?b.words[d]=e:b.length--;a=b.strip()}else a=(new l).mulp(this,a, -b);return a};l.prototype.makeRBT=function(a){for(var b=Array(a),c=e.prototype._countBits(a)-1,f=0;f>=1;return c};l.prototype.permute=function(a,b,c,e,f,d){for(var g=0;g>>=1)c++;return 1<=c))for(var e=0;e>>13)|0)+(x>>>26)|0;x&=67108863;h=Math.imul(e,f);a=Math.imul(e,da);a=a+Math.imul(E,f)|0;b=Math.imul(E,da);m=(g+h|0)+((a&8191)<<13)|0;g=(b+(a>>>13)|0)+(m>>>26)|0;d[0]=ra;d[1]=sa;d[2]=ta;d[3]=ua;d[4]=va;d[5]=wa;d[6]=xa;d[7]=ya;d[8]=za;d[9]=k;d[10]=l;d[11]=n;d[12]=r;d[13]=u;d[14]=z;d[15]=C;d[16]=D;d[17]=x;d[18]=m&67108863;0!==g&&(d[19]=g,c.length++);return c};Math.imul||(A=e);f.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10=== +this.length&&10===a.length)a=A(this,a,b);else if(63>c)a=e(this,a,b);else if(1024>c){b.negative=a.negative^this.negative;b.length=this.length+a.length;for(var f=0,d=c=0;d>>26)|0,c=c+(g>>>26),g=g&67108863;b.words[d]=f;f=g}0!==f?b.words[d]=f:b.length--;a=b.strip()}else a=(new l).mulp(this,a, +b);return a};l.prototype.makeRBT=function(a){for(var b=Array(a),c=f.prototype._countBits(a)-1,e=0;e>=1;return c};l.prototype.permute=function(a,b,c,e,f,d){for(var g=0;g>>=1)c++;return 1<=c))for(var e=0;ec?0:c/67108864|0;return a};l.prototype.convert13b=function(a,b,e,f){for(var d=0,g=0;g>>=13,e[2*g+1]=d&8191,d>>>=13;for(g=2*b;ga);for(var b=0,e=0;e>26,b=b+(f/67108864|0),b=b+(d>>>26);this.words[e]=d&67108863}0!==b&&(this.words[e]=b,this.length++);return this};e.prototype.muln= -function(a){return this.clone().imuln(a)};e.prototype.sqr=function(){return this.mul(this)};e.prototype.isqr=function(){return this.imul(this.clone())};e.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new e(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var d=0;for(f=0;f>>26-b}d&&(this.words[f]=d,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<d)for(this.length-=d,g=0;g=b);g--){var h=this.words[g]|0;this.words[g]=d<<26-f|h>>>f;d=h&a}e&&0!==d&&(e.words[e.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};e.prototype.ishrn= -function(a,b,e){c(0===this.negative);return this.iushrn(a,b,e)};e.prototype.shln=function(a){return this.clone().ishln(a)};e.prototype.ushln=function(a){return this.clone().iushln(a)};e.prototype.shrn=function(a){return this.clone().ishrn(a)};e.prototype.ushrn=function(a){return this.clone().iushrn(a)};e.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-= -a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};e.prototype.addn=function(a){return this.clone().iaddn(a)};e.prototype.subn=function(a){return this.clone().isubn(a)};e.prototype.iabs=function(){this.negative=0;return this};e.prototype.abs=function(){return this.clone().iabs()};e.prototype._ishlnsubmul=function(a,b,e){var f;this._expand(a.length+e);var d, -g=0;for(f=0;f>26)-(g/67108864|0),this.words[f+e]=d&67108863;for(;f>26,this.words[f+e]=d&67108863;if(0===g)return this.strip();c(-1===g);for(f=g=0;f>26,this.words[f]=d&67108863;this.negative=1;return this.strip()};e.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,d=f.words[f.length-1]|0;a=26-this._countBits(d);0!==a&&(f=f.ushln(a), -c.iushln(a),d=f.words[f.length-1]|0);var g=c.length-f.length,h;if("mod"!==b){h=new e(null);h.length=g+1;h.words=Array(h.length);for(var l=0;lthis.length||0>this.cmp(a)?{div:new e(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null,mod:new e(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new e(this.modn(a.words[0]))}:this._wordDiv(a,b)};e.prototype.div=function(a){return this.divmod(a,"div",!1).div};e.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};e.prototype.umod=function(a){return this.divmod(a,"mod", -!0).mod};e.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,e=a.ushrn(1);a=a.andln(1);c=c.cmp(e);return 0>c||1===a&&0===c?b.div:0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};e.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,e=0,f=this.length-1;0<=f;f--)e=(b*e+(this.words[f]|0))%a;return e};e.prototype.idivn=function(a){c(67108863>=a);for(var b=0,e=this.length-1;0<=e;e--)b=(this.words[e]|0)+67108864*b, -this.words[e]=b/a|0,b%=a;return this.strip()};e.prototype.divn=function(a){return this.clone().idivn(a)};e.prototype.egcd=function(a){c(0===a.negative);c(!a.isZero());var b=this,f=a.clone(),b=0!==b.negative?b.umod(a):b.clone();a=new e(1);for(var d=new e(0),g=new e(0),h=new e(1),l=0;b.isEven()&&f.isEven();)b.iushrn(1),f.iushrn(1),++l;for(var m=f.clone(),k=b.clone();!b.isZero();){for(var n=0,p=1;0===(b.words[0]&p)&&26>n;++n,p<<=1);if(0n;++n,p<<=1);if(0l;++l,m<<=1);if(0l;++l,m<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};e.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1), -a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var e=b.cmp(a);if(0>e)e=b,b=a,a=e;else if(0===e||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};e.prototype.invm=function(a){return this.egcd(a).a.umod(a)};e.prototype.isEven=function(){return 0===(this.words[0]&1)};e.prototype.isOdd=function(){return 1===(this.words[0]&1)};e.prototype.andln=function(a){return this.words[0]&a};e.prototype.bincn=function(a){c("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26,e=e&67108863;this.words[a]=e}0!==b&&(this.words[a]=b,this.length++);return this};e.prototype.isZero=function(){return 1===this.length&&0===this.words[0]};e.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1;if(this.lengthf&&(b=1);break}}return b};e.prototype.gtn=function(a){return 1===this.cmpn(a)};e.prototype.gt=function(a){return 1===this.cmp(a)}; -e.prototype.gten=function(a){return 0<=this.cmpn(a)};e.prototype.gte=function(a){return 0<=this.cmp(a)};e.prototype.ltn=function(a){return-1===this.cmpn(a)};e.prototype.lt=function(a){return-1===this.cmp(a)};e.prototype.lten=function(a){return 0>=this.cmpn(a)};e.prototype.lte=function(a){return 0>=this.cmp(a)};e.prototype.eqn=function(a){return 0===this.cmpn(a)};e.prototype.eq=function(a){return 0===this.cmp(a)};e.red=function(a){return new q(a)};e.prototype.toRed=function(a){c(!this.red,"Already a number in reduction context"); -c(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};e.prototype.fromRed=function(){c(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};e.prototype._forceRed=function(a){this.red=a;return this};e.prototype.forceRed=function(a){c(!this.red,"Already a number in reduction context");return this._forceRed(a)};e.prototype.redAdd=function(a){c(this.red,"redAdd works only with red numbers");return this.red.add(this,a)}; -e.prototype.redIAdd=function(a){c(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};e.prototype.redSub=function(a){c(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};e.prototype.redISub=function(a){c(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};e.prototype.redShl=function(a){c(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};e.prototype.redMul=function(a){c(this.red,"redMul works only with red numbers"); -this.red._verify2(this,a);return this.red.mul(this,a)};e.prototype.redIMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};e.prototype.redSqr=function(){c(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};e.prototype.redISqr=function(){c(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};e.prototype.redSqrt=function(){c(this.red,"redSqrt works only with red numbers"); -this.red._verify1(this);return this.red.sqrt(this)};e.prototype.redInvm=function(){c(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};e.prototype.redNeg=function(){c(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};e.prototype.redPow=function(a){c(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var F={k256:null,p224:null,p192:null,p25519:null};n.prototype._tmp= -function(){var a=new e(null);a.words=Array(Math.ceil(this.n/13));return a};n.prototype.ireduce=function(a){var b;do this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),b=a.bitLength();while(b>this.n);b=ba);for(var b=0,e=0;e>26,b=b+(f/67108864|0),b=b+(d>>>26);this.words[e]=d&67108863}0!==b&&(this.words[e]=b,this.length++);return this};f.prototype.muln= +function(a){return this.clone().imuln(a)};f.prototype.sqr=function(){return this.mul(this)};f.prototype.isqr=function(){return this.imul(this.clone())};f.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>e}if(0===b.length)return new f(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var d=0;for(f=0;f>>26-b}d&&(this.words[f]=d,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<d)for(this.length-=d,g=0;g=b);g--){var h=this.words[g]|0;this.words[g]=d<<26-f|h>>>f;d=h&a}e&&0!==d&&(e.words[e.length++]=d);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};f.prototype.ishrn= +function(a,b,e){c(0===this.negative);return this.iushrn(a,b,e)};f.prototype.shln=function(a){return this.clone().ishln(a)};f.prototype.ushln=function(a){return this.clone().iushln(a)};f.prototype.shrn=function(a){return this.clone().ishrn(a)};f.prototype.ushrn=function(a){return this.clone().iushrn(a)};f.prototype.testn=function(a){c("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-= +a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};f.prototype.addn=function(a){return this.clone().iaddn(a)};f.prototype.subn=function(a){return this.clone().isubn(a)};f.prototype.iabs=function(){this.negative=0;return this};f.prototype.abs=function(){return this.clone().iabs()};f.prototype._ishlnsubmul=function(a,b,e){var f;this._expand(a.length+e);var d, +g=0;for(f=0;f>26)-(g/67108864|0),this.words[f+e]=d&67108863;for(;f>26,this.words[f+e]=d&67108863;if(0===g)return this.strip();c(-1===g);for(f=g=0;f>26,this.words[f]=d&67108863;this.negative=1;return this.strip()};f.prototype._wordDiv=function(a,b){var c=this.clone(),e=a,d=e.words[e.length-1]|0;a=26-this._countBits(d);0!==a&&(e=e.ushln(a), +c.iushln(a),d=e.words[e.length-1]|0);var g=c.length-e.length,h;if("mod"!==b){h=new f(null);h.length=g+1;h.words=Array(h.length);for(var l=0;lthis.length||0>this.cmp(a)?{div:new f(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null,mod:new f(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new f(this.modn(a.words[0]))}:this._wordDiv(a,b)};f.prototype.div=function(a){return this.divmod(a,"div",!1).div};f.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};f.prototype.umod=function(a){return this.divmod(a,"mod", +!0).mod};f.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,e=a.ushrn(1);a=a.andln(1);c=c.cmp(e);return 0>c||1===a&&0===c?b.div:0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};f.prototype.modn=function(a){c(67108863>=a);for(var b=67108864%a,e=0,f=this.length-1;0<=f;f--)e=(b*e+(this.words[f]|0))%a;return e};f.prototype.idivn=function(a){c(67108863>=a);for(var b=0,e=this.length-1;0<=e;e--)b=(this.words[e]|0)+67108864*b, +this.words[e]=b/a|0,b%=a;return this.strip()};f.prototype.divn=function(a){return this.clone().idivn(a)};f.prototype.egcd=function(a){c(0===a.negative);c(!a.isZero());var b=this,e=a.clone(),b=0!==b.negative?b.umod(a):b.clone();a=new f(1);for(var d=new f(0),g=new f(0),h=new f(1),l=0;b.isEven()&&e.isEven();)b.iushrn(1),e.iushrn(1),++l;for(var k=e.clone(),m=b.clone();!b.isZero();){for(var n=0,p=1;0===(b.words[0]&p)&&26>n;++n,p<<=1);if(0n;++n,p<<=1);if(0l;++l,k<<=1);if(0l;++l,k<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};f.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1), +a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var e=b.cmp(a);if(0>e)e=b,b=a,a=e;else if(0===e||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};f.prototype.invm=function(a){return this.egcd(a).a.umod(a)};f.prototype.isEven=function(){return 0===(this.words[0]&1)};f.prototype.isOdd=function(){return 1===(this.words[0]&1)};f.prototype.andln=function(a){return this.words[0]&a};f.prototype.bincn=function(a){c("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26,e=e&67108863;this.words[a]=e}0!==b&&(this.words[a]=b,this.length++);return this};f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]};f.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1;if(this.lengthf&&(b=1);break}}return b};f.prototype.gtn=function(a){return 1===this.cmpn(a)};f.prototype.gt=function(a){return 1===this.cmp(a)}; +f.prototype.gten=function(a){return 0<=this.cmpn(a)};f.prototype.gte=function(a){return 0<=this.cmp(a)};f.prototype.ltn=function(a){return-1===this.cmpn(a)};f.prototype.lt=function(a){return-1===this.cmp(a)};f.prototype.lten=function(a){return 0>=this.cmpn(a)};f.prototype.lte=function(a){return 0>=this.cmp(a)};f.prototype.eqn=function(a){return 0===this.cmpn(a)};f.prototype.eq=function(a){return 0===this.cmp(a)};f.red=function(a){return new q(a)};f.prototype.toRed=function(a){c(!this.red,"Already a number in reduction context"); +c(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};f.prototype.fromRed=function(){c(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};f.prototype._forceRed=function(a){this.red=a;return this};f.prototype.forceRed=function(a){c(!this.red,"Already a number in reduction context");return this._forceRed(a)};f.prototype.redAdd=function(a){c(this.red,"redAdd works only with red numbers");return this.red.add(this,a)}; +f.prototype.redIAdd=function(a){c(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};f.prototype.redSub=function(a){c(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};f.prototype.redISub=function(a){c(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};f.prototype.redShl=function(a){c(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};f.prototype.redMul=function(a){c(this.red,"redMul works only with red numbers"); +this.red._verify2(this,a);return this.red.mul(this,a)};f.prototype.redIMul=function(a){c(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};f.prototype.redSqr=function(){c(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};f.prototype.redISqr=function(){c(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};f.prototype.redSqrt=function(){c(this.red,"redSqrt works only with red numbers"); +this.red._verify1(this);return this.red.sqrt(this)};f.prototype.redInvm=function(){c(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};f.prototype.redNeg=function(){c(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};f.prototype.redPow=function(a){c(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var F={k256:null,p224:null,p192:null,p25519:null};n.prototype._tmp= +function(){var a=new f(null);a.words=Array(Math.ceil(this.n/13));return a};n.prototype.ireduce=function(a){var b;do this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),b=a.bitLength();while(b>this.n);b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(e=10;e>>22,c=b;c>>>=22;a.words[e-10]=c;a.length=0===c&&10>>26;a.words[c]=e}0!==b&&(a.words[a.length++]=b);return a};e._prime=function(a){if(F[a])return F[a];var b;if("k256"===a)b=new r;else if("p224"===a)b=new u;else if("p192"===a)b=new y;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return F[a]=b};q.prototype._verify1=function(a){c(0===a.negative,"red works only with positives");c(a.red, +1]&&a.length--);return a};d(u,n);d(y,n);d(C,n);C.prototype.imulK=function(a){for(var b=0,c=0;c>>26;a.words[c]=e}0!==b&&(a.words[a.length++]=b);return a};f._prime=function(a){if(F[a])return F[a];var b;if("k256"===a)b=new r;else if("p224"===a)b=new u;else if("p192"===a)b=new y;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return F[a]=b};q.prototype._verify1=function(a){c(0===a.negative,"red works only with positives");c(a.red, "red works only with red numbers")};q.prototype._verify2=function(a,b){c(0===(a.negative|b.negative),"red works only with positives");c(a.red&&a.red===b.red,"red works only with red numbers")};q.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};q.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};q.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)}; q.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};q.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&&a.iadd(this.m);return a._forceRed(this)};q.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};q.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};q.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};q.prototype.mul=function(a, -b){this._verify2(a,b);return this.imod(a.mul(b))};q.prototype.isqr=function(a){return this.imul(a,a.clone())};q.prototype.sqr=function(a){return this.mul(a,a)};q.prototype.sqrt=function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b)return b=this.m.add(new e(1)).iushrn(2),this.pow(a,b);for(var f=this.m.subn(1),d=0;!f.isZero()&&0===f.andln(1);)d++,f.iushrn(1);c(!f.isZero());for(var b=(new e(1)).toRed(this),g=b.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength(),l= -(new e(2*l*l)).toRed(this);0!==this.pow(l,h).cmp(g);)l.redIAdd(g);h=this.pow(l,f);g=this.pow(a,f.addn(1).iushrn(1));a=this.pow(a,f);for(f=d;0!==a.cmp(b);){l=a;for(d=0;0!==l.cmp(b);d++)l=l.redSqr();c(d>h&1;a!==c[0]&&(a=this.sqr(a));if(0===m&&0===d)g=0;else if(d<<=1,d|=m,g++,4===g||0===f&&0===h)a=this.mul(a,c[d]),d=g=0}h=26}return a};q.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};q.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a}; -e.mont=function(a){return new z(a)};d(z,q);z.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};z.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv));a.red=null;return a};z.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};z.prototype.mul= -function(a,b){if(a.isZero()||b.isZero())return(new e(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};z.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof b||b,this)},{buffer:36}],35:[function(k,b,a){function c(a){this.rand=a}var d;b.exports=function(a){d||(d=new c(null)); +b){this._verify2(a,b);return this.imod(a.mul(b))};q.prototype.isqr=function(a){return this.imul(a,a.clone())};q.prototype.sqr=function(a){return this.mul(a,a)};q.prototype.sqrt=function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);c(1===b%2);if(3===b)return b=this.m.add(new f(1)).iushrn(2),this.pow(a,b);for(var e=this.m.subn(1),d=0;!e.isZero()&&0===e.andln(1);)d++,e.iushrn(1);c(!e.isZero());for(var b=(new f(1)).toRed(this),g=b.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength(),l= +(new f(2*l*l)).toRed(this);0!==this.pow(l,h).cmp(g);)l.redIAdd(g);h=this.pow(l,e);g=this.pow(a,e.addn(1).iushrn(1));a=this.pow(a,e);for(e=d;0!==a.cmp(b);){l=a;for(d=0;0!==l.cmp(b);d++)l=l.redSqr();c(d>h&1;a!==c[0]&&(a=this.sqr(a));if(0===k&&0===d)g=0;else if(d<<=1,d|=k,g++,4===g||0===e&&0===h)a=this.mul(a,c[d]),d=g=0}h=26}return a};q.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};q.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a}; +f.mont=function(a){return new z(a)};d(z,q);z.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};z.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv));a.red=null;return a};z.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};z.prototype.mul= +function(a,b){if(a.isZero()||b.isZero())return(new f(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};z.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof b||b,this)},{buffer:36}],35:[function(k,b,a){function c(a){this.rand=a}var d;b.exports=function(a){d||(d=new c(null)); return d.generate(a)};b.exports.Rand=c;c.prototype.generate=function(a){return this._rand(a)};c.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);a=new Uint8Array(a);for(var b=0;b>>24]^g[m>>>16&255]^h[k>>>8&255]^c[n&255]^b[u++],p=f[m>>>24]^g[k>>>16&255]^h[n>>>8&255]^c[l&255]^b[u++],r=f[k>>>24]^g[n>>>16&255]^h[l>>>8&255]^c[m&255]^b[u++],n=f[n>>>24]^g[l>>>16&255]^h[m>>>8&255]^c[k&255]^b[u++],l=a,m=p,k=r;a=(e[l>>>24]<<24|e[m>>>16&255]<<16|e[k>>>8&255]<<8|e[n&255])^b[u++];p=(e[m>>>24]<<24|e[k>>>16&255]<<16|e[n>>>8&255]<<8|e[l&255])^b[u++];r= -(e[k>>>24]<<24|e[n>>>16&255]<<16|e[l>>>8&255]<<8|e[m&255])^b[u++];n=(e[n>>>24]<<24|e[l>>>16&255]<<16|e[m>>>8&255]<<8|e[k&255])^b[u++];return[a>>>0,p>>>0,r>>>0,n>>>0]}function g(a){this._key=c(a);this._reset()}var e=k("safe-buffer").Buffer,m=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var a=Array(256),b=0;256>b;b++)a[b]=128>b?b<<1:b<<1^283;for(var b=[],c=[],e=[[],[],[],[]],d=[[],[],[],[]],g=0,h=0,m=0;256>m;++m){var k=h^h<<1^h<<2^h<<3^h<<4,k=k>>>8^k&255^99;b[g]=k;c[k]=g;var p=a[g],v=a[p],w=a[v], -x=257*a[k]^16843008*k;e[0][g]=x<<24|x>>>8;e[1][g]=x<<16|x>>>16;e[2][g]=x<<8|x>>>24;e[3][g]=x;x=16843009*w^65537*v^257*p^16843008*g;d[0][k]=x<<24|x>>>8;d[1][k]=x<<16|x>>>16;d[2][k]=x<<8|x>>>24;d[3][k]=x;0===g?g=h=1:(g=p^a[a[a[w^p]]],h^=a[a[h]])}return{SBOX:b,INV_SBOX:c,SUB_MIX:e,INV_SUB_MIX:d}}();g.blockSize=16;g.keySize=32;g.prototype.blockSize=g.blockSize;g.prototype.keySize=g.keySize;g.prototype._reset=function(){for(var a=this._key,b=a.length,c=b+6,e=4*(c+1),d=[],g=0;g>>24,a=p.SBOX[a>>>24]<<24|p.SBOX[a>>>16&255]<<16|p.SBOX[a>>>8&255]<<8|p.SBOX[a&255],a^=m[g/b|0]<<24):6>>24]<<24|p.SBOX[a>>>16&255]<<16|p.SBOX[a>>>8&255]<<8|p.SBOX[a&255]),d[g]=d[g-b]^a;b=[];for(g=0;gg||4>=a?h:p.INV_SUB_MIX[0][p.SBOX[h>>>24]]^p.INV_SUB_MIX[1][p.SBOX[h>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[h>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[h&255]]}this._nRounds=c;this._keySchedule=d;this._invKeySchedule= -b};g.prototype.encryptBlockRaw=function(a){a=c(a);return h(a,this._keySchedule,p.SUB_MIX,p.SBOX,this._nRounds)};g.prototype.encryptBlock=function(a){a=this.encryptBlockRaw(a);var b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[1],4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[3],12);return b};g.prototype.decryptBlock=function(a){a=c(a);var b=a[1];a[1]=a[3];a[3]=b;a=h(a,this._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,this._nRounds);b=e.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[3], -4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[1],12);return b};g.prototype.scrub=function(){d(this._keySchedule);d(this._invKeySchedule);d(this._key)};b.exports.AES=g},{"safe-buffer":160}],38:[function(k,b,a){function c(a,b,c,m){g.call(this);var f=h.alloc(4,0);this._cipher=new d.AES(b);f=this._cipher.encryptBlock(f);this._ghash=new e(f);b=c;if(12===b.length)this._finID=h.concat([b,h.from([0,0,0,1])]),c=h.concat([b,h.from([0,0,0,2])]);else{c=new e(f);var f=b.length,l=f%16;c.update(b);l&&c.update(h.alloc(16- -l,0));c.update(h.alloc(8,0));b=8*f;f=h.alloc(8);f.writeUIntBE(b,0,8);c.update(f);this._finID=c.state;c=h.from(this._finID);p(c)}this._prev=h.from(c);this._cache=h.allocUnsafe(0);this._secCache=h.allocUnsafe(0);this._decrypt=m;this._len=this._alen=0;this._mode=a;this._authTag=null;this._called=!1}var d=k("./aes"),h=k("safe-buffer").Buffer,g=k("cipher-base");a=k("inherits");var e=k("./ghash"),m=k("buffer-xor"),p=k("./incr32");a(c,g);c.prototype._update=function(a){if(!this._called&&this._alen){var b= -16-this._alen%16;16>b&&(b=h.alloc(b,0),this._ghash.update(b))}this._called=!0;b=this._mode.encrypt(this,a);this._decrypt?this._ghash.update(a):this._ghash.update(b);this._len+=a.length;return b};c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var a=m(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),b;if(b=this._decrypt){b=this._authTag;var c=0;a.length!==b.length&&c++;for(var e=Math.min(a.length, -b.length),d=0;d>>24]^g[k>>>16&255]^h[m>>>8&255]^c[n&255]^b[u++],p=e[k>>>24]^g[m>>>16&255]^h[n>>>8&255]^c[l&255]^b[u++],r=e[m>>>24]^g[n>>>16&255]^h[l>>>8&255]^c[k&255]^b[u++],n=e[n>>>24]^g[l>>>16&255]^h[k>>>8&255]^c[m&255]^b[u++],l=a,k=p,m=r;a=(f[l>>>24]<<24|f[k>>>16&255]<<16|f[m>>>8&255]<<8|f[n&255])^b[u++];p=(f[k>>>24]<<24|f[m>>>16&255]<<16|f[n>>>8&255]<<8|f[l&255])^b[u++];r= +(f[m>>>24]<<24|f[n>>>16&255]<<16|f[l>>>8&255]<<8|f[k&255])^b[u++];n=(f[n>>>24]<<24|f[l>>>16&255]<<16|f[k>>>8&255]<<8|f[m&255])^b[u++];return[a>>>0,p>>>0,r>>>0,n>>>0]}function g(a){this._key=c(a);this._reset()}var f=k("safe-buffer").Buffer,m=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var a=Array(256),b=0;256>b;b++)a[b]=128>b?b<<1:b<<1^283;for(var b=[],c=[],f=[[],[],[],[]],d=[[],[],[],[]],g=0,h=0,k=0;256>k;++k){var m=h^h<<1^h<<2^h<<3^h<<4,m=m>>>8^m&255^99;b[g]=m;c[m]=g;var p=a[g],v=a[p],w=a[v], +x=257*a[m]^16843008*m;f[0][g]=x<<24|x>>>8;f[1][g]=x<<16|x>>>16;f[2][g]=x<<8|x>>>24;f[3][g]=x;x=16843009*w^65537*v^257*p^16843008*g;d[0][m]=x<<24|x>>>8;d[1][m]=x<<16|x>>>16;d[2][m]=x<<8|x>>>24;d[3][m]=x;0===g?g=h=1:(g=p^a[a[a[w^p]]],h^=a[a[h]])}return{SBOX:b,INV_SBOX:c,SUB_MIX:f,INV_SUB_MIX:d}}();g.blockSize=16;g.keySize=32;g.prototype.blockSize=g.blockSize;g.prototype.keySize=g.keySize;g.prototype._reset=function(){for(var a=this._key,b=a.length,c=b+6,f=4*(c+1),d=[],g=0;g>>24,a=p.SBOX[a>>>24]<<24|p.SBOX[a>>>16&255]<<16|p.SBOX[a>>>8&255]<<8|p.SBOX[a&255],a^=m[g/b|0]<<24):6>>24]<<24|p.SBOX[a>>>16&255]<<16|p.SBOX[a>>>8&255]<<8|p.SBOX[a&255]),d[g]=d[g-b]^a;b=[];for(g=0;gg||4>=a?h:p.INV_SUB_MIX[0][p.SBOX[h>>>24]]^p.INV_SUB_MIX[1][p.SBOX[h>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[h>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[h&255]]}this._nRounds=c;this._keySchedule=d;this._invKeySchedule= +b};g.prototype.encryptBlockRaw=function(a){a=c(a);return h(a,this._keySchedule,p.SUB_MIX,p.SBOX,this._nRounds)};g.prototype.encryptBlock=function(a){a=this.encryptBlockRaw(a);var b=f.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[1],4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[3],12);return b};g.prototype.decryptBlock=function(a){a=c(a);var b=a[1];a[1]=a[3];a[3]=b;a=h(a,this._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,this._nRounds);b=f.allocUnsafe(16);b.writeUInt32BE(a[0],0);b.writeUInt32BE(a[3], +4);b.writeUInt32BE(a[2],8);b.writeUInt32BE(a[1],12);return b};g.prototype.scrub=function(){d(this._keySchedule);d(this._invKeySchedule);d(this._key)};b.exports.AES=g},{"safe-buffer":160}],38:[function(k,b,a){function c(a,b,c,k){g.call(this);var e=h.alloc(4,0);this._cipher=new d.AES(b);e=this._cipher.encryptBlock(e);this._ghash=new f(e);b=c;if(12===b.length)this._finID=h.concat([b,h.from([0,0,0,1])]),c=h.concat([b,h.from([0,0,0,2])]);else{c=new f(e);var e=b.length,l=e%16;c.update(b);l&&c.update(h.alloc(16- +l,0));c.update(h.alloc(8,0));b=8*e;e=h.alloc(8);e.writeUIntBE(b,0,8);c.update(e);this._finID=c.state;c=h.from(this._finID);p(c)}this._prev=h.from(c);this._cache=h.allocUnsafe(0);this._secCache=h.allocUnsafe(0);this._decrypt=k;this._len=this._alen=0;this._mode=a;this._authTag=null;this._called=!1}var d=k("./aes"),h=k("safe-buffer").Buffer,g=k("cipher-base");a=k("inherits");var f=k("./ghash"),m=k("buffer-xor"),p=k("./incr32");a(c,g);c.prototype._update=function(a){if(!this._called&&this._alen){var b= +16-this._alen%16;16>b&&(b=h.alloc(b,0),this._ghash.update(b))}this._called=!0;b=this._mode.encrypt(this,a);this._decrypt?this._ghash.update(a):this._ghash.update(b);this._len+=a.length;return b};c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var a=m(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),b;if(b=this._decrypt){b=this._authTag;var c=0;a.length!==b.length&&c++;for(var f=Math.min(a.length, +b.length),d=0;d>>0,0);b.writeUInt32BE(a[1]>>>0,4);b.writeUInt32BE(a[2]>>>0,8);b.writeUInt32BE(a[3]>>>0, -12);return b}function d(a){this.h=a;this.state=h.alloc(16,0);this.cache=h.allocUnsafe(0)}var h=k("safe-buffer").Buffer,g=h.alloc(16,0);d.prototype.ghash=function(a){for(var b=-1;++b++g;){if(d=0!==(this.state[~~(g/8)]&1<<7-g%8))b[0]^=a[0],b[1]^=a[1],b[2]^=a[2],b[3]^=a[3];f=0!==(a[3]&1);for(d=3;0< -d;d--)a[d]=a[d]>>>1|(a[d-1]&1)<<31;a[0]>>>=1;f&&(a[0]^=-520093696)}this.state=c(b)};d.prototype.update=function(a){for(this.cache=h.concat([this.cache,a]);16<=this.cache.length;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};d.prototype.final=function(a,b){this.cache.length&&this.ghash(h.concat([this.cache,g],16));this.ghash(c([0,a,0,b]));return this.state};b.exports=d},{"safe-buffer":160}],43:[function(k,b,a){b.exports=function(a){for(var b=a.length,c;b--;)if(c=a.readUInt8(b), -255===c)a.writeUInt8(0,b);else{c++;a.writeUInt8(c,b);break}}},{}],44:[function(k,b,a){var c=k("buffer-xor");a.encrypt=function(a,b){b=c(b,a._prev);a._prev=a._cipher.encryptBlock(b);return a._prev};a.decrypt=function(a,b){var d=a._prev;a._prev=b;a=a._cipher.decryptBlock(b);return c(a,d)}},{"buffer-xor":64}],45:[function(k,b,a){function c(a,b,c){var e=b.length,f=h(b,a._cache);a._cache=a._cache.slice(e);a._prev=d.concat([a._prev,c?b:f]);return f}var d=k("safe-buffer").Buffer,h=k("buffer-xor");a.encrypt= -function(a,b,h){for(var e=d.allocUnsafe(0),f;b.length;)if(0===a._cache.length&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=d.allocUnsafe(0)),a._cache.length<=b.length)f=a._cache.length,e=d.concat([e,c(a,b.slice(0,f),h)]),b=b.slice(f);else{e=d.concat([e,c(a,b,h)]);break}return e}},{"buffer-xor":64,"safe-buffer":160}],46:[function(k,b,a){var c=k("safe-buffer").Buffer;a.encrypt=function(a,b,g){for(var e=b.length,d=c.allocUnsafe(e),h=-1;++h++y;){u= -l._cipher.encryptBlock(l._prev);q=k&1<<7-y?128:0;z=u[0]^q;C+=(z&128)>>y%8;u=l;var D=l._prev;q=r?q:z;z=D.length;for(var v=-1,w=c.allocUnsafe(D.length),D=c.concat([D,c.from([q])]);++v>7;u._prev=w}d[f]=C}return d}},{"safe-buffer":160}],47:[function(k,b,a){(function(b){a.encrypt=function(a,c,g){for(var e=c.length,d=b.allocUnsafe(e),h=-1;++h++g;){if(d=0!==(this.state[~~(g/8)]&1<<7-g%8))b[0]^=a[0],b[1]^=a[1],b[2]^=a[2],b[3]^=a[3];e=0!==(a[3]&1);for(d=3;0< +d;d--)a[d]=a[d]>>>1|(a[d-1]&1)<<31;a[0]>>>=1;e&&(a[0]^=-520093696)}this.state=c(b)};d.prototype.update=function(a){for(this.cache=h.concat([this.cache,a]);16<=this.cache.length;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};d.prototype.final=function(a,b){this.cache.length&&this.ghash(h.concat([this.cache,g],16));this.ghash(c([0,a,0,b]));return this.state};b.exports=d},{"safe-buffer":160}],43:[function(k,b,a){b.exports=function(a){for(var b=a.length,c;b--;)if(c=a.readUInt8(b), +255===c)a.writeUInt8(0,b);else{c++;a.writeUInt8(c,b);break}}},{}],44:[function(k,b,a){var c=k("buffer-xor");a.encrypt=function(a,b){b=c(b,a._prev);a._prev=a._cipher.encryptBlock(b);return a._prev};a.decrypt=function(a,b){var d=a._prev;a._prev=b;a=a._cipher.decryptBlock(b);return c(a,d)}},{"buffer-xor":64}],45:[function(k,b,a){function c(a,b,c){var f=b.length,e=h(b,a._cache);a._cache=a._cache.slice(f);a._prev=d.concat([a._prev,c?b:e]);return e}var d=k("safe-buffer").Buffer,h=k("buffer-xor");a.encrypt= +function(a,b,h){for(var f=d.allocUnsafe(0),e;b.length;)if(0===a._cache.length&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=d.allocUnsafe(0)),a._cache.length<=b.length)e=a._cache.length,f=d.concat([f,c(a,b.slice(0,e),h)]),b=b.slice(e);else{f=d.concat([f,c(a,b,h)]);break}return f}},{"buffer-xor":64,"safe-buffer":160}],46:[function(k,b,a){var c=k("safe-buffer").Buffer;a.encrypt=function(a,b,g){for(var f=b.length,d=c.allocUnsafe(f),h=-1;++h++y;){u= +l._cipher.encryptBlock(l._prev);q=k&1<<7-y?128:0;z=u[0]^q;C+=(z&128)>>y%8;u=l;var D=l._prev;q=r?q:z;z=D.length;for(var v=-1,w=c.allocUnsafe(D.length),D=c.concat([D,c.from([q])]);++v>7;u._prev=w}d[e]=C}return d}},{"safe-buffer":160}],47:[function(k,b,a){(function(b){a.encrypt=function(a,c,g){for(var f=c.length,d=b.allocUnsafe(f),h=-1;++h=a.cmpn(0))throw Error("invalid sig");if(a.cmp(b)>=b)throw Error("invalid sig");}var h=k("bn.js"),g=k("elliptic").ec,e=k("parse-asn1"),m=k("./curves.json");b.exports=function(b,f,d,k,r){d=e(d); -if("ec"===d.type){if("ecdsa"!==k&&"ecdsa/rsa"!==k)throw Error("wrong public key type");k=m[d.data.algorithm.curve.join(".")];if(!k)throw Error("unknown curve "+d.data.algorithm.curve.join("."));return(new g(k)).verify(f,b,d.data.subjectPrivateKey.data)}if("dsa"===d.type){if("dsa"!==k)throw Error("wrong public key type");k=d.data.p;r=d.data.q;var l=d.data.g;d=d.data.pub_key;var n=e.signature.decode(b,"der");b=n.s;n=n.r;c(b,r);c(n,r);var p=h.mont(k);b=b.invm(r);return 0===l.toRed(p).redPow((new h(f)).mul(b).mod(r)).fromRed().mul(d.toRed(p).redPow(n.mul(b).mod(r)).fromRed()).mod(k).mod(r).cmp(n)}if("rsa"!== -k&&"ecdsa/rsa"!==k)throw Error("wrong public key type");f=a.concat([r,f]);r=d.modulus.byteLength();k=[1];for(l=0;f.length+k.length+2l?1:0;r=Math.min(b.length,k.length);b.length!==k.length&&(d=1);for(n=-1;++nt)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=d.prototype;return a}function d(a,b,c){if("number"===typeof a){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); -return e(a)}return h(a,b,c)}function h(a,b,e){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(I(a)){if(0>b||a.byteLengtha)throw new RangeError('"size" argument must not be negative');}function e(a){g(a);return c(0>a?0:f(a)|0)}function m(a){for(var b=0>a.length?0:f(a.length)|0,e=c(b),d=0;d=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return a|0}function l(a,b){if(d.isBuffer(a))return a.length;if("function"=== +a.id;this._signType=a.sign}function g(a){return new c(a)}function f(a){return new h(a)}var m=k("create-hash"),p=k("stream"),e=k("inherits"),l=k("./sign"),n=k("./verify"),r=k("./algorithms.json");Object.keys(r).forEach(function(b){r[b].id=new a(r[b].id,"hex");r[b.toLowerCase()]=r[b]});e(c,p.Writable);c.prototype._write=function(a,b,c){this._hash.update(a);c()};c.prototype.update=function(b,c){"string"===typeof b&&(b=new a(b,c));this._hash.update(b);return this};c.prototype.sign=function(a,b){this.end(); +var c=this._hash.digest();a=l(c,a,this._hashType,this._signType,this._tag);return b?a.toString(b):a};e(h,p.Writable);h.prototype._write=function(a,b,c){this._hash.update(a);c()};h.prototype.update=function(b,c){"string"===typeof b&&(b=new a(b,c));this._hash.update(b);return this};h.prototype.verify=function(b,c,e){"string"===typeof c&&(c=new a(c,e));this.end();e=this._hash.digest();return n(c,e,b,this._signType,this._tag)};b.exports={Sign:g,Verify:f,createSign:g,createVerify:f}}).call(this,k("buffer").Buffer)}, +{"./algorithms.json":59,"./sign":62,"./verify":63,buffer:65,"create-hash":69,inherits:119,stream:169}],62:[function(k,b,a){(function(a){function c(b,c,e,d){b=new a(b.toArray());if(b.length=a.cmpn(0))throw Error("invalid sig");if(a.cmp(b)>=b)throw Error("invalid sig");}var h=k("bn.js"),g=k("elliptic").ec,f=k("parse-asn1"),m=k("./curves.json");b.exports=function(b,e,d,k,r){d=f(d); +if("ec"===d.type){if("ecdsa"!==k&&"ecdsa/rsa"!==k)throw Error("wrong public key type");k=m[d.data.algorithm.curve.join(".")];if(!k)throw Error("unknown curve "+d.data.algorithm.curve.join("."));return(new g(k)).verify(e,b,d.data.subjectPrivateKey.data)}if("dsa"===d.type){if("dsa"!==k)throw Error("wrong public key type");k=d.data.p;r=d.data.q;var l=d.data.g;d=d.data.pub_key;var n=f.signature.decode(b,"der");b=n.s;n=n.r;c(b,r);c(n,r);var p=h.mont(k);b=b.invm(r);return 0===l.toRed(p).redPow((new h(e)).mul(b).mod(r)).fromRed().mul(d.toRed(p).redPow(n.mul(b).mod(r)).fromRed()).mod(k).mod(r).cmp(n)}if("rsa"!== +k&&"ecdsa/rsa"!==k)throw Error("wrong public key type");e=a.concat([r,e]);r=d.modulus.byteLength();k=[1];for(l=0;e.length+k.length+2l?1:0;r=Math.min(b.length,k.length);b.length!==k.length&&(d=1);for(n=-1;++nt)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=d.prototype;return a}function d(a,b,c){if("number"===typeof a){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); +return f(a)}return h(a,b,c)}function h(a,b,e){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(I(a)){if(0>b||a.byteLengtha)throw new RangeError('"size" argument must not be negative');}function f(a){g(a);return c(0>a?0:e(a)|0)}function m(a){for(var b=0>a.length?0:e(a.length)|0,f=c(b),d=0;d=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return a|0}function l(a,b){if(d.isBuffer(a))return a.length;if("function"=== typeof ArrayBuffer.isView&&ArrayBuffer.isView(a)||I(a))return a.byteLength;"string"!==typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var e=!1;;)switch(b){case "ascii":case "latin1":case "binary":return c;case "utf8":case "utf-8":case void 0:return A(a).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*c;case "hex":return c>>>1;case "base64":return E.toByteArray(x(a)).length;default:if(e)return A(a).length;b=(""+b).toLowerCase();e=!0}}function n(a,b,c){var e=!1;if(void 0=== b||0>b)b=0;if(b>this.length)return"";if(void 0===c||c>this.length)c=this.length;if(0>=c)return"";c>>>=0;b>>>=0;if(c<=b)return"";for(a||(a="utf8");;)switch(a){case "hex":a=b;b=c;c=this.length;if(!a||0>a)a=0;if(!b||0>b||b>c)b=c;e="";for(c=a;ce?"0"+e.toString(16):e.toString(16),e=a+e;return e;case "utf8":case "utf-8":return C(this,b,c);case "ascii":a="";for(c=Math.min(this.length,c);ba.length)thro d.push(c)}else if(2048>c){if(0>(b-=2))break;d.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;d.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;d.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error("Invalid code point");}return d}function F(a){for(var b=[],c=0;c=b.length||f>=a.length);++f)b[f+c]=a[f];return f}function I(a){return a instanceof ArrayBuffer|| null!=a&&null!=a.constructor&&"ArrayBuffer"===a.constructor.name&&"number"===typeof a.byteLength}var E=k("base64-js"),H=k("ieee754");a.Buffer=d;a.SlowBuffer=function(a){+a!=a&&(a=0);return d.alloc(+a)};a.INSPECT_MAX_BYTES=50;var t=2147483647;a.kMaxLength=t;d.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1);a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===a.foo()}catch(ea){return!1}}();d.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error|| console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&($jscomp.initSymbol(),Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));d.poolSize=8192;d.from=function(a,b,c){return h(a,b,c)};d.prototype.__proto__=Uint8Array.prototype; -d.__proto__=Uint8Array;d.alloc=function(a,b,e){g(a);a=0>=a?c(a):void 0!==b?"string"===typeof e?c(a).fill(b,e):c(a).fill(b):c(a);return a};d.allocUnsafe=function(a){return e(a)};d.allocUnsafeSlow=function(a){return e(a)};d.isBuffer=function(a){return null!=a&&!0===a._isBuffer};d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,e=b.length,f=0,g=Math.min(c,e);f=a?c(a):void 0!==b?"string"===typeof e?c(a).fill(b,e):c(a).fill(b):c(a);return a};d.allocUnsafe=function(a){return f(a)};d.allocUnsafeSlow=function(a){return f(a)};d.isBuffer=function(a){return null!=a&&!0===a._isBuffer};d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,e=b.length,f=0,g=Math.min(c,e);f>>2),h=0,f=0;h>5]|=128<>>9<<4)+14]=b;b=1732584193;for(var c=-271733879,f=-1732584194,l=271733878,k=0;k>>32-d,c)}function h(a,b,c,e,g,h,k){return d(b&c|~b&e,a,b,g,h,k)}function g(a,b,c,e,g,h,k){return d(b&e|c&~e,a,b,g,h,k)}function e(a,b,c,e,g,h,k){return d(c^(b|~e),a,b,g,h,k)}function m(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}var p=k("./make-hash");b.exports=function(a){return p(a,c)}},{"./make-hash":70}],72:[function(k,b,a){function c(a,b){h.call(this,"digest"); -"string"===typeof b&&(b=g.from(b));var c="sha512"===a||"sha384"===a?128:64;this._alg=a;this._key=b;b.length>c?b=("rmd160"===a?new m:p(a)).update(b).digest():b.length>>2),h=0,e=0;h>5]|=128<>>9<<4)+14]=b;b=1732584193;for(var c=-271733879,e=-1732584194,l=271733878,k=0;k>>32-d,c)}function h(a,b,c,f,g,h,k){return d(b&c|~b&f,a,b,g,h,k)}function g(a,b,c,f,g,h,k){return d(b&f|c&~f,a,b,g,h,k)}function f(a,b,c,f,g,h,k){return d(c^(b|~f),a,b,g,h,k)}function m(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}var p=k("./make-hash");b.exports=function(a){return p(a,c)}},{"./make-hash":70}],72:[function(k,b,a){function c(a,b){h.call(this,"digest"); +"string"===typeof b&&(b=g.from(b));var c="sha512"===a||"sha384"===a?128:64;this._alg=a;this._key=b;b.length>c?b=("rmd160"===a?new m:p(a)).update(b).digest():b.lengthb.length&&(b=d.concat([b,g],64));a=this._ipad=d.allocUnsafe(64);for(var c=this._opad=d.allocUnsafe(64),e=0;64>e;e++)a[e]=b[e]^54,c[e]=b[e]^92;this._hash=[a]}a=k("inherits");var d=k("safe-buffer").Buffer,h=k("cipher-base"),g=d.alloc(128);a(c,h);c.prototype._update=function(a){this._hash.push(a)};c.prototype._final=function(){var a=this._alg(d.concat(this._hash));return this._alg(d.concat([this._opad,a]))};b.exports=c}, {"cipher-base":66,inherits:119,"safe-buffer":160}],74:[function(k,b,a){a.randomBytes=a.rng=a.pseudoRandomBytes=a.prng=k("randombytes");a.createHash=a.Hash=k("create-hash");a.createHmac=a.Hmac=k("create-hmac");b=k("browserify-sign/algos");b=Object.keys(b);var c="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(b);a.getHashes=function(){return c};b=k("pbkdf2");a.pbkdf2=b.pbkdf2;a.pbkdf2Sync=b.pbkdf2Sync;b=k("browserify-cipher");a.Cipher=b.Cipher;a.createCipher=b.createCipher;a.Cipheriv= b.Cipheriv;a.createCipheriv=b.createCipheriv;a.Decipher=b.Decipher;a.createDecipher=b.createDecipher;a.Decipheriv=b.Decipheriv;a.createDecipheriv=b.createDecipheriv;a.getCiphers=b.getCiphers;a.listCiphers=b.listCiphers;b=k("diffie-hellman");a.DiffieHellmanGroup=b.DiffieHellmanGroup;a.createDiffieHellmanGroup=b.createDiffieHellmanGroup;a.getDiffieHellman=b.getDiffieHellman;a.createDiffieHellman=b.createDiffieHellman;a.DiffieHellman=b.DiffieHellman;b=k("browserify-sign");a.createSign=b.createSign;a.Sign= b.Sign;a.createVerify=b.createVerify;a.Verify=b.Verify;a.createECDH=k("create-ecdh");k=k("public-encrypt");a.publicEncrypt=k.publicEncrypt;a.privateEncrypt=k.privateEncrypt;a.publicDecrypt=k.publicDecrypt;a.privateDecrypt=k.privateDecrypt;a.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify");};a.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4, DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":54,"browserify-sign":61,"browserify-sign/algos":58,"create-ecdh":68,"create-hash":69,"create-hmac":72,"diffie-hellman":81,pbkdf2:132,"public-encrypt":139,randombytes:145}],75:[function(k,b,a){a.utils=k("./des/utils"); -a.Cipher=k("./des/cipher");a.DES=k("./des/des");a.CBC=k("./des/cbc");a.EDE=k("./des/ede")},{"./des/cbc":76,"./des/cipher":77,"./des/des":78,"./des/ede":79,"./des/utils":80}],76:[function(k,b,a){function c(a){d.equal(a.length,8,"Invalid IV length");this.iv=Array(8);for(var b=0;b>>1],c=g.r28shl(c,f);b=g.r28shl(b,f);g.pc2(c,b,a.keys,e)}};d.prototype._update=function(a,b,c,e){var f=this._desState, -d=g.readUInt32BE(a,b);a=g.readUInt32BE(a,b+4);g.ip(d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];"encrypt"===this.type?this._encrypt(f,d,a,f.tmp,0):this._decrypt(f,d,a,f.tmp,0);d=f.tmp[0];a=f.tmp[1];g.writeUInt32BE(c,d,e);g.writeUInt32BE(c,a,e+4)};d.prototype._pad=function(a,b){for(var c=a.length-b;b>>0;b=l}g.rip(c,b,e,d)};d.prototype._decrypt=function(a,b,c,e,d){for(var f=a.keys.length-2;0<=f;f-=2){var h=a.keys[f],l=a.keys[f+1];g.expand(c,a.tmp,0);h^=a.tmp[0];l^=a.tmp[1];h=g.substitute(h,l);h=g.permute(h);l=c;c=(b^h)>>>0;b=l}g.rip(c,b,e,d)}},{"../des":75,inherits:119,"minimalistic-assert":125}],79:[function(k,b,a){function c(a,b){h.equal(b.length,24, -"Invalid key length");var c=b.slice(0,8),d=b.slice(8,16);b=b.slice(16,24);this.ciphers="encrypt"===a?[e.create({type:"encrypt",key:c}),e.create({type:"decrypt",key:d}),e.create({type:"encrypt",key:b})]:[e.create({type:"decrypt",key:b}),e.create({type:"encrypt",key:d}),e.create({type:"decrypt",key:c})]}function d(a){g.call(this,a);this._edeState=new c(this.type,this.options.key)}var h=k("minimalistic-assert");a=k("inherits");k=k("../des");var g=k.Cipher,e=k.DES;a(d,g);b.exports=d;d.create=function(a){return new d(a)}; -d.prototype._update=function(a,b,c,e){var f=this._edeState;f.ciphers[0]._update(a,b,c,e);f.ciphers[1]._update(c,e,c,e);f.ciphers[2]._update(c,e,c,e)};d.prototype._pad=e.prototype._pad;d.prototype._unpad=e.prototype._unpad},{"../des":75,inherits:119,"minimalistic-assert":125}],80:[function(k,b,a){a.readUInt32BE=function(a,b){return(a[0+b]<<24|a[1+b]<<16|a[2+b]<<8|a[3+b])>>>0};a.writeUInt32BE=function(a,b,c){a[0+c]=b>>>24;a[1+c]=b>>>16&255;a[2+c]=b>>>8&255;a[3+c]=b&255};a.ip=function(a,b,c,d){for(var e= -0,g=0,h=6;0<=h;h-=2){for(var k=0;24>=k;k+=8)e<<=1,e|=b>>>k+h&1;for(k=0;24>=k;k+=8)e<<=1,e|=a>>>k+h&1}for(h=6;0<=h;h-=2){for(k=1;25>=k;k+=8)g<<=1,g|=b>>>k+h&1;for(k=1;25>=k;k+=8)g<<=1,g|=a>>>k+h&1}c[d+0]=e>>>0;c[d+1]=g>>>0};a.rip=function(a,b,c,d){for(var e=0,g=0,h=0;4>h;h++)for(var k=24;0<=k;k-=8)e<<=1,e|=b>>>k+h&1,e<<=1,e|=a>>>k+h&1;for(h=4;8>h;h++)for(k=24;0<=k;k-=8)g<<=1,g|=b>>>k+h&1,g<<=1,g|=a>>>k+h&1;c[d+0]=e>>>0;c[d+1]=g>>>0};a.pc1=function(a,b,c,d){for(var e=0,g=0,h=7;5<=h;h--){for(var k=0;24>= -k;k+=8)e<<=1,e|=b>>k+h&1;for(k=0;24>=k;k+=8)e<<=1,e|=a>>k+h&1}for(k=0;24>=k;k+=8)e<<=1,e|=b>>k+h&1;for(h=1;3>=h;h++){for(k=0;24>=k;k+=8)g<<=1,g|=b>>k+h&1;for(k=0;24>=k;k+=8)g<<=1,g|=a>>k+h&1}for(k=0;24>=k;k+=8)g<<=1,g|=a>>k+h&1;c[d+0]=e>>>0;c[d+1]=g>>>0};a.r28shl=function(a,b){return a<>>28-b};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];a.pc2=function(a,b,d,h){for(var e=0,g=0,k=c.length>>>1,m= -0;m>>c[m]&1;for(m=k;m>>c[m]&1;d[h+0]=e>>>0;d[h+1]=g>>>0};a.expand=function(a,b,c){var e,f=0;e=(a&1)<<5|a>>>27;for(var d=23;15<=d;d-=4)e<<=6,e|=a>>>d&63;for(d=11;3<=d;d-=4)f|=a>>>d&63,f<<=6;b[c+0]=e>>>0;b[c+1]=(f|(a&31)<<1|a>>>31)>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0, +this.bufferOff))return[];var a=Array(this.blockSize);this._update(this.buffer,0,a,0);return a};c.prototype._unpad=function(a){return a};c.prototype._finalDecrypt=function(){d.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var a=Array(this.blockSize);this._flushBuffer(a,0);return this._unpad(a)}},{"minimalistic-assert":125}],78:[function(k,b,a){function c(){this.tmp=Array(2);this.keys=null}function d(a){f.call(this,a);var b=new c;this._desState=b;this.deriveKeys(b,a.key)}var h=k("minimalistic-assert"); +a=k("inherits");k=k("../des");var g=k.utils,f=k.Cipher;a(d,f);b.exports=d;d.create=function(a){return new d(a)};var m=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(a,b){a.keys=Array(32);h.equal(b.length,this.blockSize,"Invalid key length");var c=g.readUInt32BE(b,0);b=g.readUInt32BE(b,4);g.pc1(c,b,a.tmp,0);c=a.tmp[0];b=a.tmp[1];for(var e=0;e>>1],c=g.r28shl(c,f);b=g.r28shl(b,f);g.pc2(c,b,a.keys,e)}};d.prototype._update=function(a,b,c,f){var e=this._desState, +d=g.readUInt32BE(a,b);a=g.readUInt32BE(a,b+4);g.ip(d,a,e.tmp,0);d=e.tmp[0];a=e.tmp[1];"encrypt"===this.type?this._encrypt(e,d,a,e.tmp,0):this._decrypt(e,d,a,e.tmp,0);d=e.tmp[0];a=e.tmp[1];g.writeUInt32BE(c,d,f);g.writeUInt32BE(c,a,f+4)};d.prototype._pad=function(a,b){for(var c=a.length-b;b>>0;b=l}g.rip(c,b,f,d)};d.prototype._decrypt=function(a,b,c,f,d){for(var e=a.keys.length-2;0<=e;e-=2){var h=a.keys[e],l=a.keys[e+1];g.expand(c,a.tmp,0);h^=a.tmp[0];l^=a.tmp[1];h=g.substitute(h,l);h=g.permute(h);l=c;c=(b^h)>>>0;b=l}g.rip(c,b,f,d)}},{"../des":75,inherits:119,"minimalistic-assert":125}],79:[function(k,b,a){function c(a,b){h.equal(b.length,24, +"Invalid key length");var c=b.slice(0,8),d=b.slice(8,16);b=b.slice(16,24);this.ciphers="encrypt"===a?[f.create({type:"encrypt",key:c}),f.create({type:"decrypt",key:d}),f.create({type:"encrypt",key:b})]:[f.create({type:"decrypt",key:b}),f.create({type:"encrypt",key:d}),f.create({type:"decrypt",key:c})]}function d(a){g.call(this,a);this._edeState=new c(this.type,this.options.key)}var h=k("minimalistic-assert");a=k("inherits");k=k("../des");var g=k.Cipher,f=k.DES;a(d,g);b.exports=d;d.create=function(a){return new d(a)}; +d.prototype._update=function(a,b,c,f){var e=this._edeState;e.ciphers[0]._update(a,b,c,f);e.ciphers[1]._update(c,f,c,f);e.ciphers[2]._update(c,f,c,f)};d.prototype._pad=f.prototype._pad;d.prototype._unpad=f.prototype._unpad},{"../des":75,inherits:119,"minimalistic-assert":125}],80:[function(k,b,a){a.readUInt32BE=function(a,b){return(a[0+b]<<24|a[1+b]<<16|a[2+b]<<8|a[3+b])>>>0};a.writeUInt32BE=function(a,b,c){a[0+c]=b>>>24;a[1+c]=b>>>16&255;a[2+c]=b>>>8&255;a[3+c]=b&255};a.ip=function(a,b,c,d){for(var e= +0,f=0,g=6;0<=g;g-=2){for(var h=0;24>=h;h+=8)e<<=1,e|=b>>>h+g&1;for(h=0;24>=h;h+=8)e<<=1,e|=a>>>h+g&1}for(g=6;0<=g;g-=2){for(h=1;25>=h;h+=8)f<<=1,f|=b>>>h+g&1;for(h=1;25>=h;h+=8)f<<=1,f|=a>>>h+g&1}c[d+0]=e>>>0;c[d+1]=f>>>0};a.rip=function(a,b,c,d){for(var e=0,f=0,g=0;4>g;g++)for(var h=24;0<=h;h-=8)e<<=1,e|=b>>>h+g&1,e<<=1,e|=a>>>h+g&1;for(g=4;8>g;g++)for(h=24;0<=h;h-=8)f<<=1,f|=b>>>h+g&1,f<<=1,f|=a>>>h+g&1;c[d+0]=e>>>0;c[d+1]=f>>>0};a.pc1=function(a,b,c,d){for(var e=0,f=0,g=7;5<=g;g--){for(var h=0;24>= +h;h+=8)e<<=1,e|=b>>h+g&1;for(h=0;24>=h;h+=8)e<<=1,e|=a>>h+g&1}for(h=0;24>=h;h+=8)e<<=1,e|=b>>h+g&1;for(g=1;3>=g;g++){for(h=0;24>=h;h+=8)f<<=1,f|=b>>h+g&1;for(h=0;24>=h;h+=8)f<<=1,f|=a>>h+g&1}for(h=0;24>=h;h+=8)f<<=1,f|=a>>h+g&1;c[d+0]=e>>>0;c[d+1]=f>>>0};a.r28shl=function(a,b){return a<>>28-b};var c=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];a.pc2=function(a,b,d,h){for(var e=0,f=0,g=c.length>>>1,k= +0;k>>c[k]&1;for(k=g;k>>c[k]&1;d[h+0]=e>>>0;d[h+1]=f>>>0};a.expand=function(a,b,c){var f,e=0;f=(a&1)<<5|a>>>27;for(var d=23;15<=d;d-=4)f<<=6,f|=a>>>d&63;for(d=11;3<=d;d-=4)e|=a>>>d&63,e<<=6;b[c+0]=f>>>0;b[c+1]=(e|(a&31)<<1|a>>>31)>>>0};var d=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0, 9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2, 8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];a.substitute= -function(a,b){for(var c=0,e=0;4>e;e++)var f=a>>>18-6*e&63,f=d[64*e+f],c=c<<4,c=c|f;for(e=0;4>e;e++)f=b>>>18-6*e&63,f=d[256+64*e+f],c<<=4,c|=f;return c>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];a.permute=function(a){for(var b=0,c=0;c>>h[c]&1;return b>>>0};a.padSplit=function(a,b,c){for(a=a.toString(2);a.lengthf;f++)var e=a>>>18-6*f&63,e=d[64*f+e],c=c<<4,c=c|e;for(f=0;4>f;f++)e=b>>>18-6*f&63,e=d[256+64*f+e],c<<=4,c|=e;return c>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];a.permute=function(a){for(var b=0,c=0;c>>h[c]&1;return b>>>0};a.padSplit=function(a,b,c){for(a=a.toString(2);a.lengthe;e+=2){for(var f=Math.ceil(Math.sqrt(e)),d=0;da)return 2===b||5===b?new e([140,123]):new e([140,39]);b=new e(b);for(var h,k;;){for(h=new e(g(Math.ceil(a/8)));h.bitLength()>a;)h.ishrn(1);h.isEven()&&h.iadd(f);h.testn(1)||h.iadd(l);if(!b.cmp(l))for(;h.mod(m).cmp(y);)h.iadd(C);else if(!b.cmp(n))for(;h.mod(r).cmp(u);)h.iadd(C);k=h.shrn(1);if(c(k)&&c(h)&&d(k)&&d(h)&&p.test(k)&&p.test(h))return h}}var g=k("randombytes");b.exports=h;h.simpleSieve=c;h.fermatTest=d;var e=k("bn.js"), -m=new e(24),p=new (k("miller-rabin")),f=new e(1),l=new e(2),n=new e(5);new e(16);new e(8);var r=new e(10),u=new e(3);new e(7);var y=new e(11),C=new e(4);new e(12);var q=null},{"bn.js":34,"miller-rabin":124,randombytes:145}],84:[function(k,b,a){b.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"}, +(this.setPublicKey=c,this.setPrivateKey=h):this._primeCode=8}function f(b,c){b=new a(b.toArray());return c?b.toString(c):b}var m=k("bn.js"),p=new (k("miller-rabin")),e=new m(24),l=new m(11),n=new m(10),r=new m(3),u=new m(7),y=k("./generatePrime"),C=k("randombytes");b.exports=g;var q={};Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){if("number"!==typeof this._primeCode){var a;var b=this.__prime,c=this.__gen.toString("hex");a=[c,b.toString(16)].join("_");if(a in q)a=q[a]; +else{var f=0;if(!b.isEven()&&y.simpleSieve&&y.fermatTest(b)&&p.test(b))switch(p.test(b.shrn(1))||(f+=2),c){case "02":b.mod(e).cmp(l)&&(f+=8);break;case "05":b=b.mod(n);b.cmp(r)&&b.cmp(u)&&(f+=8);break;default:f+=4}else f+=1,f="02"===c||"05"===c?f+8:f+4;a=q[a]=f}this._primeCode=a}return this._primeCode}});g.prototype.generateKeys=function(){this._priv||(this._priv=new m(C(this._primeLen)));this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed();return this.getPublicKey()};g.prototype.computeSecret= +function(b){b=new m(b);b=b.toRed(this._prime);b=b.redPow(this._priv).fromRed();b=new a(b.toArray());var c=this.getPrime();b.lengthe;e+=2){for(var f=Math.ceil(Math.sqrt(e)),d=0;da)return 2===b||5===b?new f([140,123]):new f([140,39]);b=new f(b);for(var h,k;;){for(h=new f(g(Math.ceil(a/8)));h.bitLength()>a;)h.ishrn(1);h.isEven()&&h.iadd(e);h.testn(1)||h.iadd(l);if(!b.cmp(l))for(;h.mod(m).cmp(y);)h.iadd(C);else if(!b.cmp(n))for(;h.mod(r).cmp(u);)h.iadd(C);k=h.shrn(1);if(c(k)&&c(h)&&d(k)&&d(h)&&p.test(k)&&p.test(h))return h}}var g=k("randombytes");b.exports=h;h.simpleSieve=c;h.fermatTest=d;var f=k("bn.js"), +m=new f(24),p=new (k("miller-rabin")),e=new f(1),l=new f(2),n=new f(5);new f(16);new f(8);var r=new f(10),u=new f(3);new f(7);var y=new f(11),C=new f(4);new f(12);var q=null},{"bn.js":34,"miller-rabin":124,randombytes:145}],84:[function(k,b,a){b.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"}, modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"}, modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"}, modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"}, modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"}, modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}, {}],85:[function(k,b,a){a.version=k("../package.json").version;a.utils=k("./elliptic/utils");a.rand=k("brorand");a.curve=k("./elliptic/curve");a.curves=k("./elliptic/curves");a.ec=k("./elliptic/ec");a.eddsa=k("./elliptic/eddsa")},{"../package.json":100,"./elliptic/curve":88,"./elliptic/curves":91,"./elliptic/ec":92,"./elliptic/eddsa":95,"./elliptic/utils":99,brorand:35}],86:[function(k,b,a){function c(a,b){this.type=a;this.p=new h(b.p,16);this.red=b.prime?h.red(b.prime):h.mont(this.p);this.zero=(new h(0)).toRed(this.red); -this.one=(new h(1)).toRed(this.red);this.two=(new h(2)).toRed(this.red);this.n=b.n&&new h(b.n,16);this.g=b.g&&this.pointFromJSON(b.g,b.gRed);this._wnafT1=Array(4);this._wnafT2=Array(4);this._wnafT3=Array(4);this._wnafT4=Array(4);a=this.n&&this.p.div(this.n);!a||0=g;b--)h=(h<<1)+c[b];d.push(h)}b=this.jpoint(null,null,null);for(c=this.jpoint(null,null,null);0g)break;b=c[g];p(0!==b);d="affine"===a.type?0>1]):d.mixedAdd(f[-b-1>>1].neg()):0>1]):d.add(f[-b-1>>1].neg())}return"affine"===a.type?d.toP():d};c.prototype._wnafMulAdd=function(a,b,c,d,g){for(var f=this._wnafT1,h=this._wnafT2,k=this._wnafT3, -l=0,p=0;pp)break;for(a=0;a>1]:0>l&&(n=h[a][-l-1>>1].neg()),b="affine"===n.type?b.mixedAdd(n):b.add(n))}for(p=0;p=g;b--)h=(h<<1)+c[b];d.push(h)}b=this.jpoint(null,null,null);for(c=this.jpoint(null,null,null);0g)break;b=c[g];p(0!==b);d="affine"===a.type?0>1]):d.mixedAdd(e[-b-1>>1].neg()):0>1]):d.add(e[-b-1>>1].neg())}return"affine"===a.type?d.toP():d};c.prototype._wnafMulAdd=function(a,b,c,d,g){for(var e=this._wnafT1,h=this._wnafT2,l=this._wnafT3, +k=0,n=0;nn)break;for(a=0;a>1]:0>k&&(p=h[a][-k-1>>1].neg()),b="affine"===p.type?b.mixedAdd(p):b.add(p))}for(n=0;n=Math.ceil((a.bitLength()+1)/b.step):!1};d.prototype._getDoubles=function(a,b){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],e=this,f=0;fb[0].cmp(b[1])?b[0]:b[1],b=b.toRed(this.red));a.lambda?c=new e(a.lambda,16):(c=this._getEndoRoots(this.n),0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(b))?c=c[0]:(c=c[1],p(0===this.g.mul(c).x.cmp(this.g.x.redMul(b)))));a= -a.basis?a.basis.map(function(a){return{a:new e(a.a,16),b:new e(a.b,16)}}):this._getEndoBasis(c);return{beta:b,lambda:c,basis:a}}};c.prototype._getEndoRoots=function(a){var b=a===this.p?this.red:e.mont(a),c=(new e(2)).toRed(b).redInvm();a=c.redNeg();c=(new e(3)).toRed(b).redNeg().redSqrt().redMul(c);b=a.redAdd(c).fromRed();a=a.redSub(c).fromRed();return[b,a]};c.prototype._getEndoBasis=function(a){for(var b=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=this.n.clone(),f=new e(1),d=new e(0),g=new e(0), -h=new e(1),k,m,p,v,w,x,A=0,F;0!==a.cmpn(0);){var B=c.div(a);F=c.sub(B.mul(a));w=g.sub(B.mul(f));B=h.sub(B.mul(d));if(!p&&0>F.cmp(b))k=x.neg(),m=f,p=F.neg(),v=w;else if(p&&2===++A)break;x=F;c=a;a=F;g=f;f=w;h=d;d=B}b=F.neg();x=p.sqr().add(v.sqr());0<=b.sqr().add(w.sqr()).cmp(x)&&(b=k,w=m);p.negative&&(p=p.neg(),v=v.neg());b.negative&&(b=b.neg(),w=w.neg());return[{a:p,b:v},{a:b,b:w}]};c.prototype._endoSplit=function(a){var b=this.endo.basis,c=b[0],e=b[1],f=e.b.mul(a).divRound(this.n),d=c.b.neg().mul(a).divRound(this.n), -b=f.mul(c.a),g=d.mul(e.a),c=f.mul(c.b),e=d.mul(e.b);a=a.sub(b).sub(g);b=c.add(e).neg();return{k1:a,k2:b}};c.prototype.pointFromX=function(a,b){a=new e(a,16);a.red||(a=a.toRed(this.red));var c=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),f=c.redSqrt();if(0!==f.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");c=f.fromRed().isOdd();if(b&&!c||!b&&c)f=f.redNeg();return this.point(a,f)};c.prototype.validate=function(a){if(a.inf)return!0;var b=a.x;a=a.y;var c=this.a.redMul(b), -b=b.redSqr().redMul(b).redIAdd(c).redIAdd(this.b);return 0===a.redSqr().redISub(b).cmpn(0)};c.prototype._endoWnafMulAdd=function(a,b,c){for(var e=this._endoWnafT1,f=this._endoWnafT2,d=0;db[0].cmp(b[1])?b[0]:b[1],b=b.toRed(this.red));a.lambda?c=new f(a.lambda,16):(c=this._getEndoRoots(this.n),0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(b))?c=c[0]:(c=c[1],p(0===this.g.mul(c).x.cmp(this.g.x.redMul(b)))));a= +a.basis?a.basis.map(function(a){return{a:new f(a.a,16),b:new f(a.b,16)}}):this._getEndoBasis(c);return{beta:b,lambda:c,basis:a}}};c.prototype._getEndoRoots=function(a){var b=a===this.p?this.red:f.mont(a),c=(new f(2)).toRed(b).redInvm();a=c.redNeg();c=(new f(3)).toRed(b).redNeg().redSqrt().redMul(c);b=a.redAdd(c).fromRed();a=a.redSub(c).fromRed();return[b,a]};c.prototype._getEndoBasis=function(a){for(var b=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=this.n.clone(),e=new f(1),d=new f(0),g=new f(0), +h=new f(1),k,m,p,v,w,x,A=0,F;0!==a.cmpn(0);){var B=c.div(a);F=c.sub(B.mul(a));w=g.sub(B.mul(e));B=h.sub(B.mul(d));if(!p&&0>F.cmp(b))k=x.neg(),m=e,p=F.neg(),v=w;else if(p&&2===++A)break;x=F;c=a;a=F;g=e;e=w;h=d;d=B}b=F.neg();x=p.sqr().add(v.sqr());0<=b.sqr().add(w.sqr()).cmp(x)&&(b=k,w=m);p.negative&&(p=p.neg(),v=v.neg());b.negative&&(b=b.neg(),w=w.neg());return[{a:p,b:v},{a:b,b:w}]};c.prototype._endoSplit=function(a){var b=this.endo.basis,c=b[0],f=b[1],e=f.b.mul(a).divRound(this.n),d=c.b.neg().mul(a).divRound(this.n), +b=e.mul(c.a),g=d.mul(f.a),c=e.mul(c.b),f=d.mul(f.b);a=a.sub(b).sub(g);b=c.add(f).neg();return{k1:a,k2:b}};c.prototype.pointFromX=function(a,b){a=new f(a,16);a.red||(a=a.toRed(this.red));var c=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),e=c.redSqrt();if(0!==e.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");c=e.fromRed().isOdd();if(b&&!c||!b&&c)e=e.redNeg();return this.point(a,e)};c.prototype.validate=function(a){if(a.inf)return!0;var b=a.x;a=a.y;var c=this.a.redMul(b), +b=b.redSqr().redMul(b).redIAdd(c).redIAdd(this.b);return 0===a.redSqr().redISub(b).cmpn(0)};c.prototype._endoWnafMulAdd=function(a,b,c){for(var f=this._endoWnafT1,e=this._endoWnafT2,d=0;d=m.cmpn(1)||0<=m.cmp(g))){var l=this.g.mul(m);if(!l.isInfinity()){var n=l.getX();c=n.umod(this.n);if(0!==c.cmpn(0)&&(m=m.invm(this.n).mul(c.mul(b.getPrivate()).iadd(a)),m=m.umod(this.n),0!==m.cmpn(0)))return a=(l.getY().isOdd()?1:0)|(0!==n.cmp(c)?2:0),e.canonical&&0e.cmpn(1)||0<=e.cmp(this.n)||0>b.cmpn(1)||0<=b.cmp(this.n))return!1;b=b.invm(this.n);a=b.mul(a).umod(this.n);b=b.mul(e).umod(this.n);if(!this.curve._maxwellTrick)return c=this.g.mulAdd(a,c.getPublic(),b),c.isInfinity()?!1:0===c.getX().umod(this.n).cmp(e);c=this.g.jmulAdd(a,c.getPublic(),b);return c.isInfinity()?!1:c.eqXToP(e)};c.prototype.recoverPubKey=function(a,b,c,g){e((3&c)===c,"The recovery param is more than two bits");b=new p(b,g);g=this.n;var f=new d(a); -a=b.r;var h=b.s,k=c&1;c>>=1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),k):this.curve.pointFromX(a,k);b=b.r.invm(g);c=g.sub(f).mul(b).umod(g);g=h.mul(b).umod(g);return this.g.mulAdd(c,a,g)};c.prototype.getKeyRecoveryParam=function(a,b,c,e){b=new p(b,e);if(null!==b.recoveryParam)return b.recoveryParam;for(e=0;4>e;e++){var d;try{d=this.recoverPubKey(a,b,e)}catch(y){continue}if(d.eq(c))return e}throw Error("Unable to find valid recovery factor"); +c))return new c(a);"string"===typeof a&&(f(g.curves.hasOwnProperty(a),"Unknown curve "+a),a=g.curves[a]);a instanceof g.curves.PresetCurve&&(a={curve:a});this.curve=a.curve.curve;this.n=this.curve.n;this.nh=this.n.ushrn(1);this.g=this.curve.g;this.g=a.curve.g;this.g.precompute(a.curve.n.bitLength()+1);this.hash=a.hash||a.curve.hash}var d=k("bn.js"),h=k("hmac-drbg"),g=k("../../elliptic"),f=g.utils.assert,m=k("./key"),p=k("./signature");b.exports=c;c.prototype.keyPair=function(a){return new m(this, +a)};c.prototype.keyFromPrivate=function(a,b){return m.fromPrivate(this,a,b)};c.prototype.keyFromPublic=function(a,b){return m.fromPublic(this,a,b)};c.prototype.genKeyPair=function(a){a||(a={});a=new h({hash:this.hash,pers:a.pers,persEnc:a.persEnc||"utf8",entropy:a.entropy||g.rand(this.hash.hmacStrength),entropyEnc:a.entropy&&a.entropyEnc||"utf8",nonce:this.n.toArray()});var b=this.n.byteLength(),c=this.n.sub(new d(2));do{var f=new d(a.generate(b));if(!(0=m.cmpn(1)||0<=m.cmp(g))){var l=this.g.mul(m);if(!l.isInfinity()){var n=l.getX();c=n.umod(this.n);if(0!==c.cmpn(0)&&(m=m.invm(this.n).mul(c.mul(b.getPrivate()).iadd(a)),m=m.umod(this.n),0!==m.cmpn(0)))return a=(l.getY().isOdd()?1:0)|(0!==n.cmp(c)?2:0),f.canonical&&0f.cmpn(1)||0<=f.cmp(this.n)||0>b.cmpn(1)||0<=b.cmp(this.n))return!1;b=b.invm(this.n);a=b.mul(a).umod(this.n);b=b.mul(f).umod(this.n);if(!this.curve._maxwellTrick)return c=this.g.mulAdd(a,c.getPublic(),b),c.isInfinity()?!1:0===c.getX().umod(this.n).cmp(f);c=this.g.jmulAdd(a,c.getPublic(),b);return c.isInfinity()?!1:c.eqXToP(f)};c.prototype.recoverPubKey=function(a,b,c,g){f((3&c)===c,"The recovery param is more than two bits");b=new p(b,g);g=this.n;var e=new d(a); +a=b.r;var h=b.s,k=c&1;c>>=1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),k):this.curve.pointFromX(a,k);b=b.r.invm(g);c=g.sub(e).mul(b).umod(g);g=h.mul(b).umod(g);return this.g.mulAdd(c,a,g)};c.prototype.getKeyRecoveryParam=function(a,b,c,f){b=new p(b,f);if(null!==b.recoveryParam)return b.recoveryParam;for(f=0;4>f;f++){var e;try{e=this.recoverPubKey(a,b,f)}catch(y){continue}if(e.eq(c))return f}throw Error("Unable to find valid recovery factor"); }},{"../../elliptic":85,"./key":93,"./signature":94,"bn.js":34,"hmac-drbg":116}],93:[function(k,b,a){function c(a,b){this.ec=a;this.pub=this.priv=null;b.priv&&this._importPrivate(b.priv,b.privEnc);b.pub&&this._importPublic(b.pub,b.pubEnc)}var d=k("bn.js"),h=k("../../elliptic").utils.assert;b.exports=c;c.fromPublic=function(a,b,d){return b instanceof c?b:new c(a,{pub:b,pubEnc:d})};c.fromPrivate=function(a,b,d){return b instanceof c?b:new c(a,{priv:b,privEnc:d})};c.prototype.validate=function(){var a= this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N !\x3d O"}:{result:!1,reason:"Public key is not a point"}};c.prototype.getPublic=function(a,b){"string"===typeof a&&(b=a,a=null);this.pub||(this.pub=this.ec.g.mul(this.priv));return b?this.pub.encode(b,a):this.pub};c.prototype.getPrivate=function(a){return"hex"===a?this.priv.toString(16,2):this.priv};c.prototype._importPrivate= function(a,b){this.priv=new d(a,b||16);this.priv=this.priv.umod(this.ec.curve.n)};c.prototype._importPublic=function(a,b){a.x||a.y?("mont"===this.ec.curve.type?h(a.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||h(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y)):this.pub=this.ec.curve.decodePoint(a,b)};c.prototype.derive=function(a){return a.mul(this.priv).getX()};c.prototype.sign=function(a,b,c){return this.ec.sign(a,this,b,c)}; -c.prototype.verify=function(a,b){return this.ec.verify(a,b,this)};c.prototype.inspect=function(){return"\x3cKey priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" \x3e"}},{"../../elliptic":85,"bn.js":34}],94:[function(k,b,a){function c(a,b){if(a instanceof c)return a;this._importDER(a,b)||(f(a.r&&a.s,"Signature without r or s"),this.r=new m(a.r,16),this.s=new m(a.s,16),this.recoveryParam=void 0===a.recoveryParam?null:a.recoveryParam)}function d(){this.place=0} -function h(a,b){var c=a[b.place++];if(!(c&128))return c;for(var c=c&15,e=0,d=0,f=b.place;db)){var c=1+(Math.log(b)/Math.LN2>>>3);for(a.push(c|128);--c;)a.push(b>>>(c<<3)&255)}a.push(b)}var m=k("bn.js"),p=k("../../elliptic").utils,f=p.assert;b.exports=c;c.prototype._importDER=function(a,b){a=p.toArray(a,b);var c=new d;if(48!==a[c.place++]|| -h(a,c)+c.place!==a.length||2!==a[c.place++])return!1;var e=h(a,c);b=a.slice(c.place,e+c.place);c.place+=e;if(2!==a[c.place++])return!1;e=h(a,c);if(a.length!==e+c.place)return!1;a=a.slice(c.place,e+c.place);0===b[0]&&b[1]&128&&(b=b.slice(1));0===a[0]&&a[1]&128&&(a=a.slice(1));this.r=new m(b);this.s=new m(a);this.recoveryParam=null;return!0};c.prototype.toDER=function(a){var b=this.r.toArray(),c=this.s.toArray();b[0]&128&&(b=[0].concat(b));c[0]&128&&(c=[0].concat(c));b=g(b);for(c=g(c);!(c[0]||c[1]& -128);)c=c.slice(1);var d=[2];e(d,b.length);d=d.concat(b);d.push(2);e(d,c.length);b=d.concat(c);c=[48];e(c,b.length);c=c.concat(b);return p.encode(c,a)}},{"../../elliptic":85,"bn.js":34}],95:[function(k,b,a){function c(a){e("ed25519"===a,"only tested with ed25519 so far");if(!(this instanceof c))return new c(a);this.curve=a=h.curves[a].curve;this.g=a.g;this.g.precompute(a.n.bitLength()+1);this.pointClass=a.point().constructor;this.encodingLength=Math.ceil(a.n.bitLength()/8);this.hash=d.sha512}var d= -k("hash.js"),h=k("../../elliptic"),g=h.utils,e=g.assert,m=g.parseBytes,p=k("./key"),f=k("./signature");b.exports=c;c.prototype.sign=function(a,b){a=m(a);var c=this.keyFromSecret(b),e=this.hashInt(c.messagePrefix(),a);b=this.g.mul(e);var d=this.encodePoint(b);a=this.hashInt(d,c.pubBytes(),a).mul(c.priv());a=e.add(a).umod(this.curve.n);return this.makeSignature({R:b,S:a,Rencoded:d})};c.prototype.verify=function(a,b,c){a=m(a);b=this.makeSignature(b);c=this.keyFromPublic(c);a=this.hashInt(b.Rencoded(), -c.pubBytes(),a);var e=this.g.mul(b.S());return b.R().add(c.pub().mul(a)).eq(e)};c.prototype.hashInt=function(){for(var a=this.hash(),b=0;bb)){var c=1+(Math.log(b)/Math.LN2>>>3);for(a.push(c|128);--c;)a.push(b>>>(c<<3)&255)}a.push(b)}var m=k("bn.js"),p=k("../../elliptic").utils,e=p.assert;b.exports=c;c.prototype._importDER=function(a,b){a=p.toArray(a,b);var c=new d;if(48!==a[c.place++]|| +h(a,c)+c.place!==a.length||2!==a[c.place++])return!1;var f=h(a,c);b=a.slice(c.place,f+c.place);c.place+=f;if(2!==a[c.place++])return!1;f=h(a,c);if(a.length!==f+c.place)return!1;a=a.slice(c.place,f+c.place);0===b[0]&&b[1]&128&&(b=b.slice(1));0===a[0]&&a[1]&128&&(a=a.slice(1));this.r=new m(b);this.s=new m(a);this.recoveryParam=null;return!0};c.prototype.toDER=function(a){var b=this.r.toArray(),c=this.s.toArray();b[0]&128&&(b=[0].concat(b));c[0]&128&&(c=[0].concat(c));b=g(b);for(c=g(c);!(c[0]||c[1]& +128);)c=c.slice(1);var e=[2];f(e,b.length);e=e.concat(b);e.push(2);f(e,c.length);b=e.concat(c);c=[48];f(c,b.length);c=c.concat(b);return p.encode(c,a)}},{"../../elliptic":85,"bn.js":34}],95:[function(k,b,a){function c(a){f("ed25519"===a,"only tested with ed25519 so far");if(!(this instanceof c))return new c(a);this.curve=a=h.curves[a].curve;this.g=a.g;this.g.precompute(a.n.bitLength()+1);this.pointClass=a.point().constructor;this.encodingLength=Math.ceil(a.n.bitLength()/8);this.hash=d.sha512}var d= +k("hash.js"),h=k("../../elliptic"),g=h.utils,f=g.assert,m=g.parseBytes,p=k("./key"),e=k("./signature");b.exports=c;c.prototype.sign=function(a,b){a=m(a);var c=this.keyFromSecret(b),f=this.hashInt(c.messagePrefix(),a);b=this.g.mul(f);var e=this.encodePoint(b);a=this.hashInt(e,c.pubBytes(),a).mul(c.priv());a=f.add(a).umod(this.curve.n);return this.makeSignature({R:b,S:a,Rencoded:e})};c.prototype.verify=function(a,b,c){a=m(a);b=this.makeSignature(b);c=this.keyFromPublic(c);a=this.hashInt(b.Rencoded(), +c.pubBytes(),a);var f=this.g.mul(b.S());return b.R().add(c.pub().mul(a)).eq(f)};c.prototype.hashInt=function(){for(var a=this.hash(),b=0;b(e>>1)-1?(e>>1)-d:d,a.isubn(d)):d=0;c.push(d);d=0!==a.cmpn(0)&&0===a.andln(e-1)?b+1:1;for(var h=1;h(f>>1)-1?(f>>1)-d:d,a.isubn(d)):d=0;c.push(d);d=0!==a.cmpn(0)&&0===a.andln(f-1)?b+1:1;for(var h=1;ha||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};c.prototype.emit=function(a){var b, -c,g,f;this._events||(this._events={});if("error"===a&&(!this._events.error||h(this._events.error)&&!this._events.error.length)){b=arguments[1];if(b instanceof Error)throw b;c=Error('Uncaught, unspecified "error" event. ('+b+")");c.context=b;throw c;}c=this._events[a];if(void 0===c)return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:b=Array.prototype.slice.call(arguments,1),c.apply(this, -b)}else if(h(c))for(b=Array.prototype.slice.call(arguments,1),f=c.slice(),c=f.length,g=0;gb&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"===typeof console.trace&&console.trace());return this};c.prototype.on=c.prototype.addListener;c.prototype.once=function(a,b){function c(){this.removeListener(a,c);e||(e=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function"); -var e=!1;c.listener=b;this.on(a,c);return this};c.prototype.removeListener=function(a,b){var c,e,f;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;c=this._events[a];f=c.length;e=-1;if(c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(h(c)){for(;0e)return this;1===c.length?(c.length=0,delete this._events[a]): -c.splice(e,1);this._events.removeListener&&this.emit("removeListener",a,b)}return this};c.prototype.removeAllListeners=function(a){var b;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);this.removeAllListeners("removeListener");this._events={};return this}b=this._events[a];if(d(b))this.removeListener(a, +c,g,e;this._events||(this._events={});if("error"===a&&(!this._events.error||h(this._events.error)&&!this._events.error.length)){b=arguments[1];if(b instanceof Error)throw b;c=Error('Uncaught, unspecified "error" event. ('+b+")");c.context=b;throw c;}c=this._events[a];if(void 0===c)return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:b=Array.prototype.slice.call(arguments,1),c.apply(this, +b)}else if(h(c))for(b=Array.prototype.slice.call(arguments,1),e=c.slice(),c=e.length,g=0;gb&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"===typeof console.trace&&console.trace());return this};c.prototype.on=c.prototype.addListener;c.prototype.once=function(a,b){function c(){this.removeListener(a,c);f||(f=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function"); +var f=!1;c.listener=b;this.on(a,c);return this};c.prototype.removeListener=function(a,b){var c,f,e;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;c=this._events[a];e=c.length;f=-1;if(c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(h(c)){for(;0f)return this;1===c.length?(c.length=0,delete this._events[a]): +c.splice(f,1);this._events.removeListener&&this.emit("removeListener",a,b)}return this};c.prototype.removeAllListeners=function(a){var b;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);this.removeAllListeners("removeListener");this._events={};return this}b=this._events[a];if(d(b))this.removeListener(a, b);else if(b)for(;b.length;)this.removeListener(a,b[b.length-1]);delete this._events[a];return this};c.prototype.listeners=function(a){return this._events&&this._events[a]?d(this._events[a])?[this._events[a]]:this._events[a].slice():[]};c.prototype.listenerCount=function(a){if(this._events){a=this._events[a];if(d(a))return 1;if(a)return a.length}return 0};c.listenerCount=function(a,b){return a.listenerCount(b)}},{}],102:[function(k,b,a){var c=k("safe-buffer").Buffer,d=k("md5.js");b.exports=function(a, -b,e,k){c.isBuffer(a)||(a=c.from(a,"binary"));if(b&&(c.isBuffer(b)||(b=c.from(b,"binary")),8!==b.length))throw new RangeError("salt should be Buffer with 8 byte length");e/=8;for(var g=c.alloc(e),f=c.alloc(k||0),h=c.alloc(0);0=this._blockSize;){for(var d=this._blockOffset;d=this._blockSize;){for(var d=this._blockOffset;d=this._delta8)for(a=this.pending,b=a.length%this._delta8,this.pending=a.slice(a.length-b,a.length),0===this.pending.length&&(this.pending=null),a=d.join32(a,0,a.length-b,this.endian),b=0;b>>24&255;b[d++]=a>>>16&255;b[d++]=a>>>8&255;b[d++]=a&255}else for(b[d++]=a&255,b[d++]=a>>>8&255,b[d++]=a>>>16&255,b[d++]=a>>>24&255,b[d++]=0,b[d++]=0, b[d++]=0,b[d++]=0,c=8;cthis.blockSize&&(a=(new this.Hash).update(a).digest());h(a.length<=this.blockSize);for(var b=a.length;b< -this.blockSize;b++)a.push(0);for(b=0;b=a?b^c^e:31>=a?b&c|~b&e:47>=a?(b|~c)^e:63>=a?b&e|c&~e:b^(c|~e)}var h=k("./utils");k=k("./common");var g=h.rotl32,e=h.sum32,m=h.sum32_3,p=h.sum32_4,f=k.BlockHash;h.inherits(c,f);a.ripemd160=c;c.blockSize=512;c.outSize=160;c.hmacStrength=192;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.h[0],f=this.h[1],h=this.h[2],k=this.h[3],w=this.h[4],C=c,y=f,F=h,B=k,I=w,E=0;80>E;E++)var H=e(g(p(c,d(E,f,h,k),a[l[E]+b],15>= -E?0:31>=E?1518500249:47>=E?1859775393:63>=E?2400959708:2840853838),r[E]),w),c=w,w=k,k=g(h,10),h=f,f=H,H=e(g(p(C,d(79-E,y,F,B),a[n[E]+b],15>=E?1352829926:31>=E?1548603684:47>=E?1836072691:63>=E?2053994217:0),u[E]),I),C=I,I=B,B=g(F,10),F=y,y=H;H=m(this.h[1],h,B);this.h[1]=m(this.h[2],k,I);this.h[2]=m(this.h[3],w,C);this.h[3]=m(this.h[4],c,y);this.h[4]=m(this.h[0],f,F);this.h[0]=H};c.prototype._digest=function(a){return"hex"===a?h.toHex32(this.h,"little"):h.split32(this.h,"little")};var l=[0,1,2,3,4, +this.blockSize;b++)a.push(0);for(b=0;b=a?b^c^f:31>=a?b&c|~b&f:47>=a?(b|~c)^f:63>=a?b&f|c&~f:b^(c|~f)}var h=k("./utils");k=k("./common");var g=h.rotl32,f=h.sum32,m=h.sum32_3,p=h.sum32_4,e=k.BlockHash;h.inherits(c,e);a.ripemd160=c;c.blockSize=512;c.outSize=160;c.hmacStrength=192;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.h[0],e=this.h[1],h=this.h[2],k=this.h[3],w=this.h[4],C=c,y=e,F=h,B=k,I=w,E=0;80>E;E++)var H=f(g(p(c,d(E,e,h,k),a[l[E]+b],15>= +E?0:31>=E?1518500249:47>=E?1859775393:63>=E?2400959708:2840853838),r[E]),w),c=w,w=k,k=g(h,10),h=e,e=H,H=f(g(p(C,d(79-E,y,F,B),a[n[E]+b],15>=E?1352829926:31>=E?1548603684:47>=E?1836072691:63>=E?2053994217:0),u[E]),I),C=I,I=B,B=g(F,10),F=y,y=H;H=m(this.h[1],h,B);this.h[1]=m(this.h[2],k,I);this.h[2]=m(this.h[3],w,C);this.h[3]=m(this.h[4],c,y);this.h[4]=m(this.h[0],e,F);this.h[0]=H};c.prototype._digest=function(a){return"hex"===a?h.toHex32(this.h,"little"):h.split32(this.h,"little")};var l=[0,1,2,3,4, 5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],n=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],r=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11, 12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":105,"./utils":115}],108:[function(k,b,a){a.sha1=k("./sha/1");a.sha224=k("./sha/224");a.sha256=k("./sha/256");a.sha384=k("./sha/384");a.sha512=k("./sha/512")},{"./sha/1":109,"./sha/224":110,"./sha/256":111,"./sha/384":112, -"./sha/512":113}],109:[function(k,b,a){function c(){if(!(this instanceof c))return new c;p.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=Array(80)}var d=k("../utils");a=k("../common");k=k("./common");var h=d.rotl32,g=d.sum32,e=d.sum32_5,m=k.ft_1,p=a.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];d.inherits(c,p);b.exports=c;c.blockSize=512;c.outSize=160;c.hmacStrength=80;c.padLength=64;c.prototype._update=function(a,b){for(var c=this.W,d=0;16>d;d++)c[d]= -a[b+d];for(;dd;d++)c[d]= +a[b+d];for(;dd;d++)c[d]=a[b+d];for(;dd;d++)c[d]=a[b+d];for(;dd;d++)c[d]=a[b+d];for(;da&&(a+=4294967296);var h=c[d-4],k=c[d-3];b=e(h,k,19);f=e(k,h,29);h=p(h,k,6);b=b^f^h;0>b&&(b+=4294967296); -var f=c[d-14],h=c[d-13],l=c[d-30],q=c[d-29],k=g(l,q,1),n=g(l,q,8),l=m(l,q,7),k=k^n^l;0>k&&(k+=4294967296);var q=c[d-30],z=c[d-29],n=e(q,z,1),l=e(q,z,8),q=p(q,z,7),n=n^l^q;0>n&&(n+=4294967296);l=c[d-32];q=c[d-31];c[d]=r(a,b,f,h,k,n,l,q);c[d+1]=u(a,b,f,h,k,n,l,q)}};c.prototype._update=function(a,b){this._prepareBlock(a,b);a=this.W;b=this.h[0];var c=this.h[1],d=this.h[2],k=this.h[3],m=this.h[4],q=this.h[5],p=this.h[6],r=this.h[7],u=this.h[8],z=this.h[9],D=this.h[10],v=this.h[11],P=this.h[12],ea=this.h[13], -Q=this.h[14],T=this.h[15];h(this.k.length===a.length);for(var S=0;SR&&(R+=4294967296);K=R;var M=u,G=z,R=e(M,G,14),O=e(M,G,18),M=e(G,M,9),R=R^O^M;0>R&&(R+=4294967296);M=R;R=u&D^~u&P;0>R&&(R+=4294967296);O=R;R=z&v^~z&ea;0>R&&(R+=4294967296);var G=R,L=this.k[S],U=this.k[S+1],oa=a[S],pa=a[S+1],R=y(Q,T,K,M,O,G,L,U,oa,pa),O=C(Q,T,K,M,O,G,L,U,oa,pa);K=b;M=c;Q=g(K,M,28);T=g(M,K,2);K=g(M,K,7);Q=Q^T^K;0>Q&&(Q+=4294967296);M=b;G= -c;T=e(M,G,28);K=e(G,M,2);M=e(G,M,7);T=T^K^M;0>T&&(T+=4294967296);K=b&d^b&m^d&m;0>K&&(K+=4294967296);M=c&k^c&q^k&q;0>M&&(M+=4294967296);G=l(Q,T,K,M);K=n(Q,T,K,M);Q=P;T=ea;P=D;ea=v;D=u;v=z;u=l(p,r,R,O);z=n(r,r,R,O);p=m;r=q;m=d;q=k;d=b;k=c;b=l(R,O,G,K);c=n(R,O,G,K)}f(this.h,0,b,c);f(this.h,2,d,k);f(this.h,4,m,q);f(this.h,6,p,r);f(this.h,8,u,z);f(this.h,10,D,v);f(this.h,12,P,ea);f(this.h,14,Q,T)};c.prototype._digest=function(a){return"hex"===a?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":105, -"../utils":115,"minimalistic-assert":125}],114:[function(k,b,a){function c(a,b,c){return a&b^a&c^b&c}var d=k("../utils").rotr32;a.ft_1=function(a,b,e,d){if(0===a)return b&e^~b&d;if(1===a||3===a)return b^e^d;if(2===a)return c(b,e,d)};a.ch32=function(a,b,c){return a&b^~a&c};a.maj32=c;a.p32=function(a,b,c){return a^b^c};a.s0_256=function(a){return d(a,2)^d(a,13)^d(a,22)};a.s1_256=function(a){return d(a,6)^d(a,11)^d(a,25)};a.g0_256=function(a){return d(a,7)^d(a,18)^a>>>3};a.g1_256=function(a){return d(a, +1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];d.inherits(c,q);b.exports=c;c.blockSize=1024;c.outSize=512;c.hmacStrength=192;c.padLength=128;c.prototype._prepareBlock=function(a,b){for(var c=this.W,e=0;32>e;e++)c[e]=a[b+e];for(;ea&&(a+=4294967296);var h=c[e-4],k=c[e-3];b=f(h,k,19);d=f(k,h,29);h=p(h,k,6);b=b^d^h;0>b&&(b+=4294967296); +var d=c[e-14],h=c[e-13],l=c[e-30],q=c[e-29],k=g(l,q,1),n=g(l,q,8),l=m(l,q,7),k=k^n^l;0>k&&(k+=4294967296);var q=c[e-30],z=c[e-29],n=f(q,z,1),l=f(q,z,8),q=p(q,z,7),n=n^l^q;0>n&&(n+=4294967296);l=c[e-32];q=c[e-31];c[e]=r(a,b,d,h,k,n,l,q);c[e+1]=u(a,b,d,h,k,n,l,q)}};c.prototype._update=function(a,b){this._prepareBlock(a,b);a=this.W;b=this.h[0];var c=this.h[1],d=this.h[2],k=this.h[3],m=this.h[4],q=this.h[5],p=this.h[6],r=this.h[7],u=this.h[8],z=this.h[9],D=this.h[10],v=this.h[11],P=this.h[12],ea=this.h[13], +Q=this.h[14],T=this.h[15];h(this.k.length===a.length);for(var S=0;SR&&(R+=4294967296);K=R;var M=u,G=z,R=f(M,G,14),O=f(M,G,18),M=f(G,M,9),R=R^O^M;0>R&&(R+=4294967296);M=R;R=u&D^~u&P;0>R&&(R+=4294967296);O=R;R=z&v^~z&ea;0>R&&(R+=4294967296);var G=R,L=this.k[S],U=this.k[S+1],oa=a[S],pa=a[S+1],R=y(Q,T,K,M,O,G,L,U,oa,pa),O=C(Q,T,K,M,O,G,L,U,oa,pa);K=b;M=c;Q=g(K,M,28);T=g(M,K,2);K=g(M,K,7);Q=Q^T^K;0>Q&&(Q+=4294967296);M=b;G= +c;T=f(M,G,28);K=f(G,M,2);M=f(G,M,7);T=T^K^M;0>T&&(T+=4294967296);K=b&d^b&m^d&m;0>K&&(K+=4294967296);M=c&k^c&q^k&q;0>M&&(M+=4294967296);G=l(Q,T,K,M);K=n(Q,T,K,M);Q=P;T=ea;P=D;ea=v;D=u;v=z;u=l(p,r,R,O);z=n(r,r,R,O);p=m;r=q;m=d;q=k;d=b;k=c;b=l(R,O,G,K);c=n(R,O,G,K)}e(this.h,0,b,c);e(this.h,2,d,k);e(this.h,4,m,q);e(this.h,6,p,r);e(this.h,8,u,z);e(this.h,10,D,v);e(this.h,12,P,ea);e(this.h,14,Q,T)};c.prototype._digest=function(a){return"hex"===a?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":105, +"../utils":115,"minimalistic-assert":125}],114:[function(k,b,a){function c(a,b,c){return a&b^a&c^b&c}var d=k("../utils").rotr32;a.ft_1=function(a,b,f,d){if(0===a)return b&f^~b&d;if(1===a||3===a)return b^f^d;if(2===a)return c(b,f,d)};a.ch32=function(a,b,c){return a&b^~a&c};a.maj32=c;a.p32=function(a,b,c){return a^b^c};a.s0_256=function(a){return d(a,2)^d(a,13)^d(a,22)};a.s1_256=function(a){return d(a,6)^d(a,11)^d(a,25)};a.g0_256=function(a){return d(a,7)^d(a,18)^a>>>3};a.g1_256=function(a){return d(a, 17)^d(a,19)^a>>>10}},{"../utils":115}],115:[function(k,b,a){function c(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24)>>>0}function d(a){return 1===a.length?"0"+a:a}function h(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}var g=k("minimalistic-assert");k=k("inherits");a.inherits=k;a.toArray=function(a,b){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if("string"=== -typeof a)if(!b)for(b=0;b>8,e=e&255;d?c.push(d,e):c.push(e)}else{if("hex"===b)for(a=a.replace(/[^a-z0-9]+/ig,""),0!==a.length%2&&(a="0"+a),b=0;b>>0;return c};a.split32=function(a,b){for(var c=Array(4*a.length),e=0,d=0;e>>24,c[d+1]=h>>>16&255,c[d+2]=h>>>8&255,c[d+3]=h&255):(c[d+3]=h>>>24,c[d+2]=h>>>16&255,c[d+1]=h>>>8&255,c[d]=h&255)}return c};a.rotr32=function(a,b){return a>>>b|a<<32-b};a.rotl32=function(a, -b){return a<>>32-b};a.sum32=function(a,b){return a+b>>>0};a.sum32_3=function(a,b,c){return a+b+c>>>0};a.sum32_4=function(a,b,c,d){return a+b+c+d>>>0};a.sum32_5=function(a,b,c,d,h){return a+b+c+d+h>>>0};a.sum64=function(a,b,c,d){var e=d+a[b+1]>>>0;a[b]=(e>>0;a[b+1]=e};a.sum64_hi=function(a,b,c,d){return(b+d>>>0>>0};a.sum64_lo=function(a,b,c,d){return b+d>>>0};a.sum64_4_hi=function(a,b,c,d,h,g,k,u){d=b+d>>>0;b=0+(d>>0;b+=d>> -0>>0};a.sum64_4_lo=function(a,b,c,d,h,g,k,u){return b+d+g+u>>>0};a.sum64_5_hi=function(a,b,c,d,h,g,k,u,y,C){d=b+d>>>0;b=0+(d>>0;b+=d>>0;b+=d>>0>>0};a.sum64_5_lo=function(a,b,c,d,h,g,k,u,y,C){return b+d+g+u+C>>>0};a.rotr64_hi=function(a,b,c){return(b<<32-c|a>>>c)>>>0};a.rotr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0};a.shr64_hi=function(a,b,c){return a>>>c};a.shr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0}},{inherits:119, -"minimalistic-assert":125}],116:[function(k,b,a){function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash;this.predResist=!!a.predResist;this.outLen=this.hash.outSize;this.minEntropy=a.minEntropy||this.hash.hmacStrength;this.V=this.K=this.reseedInterval=this._reseed=null;var b=h.toArray(a.entropy,a.entropyEnc||"hex"),e=h.toArray(a.nonce,a.nonceEnc||"hex");a=h.toArray(a.pers,a.persEnc||"hex");g(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(b, -e,a)}var d=k("hash.js"),h=k("minimalistic-crypto-utils"),g=k("minimalistic-assert");b.exports=c;c.prototype._init=function(a,b,c){a=a.concat(b).concat(c);this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(b=0;b=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(a.concat(c||[]));this._reseed=1};c.prototype.generate=function(a,b,c,d){if(this._reseed>this.reseedInterval)throw Error("Reseed is required"); -"string"!==typeof b&&(d=c,c=b,b=null);c&&(c=h.toArray(c,d||"hex"),this._update(c));for(d=[];d.length>1,k=-7;e=h?e-1:0;var n=h?-1:1,r=a[b+e];e+=n;h=r&(1<<-k)-1;r>>=-k;for(k+=c;0>=-k;for(k+=g;0>1,r=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;k=g?0:k-1;var u=g?1:-1,y=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,g=l):(g=Math.floor(Math.log(b)/Math.LN2),1>b*(c=Math.pow(2,-g))&&(g--,c*=2),b=1<=g+m?b+r/c:b+r*Math.pow(2,1-m),2<=b*c&&(g++, -c/=2),g+m>=l?(b=0,g=l):1<=g+m?(b=(b*c-1)*Math.pow(2,e),g+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,e),g=0));for(;8<=e;a[h+k]=b&255,k+=u,b/=256,e-=8);g=g<>8,f=f&255;d?c.push(d,f):c.push(f)}else{if("hex"===b)for(a=a.replace(/[^a-z0-9]+/ig,""),0!==a.length%2&&(a="0"+a),b=0;b>>0;return c};a.split32=function(a,b){for(var c=Array(4*a.length),f=0,d=0;f>>24,c[d+1]=h>>>16&255,c[d+2]=h>>>8&255,c[d+3]=h&255):(c[d+3]=h>>>24,c[d+2]=h>>>16&255,c[d+1]=h>>>8&255,c[d]=h&255)}return c};a.rotr32=function(a,b){return a>>>b|a<<32-b};a.rotl32=function(a, +b){return a<>>32-b};a.sum32=function(a,b){return a+b>>>0};a.sum32_3=function(a,b,c){return a+b+c>>>0};a.sum32_4=function(a,b,c,e){return a+b+c+e>>>0};a.sum32_5=function(a,b,c,e,d){return a+b+c+e+d>>>0};a.sum64=function(a,b,c,e){var f=e+a[b+1]>>>0;a[b]=(f>>0;a[b+1]=f};a.sum64_hi=function(a,b,c,e){return(b+e>>>0>>0};a.sum64_lo=function(a,b,c,e){return b+e>>>0};a.sum64_4_hi=function(a,b,c,e,d,h,g,k){e=b+e>>>0;b=0+(e>>0;b+=e>> +0>>0};a.sum64_4_lo=function(a,b,c,e,d,h,g,k){return b+e+h+k>>>0};a.sum64_5_hi=function(a,b,c,e,d,h,g,k,y,C){e=b+e>>>0;b=0+(e>>0;b+=e>>0;b+=e>>0>>0};a.sum64_5_lo=function(a,b,c,e,d,h,g,k,y,C){return b+e+h+k+C>>>0};a.rotr64_hi=function(a,b,c){return(b<<32-c|a>>>c)>>>0};a.rotr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0};a.shr64_hi=function(a,b,c){return a>>>c};a.shr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0}},{inherits:119, +"minimalistic-assert":125}],116:[function(k,b,a){function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash;this.predResist=!!a.predResist;this.outLen=this.hash.outSize;this.minEntropy=a.minEntropy||this.hash.hmacStrength;this.V=this.K=this.reseedInterval=this._reseed=null;var b=h.toArray(a.entropy,a.entropyEnc||"hex"),f=h.toArray(a.nonce,a.nonceEnc||"hex");a=h.toArray(a.pers,a.persEnc||"hex");g(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(b, +f,a)}var d=k("hash.js"),h=k("minimalistic-crypto-utils"),g=k("minimalistic-assert");b.exports=c;c.prototype._init=function(a,b,c){a=a.concat(b).concat(c);this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(b=0;b=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(a.concat(c||[]));this._reseed=1};c.prototype.generate=function(a,b,c,e){if(this._reseed>this.reseedInterval)throw Error("Reseed is required"); +"string"!==typeof b&&(e=c,c=b,b=null);c&&(c=h.toArray(c,e||"hex"),this._update(c));for(e=[];e.length>1,k=-7;f=h?f-1:0;var n=h?-1:1,r=a[b+f];f+=n;h=r&(1<<-k)-1;r>>=-k;for(k+=c;0>=-k;for(k+=g;0>1,r=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;k=g?0:k-1;var u=g?1:-1,y=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,g=d):(g=Math.floor(Math.log(b)/Math.LN2),1>b*(c=Math.pow(2,-g))&&(g--,c*=2),b=1<=g+m?b+r/c:b+r*Math.pow(2,1-m),2<=b*c&&(g++, +c/=2),g+m>=d?(b=0,g=d):1<=g+m?(b=(b*c-1)*Math.pow(2,f),g+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,f),g=0));for(;8<=f;a[h+k]=b&255,k+=u,b/=256,f-=8);g=g<>>32-b}function g(a, -b,c,e,d,f,g){return h(a+(b&c|~b&e)+d+f|0,g)+b|0}function e(a,b,c,e,d,f,g){return h(a+(b&e|c&~e)+d+f|0,g)+b|0}function m(a,b,c,e,d,f,g){return h(a+(b^c^e)+d+f|0,g)+b|0}function p(a,b,c,e,d,f,g){return h(a+(c^(b|~e))+d+f|0,g)+b|0}var f=k("inherits"),l=k("hash-base"),n=Array(16);f(c,l);c.prototype._update=function(){for(var a=0;16>a;++a)n[a]=this._block.readInt32LE(4*a);var a=this._a,b=this._b,c=this._c,d=this._d,a=g(a,b,c,d,n[0],3614090360,7),d=g(d,a,b,c,n[1],3905402710,12),c=g(c,d,a,b,n[2],606105819, -17),b=g(b,c,d,a,n[3],3250441966,22),a=g(a,b,c,d,n[4],4118548399,7),d=g(d,a,b,c,n[5],1200080426,12),c=g(c,d,a,b,n[6],2821735955,17),b=g(b,c,d,a,n[7],4249261313,22),a=g(a,b,c,d,n[8],1770035416,7),d=g(d,a,b,c,n[9],2336552879,12),c=g(c,d,a,b,n[10],4294925233,17),b=g(b,c,d,a,n[11],2304563134,22),a=g(a,b,c,d,n[12],1804603682,7),d=g(d,a,b,c,n[13],4254626195,12),c=g(c,d,a,b,n[14],2792965006,17),b=g(b,c,d,a,n[15],1236535329,22),a=e(a,b,c,d,n[1],4129170786,5),d=e(d,a,b,c,n[6],3225465664,9),c=e(c,d,a,b,n[11], -643717713,14),b=e(b,c,d,a,n[0],3921069994,20),a=e(a,b,c,d,n[5],3593408605,5),d=e(d,a,b,c,n[10],38016083,9),c=e(c,d,a,b,n[15],3634488961,14),b=e(b,c,d,a,n[4],3889429448,20),a=e(a,b,c,d,n[9],568446438,5),d=e(d,a,b,c,n[14],3275163606,9),c=e(c,d,a,b,n[3],4107603335,14),b=e(b,c,d,a,n[8],1163531501,20),a=e(a,b,c,d,n[13],2850285829,5),d=e(d,a,b,c,n[2],4243563512,9),c=e(c,d,a,b,n[7],1735328473,14),b=e(b,c,d,a,n[12],2368359562,20),a=m(a,b,c,d,n[5],4294588738,4),d=m(d,a,b,c,n[8],2272392833,11),c=m(c,d,a,b, -n[11],1839030562,16),b=m(b,c,d,a,n[14],4259657740,23),a=m(a,b,c,d,n[1],2763975236,4),d=m(d,a,b,c,n[4],1272893353,11),c=m(c,d,a,b,n[7],4139469664,16),b=m(b,c,d,a,n[10],3200236656,23),a=m(a,b,c,d,n[13],681279174,4),d=m(d,a,b,c,n[0],3936430074,11),c=m(c,d,a,b,n[3],3572445317,16),b=m(b,c,d,a,n[6],76029189,23),a=m(a,b,c,d,n[9],3654602809,4),d=m(d,a,b,c,n[12],3873151461,11),c=m(c,d,a,b,n[15],530742520,16),b=m(b,c,d,a,n[2],3299628645,23),a=p(a,b,c,d,n[0],4096336452,6),d=p(d,a,b,c,n[7],1126891415,10),c=p(c, -d,a,b,n[14],2878612391,15),b=p(b,c,d,a,n[5],4237533241,21),a=p(a,b,c,d,n[12],1700485571,6),d=p(d,a,b,c,n[3],2399980690,10),c=p(c,d,a,b,n[10],4293915773,15),b=p(b,c,d,a,n[1],2240044497,21),a=p(a,b,c,d,n[8],1873313359,6),d=p(d,a,b,c,n[15],4264355552,10),c=p(c,d,a,b,n[6],2734768916,15),b=p(b,c,d,a,n[13],1309151649,21),a=p(a,b,c,d,n[4],4149444226,6),d=p(d,a,b,c,n[11],3174756917,10),c=p(c,d,a,b,n[2],718787259,15),b=p(b,c,d,a,n[9],3951481745,21);this._a=this._a+a|0;this._b=this._b+b|0;this._c=this._c+c| -0;this._d=this._d+d|0};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._blockSize;){for(var e=this._blockOffset;ea;++a)n[a]=this._block.readInt32LE(4*a);var a=this._a,b=this._b,c=this._c,e=this._d,a=g(a,b,c,e,n[0],3614090360,7),e=g(e,a,b,c,n[1],3905402710,12),c=g(c,e,a,b,n[2],606105819, +17),b=g(b,c,e,a,n[3],3250441966,22),a=g(a,b,c,e,n[4],4118548399,7),e=g(e,a,b,c,n[5],1200080426,12),c=g(c,e,a,b,n[6],2821735955,17),b=g(b,c,e,a,n[7],4249261313,22),a=g(a,b,c,e,n[8],1770035416,7),e=g(e,a,b,c,n[9],2336552879,12),c=g(c,e,a,b,n[10],4294925233,17),b=g(b,c,e,a,n[11],2304563134,22),a=g(a,b,c,e,n[12],1804603682,7),e=g(e,a,b,c,n[13],4254626195,12),c=g(c,e,a,b,n[14],2792965006,17),b=g(b,c,e,a,n[15],1236535329,22),a=f(a,b,c,e,n[1],4129170786,5),e=f(e,a,b,c,n[6],3225465664,9),c=f(c,e,a,b,n[11], +643717713,14),b=f(b,c,e,a,n[0],3921069994,20),a=f(a,b,c,e,n[5],3593408605,5),e=f(e,a,b,c,n[10],38016083,9),c=f(c,e,a,b,n[15],3634488961,14),b=f(b,c,e,a,n[4],3889429448,20),a=f(a,b,c,e,n[9],568446438,5),e=f(e,a,b,c,n[14],3275163606,9),c=f(c,e,a,b,n[3],4107603335,14),b=f(b,c,e,a,n[8],1163531501,20),a=f(a,b,c,e,n[13],2850285829,5),e=f(e,a,b,c,n[2],4243563512,9),c=f(c,e,a,b,n[7],1735328473,14),b=f(b,c,e,a,n[12],2368359562,20),a=m(a,b,c,e,n[5],4294588738,4),e=m(e,a,b,c,n[8],2272392833,11),c=m(c,e,a,b, +n[11],1839030562,16),b=m(b,c,e,a,n[14],4259657740,23),a=m(a,b,c,e,n[1],2763975236,4),e=m(e,a,b,c,n[4],1272893353,11),c=m(c,e,a,b,n[7],4139469664,16),b=m(b,c,e,a,n[10],3200236656,23),a=m(a,b,c,e,n[13],681279174,4),e=m(e,a,b,c,n[0],3936430074,11),c=m(c,e,a,b,n[3],3572445317,16),b=m(b,c,e,a,n[6],76029189,23),a=m(a,b,c,e,n[9],3654602809,4),e=m(e,a,b,c,n[12],3873151461,11),c=m(c,e,a,b,n[15],530742520,16),b=m(b,c,e,a,n[2],3299628645,23),a=p(a,b,c,e,n[0],4096336452,6),e=p(e,a,b,c,n[7],1126891415,10),c=p(c, +e,a,b,n[14],2878612391,15),b=p(b,c,e,a,n[5],4237533241,21),a=p(a,b,c,e,n[12],1700485571,6),e=p(e,a,b,c,n[3],2399980690,10),c=p(c,e,a,b,n[10],4293915773,15),b=p(b,c,e,a,n[1],2240044497,21),a=p(a,b,c,e,n[8],1873313359,6),e=p(e,a,b,c,n[15],4264355552,10),c=p(c,e,a,b,n[6],2734768916,15),b=p(b,c,e,a,n[13],1309151649,21),a=p(a,b,c,e,n[4],4149444226,6),e=p(e,a,b,c,n[11],3174756917,10),c=p(c,e,a,b,n[2],718787259,15),b=p(b,c,e,a,n[9],3951481745,21);this._a=this._a+a|0;this._b=this._b+b|0;this._c=this._c+c| +0;this._d=this._d+e|0};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._blockSize;){for(var f=this._blockOffset;fa;++a)this._length[a]=0;return b};c.prototype._digest=function(){throw Error("_digest is not implemented");};b.exports=c},{inherits:119,"safe-buffer":160,stream:169}],124:[function(k,b,a){function c(a){this.rand=a||new h.Rand} -var d=k("bn.js"),h=k("brorand");b.exports=c;c.create=function(a){return new c(a)};c.prototype._randbelow=function(a){var b=a.bitLength(),b=Math.ceil(b/8);do var c=new d(this.rand.generate(b));while(0<=c.cmp(a));return c};c.prototype._randrange=function(a,b){b=b.sub(a);return a.add(this._randbelow(b))};c.prototype.test=function(a,b,c){var e=a.bitLength(),f=d.mont(a),h=(new d(1)).toRed(f);b||(b=Math.max(1,e/48|0));for(var e=a.subn(1),g=0;!e.testn(g);g++);a=a.shrn(g);for(var k=e.toRed(f);0>8,d=d&255;h?c.push(h,d):c.push(d)}return c};a.zero2=c;a.toHex=d;a.encode=function(a,b){return"hex"===b?d(a):a}},{}],127:[function(k,b,a){b.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb", "2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],128:[function(k,b,a){b=k("asn1.js");a.certificate=k("./certificate");k=b.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(), this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});a.RSAPrivateKey=k;k=b.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});a.RSAPublicKey=k;k=b.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}); @@ -1186,134 +1186,134 @@ a.PublicKey=k;var c=b.define("AlgorithmIdentifier",function(){this.seq().obj(thi this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});a.EncryptedPrivateKey=k;k=b.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}); a.DSAPrivateKey=k;a.DSAparam=b.define("DSAparam",function(){this.int()});k=b.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});a.ECPrivateKey=k;var d=b.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});a.signature=b.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":129, "asn1.js":19}],129:[function(k,b,a){k=k("asn1.js");var c=k.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),d=k.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),h=k.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),g=k.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())}), -e=k.define("RelativeDistinguishedName",function(){this.setof(d)}),m=k.define("RDNSequence",function(){this.seqof(e)}),p=k.define("Name",function(){this.choice({rdnSequence:this.use(m)})}),f=k.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))}),l=k.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),n=k.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(), -this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(p),this.key("validity").use(f),this.key("subject").use(p),this.key("subjectPublicKeyInfo").use(g),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())});k=k.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(n),this.key("signatureAlgorithm").use(h),this.key("signatureValue").bitstr())}); -b.exports=k},{"asn1.js":19}],130:[function(k,b,a){(function(a){var c=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,h=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,g=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,e=k("evp_bytestokey"),m=k("browserify-aes");b.exports=function(b,d){b=b.toString();var f=b.match(c),k;if(f){var p="aes"+f[1],u=new a(f[2],"hex");k=new a(f[3].replace(/\r?\n/g, -""),"base64");f=e(d,u.slice(0,8),parseInt(f[1],10)).key;d=[];p=m.createDecipheriv(p,f,u);d.push(p.update(k));d.push(p.final());k=a.concat(d)}else k=b.match(g),k=new a(k[2].replace(/\r?\n/g,""),"base64");return{tag:b.match(h)[1],data:k}}}).call(this,k("buffer").Buffer)},{"browserify-aes":39,buffer:65,evp_bytestokey:102}],131:[function(k,b,a){(function(a){function c(b){var c;"object"!==typeof b||a.isBuffer(b)||(c=b.passphrase,b=b.key);"string"===typeof b&&(b=new a(b));var d=e(b,c);b=d.tag;var d=d.data, -f;switch(b){case "CERTIFICATE":f=h.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case "PUBLIC KEY":f||(f=h.PublicKey.decode(d,"der"));c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case "1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case "1.2.840.10040.4.1":return f.algorithm.params.pub_key=h.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params}; -default:throw Error("unknown key id "+c);}throw Error("unknown key type "+b);case "ENCRYPTED PRIVATE KEY":var k=d=h.EncryptedPrivateKey.decode(d,"der"),d=c,y=k.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(k.algorithm.decrypt.kde.kdeparams.iters.toString(),10);f=g[k.algorithm.decrypt.cipher.algo.join(".")];b=k.algorithm.decrypt.cipher.iv;c=k.subjectPrivateKey;k=parseInt(f.split("-")[1],10)/8;d=p.pbkdf2Sync(d,y,C,k);f=m.createDecipheriv(f,d,b);b=[];b.push(f.update(c));b.push(f.final());d=a.concat(b); -case "PRIVATE KEY":f=h.PrivateKey.decode(d,"der");c=f.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case "1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:h.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case "1.2.840.10040.4.1":return f.algorithm.params.priv_key=h.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw Error("unknown key id "+c);}throw Error("unknown key type "+ -b);case "RSA PUBLIC KEY":return h.RSAPublicKey.decode(d,"der");case "RSA PRIVATE KEY":return h.RSAPrivateKey.decode(d,"der");case "DSA PRIVATE KEY":return{type:"dsa",params:h.DSAPrivateKey.decode(d,"der")};case "EC PRIVATE KEY":return d=h.ECPrivateKey.decode(d,"der"),{curve:d.parameters.value,privateKey:d.privateKey};default:throw Error("unknown key type "+b);}}var h=k("./asn1"),g=k("./aesid.json"),e=k("./fixProc"),m=k("browserify-aes"),p=k("pbkdf2");b.exports=c;c.signature=h.signature}).call(this, +f=k.define("RelativeDistinguishedName",function(){this.setof(d)}),m=k.define("RDNSequence",function(){this.seqof(f)}),p=k.define("Name",function(){this.choice({rdnSequence:this.use(m)})}),e=k.define("Validity",function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))}),l=k.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),n=k.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(), +this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(p),this.key("validity").use(e),this.key("subject").use(p),this.key("subjectPublicKeyInfo").use(g),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())});k=k.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(n),this.key("signatureAlgorithm").use(h),this.key("signatureValue").bitstr())}); +b.exports=k},{"asn1.js":19}],130:[function(k,b,a){(function(a){var c=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,h=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,g=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,f=k("evp_bytestokey"),m=k("browserify-aes");b.exports=function(b,e){b=b.toString();var d=b.match(c),k;if(d){var p="aes"+d[1],u=new a(d[2],"hex");k=new a(d[3].replace(/\r?\n/g, +""),"base64");d=f(e,u.slice(0,8),parseInt(d[1],10)).key;e=[];p=m.createDecipheriv(p,d,u);e.push(p.update(k));e.push(p.final());k=a.concat(e)}else k=b.match(g),k=new a(k[2].replace(/\r?\n/g,""),"base64");return{tag:b.match(h)[1],data:k}}}).call(this,k("buffer").Buffer)},{"browserify-aes":39,buffer:65,evp_bytestokey:102}],131:[function(k,b,a){(function(a){function c(b){var c;"object"!==typeof b||a.isBuffer(b)||(c=b.passphrase,b=b.key);"string"===typeof b&&(b=new a(b));var e=f(b,c);b=e.tag;var e=e.data, +d;switch(b){case "CERTIFICATE":d=h.certificate.decode(e,"der").tbsCertificate.subjectPublicKeyInfo;case "PUBLIC KEY":d||(d=h.PublicKey.decode(e,"der"));c=d.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case "1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case "1.2.840.10040.4.1":return d.algorithm.params.pub_key=h.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params}; +default:throw Error("unknown key id "+c);}throw Error("unknown key type "+b);case "ENCRYPTED PRIVATE KEY":var k=e=h.EncryptedPrivateKey.decode(e,"der"),e=c,y=k.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(k.algorithm.decrypt.kde.kdeparams.iters.toString(),10);d=g[k.algorithm.decrypt.cipher.algo.join(".")];b=k.algorithm.decrypt.cipher.iv;c=k.subjectPrivateKey;k=parseInt(d.split("-")[1],10)/8;e=p.pbkdf2Sync(e,y,C,k);d=m.createDecipheriv(d,e,b);b=[];b.push(d.update(c));b.push(d.final());e=a.concat(b); +case "PRIVATE KEY":d=h.PrivateKey.decode(e,"der");c=d.algorithm.algorithm.join(".");switch(c){case "1.2.840.113549.1.1.1":return h.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case "1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:h.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case "1.2.840.10040.4.1":return d.algorithm.params.priv_key=h.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw Error("unknown key id "+c);}throw Error("unknown key type "+ +b);case "RSA PUBLIC KEY":return h.RSAPublicKey.decode(e,"der");case "RSA PRIVATE KEY":return h.RSAPrivateKey.decode(e,"der");case "DSA PRIVATE KEY":return{type:"dsa",params:h.DSAPrivateKey.decode(e,"der")};case "EC PRIVATE KEY":return e=h.ECPrivateKey.decode(e,"der"),{curve:e.parameters.value,privateKey:e.privateKey};default:throw Error("unknown key type "+b);}}var h=k("./asn1"),g=k("./aesid.json"),f=k("./fixProc"),m=k("browserify-aes"),p=k("pbkdf2");b.exports=c;c.signature=h.signature}).call(this, k("buffer").Buffer)},{"./aesid.json":127,"./asn1":128,"./fixProc":130,"browserify-aes":39,buffer:65,pbkdf2:132}],132:[function(k,b,a){a.pbkdf2=k("./lib/async");a.pbkdf2Sync=k("./lib/sync")},{"./lib/async":133,"./lib/sync":136}],133:[function(k,b,a){(function(a,d){function c(a){if(d.process&&!d.process.browser||!r||!r.importKey||!r.deriveBits)return Promise.resolve(!1);if(void 0!==y[a])return y[a];n=n||l.alloc(8);var b=g(n,n,10,128,a).then(function(){return!0}).catch(function(){return!1});return y[a]= -b}function g(a,b,c,e,d){return r.importKey("raw",a,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return r.deriveBits({name:"PBKDF2",salt:b,iterations:c,hash:{name:d}},a,e<<3)}).then(function(a){return l.from(a)})}function e(b,c){b.then(function(b){a.nextTick(function(){c(null,b)})},function(b){a.nextTick(function(){c(b)})})}var m=k("./precondition"),p=k("./default-encoding"),f=k("./sync"),l=k("safe-buffer").Buffer,n,r=d.crypto&&d.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256", -"sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];b.exports=function(b,h,k,n,r,w){l.isBuffer(b)||(b=l.from(b,p));l.isBuffer(h)||(h=l.from(h,p));m(k,n);"function"===typeof r&&(w=r,r=void 0);if("function"!==typeof w)throw Error("No callback provided to pbkdf2");r=r||"sha1";var q=u[r.toLowerCase()];if(!q||"function"!==typeof d.Promise)return a.nextTick(function(){var a;try{a=f(b,h,k,n,r)}catch(F){return w(F)}w(null,a)});e(c(q).then(function(a){return a? -g(b,h,k,n,q):f(b,h,k,n,r)}),w)}}).call(this,k("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./default-encoding":134,"./precondition":135,"./sync":136,_process:138,"safe-buffer":160}],134:[function(k,b,a){k=k("_process");k=k.browser?"utf-8":6<=parseInt(k.version.split(".")[0].slice(1),10)?"utf-8":"binary";b.exports=k},{_process:138}],135:[function(k,b,a){var c=Math.pow(2,30)-1;b.exports=function(a,b){if("number"!==typeof a)throw new TypeError("Iterations not a number"); -if(0>a)throw new TypeError("Bad iterations");if("number"!==typeof b)throw new TypeError("Key length not a number");if(0>b||b>c||b!==b)throw new TypeError("Bad key length");}},{}],136:[function(k,b,a){function c(a,b,c){var e=d(a),h="sha512"===a||"sha384"===a?128:64;b.length>h?b=e(b):b.lengtha)throw new TypeError("Bad iterations");if("number"!==typeof b)throw new TypeError("Key length not a number");if(0>b||b>c||b!==b)throw new TypeError("Bad key length");}},{}],136:[function(k,b,a){function c(a,b,c){var f=d(a),h="sha512"===a||"sha384"===a?128:64;b.length>h?b=f(b):b.lengthn||0<=(new e(d)).cmp(b.modulus))throw Error("decryption error");d=k?f(new e(d),b):m(d,b);var r=new a(n-d.length);r.fill(0);d=a.concat([r,d],n);if(4===l){n=d;l=b.modulus.byteLength();b=p("sha1").update(new a("")).digest();k=b.length;if(0!==n[0])throw Error("decryption error");d=n.slice(1,k+1);n=n.slice(k+1);d=g(d,h(n,k));l=g(n,h(d,l-k-1));n=l.slice(0,k);b=new a(b);n=new a(n);d=0;r=b.length;b.length!== +a,0)}}}function g(a){if(n===clearTimeout)return clearTimeout(a);if((n===d||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(a);try{return n(a)}catch(z){try{return n.call(null,a)}catch(D){return n.call(this,a)}}}function f(){u&&y&&(u=!1,y.length?r=y.concat(r):C=-1,r.length&&m())}function m(){if(!u){var a=h(f);u=!0;for(var b=r.length;b;){y=r;for(r=[];++Cn||0<=(new f(d)).cmp(b.modulus))throw Error("decryption error");d=k?e(new f(d),b):m(d,b);var r=new a(n-d.length);r.fill(0);d=a.concat([r,d],n);if(4===l){n=d;l=b.modulus.byteLength();b=p("sha1").update(new a("")).digest();k=b.length;if(0!==n[0])throw Error("decryption error");d=n.slice(1,k+1);n=n.slice(k+1);d=g(d,h(n,k));l=g(n,h(d,l-k-1));n=l.slice(0,k);b=new a(b);n=new a(n);d=0;r=b.length;b.length!== n.length&&(d++,r=Math.min(b.length,n.length));for(var q=-1;++q=l.length){d++;break}r=l.slice(2,n-1);l.slice(n-1,n);("0002"!==b.toString("hex")&&!k||"0001"!==b.toString("hex")&&k)&&d++;8>r.length&&d++;if(d)throw Error("decryption error");return l.slice(n)}if(3===l)return d;throw Error("unknown padding");}}).call(this, -k("buffer").Buffer)},{"./mgf":140,"./withPublic":143,"./xor":144,"bn.js":34,"browserify-rsa":57,buffer:65,"create-hash":69,"parse-asn1":131}],142:[function(k,b,a){(function(a){var c=k("parse-asn1"),h=k("randombytes"),g=k("create-hash"),e=k("./mgf"),m=k("./xor"),p=k("bn.js"),f=k("./withPublic"),l=k("browserify-rsa");b.exports=function(b,d,k){var n;n=b.padding?b.padding:k?1:4;b=c(b);if(4===n){n=b.modulus.byteLength();var r=d.length,q=g("sha1").update(new a("")).digest(),z=q.length,u=2*z;if(r>n-u-2)throw Error("message too long"); -u=new a(n-r-u-2);u.fill(0);var v=n-z-1,r=h(z);d=m(a.concat([q,u,new a([1]),d],v),e(r,v));z=m(r,e(d,z));d=new p(a.concat([new a([0]),z,d],n))}else if(1===n){z=d.length;n=b.modulus.byteLength();if(z>n-11)throw Error("message too long");if(k)z=new a(n-z-3),z.fill(255);else{for(var z=n-z-3,q=new a(z),r=0,u=h(2*z),v=0,w;rn-u-2)throw Error("message too long"); +u=new a(n-r-u-2);u.fill(0);var v=n-z-1,r=h(z);d=m(a.concat([q,u,new a([1]),d],v),f(r,v));z=m(r,f(d,z));d=new p(a.concat([new a([0]),z,d],n))}else if(1===n){z=d.length;n=b.modulus.byteLength();if(z>n-11)throw Error("message too long");if(k)z=new a(n-z-3),z.fill(255);else{for(var z=n-z-3,q=new a(z),r=0,u=h(2*z),v=0,w;r=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}function l(a){var b=a._readableState;b.needReadable=!1;b.emittedReadable||(t("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?x(n,a):n(a))}function n(a){t("emit readable"); +a.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;a.encoding&&(J||(J=k("string_decoder/").StringDecoder),this.decoder=new J(a.encoding),this.encoding=a.encoding)}function f(a){F=F||k("./_stream_duplex");if(!(this instanceof f))return new f(a);this._readableState=new g(a,this);this.readable=!0;a&&("function"===typeof a.read&&(this._read=a.read),"function"===typeof a.destroy&&(this._destroy=a.destroy));B.call(this)}function m(a,b,c,f,e){var d=a._readableState; +if(null===b)d.reading=!1,d.ended||(d.decoder&&(b=d.decoder.end())&&b.length&&(d.buffer.push(b),d.length+=d.objectMode?1:b.length),d.ended=!0,l(a));else{var h;if(!e){e=b;var g;I.isBuffer(e)||e instanceof E||"string"===typeof e||void 0===e||d.objectMode||(g=new TypeError("Invalid non-string/buffer chunk"));h=g}h?a.emit("error",h):d.objectMode||b&&0=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}function l(a){var b=a._readableState;b.needReadable=!1;b.emittedReadable||(t("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?x(n,a):n(a))}function n(a){t("emit readable"); a.emit("readable");q(a)}function r(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length)c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear();else{c=b.buffer;b=b.decoder;if(af.length?f.length:a,d=h===f.length?d+f:d+f.slice(0,a);a-=h;if(0===a){h===f.length?(++e,c.head=b.next?b.next:c.tail=null):(c.head=b,b.data=f.slice(h));break}++e}c.length-=e;c=d}else{b=I.allocUnsafe(a);e=c.head;d=1;e.data.copy(b);for(a-=e.data.length;e=e.next;){f=e.data;h=a>f.length?f.length:a;f.copy(b,b.length-a,0,h);a-=h;if(0===a){h===f.length?(++d,c.head=e.next?e.next:c.tail=null):(c.head= -e,e.data=f.slice(h));break}++d}c.length-=d;c=b}b=c}c=b}return c}function D(a){var b=a._readableState;if(0=b.highWaterMark||b.ended))return t("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?D(this):l(this),null;a=f(a,b);if(0===a&&b.ended)return 0===b.length&&D(this),null;var e=b.needReadable;t("need readable",e);if(0===b.length||b.length-ad.length?d.length:a,e=h===d.length?e+d:e+d.slice(0,a);a-=h;if(0===a){h===d.length?(++f,c.head=b.next?b.next:c.tail=null):(c.head=b,b.data=d.slice(h));break}++f}c.length-=f;c=e}else{b=I.allocUnsafe(a);f=c.head;e=1;f.data.copy(b);for(a-=f.data.length;f=f.next;){d=f.data;h=a>d.length?d.length:a;d.copy(b,b.length-a,0,h);a-=h;if(0===a){h===d.length?(++e,c.head=f.next?f.next:c.tail=null):(c.head= +f,f.data=d.slice(h));break}++e}c.length-=e;c=b}b=c}c=b}return c}function D(a){var b=a._readableState;if(0=b.highWaterMark||b.ended))return t("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?D(this):l(this),null;a=e(a,b);if(0===a&&b.ended)return 0===b.length&&D(this),null;var f=b.needReadable;t("need readable",f);if(0===b.length||b.length-a>>0);for(var b=this.head,e=0;b;)b.data.copy(a,e),e+=b.data.length,b=b.next;return a};return a}()},{"safe-buffer":160}],153:[function(k,b,a){function c(a,b){a.emit("error",b)}var d=k("process-nextick-args"); -b.exports={destroy:function(a,b){var e=this,h=this._writableState&&this._writableState.destroyed;this._readableState&&this._readableState.destroyed||h?b?b(a):!a||this._writableState&&this._writableState.errorEmitted||d(c,this,a):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?(d(c,e,a),e._writableState&&(e._writableState.errorEmitted=!0)):b&&b(a)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed= +function(){this.head=this.tail=null;this.length=0};a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c};a.prototype.concat=function(a){if(0===this.length)return c.alloc(0);if(1===this.length)return this.head.data;a=c.allocUnsafe(a>>>0);for(var b=this.head,f=0;b;)b.data.copy(a,f),f+=b.data.length,b=b.next;return a};return a}()},{"safe-buffer":160}],153:[function(k,b,a){function c(a,b){a.emit("error",b)}var d=k("process-nextick-args"); +b.exports={destroy:function(a,b){var f=this,h=this._writableState&&this._writableState.destroyed;this._readableState&&this._readableState.destroyed||h?b?b(a):!a||this._writableState&&this._writableState.errorEmitted||d(c,this,a):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?(d(c,f,a),f._writableState&&(f._writableState.errorEmitted=!0)):b&&b(a)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed= !1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":137}],154:[function(k,b,a){b.exports=k("events").EventEmitter},{events:101}],155:[function(k,b,a){b.exports=k("./readable").PassThrough},{"./readable":156}],156:[function(k,b,a){a=b.exports=k("./lib/_stream_readable.js"); a.Stream=a;a.Readable=a;a.Writable=k("./lib/_stream_writable.js");a.Duplex=k("./lib/_stream_duplex.js");a.Transform=k("./lib/_stream_transform.js");a.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":147,"./lib/_stream_passthrough.js":148,"./lib/_stream_readable.js":149,"./lib/_stream_transform.js":150,"./lib/_stream_writable.js":151}],157:[function(k,b,a){b.exports=k("./readable").Transform},{"./readable":156}],158:[function(k,b,a){b.exports=k("./lib/_stream_writable.js")}, -{"./lib/_stream_writable.js":151}],159:[function(k,b,a){(function(a){function c(){n.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}function h(a,b){return a<>>32-b}function g(a,b,c,e,d,f,g,k){return h(a+(b^c^e)+f+g|0,k)+d|0}function e(a,b,c,e,d,f,g,k){return h(a+(b&c|~b&e)+f+g|0,k)+d|0}function m(a,b,c,e,d,f,g,k){return h(a+((b|~c)^e)+f+g|0,k)+d|0}function p(a,b,c,e,d,f,g,k){return h(a+(b&e|c&~e)+f+g|0,k)+d|0}function f(a,b,c,e,d,f, -g,k){return h(a+(b^(c|~e))+f+g|0,k)+d|0}var l=k("inherits"),n=k("hash-base");l(c,n);c.prototype._update=function(){for(var a=Array(16),b=0;16>b;++b)a[b]=this._block.readInt32LE(4*b);var b=this._a,c=this._b,d=this._c,k=this._d,l=this._e,b=g(b,c,d,k,l,a[0],0,11),d=h(d,10),l=g(l,b,c,d,k,a[1],0,14),c=h(c,10),k=g(k,l,b,c,d,a[2],0,15),b=h(b,10),d=g(d,k,l,b,c,a[3],0,12),l=h(l,10),c=g(c,d,k,l,b,a[4],0,5),k=h(k,10),b=g(b,c,d,k,l,a[5],0,8),d=h(d,10),l=g(l,b,c,d,k,a[6],0,7),c=h(c,10),k=g(k,l,b,c,d,a[7],0,9), -b=h(b,10),d=g(d,k,l,b,c,a[8],0,11),l=h(l,10),c=g(c,d,k,l,b,a[9],0,13),k=h(k,10),b=g(b,c,d,k,l,a[10],0,14),d=h(d,10),l=g(l,b,c,d,k,a[11],0,15),c=h(c,10),k=g(k,l,b,c,d,a[12],0,6),b=h(b,10),d=g(d,k,l,b,c,a[13],0,7),l=h(l,10),c=g(c,d,k,l,b,a[14],0,9),k=h(k,10),b=g(b,c,d,k,l,a[15],0,8),d=h(d,10),l=e(l,b,c,d,k,a[7],1518500249,7),c=h(c,10),k=e(k,l,b,c,d,a[4],1518500249,6),b=h(b,10),d=e(d,k,l,b,c,a[13],1518500249,8),l=h(l,10),c=e(c,d,k,l,b,a[1],1518500249,13),k=h(k,10),b=e(b,c,d,k,l,a[10],1518500249,11), -d=h(d,10),l=e(l,b,c,d,k,a[6],1518500249,9),c=h(c,10),k=e(k,l,b,c,d,a[15],1518500249,7),b=h(b,10),d=e(d,k,l,b,c,a[3],1518500249,15),l=h(l,10),c=e(c,d,k,l,b,a[12],1518500249,7),k=h(k,10),b=e(b,c,d,k,l,a[0],1518500249,12),d=h(d,10),l=e(l,b,c,d,k,a[9],1518500249,15),c=h(c,10),k=e(k,l,b,c,d,a[5],1518500249,9),b=h(b,10),d=e(d,k,l,b,c,a[2],1518500249,11),l=h(l,10),c=e(c,d,k,l,b,a[14],1518500249,7),k=h(k,10),b=e(b,c,d,k,l,a[11],1518500249,13),d=h(d,10),l=e(l,b,c,d,k,a[8],1518500249,12),c=h(c,10),k=m(k,l, +{"./lib/_stream_writable.js":151}],159:[function(k,b,a){(function(a){function c(){n.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}function h(a,b){return a<>>32-b}function g(a,b,c,f,e,d,g,k){return h(a+(b^c^f)+d+g|0,k)+e|0}function f(a,b,c,f,e,d,g,k){return h(a+(b&c|~b&f)+d+g|0,k)+e|0}function m(a,b,c,f,e,d,g,k){return h(a+((b|~c)^f)+d+g|0,k)+e|0}function p(a,b,c,f,e,d,g,k){return h(a+(b&f|c&~f)+d+g|0,k)+e|0}function e(a,b,c,f,e,d, +g,k){return h(a+(b^(c|~f))+d+g|0,k)+e|0}var l=k("inherits"),n=k("hash-base");l(c,n);c.prototype._update=function(){for(var a=Array(16),b=0;16>b;++b)a[b]=this._block.readInt32LE(4*b);var b=this._a,c=this._b,d=this._c,k=this._d,l=this._e,b=g(b,c,d,k,l,a[0],0,11),d=h(d,10),l=g(l,b,c,d,k,a[1],0,14),c=h(c,10),k=g(k,l,b,c,d,a[2],0,15),b=h(b,10),d=g(d,k,l,b,c,a[3],0,12),l=h(l,10),c=g(c,d,k,l,b,a[4],0,5),k=h(k,10),b=g(b,c,d,k,l,a[5],0,8),d=h(d,10),l=g(l,b,c,d,k,a[6],0,7),c=h(c,10),k=g(k,l,b,c,d,a[7],0,9), +b=h(b,10),d=g(d,k,l,b,c,a[8],0,11),l=h(l,10),c=g(c,d,k,l,b,a[9],0,13),k=h(k,10),b=g(b,c,d,k,l,a[10],0,14),d=h(d,10),l=g(l,b,c,d,k,a[11],0,15),c=h(c,10),k=g(k,l,b,c,d,a[12],0,6),b=h(b,10),d=g(d,k,l,b,c,a[13],0,7),l=h(l,10),c=g(c,d,k,l,b,a[14],0,9),k=h(k,10),b=g(b,c,d,k,l,a[15],0,8),d=h(d,10),l=f(l,b,c,d,k,a[7],1518500249,7),c=h(c,10),k=f(k,l,b,c,d,a[4],1518500249,6),b=h(b,10),d=f(d,k,l,b,c,a[13],1518500249,8),l=h(l,10),c=f(c,d,k,l,b,a[1],1518500249,13),k=h(k,10),b=f(b,c,d,k,l,a[10],1518500249,11), +d=h(d,10),l=f(l,b,c,d,k,a[6],1518500249,9),c=h(c,10),k=f(k,l,b,c,d,a[15],1518500249,7),b=h(b,10),d=f(d,k,l,b,c,a[3],1518500249,15),l=h(l,10),c=f(c,d,k,l,b,a[12],1518500249,7),k=h(k,10),b=f(b,c,d,k,l,a[0],1518500249,12),d=h(d,10),l=f(l,b,c,d,k,a[9],1518500249,15),c=h(c,10),k=f(k,l,b,c,d,a[5],1518500249,9),b=h(b,10),d=f(d,k,l,b,c,a[2],1518500249,11),l=h(l,10),c=f(c,d,k,l,b,a[14],1518500249,7),k=h(k,10),b=f(b,c,d,k,l,a[11],1518500249,13),d=h(d,10),l=f(l,b,c,d,k,a[8],1518500249,12),c=h(c,10),k=m(k,l, b,c,d,a[3],1859775393,11),b=h(b,10),d=m(d,k,l,b,c,a[10],1859775393,13),l=h(l,10),c=m(c,d,k,l,b,a[14],1859775393,6),k=h(k,10),b=m(b,c,d,k,l,a[4],1859775393,7),d=h(d,10),l=m(l,b,c,d,k,a[9],1859775393,14),c=h(c,10),k=m(k,l,b,c,d,a[15],1859775393,9),b=h(b,10),d=m(d,k,l,b,c,a[8],1859775393,13),l=h(l,10),c=m(c,d,k,l,b,a[1],1859775393,15),k=h(k,10),b=m(b,c,d,k,l,a[2],1859775393,14),d=h(d,10),l=m(l,b,c,d,k,a[7],1859775393,8),c=h(c,10),k=m(k,l,b,c,d,a[0],1859775393,13),b=h(b,10),d=m(d,k,l,b,c,a[6],1859775393, 6),l=h(l,10),c=m(c,d,k,l,b,a[13],1859775393,5),k=h(k,10),b=m(b,c,d,k,l,a[11],1859775393,12),d=h(d,10),l=m(l,b,c,d,k,a[5],1859775393,7),c=h(c,10),k=m(k,l,b,c,d,a[12],1859775393,5),b=h(b,10),d=p(d,k,l,b,c,a[1],2400959708,11),l=h(l,10),c=p(c,d,k,l,b,a[9],2400959708,12),k=h(k,10),b=p(b,c,d,k,l,a[11],2400959708,14),d=h(d,10),l=p(l,b,c,d,k,a[10],2400959708,15),c=h(c,10),k=p(k,l,b,c,d,a[0],2400959708,14),b=h(b,10),d=p(d,k,l,b,c,a[8],2400959708,15),l=h(l,10),c=p(c,d,k,l,b,a[12],2400959708,9),k=h(k,10),b= -p(b,c,d,k,l,a[4],2400959708,8),d=h(d,10),l=p(l,b,c,d,k,a[13],2400959708,9),c=h(c,10),k=p(k,l,b,c,d,a[3],2400959708,14),b=h(b,10),d=p(d,k,l,b,c,a[7],2400959708,5),l=h(l,10),c=p(c,d,k,l,b,a[15],2400959708,6),k=h(k,10),b=p(b,c,d,k,l,a[14],2400959708,8),d=h(d,10),l=p(l,b,c,d,k,a[5],2400959708,6),c=h(c,10),k=p(k,l,b,c,d,a[6],2400959708,5),b=h(b,10),d=p(d,k,l,b,c,a[2],2400959708,12),l=h(l,10),c=f(c,d,k,l,b,a[4],2840853838,9),k=h(k,10),b=f(b,c,d,k,l,a[0],2840853838,15),d=h(d,10),l=f(l,b,c,d,k,a[5],2840853838, -5),c=h(c,10),k=f(k,l,b,c,d,a[9],2840853838,11),b=h(b,10),d=f(d,k,l,b,c,a[7],2840853838,6),l=h(l,10),c=f(c,d,k,l,b,a[12],2840853838,8),k=h(k,10),b=f(b,c,d,k,l,a[2],2840853838,13),d=h(d,10),l=f(l,b,c,d,k,a[10],2840853838,12),c=h(c,10),k=f(k,l,b,c,d,a[14],2840853838,5),b=h(b,10),d=f(d,k,l,b,c,a[1],2840853838,12),l=h(l,10),c=f(c,d,k,l,b,a[3],2840853838,13),k=h(k,10),b=f(b,c,d,k,l,a[8],2840853838,14),d=h(d,10),l=f(l,b,c,d,k,a[11],2840853838,11),c=h(c,10),k=f(k,l,b,c,d,a[6],2840853838,8),b=h(b,10),d=f(d, -k,l,b,c,a[15],2840853838,5),l=h(l,10),c=f(c,d,k,l,b,a[13],2840853838,6),k=h(k,10),n=this._a,v=this._b,w=this._c,x=this._d,A=this._e,n=f(n,v,w,x,A,a[5],1352829926,8),w=h(w,10),A=f(A,n,v,w,x,a[14],1352829926,9),v=h(v,10),x=f(x,A,n,v,w,a[7],1352829926,9),n=h(n,10),w=f(w,x,A,n,v,a[0],1352829926,11),A=h(A,10),v=f(v,w,x,A,n,a[9],1352829926,13),x=h(x,10),n=f(n,v,w,x,A,a[2],1352829926,15),w=h(w,10),A=f(A,n,v,w,x,a[11],1352829926,15),v=h(v,10),x=f(x,A,n,v,w,a[4],1352829926,5),n=h(n,10),w=f(w,x,A,n,v,a[13], -1352829926,7),A=h(A,10),v=f(v,w,x,A,n,a[6],1352829926,7),x=h(x,10),n=f(n,v,w,x,A,a[15],1352829926,8),w=h(w,10),A=f(A,n,v,w,x,a[8],1352829926,11),v=h(v,10),x=f(x,A,n,v,w,a[1],1352829926,14),n=h(n,10),w=f(w,x,A,n,v,a[10],1352829926,14),A=h(A,10),v=f(v,w,x,A,n,a[3],1352829926,12),x=h(x,10),n=f(n,v,w,x,A,a[12],1352829926,6),w=h(w,10),A=p(A,n,v,w,x,a[6],1548603684,9),v=h(v,10),x=p(x,A,n,v,w,a[11],1548603684,13),n=h(n,10),w=p(w,x,A,n,v,a[3],1548603684,15),A=h(A,10),v=p(v,w,x,A,n,a[7],1548603684,7),x=h(x, +p(b,c,d,k,l,a[4],2400959708,8),d=h(d,10),l=p(l,b,c,d,k,a[13],2400959708,9),c=h(c,10),k=p(k,l,b,c,d,a[3],2400959708,14),b=h(b,10),d=p(d,k,l,b,c,a[7],2400959708,5),l=h(l,10),c=p(c,d,k,l,b,a[15],2400959708,6),k=h(k,10),b=p(b,c,d,k,l,a[14],2400959708,8),d=h(d,10),l=p(l,b,c,d,k,a[5],2400959708,6),c=h(c,10),k=p(k,l,b,c,d,a[6],2400959708,5),b=h(b,10),d=p(d,k,l,b,c,a[2],2400959708,12),l=h(l,10),c=e(c,d,k,l,b,a[4],2840853838,9),k=h(k,10),b=e(b,c,d,k,l,a[0],2840853838,15),d=h(d,10),l=e(l,b,c,d,k,a[5],2840853838, +5),c=h(c,10),k=e(k,l,b,c,d,a[9],2840853838,11),b=h(b,10),d=e(d,k,l,b,c,a[7],2840853838,6),l=h(l,10),c=e(c,d,k,l,b,a[12],2840853838,8),k=h(k,10),b=e(b,c,d,k,l,a[2],2840853838,13),d=h(d,10),l=e(l,b,c,d,k,a[10],2840853838,12),c=h(c,10),k=e(k,l,b,c,d,a[14],2840853838,5),b=h(b,10),d=e(d,k,l,b,c,a[1],2840853838,12),l=h(l,10),c=e(c,d,k,l,b,a[3],2840853838,13),k=h(k,10),b=e(b,c,d,k,l,a[8],2840853838,14),d=h(d,10),l=e(l,b,c,d,k,a[11],2840853838,11),c=h(c,10),k=e(k,l,b,c,d,a[6],2840853838,8),b=h(b,10),d=e(d, +k,l,b,c,a[15],2840853838,5),l=h(l,10),c=e(c,d,k,l,b,a[13],2840853838,6),k=h(k,10),n=this._a,v=this._b,w=this._c,x=this._d,A=this._e,n=e(n,v,w,x,A,a[5],1352829926,8),w=h(w,10),A=e(A,n,v,w,x,a[14],1352829926,9),v=h(v,10),x=e(x,A,n,v,w,a[7],1352829926,9),n=h(n,10),w=e(w,x,A,n,v,a[0],1352829926,11),A=h(A,10),v=e(v,w,x,A,n,a[9],1352829926,13),x=h(x,10),n=e(n,v,w,x,A,a[2],1352829926,15),w=h(w,10),A=e(A,n,v,w,x,a[11],1352829926,15),v=h(v,10),x=e(x,A,n,v,w,a[4],1352829926,5),n=h(n,10),w=e(w,x,A,n,v,a[13], +1352829926,7),A=h(A,10),v=e(v,w,x,A,n,a[6],1352829926,7),x=h(x,10),n=e(n,v,w,x,A,a[15],1352829926,8),w=h(w,10),A=e(A,n,v,w,x,a[8],1352829926,11),v=h(v,10),x=e(x,A,n,v,w,a[1],1352829926,14),n=h(n,10),w=e(w,x,A,n,v,a[10],1352829926,14),A=h(A,10),v=e(v,w,x,A,n,a[3],1352829926,12),x=h(x,10),n=e(n,v,w,x,A,a[12],1352829926,6),w=h(w,10),A=p(A,n,v,w,x,a[6],1548603684,9),v=h(v,10),x=p(x,A,n,v,w,a[11],1548603684,13),n=h(n,10),w=p(w,x,A,n,v,a[3],1548603684,15),A=h(A,10),v=p(v,w,x,A,n,a[7],1548603684,7),x=h(x, 10),n=p(n,v,w,x,A,a[0],1548603684,12),w=h(w,10),A=p(A,n,v,w,x,a[13],1548603684,8),v=h(v,10),x=p(x,A,n,v,w,a[5],1548603684,9),n=h(n,10),w=p(w,x,A,n,v,a[10],1548603684,11),A=h(A,10),v=p(v,w,x,A,n,a[14],1548603684,7),x=h(x,10),n=p(n,v,w,x,A,a[15],1548603684,7),w=h(w,10),A=p(A,n,v,w,x,a[8],1548603684,12),v=h(v,10),x=p(x,A,n,v,w,a[12],1548603684,7),n=h(n,10),w=p(w,x,A,n,v,a[4],1548603684,6),A=h(A,10),v=p(v,w,x,A,n,a[9],1548603684,15),x=h(x,10),n=p(n,v,w,x,A,a[1],1548603684,13),w=h(w,10),A=p(A,n,v,w,x, a[2],1548603684,11),v=h(v,10),x=m(x,A,n,v,w,a[15],1836072691,9),n=h(n,10),w=m(w,x,A,n,v,a[5],1836072691,7),A=h(A,10),v=m(v,w,x,A,n,a[1],1836072691,15),x=h(x,10),n=m(n,v,w,x,A,a[3],1836072691,11),w=h(w,10),A=m(A,n,v,w,x,a[7],1836072691,8),v=h(v,10),x=m(x,A,n,v,w,a[14],1836072691,6),n=h(n,10),w=m(w,x,A,n,v,a[6],1836072691,6),A=h(A,10),v=m(v,w,x,A,n,a[9],1836072691,14),x=h(x,10),n=m(n,v,w,x,A,a[11],1836072691,12),w=h(w,10),A=m(A,n,v,w,x,a[8],1836072691,13),v=h(v,10),x=m(x,A,n,v,w,a[12],1836072691,5), -n=h(n,10),w=m(w,x,A,n,v,a[2],1836072691,14),A=h(A,10),v=m(v,w,x,A,n,a[10],1836072691,13),x=h(x,10),n=m(n,v,w,x,A,a[0],1836072691,13),w=h(w,10),A=m(A,n,v,w,x,a[4],1836072691,7),v=h(v,10),x=m(x,A,n,v,w,a[13],1836072691,5),n=h(n,10),w=e(w,x,A,n,v,a[8],2053994217,15),A=h(A,10),v=e(v,w,x,A,n,a[6],2053994217,5),x=h(x,10),n=e(n,v,w,x,A,a[4],2053994217,8),w=h(w,10),A=e(A,n,v,w,x,a[1],2053994217,11),v=h(v,10),x=e(x,A,n,v,w,a[3],2053994217,14),n=h(n,10),w=e(w,x,A,n,v,a[11],2053994217,14),A=h(A,10),v=e(v,w, -x,A,n,a[15],2053994217,6),x=h(x,10),n=e(n,v,w,x,A,a[0],2053994217,14),w=h(w,10),A=e(A,n,v,w,x,a[5],2053994217,6),v=h(v,10),x=e(x,A,n,v,w,a[12],2053994217,9),n=h(n,10),w=e(w,x,A,n,v,a[2],2053994217,12),A=h(A,10),v=e(v,w,x,A,n,a[13],2053994217,9),x=h(x,10),n=e(n,v,w,x,A,a[9],2053994217,12),w=h(w,10),A=e(A,n,v,w,x,a[7],2053994217,5),v=h(v,10),x=e(x,A,n,v,w,a[10],2053994217,15),n=h(n,10),w=e(w,x,A,n,v,a[14],2053994217,8),A=h(A,10),v=g(v,w,x,A,n,a[12],0,8),x=h(x,10),n=g(n,v,w,x,A,a[15],0,5),w=h(w,10), +n=h(n,10),w=m(w,x,A,n,v,a[2],1836072691,14),A=h(A,10),v=m(v,w,x,A,n,a[10],1836072691,13),x=h(x,10),n=m(n,v,w,x,A,a[0],1836072691,13),w=h(w,10),A=m(A,n,v,w,x,a[4],1836072691,7),v=h(v,10),x=m(x,A,n,v,w,a[13],1836072691,5),n=h(n,10),w=f(w,x,A,n,v,a[8],2053994217,15),A=h(A,10),v=f(v,w,x,A,n,a[6],2053994217,5),x=h(x,10),n=f(n,v,w,x,A,a[4],2053994217,8),w=h(w,10),A=f(A,n,v,w,x,a[1],2053994217,11),v=h(v,10),x=f(x,A,n,v,w,a[3],2053994217,14),n=h(n,10),w=f(w,x,A,n,v,a[11],2053994217,14),A=h(A,10),v=f(v,w, +x,A,n,a[15],2053994217,6),x=h(x,10),n=f(n,v,w,x,A,a[0],2053994217,14),w=h(w,10),A=f(A,n,v,w,x,a[5],2053994217,6),v=h(v,10),x=f(x,A,n,v,w,a[12],2053994217,9),n=h(n,10),w=f(w,x,A,n,v,a[2],2053994217,12),A=h(A,10),v=f(v,w,x,A,n,a[13],2053994217,9),x=h(x,10),n=f(n,v,w,x,A,a[9],2053994217,12),w=h(w,10),A=f(A,n,v,w,x,a[7],2053994217,5),v=h(v,10),x=f(x,A,n,v,w,a[10],2053994217,15),n=h(n,10),w=f(w,x,A,n,v,a[14],2053994217,8),A=h(A,10),v=g(v,w,x,A,n,a[12],0,8),x=h(x,10),n=g(n,v,w,x,A,a[15],0,5),w=h(w,10), A=g(A,n,v,w,x,a[10],0,12),v=h(v,10),x=g(x,A,n,v,w,a[4],0,9),n=h(n,10),w=g(w,x,A,n,v,a[1],0,12),A=h(A,10),v=g(v,w,x,A,n,a[5],0,5),x=h(x,10),n=g(n,v,w,x,A,a[8],0,14),w=h(w,10),A=g(A,n,v,w,x,a[7],0,6),v=h(v,10),x=g(x,A,n,v,w,a[6],0,8),n=h(n,10),w=g(w,x,A,n,v,a[2],0,13),A=h(A,10),v=g(v,w,x,A,n,a[13],0,6),x=h(x,10),n=g(n,v,w,x,A,a[14],0,5),w=h(w,10),A=g(A,n,v,w,x,a[0],0,15),v=h(v,10),x=g(x,A,n,v,w,a[3],0,13),n=h(n,10),w=g(w,x,A,n,v,a[9],0,11),A=h(A,10),v=g(v,w,x,A,n,a[11],0,11),x=h(x,10),a=this._b+d+x| 0;this._b=this._c+k+A|0;this._c=this._d+l+n|0;this._d=this._e+b+v|0;this._e=this._a+c+w|0;this._a=a};c.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._finalSize&&(this._update(this._block),this._block.fill(0));b=8*this._len; +a;this._len=0}var d=k("safe-buffer").Buffer;c.prototype.update=function(a,b){"string"===typeof a&&(a=d.from(a,b||"utf8"));b=this._block;for(var c=this._blockSize,h=a.length,g=this._len,e=0;e=this._finalSize&&(this._update(this._block),this._block.fill(0));b=8*this._len; if(4294967295>=b)this._block.writeUInt32BE(b,this._blockSize-4);else{var c=b&4294967295;this._block.writeUInt32BE((b-c)/4294967296,this._blockSize-8);this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);b=this._hash();return a?b.toString(a):b};c.prototype._update=function(){throw Error("_update must be implemented by subclass");};b.exports=c},{"safe-buffer":160}],162:[function(k,b,a){a=b.exports=function(b){b=b.toLowerCase();var c=a[b];if(!c)throw Error(b+" is not supported (we accept pull requests)"); -return new c};a.sha=k("./sha");a.sha1=k("./sha1");a.sha224=k("./sha224");a.sha256=k("./sha256");a.sha384=k("./sha384");a.sha512=k("./sha512")},{"./sha":163,"./sha1":164,"./sha224":165,"./sha256":166,"./sha384":167,"./sha512":168}],163:[function(k,b,a){function c(){this.init();this._w=e;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);a(c,d);c.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c= -2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,k=this._e|0,m=0;16>m;++m)b[m]=a.readInt32BE(4*m);for(;80>m;++m)b[m]=b[m-3]^b[m-8]^b[m-14]^b[m-16];for(a=0;80>a;++a){var m=~~(a/20),C=c<<5|c>>>27,q;q=0===m?e&d|~e&h:2===m?e&d|e&h|d&h:e^d^h;m=C+q+k+b[a]+g[m]|0;k=h;h=d;d=e<<30|e>>>2;e=c;c=m}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d|0;this._e=k+this._e|0};c.prototype._hash= -function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],164:[function(k,b,a){function c(){this.init();this._w=e;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],e=Array(80);a(c,d);c.prototype.init=function(){this._a=1732584193;this._b= -4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,k=this._e|0,m=0;16>m;++m)b[m]=a.readInt32BE(4*m);for(;80>m;++m)a=b[m-3]^b[m-8]^b[m-14]^b[m-16],b[m]=a<<1|a>>>31;for(m=0;80>m;++m){a=~~(m/20);var C=c<<5|c>>>27,q;q=0===a?e&d|~e&h:2===a?e&d|e&h|d&h:e^d^h;a=C+q+k+b[m]+g[a]|0;k=h;h=d;d=e<<30|e>>>2;e=c;c=a}this._a=c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d| -0;this._e=k+this._e|0};c.prototype._hash=function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],165:[function(k,b,a){function c(){this.init();this._w=e;h.call(this,64,56)}a=k("inherits");var d=k("./sha256"),h=k("./hash"),g=k("safe-buffer").Buffer,e=Array(64);a(c,d);c.prototype.init=function(){this._a=3238371032; +return new c};a.sha=k("./sha");a.sha1=k("./sha1");a.sha224=k("./sha224");a.sha256=k("./sha256");a.sha384=k("./sha384");a.sha512=k("./sha512")},{"./sha":163,"./sha1":164,"./sha224":165,"./sha256":166,"./sha384":167,"./sha512":168}],163:[function(k,b,a){function c(){this.init();this._w=f;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],f=Array(80);a(c,d);c.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c= +2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,d=this._b|0,f=this._c|0,h=this._d|0,k=this._e|0,m=0;16>m;++m)b[m]=a.readInt32BE(4*m);for(;80>m;++m)b[m]=b[m-3]^b[m-8]^b[m-14]^b[m-16];for(a=0;80>a;++a){var m=~~(a/20),C=c<<5|c>>>27,q;q=0===m?d&f|~d&h:2===m?d&f|d&h|f&h:d^f^h;m=C+q+k+b[a]+g[m]|0;k=h;h=f;f=d<<30|d>>>2;d=c;c=m}this._a=c+this._a|0;this._b=d+this._b|0;this._c=f+this._c|0;this._d=h+this._d|0;this._e=k+this._e|0};c.prototype._hash= +function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],164:[function(k,b,a){function c(){this.init();this._w=f;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],f=Array(80);a(c,d);c.prototype.init=function(){this._a=1732584193;this._b= +4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};c.prototype._update=function(a){for(var b=this._w,c=this._a|0,d=this._b|0,f=this._c|0,h=this._d|0,k=this._e|0,m=0;16>m;++m)b[m]=a.readInt32BE(4*m);for(;80>m;++m)a=b[m-3]^b[m-8]^b[m-14]^b[m-16],b[m]=a<<1|a>>>31;for(m=0;80>m;++m){a=~~(m/20);var C=c<<5|c>>>27,q;q=0===a?d&f|~d&h:2===a?d&f|d&h|f&h:d^f^h;a=C+q+k+b[m]+g[a]|0;k=h;h=f;f=d<<30|d>>>2;d=c;c=a}this._a=c+this._a|0;this._b=d+this._b|0;this._c=f+this._c|0;this._d=h+this._d| +0;this._e=k+this._e|0};c.prototype._hash=function(){var a=h.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],165:[function(k,b,a){function c(){this.init();this._w=f;h.call(this,64,56)}a=k("inherits");var d=k("./sha256"),h=k("./hash"),g=k("safe-buffer").Buffer,f=Array(64);a(c,d);c.prototype.init=function(){this._a=3238371032; this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};c.prototype._hash=function(){var a=g.allocUnsafe(28);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);return a};b.exports=c},{"./hash":161,"./sha256":166,inherits:119,"safe-buffer":160}],166:[function(k,b,a){function c(){this.init(); -this._w=e;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350, -2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],e=Array(64);a(c,d);c.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};c.prototype._update= -function(a){for(var b=this._w,c=this._a|0,e=this._b|0,d=this._c|0,h=this._d|0,k=this._e|0,m=this._f|0,C=this._g|0,q=this._h|0,z=0;16>z;++z)b[z]=a.readInt32BE(4*z);for(;64>z;++z){a=b[z-2];var D=b[z-15];b[z]=((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+b[z-7]+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3)+b[z-16]|0}for(z=0;64>z;++z)a=q+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(C^k&(m^C))+g[z]+b[z]|0,D=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&e|d&(c|e))|0,q=C,C=m,m=k,k=h+a|0,h=d,d=e,e=c,c=a+D|0;this._a= -c+this._a|0;this._b=e+this._b|0;this._c=d+this._c|0;this._d=h+this._d|0;this._e=k+this._e|0;this._f=m+this._f|0;this._g=C+this._g|0;this._h=q+this._h|0};c.prototype._hash=function(){var a=h.allocUnsafe(32);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);a.writeInt32BE(this._h,28);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],167:[function(k, -b,a){function c(){this.init();this._w=e;h.call(this,128,112)}a=k("inherits");var d=k("./sha512"),h=k("./hash"),g=k("safe-buffer").Buffer,e=Array(160);a(c,d);c.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428; -return this};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=g.allocUnsafe(48);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);return b};b.exports=c},{"./hash":161,"./sha512":168,inherits:119,"safe-buffer":160}],168:[function(k,b,a){function c(){this.init();this._w=m;h.call(this,128,112)}function d(a,b){return a>>>0>>0?1:0}a=k("inherits");var h=k("./hash"), -g=k("safe-buffer").Buffer,e=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235, +this._w=f;d.call(this,64,56)}a=k("inherits");var d=k("./hash"),h=k("safe-buffer").Buffer,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350, +2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=Array(64);a(c,d);c.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};c.prototype._update= +function(a){for(var b=this._w,c=this._a|0,d=this._b|0,f=this._c|0,h=this._d|0,k=this._e|0,m=this._f|0,C=this._g|0,q=this._h|0,z=0;16>z;++z)b[z]=a.readInt32BE(4*z);for(;64>z;++z){a=b[z-2];var D=b[z-15];b[z]=((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+b[z-7]+((D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3)+b[z-16]|0}for(z=0;64>z;++z)a=q+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(C^k&(m^C))+g[z]+b[z]|0,D=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&d|f&(c|d))|0,q=C,C=m,m=k,k=h+a|0,h=f,f=d,d=c,c=a+D|0;this._a= +c+this._a|0;this._b=d+this._b|0;this._c=f+this._c|0;this._d=h+this._d|0;this._e=k+this._e|0;this._f=m+this._f|0;this._g=C+this._g|0;this._h=q+this._h|0};c.prototype._hash=function(){var a=h.allocUnsafe(32);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);a.writeInt32BE(this._h,28);return a};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],167:[function(k, +b,a){function c(){this.init();this._w=f;h.call(this,128,112)}a=k("inherits");var d=k("./sha512"),h=k("./hash"),g=k("safe-buffer").Buffer,f=Array(160);a(c,d);c.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428; +return this};c.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d);b.writeInt32BE(c,d+4)}var b=g.allocUnsafe(48);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);return b};b.exports=c},{"./hash":161,"./sha512":168,inherits:119,"safe-buffer":160}],168:[function(k,b,a){function c(){this.init();this._w=m;h.call(this,128,112)}function d(a,b){return a>>>0>>0?1:0}a=k("inherits");var h=k("./hash"), +g=k("safe-buffer").Buffer,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235, 1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804, 1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554, 174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=Array(160);a(c,h);c.prototype.init=function(){this._ah=1779033703;this._bh=3144134277;this._ch=1013904242;this._dh=2773480762;this._eh=1359893119;this._fh=2600822924;this._gh=528734635;this._hh=1541459225;this._al=4089235720;this._bl=2227873595;this._cl=4271175723; this._dl=1595750129;this._el=2917565137;this._fl=725511199;this._gl=4215389547;this._hl=327033209;return this};c.prototype._update=function(a){for(var b=this._w,c=this._ah|0,h=this._bh|0,g=this._ch|0,k=this._dh|0,m=this._eh|0,p=this._fh|0,q=this._gh|0,z=this._hh|0,D=this._al|0,v=this._bl|0,w=this._cl|0,x=this._dl|0,A=this._el|0,F=this._fl|0,B=this._gl|0,I=this._hl|0,E=0;32>E;E+=2)b[E]=a.readInt32BE(4*E),b[E+1]=a.readInt32BE(4*E+4);for(;160>E;E+=2){a=b[E-30];var H=b[E-30+1],t=(a>>>1|H<<31)^(a>>>8| -H<<24)^a>>>7,N=(H>>>1|a<<31)^(H>>>8|a<<24)^(H>>>7|a<<25);a=b[E-4];var H=b[E-4+1],J=(a>>>19|H<<13)^(H>>>29|a<<3)^a>>>6,H=(H>>>19|a<<13)^(a>>>29|H<<3)^(H>>>6|a<<26),P=b[E-32],ea=b[E-32+1];a=N+b[E-14+1]|0;t=t+b[E-14]+d(a,N)|0;a=a+H|0;t=t+J+d(a,H)|0;a=a+ea|0;t=t+P+d(a,ea)|0;b[E]=t;b[E+1]=a}for(E=0;160>E;E+=2){t=b[E];a=b[E+1];var H=c&h|g&(c|h),Q=D&v|w&(D|v),P=(c>>>28|D<<4)^(D>>>2|c<<30)^(D>>>7|c<<25),ea=(D>>>28|c<<4)^(c>>>2|D<<30)^(c>>>7|D<<25),T=e[E],S=e[E+1],K=q^m&(p^q),M=B^A&(F^B),J=I+((A>>>14|m<<18)^ +H<<24)^a>>>7,N=(H>>>1|a<<31)^(H>>>8|a<<24)^(H>>>7|a<<25);a=b[E-4];var H=b[E-4+1],J=(a>>>19|H<<13)^(H>>>29|a<<3)^a>>>6,H=(H>>>19|a<<13)^(a>>>29|H<<3)^(H>>>6|a<<26),P=b[E-32],ea=b[E-32+1];a=N+b[E-14+1]|0;t=t+b[E-14]+d(a,N)|0;a=a+H|0;t=t+J+d(a,H)|0;a=a+ea|0;t=t+P+d(a,ea)|0;b[E]=t;b[E+1]=a}for(E=0;160>E;E+=2){t=b[E];a=b[E+1];var H=c&h|g&(c|h),Q=D&v|w&(D|v),P=(c>>>28|D<<4)^(D>>>2|c<<30)^(D>>>7|c<<25),ea=(D>>>28|c<<4)^(c>>>2|D<<30)^(c>>>7|D<<25),T=f[E],S=f[E+1],K=q^m&(p^q),M=B^A&(F^B),J=I+((A>>>14|m<<18)^ (A>>>18|m<<14)^(m>>>9|A<<23))|0,N=z+((m>>>14|A<<18)^(m>>>18|A<<14)^(A>>>9|m<<23))+d(J,I)|0,J=J+M|0,N=N+K+d(J,M)|0,J=J+S|0,N=N+T+d(J,S)|0,J=J+a|0,N=N+t+d(J,a)|0;a=ea+Q|0;t=P+H+d(a,ea)|0;z=q;I=B;q=p;B=F;p=m;F=A;A=x+J|0;m=k+N+d(A,x)|0;k=g;x=w;g=h;w=v;h=c;v=D;D=J+a|0;c=N+t+d(D,J)|0}this._al=this._al+D|0;this._bl=this._bl+v|0;this._cl=this._cl+w|0;this._dl=this._dl+x|0;this._el=this._el+A|0;this._fl=this._fl+F|0;this._gl=this._gl+B|0;this._hl=this._hl+I|0;this._ah=this._ah+c+d(this._al,D)|0;this._bh=this._bh+ -h+d(this._bl,v)|0;this._ch=this._ch+g+d(this._cl,w)|0;this._dh=this._dh+k+d(this._dl,x)|0;this._eh=this._eh+m+d(this._el,A)|0;this._fh=this._fh+p+d(this._fl,F)|0;this._gh=this._gh+q+d(this._gl,B)|0;this._hh=this._hh+z+d(this._hl,I)|0};c.prototype._hash=function(){function a(a,c,e){b.writeInt32BE(a,e);b.writeInt32BE(c,e+4)}var b=g.allocUnsafe(64);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);a(this._gh, +h+d(this._bl,v)|0;this._ch=this._ch+g+d(this._cl,w)|0;this._dh=this._dh+k+d(this._dl,x)|0;this._eh=this._eh+m+d(this._el,A)|0;this._fh=this._fh+p+d(this._fl,F)|0;this._gh=this._gh+q+d(this._gl,B)|0;this._hh=this._hh+z+d(this._hl,I)|0};c.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d);b.writeInt32BE(c,d+4)}var b=g.allocUnsafe(64);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);a(this._gh, this._gl,48);a(this._hh,this._hl,56);return b};b.exports=c},{"./hash":161,inherits:119,"safe-buffer":160}],169:[function(k,b,a){function c(){d.call(this)}b.exports=c;var d=k("events").EventEmitter;k("inherits")(c,d);c.Readable=k("readable-stream/readable.js");c.Writable=k("readable-stream/writable.js");c.Duplex=k("readable-stream/duplex.js");c.Transform=k("readable-stream/transform.js");c.PassThrough=k("readable-stream/passthrough.js");c.Stream=c;c.prototype.pipe=function(a,b){function c(b){a.writable&& -!1===a.write(b)&&r.pause&&r.pause()}function h(){r.readable&&r.resume&&r.resume()}function g(){u||(u=!0,a.end())}function f(){u||(u=!0,"function"===typeof a.destroy&&a.destroy())}function k(a){n();if(0===d.listenerCount(this,"error"))throw a;}function n(){r.removeListener("data",c);a.removeListener("drain",h);r.removeListener("end",g);r.removeListener("close",f);r.removeListener("error",k);a.removeListener("error",k);r.removeListener("end",n);r.removeListener("close",n);a.removeListener("close",n)} -var r=this;r.on("data",c);a.on("drain",h);a._isStdio||b&&!1===b.end||(r.on("end",g),r.on("close",f));var u=!1;r.on("error",k);a.on("error",k);r.on("end",n);r.on("close",n);a.on("close",n);a.emit("pipe",r);return a}},{events:101,inherits:119,"readable-stream/duplex.js":146,"readable-stream/passthrough.js":155,"readable-stream/readable.js":156,"readable-stream/transform.js":157,"readable-stream/writable.js":158}],170:[function(k,b,a){function c(a){if(!a)return"utf8";for(var b;;)switch(a){case "utf8":case "utf-8":return"utf8"; -case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le";case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return a;default:if(b)return;a=(""+a).toLowerCase();b=!0}}function d(a){var b=c(a);if("string"!==typeof b&&(u.isEncoding===y||!y(a)))throw Error("Unknown encoding: "+a);this.encoding=b||a;switch(this.encoding){case "utf16le":this.text=m;this.end=p;a=4;break;case "utf8":this.fillLast=e;a=4;break;case "base64":this.text=f;this.end=l;a=3;break;default:this.write= -n;this.end=r;return}this.lastTotal=this.lastNeed=0;this.lastChar=u.allocUnsafe(a)}function h(a){return 127>=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:-1}function g(a,b,c){var e=b.length-1;if(e=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:-1}function g(a,b,c){var d=b.length-1;if(d=c)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],b.slice(0,-1)}return b}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=a[a.length-1];return a.toString("utf16le",b,a.length-1)}function p(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):a}function f(a,b){var c=(a.length-b)%3;if(0===c)return a.toString("base64",b);this.lastNeed=3-c;this.lastTotal=3; +1);if(55296<=c&&56319>=c)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],b.slice(0,-1)}return b}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=a[a.length-1];return a.toString("utf16le",b,a.length-1)}function p(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):a}function e(a,b){var c=(a.length-b)%3;if(0===c)return a.toString("base64",b);this.lastNeed=3-c;this.lastTotal=3; 1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]);return a.toString("base64",b,a.length-c)}function l(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function n(a){return a.toString(this.encoding)}function r(a){return a&&a.length?this.write(a):""}var u=k("safe-buffer").Buffer,y=u.isEncoding||function(a){a=""+a;switch(a&&a.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0; default:return!1}};a.StringDecoder=d;d.prototype.write=function(a){if(0===a.length)return"";var b,c;if(this.lastNeed){b=this.fillLast(a);if(void 0===b)return"";c=this.lastNeed;this.lastNeed=0}else c=0;return ca?"0"+a:""+a}return k?""+k.getFullYear()+"-"+a(k.getMonth()+1)+"-"+a(k.getDate())+" "+a(k.getHours())+":"+a(k.getMinutes())+":"+a(k.getSeconds()):null},Enum:function(k,b){return null!=k?k.toString():null}}; stjs.bind=function(k,b,a){var c=!1;null==b&&(b=k,k=null,c=!0);var d=null!=a;return function(){var h=arguments;d&&Array.prototype.splice.call(h,a,0,this);c&&(k=Array.prototype.shift.call(h));return"string"===typeof b?k[b].apply(k,h):b.apply(k,h)}};function exception(k){return k}function isEnum(k){return null!=k&&k.constructor==stjs.enumEntry} -stjs.parseJSON=function(){function k(a,b,c){return b?g[b]:String.fromCharCode(parseInt(c,16))}function b(a,b){var c=e[a];c||(e[a]=c=eval(a));return new c(b)}function a(a){return a?"function"==typeof a?new a:a.name?"Map"==a.name?{}:"Array"==a.name?[]:b(a.name):b(a):{}}function c(a){a=d.exec(a);return null!=a?a[0]:null}var d=/(?:false|true|null|[\{\}\[\]]|(?:-?\b(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\b)|(?:"(?:[^\0-\x08\x0a-\x1f"\\]|\\(?:["/\\bfnrt]|u[0-9A-Fa-f]{4}))*"))/g,h=/\\(?:([^u])|u(.{4}))/g, -g={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},e={},m=new String("");return function(e,d){var f,g=c(e),p=!1;"{"===g?f=a(d,null):"["===g?f=[]:(f=[],p=!0);var u,y=[f];d=[d];for(g=c(e);null!=g;g=c(e)){var C;switch(g.charCodeAt(0)){default:C=y[0];C[u||C.length]=+g;u=void 0;break;case 34:g=g.substring(1,g.length-1);-1!==g.indexOf("\\")&&(g=g.replace(h,k));C=y[0];if(!u)if(C instanceof Array)u=C.length;else{u=g||m;d[0]=C.constructor.$typeDescription?C.constructor.$typeDescription[u]:d[1].arguments[1]; -break}var q=d[0];if(q)var z=stjs.converters[q.name||q],g=z?z(g,q):b(q,g);C[u]=g;u=void 0;break;case 91:C=y[0];y.unshift(C[u||C.length]=[]);d.unshift(d[0].arguments[0]);u=void 0;break;case 93:y.shift();d.shift();break;case 102:C=y[0];C[u||C.length]=!1;u=void 0;break;case 110:C=y[0];C[u||C.length]=null;u=void 0;break;case 116:C=y[0];C[u||C.length]=!0;u=void 0;break;case 123:C=y[0];y.unshift(C[u||C.length]=a(d[0]));d.unshift(null);u=void 0;break;case 125:y.shift(),d.shift()}}if(p){if(1!==y.length)throw Error(); -f=f[0]}else if(y.length)throw Error();return f}}();stjs.isArray=function(k){return"[object Array]"===stjs.toString.call(k)}; -stjs.typefy=function(k,b){function a(a,b){var c=e[a];c||(e[a]=c=eval(a));return new c(b)}function c(a){return"function"==typeof a?a:a.arguments?eval(a.arguments[0]):"string"==typeof a?eval(a):Object}function d(b,c){if(!b)return c;var e=stjs.converters[b.name||b];return e?e(c,b):a(b,c)}if(stjs.isArray(k)){for(var h=[],g=0;g=this.counter}},{},{}); if(document&&document.getElementsByTagName){var scripts=document.getElementsByTagName("script");window.scriptPath=scripts[scripts.length-1].src.substr(0,scripts[scripts.length-1].src.lastIndexOf("/"))+"/"} function generateUUID(){var k=(new Date).getTime();window&&window.performance&&"function"===typeof window.performance.now&&(k+=performance.now());return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var a=(k+16*Math.random())%16|0;k=Math.floor(k/16);return("x"==b?a:a&3|8).toString(16)})} -function base64ToBlob(k,b){b=b||"";k=forge.util.decode64(k);for(var a=k.length,c=Math.ceil(a/1024),d=Array(c),h=0;hk;++k)b[k]=c.getInt32();for(;64>k;++k)e=b[k-2],e=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,d=b[k-15],d=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,b[k]=e+b[k-7]+d+b[k-16]|0;l=a.h0;m=a.h1;n=a.h2;p=a.h3;r=a.h4;F=a.h5;B=a.h6;I=a.h7;for(k=0;64>k;++k)e=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),h=B^r&(F^B),d=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),g=l&m|n&(l^m),e=I+e+h+f[k]+b[k],d+=g,I=B,B=F,F=r,r=p+e|0, -p=n,n=m,m=l,l=e+d|0;a.h0=a.h0+l|0;a.h1=a.h1+m|0;a.h2=a.h2+n|0;a.h3=a.h3+p|0;a.h4=a.h4+r|0;a.h5=a.h5+F|0;a.h6=a.h6+B|0;a.h7=a.h7+I|0;E-=64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206, +(function(){function k(a){function b(a,b,c){for(var f,d,h,g,k,l,m,n,p,r,F,B,I,E=c.length();64<=E;){for(k=0;16>k;++k)b[k]=c.getInt32();for(;64>k;++k)f=b[k-2],f=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,d=b[k-15],d=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,b[k]=f+b[k-7]+d+b[k-16]|0;l=a.h0;m=a.h1;n=a.h2;p=a.h3;r=a.h4;F=a.h5;B=a.h6;I=a.h7;for(k=0;64>k;++k)f=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),h=B^r&(F^B),d=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),g=l&m|n&(l^m),f=I+f+h+e[k]+b[k],d+=g,I=B,B=F,F=r,r=p+f|0, +p=n,n=m,m=l,l=f+d|0;a.h0=a.h0+l|0;a.h1=a.h1+m|0;a.h2=a.h2+n|0;a.h3=a.h3+p|0;a.h4=a.h4+r|0;a.h5=a.h5+F|0;a.h6=a.h6+B|0;a.h7=a.h7+I|0;E-=64}}var c=a.sha256=a.sha256||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha256=a.md.algorithms.sha256=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206, 2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474, -2756734187,3204031479,3329325298],h=!0);var c=null,e=a.util.createBuffer(),g=Array(64),k={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,messageLength64:[0,0],start:function(){k.messageLength=0;k.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225};return k}};k.start();k.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));k.messageLength+=d.length;k.messageLength64[0]+= -d.length/4294967296>>>0;k.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,g,e);(2048>>28);f.putInt32(k.messageLength64[1]<<3);var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(h,g,f);f=a.util.createBuffer();f.putInt32(h.h0);f.putInt32(h.h1);f.putInt32(h.h2); -f.putInt32(h.h3);f.putInt32(h.h4);f.putInt32(h.h5);f.putInt32(h.h6);f.putInt32(h.h7);return f};return k};var d=null,h=!1,f=null}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var e=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined||{};if(c.defined.sha256)return c.sha256;c.defined.sha256=!0;for(var d= -0;d>>0;k.messageLength64[1]+=d.length>>>0;f.putBytes(d);b(c,g,f);(2048>>28);e.putInt32(k.messageLength64[1]<<3);var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4,h5:c.h5,h6:c.h6,h7:c.h7};b(h,g,e);e=a.util.createBuffer();e.putInt32(h.h0);e.putInt32(h.h1);e.putInt32(h.h2); +e.putInt32(h.h3);e.putInt32(h.h4);e.putInt32(h.h5);e.putInt32(h.h6);e.putInt32(h.h7);return e};return k};var d=null,h=!1,e=null}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var f=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined||{};if(c.defined.sha256)return c.sha256;c.defined.sha256=!0;for(var d= +0;d>6),c+=isNaN(h)?"\x3d":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(h&63)),b&&c.length>b&&(d+=c.substr(0,b)+"\r\n",c=c.substr(b));return d+c};c.binary.base64.decode=function(a,b,c){var e=b;e||(e=new Uint8Array(3*Math.ceil(a.length/4)));a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");c=c||0;for(var f,h,g,k,l=0,m=c;l>4,64!==g&&(e[m++]=(h&15)<< 4|g>>2,64!==k&&(e[m++]=(g&3)<<6|k));return b?m-c:e.subarray(0,m)};c.text={utf8:{},utf16:{}};c.text.utf8.encode=function(a,b,d){a=c.encodeUtf8(a);var e=b;e||(e=new Uint8Array(a.length));for(var f=d=d||0,h=0;hg.st&&e.ste.st&&g.stm;++m)d=c.getInt32(),b[m]=d,l=g^f&(h^g),d=(e<<5|e>>>27)+l+k+1518500249+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;20>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=g^f&(h^g),d=(e<<5|e>>>27)+l+k+1518500249+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;32>m;++m)d=b[m-3]^b[m-8]^b[m-14]^b[m-16],d=d<<1|d>>>31,b[m]=d,l=f^h^g,d=(e<<5|e>>>27)+l+k+1859775393+d,k=g,g=h,h=f<< -30|f>>>2,f=e,e=d;for(;40>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^h^g,d=(e<<5|e>>>27)+l+k+1859775393+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;60>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f&h|g&(f^h),d=(e<<5|e>>>27)+l+k+2400959708+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;80>m;++m)d=b[m-6]^b[m-16]^b[m-28]^b[m-32],d=d<<2|d>>>30,b[m]=d,l=f^h^g,d=(e<<5|e>>>27)+l+k+3395469782+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;a.h0=a.h0+e|0;a.h1=a.h1+f|0;a.h2=a.h2+h|0;a.h3=a.h3+g|0;a.h4= -a.h4+k|0;n-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),h=!0);var c=null,e=a.util.createBuffer(),g=Array(80),k={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0],start:function(){k.messageLength=0;k.messageLength64=[0,0];e=a.util.createBuffer();c={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878, -h4:3285377520};return k}};k.start();k.update=function(d,f){"utf8"===f&&(d=a.util.encodeUtf8(d));k.messageLength+=d.length;k.messageLength64[0]+=d.length/4294967296>>>0;k.messageLength64[1]+=d.length>>>0;e.putBytes(d);b(c,g,e);(2048>>28);f.putInt32(k.messageLength64[1]<<3); -var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(h,g,f);f=a.util.createBuffer();f.putInt32(h.h0);f.putInt32(h.h1);f.putInt32(h.h2);f.putInt32(h.h3);f.putInt32(h.h4);return f};return k};var d=null,h=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var d=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined|| -{};if(c.defined.sha1)return c.sha1;c.defined.sha1=!0;for(var e=0;el;++l)d=c.getInt32(),b[l]=d,m=g^f&(h^g),d=(e<<5|e>>>27)+m+k+1518500249+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;20>l;++l)d=b[l-3]^b[l-8]^b[l-14]^b[l-16],d=d<<1|d>>>31,b[l]=d,m=g^f&(h^g),d=(e<<5|e>>>27)+m+k+1518500249+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;32>l;++l)d=b[l-3]^b[l-8]^b[l-14]^b[l-16],d=d<<1|d>>>31,b[l]=d,m=f^h^g,d=(e<<5|e>>>27)+m+k+1859775393+d,k=g,g=h,h=f<< +30|f>>>2,f=e,e=d;for(;40>l;++l)d=b[l-6]^b[l-16]^b[l-28]^b[l-32],d=d<<2|d>>>30,b[l]=d,m=f^h^g,d=(e<<5|e>>>27)+m+k+1859775393+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;60>l;++l)d=b[l-6]^b[l-16]^b[l-28]^b[l-32],d=d<<2|d>>>30,b[l]=d,m=f&h|g&(f^h),d=(e<<5|e>>>27)+m+k+2400959708+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;for(;80>l;++l)d=b[l-6]^b[l-16]^b[l-28]^b[l-32],d=d<<2|d>>>30,b[l]=d,m=f^h^g,d=(e<<5|e>>>27)+m+k+3395469782+d,k=g,g=h,h=f<<30|f>>>2,f=e,e=d;a.h0=a.h0+e|0;a.h1=a.h1+f|0;a.h2=a.h2+h|0;a.h3=a.h3+g|0;a.h4= +a.h4+k|0;n-=64}}var c=a.sha1=a.sha1||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.sha1=a.md.algorithms.sha1=c;c.create=function(){h||(d=String.fromCharCode(128),d+=a.util.fillString(String.fromCharCode(0),64),h=!0);var c=null,f=a.util.createBuffer(),g=Array(80),k={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,messageLength64:[0,0],start:function(){k.messageLength=0;k.messageLength64=[0,0];f=a.util.createBuffer();c={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878, +h4:3285377520};return k}};k.start();k.update=function(d,e){"utf8"===e&&(d=a.util.encodeUtf8(d));k.messageLength+=d.length;k.messageLength64[0]+=d.length/4294967296>>>0;k.messageLength64[1]+=d.length>>>0;f.putBytes(d);b(c,g,f);(2048>>28);e.putInt32(k.messageLength64[1]<<3); +var h={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3,h4:c.h4};b(h,g,e);e=a.util.createBuffer();e.putInt32(h.h0);e.putInt32(h.h1);e.putInt32(h.h2);e.putInt32(h.h3);e.putInt32(h.h4);return e};return k};var d=null,h=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var d=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined|| +{};if(c.defined.sha1)return c.sha1;c.defined.sha1=!0;for(var f=0;fc-11)throw e=Error("Message is too long for PKCS#1 v1.5 padding."),e.length=b.length,e.max=c-11,e;e.putByte(0);e.putByte(d);c=c-3-b.length;if(0===d||1===d){d=0===d?0:255;for(var f=0;fb.p.compareTo(b.q)&&(a=b.p,b.p=b.q,b.q=a);0!==b.p.subtract(k.ONE).gcd(b.e).compareTo(k.ONE)?(b.p=null,e()):0!==b.q.subtract(k.ONE).gcd(b.e).compareTo(k.ONE)?(b.q=null,f(b.qBits,h)):(b.p1=b.p.subtract(k.ONE),b.q1=b.q.subtract(k.ONE),b.phi=b.p1.multiply(b.q1),0!==b.phi.gcd(b.e).compareTo(k.ONE)? (b.p=b.q=null,e()):(b.n=b.p.multiply(b.q),b.n.bitLength()!==b.bits?(b.q=null,f(b.qBits,h)):(a=b.e.modInverse(b.phi),b.keys={privateKey:r.rsa.setPrivateKey(b.n,b.e,a,b.p,b.q,a.mod(b.p1),a.mod(b.q1),b.q.modInverse(b.p)),publicKey:r.rsa.setPublicKey(b.n,b.e)},d(null,b.keys))))}"function"===typeof c&&(d=c,c={});c=c||{};var g={algorithm:{name:c.algorithm||"PRIMEINC",options:{workers:c.workers||2,workLoad:c.workLoad||100,workerScript:c.workerScript}}};"prng"in c&&(g.prng=c.prng);e()}function h(b){b=b.toString(16); -"8"<=b[0]&&(b="00"+b);return a.util.hexToBytes(b)}function f(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"===typeof k)var k=a.jsbn.BigInteger;var n=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var r=a.pki,u=[6,4,2,4,2,4,6,2],y={name:"PrivateKeyInfo",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1, +"8"<=b[0]&&(b="00"+b);return a.util.hexToBytes(b)}function e(a){return 100>=a?27:150>=a?18:200>=a?15:250>=a?12:300>=a?9:350>=a?8:400>=a?7:500>=a?6:600>=a?5:800>=a?4:1250>=a?3:2}if("undefined"===typeof k)var k=a.jsbn.BigInteger;var n=a.asn1;a.pki=a.pki||{};a.pki.rsa=a.rsa=a.rsa||{};var r=a.pki,u=[6,4,2,4,2,4,6,2],y={name:"PrivateKeyInfo",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1, capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:n.Class.UNIVERSAL,type:n.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:n.Class.UNIVERSAL,type:n.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},C={name:"RSAPrivateKey",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version", tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1", tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:n.Class.UNIVERSAL, @@ -1471,7 +1471,7 @@ n.Type.OCTETSTRING,!1,a.digest().getBytes());b.value.push(d);b.value.push(a);ret b.mod(c.q).modPow(c.dQ,c.q);0>e.compareTo(b);)e=e.add(c.p);b=e.subtract(b).multiply(c.qInv).mod(c.p).multiply(c.q).add(b);return b=b.multiply(d.modInverse(c.n)).mod(c.n)};r.rsa.encrypt=function(c,d,e){var f=e,h=Math.ceil(d.n.bitLength()/8);!1!==e&&!0!==e?(f=2===e,e=b(c,d,e)):(e=a.util.createBuffer(),e.putBytes(c));c=new k(e.toHex(),16);d=v(c,d,f).toString(16);f=a.util.createBuffer();for(h-=Math.ceil(d.length/2);0>1,pBits:b-(b>>1),pqState:0,num:null,keys:null},b.e.fromInt(b.eInt);else throw Error("Invalid key generation algorithm: "+d);return b};r.rsa.stepKeyPairGenerationState=function(a,b){"algorithm"in a|| -(a.algorithm="PRIMEINC");var c=new k(null);c.fromInt(30);for(var d=0,e=function(a,b){return a|b},h=+new Date,g,m=0;null===a.keys&&(0>=b||mg?a.pqState=0:a.num.isProbablePrime(f(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(u[d++%8],0):2===a.pqState? +(a.algorithm="PRIMEINC");var c=new k(null);c.fromInt(30);for(var d=0,f=function(a,b){return a|b},h=+new Date,g,m=0;null===a.keys&&(0>=b||mg?a.pqState=0:a.num.isProbablePrime(e(a.num.bitLength()))?++a.pqState:a.num.dAddOffset(u[d++%8],0):2===a.pqState? a.pqState=0===a.num.subtract(k.ONE).gcd(a.e).compareTo(k.ONE)?3:0:3===a.pqState&&(a.pqState=0,null===a.p?a.p=a.num:a.q=a.num,null!==a.p&&null!==a.q&&++a.state,a.num=null)}else 1===a.state?(0>a.p.compareTo(a.q)&&(a.num=a.p,a.p=a.q,a.q=a.num),++a.state):2===a.state?(a.p1=a.p.subtract(k.ONE),a.q1=a.q.subtract(k.ONE),a.phi=a.p1.multiply(a.q1),++a.state):3===a.state?0===a.phi.gcd(a.e).compareTo(k.ONE)?++a.state:(a.p=null,a.q=null,a.state=0):4===a.state?(a.n=a.p.multiply(a.q),a.n.bitLength()===a.bits?++a.state: (a.q=null,a.state=0)):5===a.state&&(g=a.e.modInverse(a.phi),a.keys={privateKey:r.rsa.setPrivateKey(a.n,a.e,g,a.p,a.q,g.mod(a.p1),g.mod(a.q1),a.q.modInverse(a.p)),publicKey:r.rsa.setPublicKey(a.n,a.e)});g=+new Date;m+=g-h;h=g}return null!==a.keys};r.rsa.generateKeyPair=function(a,b,c,e){1===arguments.length?"object"===typeof a?(c=a,a=void 0):"function"===typeof a&&(e=a,a=void 0):2===arguments.length?"number"===typeof a?"function"===typeof b?(e=b,b=void 0):"number"!==typeof b&&(c=b,b=void 0):(c=a,e= b,b=a=void 0):3===arguments.length&&("number"===typeof b?"function"===typeof c&&(e=c,c=void 0):(e=c,c=b,b=void 0));c=c||{};void 0===a&&(a=c.bits||2048);void 0===b&&(b=c.e||65537);var f=r.rsa.createKeyPairGenerationState(a,b,c);if(!e)return r.rsa.stepKeyPairGenerationState(f,0),f.keys;d(f,c,e)};r.setRsaPublicKey=r.rsa.setPublicKey=function(d,e){var f={n:d,e:e,encrypt:function(c,d,e){"string"===typeof d?d=d.toUpperCase():void 0===d&&(d="RSAES-PKCS1-V1_5");if("RSAES-PKCS1-V1_5"===d)d={encode:function(a, @@ -1484,24 +1484,24 @@ m=a.util.createBuffer(c.privateKeyExponent2).toHex();c=a.util.createBuffer(c.pri !1,h(a.e)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.d)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.p)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.q)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.dP)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.dQ)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.qInv))])};r.publicKeyFromAsn1=function(b){var c={},d=[];if(n.validate(b,z,c,d)){d=n.derToOid(c.publicKeyOid);if(d!==r.oids.rsaEncryption)throw c=Error("Cannot read public key. Unknown OID."), c.oid=d,c;b=c.rsaPublicKey}d=[];if(!n.validate(b,q,c,d))throw c=Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey."),c.errors=d,c;d=a.util.createBuffer(c.publicKeyModulus).toHex();c=a.util.createBuffer(c.publicKeyExponent).toHex();return r.setRsaPublicKey(new k(d,16),new k(c,16))};r.publicKeyToAsn1=r.publicKeyToSubjectPublicKeyInfo=function(a){return n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL, n.Type.OID,!1,n.oidToDer(r.oids.rsaEncryption).getBytes()),n.create(n.Class.UNIVERSAL,n.Type.NULL,!1,"")]),n.create(n.Class.UNIVERSAL,n.Type.BITSTRING,!1,[r.publicKeyToRSAPublicKey(a)])])};r.publicKeyToRSAPublicKey=function(a){return n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.n)),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,h(a.e))])}}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require, -module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var d=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined||{};if(c.defined.rsa)return c.rsa;c.defined.rsa=!0;for(var e=0;eb;++b)n[b]=Math.floor(4294967296* -Math.abs(Math.sin(b+1)));r=!0}function c(a,b,c){for(var d,e,h,g,m,l,p,r=c.length();64<=r;){e=a.h0;h=a.h1;g=a.h2;m=a.h3;for(p=0;16>p;++p)b[p]=c.getInt32Le(),d=m^h&(g^m),d=e+d+n[p]+b[p],l=k[p],e=m,m=g,g=h,h+=d<>>32-l;for(;32>p;++p)d=g^m&(h^g),d=e+d+n[p]+b[f[p]],l=k[p],e=m,m=g,g=h,h+=d<>>32-l;for(;48>p;++p)d=h^g^m,d=e+d+n[p]+b[f[p]],l=k[p],e=m,m=g,g=h,h+=d<>>32-l;for(;64>p;++p)d=g^(h|~m),d=e+d+n[p]+b[f[p]],l=k[p],e=m,m=g,g=h,h+=d<>>32-l;a.h0=a.h0+e|0;a.h1=a.h1+h|0;a.h2=a.h2+g|0;a.h3= -a.h3+m|0;r-=64}}var d=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=d;d.create=function(){r||b();var d=null,e=a.util.createBuffer(),f=Array(16),g={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,messageLength64:[0,0],start:function(){g.messageLength=0;g.messageLength64=[0,0];e=a.util.createBuffer();d={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878};return g}};g.start();g.update=function(b,h){"utf8"===h&&(b=a.util.encodeUtf8(b)); +(function(){function k(a){function b(){h=String.fromCharCode(128);h+=a.util.fillString(String.fromCharCode(0),64);e=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9];k=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];n=Array(64);for(var b=0;64>b;++b)n[b]=Math.floor(4294967296* +Math.abs(Math.sin(b+1)));r=!0}function c(a,b,c){for(var d,f,h,g,l,m,p,r=c.length();64<=r;){f=a.h0;h=a.h1;g=a.h2;l=a.h3;for(p=0;16>p;++p)b[p]=c.getInt32Le(),d=l^h&(g^l),d=f+d+n[p]+b[p],m=k[p],f=l,l=g,g=h,h+=d<>>32-m;for(;32>p;++p)d=g^l&(h^g),d=f+d+n[p]+b[e[p]],m=k[p],f=l,l=g,g=h,h+=d<>>32-m;for(;48>p;++p)d=h^g^l,d=f+d+n[p]+b[e[p]],m=k[p],f=l,l=g,g=h,h+=d<>>32-m;for(;64>p;++p)d=g^(h|~l),d=f+d+n[p]+b[e[p]],m=k[p],f=l,l=g,g=h,h+=d<>>32-m;a.h0=a.h0+f|0;a.h1=a.h1+h|0;a.h2=a.h2+g|0;a.h3= +a.h3+l|0;r-=64}}var d=a.md5=a.md5||{};a.md=a.md||{};a.md.algorithms=a.md.algorithms||{};a.md.md5=a.md.algorithms.md5=d;d.create=function(){r||b();var d=null,e=a.util.createBuffer(),f=Array(16),g={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,messageLength64:[0,0],start:function(){g.messageLength=0;g.messageLength64=[0,0];e=a.util.createBuffer();d={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878};return g}};g.start();g.update=function(b,h){"utf8"===h&&(b=a.util.encodeUtf8(b)); g.messageLength+=b.length;g.messageLength64[0]+=b.length/4294967296>>>0;g.messageLength64[1]+=b.length>>>0;e.putBytes(b);c(d,f,e);(2048>>28);var k={h0:d.h0,h1:d.h1,h2:d.h2,h3:d.h3};c(k,f,b);b=a.util.createBuffer();b.putInt32Le(k.h0); -b.putInt32Le(k.h1);b.putInt32Le(k.h2);b.putInt32Le(k.h3);return b};return g};var h=null,f=null,k=null,n=null,r=!1}if("function"!==typeof define)if("object"===typeof module&&module.exports){var b=!0;define=function(a,b){b(require,module)}}else return"undefined"===typeof forge&&(forge={}),k(forge);var a,c=function(b,c){c.exports=function(c){var d=a.map(function(a){return b(a)}).concat(k);c=c||{};c.defined=c.defined||{};if(c.defined.md5)return c.md5;c.defined.md5=!0;for(var e=0;ea;a++)EcRsaOaepAsyncWorker.createWorker(a)}};k.createWorker=function(a){EcRsaOaepAsyncWorker.q1.push([]); EcRsaOaepAsyncWorker.q2.push([]);var b;null!=window.scriptPath?EcRsaOaepAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcRsaOaepAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcRsaOaepAsyncWorker.q1[a].shift(),d=EcRsaOaepAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcRsaOaepAsyncWorker.q1[a].shift();var c=EcRsaOaepAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};k.encrypt= -function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.pk=a.toPem();e.text=forge.util.encodeUtf8(b);e.cmd="encryptRsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(e)}else d(EcRsaOaep.encrypt(a,b))};k.decrypt=function(a,b,d,h){if(EcCrypto.caching){var c=null,c=EcCrypto.decryptionCache[a.toPem()+b];if(null!= -c){d(c);return}}EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=b;e.cmd="decryptRsaOaep";EcCrypto.caching?EcRsaOaepAsyncWorker.q1[c].push(function(c){EcCrypto.decryptionCache[a.toPem()+b]=forge.util.decodeUtf8(c);d(forge.util.decodeUtf8(c))}):EcRsaOaepAsyncWorker.q1[c].push(function(a){d(forge.util.decodeUtf8(a))});EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(e)}else d(EcRsaOaep.decrypt(a, -b))};k.sign=function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(b);e.cmd="signRsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(e)}else d(EcRsaOaep.sign(a,b))};k.signSha256=function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c= -EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var e={};e.ppk=a.toPem();e.text=forge.util.encodeUtf8(b);e.cmd="signSha256RsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(e)}else d(EcRsaOaep.signSha256(a,b))};k.verify=function(a,b,d,h,g){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var k={};k.pk=a.toPem();k.text= +function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var f={};f.pk=a.toPem();f.text=forge.util.encodeUtf8(b);f.cmd="encryptRsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(f)}else d(EcRsaOaep.encrypt(a,b))};k.decrypt=function(a,b,d,h){if(EcCrypto.caching){var c=null,c=EcCrypto.decryptionCache[a.toPem()+b];if(null!= +c){d(c);return}}EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var f={};f.ppk=a.toPem();f.text=b;f.cmd="decryptRsaOaep";EcCrypto.caching?EcRsaOaepAsyncWorker.q1[c].push(function(c){EcCrypto.decryptionCache[a.toPem()+b]=forge.util.decodeUtf8(c);d(forge.util.decodeUtf8(c))}):EcRsaOaepAsyncWorker.q1[c].push(function(a){d(forge.util.decodeUtf8(a))});EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(f)}else d(EcRsaOaep.decrypt(a, +b))};k.sign=function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var f={};f.ppk=a.toPem();f.text=forge.util.encodeUtf8(b);f.cmd="signRsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(f)}else d(EcRsaOaep.sign(a,b))};k.signSha256=function(a,b,d,h){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c= +EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var f={};f.ppk=a.toPem();f.text=forge.util.encodeUtf8(b);f.cmd="signSha256RsaOaep";EcRsaOaepAsyncWorker.q1[c].push(d);EcRsaOaepAsyncWorker.q2[c].push(h);EcRsaOaepAsyncWorker.w[c].postMessage(f)}else d(EcRsaOaep.signSha256(a,b))};k.verify=function(a,b,d,h,g){EcRsaOaepAsyncWorker.initWorker();if(EcRemote.async&&null!=EcRsaOaepAsyncWorker.w){var c=EcRsaOaepAsyncWorker.rotator++;EcRsaOaepAsyncWorker.rotator%=8;var k={};k.pk=a.toPem();k.text= forge.util.encodeUtf8(b);k.signature=d;k.cmd="verifyRsaOaep";EcRsaOaepAsyncWorker.q1[c].push(h);EcRsaOaepAsyncWorker.q2[c].push(g);EcRsaOaepAsyncWorker.w[c].postMessage(k)}else h(EcRsaOaep.verify(a,b,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]},q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcAesCtrAsyncWorker=function(){},EcAesCtrAsyncWorker=stjs.extend(EcAesCtrAsyncWorker, null,[],function(k,b){k.rotator=0;k.w=null;k.q1=null;k.q2=null;k.initWorker=function(){if(!(null==window&&(typeof self).equals("undefined")||void 0==Worker||null==Worker)&&EcRemote.async&&null==EcAesCtrAsyncWorker.w){EcAesCtrAsyncWorker.rotator=0;EcAesCtrAsyncWorker.q1=[];EcAesCtrAsyncWorker.q2=[];EcAesCtrAsyncWorker.w=[];for(var a=0;8>a;a++)EcAesCtrAsyncWorker.createWorker(a)}};k.createWorker=function(a){EcAesCtrAsyncWorker.q1.push([]);EcAesCtrAsyncWorker.q2.push([]);var b;null!=window.scriptPath? EcAesCtrAsyncWorker.w.push(b=new Worker(window.scriptPath+"forgeAsync.js")):EcAesCtrAsyncWorker.w.push(b=new Worker("forgeAsync.js"));b.onmessage=function(b){b=b.data;var c=EcAesCtrAsyncWorker.q1[a].shift(),d=EcAesCtrAsyncWorker.q2[a].shift();null!=b.error?null!=d&&d(b.error):null!=c&&c(b.result)};b.onerror=function(b){EcAesCtrAsyncWorker.q1[a].shift();var c=EcAesCtrAsyncWorker.q2[a].shift();null!=c&&c(b.toString())}};k.encrypt=function(a,b,d,h,g){EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&& null!=EcAesCtrAsyncWorker.w){var c=EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var k={};k.secret=b;k.iv=d;k.text=forge.util.encodeUtf8(a);k.cmd="encryptAesCtr";EcAesCtrAsyncWorker.q1[c].push(h);EcAesCtrAsyncWorker.q2[c].push(g);EcAesCtrAsyncWorker.w[c].postMessage(k)}else h(EcAesCtr.encrypt(a,b,d))};k.decrypt=function(a,b,d,h,g){if(EcCrypto.caching){var c=null,c=EcCrypto.decryptionCache[b+d+a];if(null!=c){h(c);return}}EcAesCtrAsyncWorker.initWorker();if(EcRemote.async&&null!=EcAesCtrAsyncWorker.w){c= EcAesCtrAsyncWorker.rotator++;EcAesCtrAsyncWorker.rotator%=8;var k={};k.secret=b;k.iv=d;k.text=a;k.cmd="decryptAesCtr";EcCrypto.caching?EcAesCtrAsyncWorker.q1[c].push(function(c){EcCrypto.decryptionCache[b+d+a]=forge.util.decodeUtf8(c);h(forge.util.decodeUtf8(c))}):EcAesCtrAsyncWorker.q1[c].push(function(a){h(forge.util.decodeUtf8(a))});EcAesCtrAsyncWorker.q2[c].push(g);EcAesCtrAsyncWorker.w[c].postMessage(k)}else h(EcAesCtr.decrypt(a,b,d))}},{w:{name:"Array",arguments:[{name:"Worker",arguments:["Object"]}]}, -q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcRsaOaepAsync=function(){},EcRsaOaepAsync=stjs.extend(EcRsaOaepAsync,null,[],function(k,b){k.encrypt=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.encrypt(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.encrypt(a,b,d,h);else{var c=[];c.push("encrypt");var e={name:"RSA-OAEP", -hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,c).then(function(c){a.key=c;window.crypto.subtle.encrypt(e,c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.encrypt(e,a.key,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.decrypt=function(a,b,d,h){if(EcCrypto.caching){var c=null,c=EcCrypto.decryptionCache[a.toPem()+b];if(null!=c){d(c);return}}if(0==EcRemote.async)d(EcRsaOaep.decrypt(a,b)); -else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.decrypt(a,b,d,h);else{c=[];c.push("decrypt");var e={name:"RSA-OAEP",hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,c).then(function(c){a.key=c;window.crypto.subtle.decrypt(e,c,base64.decode(b)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))},h)},h):window.crypto.subtle.decrypt(e,a.key,base64.decode(b)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))}, -h)}};k.sign=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.sign(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,b,d,h);else{var c=[];c.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,c).then(function(c){a.signKey=c;window.crypto.subtle.sign(e,c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(e, -a.signKey,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.signSha256=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.signSha256(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,b,d,h);else{var c=[];c.push("sign");var e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),e,!1,c).then(function(c){a.signKey=c;window.crypto.subtle.sign(e, -c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(e,a.signKey,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.verify=function(a,b,d,h,g){if(0==EcRemote.async)h(EcRsaOaep.verify(a,b,d));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.verify(a,b,d,h,g);else{var c=[];c.push("verify");var k={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey? +q1:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]},q2:{name:"Array",arguments:[{name:"Array",arguments:["Callback1"]}]}},{}),EcRsaOaepAsync=function(){},EcRsaOaepAsync=stjs.extend(EcRsaOaepAsync,null,[],function(k,b){k.encrypt=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.encrypt(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.encrypt(a,b,d,h);else{var c=[];c.push("encrypt");var f={name:"RSA-OAEP", +hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),f,!1,c).then(function(c){a.key=c;window.crypto.subtle.encrypt(f,c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.encrypt(f,a.key,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.decrypt=function(a,b,d,h){if(EcCrypto.caching){var c=null,c=EcCrypto.decryptionCache[a.toPem()+b];if(null!=c){d(c);return}}if(0==EcRemote.async)d(EcRsaOaep.decrypt(a,b)); +else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.decrypt(a,b,d,h);else{c=[];c.push("decrypt");var f={name:"RSA-OAEP",hash:"SHA-1"};null==a.key?window.crypto.subtle.importKey("jwk",a.toJwk(),f,!1,c).then(function(c){a.key=c;window.crypto.subtle.decrypt(f,c,base64.decode(b)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))},h)},h):window.crypto.subtle.decrypt(f,a.key,base64.decode(b)).then(function(a){d(forge.util.decodeUtf8(ab2str(a)))}, +h)}};k.sign=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.sign(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,b,d,h);else{var c=[];c.push("sign");var f={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),f,!1,c).then(function(c){a.signKey=c;window.crypto.subtle.sign(f,c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(f, +a.signKey,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.signSha256=function(a,b,d,h){if(0==EcRemote.async)d(EcRsaOaep.signSha256(a,b));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.sign(a,b,d,h);else{var c=[];c.push("sign");var f={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"};null==a.signKey?window.crypto.subtle.importKey("jwk",a.toJwk(),f,!1,c).then(function(c){a.signKey=c;window.crypto.subtle.sign(f, +c,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)},h):window.crypto.subtle.sign(f,a.signKey,str2ab(forge.util.encodeUtf8(b))).then(function(a){d(base64.encode(a))},h)}};k.verify=function(a,b,d,h,g){if(0==EcRemote.async)h(EcRsaOaep.verify(a,b,d));else if(EcBrowserDetection.isIeOrEdge()||null==window||null==window.crypto||null==window.crypto.subtle)EcRsaOaepAsyncWorker.verify(a,b,d,h,g);else{var c=[];c.push("verify");var k={name:"RSASSA-PKCS1-v1_5",hash:"SHA-1"};null==a.signKey? window.crypto.subtle.importKey("jwk",a.toJwk(),k,!1,c).then(function(c){a.signKey=c;window.crypto.subtle.verify(k,c,base64.decode(d),str2ab(forge.util.encodeUtf8(b))).then(function(a){h(a)},g)},g):window.crypto.subtle.verify(k,a.signKey,base64.decode(d),str2ab(forge.util.encodeUtf8(b))).then(function(a){h(a)},g)}}},{},{}),EcAesCtrAsync=function(){},EcAesCtrAsync=stjs.extend(EcAesCtrAsync,null,[],function(k,b){k.encrypt=function(a,b,d,h,g){if(null==window||null==window.crypto||null==window.crypto.subtle)EcAesCtrAsyncWorker.encrypt(a, b,d,h,g);else if(0==EcRemote.async)h(EcAesCtr.encrypt(a,b,d));else{var c=[];c.push("encrypt","decrypt");var k={name:"AES-CTR"};k.counter=base64.decode(d);k.length=128;var p;p=str2ab(forge.util.encodeUtf8(a));window.crypto.subtle.importKey("raw",base64.decode(b),k,!1,c).then(function(a){window.crypto.subtle.encrypt(k,a,p).then(function(a){h(base64.encode(a))},g)},g)}};k.decrypt=function(a,b,d,h,g){if(EcCrypto.caching){var c=EcCrypto.decryptionCache[b+d+a];if(null!=c){h(c);return}}if(null==window.crypto|| null==window.crypto.subtle)EcAesCtrAsyncWorker.decrypt(a,b,d,h,g);else{0==EcRemote.async&&h(EcAesCtr.decrypt(a,b,d));c=[];c.push("encrypt","decrypt");var k={name:"AES-CTR"};k.counter=base64.decode(d);k.length=128;var p;p=base64.decode(a);window.crypto.subtle.importKey("raw",base64.decode(b),k,!1,c).then(function(c){window.crypto.subtle.decrypt(k,c,p).then(function(c){EcCrypto.decryptionCache[b+d+a]=forge.util.decodeUtf8(ab2str(c));h(forge.util.decodeUtf8(ab2str(c)))},g)},g)}}},{},{}),EcLinkedData= function(k,b){this.setContextAndType(k,b)},EcLinkedData=stjs.extend(EcLinkedData,null,[],function(k,b){k.atProperties="id type schema context signature graph owner reader encryptedType".split(" ");b.type=null;b.context=null;k.isAtProperty=function(a){for(var b=0;b=b.indexOf(h)&&b.push(h),a.splice(d,1))}};b.upgrade=function(){EcLinkedData.prototype.upgrade.call(this);this.movePersonMembersToEmployee()};b.getFingerprintFromId=function(){return this.getGuid()};b.getFingerprint=function(){return this.getGuid()}},{serviceArea:"GeoShape",address:"PostalAddress",funder:"Person",memberOf:"Organization",subOrganization:"Organization",hasOfferCatalog:"OfferCatalog",reviews:"Review",members:"Organization",aggregateRating:"AggregateRating", -makesOffer:"Offer",contactPoints:"ContactPoint",seeks:"Demand",member:"Organization",founders:"Person",alumni:"Person",events:"Event",logo:"ImageObject",employees:"Person",department:"Organization",contactPoint:"ContactPoint",parentOrganization:"Organization",employee:"Person",numberOfEmployees:"QuantitativeValue",hasPOS:"Place",review:"Review",foundingLocation:"Place",owns:"OwnershipInfo",event:"Event",founder:"Person",sponsor:"Organization",location:"PostalAddress",brand:"Organization",areaServed:"Place", -identifier:"Object",image:"Object",potentialAction:"Action",mainEntityOfPage:"Object",owner:{name:"Array",arguments:[null]},signature:{name:"Array",arguments:[null]},reader:{name:"Array",arguments:[null]},atProperties:{name:"Array",arguments:[null]}},{}),EcPerson=function(){Person.call(this)},EcPerson=stjs.extend(EcPerson,Person,[],function(k,b){k.getByPk=function(a,b,d,h){EcPerson.get(a.selectedServer+(a.selectedServer.endsWith("/")?"":"/")+"data/"+b.fingerprint(),d,h)};k.getByPkBlocking=function(a, -b,d,h){return EcPerson.getBlocking(a.selectedServer+(a.selectedServer.endsWith("/")?"":"/")+"data/"+b.fingerprint())};b.equals=function(a){return this.isId(a.id)};k.get=function(a,b,d){EcRepository.get(a,function(a){if(stjs.isInstanceOf(a.constructor,EcPerson)&&null!=b)b(a);else{var c=new EcPerson;if(a.isA(EcEncryptedValue.myType)){var e=new EcEncryptedValue;e.copyFrom(a);a=e.decryptIntoObject();EcEncryptedValue.encryptOnSave(a.id,!0)}a.isAny(c.getTypes())?(c.copyFrom(a),EcRepository.caching&&(EcRepository.cache[c.shortId()]= -c,EcRepository.cache[c.id]=c),null!=b&&b(c)):null!=d?d("Retrieved object was not a person"):console.error("Retrieved object was not a person")}},d)};k.getBlocking=function(a){a=EcRepository.getBlocking(a);if(null==a)return null;var b=new EcPerson;if(a.isA(EcEncryptedValue.myType)){var d=new EcEncryptedValue;d.copyFrom(a);a=d.decryptIntoObject();EcEncryptedValue.encryptOnSave(a.id,!0)}if(a.isAny(b.getTypes()))return b.copyFrom(a),b;console.error("Retrieved object was not a person");return null};k.search= -function(a,b,d,h,g){var c="",c=(new Person).getSearchStringByType();a.searchWithParams(null==b||""==b?c:"("+b+") AND "+c,g,null,function(a){if(null!=d){for(var b=[],c=0;c(new Date).getTime()+a)return c[1];a+=2E4}c=[];for(var h= -0;h(new Date).getTime()+a){d(e[1]);return}a+= -2E4}var k=a;(new EcAsyncHelper).each(EcIdentityManager.ids,function(a,d){EcIdentityManager.createSignatureAsync(k,b,a.ppk,function(a){c.push(a.atIfy());d()},function(a){h(a);d()})},function(a){var e=JSON.stringify(c);EcIdentityManager.signatureSheetCaching&&(a=[],a[0]=(new Date).getTime()+k,a[1]=e,EcIdentityManager.signatureSheetCache[b]=a);d(e)})}else a=EcIdentityManager.signatureSheet(a,b),null!=d&&d(a)};k.createSignature=function(a,b,d){var c=new EbacSignature;c.owner=d.toPk().toPem();c.expiry= -(new Date).getTime()+a;c.server=b;c.signature=EcRsaOaep.sign(d,c.toJson());return c};k.createSignatureAsync=function(a,b,d,h,g){var c=new EbacSignature;c.owner=d.toPk().toPem();c.expiry=(new Date).getTime()+a;c.server=b;EcRsaOaepAsync.sign(d,c.toJson(),function(a){c.signature=a;h(c)},g)};k.getPpk=function(a){a=a.toPem();for(var b=0;b=b.indexOf(h)&&b.push(h),a.splice(d,1))}};b.upgrade=function(){EcLinkedData.prototype.upgrade.call(this);this.movePersonMembersToEmployee()};b.getFingerprintFromId=function(){return this.getGuid()}; +b.getFingerprint=function(){return this.getGuid()}},{serviceArea:"GeoShape",address:"PostalAddress",funder:"Person",memberOf:"Organization",subOrganization:"Organization",hasOfferCatalog:"OfferCatalog",reviews:"Review",members:"Organization",aggregateRating:"AggregateRating",makesOffer:"Offer",contactPoints:"ContactPoint",seeks:"Demand",member:"Organization",founders:"Person",alumni:"Person",events:"Event",logo:"ImageObject",employees:"Person",department:"Organization",contactPoint:"ContactPoint", +parentOrganization:"Organization",employee:"Person",numberOfEmployees:"QuantitativeValue",hasPOS:"Place",review:"Review",foundingLocation:"Place",owns:"OwnershipInfo",event:"Event",founder:"Person",sponsor:"Organization",location:"PostalAddress",brand:"Organization",areaServed:"Place",identifier:"Object",image:"Object",potentialAction:"Action",mainEntityOfPage:"Object",owner:{name:"Array",arguments:[null]},signature:{name:"Array",arguments:[null]},reader:{name:"Array",arguments:[null]},atProperties:{name:"Array", +arguments:[null]}},{}),EcPerson=function(){Person.call(this)},EcPerson=stjs.extend(EcPerson,Person,[],function(k,b){k.getByPk=function(a,b,d,h){EcPerson.get(a.selectedServer+(a.selectedServer.endsWith("/")?"":"/")+"data/"+b.fingerprint(),d,h)};k.getByPkBlocking=function(a,b,d,h){return EcPerson.getBlocking(a.selectedServer+(a.selectedServer.endsWith("/")?"":"/")+"data/"+b.fingerprint())};b.equals=function(a){return this.isId(a.id)};k.get=function(a,b,d){EcRepository.get(a,function(a){if(stjs.isInstanceOf(a.constructor, +EcPerson)&&null!=b)b(a);else{var c=new EcPerson;if(a.isA(EcEncryptedValue.myType)){var f=new EcEncryptedValue;f.copyFrom(a);a=f.decryptIntoObject();EcEncryptedValue.encryptOnSave(a.id,!0)}a.isAny(c.getTypes())?(c.copyFrom(a),EcRepository.caching&&(EcRepository.cache[c.shortId()]=c,EcRepository.cache[c.id]=c),null!=b&&b(c)):null!=d?d("Retrieved object was not a person"):console.error("Retrieved object was not a person")}},d)};k.getBlocking=function(a){a=EcRepository.getBlocking(a);if(null==a)return null; +var b=new EcPerson;if(a.isA(EcEncryptedValue.myType)){var d=new EcEncryptedValue;d.copyFrom(a);a=d.decryptIntoObject();EcEncryptedValue.encryptOnSave(a.id,!0)}if(a.isAny(b.getTypes()))return b.copyFrom(a),b;console.error("Retrieved object was not a person");return null};k.search=function(a,b,d,h,g){var c="",c=(new Person).getSearchStringByType();a.searchWithParams(null==b||""==b?c:"("+b+") AND "+c,g,null,function(a){if(null!=d){for(var b=[],c=0;c(new Date).getTime()+a)return c[1];a+=2E4}c=[];for(var h=0;h(new Date).getTime()+a){d(f[1]);return}a+=2E4}var k=a;(new EcAsyncHelper).each(EcIdentityManager.ids,function(a,d){EcIdentityManager.createSignatureAsync(k,b,a.ppk,function(a){c.push(a.atIfy());d()},function(a){h(a);d()})},function(a){var e=JSON.stringify(c);EcIdentityManager.signatureSheetCaching&&(a=[],a[0]=(new Date).getTime()+k,a[1]=e,EcIdentityManager.signatureSheetCache[b]= +a);d(e)})}else a=EcIdentityManager.signatureSheet(a,b),null!=d&&d(a)};k.createSignature=function(a,b,d){var c=new EbacSignature;c.owner=d.toPk().toPem();c.expiry=(new Date).getTime()+a;c.server=b;c.signature=EcRsaOaep.sign(d,c.toJson());return c};k.createSignatureAsync=function(a,b,d,h,g){var c=new EbacSignature;c.owner=d.toPk().toPem();c.expiry=(new Date).getTime()+a;c.server=b;EcRsaOaepAsync.sign(d,c.toJson(),function(a){c.signature=a;h(c)},g)};k.getPpk=function(a){a=a.toPem();for(var b=0;bc.usernameSalt.length?b("Insufficient length on Username Salt"):(c.usernameIterations=stjs.trunc(d.usernameIterations),1E3>c.usernameIterations?b("Insufficient iterations on Username Hash"): +stjs.extend(EcRemoteIdentityManager,null,[RemoteIdentityManagerInterface],function(k,b){b.server=null;b.global=null;b.usernameWithSalt=null;b.passwordWithSalt=null;b.secretWithSalt=null;b.pad=null;b.token=null;b.usernameSalt=null;b.usernameIterations=0;b.usernameWidth=0;b.passwordSalt=null;b.passwordIterations=0;b.passwordWidth=0;b.secretSalt=null;b.secretIterations=0;b.configured=!1;b.isGlobal=function(){return null==this.global?!1:this.global};b.configure=function(a,b,d,h,g,f,k,p){this.usernameSalt= +a;this.usernameIterations=b;this.usernameWidth=d;this.passwordSalt=h;this.passwordIterations=g;this.passwordWidth=f;this.secretSalt=k;this.secretIterations=p;this.configured=!0};b.configureFromServer=function(a,b){var c=this;EcRemote.getExpectingObject(this.server,"sky/id/salts",function(d){c.usernameSalt=d.usernameSalt;16>c.usernameSalt.length?b("Insufficient length on Username Salt"):(c.usernameIterations=stjs.trunc(d.usernameIterations),1E3>c.usernameIterations?b("Insufficient iterations on Username Hash"): (c.usernameWidth=stjs.trunc(d.usernameLength),64!=c.usernameWidth?b("Username Hash required to be length 64."):(c.passwordSalt=d.passwordSalt,16>c.passwordSalt.length?b("Insufficient length on Password Salt"):(c.passwordIterations=stjs.trunc(d.passwordIterations),1E3>c.passwordIterations?b("Insufficient iterations on Password Hash"):(c.passwordWidth=stjs.trunc(d.passwordLength),64!=c.passwordWidth?b("Password Hash required to be length 64."):(c.secretSalt=d.secretSalt,16>c.secretSalt.length?b("Insufficient length on Secret Salt"): (c.secretIterations=stjs.trunc(d.secretIterations),1E3>c.secretIterations?b("Insufficient iterations on Secret Hash"):(c.configured=!0,null!=a&&a(d)))))))))},function(a){c.configured=!1;null!=b?b(a):console.error(a)})};b.clear=function(){this.token=this.pad=this.secretWithSalt=this.passwordWithSalt=this.usernameWithSalt=null};b.setDefaultIdentityManagementServer=function(a){this.server=a};b.startLogin=function(a,b){if(!this.configured)throw new RuntimeException("Remote Identity not configured."); this.usernameWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.usernameSalt,this.usernameIterations,this.usernameWidth));this.passwordWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(b,this.passwordSalt,this.passwordIterations,this.passwordWidth));var c=[];c.push(a,b);a=this.splicePasswords(c);this.secretWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.secretSalt,this.secretIterations,32))};b.changePassword=function(a,b,d){var c=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.usernameSalt, this.usernameIterations,this.usernameWidth));if(this.usernameWithSalt!=c)throw new RuntimeException("Username does not match. Aborting password change.");b=forge.util.encode64(forge.pkcs5.pbkdf2(b,this.passwordSalt,this.passwordIterations,this.passwordWidth));if(this.passwordWithSalt!=b)throw new RuntimeException("Old password does not match. Aborting password change.");this.passwordWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(d,this.passwordSalt,this.passwordIterations,this.passwordWidth));b= [];b.push(a,d);a=this.splicePasswords(b);this.secretWithSalt=forge.util.encode64(forge.pkcs5.pbkdf2(a,this.secretSalt,this.secretIterations,32));return!0};b.fetch=function(a,b){if(this.configured)if(null==this.usernameWithSalt||null==this.passwordWithSalt||null==this.secretWithSalt)b("Please log in before performing this operation.");else{var c=new EbacCredentialRequest;c.username=this.usernameWithSalt;c.password=this.passwordWithSalt;var h=new FormData;h.append("credentialRequest",c.toJson());var g= this;EcRemote.postExpectingObject(this.server,"sky/id/login",h,function(b){g.pad=b.pad;g.token=b.token;if(null!=b.credentials)for(var c=0;c=a[g].length||(b+=a[g].charAt(d),h=!0);if(!h)break}return b}},{},{}),EcEncryptedValue=function(){EbacEncryptedValue.call(this)},EcEncryptedValue=stjs.extend(EcEncryptedValue,EbacEncryptedValue, -[],function(k,b){k.encryptOnSaveMap=null;k.revive=function(a){if(null==a)return null;var b=new EcEncryptedValue;b.copyFrom(a);return b};k.toEncryptedValue=function(a,b){a.updateTimestamp();var c=new EcEncryptedValue;null!=b&&b||(c.encryptedType=a.type);b=EcAes.newIv(16);var h=EcAes.newIv(16),g=a["skos:prefLabel"],e=a["dcterms:title"];c.payload=EcAesCtr.encrypt(a.toJson(),h,b);c.owner=a.owner;c.reader=a.reader;c.id=a.id;null!=a.name&&(c.name=a.name);if(null!=a.owner)for(var k=0;k=a[g].length||(b+=a[g].charAt(d),h=!0);if(!h)break}return b}},{},{}),EcEncryptedValue=function(){EbacEncryptedValue.call(this)},EcEncryptedValue=stjs.extend(EcEncryptedValue,EbacEncryptedValue, +[],function(k,b){k.encryptOnSaveMap=null;k.revive=function(a){if(null==a)return null;var b=new EcEncryptedValue;b.copyFrom(a);return b};k.toEncryptedValue=function(a,b){a.updateTimestamp();var c=new EcEncryptedValue;null!=b&&b||(c.encryptedType=a.type);b=EcAes.newIv(16);var h=EcAes.newIv(16),g=a["skos:prefLabel"],f=a["dcterms:title"];c.payload=EcAesCtr.encrypt(a.toJson(),h,b);c.owner=a.owner;c.reader=a.reader;c.id=a.id;null!=a.name&&(c.name=a.name);if(null!=a.owner)for(var k=0;kb||h!=b)try{c=this.tryDecryptSecretByKeyAndIndex(a,h)}catch(g){}if(null!=c)return c}}return null};b.decryptSecretAsync=function(a,b){var c=[],h=[];if(null!=this.owner)for(var g=0;gb||h!=b)try{c=this.tryDecryptSecretByKeyAndIndex(a,h)}catch(g){}if(null!=c)return c}}return null};b.decryptSecretAsync=function(a,b){var c=[],h=[];if(null!=this.owner)for(var g=0;gb||b>=this.secret.length?this.decryptSecretsByKeyAsync(a,d,h):EcRsaOaepAsync.decrypt(a,this.secret[b],function(b){EcLinkedData.isProbablyJson(b)?d(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(b))):c.decryptSecretsByKeyAsync(a,d,h)},function(b){c.decryptSecretsByKeyAsync(a, -d,h)}):h("Secret field is empty.")};b.decryptSecretsByKeyAsync=function(a,b,d){var c=new EcAsyncHelper;c.each(this.secret,function(d,e){EcRsaOaepAsync.decrypt(a,d,function(a){-1!=c.counter&&(EcLinkedData.isProbablyJson(a)?(c.stop(),b(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(a)))):e())},function(a){e()})},function(a){d("Could not find decryption key.")})};b.isAnEncrypted=function(a){if(null==this.encryptedType)return!1;var b=a.split("/");return this.encryptedType==a||this.encryptedType== +d,h)}):h("Secret field is empty.")};b.decryptSecretsByKeyAsync=function(a,b,d){var c=new EcAsyncHelper;c.each(this.secret,function(d,f){EcRsaOaepAsync.decrypt(a,d,function(a){-1!=c.counter&&(EcLinkedData.isProbablyJson(a)?(c.stop(),b(EbacEncryptedSecret.fromEncryptableJson(JSON.parse(a)))):f())},function(a){f()})},function(a){d("Could not find decryption key.")})};b.isAnEncrypted=function(a){if(null==this.encryptedType)return!1;var b=a.split("/");return this.encryptedType==a||this.encryptedType== b[b.length-1]};b.addReader=function(a){this.addReaderBasic(a);var b=this.decryptSecret();null==b?console.error("Cannot add a Reader if you don't know the secret"):EcArray.setAdd(this.secret,EcRsaOaep.encrypt(a,b.toEncryptableJson()))};b.addReaderBasic=function(a){a=a.toPem();null==this.reader&&(this.reader=[]);EcArray.has(this.reader,a)||null!=this.owner&&EcArray.has(this.owner,a)||EcArray.setAdd(this.reader,a)};b.removeReader=function(a){var b=this.decryptSecret();a=a.toPem();null!=this.reader&& EcArray.setRemove(this.reader,a);if(null==b)console.error("Cannot remove a Reader if you don't know the secret");else{this.secret=[];if(null!=this.owner)for(a=0;a(new Date).getTime()){setTimeout(function(){EcRepository.get(c,b,d)},100);return}EcRepository.fetching[a]=(new Date).getTime()+6E4}}if(!EcRepository.shouldTryUrl(a))if(1==EcRepository.repos.length)a=EcRemoteLinkedData.veryShortId(EcRepository.repos[0].selectedServer, -EcCrypto.md5(a));else{EcRepository.find(a,"Could not locate object. May be due to EcRepository.alwaysTryUrl flag.",{},0,b,d);return}var g=new FormData,e=a;EcRepository.unsigned?EcRemote.getExpectingObject(e,null,function(a){EcRepository.getHandleData(a,c,b,d,e)},function(a){EcRepository.find(c,a,{},0,b,d)}):EcIdentityManager.signatureSheetAsync(6E4,a,function(a){null!=EcRepository.cache[c]?(delete EcRepository.fetching[c],b(EcRepository.cache[c])):(g.append("signatureSheet",a),EcRemote.postExpectingObject(e, -null,g,function(a){EcRepository.getHandleData(a,c,b,d,e)},function(a){EcRepository.find(c,a,{},0,b,d)}))},d)}}};k.getHandleData=function(a,b,d,h,g){delete EcRepository.fetching[b];var c=new EcRemoteLinkedData("","");c.copyFrom(a);null==c.getFullType()?EcRepository.find(b,JSON.stringify(a),{},0,d,h):(EcRepository.caching&&(EcRepository.cache[g]=c,null!=c.id&&(EcRepository.cache[c.id]=c)),d(c))};k.shouldTryUrl=function(a){if(null==a)return!1;if(EcRepository.alwaysTryUrl||0==EcRepository.repos.length|| --1!=a.indexOf("/api/")||-1!=a.indexOf("/data/"))return!0;a=!1;for(var b=0;bEcRepository.repos.length||null==EcRepository.repos[h])delete EcRepository.fetching[a],null!=e&&e(b);else{var c=EcRepository.repos[h];null==c.selectedServer?EcRepository.find(a,b,d,h+1,g,e):1==d[c.selectedServer]?EcRepository.find(a,b,d,h+1,g,e):(d[c.selectedServer]=!0,c.search('@id:"'+ -a+'"',null,function(h){if(null!=h&&0!=h.length){for(var f=!1,k=0;kEcRepository.repos.length||null==EcRepository.repos[h])return delete EcRepository.fetching[a], -null;var c=EcRepository.repos[h];1==d[c.selectedServer]&&EcRepository.findBlocking(a,b,d,h+1);d[c.selectedServer]=!0;c=c.searchBlocking('@id:"'+a+'"');if(null!=c&&0!=c.length)for(var e=0;e(new Date).getTime()){setTimeout(function(){l.searchWithParams(a, -b,d,h,g)},100);return}EcRepository.fetching[f]=(new Date).getTime()+6E4}}else f=null;var n=new FormData;n.append("data",c);null!=p&&n.append("searchParams",JSON.stringify(p));l=this;1==EcRepository.unsigned||1==k.unsigned?(n.append("signatureSheet","[]"),EcRemote.postExpectingObject(l.selectedServer,"sky/repo/search",n,function(a){EcRepository.cachingSearch&&(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];l.handleSearchResults(a,d,h,g)},function(a){null!=f&&delete EcRepository.fetching[f]; -null!=g&&g(a)})):EcIdentityManager.signatureSheetAsync(6E4+this.timeOffset,this.selectedServer,function(a){n.append("signatureSheet",a);EcRemote.postExpectingObject(l.selectedServer,"sky/repo/search",n,function(a){EcRepository.cachingSearch&&(EcRepository.cache[f]=a);null!=f&&delete EcRepository.fetching[f];l.handleSearchResults(a,d,h,g)},function(a){null!=f&&delete EcRepository.fetching[f];null!=g&&g(a)})},g)}};b.searchWithParamsBlocking=function(a,b){var c;null==b&&(b={});var h={};c=this.searchParamProps(a, -b,h);null!=b.fields&&(h.fields=b.fields);a=EcRemote.async;EcRemote.async=!1;var g;g=JSON.stringify(h)+c;if(EcRepository.cachingSearch&&null!=EcRepository.cache[g])return this.handleSearchResults(EcRepository.cache[g],null,null,null);var e=new FormData;e.append("data",c);null!=h&&e.append("searchParams",JSON.stringify(h));1==EcRepository.unsigned||1==b.unsigned?(e.append("signatureSheet","[]"),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[g]=a; -null!=g&&delete EcRepository.fetching[g]},function(a){null!=g&&delete EcRepository.fetching[g];EcRepository.cache[g]=null})):(b=EcIdentityManager.signatureSheet(6E4+this.timeOffset,this.selectedServer),e.append("signatureSheet",b),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",e,function(a){EcRepository.cache[g]=a;null!=g&&delete EcRepository.fetching[g]},function(a){null!=g&&delete EcRepository.fetching[g];EcRepository.cache[g]=null}));b=this.handleSearchResults(EcRepository.cache[g], -null,null,null);EcRepository.cachingSearch||delete EcRepository.cache[g];EcRemote.async=a;return b};b.searchParamProps=function(a,b,d){null!=b.start&&(d.start=b.start);null!=b.size&&(d.size=b.size);null!=b.types&&(d.types=b.types);null!=b.sort&&(d.sort=b.sort);null!=b.track_scores&&(d.track_scores=b.track_scores);if(null!=b.ownership)if(b=b.ownership,a.startsWith("(")&&a.endsWith(")")||(a="("+a+")"),"public"==b)a+=" AND (_missing_:@owner)";else if("owned"==b)a+=" AND (_exists_:@owner)";else if("me"== -b){a+=" AND (";for(b=0;b=this.relation.length&&null!=d?d(""):EcAlignment.get(this.relation[b],function(g){null!=g&&g.source==c||g.target==c||g.source==a||g.target==a?(e.relation.splice(b,1),e.removeRelationshipsThatInclude(a,b,d,h)):e.removeRelationshipsThatInclude(a,b+1,d,h)},function(c){e.removeRelationshipsThatInclude(a,b+1,d,h)})};b.removeLevelsThatInclude=function(a,b,d,h){var c=EcRemoteLinkedData.trimVersionFromUrl(a), -e=this;b>=this.level.length&&null!=d?d(""):EcLevel.get(this.level[b],function(g){g.competency==c||g.competency==a?(e.level.splice(b,1),e.removeLevelsThatInclude(a,b,d,h)):e.removeLevelsThatInclude(a,b+1,d,h)},function(c){e.removeLevelsThatInclude(a,b+1,d,h)})};b.addRelation=function(a){a=EcRemoteLinkedData.trimVersionFromUrl(a);null==this.relation&&(this.relation=[]);for(var b=0;ba?1:0=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS); -a>=PapCompetencyNetwork.HIGH_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.HIGH_CONFLICT_CLASS);return b};b.getDependencies=function(){return this.dependencies};b.setDependencies=function(a){this.dependencies=a};b.getActivations=function(){return this.activations};b.setActivations=function(a){this.activations=a};b.getAlphas=function(){return this.alphas};b.setAlphas=function(a){this.alphas=a};b.getBetas=function(){return this.betas};b.setBetas=function(a){this.betas=a};b.getUpdated=function(){return this.updated}; -b.setUpdated=function(a){this.updated=a};b.getNumberNodes=function(){return this.numberNodes};b.setNumberNodes=function(a){this.numberNodes=a}},{dependencies:{name:"Map",arguments:[null,{name:"Map",arguments:[null,{name:"Array",arguments:["PapDependency"]}]}]},activations:{name:"Array",arguments:[null]},alphas:{name:"Array",arguments:[null]},betas:{name:"Array",arguments:[null]},updated:{name:"Array",arguments:[null]}},{}),PapAssertion=function(k,b,a,c,d){this.confidence=k;this.assertionDate=a;this.expirationDate= -c;this.result=d;this.competencyIndex=b},PapAssertion=stjs.extend(PapAssertion,null,[],function(k,b){b.confidence=null;b.competencyIndex=null;b.assertionDate=null;b.expirationDate=null;b.result=!1;b.getConfidence=function(){return this.confidence};b.setConfidence=function(a){this.confidence=a};b.getCompetencyIndex=function(){return this.competencyIndex};b.setCompetencyIndex=function(a){this.competencyIndex=a};b.getAssertionDate=function(){return this.assertionDate};b.setAssertionDate=function(a){this.assertionDate= -a};b.getExpirationDate=function(){return this.expirationDate};b.setExpirationDate=function(a){this.expirationDate=a};b.getResult=function(){return this.result};b.setResult=function(a){this.result=a}},{},{}),RollupRuleInterface=function(k,b){k=new antlr4.InputStream(k);k=new RollupLexer.RollupLexer(k);k=new antlr4.CommonTokenStream(k);this.parser=new RollupParser.RollupParser(k);this.parser.buildParseTrees=!0;this.listener=new RollupListener.RollupListener;this.processor=b;var a=this;this.listener.enterS= -function(b){a.processor.enterS(b)};this.listener.exitS=function(b){a.processor.exitS(b);a.success(!0)};this.listener.exitToken=function(b){a.processor.exitToken(b)};this.listener.enterQuery=function(b){a.processor.enterQuery(b)};this.listener.exitQuery=function(b){a.processor.exitQuery(b)};this.listener.exitInnerquery=function(b){a.processor.exitInnerquery(b)};this.listener.exitLogical_or_math_operator=function(b){a.processor.exitLogical_or_math_operator(b)};this.parser.addParseListener(this.listener)}, -RollupRuleInterface=stjs.extend(RollupRuleInterface,null,[],function(k,b){b.logFunction=null;b.success=null;b.failure=null;b.listener=null;b.parser=null;b.processor=null;b.go=function(){this.processor.logFunction=this.logFunction;this.processor.success=this.success;this.processor.failure=this.failure;this.parser.s()}},{logFunction:{name:"Callback1",arguments:["Object"]},success:{name:"Callback1",arguments:[null]},failure:{name:"Callback1",arguments:[null]},listener:"RollupListener.RollupListener", -parser:"RollupParser.RollupParser",processor:"RollupRuleProcessor"},{}),RollupRulePacketGenerator=function(k,b){this.ip=k;this.ep=b;this.queries=[];this.queryOperations=[]},RollupRulePacketGenerator=stjs.extend(RollupRulePacketGenerator,null,[],function(k,b){b.queries=null;b.queryOperations=null;b.ip=null;b.ep=null;k.main=function(a){};b.addQuery=function(a){this.queries.push(a)};b.addQueryOperation=function(a){this.queryOperations.push(a)};b.hasOrOperation=function(){for(var a=0;aEcRepository.repos.length||null==EcRepository.repos[h])delete EcRepository.fetching[a], +null!=f&&f(b);else{var c=EcRepository.repos[h];null==c.selectedServer?EcRepository.find(a,b,d,h+1,g,f):1==d[c.selectedServer]?EcRepository.find(a,b,d,h+1,g,f):(d[c.selectedServer]=!0,c.search('@id:"'+a+'"',null,function(h){if(null!=h&&0!=h.length){for(var e=!1,k=0;kEcRepository.repos.length||null==EcRepository.repos[h])return delete EcRepository.fetching[a],null;var c=EcRepository.repos[h];1==d[c.selectedServer]&&EcRepository.findBlocking(a,b,d,h+1);d[c.selectedServer]=!0;c=c.searchBlocking('@id:"'+a+'"');if(null!=c&&0!=c.length)for(var f=0;f(new Date).getTime()){setTimeout(function(){l.searchWithParams(a,b,d,h,g)},100);return}EcRepository.fetching[e]=(new Date).getTime()+6E4}}else e=null;var n=new FormData;n.append("data",c);null!=p&&n.append("searchParams",JSON.stringify(p));l=this;1==EcRepository.unsigned||1==k.unsigned?(n.append("signatureSheet","[]"),EcRemote.postExpectingObject(l.selectedServer,"sky/repo/search",n,function(a){EcRepository.cachingSearch&& +(EcRepository.cache[e]=a);null!=e&&delete EcRepository.fetching[e];l.handleSearchResults(a,d,h,g)},function(a){null!=e&&delete EcRepository.fetching[e];null!=g&&g(a)})):EcIdentityManager.signatureSheetAsync(6E4+this.timeOffset,this.selectedServer,function(a){n.append("signatureSheet",a);EcRemote.postExpectingObject(l.selectedServer,"sky/repo/search",n,function(a){EcRepository.cachingSearch&&(EcRepository.cache[e]=a);null!=e&&delete EcRepository.fetching[e];l.handleSearchResults(a,d,h,g)},function(a){null!= +e&&delete EcRepository.fetching[e];null!=g&&g(a)})},g)}};b.searchWithParamsBlocking=function(a,b){var c;null==b&&(b={});var h={};c=this.searchParamProps(a,b,h);null!=b.fields&&(h.fields=b.fields);a=EcRemote.async;EcRemote.async=!1;var g;g=JSON.stringify(h)+c;if(EcRepository.cachingSearch&&null!=EcRepository.cache[g])return this.handleSearchResults(EcRepository.cache[g],null,null,null);var f=new FormData;f.append("data",c);null!=h&&f.append("searchParams",JSON.stringify(h));1==EcRepository.unsigned|| +1==b.unsigned?(f.append("signatureSheet","[]"),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",f,function(a){EcRepository.cache[g]=a;null!=g&&delete EcRepository.fetching[g]},function(a){null!=g&&delete EcRepository.fetching[g];EcRepository.cache[g]=null})):(b=EcIdentityManager.signatureSheet(6E4+this.timeOffset,this.selectedServer),f.append("signatureSheet",b),EcRemote.postExpectingObject(this.selectedServer,"sky/repo/search",f,function(a){EcRepository.cache[g]=a;null!=g&&delete EcRepository.fetching[g]}, +function(a){null!=g&&delete EcRepository.fetching[g];EcRepository.cache[g]=null}));b=this.handleSearchResults(EcRepository.cache[g],null,null,null);EcRepository.cachingSearch||delete EcRepository.cache[g];EcRemote.async=a;return b};b.searchParamProps=function(a,b,d){null!=b.start&&(d.start=b.start);null!=b.size&&(d.size=b.size);null!=b.types&&(d.types=b.types);null!=b.sort&&(d.sort=b.sort);null!=b.track_scores&&(d.track_scores=b.track_scores);if(null!=b.ownership)if(b=b.ownership,a.startsWith("(")&& +a.endsWith(")")||(a="("+a+")"),"public"==b)a+=" AND (_missing_:@owner)";else if("owned"==b)a+=" AND (_exists_:@owner)";else if("me"==b){a+=" AND (";for(b=0;b=this.relation.length&&null!=d?d(""):EcAlignment.get(this.relation[b],function(g){null!=g&&g.source==c||g.target==c||g.source==a||g.target==a?(f.relation.splice(b, +1),f.removeRelationshipsThatInclude(a,b,d,h)):f.removeRelationshipsThatInclude(a,b+1,d,h)},function(c){f.removeRelationshipsThatInclude(a,b+1,d,h)})};b.removeLevelsThatInclude=function(a,b,d,h){var c=EcRemoteLinkedData.trimVersionFromUrl(a),f=this;b>=this.level.length&&null!=d?d(""):EcLevel.get(this.level[b],function(g){g.competency==c||g.competency==a?(f.level.splice(b,1),f.removeLevelsThatInclude(a,b,d,h)):f.removeLevelsThatInclude(a,b+1,d,h)},function(c){f.removeLevelsThatInclude(a,b+1,d,h)})}; +b.addRelation=function(a){a=EcRemoteLinkedData.trimVersionFromUrl(a);null==this.relation&&(this.relation=[]);for(var b=0;ba?1:0=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.MEDIUM_CONFLICT_CLASS);a>=PapCompetencyNetwork.HIGH_CONFLICT_CLASS_QUALIFIER&&(b=PapCompetencyNetwork.HIGH_CONFLICT_CLASS); +return b};b.getDependencies=function(){return this.dependencies};b.setDependencies=function(a){this.dependencies=a};b.getActivations=function(){return this.activations};b.setActivations=function(a){this.activations=a};b.getAlphas=function(){return this.alphas};b.setAlphas=function(a){this.alphas=a};b.getBetas=function(){return this.betas};b.setBetas=function(a){this.betas=a};b.getUpdated=function(){return this.updated};b.setUpdated=function(a){this.updated=a};b.getNumberNodes=function(){return this.numberNodes}; +b.setNumberNodes=function(a){this.numberNodes=a}},{dependencies:{name:"Map",arguments:[null,{name:"Map",arguments:[null,{name:"Array",arguments:["PapDependency"]}]}]},activations:{name:"Array",arguments:[null]},alphas:{name:"Array",arguments:[null]},betas:{name:"Array",arguments:[null]},updated:{name:"Array",arguments:[null]}},{}),PapAssertion=function(k,b,a,c,d){this.confidence=k;this.assertionDate=a;this.expirationDate=c;this.result=d;this.competencyIndex=b},PapAssertion=stjs.extend(PapAssertion, +null,[],function(k,b){b.confidence=null;b.competencyIndex=null;b.assertionDate=null;b.expirationDate=null;b.result=!1;b.getConfidence=function(){return this.confidence};b.setConfidence=function(a){this.confidence=a};b.getCompetencyIndex=function(){return this.competencyIndex};b.setCompetencyIndex=function(a){this.competencyIndex=a};b.getAssertionDate=function(){return this.assertionDate};b.setAssertionDate=function(a){this.assertionDate=a};b.getExpirationDate=function(){return this.expirationDate}; +b.setExpirationDate=function(a){this.expirationDate=a};b.getResult=function(){return this.result};b.setResult=function(a){this.result=a}},{},{}),RollupRuleInterface=function(k,b){k=new antlr4.InputStream(k);k=new RollupLexer.RollupLexer(k);k=new antlr4.CommonTokenStream(k);this.parser=new RollupParser.RollupParser(k);this.parser.buildParseTrees=!0;this.listener=new RollupListener.RollupListener;this.processor=b;var a=this;this.listener.enterS=function(b){a.processor.enterS(b)};this.listener.exitS= +function(b){a.processor.exitS(b);a.success(!0)};this.listener.exitToken=function(b){a.processor.exitToken(b)};this.listener.enterQuery=function(b){a.processor.enterQuery(b)};this.listener.exitQuery=function(b){a.processor.exitQuery(b)};this.listener.exitInnerquery=function(b){a.processor.exitInnerquery(b)};this.listener.exitLogical_or_math_operator=function(b){a.processor.exitLogical_or_math_operator(b)};this.parser.addParseListener(this.listener)},RollupRuleInterface=stjs.extend(RollupRuleInterface, +null,[],function(k,b){b.logFunction=null;b.success=null;b.failure=null;b.listener=null;b.parser=null;b.processor=null;b.go=function(){this.processor.logFunction=this.logFunction;this.processor.success=this.success;this.processor.failure=this.failure;this.parser.s()}},{logFunction:{name:"Callback1",arguments:["Object"]},success:{name:"Callback1",arguments:[null]},failure:{name:"Callback1",arguments:[null]},listener:"RollupListener.RollupListener",parser:"RollupParser.RollupParser",processor:"RollupRuleProcessor"}, +{}),RollupRulePacketGenerator=function(k,b){this.ip=k;this.ep=b;this.queries=[];this.queryOperations=[]},RollupRulePacketGenerator=stjs.extend(RollupRulePacketGenerator,null,[],function(k,b){b.queries=null;b.queryOperations=null;b.ip=null;b.ep=null;k.main=function(a){};b.addQuery=function(a){this.queries.push(a)};b.addQueryOperation=function(a){this.queryOperations.push(a)};b.hasOrOperation=function(){for(var a=0;a=this.queryOperations.length)){var b=this.generateComboAndPacket(),d;RollupRulePacketGenerator.OperationType.OR.equals(this.queryOperations[0])?a.subPackets.push(this.generateRollupRulePacket(this.queries[0])):b.subPackets.push(this.generateRollupRulePacket(this.queries[0])); d=this.queryOperations[0];for(var h=1;h=this.subjectPem.length)this.addAssertions(this.inputGraph.getNegativeAssertions()),this.addAssertions(this.inputGraph.getPositiveAssertions());else{for(var a,b=[],d=0;db?PredictiveAssertionProcessor.ABRUBT_EXP_RETENTION:this.settings.getGradualForgetting()?(a=this.getTimeFactor(a,b),Math.exp(-a)):PredictiveAssertionProcessor.DEFAULT_RETENTION};b.addAssertionsToUpdateQueue=function(a){for(var b, -d,h,g=0;gthis.priorityQueueThreshold&&a.push(new PapUpdate(d.getCompetencyIndex(),h,d.getResult()))}};b.processNecessaryNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.NECESSARY_TYPE][String.valueOf(a.getIndex())]; -if(null!=c){var h=PredictiveAssertionProcessor.DEFAULT_PROB_LEARN_UNMET_REQS;0this.priorityQueueThreshold&&b.push(a.updateChild(g.getChildIndex(), -k)))}};b.processSufficientNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.SUFFICIENT_TYPE][String.valueOf(a.getIndex())];if(null!=c){var h=PredictiveAssertionProcessor.DEFAULT_PROB_INSUFF;0this.priorityQueueThreshold&&b.push(a.updateChild(g.getChildIndex(),k)))}};b.processEquivalenceNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.EQUIVALENCE_TYPE][String.valueOf(a.getIndex())];if(null!=c)for(var h,g,e=0;ethis.priorityQueueThreshold&& -b.push(a.updateChild(h.getChildIndex(),g)))};b.processBroadensNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.BROADENS_TYPE][String.valueOf(a.getIndex())];if(null!=c)for(var h,g,e=0;ethis.priorityQueueThreshold&&b.push(a.updateChild(h.getChildIndex(),g)))};b.predictCompetence=function(){this.competencyNetwork=new PapCompetencyNetwork(this.dependencies, +d,h,g=0;gthis.priorityQueueThreshold&&a.push(new PapUpdate(d.getCompetencyIndex(),h,d.getResult()))}};b.processNecessaryNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.NECESSARY_TYPE][String.valueOf(a.getIndex())]; +if(null!=c){var h=PredictiveAssertionProcessor.DEFAULT_PROB_LEARN_UNMET_REQS;0this.priorityQueueThreshold&&b.push(a.updateChild(g.getChildIndex(), +k)))}};b.processSufficientNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.SUFFICIENT_TYPE][String.valueOf(a.getIndex())];if(null!=c){var h=PredictiveAssertionProcessor.DEFAULT_PROB_INSUFF;0this.priorityQueueThreshold&&b.push(a.updateChild(g.getChildIndex(),k)))}};b.processEquivalenceNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.EQUIVALENCE_TYPE][String.valueOf(a.getIndex())];if(null!=c)for(var h,g,f=0;fthis.priorityQueueThreshold&& +b.push(a.updateChild(h.getChildIndex(),g)))};b.processBroadensNetworkDependencies=function(a,b){var c=this.competencyNetwork.getDependencies()[PapDependency.BROADENS_TYPE][String.valueOf(a.getIndex())];if(null!=c)for(var h,g,f=0;fthis.priorityQueueThreshold&&b.push(a.updateChild(h.getChildIndex(),g)))};b.predictCompetence=function(){this.competencyNetwork=new PapCompetencyNetwork(this.dependencies, this.inputGraph.getNodes().length,this.settings);for(var a,b,d=0;dstjs.trunc((new Date).getTime())?(c.log(d,"Assertion is made for a future date."),h()):a.getExpirationDateAsync(function(b){null!=b&&b<=stjs.trunc((new Date).getTime())?(c.log(d,"Assertion is expired. Skipping."),h()):(c.logFoundAssertion(a,d),a.getNegativeAsync(function(b){null!=b&&b?(c.log(d,"Found valid negative assertion"),d.negative.push(a)):(c.log(d,"Found valid positive assertion"),d.positive.push(a));h()}, function(b){c.log(d,"Found valid positive assertion");d.positive.push(a);h()}))},g)},g)):g("Incorrect subject.")},g)};b.processFindAssertionsSuccess=function(a,b){0==a.length?this.log(b,"No results found."):this.log(b,"Total number of assertions found: "+a.length);b.numberOfQueriesRunning--;this.checkStepSecondPass(b)};b.findSubjectAssertionsForCompetency=function(a){if(null==this.assertions)return!0;a.hasCheckedAssertionsForCompetency=!0;if(!InquiryPacket.IPType.COMPETENCY.equals(a.type)&&!InquiryPacket.IPType.ROLLUPRULE.equals(a.type))return this.log(a, "No assertions for combinator types"),!1;var b=this;if(InquiryPacket.IPType.COMPETENCY.equals(a.type))for(var d=0;d 0) { - signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); } else { - signatureSheet = EcIdentityManager.signatureSheet(60000 + (repo == null ? 0 : repo.timeOffset), data.id); + signatureSheet = EcIdentityManager.signatureSheet(60000 + offset, data.id); } afterSignatureSheet(signatureSheet); } else if (data.owner != null && data.owner.length > 0) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, afterSignatureSheet, failure); } else { - EcIdentityManager.signatureSheetAsync(60000 + (repo == null ? 0 : repo.timeOffset), data.id, afterSignatureSheet, failure); + EcIdentityManager.signatureSheetAsync(60000 + offset, data.id, afterSignatureSheet, failure); } }; /** @@ -1472,9 +1490,10 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy } var targetUrl; targetUrl = data.shortId(); + var offset = EcRepository.setOffset(data.id); if (data.owner != null && data.owner.length > 0) { if (EcRemote.async) { - EcIdentityManager.signatureSheetForAsync(data.owner, 60000, data.id, function(signatureSheet) { + EcIdentityManager.signatureSheetForAsync(data.owner, 60000 + offset, data.id, function(signatureSheet) { if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { @@ -1487,7 +1506,7 @@ EcRepository = stjs.extend(EcRepository, null, [], function(constructor, prototy EcRemote._delete(targetUrl, signatureSheet, success, failure); }, failure); } else { - var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000, data.id); + var signatureSheet = EcIdentityManager.signatureSheetFor(data.owner, 60000 + offset, data.id); if (signatureSheet.length == 2) { for (var i = 0; i < EcRepository.repos.length; i++) { if (data.id.indexOf(EcRepository.repos[i].selectedServer) != -1) { diff --git a/src/main/webapp/js/cass/org.cassproject.schema.cass.js b/src/main/webapp/js/cass/org.cassproject.schema.cass.js index 98d7cd6ad..1556d5098 100644 --- a/src/main/webapp/js/cass/org.cassproject.schema.cass.js +++ b/src/main/webapp/js/cass/org.cassproject.schema.cass.js @@ -12,8 +12,8 @@ Cass = stjs.extend(Cass, null, [], function(constructor, prototype) { constructor.context_0_3 = "http://schema.cassproject.org/0.2"; constructor.context_0_4 = "http://schema.cassproject.org/0.3"; constructor.context_0_5 = "https://schema.cassproject.org/0.3"; - constructor.context_0_6 = "http://schema.cassproject.org/0.4"; - constructor.context = Cass.context_0_5; + constructor.context_0_6 = "https://schema.cassproject.org/0.4"; + constructor.context = Cass.context_0_6; }, {}, {}); var AssertionCodebook = function() {}; AssertionCodebook = stjs.extend(AssertionCodebook, null, [], function(constructor, prototype) { @@ -44,7 +44,8 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Competency"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Competency"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Competency"; - constructor.myType = Competency.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Competency"; + constructor.myType = Competency.TYPE_0_6; /** * Scope in which the competency may be applied. e.g. Underwater. * @@ -73,9 +74,13 @@ Competency = stjs.extend(Competency, CreativeWork, [], function(constructor, pro if (Competency.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Competency.TYPE_0_5); } + if (Competency.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Competency.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Competency.TYPE_0_6); a.push(Competency.TYPE_0_5); a.push(Competency.TYPE_0_4); a.push(Competency.TYPE_0_3); @@ -102,7 +107,8 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Level"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Level"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Level"; - constructor.myType = Level.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Level"; + constructor.myType = Level.TYPE_0_6; /** * Specifies the URL of the competency this level relates to. * @@ -142,9 +148,13 @@ Level = stjs.extend(Level, CreativeWork, [], function(constructor, prototype) { if (Level.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Level.TYPE_0_5); } + if (Level.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Level.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Level.TYPE_0_6); a.push(Level.TYPE_0_5); a.push(Level.TYPE_0_4); a.push(Level.TYPE_0_3); @@ -170,7 +180,8 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/RollupRule"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/RollupRule"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/RollupRule"; - constructor.myType = RollupRule.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/RollupRule"; + constructor.myType = RollupRule.TYPE_0_6; /** * The rollup rule encoded as source code that is understandable to the assertion processor. * @@ -196,9 +207,13 @@ RollupRule = stjs.extend(RollupRule, CreativeWork, [], function(constructor, pro if (RollupRule.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, RollupRule.TYPE_0_5); } + if (RollupRule.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, RollupRule.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(RollupRule.TYPE_0_6); a.push(RollupRule.TYPE_0_5); a.push(RollupRule.TYPE_0_4); a.push(RollupRule.TYPE_0_3); @@ -224,7 +239,8 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Framework"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Framework"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Framework"; - constructor.myType = Framework.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Framework"; + constructor.myType = Framework.TYPE_0_6; /** * URLs of competencies included in this framework. * @@ -270,9 +286,13 @@ Framework = stjs.extend(Framework, CreativeWork, [], function(constructor, proto if (Framework.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Framework.TYPE_0_5); } + if (Framework.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Framework.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Framework.TYPE_0_6); a.push(Framework.TYPE_0_5); a.push(Framework.TYPE_0_4); a.push(Framework.TYPE_0_3); @@ -355,7 +375,8 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Relation"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Relation"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Relation"; - constructor.myType = Relation.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Relation"; + constructor.myType = Relation.TYPE_0_6; /** * URL of the object at the beginning of the relation. * A B, this is A. @@ -413,9 +434,13 @@ Relation = stjs.extend(Relation, CreativeWork, [], function(constructor, prototy if (Relation.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Relation.TYPE_0_5); } + if (Relation.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Relation.TYPE_0_6); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Relation.TYPE_0_6); a.push(Relation.TYPE_0_5); a.push(Relation.TYPE_0_4); a.push(Relation.TYPE_0_3); @@ -442,7 +467,8 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto constructor.TYPE_0_3 = "http://schema.cassproject.org/0.2/Assertion"; constructor.TYPE_0_4 = "http://schema.cassproject.org/0.3/Assertion"; constructor.TYPE_0_5 = "https://schema.cassproject.org/0.3/Assertion"; - constructor.myType = Assertion.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/Assertion"; + constructor.myType = Assertion.TYPE_0_6; constructor.codebooks = null; /** * URL of the competency. @@ -698,6 +724,9 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto if (Assertion.TYPE_0_4.equals(this.getFullType())) { this.setContextAndType(Cass.context_0_5, Assertion.TYPE_0_5); } + if (Assertion.TYPE_0_5.equals(this.getFullType())) { + this.setContextAndType(Cass.context_0_6, Assertion.TYPE_0_6); + } this.agent = EcEncryptedValue.revive(this.agent); this.subject = EcEncryptedValue.revive(this.subject); this.assertionDate = EcEncryptedValue.revive(this.assertionDate); @@ -711,6 +740,7 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto }; prototype.getTypes = function() { var a = new Array(); + a.push(Assertion.TYPE_0_6); a.push(Assertion.TYPE_0_5); a.push(Assertion.TYPE_0_4); a.push(Assertion.TYPE_0_3); @@ -734,11 +764,12 @@ Assertion = stjs.extend(Assertion, CreativeWork, [], function(constructor, proto */ var AssertionEnvelope = function() { CreativeWork.call(this); - this.setContextAndType(Cass.context_0_6, AssertionEnvelope.myType); + this.setContextAndType(Cass.context, AssertionEnvelope.myType); }; AssertionEnvelope = stjs.extend(AssertionEnvelope, CreativeWork, [], function(constructor, prototype) { constructor.TYPE_0_5 = "http://schema.cassproject.org/0.4/AssertionEnvelope"; - constructor.myType = AssertionEnvelope.TYPE_0_5; + constructor.TYPE_0_6 = "https://schema.cassproject.org/0.4/AssertionEnvelope"; + constructor.myType = AssertionEnvelope.TYPE_0_6; /** * List of assertions to pack in the envelope. * diff --git a/src/main/webapp/js/cass/org.cassproject.schema.ebac.js b/src/main/webapp/js/cass/org.cassproject.schema.ebac.js index a61d3470a..458610287 100644 --- a/src/main/webapp/js/cass/org.cassproject.schema.ebac.js +++ b/src/main/webapp/js/cass/org.cassproject.schema.ebac.js @@ -8,12 +8,13 @@ * @module org.cassproject */ var EbacCredential = function() { - EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredential.TYPE_0_4); }; EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credential"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credential"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credential"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credential"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -53,9 +54,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc if (EbacCredential.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredential.TYPE_0_3); } + if (EbacCredential.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredential.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredential.TYPE_0_4); a.push(EbacCredential.TYPE_0_3); a.push(EbacCredential.TYPE_0_2); a.push(EbacCredential.TYPE_0_1); @@ -72,12 +77,13 @@ EbacCredential = stjs.extend(EbacCredential, EcLinkedData, [], function(construc * @module org.cassproject */ var EbacCredentialRequest = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialRequest.TYPE_0_4); }; EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialRequest"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialRequest"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialRequest"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialRequest"; /** * Hashed username. * @@ -103,9 +109,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun if (EbacCredentialRequest.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacCredentialRequest.TYPE_0_3); } + if (EbacCredentialRequest.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialRequest.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialRequest.TYPE_0_4); a.push(EbacCredentialRequest.TYPE_0_3); a.push(EbacCredentialRequest.TYPE_0_2); a.push(EbacCredentialRequest.TYPE_0_1); @@ -121,12 +131,13 @@ EbacCredentialRequest = stjs.extend(EbacCredentialRequest, EcLinkedData, [], fun * @module org.cassproject */ var EbacCredentials = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentials.TYPE_0_4); }; EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentials"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentials"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Credentials"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Credentials"; /** * One time pad that may be used in password recovery. Base64 encoded. * @@ -166,9 +177,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr if (EbacCredentials.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentials.TYPE_0_3); } + if (EbacCredentials.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentials.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentials.TYPE_0_4); a.push(EbacCredentials.TYPE_0_3); a.push(EbacCredentials.TYPE_0_2); a.push(EbacCredentials.TYPE_0_1); @@ -185,12 +200,13 @@ EbacCredentials = stjs.extend(EbacCredentials, EcLinkedData, [], function(constr * @module org.cassproject */ var EbacContact = function() { - EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacContact.TYPE_0_4); }; EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contact"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/Contact"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/Contact"; /** * AES Initialization Vector used to decode PPK. Base64 encoded. * @@ -244,9 +260,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p if (EbacContact.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContact.TYPE_0_3); } + if (EbacContact.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContact.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContact.TYPE_0_4); a.push(EbacContact.TYPE_0_3); a.push(EbacContact.TYPE_0_2); a.push(EbacContact.TYPE_0_1); @@ -268,12 +288,13 @@ EbacContact = stjs.extend(EbacContact, EcLinkedData, [], function(constructor, p * @module org.cassproject */ var EbacEncryptedSecret = function() { - EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacEncryptedSecret.TYPE_0_4); }; EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedSecret"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedSecret"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedSecret"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedSecret"; /** * IV used to encrypt/decrypt payload. Base64 encoded. * @@ -350,9 +371,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio if (EbacEncryptedSecret.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedSecret.TYPE_0_3); } + if (EbacEncryptedSecret.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedSecret.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedSecret.TYPE_0_4); a.push(EbacEncryptedSecret.TYPE_0_3); a.push(EbacEncryptedSecret.TYPE_0_2); a.push(EbacEncryptedSecret.TYPE_0_1); @@ -368,12 +393,13 @@ EbacEncryptedSecret = stjs.extend(EbacEncryptedSecret, EcLinkedData, [], functio * @module org.cassproject */ var EbacSignature = function() { - EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacSignature.TYPE_0_4); }; EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/timeLimitedSignature"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/timeLimitedSignature"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/TimeLimitedSignature"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/TimeLimitedSignature"; /** * The public key of the authorizing party in PEM format. * @@ -417,9 +443,13 @@ EbacSignature = stjs.extend(EbacSignature, EcLinkedData, [], function(constructo if (EbacSignature.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacSignature.TYPE_0_3); } + if (EbacSignature.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacSignature.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacSignature.TYPE_0_4); a.push(EbacSignature.TYPE_0_3); a.push(EbacSignature.TYPE_0_2); a.push(EbacSignature.TYPE_0_1); @@ -440,7 +470,8 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/encryptedValue"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/encryptedValue"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/EncryptedValue"; - constructor.myType = EbacEncryptedValue.TYPE_0_3; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/EncryptedValue"; + constructor.myType = EbacEncryptedValue.TYPE_0_4; /** * Optional Hint used to aid in search. * Displays the type of the encrypted object. @@ -496,9 +527,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun if (EbacEncryptedValue.TYPE_0_2 == this.getFullType()) { this.setContextAndType(Ebac.context_0_3, EbacEncryptedValue.TYPE_0_3); } + if (EbacEncryptedValue.TYPE_0_3 == this.getFullType()) { + this.setContextAndType(Ebac.context_0_4, EbacEncryptedValue.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacEncryptedValue.TYPE_0_4); a.push(EbacEncryptedValue.TYPE_0_3); a.push(EbacEncryptedValue.TYPE_0_2); a.push(EbacEncryptedValue.TYPE_0_1); @@ -516,12 +551,13 @@ EbacEncryptedValue = stjs.extend(EbacEncryptedValue, EcRemoteLinkedData, [], fun * @module org.cassproject */ var EbacContactGrant = function() { - EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_3); + EcRemoteLinkedData.call(this, Ebac.context, EbacContactGrant.TYPE_0_4); }; EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/contactGrant"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/contactGrant"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/ContactGrant"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/ContactGrant"; /** * Public key being granted to the owner of this message. * @@ -569,9 +605,13 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio if (EbacContactGrant.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacContactGrant.TYPE_0_3); } + if (EbacContactGrant.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacContactGrant.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacContactGrant.TYPE_0_4); a.push(EbacContactGrant.TYPE_0_3); a.push(EbacContactGrant.TYPE_0_2); a.push(EbacContactGrant.TYPE_0_1); @@ -589,13 +629,14 @@ EbacContactGrant = stjs.extend(EbacContactGrant, EcRemoteLinkedData, [], functio * @module org.cassproject */ var EbacCredentialCommit = function() { - EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_3); + EcLinkedData.call(this, Ebac.context, EbacCredentialCommit.TYPE_0_4); this.credentials = new EbacCredentials(); }; EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.eduworks.com/ebac/0.1/credentialCommit"; constructor.TYPE_0_2 = "http://schema.eduworks.com/ebac/0.2/credentialCommit"; constructor.TYPE_0_3 = "http://schema.cassproject.org/kbac/0.2/CredentialCommit"; + constructor.TYPE_0_4 = "https://schema.cassproject.org/kbac/0.4/CredentialCommit"; /** * Hashed username. * @@ -636,9 +677,13 @@ EbacCredentialCommit = stjs.extend(EbacCredentialCommit, EcLinkedData, [], funct if (EbacCredentialCommit.TYPE_0_2.equals(this.getFullType())) { this.setContextAndType(Ebac.context_0_3, EbacCredentialCommit.TYPE_0_3); } + if (EbacCredentialCommit.TYPE_0_3.equals(this.getFullType())) { + this.setContextAndType(Ebac.context_0_4, EbacCredentialCommit.TYPE_0_4); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(EbacCredentialCommit.TYPE_0_4); a.push(EbacCredentialCommit.TYPE_0_3); a.push(EbacCredentialCommit.TYPE_0_2); a.push(EbacCredentialCommit.TYPE_0_1); diff --git a/src/main/webapp/js/cass/org.cassproject.schema.general.js b/src/main/webapp/js/cass/org.cassproject.schema.general.js index cb8a7efe7..3d49b09f8 100644 --- a/src/main/webapp/js/cass/org.cassproject.schema.general.js +++ b/src/main/webapp/js/cass/org.cassproject.schema.general.js @@ -30,6 +30,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { constructor.context_0_1 = "http://schema.eduworks.com/ebac/0.1"; constructor.context_0_2 = "http://schema.eduworks.com/ebac/0.2"; constructor.context_0_3 = "http://schema.cassproject.org/kbac/0.2"; + constructor.context_0_4 = "https://schema.cassproject.org/kbac/0.4"; /** * Current version of KBAC. * @@ -37,7 +38,7 @@ Ebac = stjs.extend(Ebac, null, [], function(constructor, prototype) { * @static * @type string (URL) */ - constructor.context = "http://schema.cassproject.org/kbac/0.2"; + constructor.context = Ebac.context_0_4; }, {}, {}); /** * Data wrapper to represent remotely hosted data. Includes necessary KBAC fields for diff --git a/src/main/webapp/js/cass/org.w3.skos.js b/src/main/webapp/js/cass/org.w3.skos.js index 5ecbd9ca7..368293962 100644 --- a/src/main/webapp/js/cass/org.w3.skos.js +++ b/src/main/webapp/js/cass/org.w3.skos.js @@ -11,7 +11,7 @@ var Collection = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "http://schema.cassproject.org/0.3/skos/", "Collection"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Collection"); }; Collection = stjs.extend(Collection, EcRemoteLinkedData, [], function(constructor, prototype) { /** @@ -34,12 +34,13 @@ var Concept = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "Concept"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "Concept"); }; Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/Concept"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/Concept"; - constructor.myType = Concept.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/Concept"; + constructor.myType = Concept.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/topConceptOf * Relates a concept to the concept scheme that it is a top level concept of. @@ -59,9 +60,13 @@ Concept = stjs.extend(Concept, EcRemoteLinkedData, [], function(constructor, pro if (Concept.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", Concept.TYPE_0_2); } + if (Concept.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", Concept.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(Concept.TYPE_0_3); a.push(Concept.TYPE_0_2); a.push(Concept.TYPE_0_1); return a; @@ -80,12 +85,13 @@ var ConceptScheme = /** * @constructor */ function() { - EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.3/skos/", "ConceptScheme"); + EcRemoteLinkedData.call(this, "https://schema.cassproject.org/0.4/skos/", "ConceptScheme"); }; ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(constructor, prototype) { constructor.TYPE_0_1 = "http://schema.cassproject.org/0.3/skos/ConceptScheme"; constructor.TYPE_0_2 = "https://schema.cassproject.org/0.3/skos/ConceptScheme"; - constructor.myType = ConceptScheme.TYPE_0_2; + constructor.TYPE_0_3 = "https://schema.cassproject.org/0.4/skos/ConceptScheme"; + constructor.myType = ConceptScheme.TYPE_0_3; /** * www.w3.org/2004/02/skos/core/hasTopConcept * Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies. @@ -98,9 +104,13 @@ ConceptScheme = stjs.extend(ConceptScheme, EcRemoteLinkedData, [], function(cons if (ConceptScheme.TYPE_0_1.equals(this.getFullType())) { this.setContextAndType("https://schema.cassproject.org/0.3/skos", ConceptScheme.TYPE_0_2); } + if (ConceptScheme.TYPE_0_2.equals(this.getFullType())) { + this.setContextAndType("https://schema.cassproject.org/0.4/skos", ConceptScheme.TYPE_0_3); + } }; prototype.getTypes = function() { var a = new Array(); + a.push(ConceptScheme.TYPE_0_3); a.push(ConceptScheme.TYPE_0_2); a.push(ConceptScheme.TYPE_0_1); return a; @@ -121,7 +131,7 @@ var OrderedCollection = /** */ function() { Collection.call(this); - this.context = "http://schema.cassproject.org/0.3/skos/"; + this.context = "https://schema.cassproject.org/0.4/skos/"; this.type = "OrderedCollection"; }; OrderedCollection = stjs.extend(OrderedCollection, Collection, [], function(constructor, prototype) { diff --git a/yuidoc.json b/yuidoc.json index 853631b07..2fe9f60cf 100644 --- a/yuidoc.json +++ b/yuidoc.json @@ -1,7 +1,7 @@ { "name": "CASS Javascript Library", "description": "CASS Javascript Library API: ", - "version": "1.2.11", + "version": "1.2.12", "url": "http://cassproject.org/", "logo": "http://docs.cassproject.org/img/customLogo-blue.png", "options": {