switched to ES6

This commit is contained in:
Philipp Kunz 2016-07-17 17:30:26 +02:00
parent 8344fdf7b1
commit ffedc7f601
6 changed files with 76 additions and 76 deletions

8
dist/index.js vendored
View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
var SmartstringDocker = require("./smartstring.docker"); const SmartstringDocker = require("./smartstring.docker");
var SmartstringTypescript = require("./smartstring.typescript"); const SmartstringTypescript = require("./smartstring.typescript");
var SmartstringIndent = require("./smartstring.indent"); const SmartstringIndent = require("./smartstring.indent");
var smartstring_domain_1 = require("./smartstring.domain"); var smartstring_domain_1 = require("./smartstring.domain");
exports.Domain = smartstring_domain_1.Domain; exports.Domain = smartstring_domain_1.Domain;
var smartstring_git_1 = require("./smartstring.git"); var smartstring_git_1 = require("./smartstring.git");
@ -9,4 +9,4 @@ exports.GitRepo = smartstring_git_1.GitRepo;
exports.docker = SmartstringDocker; exports.docker = SmartstringDocker;
exports.typescript = SmartstringTypescript; exports.typescript = SmartstringTypescript;
exports.indent = SmartstringIndent; exports.indent = SmartstringIndent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsSUFBWSxpQkFBaUIsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFELElBQVkscUJBQXFCLFdBQU0sMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSxJQUFZLGlCQUFpQixXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFFMUQsbUNBQXFCLHNCQUFzQixDQUFDO0FBQXBDLDZDQUFvQztBQUM1QyxnQ0FBc0IsbUJBQW1CLENBQUM7QUFBbEMsNENBQWtDO0FBQy9CLGNBQU0sR0FBRyxpQkFBaUIsQ0FBQztBQUMzQixrQkFBVSxHQUFHLHFCQUFxQixDQUFDO0FBQ25DLGNBQU0sR0FBRyxpQkFBaUIsQ0FBQyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsTUFBWSxpQkFBaUIsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFELE1BQVkscUJBQXFCLFdBQU0sMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSxNQUFZLGlCQUFpQixXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFFMUQsbUNBQXFCLHNCQUFzQixDQUFDO0FBQXBDLDZDQUFvQztBQUM1QyxnQ0FBc0IsbUJBQW1CLENBQUM7QUFBbEMsNENBQWtDO0FBQy9CLGNBQU0sR0FBRyxpQkFBaUIsQ0FBQztBQUMzQixrQkFBVSxHQUFHLHFCQUFxQixDQUFDO0FBQ25DLGNBQU0sR0FBRyxpQkFBaUIsQ0FBQyJ9

View File

@ -5,10 +5,10 @@
* @returns {} * @returns {}
*/ */
exports.makeEnvObject = function (envArrayArg) { exports.makeEnvObject = function (envArrayArg) {
var returnObject = {}; let returnObject = {};
var regexString = /(.*)=(.*)/; let regexString = /(.*)=(.*)/;
for (var envKey in envArrayArg) { for (let envKey in envArrayArg) {
var regexMatches = regexString.exec(envArrayArg[envKey]); let regexMatches = regexString.exec(envArrayArg[envKey]);
returnObject[regexMatches[1]] = regexMatches[2]; returnObject[regexMatches[1]] = regexMatches[2];
} }
; ;

View File

@ -1,11 +1,11 @@
"use strict"; "use strict";
var Domain = (function () { class Domain {
function Domain(domainStringArg) { constructor(domainStringArg) {
var regexMatches = domainRegex(domainStringArg); let regexMatches = domainRegex(domainStringArg);
this.fullName = ""; this.fullName = "";
for (var i = 1; i <= 5; i++) { for (let i = 1; i <= 5; i++) {
if (regexMatches[i - 1]) { if (regexMatches[i - 1]) {
var localMatch = regexMatches[i - 1]; let localMatch = regexMatches[i - 1];
this["level" + i.toString()] = localMatch; this["level" + i.toString()] = localMatch;
if (this.fullName == "") { if (this.fullName == "") {
this.fullName = localMatch; this.fullName = localMatch;
@ -27,22 +27,21 @@ var Domain = (function () {
this.domainName = this.level2; this.domainName = this.level2;
this.subDomain = this.level3; this.subDomain = this.level3;
} }
return Domain; }
}());
exports.Domain = Domain; exports.Domain = Domain;
var domainRegex = function (stringArg) { let domainRegex = function (stringArg) {
var regexString = /([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/; let regexString = /([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/;
var regexMatches = regexString.exec(stringArg); let regexMatches = regexString.exec(stringArg);
regexMatches.reverse(); //make sure we build the domain from toplevel to subdomain (reversed order) regexMatches.reverse(); //make sure we build the domain from toplevel to subdomain (reversed order)
regexMatches.pop(); // pop the last element, which is, since we reversed the Array, the full String of matched elements regexMatches.pop(); // pop the last element, which is, since we reversed the Array, the full String of matched elements
var regexMatchesFiltered = regexMatches.filter(function (stringArg) { let regexMatchesFiltered = regexMatches.filter(function (stringArg) {
return (stringArg != ""); return (stringArg != "");
}); });
return regexMatchesFiltered; return regexMatchesFiltered;
}; };
var protocolRegex = function (stringArg) { let protocolRegex = function (stringArg) {
var regexString = /^([a-zA-Z0-9]*):\/\//; let regexString = /^([a-zA-Z0-9]*):\/\//;
var regexMatches = regexString.exec(stringArg); let regexMatches = regexString.exec(stringArg);
if (regexMatches) { if (regexMatches) {
return regexMatches[1]; return regexMatches[1];
} }
@ -50,4 +49,4 @@ var protocolRegex = function (stringArg) {
return undefined; return undefined;
} }
}; };
//#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0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDL0MsWUFBWSxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsMkVBQTJFO0lBQ25HLFlBQVksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLG1HQUFtRztJQUN2SCxJQUFJLG9CQUFvQixHQUFHLFlBQVksQ0FBQyxNQUFNLENBQUMsVUFBUyxTQUFnQjtRQUNwRSxNQUFNLENBQUEsQ0FBQyxTQUFTLElBQUksRUFBRSxDQUFDLENBQUM7SUFDNUIsQ0FBQyxDQUFDLENBQUM7SUFDSCxNQUFNLENBQUMsb0JBQW9CLENBQUM7QUFDaEMsQ0FBQyxDQUFDO0FBRUYsSUFBSSxhQUFhLEdBQUcsVUFBUyxTQUFnQjtJQUN6QyxJQUFJLFdBQVcsR0FBRyxzQkFBc0IsQ0FBQztJQUN6QyxJQUFJLFlBQVksR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQy9DLEVBQUUsQ0FBQSxDQUFDLFlBQVksQ0FBQyxDQUFBLENBQUM7UUFDYixNQUFNLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQzNCLENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNKLE1BQU0sQ0FBQyxTQUFTLENBQUM7SUFDckIsQ0FBQztBQUNMLENBQUMsQ0FBQSJ9

View File

@ -1,11 +1,11 @@
"use strict"; "use strict";
var plugins = require("./smartstring.plugins"); const plugins = require("./smartstring.plugins");
/* ---------------------------------------------- * /* ---------------------------------------------- *
* ------------------ classes ------------------- * * ------------------ classes ------------------- *
* ---------------------------------------------- */ * ---------------------------------------------- */
var GitRepo = (function () { class GitRepo {
function GitRepo(stringArg, tokenArg) { constructor(stringArg, tokenArg) {
var regexMatches = gitRegex(stringArg); let regexMatches = gitRegex(stringArg);
this.host = regexMatches[1]; this.host = regexMatches[1];
this.user = regexMatches[2]; this.user = regexMatches[2];
this.repo = regexMatches[3]; this.repo = regexMatches[3];
@ -14,20 +14,18 @@ var GitRepo = (function () {
this.httpsUrl = gitLink(this.host, this.user, this.repo, this.accessToken, "https"); this.httpsUrl = gitLink(this.host, this.user, this.repo, this.accessToken, "https");
} }
; ;
return GitRepo; }
}());
exports.GitRepo = GitRepo; exports.GitRepo = GitRepo;
/* ---------------------------------------------- * /* ---------------------------------------------- *
* ------------------ helpers ------------------- * * ------------------ helpers ------------------- *
* ---------------------------------------------- */ * ---------------------------------------------- */
var gitRegex = function (stringArg) { let gitRegex = function (stringArg) {
var regexString = /([a-zA-Z0-9\-\.]*)(?:\/|\:)([a-zA-Z0-9\-]*)(?:\/)([a-zA-Z0-9\-]*)(?:\.git)/; let regexString = /([a-zA-Z0-9\-\.]*)(?:\/|\:)([a-zA-Z0-9\-]*)(?:\/)([a-zA-Z0-9\-]*)(?:\.git)/;
var regexMatches = regexString.exec(stringArg); let regexMatches = regexString.exec(stringArg);
return regexMatches; return regexMatches;
}; };
var gitLink = function (hostArg, userArg, repoArg, tokenArg, linkTypeArg) { let gitLink = function (hostArg, userArg, repoArg, tokenArg = "", linkTypeArg) {
if (tokenArg === void 0) { tokenArg = ""; } let returnString;
var returnString;
if (tokenArg !== "") { if (tokenArg !== "") {
tokenArg = tokenArg + "@"; tokenArg = tokenArg + "@";
} }
@ -46,4 +44,4 @@ var gitLink = function (hostArg, userArg, repoArg, tokenArg, linkTypeArg) {
} }
return returnString; return returnString;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzdHJpbmcuZ2l0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzdHJpbmcuZ2l0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSx1QkFBdUIsQ0FBQyxDQUFBO0FBRWpEOztvREFFb0Q7QUFDcEQ7SUFPSSx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BSSxPQUFPLEdBQUcsVUFBUyxPQUFjLEVBQUUsT0FBYyxFQUFFLE9BQWMsRUFBRSxRQUFRLEdBQVUsRUFBRSxFQUFFLFdBQVc7SUFDcEcsSUFBSSxZQUFZLENBQUM7SUFDakIsRUFBRSxDQUFDLENBQUMsUUFBUSxLQUFLLEVBQUUsQ0FBQyxDQUFBLENBQUM7UUFDakIsUUFBUSxHQUFHLFFBQVEsR0FBRyxHQUFHLENBQUE7SUFDN0IsQ0FBQztJQUNELE1BQU0sQ0FBQyxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUM7UUFDbEIsS0FBSyxPQUFPO1lBQ1IsWUFBWSxHQUFJLFVBQVU7Z0JBQ3RCLFFBQVEsR0FBRyxPQUFPLEdBQUcsR0FBRyxHQUFHLE9BQU8sR0FBRyxHQUFHLEdBQUcsT0FBTyxHQUFHLE1BQU0sQ0FBQztZQUNoRSxLQUFLLENBQUM7UUFDVixLQUFLLEtBQUs7WUFDTixZQUFZLEdBQUcsTUFBTTtnQkFDakIsT0FBTyxHQUFHLEdBQUcsR0FBRyxPQUFPLEdBQUcsR0FBRyxHQUFHLE9BQU8sR0FBRyxNQUFNLENBQUM7WUFDckQsS0FBSyxDQUFDO1FBQ1Y7WUFDSSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxZQUFZLEdBQUcsV0FBVyxHQUFHLFlBQVksQ0FBQyxDQUFDO1lBQ25FLEtBQUssQ0FBQztJQUNkLENBQUM7SUFDRCxNQUFNLENBQUMsWUFBWSxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9

View File

@ -1,19 +1,18 @@
"use strict"; "use strict";
var splitString = function (stringArg) { let splitString = (stringArg) => {
var resultArray = stringArg.split("\n"); let resultArray = stringArg.split("\n");
return cleanStringArray(resultArray); return cleanStringArray(resultArray);
}; };
var joinString = function (stringArrayArg) { let joinString = (stringArrayArg) => {
var resultString = ""; let resultString = "";
for (var _i = 0, stringArrayArg_1 = stringArrayArg; _i < stringArrayArg_1.length; _i++) { for (let line of stringArrayArg) {
var line = stringArrayArg_1[_i];
resultString = resultString + line + "\n"; resultString = resultString + line + "\n";
} }
; ;
return resultString; return resultString;
}; };
var cleanStringArray = function (stringArrayArg) { let cleanStringArray = (stringArrayArg) => {
var testRegex = /^[\s]*$/; let testRegex = /^[\s]*$/;
if (testRegex.test(stringArrayArg[0])) { if (testRegex.test(stringArrayArg[0])) {
stringArrayArg.shift(); stringArrayArg.shift();
} }
@ -23,31 +22,29 @@ var cleanStringArray = function (stringArrayArg) {
; ;
return stringArrayArg; return stringArrayArg;
}; };
exports.indent = function (stringArg, spaceAmount) { exports.indent = (stringArg, spaceAmount) => {
var resultString; let resultString;
return resultString; return resultString;
}; };
exports.indentWithPrefix = function (stringArg, prefixArg) { exports.indentWithPrefix = (stringArg, prefixArg) => {
var resultString; let resultString;
var stringArray = splitString(stringArg); let stringArray = splitString(stringArg);
var resultArray = []; let resultArray = [];
for (var _i = 0, stringArray_1 = stringArray; _i < stringArray_1.length; _i++) { for (let stringItem of stringArray) {
var stringItem = stringArray_1[_i];
resultArray.push(prefixArg + stringItem); resultArray.push(prefixArg + stringItem);
} }
; ;
resultString = joinString(resultArray); resultString = joinString(resultArray);
return resultString; return resultString;
}; };
exports.normalize = function (stringArg) { exports.normalize = (stringArg) => {
var resultString; let resultString;
var splitStringArray = splitString(stringArg); let splitStringArray = splitString(stringArg);
var minCommonLeftOffset; let minCommonLeftOffset;
var deIndentRegex = /^(\s*)/; let deIndentRegex = /^(\s*)/;
var emptyLineRegex = /^(\s*)$/; let emptyLineRegex = /^(\s*)$/;
for (var _i = 0, splitStringArray_1 = splitStringArray; _i < splitStringArray_1.length; _i++) { for (let stringItem of splitStringArray) {
var stringItem = splitStringArray_1[_i]; let offsetString = deIndentRegex.exec(stringItem)[1];
var offsetString = deIndentRegex.exec(stringItem)[1];
if ((typeof minCommonLeftOffset == "undefined" || offsetString.length < minCommonLeftOffset) if ((typeof minCommonLeftOffset == "undefined" || offsetString.length < minCommonLeftOffset)
&& !emptyLineRegex.test(stringItem)) { && !emptyLineRegex.test(stringItem)) {
minCommonLeftOffset = offsetString.length; minCommonLeftOffset = offsetString.length;
@ -55,13 +52,12 @@ exports.normalize = function (stringArg) {
; ;
} }
; ;
var resultSplitStringArray = []; let resultSplitStringArray = [];
for (var _a = 0, splitStringArray_2 = splitStringArray; _a < splitStringArray_2.length; _a++) { for (let stringItem of splitStringArray) {
var stringItem = splitStringArray_2[_a];
resultSplitStringArray.push(stringItem.substr(minCommonLeftOffset)); resultSplitStringArray.push(stringItem.substr(minCommonLeftOffset));
} }
; ;
resultString = joinString(resultSplitStringArray); resultString = joinString(resultSplitStringArray);
return resultString; return resultString;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzdHJpbmcuaW5kZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzdHJpbmcuaW5kZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFJLFdBQVcsR0FBRyxVQUFDLFNBQWdCO0lBQy9CLElBQUksV0FBVyxHQUFHLFNBQVMsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDeEMsTUFBTSxDQUFDLGdCQUFnQixDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQ3pDLENBQUMsQ0FBQztBQUVGLElBQUksVUFBVSxHQUFHLFVBQUMsY0FBdUI7SUFDckMsSUFBSSxZQUFZLEdBQVUsRUFBRSxDQUFDO0lBQzdCLEdBQUcsQ0FBQSxDQUFhLFVBQWMsRUFBZCxpQ0FBYyxFQUFkLDRCQUFjLEVBQWQsSUFBYyxDQUFDO1FBQTNCLElBQUksSUFBSSx1QkFBQTtRQUNSLFlBQVksR0FBRyxZQUFZLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQztLQUM3QztJQUFBLENBQUM7SUFDRixNQUFNL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artstring = require("../dist/index"); const smartstring = require("../dist/index");
var should = require("should"); let should = require("should");
describe("smartstring", function () { describe("smartstring", function () {
describe(".Domain class", function () { describe(".Domain class", function () {
var testDomain; let testDomain;
var testDomain2; let testDomain2;
it("should create a new Domain object", function () { it("should create a new Domain object", function () {
testDomain = new smartstring.Domain("https://level3D.level2D.level1D"); testDomain = new smartstring.Domain("https://level3D.level2D.level1D");
testDomain.should.be.instanceof(smartstring.Domain); testDomain.should.be.instanceof(smartstring.Domain);
@ -32,7 +32,7 @@ describe("smartstring", function () {
}); });
}); });
describe(".Git class", function () { describe(".Git class", function () {
var testGit; let testGit;
it("should create a new Git class GitRepo", function () { it("should create a new Git class GitRepo", function () {
testGit = new smartstring.GitRepo("git+https://github.com/pushrocks/smartstring.git"); testGit = new smartstring.GitRepo("git+https://github.com/pushrocks/smartstring.git");
testGit.should.be.instanceof(smartstring.GitRepo); testGit.should.be.instanceof(smartstring.GitRepo);
@ -61,21 +61,28 @@ describe("smartstring", function () {
describe(".docker", function () { describe(".docker", function () {
describe(".makeEnvObject", function () { describe(".makeEnvObject", function () {
it("should create a Env Object", function () { it("should create a Env Object", function () {
var envStringArray = ["VIRTUAL_HOST=sub.domain.tld", "DEFAULT_HOST=some.domain.com"]; let envStringArray = ["VIRTUAL_HOST=sub.domain.tld", "DEFAULT_HOST=some.domain.com"];
var envObject = smartstring.docker.makeEnvObject(envStringArray); let envObject = smartstring.docker.makeEnvObject(envStringArray);
envObject.VIRTUAL_HOST.should.equal("sub.domain.tld"); envObject.VIRTUAL_HOST.should.equal("sub.domain.tld");
envObject.DEFAULT_HOST.should.equal("some.domain.com"); envObject.DEFAULT_HOST.should.equal("some.domain.com");
}); });
}); });
}); });
describe(".indent", function () { describe(".indent", function () {
var testString = "\n base\n should be indented\n some more\n\n base\n indented\n "; let testString = `
base
should be indented
some more
base
indented
`;
describe(".normalize()", function () { describe(".normalize()", function () {
it("should normalize a string", function () { it("should normalize a string", function () {
testString = smartstring.indent.normalize(testString); testString = smartstring.indent.normalize(testString);
console.log(testString); console.log(testString);
var zoneNameArg = "test1"; let zoneNameArg = "test1";
var destinationIpArg = "111"; let destinationIpArg = "111";
}); });
}); });
describe(".indentWithPrefix", function () { describe(".indentWithPrefix", function () {
@ -98,4 +105,4 @@ describe("smartstring", function () {
}); });
}); });
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FDUCxDQUFDLENBRG9CO0FBQ3JCLElBQVksV0FBVyxXQUFNLGVBQWUsQ0FBQyxDQUFBO0FBQzdDLElBQUksTUFBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUUvQixRQUFRLENBQUMsYUFBYSxFQUFDO0lBQ25CLFFBQVEsQ0FBQyxlQUFlLEVBQUM7UUFDckIsSUFBSSxVQUE2QixDQUFDO1FBQ2xDLElBQUksV0FBOEIsQ0FBQztRQUNuQyxFQUFFLENBQUMsbUNBQW1DLEVBQUM7WUFDbkMsVUFBVSxHQUFHLElBQUksV0FBVyxDQUFDLE1BQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFDO1lBQ3ZFLFVBQVUsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLENBQUM7WUFDcEQsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUM1QixDQUFDLENBQUMsQ0FBQztRQUNILEVBQUUsQ0FBQyx5QkFBeUIsRUFBQztZQUN6QixVQUFVLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDaEQsQ0FBQyxDQUFDLENBQUM7UUFDSCxFQUFFLENBQUMsdU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