From a035d226cf3efe0eadc04ca5c2d9db7ebae5e6fe Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 11:57:25 +0100 Subject: [PATCH 01/42] Setup project --- dist/bundle.js | 18 ++++++++---- dist/index.html | 75 ++----------------------------------------------- src/index.html | 75 ++----------------------------------------------- src/style.css | 15 ++++++---- 4 files changed, 27 insertions(+), 156 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index e7aa2f6..a4634e5 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -423,7 +423,7 @@ var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('small').innerHTML = 'Please provide your name'; form.username.focus(); - _context.next = 19; + _context.next = 20; break; case 6: @@ -434,7 +434,7 @@ var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('small').innerHTML = 'Please provide a message'; form.comment.focus(); - _context.next = 19; + _context.next = 20; break; case 11: @@ -443,6 +443,11 @@ var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); case 13: today = new Date(); + + if ((0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML === 'No comment yet.') { + (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML = ''; + } + (0,_create_listcomment__WEBPACK_IMPORTED_MODULE_2__.appendCommentItem)({ creation_date: "".concat(today.getFullYear(), "-").concat(String(today.getMonth() + 1).padStart(2, '0'), "-").concat(String(today.getDate()).padStart(2, '0')), username: form.username.value, @@ -453,7 +458,7 @@ var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); commentsDiv = document.querySelector('.pokemon-comments'); commentsDiv.scroll(0, commentsDiv.scrollHeight); - case 19: + case 20: case "end": return _context.stop(); } @@ -760,7 +765,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar var popupInit = function popupInit(connector) { - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selectorAll)('button[id^="comment-"], .popup-close').forEach(function (element) { + (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selectorAll)('button[id^="comment-"]').forEach(function (element) { element.addEventListener('click', /*#__PURE__*/function () { var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(event) { var idPokemon, pokemon, comments; @@ -822,6 +827,7 @@ var popupInit = function popupInit(connector) { }); (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-close').addEventListener('click', function () { (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('body').classList.remove('popup-open'); + (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-modal').classList.add('popup-hidden'); }); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (popupInit); @@ -18767,7 +18773,7 @@ __webpack_require__.r(__webpack_exports__); var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); ___CSS_LOADER_EXPORT___.push([module.id, "@import url(https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap);"]); // Module -___CSS_LOADER_EXPORT___.push([module.id, "* {\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\nbody {\r\n width: 100%;\r\n height: 100vh;\r\n background-color: #302e37;\r\n color: #c1c7d0;\r\n font-family: 'Nanum Gothic', sans-serif;\r\n font-size: 10px;\r\n}\r\n\r\nbody * {\r\n font-size: 1.2rem;\r\n}\r\n\r\nbody.popup-open {\r\n overflow: hidden;\r\n}\r\n\r\nh1 {\r\n display: inline;\r\n}\r\n\r\na {\r\n text-decoration: none;\r\n color: inherit;\r\n}\r\n\r\n#count {\r\n color: hotpink;\r\n}\r\n\r\nfooter {\r\n text-indent: 20px;\r\n width: 100%;\r\n margin: 0;\r\n padding: 40px 0;\r\n border-top: 2px solid #3d3d3d;\r\n border-bottom: 2px solid #3d3d3d;\r\n position: relative;\r\n bottom: 0;\r\n margin-top: 100px;\r\n text-align: center;\r\n}\r\n\r\nmain > header {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 10px 0;\r\n width: 100%;\r\n position: sticky;\r\n top: 0;\r\n background-color: #302e37;\r\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\r\n z-index: 2;\r\n}\r\n\r\nbutton {\r\n border: none;\r\n cursor: pointer;\r\n padding: 5px 0;\r\n border-radius: 5px;\r\n filter: invert(80%);\r\n transition: 250ms filter ease-in;\r\n}\r\n\r\nbutton:hover {\r\n filter: invert(20%);\r\n}\r\n\r\nul {\r\n list-style: none;\r\n display: flex;\r\n}\r\n\r\nli {\r\n padding-right: 10px;\r\n}\r\n\r\n.logo {\r\n width: 200px;\r\n object-fit: contain;\r\n}\r\n\r\n.date {\r\n font-size: smaller;\r\n color: antiquewhite;\r\n}\r\n\r\n.username {\r\n color: aquamarine;\r\n font-weight: bold;\r\n}\r\n\r\n.pokemon-name {\r\n padding: 5px 0;\r\n}\r\n\r\n.pokemon-characteristics i {\r\n font-size: xx-large;\r\n}\r\n\r\n.card {\r\n border-radius: 10%;\r\n box-shadow: #c2bfbf 0 0 20px;\r\n padding: 15px 30px;\r\n transform: scale(1);\r\n transition: 250ms transform ease-in;\r\n animation: slide-in ease-out 250ms 1;\r\n}\r\n\r\n@keyframes slide-in {\r\n 0% {\r\n transform: scaleX(0);\r\n }\r\n\r\n 100% {\r\n transform: scaleX(1);\r\n }\r\n}\r\n\r\n.card:hover {\r\n transform: scale(1.12, 1.1);\r\n}\r\n\r\n/*** POPUP *****/\r\n\r\n.pokemon-section {\r\n margin: 50px;\r\n}\r\n\r\n.popup-hidden {\r\n display: none;\r\n}\r\n\r\n.popup-modal {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n overflow-y: scroll;\r\n z-index: 999;\r\n background: #171618;\r\n border-radius: 16px;\r\n padding: 30px;\r\n padding-top: 10px;\r\n color: #fc0;\r\n color: white;\r\n}\r\n\r\n.popup-modal::-webkit-scrollbar {\r\n width: 0;\r\n}\r\n\r\n.popup-datas {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.popup-pokemon {\r\n text-align: center;\r\n}\r\n\r\n.pokemon-characteristics {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n border-radius: 10px;\r\n margin: 26px;\r\n color: white;\r\n font-size: 20px;\r\n align-content: center;\r\n align-items: center;\r\n justify-content: center;\r\n list-style: none;\r\n height: 201px;\r\n}\r\n\r\n.pokemon-characteristics,\r\n.pokemon-comments,\r\n.popup-close {\r\n display: flex;\r\n justify-content: end;\r\n}\r\n\r\n.pokemon-characteristics li span {\r\n margin: 10px;\r\n}\r\n\r\n.popup-image {\r\n text-align: center;\r\n margin: 20px 0;\r\n border-radius: 8px;\r\n}\r\n\r\n.popup-image img {\r\n max-width: 300px;\r\n}\r\n\r\nh4 {\r\n margin: 20px 0 10px 0;\r\n text-align: left;\r\n}\r\n\r\n.pokemon-comments {\r\n border-radius: 10px;\r\n margin: 6px;\r\n display: flex;\r\n justify-content: center;\r\n font-size: 16px;\r\n background: #302e37;\r\n height: 100px;\r\n overflow: scroll;\r\n}\r\n\r\n.pokemon-comments li {\r\n margin: 5px;\r\n}\r\n\r\n.pokemon-characteristics li {\r\n margin: 20px;\r\n}\r\n\r\n.pokemon-characteristics li:nth-child(odd) {\r\n color: yellow;\r\n}\r\n\r\n.pokemon-characteristics,\r\n.pokemon-comments {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n}\r\n\r\n.pokemon-comments::-webkit-scrollbar {\r\n width: 0;\r\n}\r\n\r\n.popup-modal i {\r\n font-size: 40px;\r\n}\r\n\r\nform {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n\r\nform input,\r\nform textarea {\r\n margin: 5px;\r\n width: 300px;\r\n font-size: 14px;\r\n line-height: 20px;\r\n border-radius: 5px;\r\n border: 1px solid cadetblue;\r\n padding: 10px;\r\n}\r\n\r\n.add-comment-form button {\r\n background-color: white;\r\n padding: 10px;\r\n border-radius: 10px;\r\n border: 1px solid cadetblue;\r\n margin: 5px;\r\n}\r\n\r\n.popup-close {\r\n display: flex;\r\n justify-content: end;\r\n position: fixed;\r\n right: 30px;\r\n}\r\n\r\n.popup-pokemon h3 {\r\n font-size: 30px;\r\n margin: 20px 0;\r\n}\r\n\r\n/*** POPUP *****/\r\n\r\n#display-items {\r\n display: grid;\r\n width: 100%;\r\n max-width: 800px;\r\n grid-template-columns: 1fr;\r\n grid-gap: 10px;\r\n align-items: center;\r\n}\r\n\r\n.centered-column {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n\r\n#display-items img {\r\n height: 150px;\r\n object-fit: contain;\r\n margin-bottom: 10px;\r\n}\r\n\r\n#display-items button {\r\n width: 100px;\r\n}\r\n\r\n.no-display {\r\n display: none;\r\n}\r\n\r\n.heart {\r\n color: hotpink;\r\n cursor: pointer;\r\n}\r\n\r\n.like {\r\n font-size: 0.8rem;\r\n}\r\n\r\n#load-buttons {\r\n margin: 10px;\r\n display: flex;\r\n width: 300px;\r\n justify-content: space-between;\r\n}\r\n\r\n#load-buttons > button {\r\n filter: invert(20%);\r\n padding: 5px 5px;\r\n}\r\n\r\n@media (min-width: 750px) {\r\n header {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n\r\n #display-items {\r\n grid-template-columns: 250px 250px 250px;\r\n }\r\n\r\n #load-buttons {\r\n margin: 0;\r\n width: 100%;\r\n }\r\n\r\n .pokemon-characteristics {\r\n height: auto;\r\n }\r\n\r\n .popup-close {\r\n right: 120px;\r\n cursor: pointer;\r\n }\r\n\r\n .popup-modal {\r\n top: 100px;\r\n left: 100px;\r\n right: 100px;\r\n bottom: 100px;\r\n }\r\n\r\n .pokemon-characteristics i {\r\n font-size: 25px;\r\n margin: 10px;\r\n }\r\n\r\n .pokemon-characteristics li {\r\n margin: 5px;\r\n display: flex;\r\n justify-content: space-around;\r\n width: 100%;\r\n }\r\n\r\n .popup-image {\r\n flex-grow: 2;\r\n }\r\n\r\n .popup-pokemon {\r\n display: flex;\r\n align-items: center;\r\n }\r\n\r\n .popup-hidden {\r\n display: none;\r\n }\r\n\r\n form {\r\n flex-direction: row;\r\n }\r\n}\r\n\r\n@media (min-width: 1100px) {\r\n #show-less {\r\n position: fixed;\r\n left: 7.5%;\r\n top: 50%;\r\n }\r\n\r\n #load-more {\r\n position: fixed;\r\n right: 7.5%;\r\n top: 50%;\r\n }\r\n}\r\n", "",{"version":3,"sources":["webpack://./src/style.css"],"names":[],"mappings":"AAEA;EACE,SAAS;EACT,UAAU;EACV,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,aAAa;EACb,yBAAyB;EACzB,cAAc;EACd,uCAAuC;EACvC,eAAe;AACjB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,SAAS;EACT,eAAe;EACf,6BAA6B;EAC7B,gCAAgC;EAChC,kBAAkB;EAClB,SAAS;EACT,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,MAAM;EACN,yBAAyB;EACzB,qCAAqC;EACrC,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,mBAAmB;EACnB,gCAAgC;AAClC;;AAEA;EACE,mBAAmB;AAC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;EACb;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,aAAa;IACb,mBAAmB;EACrB;;EAEA;IACE,aAAa;EACf;;EAEA;IACE,mBAAmB;EACrB;AACF;;AAEA;EACE;IACE,eAAe;IACf,UAAU;IACV,QAAQ;EACV;;EAEA;IACE,eAAe;IACf,WAAW;IACX,QAAQ;EACV;AACF","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');\r\n\r\n* {\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\nbody {\r\n width: 100%;\r\n height: 100vh;\r\n background-color: #302e37;\r\n color: #c1c7d0;\r\n font-family: 'Nanum Gothic', sans-serif;\r\n font-size: 10px;\r\n}\r\n\r\nbody * {\r\n font-size: 1.2rem;\r\n}\r\n\r\nbody.popup-open {\r\n overflow: hidden;\r\n}\r\n\r\nh1 {\r\n display: inline;\r\n}\r\n\r\na {\r\n text-decoration: none;\r\n color: inherit;\r\n}\r\n\r\n#count {\r\n color: hotpink;\r\n}\r\n\r\nfooter {\r\n text-indent: 20px;\r\n width: 100%;\r\n margin: 0;\r\n padding: 40px 0;\r\n border-top: 2px solid #3d3d3d;\r\n border-bottom: 2px solid #3d3d3d;\r\n position: relative;\r\n bottom: 0;\r\n margin-top: 100px;\r\n text-align: center;\r\n}\r\n\r\nmain > header {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 10px 0;\r\n width: 100%;\r\n position: sticky;\r\n top: 0;\r\n background-color: #302e37;\r\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\r\n z-index: 2;\r\n}\r\n\r\nbutton {\r\n border: none;\r\n cursor: pointer;\r\n padding: 5px 0;\r\n border-radius: 5px;\r\n filter: invert(80%);\r\n transition: 250ms filter ease-in;\r\n}\r\n\r\nbutton:hover {\r\n filter: invert(20%);\r\n}\r\n\r\nul {\r\n list-style: none;\r\n display: flex;\r\n}\r\n\r\nli {\r\n padding-right: 10px;\r\n}\r\n\r\n.logo {\r\n width: 200px;\r\n object-fit: contain;\r\n}\r\n\r\n.date {\r\n font-size: smaller;\r\n color: antiquewhite;\r\n}\r\n\r\n.username {\r\n color: aquamarine;\r\n font-weight: bold;\r\n}\r\n\r\n.pokemon-name {\r\n padding: 5px 0;\r\n}\r\n\r\n.pokemon-characteristics i {\r\n font-size: xx-large;\r\n}\r\n\r\n.card {\r\n border-radius: 10%;\r\n box-shadow: #c2bfbf 0 0 20px;\r\n padding: 15px 30px;\r\n transform: scale(1);\r\n transition: 250ms transform ease-in;\r\n animation: slide-in ease-out 250ms 1;\r\n}\r\n\r\n@keyframes slide-in {\r\n 0% {\r\n transform: scaleX(0);\r\n }\r\n\r\n 100% {\r\n transform: scaleX(1);\r\n }\r\n}\r\n\r\n.card:hover {\r\n transform: scale(1.12, 1.1);\r\n}\r\n\r\n/*** POPUP *****/\r\n\r\n.pokemon-section {\r\n margin: 50px;\r\n}\r\n\r\n.popup-hidden {\r\n display: none;\r\n}\r\n\r\n.popup-modal {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n overflow-y: scroll;\r\n z-index: 999;\r\n background: #171618;\r\n border-radius: 16px;\r\n padding: 30px;\r\n padding-top: 10px;\r\n color: #fc0;\r\n color: white;\r\n}\r\n\r\n.popup-modal::-webkit-scrollbar {\r\n width: 0;\r\n}\r\n\r\n.popup-datas {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.popup-pokemon {\r\n text-align: center;\r\n}\r\n\r\n.pokemon-characteristics {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n border-radius: 10px;\r\n margin: 26px;\r\n color: white;\r\n font-size: 20px;\r\n align-content: center;\r\n align-items: center;\r\n justify-content: center;\r\n list-style: none;\r\n height: 201px;\r\n}\r\n\r\n.pokemon-characteristics,\r\n.pokemon-comments,\r\n.popup-close {\r\n display: flex;\r\n justify-content: end;\r\n}\r\n\r\n.pokemon-characteristics li span {\r\n margin: 10px;\r\n}\r\n\r\n.popup-image {\r\n text-align: center;\r\n margin: 20px 0;\r\n border-radius: 8px;\r\n}\r\n\r\n.popup-image img {\r\n max-width: 300px;\r\n}\r\n\r\nh4 {\r\n margin: 20px 0 10px 0;\r\n text-align: left;\r\n}\r\n\r\n.pokemon-comments {\r\n border-radius: 10px;\r\n margin: 6px;\r\n display: flex;\r\n justify-content: center;\r\n font-size: 16px;\r\n background: #302e37;\r\n height: 100px;\r\n overflow: scroll;\r\n}\r\n\r\n.pokemon-comments li {\r\n margin: 5px;\r\n}\r\n\r\n.pokemon-characteristics li {\r\n margin: 20px;\r\n}\r\n\r\n.pokemon-characteristics li:nth-child(odd) {\r\n color: yellow;\r\n}\r\n\r\n.pokemon-characteristics,\r\n.pokemon-comments {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n}\r\n\r\n.pokemon-comments::-webkit-scrollbar {\r\n width: 0;\r\n}\r\n\r\n.popup-modal i {\r\n font-size: 40px;\r\n}\r\n\r\nform {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n\r\nform input,\r\nform textarea {\r\n margin: 5px;\r\n width: 300px;\r\n font-size: 14px;\r\n line-height: 20px;\r\n border-radius: 5px;\r\n border: 1px solid cadetblue;\r\n padding: 10px;\r\n}\r\n\r\n.add-comment-form button {\r\n background-color: white;\r\n padding: 10px;\r\n border-radius: 10px;\r\n border: 1px solid cadetblue;\r\n margin: 5px;\r\n}\r\n\r\n.popup-close {\r\n display: flex;\r\n justify-content: end;\r\n position: fixed;\r\n right: 30px;\r\n}\r\n\r\n.popup-pokemon h3 {\r\n font-size: 30px;\r\n margin: 20px 0;\r\n}\r\n\r\n/*** POPUP *****/\r\n\r\n#display-items {\r\n display: grid;\r\n width: 100%;\r\n max-width: 800px;\r\n grid-template-columns: 1fr;\r\n grid-gap: 10px;\r\n align-items: center;\r\n}\r\n\r\n.centered-column {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n\r\n#display-items img {\r\n height: 150px;\r\n object-fit: contain;\r\n margin-bottom: 10px;\r\n}\r\n\r\n#display-items button {\r\n width: 100px;\r\n}\r\n\r\n.no-display {\r\n display: none;\r\n}\r\n\r\n.heart {\r\n color: hotpink;\r\n cursor: pointer;\r\n}\r\n\r\n.like {\r\n font-size: 0.8rem;\r\n}\r\n\r\n#load-buttons {\r\n margin: 10px;\r\n display: flex;\r\n width: 300px;\r\n justify-content: space-between;\r\n}\r\n\r\n#load-buttons > button {\r\n filter: invert(20%);\r\n padding: 5px 5px;\r\n}\r\n\r\n@media (min-width: 750px) {\r\n header {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n\r\n #display-items {\r\n grid-template-columns: 250px 250px 250px;\r\n }\r\n\r\n #load-buttons {\r\n margin: 0;\r\n width: 100%;\r\n }\r\n\r\n .pokemon-characteristics {\r\n height: auto;\r\n }\r\n\r\n .popup-close {\r\n right: 120px;\r\n cursor: pointer;\r\n }\r\n\r\n .popup-modal {\r\n top: 100px;\r\n left: 100px;\r\n right: 100px;\r\n bottom: 100px;\r\n }\r\n\r\n .pokemon-characteristics i {\r\n font-size: 25px;\r\n margin: 10px;\r\n }\r\n\r\n .pokemon-characteristics li {\r\n margin: 5px;\r\n display: flex;\r\n justify-content: space-around;\r\n width: 100%;\r\n }\r\n\r\n .popup-image {\r\n flex-grow: 2;\r\n }\r\n\r\n .popup-pokemon {\r\n display: flex;\r\n align-items: center;\r\n }\r\n\r\n .popup-hidden {\r\n display: none;\r\n }\r\n\r\n form {\r\n flex-direction: row;\r\n }\r\n}\r\n\r\n@media (min-width: 1100px) {\r\n #show-less {\r\n position: fixed;\r\n left: 7.5%;\r\n top: 50%;\r\n }\r\n\r\n #load-more {\r\n position: fixed;\r\n right: 7.5%;\r\n top: 50%;\r\n }\r\n}\r\n"],"sourceRoot":""}]); +___CSS_LOADER_EXPORT___.push([module.id, "* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n", "",{"version":3,"sources":["webpack://./src/style.css"],"names":[],"mappings":"AAEA;EACE,SAAS;EACT,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,aAAa;EACb,yBAAyB;EACzB,cAAc;EACd,uCAAuC;EACvC,eAAe;AACjB;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6YC","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');\n\n* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -20159,4 +20165,4 @@ __webpack_require__.r(__webpack_exports__); /******/ })() ; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQU8sSUFBTUEsR0FBYjtBQUFBOztBQUFBOztBQUFBLHVDQUNnQix1REFEaEI7O0FBQUEsbUNBR1ksMEVBSFo7O0FBQUEsb0NBS1ksc0JBTFo7O0FBQUEsa0NBT1csc0JBUFg7O0FBQUEsdUNBU2dCLHVHQVRoQjs7QUFBQSwwQ0FXbUIsQ0FYbkI7O0FBQUE7QUFBQTtBQUFBO0FBQUEsMkVBYW1CLGlCQUFPQyxHQUFQO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNUQyxnQkFBQUEsTUFEUyxHQUNBLEVBREE7QUFBQTtBQUFBLHVCQUVXQyxLQUFLLENBQUNGLEdBQUQsQ0FGaEI7O0FBQUE7QUFBQTtBQUFBLHFDQUV1QkcsSUFGdkI7O0FBQUE7QUFFVEMsZ0JBQUFBLElBRlM7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uICB9IGVsc2Uge1xuICAgIGV4cG9uZW50ID0gZmxvb3IobG9nKG51bWJlcikgLyBMTjIpO1xuICAgIGMgPSBwb3coMiwgLWV4cG9uZW50KTtcbiAgICBpZiAobnVtYmVyICogYyA8IDEpIHtcbiAgICAgIGV4cG9uZW50LS07XG4gICAgICBjICo9IDI7XG4gICAgfVxuICAgIGlmIChleHBvbmVudCArIGVCaWFzID49IDEpIHtcbiAgICAgIG51bWJlciArPSBydCAvIGM7XG4gICAgfSBlbHNlIHtcbiAgICAgIG51bWJlciArPSBydCAqIHBvdygyLCAxIC0gZUJpYXMpO1xuICAgIH1cbiAgICBpZiAobnVtYmVyICogYyA+PSAyKSB7XG4gICAgICBleHBvbmVudCsrO1xuICAgICAgYyAvPSAyO1xuICAgIH1cbiAgICBpZiAoZXhwb25lbnQgKyBlQmlhcyA+PSBlTWF4KSB7XG4gICAgICBtYW50aXNzYSA9IDA7XG4gICAgICBleHBvbmVudCA9IGVNYXg7XG4gICAgfSBlbHNlIGlmIChleHBvbmVudCArIGVCaWFzID49IDEpIHtcbiAgICAgIG1hbnRpc3NhID0gKG51bWJlciAqIGMgLSAxKSAqIHBvdygyLCBtYW50aXNzYUxlbmd0aCk7XG4gICAgICBleHBvbmVudCA9IGV4cG9uZW50ICsgZUJpYXM7XG4gICAgfSBlbHNlIHtcbiAgICAgIG1hbnRpc3NhID0gbnVtYmVyICogcG93KDIsIGVCaWFzIC0gMSkgKiBwb3coMiwgbWFudGlzc2FMZW5ndGgpO1xuICAgICAgZXhwb25lbnQgPSAwO1xuICAgIH1cbiAgfVxuICB3aGlsZSAobWFudGlzc2FMZW5ndGggPj0gOCkge1xuICAgIGJ1ZmZlcltpbmRleCsrXSA9IG1hbnRpc3NhICYgMjU1O1xuICAgIG1hbnRpc3NhIC89IDI1NjtcbiAgICBtYW50aXNzYUxlbmd0aCAtPSA4O1xuICB9XG4gIGV4cG9uZW50ID0gZXhwb25lbnQgPDwgbWFudGlzc2FMZW5ndGggfCBtY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y5cbiAgICAgIHZhciBzcGxpdHRlciA9IG5ldyBDKFVOU1VQUE9SVEVEX1kgPyAnXig/OicgKyByeC5zb3VyY2UgKyAnKScgOiByeCwgZmxhZ3MpO1xuICAgICAgdmFyIGxpbSA9IGxpbWl0ID09PSB1bmRlZmluZWQgPyBNQVhfVUlOVDMyIDogbGltaXQgPj4+IDA7XG4gICAgICBpZiAobGltID09PSAwKSByZXR1cm4gW107XG4gICAgICBpZiAoUy5sZW5ndGggPT09IDApIHJldHVybiBjYWxsUmVnRXhwRXhlYyhzcGxpdHRlciwgUykgPT09IG51bGwgPyBbU10gOiBbXTtcbiAgICAgIHZhciBwID0gMDtcbiAgICAgIHZhciBxID0gMDtcbiAgICAgIHZhciBBID0gW107XG4gICAgICB3aGlsZSAocSA8IFMubGVuZ3RoKSB7XG4gICAgICAgIHNwbGl0dGVyLmxhc3RJbmRleCA9IFVOU1VQUE9SVEVEX1kgPyAwIDogcTtcbiAgICAgICAgdmFyIHogPSBjYWxsUmVnRXhwRXhlYyhzcGxpdHRlciwgVU5TVVBQT1JURURfWSA/IHN0cmluZ1NsaWNlKFMsIHEpIDogUyk7XG4gICAgICAgIHZhciBlO1xuICAgICAgICBpZiAoXG4gICAgICAgICAgeiA9PT0gbnVsbCB8fFxuICAgICAgICAgIChlID0gbWluKHRvTGVuZ3RoKHNwbGl0dGVyLmxhc3RJbmRleCArIChVTlNVUFBPUlRFRF9ZID8gcSA6IDApKSwgUy5sZW5ndGgpKSA9PT0gcFxuICAgICAgICApIHtcbiAgICAgICAgICBxID0gYWR2YW5jZVN0cmluZ0luZGV4KFMsIHEsIHVuaWNvZGVNYXRjaGluZyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgcHVzaChBLCBzdHJpbmdTbGljZShTLCBwLCBxKSk7XG4gICAgICAgICAgaWYgKEEubGVuZ3RoID09PSBsaW0pIHJldHVybiBBO1xuICAgICAgICAgIGZvciAodmFyIGkgPSAxOyBpIDw9IHoubGVuZ3Ro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ZW5jZUVycm9yKCk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ1N5bnRheEVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBTeW50YXhFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdUeXBlRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IFR5cGVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdVUklFcnJvcic6XG4gICAgICAgICAgY2xvbmVkID0gVVJJRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnQ29tcGlsZUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBDb21waWxlRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnTGlua0Vycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBMaW5rRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnUnVudGltZUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBSdW50aW1lRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICBjbG9uZWQgPSBFcnJvcigpO1xuICAgICAgfVxuICAgICAgZGVlcCA9IHRydWU7XG4gICAgICBicmVhaztcbiAgICBjYXNlICdET01FeGNlcHRpb24nOlxuICAgICAgY2xvbmVkID0gbmV3IERPTUV4Y2VwdGlvbih2YWx1ZS5tZXNzYWdlLCB2YWx1ZS5uYW1lKTtcbiAgICAgIGRlZXAgPSB0cnVlO1xuICAgICAgYnJlYWs7XG4gICAgY2FzZSAnRGF0YVZpZXcnOlxuICAgIGNhc2UgJ0ludDhBcnJheSc6XG4gICAgY2FzZSAnVWludDhBcnJheSc6XG4gICAgY2FzZSAnVWludDhDbGFtcGVkQXJyYXknOlxuICAgIGNhc2UgJ0ludDE2QXJyYXknOlxuICAgIGNhc2Ug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gICAgICAgICAgICA/IEMuZnJvbVBvaW50KHZhbHVlKVxuICAgICAgICAgICAgICA6IG5ldyBDKHZhbHVlLngsIHZhbHVlLnksIHZhbHVlLnosIHZhbHVlLncpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0RPTVJlY3QnOlxuICAgICAgICBjYXNlICdET01SZWN0UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbVJlY3RcbiAgICAgICAgICAgICAgPyBDLmZyb21SZWN0KHZhbHVlKVxuICAgICAgICAgICAgICA6IG5ldyBDKHZhbHVlLngsIHZhbHVlLnksIHZhbHVlLndpZHRoLCB2YWx1ZS5oZWlnaHQpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0RPTU1hdHJpeCc6XG4gICAgICAgIGNhc2UgJ0RPTU1hdHJpeFJlYWRPbmx5JzpcbiAgICAgICAgICBDID0gZ2xvYmFsW3R5cGVdO1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjbG9uZWQgPSBDLmZyb21NYXRyaXhcbiAgICAgICAgICAgICAgPyBDLmZyb21NYXRyaXgodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0F1ZGlvRGF0YSc6XG4gICAgICAgIGN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XG4gICAgICBjb250aW51ZTtcbiAgICB9XG4gICAgdmFsdWUgPSBsZW5ndGggPSAwO1xuICAgIHdoaWxlIChsZW5ndGggPCA0ICYmIGV4ZWMoSEVYLCBjaHIoKSkpIHtcbiAgICAgIHZhbHVlID0gdmFsdWUgKiAxNiArIHBhcnNlSW50KGNocigpLCAxNik7XG4gICAgICBwb2ludGVyKys7XG4gICAgICBsZW5ndGgrKztcbiAgICB9XG4gICAgaWYgKGNocigpID09ICcuJykge1xuICAgICAgaWYgKGxlbmd0aCA9PSAwKSByZXR1cm47XG4gICAgICBwb2ludGVyIC09IGxlbmd0aDtcbiAgICAgIGlmIChwaWVjZUluZGV4ID4gNikgcmV0dXJuO1xuICAgICAgbnVtYmVyc1NlZW4gPSAwO1xuICAgICAgd2hpbGUgKGNocigpKSB7XG4gICAgICAgIGlwdjRQaWVjZSA9IG51bGw7XG4gICAgICAgIGlmIChudW1iZXJzU2VlbiA+IDApIHtcbiAgICAgICAgICBpZiAoY2hyKCkgPT0gJy4nICYmIG51bWJlcnNTZWVuIDwgNCkgcG9pbnRlcisrO1xuICAgICAgICAgIGVsc2UgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmICghZXhlYyhESUdJVCwgY2hyKCkpKSByZXR1cm47XG4gICAgICAgIHdoaWxlIChleGVjKERJR0lULCBjaHIoKSkpIHtcbiAgICAgICAgICBudW1iZXIgPSBwYXJzZUludChjaHIoKSwgMTApO1xuICAgICAgICAgIGlmIChpcHY0UGllY2UgPT09IG51bGwpIGlwdjRQaWVjZSA9IG51bWJlcjtcbiAgICAgICAgICBlbHNlIGlmIChpcHY0UGllY2UgPT0gMCkgcmV0dXJuO1xuICAgICAgICAgIGVsc2UgaXB2NFBpZWNlID0gaXB2NFBpZWNlICogMTAgKyBudW1iZXI7XG4gICAgICAgICAgaWYgKGlwdjRQaWVjZSA+IDI1NSkgcmV0dXJuO1xuICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgfVxuICAgICAgIC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ICAgICAgICAgcG9pbnRlcisrO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgdXJsLmNhbm5vdEJlQUJhc2VVUkwgPSB0cnVlO1xuICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIHN0YXRlID0gQ0FOTk9UX0JFX0FfQkFTRV9VUkxfUEFUSDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKCFzdGF0ZU92ZXJyaWRlKSB7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gTk9fU0NIRU1FO1xuICAgICAgICAgICAgcG9pbnRlciA9IDA7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2UgcmV0dXJuIElOVkFMSURfU0NIRU1FO1xuICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgTk9fU0NIRU1FOlxuICAgICAgICAgIGlmICghYmFzZSB8fCAoYmFzZS5jYW5ub3RCZUFCYXNlVVJMICYmIGNociAhPSAnIycpKSByZXR1cm4gSU5WQUxJRF9TQ0hFTUU7XG4gICAgICAgICAgaWYgKGJhc2UuY2Fubm90QmVBQmFzZVVSTCAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuc2NoZW1lID0gYmFzZS5zY2hlbWU7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHVybC5jYW5ub3RCZUFCYXNlVVJMID0gdHJ1ZTtcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICB9XG4gICAgICAgICAgc3RhdGUgPSBiYXNlLnNjaGVtZSA9PSAnZmlsZScgPyBGSUxFIDogUkVMQVRJVkU7XG4gICAgICAgICAgY29udGludWU7XG5cbiAgICAgICAgY2FzZSBTUEVDSUFMX1JFTEFUSVZFX09SX0FVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICcvJyAmJiBjb2RlUG9pbnRzW3BvaW50ZXIgKyAxXSA9PSAnLycpIHtcbiAgICAgICAgICAgIHN0YXRlID0gU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM7XG4gICAgICAgICAgICBwb2ludGVyKys7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUkVMQVRJVkU7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgUEFUSF9PUl9BVVRIT1JJVFk6XG4gICAgICAgICAgaWYgKGNociA9PSAnLycpIHtcbiAgICAgICAgICAgIHN0YXRlID0gQVVUSE9SSVRZO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH1cblxuICAgICAgICBjYXNlIFJFTEFUSVZFOlxuICAgICAgICAgIHVybC5zY2hlbWUgPSBiYXNlLnNjaGVtZTtcbiAgICAgICAgICBpZiAoY2hyID09IEVPRikge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSBiYXNlLnF1ZXJ5O1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcvJyB8fCAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFJFTEFUSVZFX1NMQVNIO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICc/Jykge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnB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gKyAxKSAhPSAnLycpIGNvbnRpbnVlO1xuICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFNQRUNJQUxfQVVUSE9SSVRZX0lHTk9SRV9TTEFTSEVTOlxuICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmIGNociAhPSAnXFxcXCcpIHtcbiAgICAgICAgICAgIHN0YXRlID0gQVVUSE9SSVRZO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIEFVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICdAJykge1xuICAgICAgICAgICAgaWYgKHNlZW5BdCkgYnVmZmVyID0gJyU0MCcgKyBidWZmZXI7XG4gICAgICAgICAgICBzZWVuQXQgPSB0cnVlO1xuICAgICAgICAgICAgYnVmZmVyQ29kZVBvaW50cyA9IGFycmF5RnJvbShidWZmZXIpO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBidWZmZXJDb2RlUG9pbnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgIHZhciBjb2RlUG9pbnQgPSBidWZmZXJDb2RlUG9pbnRzW2ldO1xuICAgICAgICAgICAgICBpZiAoY29kZVBvaW50ID09ICc6JyAmJiAhc2VlblBhc3N3b3JkVG9rZW4pIHtcbiAgICAgICAgICAgICAgICBzZWVuUGFzc3dvcmRUb2tlbiA9IHRydWU7XG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgdmFyIGVuY29kZWRDb2RlUG9pbnRzID0gcGVyY2VudEVuY29kZShjb2RlUG9pbnQsIHVzZXJpbmZvUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgICAgIGlmIChzZWVuUGFzc3dvcmRUb2tlbikgdXJsLnBhc3N3b3JkICs9IGVuY29kZWRDb2RlUG9pbnRzO1xuICAgICAgICAgICAgICBlbHNlIHVybC51c2VybmFtZSArPSBlbmNvZGVkQ29kZVBvaW50cztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgICAgICBjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICc/JyB8fCBjaHIgPT0gJyMnIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAoc2VlbkF0ICYmIGJ1ZmZlciA9PSAnJykgcmV0dXJuIElOVkFMSURfQVVUSE9SSVRZO1xuICAgICAgICAgICAgcG9pbnRlciAtPSBhcnJheUZyb20oYnVmZmVyKS5sZW5ndGggKyAxO1xuICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IEhPU1Q7XG4gICAgICAgICAgfSBlbHNlIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBIT1NUOlxuICAgICAgICBjYXNlIEhPU1ROQU1FOlxuICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlICYmIHVybC5zY2hlbWUgPT0gJ2ZpbGUnKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IEZJTEVfSE9TVDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICc6JyAmJiAhc2VlbkJyYWNrZXQpIHtcbiAgICAgICAgICAgIGlmIChidWZmZXIgPT0gJycpIHJldHVybiBJTlZBTElEX0hPU1Q7XG4gICAgICAgICAgICBmYWlsdXJlID0gdXJsLnBhcnNlSG9zdChidWZmZXIpO1xuICAgICAgICAgICAgaWYgKGZhaWx1cmUpIHJldHVybiBmYWlsdXJlO1xuICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IFBPUlQ7XG4gICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSA9PSBIT1NUTkFNRSkgcmV0dXJuO1xuICAgICAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgICAgICBjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICc/JyB8fCBjaHIgPT0gJyMnIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAodXJsLmlzU3BlY2lhbCgpICYmIGJ1ZmZlciA9PSAnJykgcmV0dXJuIElOVkFMSURfSE9TVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlICYmIGJ1ZmZlciA9PSAnJyAmJiAodXJsLmluY2x1ZGVzQ3JlZGVudGlhbHMoKSB8fCB1cmwucG9ydCAhPT0gbnVsbCkpIHJldHVybjtcbiAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICBpZiAoZmFpbHVyZSkgcmV0dXJuIGZhaWx1cmU7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlKSByZXR1cm47XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKGNociA9PSAnWycpIHNlZW5CcmFja2V0ID0gdHJ1ZTtcbiAgICAgICAgICAgIGVsc2UgaWYgKGNociA9PSAnXScpIHNlZW5CcmFja2V0ID0gZmFsc2U7XG4gICAgICAgICAgICBidWZmZXIgKz0gY2hyO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQT1JUOlxuICAgICAgICAgIGlmIChleGVjKERJR0lULCBjaHIpKSB7XG4gICAgICAgICAgICBidWZmZXIgKz0gY2hyO1xuICAgICAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgICAgICBjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICc/JyB8fCBjaHIgPT0gJyMnIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpIHx8XG4gICAgICAgICAgICBzdGF0ZU92ZXJyaWRlXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAoYnVmZmVyICE9ICcnKSB7XG4gICAgICAgICAgICAgIHZhciBwb3J0ID0gcGFyc2VJbnQoYnVmZmVyLCAxMCk7XG4gICAgICAgICAgICAgIGlmIChwb3J0ID4gMHhGRkZGKSByZXR1cm4gSU5WQUxJRF9QT1JUO1xuICAgICAgICAgICAgICB1cmwucG9ydCA9ICh1cmwuaXNTcGVjaWFsKCkgJiYgcG9ydCA9PT0gc3BlY2lhbFNjaGVtZXNbdXJsLnNjaGVtZV0pID8gbnVsbCA6IHBvcnQ7XG4gICAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUpIHJldHVybjtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSByZXR1cm4gSU5WQUxJRF9QT1JUO1xuICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgRklMRTpcbiAgICAgICAgICB1cmwuc2NoZW1lID0gJ2ZpbGUnO1xuICAgICAgICAgIGlmIChjaHIgPT0gJy8nIHx8IGNociA9PSAnXFxcXCcpIHN0YXRlID0gRklMRV9TTEFTSDtcbiAgICAgICAgICBlbHNlIGlmIChiYXNlICYmIGJhc2Uuc2NoZW1lID09ICdmaWxlJykge1xuICAgICAgICAgICAgaWYgKGNociA9PSBFT0YpIHtcbiAgICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSBiYXNlLnF1ZXJ5O1xuICAgICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSBiYXNlLnF1ZXJ5O1xuICAgICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGlmICghc3RhcnRzV2l0aFdpbmRvd3NEcml2ZUxldHRlcihqb2luKGFycmF5U2xpY2UoY29kZVBvaW50cywgcG9pbnRlciksICcnKSkpIHtcbiAgICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgICAgICB1cmwuc2hvcnRlblBhdGgoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxu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pZiAoc3RhdGVPdmVycmlkZSkgcmV0dXJuO1xuICAgICAgICAgICAgICBzdGF0ZSA9IFBBVEhfU1RBUlQ7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBmYWlsdXJlID0gdXJsLnBhcnNlSG9zdChidWZmZXIpO1xuICAgICAgICAgICAgICBpZiAoZmFpbHVyZSkgcmV0dXJuIGZhaWx1cmU7XG4gICAgICAgICAgICAgIGlmICh1cmwuaG9zdCA9PSAnbG9jYWxob3N0JykgdXJsLmhvc3QgPSAnJztcbiAgICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUpIHJldHVybjtcbiAgICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIH0gY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIX1NUQVJUOlxuICAgICAgICAgIGlmICh1cmwuaXNTcGVjaWFsKCkpIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmIGNociAhPSAnXFxcXCcpIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUgJiYgY2hyID09ICc/Jykge1xuICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IFFVRVJZO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUgJiYgY2hyID09ICcjJykge1xuICAgICAgICAgICAgdXJsLmZyYWdtZW50ID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IEZSQUdNRU5UO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyICE9IEVPRikge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgaWYgKGNociAhPSAnLycpIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIOlxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fFxuICAgICAgICAgICAgKGNociA9PSAnXFxcXCcgJiYgdXJsLmlzU3BlY2lhbCgpKSB8fFxuICAgICAgICAgICAgKCFzdGF0ZU92ZXJyaWRlICYmIChjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpKVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgaWYgKGlzRG91YmxlRG90KGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgdXJsLnNob3J0ZW5QYXRoKCk7XG4gICAgICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmICEoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpKSB7XG4gICAgICAgICAgICAgICAgcHVzaCh1cmwucGF0aCwgJycpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGlzU2luZ2xlRG90KGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgIShjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGlmICh1cmwuc2NoZW1lID09ICdmaWxlJyAmJiAhdXJsLnBhdGgubGVuZ3RoICYmIGlzV2luZG93c0RyaXZlTGV0dGVyKGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgICBpZiAodXJsLmhvc3QpIHVybC5ob3N0ID0gJyc7XG4gICAgICAgICAgICAgICAgYnVmZmVyID0gY2hhckF0KGJ1ZmZlciwgMCkgKyAnOic7IC8vIG5vcm1hbGl6ZSB3aW5kb3dzIGRyaXZlIGxldHRlclxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsIGJ1ZmZlcik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIGlmICh1cmwuc2NoZW1lID09ICdmaWxlJyAmJiAoY2hyID09IEVPRiB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpKSB7XG4gICAgICAgICAgICAgIHdoaWxlICh1cmwucGF0aC5sZW5ndGggPiAxICYmIHVybC5wYXRoWzBdID09PSAnJykge1xuICAgICAgICAgICAgICAgIHNoaWZ0KHVybC5wYXRoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgICAgdXJsLmZyYWdtZW50ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBwZXJjZW50RW5jb2RlKGNociwgcGF0aFBlcmNlbnRFbmNvZGVTZXQpO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBDQU5OT1RfQkVfQV9CQVNFX1VSTF9QQVRIOlxuICAgICAgICAgIGlmIChjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgIT0gRU9GKSB7XG4gICAgICAgICAgICB1cmwucGF0aFswXSArPSBwZXJjZW50RW5jb2RlKGNociwgQzBDb250cm9sUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFFVRVJZOlxuICAgICAgICAgIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgIT0gRU9GKSB7XG4gICAgICAgICAgICBpZiAoY2hyID09IFwiJ1wiICYmIHVybC5pc1NwZWNpYWwoKSkgdXJsLnF1ZXJ5ICs9ICclMjcnO1xuICAgICAgICAgICAgZWxzZSBpZiAoY2hyID09ICcjJykgdXJsLnF1ZXJ5ICs9ICclMjMnO1xuICAgICAgICAgICAgZWxzZSB1cmwucXVlcnkgKz0gcGVyY2VudEVuY29kZShjaHIsIEMwQ29udHJvbFBlcmNlbnRFbmNvZGVTZXQpO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBGUkFHTUVOVDpcbiAgICAgICAgICBpZiAoY2hyICE9IEVPRikgdXJsLmZyYWdtZW50ICs9IHBlcmNlbnRFbmNvZGUoY2hyLCBmcmFnbWVudFBlcmNlbnRFbmNvZGVTZXQpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgfVxuXG4gICAgICBwb2ludGVyKys7XG4gICAgfVxuICB9LFxuICAvLyBodHRwczovL3VybC5zcGVjLndoYXR3Zy5vcmcvI2hvc3QtcGFyc2luZ1xuICBwYXJzZUhvc3Q6IGZ1bmN0aW9uIChpbnB1dCkge1xuICAgIHZhciByZXN1bHQsIGNvZGVQb2ludHMsIGluZGV4O1xuICAgIGlmIChjaG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TdGF0ZVN1c3BlbmRlZFN0YXJ0KSB7XG4gICAgICAgICAgICBzdGF0ZSA9IEdlblN0YXRlQ29tcGxldGVkO1xuICAgICAgICAgICAgdGhyb3cgY29udGV4dC5hcmc7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgY29udGV4dC5kaXNwYXRjaEV4Y2VwdGlvbihjb250ZXh0LmFyZyk7XG5cbiAgICAgICAgfSBlbHNlIGlmIChjb250ZXh0Lm1ldGhvZCA9PT0gXCJyZXR1cm5cIikge1xuICAgICAgICAgIGNvbnRleHQuYWJydXB0KFwicmV0dXJuXCIsIGNvbnRleHQuYXJnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN0YXRlID0gR2VuU3RhdGVFeGVjdXRpbmc7XG5cbiAgICAgICAgdmFyIHJlY29yZCA9IHRyeUNhdGNoKGlubmVyRm4sIHNlbGYsIGNvbnRleHQpO1xuICAgICAgICBpZiAocmVjb3JkLnR5cGUgPT09IFwibm9ybWFsXCIpIHtcbiAgICAgICAgICAvLyBJZiBhbiBleGNlcHRpb24gaXMgdGhyb3duIGZyb20gaW5uZXJGbiwgd2UgbGVhdmUgc3RhdGUgPT09XG4gICAgICAgICAgLy8gR2VuU3RhdGVFeGVjdXRpbmcgYW5kIGxvb3AgYmFjayBmb3IgYW5vdGhlciBpbnZvY2F0aW9uLlxuICAgICAgICAgIHN0YXRlID0gY29udGV4dC5kb25lXG4gICAgICAgICAgICA/IEdlblN0YXRlQ29tcGxldGVkXG4gICAgICAgICAgICA6IEdlblN0YXRlU3VzcGVuZGVkWWllbGQ7XG5cbiAgICAgICAgICBpZiAocmVjb3JkLmFyZyA9PT0gQ29udGludWVTZW50aW5lbCkge1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIHZhbHVlOiByZWNvcmQuYXJnLFxuICAgICAgICAgICAgZG9uZTogY29udGV4dC5kb25lXG4gICAgICAgICAgfTtcblx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XJhYmxlKSB7XG4gICAgaWYgKGl0ZXJhYmxlKSB7XG4gICAgICB2YXIgaXRlcmF0b3JNZXRob2QgPSBpdGVyYWJsZVtpdGVyYXRvclN5bWJvbF07XG4gICAgICBpZiAoaXRlcmF0b3JNZXRob2QpIHtcbiAgICAgICAgcmV0dXJuIGl0ZXJhdG9yTWV0aG9kLmNhbGwoaXRlcmFibGUpO1xuICAgICAgfVxuXG4gICAgICBpZiAodHlwZW9mIGl0ZXJhYmxlLm5leHQgPT09IFwiZnVuY3Rpb25cIikge1xuICAgICAgICByZXR1cm4gaXRlcmFibGU7XG4gICAgICB9XG5cbiAgICAgIGlmICghaXNOYU4oaXRlcmFibGUubGVuZ3RoKSkge1xuICAgICAgICB2YXIgaSA9IC0xLCBuZXh0ID0gZnVuY3Rpb24gbmV4dCgpIHtcbiAgICAgICAgICB3aGlsZSAoKytpIDwgaXRlcmFibGUubGVuZ3RoKSB7XG4gICAgICAgICAgICBpZiAoaGFzT3duLmNhbGwoaXRlcmFibGUsIGkpKSB7XG4gICAgICAgICAgICAgIG5leHQudmFsdWUgPSBpdGVyYWJsZVtpXTtcbiAgICAgICAgICAgICAgbmV4dC5kb25lID0gZmFsc2U7XG4gICAgICAgICAgICAgIHJldHVybiBuZXh0O1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cblxuICAgICAgICAgIG5leHQudmFsdWUgPSB1bmRlZmluZWQ7XG4gICAgICAgICAgbmV4dC5kb25lID0gdHJ1ZTtcblxuICAgICAgICAgIHJldHVybiBuZXh0O1xuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiBuZXh0Lm5leHQgPSBuZXh0O1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIFJldHVybiBhbiBpdGVyYXRvciB3aXRoIG5vIHZhbHVlcy5cbiAgICByZXR1cm4geyBuZXh0OiBkb25lUmVzdWx0IH07XG4gIH1cbiAgZXhwb3J0cy52YWx1ZXMgPSB2YWx1ZXM7XG5cbiAgZnVuY3Rpb24g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ICAgICB9XG5cbiAgICAgICAgICB9IGVsc2UgaWYgKGhhc0NhdGNoKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5wcmV2IDwgZW50cnkuY2F0Y2hMb2MpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGhhbmRsZShlbnRyeS5jYXRjaExvYywgdHJ1ZSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICB9IGVsc2UgaWYgKGhhc0ZpbmFsbHkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuZmluYWxseUxvYyk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwidHJ5IHN0YXRlbWVudCB3aXRob3V0IGNhdGNoIG9yIGZpbmFsbHlcIik7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIGFicnVwdDogZnVuY3Rpb24odHlwZSwgYXJnKSB7XG4gICAgICBmb3IgKHZhciBpID0gdGhpcy50cnlFbnRyaWVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgLS1pKSB7XG4gICAgICAgIHZhciBlbnRyeSA9IHRoaXMudHJ5RW50cmllc1tpXTtcbiAgICAgICAgaWYgKGVudHJ5LnRyeUxvYyA8PSB0aGlzLnByZXYgJiZcbiAgICAgICAgICAgIGhhc093bi5jYWxsKGVudHJ5LCBcImZpbmFsbHlMb2NcIikgJiZcbiAgICAgICAgICAgIHRoaXMucHJldiA8IGVudHJ5LmZpbmFsbHlMb2MpIHtcbiAgICAgICAgICB2YXIgZmluYWxseUVudHJ5ID0gZW50cnk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKGZpbmFsbHlFbnRyeSAmJlxuICAgICAgICAgICh0eXBlID09PSBcImJyZWFrXCIgfHxcbiAgICAgICAgICAgdHlwZSA9PT0gXCJjb250aW51ZVwiKSAmJlxuICAgICAgICAgIGZpbmFsbHlFbnRyeS50cnlMb2MgPD0gYXJnICYmXG4gICAgICAgICAgYXJnIDw9IGZpbmFsbHlFbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgIC8vIElnbm9yZSB0aGUgZmluYWxseSBlbnRyeSBpZiBjb250cm9sIGlzIG5vdCBqdW1waW5nIHRvIGFcbiAgICAgICAgLy8gbG9jYXRpb24gb3V0c2lkZSB0aGUgdHJ5L2NhdGNoIGJsb2NrLlxuICAgICAgICBmaW5hbGx5RW50cnkgPSBudWxsO1xuICAgICAgfVxuXG4gICAgICB2YXIgcmVjb3JkID0gZmluYWxseUVudHJ5ID8gZmluYWxseUVudHJ5LmNvbXBsZXRpb24gOiB7fTtcbiAgICAgIHJlY29yZC50eXBlID0gdHlwZTtcbiAgICAgIHJlY29yZC5hcmcgPSBhcmc7XG5cbiAgICAgIGlmIChmaW5hbGx5RW50cnkpIHtcbiAgICAgICAgdGhpcy5tZXRob2QgPSBcIm5leHRcIjtcbiAgICAgICAgdGhpcy5uZXh0ID0gZmluYWxseUVudHJ5LmZpbmFsbHlMb2M7XG4gICAgICAgIHJldHVybiBDb250aW51ZVNlbnRpbmVsO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gdGhpcy5jb21wbGV0ZShyZWNvcmQpO1xuICAgIH0sXG5cbiAgICBjb21wbGV0ZTogZnVuY3Rpb24ocmVjb3JkLCBhZnRlckxvYykge1xuICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgdGhyb3cgcmVjb3JkLmFyZztcbiAgICAgIH1cblxuICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcImJyZWFrXCIgfHxcbiAgICAgICAgICByZWNvcmQudHlwZSA9PT0gXCJjb250aW51ZVwiKSB7XG4gICAgICAgIHRoaXMubmV4dCA9IHJlY29yZC5hcmc7XG4gICAgICB9IGVsc2UgaWYgKHJlY29yZC50eXBlID09PSBcInJldHVyblwiKSB7XG4gICAgICAgIHRoaXMucnZhbCA9IHRoaXMuYXJnID0gcmVjb3JkLmFyZztcbiAgICAgICAgdGhpcy5tZXRob2QgPSBcInJldHVyblwiO1xuICAgICAgICB0aGlzLm5leHQgPSBcImVuZFwiO1xuICAgICAgfSBlbHNlIGlmIChyZWNvcmQudHlwZSA9PT0gXCJub3JtYWxcIiAmJiBhZnRlckxvYykge1xuICAgICAgICB0aGlzLm5leHQgPSBhZnRlckxvYztcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIENvbnRpbnVlU2VudGluZWw7XG4gICAgfSxcblxuICAgIGZpbmlzaDogZnVuY3Rpb24oZmluYWxseUxvYykge1xuICAgICAgZm9yICh2YXIgaSA9IHRoaXMudHJ5RW50cmllcy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICB2YXIgZW50cnkgPSB0aGlzLnRyeUVudHJpZXNbaV07XG4gICAgICAgIGlmIChlbnRyeS5maW5hbGx5TG9jID09PSBmaW5hbGx5TG9jKSB7XG4gICAgICAgICAgdGhpcy5jb21wbGV0ZShlbnRyeS5jb21wbGV0aW9uLCBlbnRyeS5hZnRlckxvYyk7XG4gICAgICAgICAgcmVzZXRUcnlFbnRyeShlbnRyeSk7XG4gICAgICAgICAgcmV0dXJuIENvbnRpbnVlU2VudGluZWw7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9LFxuXG4gICAgXCJjYXRjaFwiOiBmdW5jdGlvbih0cnlMb2MpIHtcbiAgICAgIGZvciAodmFyIGkgPSB0aGlzLnRyeUVudHJpZXMubGVuZ3RoIC0gMTsgaSA+PSAwOyAtLWkpIHtcbiAgICAgICAgdmFyIGVudHJ5ID0gdGhpcy50cnlFbnRyaWVzW2ldO1xuICAgICAgICBpZiAoZW50cnkudHJ5TG9jID09PSB0cnlMb2MpIHtcbiAgICAgICAgICB2YXIgcmVjb3JkID0gZW50cn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iAgICAgICAgY2FzZSAnUmFuZ2VFcnJvcic6XG4gICAgICAgICAgY2xvbmVkID0gUmFuZ2VFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdSZWZlcmVuY2VFcnJvcic6XG4gICAgICAgICAgY2xvbmVkID0gUmVmZXJlbmNlRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnU3ludGF4RXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IFN5bnRheEVycm9yKCk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ1R5cGVFcnJvcic6XG4gICAgICAgICAgY2xvbmVkID0gVHlwZUVycm9yKCk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ1VSSUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBVUklFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdDb21waWxlRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IENvbXBpbGVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdMaW5rRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IExpbmtFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdSdW50aW1lRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IFJ1bnRpbWVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgIGNsb25lZCA9IEVycm9yKCk7XG4gICAgICB9XG4gICAgICBkZWVwID0gdHJ1ZTtcbiAgICAgIGJyZWFrO1xuICAgIGNhc2UgJ0RPTUV4Y2VwdGlvbic6XG4gICAgICBjbG9uZWQgPSBuZXcgRE9NRXhjZXB0aW9uKHZhbHVlLm1lc3NhZ2UsIHZhbHVlLm5hbWUpO1xuICAgICAgZGVlcCA9IHRydWU7XG4gICAgICBicmV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lmaWxsYWJsZSh0eXBlKTtcbiAgICAgICAgICB9IGJyZWFrO1xuICAgICAgICBjYXNlICdET01Qb2ludCc6XG4gICAgICAgIGNhc2UgJ0RPTVBvaW50UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbVBvaW50XG4gICAgICAgICAgICAgID8gQy5mcm9tUG9pbnQodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUueCwgdmFsdWUueSwgdmFsdWUueiwgdmFsdWUudyk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgIHRocm93VW5wb2x5ZmlsbGFibGUodHlwZSk7XG4gICAgICAgICAgfSBicmVhaztcbiAgICAgICAgY2FzZSAnRE9NUmVjdCc6XG4gICAgICAgIGNhc2UgJ0RPTVJlY3RSZWFkT25seSc6XG4gICAgICAgICAgQyA9IGdsb2JhbFt0eXBlXTtcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgY2xvbmVkID0gQy5mcm9tUmVjdFxuICAgICAgICAgICAgICA/IEMuZnJvbVJlY3QodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUueCwgdmFsdWUueSwgdmFsdWUud2lkdGgsIHZhbHVlLmhlaWdodCk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgIHRocm93VW5wb2x5ZmlsbGFibGUodHlwZSk7XG4gICAgICAgICAgfSBicmVhaztcbiAgICAgICAgY2FzZSAnRE9NTWF0cml4JzpcbiAgICAgICAgY2FzZSAnRE9NTWF0cml4UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbU1hdHJpeFxuICAgICAgICAgICAgICA/IEMuZnJvbU1hdH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XG4gICAgICB1cmwudXNlcm5hbWUgPSAnJztcbiAgICAgIHVybC5wYXNzd29yZCA9ICcnO1xuICAgICAgdXJsLmhvc3QgPSBudWxsO1xuICAgICAgdXJsLnBvcnQgPSBudWxsO1xuICAgICAgdXJsLnBhdGggPSBbXTtcbiAgICAgIHVybC5xdWVyeSA9IG51bGw7XG4gICAgICB1cmwuZnJhZ21lbnQgPSBudWxsO1xuICAgICAgdXJsLmNhbm5vdEJlQUJhc2VVUkwgPSBmYWxzZTtcbiAgICAgIGlucHV0ID0gcmVwbGFjZShpbnB1dCwgTEVBRElOR19BTkRfVFJBSUxJTkdfQzBfQ09OVFJPTF9PUl9TUEFDRSwgJycpO1xuICAgIH1cblxuICAgIGlucHV0ID0gcmVwbGFjZShpbnB1dCwgVEFCX0FORF9ORVdfTElORSwgJycpO1xuXG4gICAgY29kZVBvaW50cyA9IGFycmF5RnJvbShpbnB1dCk7XG5cbiAgICB3aGlsZSAocG9pbnRlciA8PSBjb2RlUG9pbnRzLmxlbmd0aCkge1xuICAgICAgY2hyID0gY29kZVBvaW50c1twb2ludGVyXTtcbiAgICAgIHN3aXRjaCAoc3RhdGUpIHtcbiAgICAgICAgY2FzZSBTQ0hFTUVfU1RBUlQ6XG4gICAgICAgICAgaWYgKGNociAmJiBleGVjKEFMUEhBLCBjaHIpKSB7XG4gICAgICAgICAgICBidWZmZXIgKz0gdG9Mb3dlckNhc2UoY2hyKTtcbiAgICAgICAgICAgIHN0YXRlID0gU0NIRU1FO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUpIHtcbiAgICAgICAgICAgIHN0YXRlID0gTk9fU0NIRU1FO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIHJldHVybiBJTlZBTElEX1NDSEVNRTtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFNDSEVNRTpcbiAgICAgICAgICBpZiAoY2hyICYmIChleGVjKEFMUEhBTlVNRV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AgICAgICB9IGVsc2UgaWYgKHVybC5pc1NwZWNpYWwoKSkge1xuICAgICAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfQVVUSE9SSVRZX1NMQVNIRVM7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNvZGVQb2ludHNbcG9pbnRlciArIDFdID09ICcvJykge1xuICAgICAgICAgICAgICBzdGF0ZSA9IFBBVEhfT1JfQVVUSE9SSVRZO1xuICAgICAgICAgICAgICBwb2ludGVyKys7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICB1cmwuY2Fubm90QmVBQmFzZVVSTCA9IHRydWU7XG4gICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsICcnKTtcbiAgICAgICAgICAgICAgc3RhdGUgPSBDQU5OT1RfQkVfQV9CQVNFX1VSTF9QQVRIO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUpIHtcbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBOT19TQ0hFTUU7XG4gICAgICAgICAgICBwb2ludGVyID0gMDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSByZXR1cm4gSU5WQUxJRF9TQ0hFTUU7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBOT19TQ0hFTUU6XG4gICAgICAgICAgaWYgKCFiYXNlIHx8IChiYXNlLmNhbm5vdEJlQUJhc2VVUkwgJiYgY2hyICE9ICcjJykpIHJldHVybiBJTlZBTElEX1NDSEVNRTtcbiAgICAgICAgICBpZiAoYmFzZS5jYW5ub3RCZUFCYXNlVVJMICYmIGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC5zY2hlbWUgPSBiYXNlLnNjaGVtZTtcbiAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gYmFzZS5xdWVyeTtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgdXJsLmNhbm5vdEJlQUJhc2VVUkwgPSB0cnVlO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIH1cbiAgICAgICAgICBzdGF0ZSA9IGJhc2Uuc2NoZW1lID09ICdmaWxlJyA/IEZJTEUgOiBSRUxBVElWRTtcbiAgICAgICAgICBjb250aW51ZTtcblxuICAgICAgICBjYXNlIFNQRUNJQUxfUkVMQVRJVkVfT1JfQVVUSE9SSVRZOlxuICAgICAgICAgIGlmIChjaHIgPT0gJy8nICYmIGNvZGVQb2ludHNbcG9pbnRlciArIDFdID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBTUEVDSUFMX0FVVEhPUklUWV9JR05PUkVfU0xBU0hFUztcbiAgICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc3RhdGUgPSBSRUxBVElWRTtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIX09SX0FVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgUkVMQVRJVkU6XG4gICAgICAgICAgdXJsLnNjaGVtZSA9IGJhc2Uuc2NoZW1lO1xuICAgICAgICAgIGlmIChjaHIgPT0gRU9GKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJy8nIHx8IChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgIHN0YXRlID0gUkVMQVRJVkVfU0xBU0g7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnBhc3N3b3JkO1xuICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICB1cmwucG9ydCA9IGJhc2UucG9ydDtcbiAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gYmFzZS5xdWVyeTtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucGF0aC5sZW5ndGgtLTtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBSRUxBVElWRV9TTEFTSDpcbiAgICAgICAgICBpZiAodXJsLmlzU3BlY2lhbCgpICYmIChjaHIgPT0gJy8nIHx8IGNociA9PSAnXFxcXCcpKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfQVVUSE9SSVRZX0lHTk9SRV9TTEFTSEVTO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnBhc3N3b3JkO1xuICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICB1cmwucG9ydCA9IGJhc2UucG9ydDtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBTUEVDSUFMX0FVVEhPUklUWV9TTEFTSEVTOlxuICAgICAgICAgIHN0YXRlID0gU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM7XG4gICAgICAgICAgaWYgKGNociAhPSAnLycgfHwgY2hhckF0KGJ1ZmZlciwgcG9pbnRlciArIDEpICE9ICcvJykgY29udGludWU7XG4gICAgICAgICAgcG9pbnRlcisrO1xuICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM6XG4gICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgY2hyICE9ICdcXFxcJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQVVUSE9SSVRZOlxuICAgICAgICAgIGlmIChjaHIgPT0gJ0AnKSB7XG4gICAgICAgICAgICBpZiAoc2VlbkF0KSBidWZmZXIgPSAnJTQwJyArIGJ1ZmZlcjtcbiAgICAgICAgICAgIHNlZW5BdCA9IHRydWU7XG4gICAgICAgICAgICBidWZmZXJDb2RlUG9pbnRzID0gYXJyYXlGcm9tKGJ1ZmZlcik7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGJ1ZmZlckNvZGVQb2ludHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgdmFyIGNvZGVQb2ludCA9IGJ1ZmZlckNvZGVQb2ludHNbaV07XG4gICAgICAgICAgICAgIGlmIChjb2RlUG9pbnQgPT0gJzonICYmICFzZWVuUGFzc3dvcmRUb2tlbikge1xuICAgICAgICAgICAgICAgIHNlZW5QYXNzd29yZFRva2VuID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB2YXIgZW5jb2RlZENvZGVQb2ludHMgPSBwZXJjZW50RW5jb2RlKGNvZGVQb2ludCwgdXNlcmluZm9QZXJjZW50RW5jb2RlU2V0KTtcbiAgICAgICAgICAgICAgaWYgKHNlZW5QYXNzd29yZFRva2VuKSB1cmwucGFzc3dvcmQgKz0gZW5jb2RlZENvZGVQb2ludHM7XG4gICAgICAgICAgICAgIGVsc2UgdXJsLnVzZXJuYW1lICs9IGVuY29kZWRDb2RlUG9pbnRzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSlcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmIChzZWVuQXQgJiYgYnVmZmVyID09ICcnKSByZXR1cm4gSU5WQUxJRF9BVVRIT1JJVFk7XG4gICAgICAgICAgICBwb2ludGVyIC09IGFycmF5RnJvbShidWZmZXIpLmxlbmd0aCArIDE7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gSE9TVDtcbiAgICAgICAgICB9IGVsc2UgYnVmZmVyICs9IGNocjtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIEhPU1Q6XG4gICAgICAgIGNhc2UgSE9TVE5BTUU6XG4gICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUgJiYgdXJsLnNjaGVtZSA9PSAnZmlsZScpIHtcbiAgICAgICAgICAgIHN0YXRlID0gRklMRV9IT1NUO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJzonICYmICFzZWVuQnJhY2tldCkge1xuICAgICAgICAgICAgaWYgKGJ1ZmZlciA9PSAnJykgcmV0dXJuIElOVkFMSURfSE9TVDtcbiAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICBpZiAoZmFpbHVyZSkgcmV0dXJuIGZhaWx1cmU7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUE9SVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlID09IEhPU1ROQU1FKSByZXR1cm47XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSlcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmICh1cmwuaXNTcGVjaWFsKCkgJiYgYnVmZmVyID09ICcnKSByZXR1cm4gSU5WQUxJRF9IT1NUO1xuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUgJiYgYnVmZmVyID09ICcnICYmICh1cmwuaW5jbHVkZXNDcmVkZW50aWFscygpIHx8IHVybC5wb3J0ICE9PSBudWxsKSkgcmV0dXJuO1xuICAgICAgICAgICAgZmFpbHVyZSA9IHVybC5wYXJzZUhvc3QoYnVmZmVyKTtcbiAgICAgICAgICAgIGlmIChmYWlsdXJlKSByZXR1cm4gZmFpbHVyZTtcbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUpIHJldHVybjtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAoY2hyID09ICdbJykgc2VlbkJyYWNrZXQgPSB0cnVlO1xuICAgICAgICAgICAgZWxzZSBpZiAoY2hyID09ICddJykgc2VlbkJyYWNrZXQgPSBmYWxzZTtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFBPUlQ6XG4gICAgICAgICAgaWYgKGV4ZWMoRElHSVQsIGNocikpIHtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkgfHxcbiAgICAgICAgICAgIHN0YXRlT3ZlcnJpZGVcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmIChidWZmZXIgIT0gJycpIHtcbiAgICAgICAgICAgICAgdmFyIHBvcnQgPSBwYXJzZUludChidWZmZXIsIDEwKTtcbiAgICAgICAgICAgICAgaWYgKHBvcnQgPiAweEZGRkYpIHJldHVybiBJTlZBTElEX1BPUlQ7XG4gICAgICAgICAgICAgIHVybC5wb3J0ID0gKHVybC5pc1NwZWNpYWwoKSAmJiBwb3J0ID09PSBzcGVjaWFsU2NoZW1lc1t1cmwuc2NoZW1lXSkgPyBudWxsIDogcG9ydDtcbiAgICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSkgcmV0dXJuO1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIHJldHVybiBJTlZBTElEX1BPUlQ7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBGSUxFOlxuICAgICAgICAgIHVybC5zY2hlbWUgPSAnZmlsZSc7XG4gICAgICAgICAgaWYgKGNociA9PSAnLycgfHwgY2hyID09ICdcXFxcJykgc3RhdGUgPSBGSUxFX1NMQVNIO1xuICAgICAgICAgIGVsc2UgaWYgKGJhc2UgJiYgYmFzZS5zY2hlbWUgPT0gJ2ZpbGUnKSB7XG4gICAgICAgICAgICBpZiAoY2hyID09IEVPRikge1xuICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcjJykge1xuICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgICBzdGF0ZSA9IEZSQUdNRU5UO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgaWYgKCFzdGFydHNXaXRoV2luZG93c0RyaXZlTGV0dGVyKGpvaW4oYXJyYXlTbGljZShjb2RlUG9pbnRzLCBwb2ludGVyKSwgJycpKSkge1xuICAgICAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICAgIHVybC5zaG9ydGVuUGF0aCgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBGSUxFX1NMQVNIOlxuICAgICAgICAgIGlmIChjaHIgPT0gJy8nIHx8IGNociA9PSAnXFxcXCcpIHtcbiAgICAgICAgICAgIHN0YXRlID0gRklMRV9IT1NUO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChiYXNlICYmIGJhc2Uuc2NoZW1lID09ICdmaWxlJyAmJiAhc3RhcnRzV2l0aFdpbmRvd3NEcml2ZUxldHRlcihqb2luKGFycmF5U2xpY2UoY29kZVBvaW50cywgcG9pbnRlciksICcnKSkpIHtcbiAgICAgICAgICAgIGlmIChpc1dpbmRvd3NEcml2ZUxldHRlcihiYXNlLnBhdGhbMF0sIHRydWUpKSBwdXNoKHVybC5wYXRoLCBiYXNlLnBhdGhbMF0pO1xuICAgICAgICAgICAgZWxzZSB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICB9XG4gICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgIGNvbnRpbnVlO1xuXG4gICAgICAgIGNhc2UgRklMRV9IT1NUOlxuICAgICAgICAgIGlmIChjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICdcXFxcJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIGlmICghc3RhdGVPdmVycmlkZSAmJiBpc1dpbmRvd3NEcml2ZUxldHRlcihidWZmZXIpKSB7XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoYnVmZmVyID09ICcnKSB7XG4gICAgICAgICAgICAgIHVybC5ob3N0ID0gJyc7XG4gICAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlKSByZXR1cm47XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICAgIGlmIChmYWlsdXJlKSByZXR1cm4gZmFpbHVyZTtcbiAgICAgICAgICAgICAgaWYgKHVybC5ob3N0ID09ICdsb2NhbGhvc3QnKSB1cmwuaG9zdCA9ICcnO1xuICAgICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSkgcmV0dXJuO1xuICAgICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgfSBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2UgYnVmZmVyICs9IGNocjtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFBBVEhfU1RBUlQ6XG4gICAgICAgICAgaWYgKHVybC5pc1NwZWNpYWwoKSkge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgY2hyICE9ICdcXFxcJykgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgIT0gRU9GKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICBpZiAoY2hyICE9ICcvJykgY29udGludWU7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFBBVEg6XG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgY2hyID09IEVPRiB8fCBjaHIgPT0gJy8nIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpIHx8XG4gICAgICAgICAgICAoIXN0YXRlT3ZlcnJpZGUgJiYgKGNociA9PSAnPycgfHwgY2hyID09ICcjJykpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAoaXNEb3VibGVEb3QoYnVmZmVyKSkge1xuICAgICAgICAgICAgICB1cmwuc2hvcnRlblBhdGgoKTtcbiAgICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgIShjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoaXNTaW5nbGVEb3QoYnVmZmVyKSkge1xuICAgICAgICAgICAgICBpZiAoY2hyICE9ICcvJyAmJiAhKGNociA9PSAnXFxcXCcgJiYgdXJsLmlzU3BlY2lhbCgpKSkge1xuICAgICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsICcnKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgaWYgKHVybC5zY2hlbWUgPT0gJ2ZpbGUnICYmICF1cmwucGF0aC5sZW5ndGggJiYgaXNXaW5kb3dzRHJpdmVMZXR0ZXIoYnVmZmVyKSkge1xuICAgICAgICAgICAgICAgIGlmICh1cmwuaG9zdCkgdXJsLmhvc3QgPSAnJztcbiAgICAgICAgICAgICAgICBidWZmZXIgPSBjaGFyQXQoYnVmZmVyLCAwKSArICc6JzsgLy8gbm9ybWFsaXplIHdpbmRvd3MgZHJpdmUgbGV0dGVyXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcHVzaCh1cmwucGF0aCwgYnVmZmVyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgaWYgKHVybC5zY2hlbWUgPT0gJ2ZpbGUnICYmIChjaHIgPT0gRU9GIHx8IGNociA9PSAnPycgfHwgY2hyID09ICcjJykpIHtcbiAgICAgICAgICAgICAgd2hpbGUgKHVybC5wYXRoLmxlbmd0aCA+IDEgJiYgdXJsLnBhdGhbMF0gPT09ICcnKSB7XG4gICAgICAgICAgICAgICAgc2hpZnQodXJsLnBhdGgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoY2hyID09ICc/Jykge1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcjJykge1xuICAgICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgYnVmZmVyICs9IHBlcmNlbnRFbmNvZGUoY2hyLCBwYXRoUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIENBTk5PVF9CRV9BX0JBU0VfVVJMX1BBVEg6XG4gICAgICAgICAgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociAhPSBFT0YpIHtcbiAgICAgICAgICAgIHVybC5wYXRoWzBdICs9IHBlcmNlbnRFbmNvZGUoY2hyLCBDMENvbnRyb2xQZXJjZW50RW5jb2RlU2V0KTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgUVVFUlk6XG4gICAgICAgICAgaWYgKCFzdGF0ZU92ZXJyaWRlICYmIGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociAhPSBFT0YpIHtcbiAgICAgICAgICAgIGlmIChjaHIgPT0gXCInXCIgJiYgdXJsLmlzU3BlY2lhbCgpKSB1cmwucXVlcnkgKz0gJyUyNyc7XG4gICAgICAgICAgICBlbHNlIGlmIChjaHIgPT0gJyMnKSB1cmwucXVlcnkgKz0gJyUyMyc7XG4gICAgICAgICAgICBlbHNlIHVybC5xdWVyeSArPSBwZXJjZW50RW5jb2RlKGNociwgQzBDb250cm9sUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIEZSQUdNRU5UOlxuICAgICAgICAgIGlmIChjaHIgIT0gRU9GKSB1cmwuZnJhZ21lbnQgKz0gcGVyY2VudEVuY29kZShjaHIsIGZyYWdtZW50UGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICB9XG5cbiAgICAgIHBvaW50ZXIrKztcbiAgICB9XG4gIH0sXG4gIC8vI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dGF0ZSA9PT0gR2VuU3RhdGVTdXNwZW5kZWRTdGFydCkge1xuICAgICAgICAgICAgc3RhdGUgPSBHZW5TdGF0ZUNvbXBsZXRlZDtcbiAgICAgICAgICAgIHRocm93IGNvbnRleHQuYXJnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQuZGlzcGF0Y2hFeGNlcHRpb24oY29udGV4dC5hcmcpO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoY29udGV4dC5tZXRob2QgPT09IFwicmV0dXJuXCIpIHtcbiAgICAgICAgICBjb250ZXh0LmFicnVwdChcInJldHVyblwiLCBjb250ZXh0LmFyZyk7XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0ZSA9IEdlblN0YXRlRXhlY3V0aW5nO1xuXG4gICAgICAgIHZhciByZWNvcmQgPSB0cnlDYXRjaChpbm5lckZuLCBzZWxmLCBjb250ZXh0KTtcbiAgICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcIm5vcm1hbFwiKSB7XG4gICAgICAgICAgLy8gSWYgYW4gZXhjZXB0aW9uIGlzIHRocm93biBmcm9tIGlubmVyRm4sIHdlIGxlYXZlIHN0YXRlID09PVxuICAgICAgICAgIC8vIEdlblN0YXRlRXhlY3V0aW5nIGFuZCBsb29wIGJhY2sgZm9yIGFub3RoZXIgaW52b2NhdGlvbi5cbiAgICAgICAgICBzdGF0ZSA9IGNvbnRleHQuZG9uZVxuICAgICAgICAgICAgPyBHZW5TdGF0ZUNvbXBsZXRlZFxuICAgICAgICAgICAgOiBHZW5TdGF0ZVN1c3BlbmRlZFlpZWxkO1xuXG4gICAgICAgICAgaWYgKHJlY29yZC5hcmcgPT09IENvbnRpbnVlU2VudGluZWwpIHtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB2YWx1ZTogcmVjb3JkLmFyZyxcbiAgICAgICAgICAgIGRvbmU6IGNvbnRleHQuZG9uZ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G4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIHN0b3A6IGZ1bmN0aW9uKCkge1xuICAgICAgdGhpcy5kb25lID0gdHJ1ZTtcblxuICAgICAgdmFyIHJvb3RFbnRyeSA9IHRoaXMudHJ5RW50cmllc1swXTtcbiAgICAgIHZhciByb290UmVjb3JkID0gcm9vdEVudHJ5LmNvbXBsZXRpb247XG4gICAgICBpZiAocm9vdFJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgdGhyb3cgcm9vdFJlY29yZC5hcmc7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiB0aGlzLnJ2YWw7XG4gICAgfSxcblxuICAgIGRpc3BhdGNoRXhjZXB0aW9uOiBmdW5jdGlvbihleGNlcHRpb24pIHtcbiAgICAgIGlmICh0aGlzLmRvbmUpIHtcbiAgICAgICAgdGhyb3cgZXhjZXB0aW9uO1xuICAgICAgfVxuXG4gICAgICB2YXIgY29udGV4dCA9IHRoaXM7XG4gICAgICBmdW5jdGlvbiBoYW5kbGUobG9jLCBjYXVnaHQpIHtcbiAgICAgICAgcmVjb3JkLnR5cGUgPSBcInRocm93XCI7XG4gICAgICAgIHJlY29yZC5hcmcgPSBleGNlcHRpb247XG4gICAgICAgIGNvbnRleHQubmV4dCA9IGxvYztcblxuICAgICAgICBpZiAoY2F1Z2h0KSB7XG4gICAgICAgICAgLy8gSWYgdGhlIGRpc3BhdGNoZWQgZXhjZXB0aW9uIHdhcyBjYXVnaHQgYnkgYSBjYXRjaCBibG9jayxcbiAgICAgICAgICAvLyB0aGVuIGxldCB0aGF0IGNhdGNoIGJsb2NrIGhhbmRsZSB0aGUgZXhjZXB0aW9uIG5vcm1hbGx5LlxuICAgICAgICAgIGNvbnRleHQubWV0aG9kID0gXCJuZXh0XCI7XG4gICAgICAgICAgY29udGV4dC5hcmcgPSB1bmRlZmluZWQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gISEgY2F1Z2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MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNDYXRjaCkge1xuICAgICAgICAgICAgaWYgKHRoaXMucHJldiA8IGVudHJ5LmNhdGNoTG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuY2F0Y2hMb2MsIHRydWUpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNGaW5hbGx5KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5wcmV2IDwgZW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmZpbmFsbHlMb2MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInRyeSBzdGF0ZW1lbnQgd2l0aG91dCBjYXRjaCBvciBmaW5hbGx5XCIpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG5cbiAgICBhYnJ1cHQ6IGZ1bmN0aW9uKHR5cGUsIGFyZykge1xuICAgICAgZm9yICh2YXIgaSA9IHRoaXMudHJ5RW50cmllcy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICB2YXIgZW50cnkgPSB0aGlzLnRyeUVudHJpZXNbaV07XG4gICAgICAgIGlmIChlbnRyeS50cnlMb2MgPD0gdGhpcy5wcmV2ICYmXG4gICAgICAgICAgICBoYXNPd24uY2FsbChlbnRyeSwgXCJmaW5hbGx5TG9jXCIpICYmXG4gICAgICAgICAgICB0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgdmFyIGZpbmFsbHlFbnRyeSA9IGVudHJ5O1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChmaW5hbGx5RW50cnkgJiZcbiAgICAgICAgICAodHlwZSA9PT0gXCJicmVha1wiIHx8XG4gICAgICAgICAgIHR5cGUgPT09IFwiY29udGludWVcIikgJiZcbiAgICAgICAgICBmaW5hbGx5RW50cnkudHJ5TG9jIDw9IGFyZyAmJlxuICAgICAgICAgIGFyZyA8PSBmaW5hbGx5RW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAvLyBJZ25vcmUgdGhlIGZpbmFsbHkgZW50cnkgaWYgY29udHJvbCBpcyBub3QganVtcGluZyB0byBhXG4gICAgICAgIC8vIGxvY2F0aW9uIG91dHNpZGUgdGhlIHRyeS9jYXRjaCBibG9jay5cbiAgICAgICAgZmluYWxseUVudHJ5ID0gbnVsbDtcbiAgICAgIH1cblxuICAgICAgdmFyIHJlY29yZCA9IGZpbmFsbHlFbnRyeSA/IGZpbmFsbHlFbnRyeS5jb21wbGV0aW9uIDoge307XG4gICAgICByZWNvcmQudHlwZSA9IHR5cGU7XG4gICAgICByZWNvcmQuYXJnID0gYXJnO1xuXG4gICAgICBpZiAoZmluYWxseUVudHJ5KSB7XG4gICAgICAgIHRoaXMubWV0aG9kID0gXCJuZXh0XCI7XG4gICAgICAgIHRoaXMubmV4dCA9IGZpbmFsbHlFbnRyeS5maW5hbGx5TG9jO1xuICAgICAgICByZXR1cm4gQ29udGludWVTZW50aW5lbDtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIHRoaXMuY29tcGxldGUocmVjb3JkKTtcbiAgICB9LFxuXG4gICAgY29tcGxldGU6IGZ1bmN0aW9uKHJlY29yZCwgYWZ0ZXJMb2MpIHtcbiAgICAgIGlmIChyZWNvcmQudHlwZSA9PT0gXCJ0aHJvd1wiKSB7XG4gICAgICAgIHRocm93IHJlY29yZC5hcmc7XG4gICAgICB9XG5cbiAgICAgIGlmIChyZWNvcmQudHlwZSA9PT0gXCJicmVha1wiIHx8XG4gICAgICAgICAgcmVjb3JkLnR5cGUgPT09IFwiY29udGludWVcIikge1xuICAgICAgICB0aGlzLm5leHQgPSByZWNvcmQuYXJnO1xuICAgIC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GVtcyIsImRpc3BsYXlJdGVtIiwidGV4dENvbnRlbnQiLCJhcHBlbmRDb3VudCIsImxpc3RDb21tZW50IiwibGlzdEl0ZW0iLCJjcmVhdGVFbGVtZW50IiwiZGlzcGxheUl0ZW1zIiwiYXBwZW5kIiwibGlzdEh0bWwiLCJhcHBlbmRMaXN0SXRlbSIsImNsYXNzTGlzdCIsImFkZCIsImxpa2VMaXN0ZW5lciIsInBvcHVwSW5pdCIsImdldERpc3BsYXlJdGVtcyIsImdldExpa2VzIiwiZGlzcGxheUxlc3MiLCJsaXN0Iiwic2xpY2UiLCJyZW1vdmUiLCJhZGRMaWtlTGlzdGVuZXIiLCJoZWFydCIsImxpa2UiLCJoZWFydHMiLCJsb2FkTW9yZSIsInNob3dMZXNzIiwibGVzcyIsInNlbGVjdG9yQWxsIiwiY29ubmVjdG9yIiwiZWxlbWVudCIsImNvbnRhaW5zIiwidGFyZ2V0IiwicG9rZW1vbiIsInNyYyIsImdldENvbW1lbnRzIiwiY29tbWVudHMiXSwic291cmNlUm9vdCI6IiJ9 \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 9ca1235..7481c68 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,78 +8,7 @@ -
-
- -
- -
-
- -
-
    -
    - - -
    -
    - - - - -
    - + +
    diff --git a/src/index.html b/src/index.html index 737fd24..d1535ef 100644 --- a/src/index.html +++ b/src/index.html @@ -8,78 +8,9 @@ -
    -
    - -
    - -
    -
    - -
    -
      -
      - - -
      -
      - - - - + +
      +
        -
        Created by Matovu Farid Nkoba and Jihanne under MIT licence
        diff --git a/src/style.css b/src/style.css index 1fc2ef4..eac4c1d 100644 --- a/src/style.css +++ b/src/style.css @@ -3,7 +3,6 @@ * { margin: 0; padding: 0; - box-sizing: border-box; } body { @@ -15,6 +14,14 @@ body { font-size: 10px; } +aside { + width: 30%; + box-sizing: border-box; + height: 100vh; + background-color: antiquewhite; +} + +/* body * { font-size: 1.2rem; } @@ -130,8 +137,6 @@ li { transform: scale(1.12, 1.1); } -/*** POPUP *****/ - .pokemon-section { margin: 50px; } @@ -285,8 +290,6 @@ form textarea { margin: 20px 0; } -/*** POPUP *****/ - #display-items { display: grid; width: 100%; @@ -413,3 +416,5 @@ form textarea { top: 50%; } } + +*/ From de298baad2c4f8340e94a45546f1ccc941946084 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 11:58:29 +0100 Subject: [PATCH 02/42] Remove linters --- .github/workflows/linters.yml | 62 ----------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/linters.yml diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml deleted file mode 100644 index 73fbd05..0000000 --- a/.github/workflows/linters.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Linters - -on: pull_request - -env: - FORCE_COLOR: 1 - -jobs: - lighthouse: - name: Lighthouse - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup Lighthouse - run: npm install -g @lhci/cli@0.7.x - - name: Lighthouse Report - run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. - webhint: - name: Webhint - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup Webhint - run: | - npm install --save-dev hint@6.x - [ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc - - name: Webhint Report - run: npx hint . - stylelint: - name: Stylelint - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup Stylelint - run: | - npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x - [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json - - name: Stylelint Report - run: npx stylelint "**/*.{css,scss}" - eslint: - name: ESLint - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup ESLint - run: | - npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x - [ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json - - name: ESLint Report - run: npx eslint . \ No newline at end of file From 75fa9d148cd8be15b9f6ebfa68f6bbe641fa28a8 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 11:59:49 +0100 Subject: [PATCH 03/42] Add linter --- .github/workflows/linters.yml | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/linters.yml diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..c7ae701 --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,62 @@ +name: Linters + +on: pull_request + +env: + FORCE_COLOR: 1 + +jobs: + lighthouse: + name: Lighthouse + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Setup Lighthouse + run: npm install -g @lhci/cli@0.7.x + - name: Lighthouse Report + run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. + webhint: + name: Webhint + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Setup Webhint + run: | + npm install --save-dev hint@6.x + [ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc + - name: Webhint Report + run: npx hint . + stylelint: + name: Stylelint + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Setup Stylelint + run: | + npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x + [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json + - name: Stylelint Report + run: npx stylelint "**/*.{css,scss}" + eslint: + name: ESLint + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Setup ESLint + run: | + npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x + [ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json + - name: ESLint Report + run: npx eslint . From 341576b5d9b20cb64e92b8fe3f0cb6d2e3c4a027 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 12:52:47 +0100 Subject: [PATCH 04/42] Add App.js the entry point of the project --- src/modules/app.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/modules/app.js diff --git a/src/modules/app.js b/src/modules/app.js new file mode 100644 index 0000000..535ba39 --- /dev/null +++ b/src/modules/app.js @@ -0,0 +1,39 @@ +import api from './api'; +import { appendListItem } from './create_listhtml'; + +/* import './like_listener'; +import './load_pokemon'; +import './like_listener'; +import './load_pokemon'; + +import likeListener from './like_listener'; +import appendNoOFLikes from './append_no_of_likes'; +import { appendCount } from './counter'; +import { popupInit } from './popup'; +*/ +export const displayItems = async () => { + const displayItems = await api.getDisplayItems(); + displayItems.forEach(appendListItem); + /* appendCount(); + popupInit(api); + likeListener(); + const likes = await api.getLikes(); + appendNoOFLikes(likes); + */ +}; + +/* +export const displayLess = async () => { + if (api.POCKEMON_COUNT > 6) { + api.POCKEMON_COUNT -= 6; + const list = document.querySelectorAll('#display-items>li'); + + Array.from(list) + .slice(list.length - 6, list.length) + .forEach((node) => node.remove()); + appendCount(); + } +}; +*/ + +export default displayItems; From 49d03b0969ce2a9f121046297acf27d34e3ecd96 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 12:56:00 +0100 Subject: [PATCH 05/42] Update link to App --- src/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 859e3ed..5f5e6aa 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,7 @@ import 'core-js/stable'; import 'regenerator-runtime/runtime'; import './style.css'; -import './modules/popup.js'; -import './modules/display_list_items'; -import './modules/like_listener'; -import './modules/comment'; -import './modules/load_pokemon'; + +import { displayItems } from './modules/app'; + +displayItems(); From ef9ff501595e40fd300f75650c0426f58041ba7e Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 12:56:41 +0100 Subject: [PATCH 06/42] Create const for nb pokemon loaded --- src/modules/api.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/modules/api.js b/src/modules/api.js index a2002d6..2fc2e20 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -3,13 +3,13 @@ export class Api { APP_URL = 'https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/apps/'; - APP_NAME ='Pokemon_Farid_Jihane' + APP_NAME = 'Pokemon_Farid_Jihane'; - APP_ID = 'EtP7GW5T9AWxrJLgrSBm' + APP_ID = 'EtP7GW5T9AWxrJLgrSBm'; COMMENT_URL = 'https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/apps/EtP7GW5T9AWxrJLgrSBm/comments'; - POCKEMON_COUNT = 0 + POCKEMON_COUNT = 0; #fetchPockemon = async (url) => { const result = {}; @@ -22,11 +22,16 @@ export class Api { return result; }; + NB_POKEMON_LOAD = 20; + getDisplayItems = async () => { const promises = []; - Array.from(Array(6).keys()) - .forEach((i) => promises.push(this.getPokemonFromId(i + 1 + this.POCKEMON_COUNT))); - this.POCKEMON_COUNT += 6; + Array.from(Array( + this.NB_POKEMON_LOAD, + ).keys()).forEach( + (i) => promises.push(this.getPokemonFromId(i + 1 + this.POCKEMON_COUNT)), + ); + this.POCKEMON_COUNT += this.NB_POKEMON_LOAD; const items = await Promise.all(promises); return items; }; @@ -41,9 +46,9 @@ export class Api { return this.#fetchDataArray(url); }; - likeUrl =() => `${this.APP_URL}${this.APP_ID}/likes/` + likeUrl = () => `${this.APP_URL}${this.APP_ID}/likes/`; - #fetchDataArray=async (url) => { + #fetchDataArray = async (url) => { const response = await fetch(url); if ((response.status && response.status === 500) || response.status === 400) { return []; @@ -51,7 +56,7 @@ export class Api { const data = await response.json(); return data.error ? [] : data; - } + }; getLikes = () => this.#fetchDataArray(this.likeUrl()); @@ -72,7 +77,7 @@ export class Api { }); const text = await response.text(); return text; - } + }; registerNewApp = async () => { const response = await fetch(this.APP_URL, { From d0acccf3b863d880410cb75b08e8691a94eee4a5 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 12:57:16 +0100 Subject: [PATCH 07/42] Comment temporary non use code --- src/modules/create_listhtml.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/create_listhtml.js b/src/modules/create_listhtml.js index b30edf7..675f147 100644 --- a/src/modules/create_listhtml.js +++ b/src/modules/create_listhtml.js @@ -1,11 +1,13 @@ export const listHtml = (result) => ` - image -

        ${result.name} -

        - - +

        ${result.name}

        + image `; +/* +

        + + + */ export const appendListItem = (result) => { const listItem = document.createElement('li'); listItem.innerHTML = listHtml(result); From ff0acae047d6fd3254f4ea25020341d003438277 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:00:57 +0100 Subject: [PATCH 08/42] Add style for loaded pokemon --- dist/bundle.js | 513 ++++++------------------------------------------ dist/index.html | 4 +- src/index.html | 4 +- src/style.css | 52 +++++ 4 files changed, 118 insertions(+), 455 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index a4634e5..e22c434 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -98,6 +98,8 @@ var Api = /*#__PURE__*/_createClass(function Api() { }() }); + _defineProperty(this, "NB_POKEMON_LOAD", 20); + _defineProperty(this, "getDisplayItems", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() { var promises, items; return regeneratorRuntime.wrap(function _callee2$(_context2) { @@ -105,10 +107,10 @@ var Api = /*#__PURE__*/_createClass(function Api() { switch (_context2.prev = _context2.next) { case 0: promises = []; - Array.from(Array(6).keys()).forEach(function (i) { + Array.from(Array(_this.NB_POKEMON_LOAD).keys()).forEach(function (i) { return promises.push(_this.getPokemonFromId(i + 1 + _this.POCKEMON_COUNT)); }); - _this.POCKEMON_COUNT += 6; + _this.POCKEMON_COUNT += _this.NB_POKEMON_LOAD; _context2.next = 5; return Promise.all(promises); @@ -352,113 +354,58 @@ var api = new Api(); /***/ }), -/***/ "./src/modules/append_no_of_likes.js": -/*!*******************************************!*\ - !*** ./src/modules/append_no_of_likes.js ***! - \*******************************************/ +/***/ "./src/modules/app.js": +/*!****************************!*\ + !*** ./src/modules/app.js ***! + \****************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "displayItems": () => (/* binding */ displayItems), /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); -var appendNoOFLike = function appendNoOFLike(id, likeNumber) { - document.querySelector("#likes-".concat(id)).innerHTML = "".concat(likeNumber, " likes"); -}; - -var appendNoOFLikes = function appendNoOFLikes() { - var likesArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - document.querySelectorAll('.like').forEach(function (node) { - var id = node.id.match(/\d+/)[0]; - var obj = likesArray.find(function (obj) { - return obj.item_id === id; - }); - - if (obj) { - var likes = obj.likes; - appendNoOFLike(id, likes); - } - }); -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (appendNoOFLikes); - -/***/ }), - -/***/ "./src/modules/comment.js": -/*!********************************!*\ - !*** ./src/modules/comment.js ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _tools_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tools.js */ "./src/modules/tools.js"); -/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api */ "./src/modules/api.js"); -/* harmony import */ var _create_listcomment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create_listcomment */ "./src/modules/create_listcomment.js"); -/* harmony import */ var _counter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./counter */ "./src/modules/counter.js"); +/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api */ "./src/modules/api.js"); +/* harmony import */ var _create_listhtml__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create_listhtml */ "./src/modules/create_listhtml.js"); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +/* import './like_listener'; +import './load_pokemon'; +import './like_listener'; +import './load_pokemon'; +import likeListener from './like_listener'; +import appendNoOFLikes from './append_no_of_likes'; +import { appendCount } from './counter'; +import { popupInit } from './popup'; +*/ -var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); -(0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form').addEventListener('submit', /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(event) { - var today, commentsDiv; +var displayItems = /*#__PURE__*/function () { + var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { + var displayItems; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: - event.preventDefault(); - - if (!(form.username.value.trim() === '')) { - _context.next = 6; - break; - } - - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('small').innerHTML = 'Please provide your name'; - form.username.focus(); - _context.next = 20; - break; - - case 6: - if (!(form.comment.value.trim() === '')) { - _context.next = 11; - break; - } - - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('small').innerHTML = 'Please provide a message'; - form.comment.focus(); - _context.next = 20; - break; - - case 11: - _context.next = 13; - return _api__WEBPACK_IMPORTED_MODULE_1__["default"].addComment(form.idPokemon.value, form.username.value, form.comment.value); - - case 13: - today = new Date(); - - if ((0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML === 'No comment yet.') { - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML = ''; - } + _context.next = 2; + return _api__WEBPACK_IMPORTED_MODULE_0__["default"].getDisplayItems(); - (0,_create_listcomment__WEBPACK_IMPORTED_MODULE_2__.appendCommentItem)({ - creation_date: "".concat(today.getFullYear(), "-").concat(String(today.getMonth() + 1).padStart(2, '0'), "-").concat(String(today.getDate()).padStart(2, '0')), - username: form.username.value, - comment: form.comment.value - }); - (0,_counter__WEBPACK_IMPORTED_MODULE_3__.appendCountComment)(); - form.reset(); - commentsDiv = document.querySelector('.pokemon-comments'); - commentsDiv.scroll(0, commentsDiv.scrollHeight); + case 2: + displayItems = _context.sent; + displayItems.forEach(_create_listhtml__WEBPACK_IMPORTED_MODULE_1__.appendListItem); + /* appendCount(); + popupInit(api); + likeListener(); + const likes = await api.getLikes(); + appendNoOFLikes(likes); + */ - case 20: + case 4: case "end": return _context.stop(); } @@ -466,63 +413,25 @@ var form = (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('form'); }, _callee); })); - return function (_x) { + return function displayItems() { return _ref.apply(this, arguments); }; -}()); - -/***/ }), - -/***/ "./src/modules/counter.js": -/*!********************************!*\ - !*** ./src/modules/counter.js ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "appendCount": () => (/* binding */ appendCount), -/* harmony export */ "appendCountComment": () => (/* binding */ appendCountComment) -/* harmony export */ }); -var getCount = function getCount(selector) { - return document.querySelectorAll(selector).length; -}; - -var countAndDisplay = function countAndDisplay(countItems, displayItem) { - document.querySelector(displayItem).textContent = "(".concat(getCount(countItems), ")"); -}; +}(); +/* +export const displayLess = async () => { + if (api.POCKEMON_COUNT > 6) { + api.POCKEMON_COUNT -= 6; + const list = document.querySelectorAll('#display-items>li'); -var appendCount = function appendCount() { - countAndDisplay('#display-items > li', '#count'); -}; -var appendCountComment = function appendCountComment() { - countAndDisplay('.pokemon-comments > li', '#nb-comments'); + Array.from(list) + .slice(list.length - 6, list.length) + .forEach((node) => node.remove()); + appendCount(); + } }; +*/ -/***/ }), - -/***/ "./src/modules/create_listcomment.js": -/*!*******************************************!*\ - !*** ./src/modules/create_listcomment.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "listComment": () => (/* binding */ listComment), -/* harmony export */ "appendCommentItem": () => (/* binding */ appendCommentItem) -/* harmony export */ }); -var listComment = function listComment(comment) { - return "".concat(comment.creation_date, " ").concat(comment.username, " : ").concat(comment.comment, " "); -}; -var appendCommentItem = function appendCommentItem(comment) { - var listItem = document.createElement('li'); - listItem.innerHTML = listComment(comment); - var displayItems = document.querySelector('.pokemon-comments'); - displayItems.append(listItem); -}; +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (displayItems); /***/ }), @@ -539,8 +448,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ "appendListItem": () => (/* binding */ appendListItem) /* harmony export */ }); var listHtml = function listHtml(result) { - return "\n \"image\"\n

        ").concat(result.name, " \n

        \n

        \n \n "); + return "\n

        ").concat(result.name, "

        \n \"image\" \n "); }; +/* + +

        + + + */ + var appendListItem = function appendListItem(result) { var _listItem$classList; @@ -555,306 +471,6 @@ var appendListItem = function appendListItem(result) { /***/ }), -/***/ "./src/modules/display_list_items.js": -/*!*******************************************!*\ - !*** ./src/modules/display_list_items.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "displayItems": () => (/* binding */ displayItems), -/* harmony export */ "displayLess": () => (/* binding */ displayLess), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _like_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./like_listener */ "./src/modules/like_listener.js"); -/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api */ "./src/modules/api.js"); -/* harmony import */ var _append_no_of_likes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./append_no_of_likes */ "./src/modules/append_no_of_likes.js"); -/* harmony import */ var _counter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./counter */ "./src/modules/counter.js"); -/* harmony import */ var _create_listhtml__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create_listhtml */ "./src/modules/create_listhtml.js"); -/* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./popup */ "./src/modules/popup.js"); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - - - -var displayItems = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { - var displayItems, likes; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return _api__WEBPACK_IMPORTED_MODULE_1__["default"].getDisplayItems(); - - case 2: - displayItems = _context.sent; - displayItems.forEach(_create_listhtml__WEBPACK_IMPORTED_MODULE_4__.appendListItem); - (0,_counter__WEBPACK_IMPORTED_MODULE_3__.appendCount)(); - (0,_popup__WEBPACK_IMPORTED_MODULE_5__.popupInit)(_api__WEBPACK_IMPORTED_MODULE_1__["default"]); - (0,_like_listener__WEBPACK_IMPORTED_MODULE_0__["default"])(); - _context.next = 9; - return _api__WEBPACK_IMPORTED_MODULE_1__["default"].getLikes(); - - case 9: - likes = _context.sent; - (0,_append_no_of_likes__WEBPACK_IMPORTED_MODULE_2__["default"])(likes); - - case 11: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - - return function displayItems() { - return _ref.apply(this, arguments); - }; -}(); -displayItems(); -var displayLess = /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() { - var list; - return regeneratorRuntime.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - if (_api__WEBPACK_IMPORTED_MODULE_1__["default"].POCKEMON_COUNT > 6) { - _api__WEBPACK_IMPORTED_MODULE_1__["default"].POCKEMON_COUNT -= 6; - list = document.querySelectorAll('#display-items>li'); - Array.from(list).slice(list.length - 6, list.length).forEach(function (node) { - return node.remove(); - }); - (0,_counter__WEBPACK_IMPORTED_MODULE_3__.appendCount)(); - } - - case 1: - case "end": - return _context2.stop(); - } - } - }, _callee2); - })); - - return function displayLess() { - return _ref2.apply(this, arguments); - }; -}(); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (displayItems); - -/***/ }), - -/***/ "./src/modules/like_listener.js": -/*!**************************************!*\ - !*** ./src/modules/like_listener.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api */ "./src/modules/api.js"); -/* harmony import */ var _append_no_of_likes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./append_no_of_likes */ "./src/modules/append_no_of_likes.js"); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - -var addLikeListener = function addLikeListener(heart, id) { - heart.addEventListener('click', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { - var likes; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return _api__WEBPACK_IMPORTED_MODULE_0__["default"].like(id); - - case 2: - _context.next = 4; - return _api__WEBPACK_IMPORTED_MODULE_0__["default"].getLikes(); - - case 4: - likes = _context.sent; - (0,_append_no_of_likes__WEBPACK_IMPORTED_MODULE_1__["default"])(likes); - - case 6: - case "end": - return _context.stop(); - } - } - }, _callee); - }))); -}; - -var likeListener = function likeListener() { - var hearts = document.querySelectorAll('.heart'); - hearts.forEach(function (heart) { - var id = heart.id.match(/\d+/)[0]; - addLikeListener(heart, id); - }); -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (likeListener); - -/***/ }), - -/***/ "./src/modules/load_pokemon.js": -/*!*************************************!*\ - !*** ./src/modules/load_pokemon.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _display_list_items__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./display_list_items */ "./src/modules/display_list_items.js"); - - -var loadMore = function loadMore() { - var loadMore = document.querySelector('#load-more'); - loadMore.addEventListener('click', function () { - (0,_display_list_items__WEBPACK_IMPORTED_MODULE_0__.displayItems)(); - }); -}; - -loadMore(); - -var showLess = function showLess() { - var less = document.querySelector('#show-less'); - less.addEventListener('click', function () { - (0,_display_list_items__WEBPACK_IMPORTED_MODULE_0__.displayLess)(); - }); -}; - -showLess(); - -/***/ }), - -/***/ "./src/modules/popup.js": -/*!******************************!*\ - !*** ./src/modules/popup.js ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "popupInit": () => (/* binding */ popupInit), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _tools_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tools.js */ "./src/modules/tools.js"); -/* harmony import */ var _create_listcomment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create_listcomment */ "./src/modules/create_listcomment.js"); -/* harmony import */ var _counter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./counter */ "./src/modules/counter.js"); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - -var popupInit = function popupInit(connector) { - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selectorAll)('button[id^="comment-"]').forEach(function (element) { - element.addEventListener('click', /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(event) { - var idPokemon, pokemon, comments; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - if (!(0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-modal').classList.contains('popup-hidden')) { - _context.next = 19; - break; - } - - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('body').classList.add('popup-open'); - idPokemon = event.target.id.match(/\d+/g)[0]; - _context.next = 5; - return connector.getPokemonFromId(idPokemon); - - case 5: - pokemon = _context.sent; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('#pokemon_name').innerHTML = pokemon.name; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('#pokemon_image').src = pokemon.url; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('#pokemon_height').innerHTML = pokemon.height; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('#pokemon_weight').innerHTML = pokemon.weight; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('#idPokemon').value = idPokemon; - _context.next = 13; - return connector.getComments(idPokemon); - - case 13: - comments = _context.sent; - - if (comments.length > 0) { - comments.forEach(_create_listcomment__WEBPACK_IMPORTED_MODULE_1__.appendCommentItem); - } else { - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML = 'No comment yet.'; - } - - (0,_counter__WEBPACK_IMPORTED_MODULE_2__.appendCountComment)(); - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-modal').classList.remove('popup-hidden'); - _context.next = 22; - break; - - case 19: - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.pokemon-comments').innerHTML = ''; - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('body').classList.remove('popup-open'); - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-modal').classList.add('popup-hidden'); - - case 22: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - - return function (_x) { - return _ref.apply(this, arguments); - }; - }()); - }); - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-close').addEventListener('click', function () { - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('body').classList.remove('popup-open'); - (0,_tools_js__WEBPACK_IMPORTED_MODULE_0__.selector)('.popup-modal').classList.add('popup-hidden'); - }); -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (popupInit); - -/***/ }), - -/***/ "./src/modules/tools.js": -/*!******************************!*\ - !*** ./src/modules/tools.js ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "selector": () => (/* binding */ selector), -/* harmony export */ "selectorAll": () => (/* binding */ selectorAll) -/* harmony export */ }); -var selector = function selector(element) { - return document.querySelector(element); -}; -var selectorAll = function selectorAll(element) { - return document.querySelectorAll(element); -}; - -/***/ }), - /***/ "./node_modules/core-js/internals/a-callable.js": /*!******************************************************!*\ !*** ./node_modules/core-js/internals/a-callable.js ***! @@ -18773,7 +18389,7 @@ __webpack_require__.r(__webpack_exports__); var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); ___CSS_LOADER_EXPORT___.push([module.id, "@import url(https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap);"]); // Module -___CSS_LOADER_EXPORT___.push([module.id, "* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n", "",{"version":3,"sources":["webpack://./src/style.css"],"names":[],"mappings":"AAEA;EACE,SAAS;EACT,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,aAAa;EACb,yBAAyB;EACzB,cAAc;EACd,uCAAuC;EACvC,eAAe;AACjB;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6YC","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');\n\n* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n"],"sourceRoot":""}]); +___CSS_LOADER_EXPORT___.push([module.id, "* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\nmain {\n display: flex;\n}\n\nmain section {\n padding-top: 15px;\n}\n\n#display-items {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n list-style: none;\n box-sizing: border-box;\n}\n\n#display-items li {\n width: 20%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 2;\n box-sizing: border-box;\n}\n\n#display-items li img {\n width: 100%;\n max-width: 100px;\n filter: grayscale(100%);\n transition: filter 500ms;\n}\n\n#display-items li:hover img {\n filter: grayscale(0%);\n}\n\n#display-items li:hover {\n box-shadow: 1px 1px 10px #ccba59;\n border-radius: 10px;\n}\n\n.pokemon-name {\n color: white;\n opacity: 0;\n transition: opacity 500ms;\n}\n\n#display-items li:hover .pokemon-name {\n opacity: 1;\n}\n\naside {\n width: 30%;\n box-sizing: border-box;\n height: 100vh;\n background-color: antiquewhite;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n", "",{"version":3,"sources":["webpack://./src/style.css"],"names":[],"mappings":"AAEA;EACE,SAAS;EACT,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,aAAa;EACb,yBAAyB;EACzB,cAAc;EACd,uCAAuC;EACvC,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,eAAe;EACf,uBAAuB;EACvB,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA;EACE,UAAU;EACV,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,uBAAuB;EACvB,wBAAwB;AAC1B;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,gCAAgC;EAChC,mBAAmB;AACrB;;AAEA;EACE,YAAY;EACZ,UAAU;EACV,yBAAyB;AAC3B;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,sBAAsB;EACtB,aAAa;EACb,8BAA8B;AAChC;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4YC","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');\n\n* {\n margin: 0;\n padding: 0;\n}\n\nbody {\n width: 100%;\n height: 100vh;\n background-color: #302e37;\n color: #c1c7d0;\n font-family: 'Nanum Gothic', sans-serif;\n font-size: 10px;\n}\n\nmain {\n display: flex;\n}\n\nmain section {\n padding-top: 15px;\n}\n\n#display-items {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n list-style: none;\n box-sizing: border-box;\n}\n\n#display-items li {\n width: 20%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 2;\n box-sizing: border-box;\n}\n\n#display-items li img {\n width: 100%;\n max-width: 100px;\n filter: grayscale(100%);\n transition: filter 500ms;\n}\n\n#display-items li:hover img {\n filter: grayscale(0%);\n}\n\n#display-items li:hover {\n box-shadow: 1px 1px 10px #ccba59;\n border-radius: 10px;\n}\n\n.pokemon-name {\n color: white;\n opacity: 0;\n transition: opacity 500ms;\n}\n\n#display-items li:hover .pokemon-name {\n opacity: 1;\n}\n\naside {\n width: 30%;\n box-sizing: border-box;\n height: 100vh;\n background-color: antiquewhite;\n}\n\n/*\nbody * {\n font-size: 1.2rem;\n}\n\nbody.popup-open {\n overflow: hidden;\n}\n\nh1 {\n display: inline;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\n#count {\n color: hotpink;\n}\n\nfooter {\n text-indent: 20px;\n width: 100%;\n margin: 0;\n padding: 40px 0;\n border-top: 2px solid #3d3d3d;\n border-bottom: 2px solid #3d3d3d;\n position: relative;\n bottom: 0;\n margin-top: 100px;\n text-align: center;\n}\n\nmain > header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 0;\n width: 100%;\n position: sticky;\n top: 0;\n background-color: #302e37;\n box-shadow: rgb(37, 36, 36) 0 5px 5px;\n z-index: 2;\n}\n\nbutton {\n border: none;\n cursor: pointer;\n padding: 5px 0;\n border-radius: 5px;\n filter: invert(80%);\n transition: 250ms filter ease-in;\n}\n\nbutton:hover {\n filter: invert(20%);\n}\n\nul {\n list-style: none;\n display: flex;\n}\n\nli {\n padding-right: 10px;\n}\n\n.logo {\n width: 200px;\n object-fit: contain;\n}\n\n.date {\n font-size: smaller;\n color: antiquewhite;\n}\n\n.username {\n color: aquamarine;\n font-weight: bold;\n}\n\n.pokemon-name {\n padding: 5px 0;\n}\n\n.pokemon-characteristics i {\n font-size: xx-large;\n}\n\n.card {\n border-radius: 10%;\n box-shadow: #c2bfbf 0 0 20px;\n padding: 15px 30px;\n transform: scale(1);\n transition: 250ms transform ease-in;\n animation: slide-in ease-out 250ms 1;\n}\n\n@keyframes slide-in {\n 0% {\n transform: scaleX(0);\n }\n\n 100% {\n transform: scaleX(1);\n }\n}\n\n.card:hover {\n transform: scale(1.12, 1.1);\n}\n\n.pokemon-section {\n margin: 50px;\n}\n\n.popup-hidden {\n display: none;\n}\n\n.popup-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow-y: scroll;\n z-index: 999;\n background: #171618;\n border-radius: 16px;\n padding: 30px;\n padding-top: 10px;\n color: #fc0;\n color: white;\n}\n\n.popup-modal::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-datas {\n display: flex;\n flex-direction: column;\n}\n\n.popup-pokemon {\n text-align: center;\n}\n\n.pokemon-characteristics {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n border-radius: 10px;\n margin: 26px;\n color: white;\n font-size: 20px;\n align-content: center;\n align-items: center;\n justify-content: center;\n list-style: none;\n height: 201px;\n}\n\n.pokemon-characteristics,\n.pokemon-comments,\n.popup-close {\n display: flex;\n justify-content: end;\n}\n\n.pokemon-characteristics li span {\n margin: 10px;\n}\n\n.popup-image {\n text-align: center;\n margin: 20px 0;\n border-radius: 8px;\n}\n\n.popup-image img {\n max-width: 300px;\n}\n\nh4 {\n margin: 20px 0 10px 0;\n text-align: left;\n}\n\n.pokemon-comments {\n border-radius: 10px;\n margin: 6px;\n display: flex;\n justify-content: center;\n font-size: 16px;\n background: #302e37;\n height: 100px;\n overflow: scroll;\n}\n\n.pokemon-comments li {\n margin: 5px;\n}\n\n.pokemon-characteristics li {\n margin: 20px;\n}\n\n.pokemon-characteristics li:nth-child(odd) {\n color: yellow;\n}\n\n.pokemon-characteristics,\n.pokemon-comments {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.pokemon-comments::-webkit-scrollbar {\n width: 0;\n}\n\n.popup-modal i {\n font-size: 40px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\nform input,\nform textarea {\n margin: 5px;\n width: 300px;\n font-size: 14px;\n line-height: 20px;\n border-radius: 5px;\n border: 1px solid cadetblue;\n padding: 10px;\n}\n\n.add-comment-form button {\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n border: 1px solid cadetblue;\n margin: 5px;\n}\n\n.popup-close {\n display: flex;\n justify-content: end;\n position: fixed;\n right: 30px;\n}\n\n.popup-pokemon h3 {\n font-size: 30px;\n margin: 20px 0;\n}\n\n#display-items {\n display: grid;\n width: 100%;\n max-width: 800px;\n grid-template-columns: 1fr;\n grid-gap: 10px;\n align-items: center;\n}\n\n.centered-column {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n#display-items img {\n height: 150px;\n object-fit: contain;\n margin-bottom: 10px;\n}\n\n#display-items button {\n width: 100px;\n}\n\n.no-display {\n display: none;\n}\n\n.heart {\n color: hotpink;\n cursor: pointer;\n}\n\n.like {\n font-size: 0.8rem;\n}\n\n#load-buttons {\n margin: 10px;\n display: flex;\n width: 300px;\n justify-content: space-between;\n}\n\n#load-buttons > button {\n filter: invert(20%);\n padding: 5px 5px;\n}\n\n@media (min-width: 750px) {\n header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n #display-items {\n grid-template-columns: 250px 250px 250px;\n }\n\n #load-buttons {\n margin: 0;\n width: 100%;\n }\n\n .pokemon-characteristics {\n height: auto;\n }\n\n .popup-close {\n right: 120px;\n cursor: pointer;\n }\n\n .popup-modal {\n top: 100px;\n left: 100px;\n right: 100px;\n bottom: 100px;\n }\n\n .pokemon-characteristics i {\n font-size: 25px;\n margin: 10px;\n }\n\n .pokemon-characteristics li {\n margin: 5px;\n display: flex;\n justify-content: space-around;\n width: 100%;\n }\n\n .popup-image {\n flex-grow: 2;\n }\n\n .popup-pokemon {\n display: flex;\n align-items: center;\n }\n\n .popup-hidden {\n display: none;\n }\n\n form {\n flex-direction: row;\n }\n}\n\n@media (min-width: 1100px) {\n #show-less {\n position: fixed;\n left: 7.5%;\n top: 50%;\n }\n\n #load-more {\n position: fixed;\n right: 7.5%;\n top: 50%;\n }\n}\n\n*/\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -20148,21 +19764,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js"); /* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _style_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.css */ "./src/style.css"); -/* harmony import */ var _modules_popup_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/popup.js */ "./src/modules/popup.js"); -/* harmony import */ var _modules_display_list_items__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modules/display_list_items */ "./src/modules/display_list_items.js"); -/* harmony import */ var _modules_like_listener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modules/like_listener */ "./src/modules/like_listener.js"); -/* harmony import */ var _modules_comment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modules/comment */ "./src/modules/comment.js"); -/* harmony import */ var _modules_load_pokemon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modules/load_pokemon */ "./src/modules/load_pokemon.js"); - - - - +/* harmony import */ var _modules_app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/app */ "./src/modules/app.js"); +(0,_modules_app__WEBPACK_IMPORTED_MODULE_3__.displayItems)(); })(); /******/ })() ; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQU8sSUFBTUEsR0FBYjtBQUFBOztBQUFBOztBQUFBLHVDQUNnQix1REFEaEI7O0FBQUEsbUNBR1ksMEVBSFo7O0FBQUEsb0NBS1ksc0JBTFo7O0FBQUEsa0NBT1csc0JBUFg7O0FBQUEsdUNBU2dCLHVHQVRoQjs7QUFBQSwwQ0FXbUIsQ0FYbkI7O0FBQUE7QUFBQTtBQUFBO0FBQUEsMkVBYW1CLGlCQUFPQyxHQUFQO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNUQyxnQkFBQUEsTUFEUyxHQUNBLEVBREE7QUFBQTtBQUFBLHVCQUVXQyxLQUFLLENBQUNGLEdBQUQsQ0FGaEI7O0FBQUE7QUFBQTtBQUFBLHFDQUV1QkcsSUFGdkI7O0FBQUE7QUFFVEMsZ0JBQUFBLElBRlM7QUFHZkgsZ0JBQUFBLE1BQU0sQ0FBQ0QsR0FBUCxHQUFhSSxJQUFJLENBQUNDLE9BQUwsQ0FBYUMsS0FBYixDQUFtQkMsV0FBbkIsQ0FBK0JDLGFBQTVDO0FBQ0FQLGdCQUFBQSxNQUFNLENBQUNRLEVBQVAsR0FBWUwsSUFBSSxDQUFDSyxFQUFqQjtBQUNBUixnQkFBQUEsTUFBTSxDQUFDUyxJQUFQLEdBQWNOLElBQUksQ0FBQ00sSUFBbkI7QUFDQVQsZ0JBQUFBLE1BQU0sQ0FBQ1UsTU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ZiAobnVtYmVyIDw9IC0xZTIxIHx8IG51bWJlciA+PSAxZTIxKSByZXR1cm4gU3RyaW5nKG51bWJlcik7XG4gICAgaWYgKG51bWJlciA8IDApIHtcbiAgICAgIHNpZ24gPSAnLSc7XG4gICAgICBudW1iZXIgPSAtbnVtYmVyO1xuICAgIH1cbiAgICBpZiAobnVtYmVyID4gMWUtMjEpIHtcbiAgICAgIGUgPSBsb2cobnVtYmVyICogcG93KDIsIDY5LCAxKSkgLSA2OTtcbiAgICAgIHogPSBlIDwgMCA/IG51bWJlciAqIHBvdygyLCAtZSwgMSkgOiBudW1iZXIgLyBwb3coMiwgZSwgMSk7XG4gICAgICB6ICo9IDB4MTAwMDAwMDAwMDAwMDA7XG4gICAgICBlID0gNTIgLSBlO1xuICAgICAgaWYgKGUgPiAwKSB7XG4gICAgICAgIG11bHRpcGx5KGRhdGEsIDAsIHopO1xuICAgICAgICBqID0gZnJhY3REaWdpdHM7XG4gICAgICAgIHdoaWxlIChqID49IDcpIHtcbiAgICAgICAgICBtdWx0aXBseShkYXRhLCAxZTcsIDApO1xuICAgICAgICAgIGogLT0gNztcbiAgICAgICAgfVxuICAgICAgICBtdWx0aXBseShkYXRhLCBwb3coMTAsIGosIDEpLCAwKTtcbiAgICAgICAgaiA9IGUgLSAxO1xuICAgICAgICB3aGlsZSAoaiA+PSAyMykge1xuICAgICAgICAgIGRpdmlkZShkYXRhLCAxIDw8IDIzKTtcbiAgICAgICAgICBqIC09IDIzO1xuICAgICAgICB9XG4gICAgICAgIGRpdmlkZShkYXRhLCAxIDw8IGopO1xuICAgICAgICBtdWx0aXBseShkYXRhLCAxLCAxKTtcbiAgICAgICAgZGl2aWRlKGRhdGEsIDIpO1xuICAgICAgICByZXN1bHQgPSBkYXRhVG9TdHJpbmcoZGF0YSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBtdWx0aXBseShkYXRhLCAwLCB6KTtcbiAgICAgICAgbXVsdGlwbHkoZGF0YSwgMSA8PCAtZSwgM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hbWVzID0ge307XG4gIHZhciBicmFja2V0cyA9IGZhbHNlO1xuICB2YXIgbmNnID0gZmFsc2U7XG4gIHZhciBncm91cGlkID0gMDtcbiAgdmFyIGdyb3VwbmFtZSA9ICcnO1xuICB2YXIgY2hyO1xuICBmb3IgKDsgaW5kZXggPD0gbGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgY2hyID0gY2hhckF0KHN0cmluZywgaW5kZXgpO1xuICAgIGlmIChjaHIgPT09ICdcXFxcJykge1xuICAgICAgY2hyID0gY2hyICsgY2hhckF0KHN0cmluZywgKytpbmRleCk7XG4gICAgfSBlbHNlIGlmIChjaHIgPT09ICddJykge1xuICAgICAgYnJhY2tldHMgPSBmYWxzZTtcbiAgICB9IGVsc2UgaWYgKCFicmFja2V0cykgc3dpdGNoICh0cnVlKSB7XG4gICAgICBjYXNlIGNociA9PT0gJ1snOlxuICAgICAgICBicmFja2V0cyA9IHRydWU7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSBjaHIgPT09ICcoJzpcbiAgICAgICAgaWYgKGV4ZWMoSVNfTkNHLCBzdHJpbmdTbGljZShzdHJpbmcsIGluZGV4ICsgMSkpKSB7XG4gICAgICAgICAgaW5kZXggKz0gMjtcbiAgICAgICAgICBuY2cgPSB0cnVlO1xuICAgICAgICB9XG4gICAgICAgIHJlc3VsdCArPSBjaHI7XG4gICAgICAgIGdyb3VwaWQrKztcbiAgICAgICAgY29udGludWU7XG4gICAgICBjYXNlIGNociA9PT0gJz4nICYmIG5jZzpcbiAgICAgICAgaWYgKGdyb3VwbmFtZSA9PT0gJycgfHwgaGFzT3duKG5hbWVzLCBncm91cG5hbWUpKSB7XG4gICAgICAgICAgdGhyb3cgbmV3IFN5bnRheEVycm9yKCdJbnZhbGlkIGNhcHR1cmUgZ3JvdXAgbmFtZScpO1xuICAgICAgICB9XG4gICAgICAgIG5hbWVzW2dyb3VwbmFtZV0gPSB0cnVlO1xuICAgICAgICBuYW1lZFtuYW1lZC5sZW5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SUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBVUklFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdDb21waWxlRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IENvbXBpbGVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdMaW5rRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IExpbmtFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdSdW50aW1lRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IFJ1bnRpbWVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgIGNsb25lZCA9IEVycm9yKCk7XG4gICAgICB9XG4gICAgICBkZWVwID0gdHJ1ZTtcbiAgICAgIGJyZWFrO1xuICAgIGNhc2UgJ0RPTUV4Y2VwdGlvbic6XG4gICAgICBjbG9uZWQgPSBuZXcgRE9NRXhjZXB0aW9uKHZhbHVlLm1lc3NhZ2UsIHZhbHVlLm5hbWUpO1xuICAgICAgZGVlcCA9IHRydWU7XG4gICAgICBicmVhaztcbiAgICBjYXNlICdEYXRhVmlldyc6XG4gICAgY2FzZSAnSW50OEFycmF5JzpcbiAgICBjYXNlICdVaW50OEFycmF5JzpcbiAgICBjYXNlICdVaW50OENsYW1wZWRBcnJheSc6XG4gICAgY2FzZSAnSW50MTZBcnJheSc6XG4gICAgY2FzZSAnVWludDE2QXJyYXknOlxuICAgIGNhc2UgJ0ludDMyQXJyYXknOlxuICAgIGNhc2UgJ1VpbnQzMkFycmF5JzpcbiAgICBjYXNlICdGbG9hdDMyQXJyYXknOlxuICAgIGNhc2UgJ0Zsb2F0NjRBcnJheSc6XG4gICAgY2FzZSAnQmlnSW50NjRBcnJheSc6XG4gICAgY2FzZSAnQmlnVWludDY0QXJyYXknOlxuICAgICAgQyA9IGdsb2JhbFt0eXBlXTtcbiAgIC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iAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRE9NRXhjZXB0aW9uKCdBcnJheUJ1ZmZlciBpcyBkZXRhY2hlZCcsIERBVEFfQ0xPTkVfRVJST1IpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ1NoYXJlZEFycmF5QnVmZmVyJzpcbiAgICAgICAgICAvLyBTaGFyZWRBcnJheUJ1ZmZlciBzaG91bGQgdXNlIHNoYXJlZCBtZW1vcnksIHdlIGNhbid0IHBvbHlmaWxsIGl0LCBzbyByZXR1cm4gdGhlIG9yaWdpbmFsXG4gICAgICAgICAgY2xvbmVkID0gdmFsdWU7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ0Jsb2InOlxuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjbG9uZWQgPSB2YWx1ZS5zbGljZSgwLCB2YWx1ZS5zaXplLCB2YWx1ZS50eXBlKTtcbiAgICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgdGhyb3dVbnBvbHlmaWxsYWJsZSh0eXBlKTtcbiAgICAgICAgICB9IGJyZWFrO1xuICAgICAgICBjYXNlICdET01Qb2ludCc6XG4gICAgICAgIGNhc2UgJ0RPTVBvaW50UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbVBvaW50XG4gICAgICAgICAgICAgID8gQy5mcm9tUG9pbnQodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUueCwgdmFsdWUueSwgdmFsdWUueiwgdmFsdWUudyk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgIHRocm93VW5wb2x5ZmlsbGFibGUodHlwZSk7XG4gICAgICAgICAgfSBicmVhaztcbiAgICAgICAgY2FzZSAnRE9NUmVjdCc6XG4gICAgICAgIGNhc2UgJ0RPTVJlY3RSZWFkT25seSc6XG4gICAgICAgICAgQyA9IGdsb2JhbFt0eXBlXTtcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgY2xvbmVkID0gQy5mcm9tUmVjdFxuICAgICAgICAgICAgICA/IEMuZnJvbVJlY3QodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUueCwgdmFsdWUueSwgdmFsdWUud2lkdGgsIHZhbHVlLmhlaWdodCk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgIHRocm93VW5wb2x5ZmlsbGFibGUodHlwZSk7XG4gICAgICAgICAgfSBicmVhaztcbiAgICAgICAgY2FzZSAnRE9NTWF0cml4JzpcbiAgICAgICAgY2FzZSAnRE9NTWF0cml4UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbU1hdHJpeFxuICAgICAgICAgICAgICA/IEMuZnJvbU1hdHJpeCh2YWx1ZSlcbiAgICAgICAgICAgICAgOiBuZXcgQyh2YWx1ZSk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgIHRocm93VW5wb2x5ZmlsbGFibGUodHlwZSk7XG4gICAgICAgICAgfSBicmVhaztcbiAgICAgICAgY2FzZSAnQXVkaW9EYXRhJzpcbiAgICAgICAgY2FzZSAnVmlkZW9GcmFtZSc6XG4gICAgICAgICAgaWYgKCFpc0NhbGxhYmxlKHZhbHVlLmNsb25lKSkgdGhyb3dVbnBvbHlmaWxsYWJsZSh0eXBlKTtcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgY2xvbmVkID0gdmFsdWUuY2xvbmUoKTtcbiAgICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuIC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biAgICBpZiAoY2hyKCkgPT0gJy4nKSB7XG4gICAgICBpZiAobGVuZ3RoID09IDApIHJldHVybjtcbiAgICAgIHBvaW50ZXIgLT0gbGVuZ3RoO1xuICAgICAgaWYgKHBpZWNlSW5kZXggPiA2KSByZXR1cm47XG4gICAgICBudW1iZXJzU2VlbiA9IDA7XG4gICAgICB3aGlsZSAoY2hyKCkpIHtcbiAgICAgICAgaXB2NFBpZWNlID0gbnVsbDtcbiAgICAgICAgaWYgKG51bWJlcnNTZWVuID4gMCkge1xuICAgICAgICAgIGlmIChjaHIoKSA9PSAnLicgJiYgbnVtYmVyc1NlZW4gPCA0KSBwb2ludGVyKys7XG4gICAgICAgICAgZWxzZSByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFleGVjKERJR0lULCBjaHIoKSkpIHJldHVybjtcbiAgICAgICAgd2hpbGUgKGV4ZWMoRElHSVQsIGNocigpKSkge1xuICAgICAgICAgIG51bWJlciA9IHBhcnNlSW50KGNocigpLCAxMCk7XG4gICAgICAgICAgaWYgKGlwdjRQaWVjZSA9PT0gbnVsbCkgaXB2NFBpZWNlID0gbnVtYmVyO1xuICAgICAgICAgIGVsc2UgaWYgKGlwdjRQaWVjZSA9PSAwKSByZXR1cm47XG4gICAgICAgICAgZWxzZSBpcHY0UGllY2UgPSBpcHY0UGllY2UgKiAxMCArIG51bWJlcjtcbiAgICAgICAgICBpZiAoaXB2NFBpZWNlID4gMjU1KSByZXR1cm47XG4gICAgICAgICAgcG9pbnRlcisrO1xuICAgICAgICB9XG4gICAgICAgIGFkZHJlc3NbcGllY2VJbmRleF0gPSBhZGRyZXNzW3BpZWNlSW5kZXhdICogMjU2ICsgaXB2NFBpZWNlO1xuICAgICAgICBudW1iZXJzU2VlbisrO1xuICAgICAgICBpZiAobnVtYmVyc1NlZW4gPT0gMiB8fCBudW1iZXJzU2VlbiA9PSA0KSBwaWVjZUluZGV4Kys7XG4gICAgICB9XG4gICAgICBpZiAobnVtYmVyc1N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ORVdfTElORSwgJycpO1xuXG4gICAgY29kZVBvaW50cyA9IGFycmF5RnJvbShpbnB1dCk7XG5cbiAgICB3aGlsZSAocG9pbnRlciA8PSBjb2RlUG9pbnRzLmxlbmd0aCkge1xuICAgICAgY2hyID0gY29kZVBvaW50c1twb2ludGVyXTtcbiAgICAgIHN3aXRjaCAoc3RhdGUpIHtcbiAgICAgICAgY2FzZSBTQ0hFTUVfU1RBUlQ6XG4gICAgICAgICAgaWYgKGNociAmJiBleGVjKEFMUEhBLCBjaHIpKSB7XG4gICAgICAgICAgICBidWZmZXIgKz0gdG9Mb3dlckNhc2UoY2hyKTtcbiAgICAgICAgICAgIHN0YXRlID0gU0NIRU1FO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUpIHtcbiAgICAgICAgICAgIHN0YXRlID0gTk9fU0NIRU1FO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIHJldHVybiBJTlZBTElEX1NDSEVNRTtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFNDSEVNRTpcbiAgICAgICAgICBpZiAoY2hyICYmIChleGVjKEFMUEhBTlVNRVJJQywgY2hyKSB8fCBjaHIgPT0gJysnIHx8IGNociA9PSAnLScgfHwgY2hyID09ICcuJykpIHtcbiAgICAgICAgICAgIGJ1ZmZlciArPSB0b0xvd2VyQ2FzZShjaHIpO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICc6Jykge1xuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUgJiYgKFxuICAgICAgICAgICAgICAodXJsLmlzU3BlY2lhbCgpICE9IGhhc093bihzcGVjaWFsU2NoZW1lcywgYnVmZmVyKSkgfHxcbiAgICAgICAgICAgICAgKGJ1ZmZlciA9PSAnZmlsZScgJiYgKHVybC5pbmNsdWRlc0NyZWRlbnRpYWxzKCkgfHwgdXJsLnBvcnQgIT09IG51bGwpKSB8fFxuICAgICAgICAgICAgICAodXJsLnNjaGVtZSA9PSAnZmlsZScgJiYgIXVybC5ob3N0KVxuICAgICAgICAgICAgKSkgcmV0dXJuO1xuICAgICAgICAgICAgdXJsLnNjaGVtZSA9IGJ1ZmZlcjtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlKSB7XG4gICAgICAgICAgICAgIGlmICh1cmwuaXNTcGVjaWFsKCkgJiYgc3BlY2lhbFNjaGVtZXNbdXJsLnNjaGVtZV0gPT0gdXJsLnBvcnQpIHVybC5wb3J0ID0gbnVsbDtcbiAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICBpZiAodXJsLnNjaGVtZSA9PSAnZmlsZScpIHtcbiAgICAgICAgICAgICAgc3RhdGUgPSBGSUxFO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh1cmwuaXNTcGVjaWFsKCkgJiYgYmFzZSAmJiBiYXNlLnNjaGVtZSA9PSB1cmwuc2NoZW1lKSB7XG4gICAgICAgICAgICAgIHN0YXRlID0gU1BFQ0lBTF9SRUxBVElWRV9PUl9BVVRIT1JJVFk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHVybC5pc1NwZWNpYWwoKSkge1xuICAgICAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfQVVUSE9SSVRZX1NMQVNIRVM7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNvZGVQb2ludHNbcG9pbnRlciArIDFdID09ICcvJykge1xuICAgICAgICAgICAgICBzdGF0ZSA9IFBBVEhfT1JfQVVUSE9SSVRZO1xuICAgICAgICAgICAgICBwb2ludGVyKys7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICB1cmwuY2Fubm90QmVBQmFzZVVSTCA9IHRydWU7XG4gICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsICcnKTtcbiAgICAgICAgICAgICAgc3RhdGUgPSBDQU5OT1RfQkVfQV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IDFdID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBTUEVDSUFMX0FVVEhPUklUWV9JR05PUkVfU0xBU0hFUztcbiAgICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc3RhdGUgPSBSRUxBVElWRTtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIX09SX0FVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgUkVMQVRJVkU6XG4gICAgICAgICAgdXJsLnNjaGVtZSA9IGJhc2Uuc2NoZW1lO1xuICAgICAgICAgIGlmIChjaHIgPT0gRU9GKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJy8nIHx8IChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgIHN0YXRlID0gUkVMQVRJVkVfU0xBU0g7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnBhc3N3b3JkO1xuICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICB1cmwucG9ydCA9IGJhc2UucG9ydDtcbiAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gYmFzZS5xdWVyeTtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucGF0aC5sZW5ndGgtLTtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBSRUxBVElWRV9TTEFTSDpcbiAgICAgICAgICBpZiAodXJsLmlzU3BlY2lhbCgpICYmIChjaHIgPT0gJy8nIHx8IGNociA9PSAnXFxcXCcpKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfQVVUSE9SSVRZX0lHTk9SRV9TTEFTSEVTO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcvJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnBhc3N3b3JkO1xuICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICB1cmwucG9ydCA9IGJhc2UucG9ydDtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBTUEVDSUFMX0FVVEhPUklUWV9TTEFTSEVTOlxuICAgICAgICAgIHN0YXRlID0gU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM7XG4gICAgICAgICAgaWYgKGNociAhPSAnLycgfHwgY2hhckF0KGJ1ZmZlciwgcG9pbnRlciArIDEpICE9ICcvJykgY29udGludWU7XG4gICAgICAgICAgcG9pbnRlcisrO1xuICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM6XG4gICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgY2hyICE9ICdcXFxcJykge1xuICAgICAgICAgICAgc3RhdGUgPSBBVVRIT1JJVFk7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQVVUSE9SSVRZOlxuICAgICAgICAgIGlmIChjaHIgPT0gJ0AnKSB7XG4gICAgICAgICAgICBpZiAoc2VlbkF0KSBidWZmZXIgPSAnJTQwJyArIGJ1ZmZlcjtcbiAgICAgICAgICAgIHNlZW5BdCA9IHRydWU7XG4gICAgICAgICAgICBidWZmZXJDb2RlUG9pbnRzID0gYXJyYXlGcm9tKGJ1ZmZlcik7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGJ1ZmZlckNvZGVQb2ludHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgdmFyIGNvZGVQb2ludCA9IGJ1ZmZlckNvZGVQb2ludHNbaV07XG4gICAgICAgICAgICAgIGlmIChjb2RlUG9pbnQgPT0gJzonICYmICFzZWVuUGFzc3dvcmRUb2tlbikge1xuICAgICAgICAgICAgICAgIHNlZW5QYXNzd29yZFRva2VuID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB2YXIgZW5jb2RlZENvZGVQb2ludHMgPSBwZXJjZW50RW5jb2RlKGNvZGVQb2ludCwgdXNlcmluZm9QZXJjZW50RW5jb2RlU2V0KTtcbiAgICAgICAgICAgICAgaWYgKHNlZW5QYXNzd29yZFRva2VuKSB1cmwucGFzc3dvcmQgKz0gZW5jb2RlZENvZGVQb2ludHM7XG4gICAgICAgICAgICAgIGVsc2UgdXJsLnVzZXJuYW1lICs9IGVuY29kZWRDb2RlUG9pbnRzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSlcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmIChzZWVuQXQgJiYgYnVmZmVyID09ICcnKSByZXR1cm4gSU5WQUxJRF9BVVRIT1JJVFk7XG4gICAgICAgICAgICBwb2ludGVyIC09IGFycmF5RnJvbShidWZmZXIpLmxlbmd0aCArIDE7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gSE9TVDtcbiAgICAgICAgICB9IGVsc2UgYnVmZmVyICs9IGNocjtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIEhPU1Q6XG4gICAgICAgIGNhc2UgSE9TVE5BTUU6XG4gICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUgJiYgdXJsLnNjaGVtZSA9PSAnZmlsZScpIHtcbiAgICAgICAgICAgIHN0YXRlID0gRklMRV9IT1NUO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJzonICYmICFzZWVuQnJhY2tldCkge1xuICAgICAgICAgICAgaWYgKGJ1ZmZlciA9PSAnJykgcmV0dXJuIElOVkFMSURfSE9TVDtcbiAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICBpZiAoZmFpbHVyZSkgcmV0dXJuIGZhaWx1cmU7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUE9SVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlID09IEhPU1ROQU1FKSByZXR1cm47XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSlcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmICh1cmwuaXNTcGVjaWFsKCkgJiYgYnVmZmVyID09ICcnKSByZXR1cm4gSU5WQUxJRF9IT1NUO1xuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUgJiYgYnVmZmVyID09ICcnICYmICh1cmwuaW5jbHVkZXNDcmVkZW50aWFscygpIHx8IHVybC5wb3J0ICE9PSBudWxsKSkgcmV0dXJuO1xuICAgICAgICAgICAgZmFpbHVyZSA9IHVybC5wYXJzZUhvc3QoYnVmZmVyKTtcbiAgICAgICAgICAgIGlmIChmYWlsdXJlKSByZXR1cm4gZmFpbHVyZTtcbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUpIHJldHVybjtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAoY2hyID09ICdbJykgc2VlbkJyYWNrZXQgPSB0cnVlO1xuICAgICAgICAgICAgZWxzZSBpZiAoY2hyID09ICddJykgc2VlbkJyYWNrZXQgPSBmYWxzZTtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFBPUlQ6XG4gICAgICAgICAgaWYgKGV4ZWMoRElHSVQsIGNocikpIHtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycgfHxcbiAgICAgICAgICAgIChjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkgfHxcbiAgICAgICAgICAgIHN0YXRlT3ZlcnJpZGVcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGlmIChidWZmZXIgIT0gJycpIHtcbiAgICAgICAgICAgICAgdmFyIHBvcnQgPSBwYXJzZUludChidWZmZXIsIDEwKTtcbiAgICAgICAgICAgICAgaWYgKHBvcnQgPiAweEZGRkYpIHJldHVybiBJTlZBTElEX1BPUlQ7XG4gICAgICAgICAgICAgIHVybC5wb3J0ID0gKHVybC5pc1NwZWNpYWwoKSAmJiBwb3J0ID09PSBzcGVjaWFsU2NoZW1lc1t1cmwuc2NoZW1lXSkgPyBudWxsIDogcG9ydDtcbiAgICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSkgcmV0dXJuO1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIHJldHVybiBJTlZBTElEX1BPUlQ7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBGSUxFOlxuICAgICAgICAgIHVybC5zY2hlbWUgPSAnZmlsZSc7XG4gICAgICAgICAgaWYgKGNociA9PSAnLycgfHwgY2hyID09ICdcXFxcJykgc3RhdGUgPSBGSUxFX1NMQVNIO1xuICAgICAgICAgIGVsc2UgaWYgKGJhc2UgJiYgYmFzZS5zY2hlbWUgPT0gJ2ZpbGUnKSB7XG4gICAgICAgICAgICBpZiAoY2hyID09IEVPRikge1xuICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcjJykge1xuICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgICBzdGF0ZSA9IEZSQUdNRU5UO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgaWYgKCFzdGFydHNXaXRoV2luZG93c0RyaXZlTGV0dGVyKGpvaW4oYXJyYXlTbGljZShjb2RlUG9pbnRzLCBwb2ludGVyKSwgJycpKSkge1xuICAgICAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICAgIHVybC5zaG9ydGVuUGF0aCgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBGSUxFX1NMQVNIOlxuICAgICAgICAgIGlmIChjaHIgPT0gJy8nIHx8IGNociA9PSAnXFxcXCcpIHtcbiAgICAgICAgICAgIHN0YXRlID0gRklMRV9IT1NUO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChiYXNlICYmIGJhc2Uuc2NoZW1lID09ICdmaWxlJyAmJiAhc3RhcnRzV2l0aFdpbmRvd3NEcml2ZUxldHRlcihqb2luKGFycmF5U2xpY2UoY29kZVBvaW50cywgcG9pbnRlciksICcnKSkpIHtcbiAgICAgICAgICAgIGlmIChpc1dpbmRvd3NEcml2ZUxldHRlcihiYXNlLnBhdGhbMF0sIHRydWUpKSBwdXNoKHVybC5wYXRoLCBiYXNlLnBhdGhbMF0pO1xuICAgICAgICAgICAgZWxzZSB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICB9XG4gICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgIGNvbnRpbnVlO1xuXG4gICAgICAgIGNhc2UgRklMRV9IT1NUOlxuICAgICAgICAgIGlmIChjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICdcXFxcJyB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIGlmICghc3RhdGVPdmVycmlkZSAmJiBpc1dpbmRvd3NEcml2ZUxldHRlcihidWZmZXIpKSB7XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoYnVmZmVyID09ICcnKSB7XG4gICAgICAgICAgICAgIHVybC5ob3N0ID0gJyc7XG4gICAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlKSByZXR1cm47XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICAgIGlmIChmYWlsdXJlKSByZXR1cm4gZmFpbHVyZTtcbiAgICAgICAgICAgICAgaWYgKHVybC5ob3N0ID09ICdsb2NhbGhvc3QnKSB1cmwuaG9zdCA9ICcnO1xuICAgICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSkgcmV0dXJuO1xuICAgICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBQQVRIX1NUQVJUO1xuICAgICAgICAgICAgfSBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2UgYnVmZmVyICs9IGNocjtcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFBBVEhfU1RBUlQ6XG4gICAgICAgICAgaWYgKHVybC5pc1NwZWNpYWwoKSkge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgY2hyICE9ICdcXFxcJykgY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgIT0gRU9GKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICBpZiAoY2hyICE9ICcvJykgY29udGludWU7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFBBVEg6XG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgY2hyID09IEVPRiB8fCBjaHIgPT0gJy8nIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpIHx8XG4gICAgICAgICAgICAoIXN0YXRlT3ZlcnJpZGUgJiYgKGNociA9PSAnPycgfHwgY2hyID09ICcjJykpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAoaXNEb3VibGVEb3QoYnVmZmVyKSkge1xuICAgICAgICAgICAgICB1cmwuc2hvcnRlblBhdGgoKTtcbiAgICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgIShjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoaXNTaW5nbGVEb3QoYnVmZmVyKSkge1xuICAgICAgICAgICAgICBpZiAoY2hyICE9ICcvJyAmJiAhKGNociA9PSAnXFxcXCcgJiYgdXJsLmlzU3BlY2lhbCgpKSkge1xuICAgICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsICcnKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgaWYgKHVybC5zY2hlbWUgPT0gJ2ZpbGUnICYmICF1cmwucGF0aC5sZW5ndGggJiYgaXNXaW5kb3dzRHJpdmVMZXR0ZXIoYnVmZmVyKSkge1xuICAgICAgICAgICAgICAgIGlmICh1cmwuaG9zdCkgdXJsLmhvc3QgPSAnJztcbiAgICAgICAgICAgICAgICBidWZmZXIgPSBjaGFyQXQoYnVmZmVyLCAwKSArICc6JzsgLy8gbm9ybWFsaXplIHdpbmRvd3MgZHJpdmUgbGV0dGVyXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcHVzaCh1cmwucGF0aCwgYnVmZmVyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgaWYgKHVybC5zY2hlbWUgPT0gJ2ZpbGUnICYmIChjaHIgPT0gRU9GIHx8IGNociA9PSAnPycgfHwgY2hyID09ICcjJykpIHtcbiAgICAgICAgICAgICAgd2hpbGUgKHVybC5wYXRoLmxlbmd0aCA+IDEgJiYgdXJsLnBhdGhbMF0gPT09ICcnKSB7XG4gICAgICAgICAgICAgICAgc2hpZnQodXJsLnBhdGgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoY2hyID09ICc/Jykge1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcjJykge1xuICAgICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgYnVmZmVyICs9IHBlcmNlbnRFbmNvZGUoY2hyLCBwYXRoUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIENBTk5PVF9CRV9BX0JBU0VfVVJMX1BBVEg6XG4gICAgICAgICAgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBRVUVSWTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgIHVybC5mcmFnbWVudCA9ICcnO1xuICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociAhPSBFT0YpIHtcbiAgICAgICAgICAgIHVybC5wYXRoWzBdICs9IHBlcmNlbnRFbmNvZGUoY2hyLCBDMENvbnRyb2xQZXJjZW50RW5jb2RlU2V0KTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgUVVFUlk6XG4gICAgICAgICAgaWYgKCFzdGF0ZU92ZXJyaWRlICYmIGNociA9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UpIHtcbiAgICAgICAgICB2YXIgZGVsZWdhdGVSZXN1bHQgPSBtYXliZUludm9rZURlbGVnYXRlKGRlbGVnYXRlLCBjb250ZXh0KTtcbiAgICAgICAgICBpZiAoZGVsZWdhdGVSZXN1bHQpIHtcbiAgICAgICAgICAgIGlmIChkZWxlZ2F0ZVJlc3VsdCA9PT0gQ29udGludWVTZW50aW5lbCkgY29udGludWU7XG4gICAgICAgICAgICByZXR1cm4gZGVsZWdhdGVSZXN1bHQ7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGNvbnRleHQubWV0aG9kID09PSBcIm5leHRcIikge1xuICAgICAgICAgIC8vIFNldHRpbmcgY29udGV4dC5fc2VudCBmb3IgbGVnYWN5IHN1cHBvcnQgb2YgQmFiZWwnc1xuICAgICAgICAgIC8vIGZ1bmN0aW9uLnNlbnQgaW1wbGVtZW50YXRpb24uXG4gICAgICAgICAgY29udGV4dC5zZW50ID0gY29udGV4dC5fc2VudCA9IGNvbnRleHQuYXJnO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoY29udGV4dC5tZXRob2QgPT09IFwidGhyb3dcIikge1xuICAgICAgICAgIGlmIChzdGF0ZSA9PT0gR2VuU3RhdGVTdXNwZW5kZWRTdGFydCkge1xuICAgICAgICAgICAgc3RhdGUgPSBHZW5TdGF0ZUNvbXBsZXRlZDtcbiAgICAgICAgICAgIHRocm93IGNvbnRleHQuYXJnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQuZGlzcGF0Y2hFeGNlcHRpb24oY29udGV4dC5hcmcpO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoY29udGV4dC5tZXRob2QgPT09IFwicmV0dXJuXCIpIHtcbiAgICAgICAgICBjb250ZXh0LmFicnVwdChcInJldHVyblwiLCBjb250ZXh0LmFyZyk7XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0ZSA9IEdlblN0YXRlRXhlY3V0aW5nO1xuXG4gICAgICAgIHZhci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SBmdW5jdGlvbiB0b1xuICAgICAgICAgIC8vIHRocm93IHRoZSBleGNlcHRpb24uXG4gICAgICAgICAgcmV0dXJuIGhhbmRsZShcImVuZFwiKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChlbnRyeS50cnlMb2MgPD0gdGhpcy5wcmV2KSB7XG4gICAgICAgICAgdmFyIGhhc0NhdGNoID0gaGFzT3duLmNhbGwoZW50cnksIFwiY2F0Y2hMb2NcIik7XG4gICAgICAgICAgdmFyIGhhc0ZpbmFsbHkgPSBoYXNPd24uY2FsbChlbnRyeSwgXCJmaW5hbGx5TG9jXCIpO1xuXG4gICAgICAgICAgaWYgKGhhc0NhdGNoICYmIGhhc0ZpbmFsbHkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnByZXYgPCBlbnRyeS5jYXRjaExvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmNhdGNoTG9jLCB0cnVlKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5wcmV2IDwgZW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmZpbmFsbHlMb2MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNDYXRjaCkge1xuICAgICAgICAgICAgaWYgKHRoaXMucHJldiA8IGVudHJ5LmNhdGNoTG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuY2F0Y2hMb2MsIHRydWUpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNGaW5hbGx5KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5wcmV2IDwgZW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmZpbmFsbHlMb2MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInRyeSBzdGF0ZW1lbnQgd2l0aG91dCBjYXRjaCBvciBmaW5hbGx5XCIpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG5cbiAgICBhYnJ1cHQ6IGZ1bmN0aW9uKHR5cGUsIGFyZykge1xuICAgICAgZm9yICh2YXIgaSA9IHRoaXMudHJ5RW50cmllcy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICB2YXIgZW50cnkgPSB0aGlzLnRyeUVudHJpZXNbaV07XG4gICAgICAgIGlmIChlbnRyeS50cnlMb2MgPD0gdGhpcy5wcmV2ICYmXG4gICAgICAgICAgICBoYXNPd24uY2FsbChlbnRyeSwgXCJmaW5hbGx5TG9jXCIpICYmXG4gICAgICAgICAgICB0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgdmFyIGZpbmFsbHlFbnRyeSA9IGVudHJ5O1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChmaW5hbGx5RW50cnkgJiZcbiAgICAgICAgICAodHlwZSA9PT0gXCJicmVha1wiIHx8XG4gICAgICAgICAgIHR5cGUgPT09IFwiY29udGludWVcIikgJiZcbiAgICAgICAgICBmaW5hbGx5RW50cnkudHJ5TG9jIDw9IGFyZyAmJlxuICAgICAgICAgIGFyZyA8PSBmaW5hbGx5RW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAvLyBJZ25vcmUgdGhlIGZpbmFsbHkgZW50cnkgaWYgY29udHJvbCBpcyBub3QganVtcGluZyB0byBhXG4gICAgICAgIC8vIGxvY2F0aW9uIG91dHNpZGUgdGhlIHRyeS9jYXRjaCBibG9jay5cbiAgICAgICAgZmluYWxseUVudHJ5ID0gbnVsbDtcbiAgICAgIH1cblxuICAgICAgdmFyIHJlY29yZCA9IGZpbmFsbHlFbnRyeSA/IGZpbmFsbHlFbnRyeS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2MpIHtcbiAgICAgIGZvciAodmFyIGkgPSB0aGlzLnRyeUVudHJpZXMubGVuZ3RoIC0gMTsgaSA+PSAwOyAtLWkpIHtcbiAgICAgICAgdmFyIGVudHJ5ID0gdGhpcy50cnlFbnRyaWVzW2ldO1xuICAgICAgICBpZiAoZW50cnkuZmluYWxseUxvYyA9PT0gZmluYWxseUxvYykge1xuICAgICAgICAgIHRoaXMuY29tcGxldGUoZW50cnkuY29tcGxldGlvbiwgZW50cnkuYWZ0ZXJMb2MpO1xuICAgICAgICAgIHJlc2V0VHJ5RW50cnkoZW50cnkpO1xuICAgICAgICAgIHJldHVybiBDb250aW51ZVNlbnRpbmVsO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIFwiY2F0Y2hcIjogZnVuY3Rpb24odHJ5TG9jKSB7XG4gICAgICBmb3IgKHZhciBpID0gdGhpcy50cnlFbnRyaWVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgLS1pKSB7XG4gICAgICAgIHZhciBlbnRyeSA9IHRoaXMudHJ5RW50cmllc1tpXTtcbiAgICAgICAgaWYgKGVudHJ5LnRyeUxvYyA9PT0gdHJ5TG9jKSB7XG4gICAgICAgICAgdmFyIHJlY29yZCA9IGVudHJ5LmNvbXBsZXRpb247XG4gICAgICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgICAgIHZhciB0aHJvd24gPSByZWNvcmQuYXJnO1xuICAgICAgICAgICAgcmVzZXRUcnlFbnRyeShlbnRyeSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiB0aHJvd247XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLy8gVGhlIGNvbnRleHQuY2F0Y2ggbWV0aG9kIG11c3Qgb25seSBiZSBjYWxsZWQgd2l0aCBhIGxvY2F0aW9uXG4gICAgICAvLyBhcmd1bWVudCB0aGF0IGNvcnJlc3BvbmRzIHRvIGEga25vd24gY2F0Y2ggYmxvY2suXG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nQgPSBlTWF4O1xuICB9IGVsc2Uge1xuICAgIGV4cG9uZW50ID0gZmxvb3IobG9nKG51bWJlcikgLyBMTjIpO1xuICAgIGMgPSBwb3coMiwgLWV4cG9uZW50KTtcbiAgICBpZiAobnVtYmVyICogYyA8IDEpIHtcbiAgICAgIGV4cG9uZW50LS07XG4gICAgICBjICo9IDI7XG4gICAgfVxuICAgIGlmIChleHBvbmVudCArIGVCaWFzID49IDEpIHtcbiAgICAgIG51bWJlciArPSBydCAvIGM7XG4gICAgfSBlbHNlIHtcbiAgICAgIG51bWJlciArPSBydCAqIHBvdygyLCAxIC0gZUJpYXMpO1xuICAgIH1cbiAgICBpZiAobnVtYmVyICogYyA+PSAyKSB7XG4gICAgICBleHBvbmVudCsrO1xuICAgICAgYyAvPSAyO1xuICAgIH1cbiAgICBpZiAoZXhwb25lbnQgKyBlQmlhcyA+PSBlTWF4KSB7XG4gICAgICBtYW50aXNzYSA9IDA7XG4gICAgICBleHBvbmVudCA9IGVNYXg7XG4gICAgfSBlbHNlIGlmIChleHBvbmVudCArIGVCaWFzID49IDEpIHtcbiAgICAgIG1hbnRpc3NhID0gKG51bWJlciAqIGMgLSAxKSAqIHBvdygyLCBtYW50aXNzYUxlbmd0aCk7XG4gICAgICBleHBvbmVudCA9IGV4cG9uZW50ICsgZUJpYXM7XG4gICAgfSBlbHNlIHtcbiAgICAgIG1hbnRpc3NhID0gbnVtYmVyICogcG93KDIsIGVCaWFzIC0gMSkgKiBwb3coMiwgbWFudGlzc2FMZW5ndGgpO1xuICAgICAgZXhwb25lbnQgPSAwO1xuICAgIH1cbiAgfVxuICB3aGlsZSAobWFudGlzc2FMZW5ndGggPj0gOCkge1xuICAgIGJ1ZmZlcltpbmRleCsrXSA9IG1hbnRpc3NhICYgMjU1O1xuICAgIG1hbnRpc3NhIC89IDI1NjtcbiAgICBtYW50aXNzYUxlbmd0aCAtPSA4O1xuICB9XG4gIGV4cG9uZW50ID0gZXhwb25lbnQgPDwgbWFudGlzc2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G4gICAgICBjb250aW51ZTtcbiAgICB9XG4gICAgaWYgKCFicmFja2V0cyAmJiBjaHIgPT09ICcuJykge1xuICAgICAgcmVzdWx0ICs9ICdbXFxcXHNcXFxcU10nO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAoY2hyID09PSAnWycpIHtcbiAgICAgICAgYnJhY2tldHMgPSB0cnVlO1xuICAgICAgfSBlbHNlIGlmIChjaHIgPT09ICddJykge1xuICAgICAgICBicmFja2V0cyA9IGZhbHNlO1xuICAgICAgfSByZXN1bHQgKz0gY2hyO1xuICAgIH1cbiAgfSByZXR1cm4gcmVzdWx0O1xufTtcblxudmFyIGhhbmRsZU5DRyA9IGZ1bmN0aW9uIChzdHJpbmcpIHtcbiAgdmFyIGxlbmd0aCA9IHN0cmluZy5sZW5ndGg7XG4gIHZhciBpbmRleCA9IDA7XG4gIHZhciByZXN1bHQgPSAnJztcbiAgdmFyIG5hbWVkID0gW107XG4gIHZhciBuYW1lcyA9IHt9O1xuICB2YXIgYnJhY2tldHMgPSBmYWxzZTtcbiAgdmFyIG5jZyA9IGZhbHNlO1xuICB2YXIgZ3JvdXBpZCA9IDA7XG4gIHZhciBncm91cG5hbWUgPSAnJztcbiAgdmFyIGNocjtcbiAgZm9yICg7IGluZGV4IDw9IGxlbmd0aDsgaW5kZXgrKykge1xuICAgIGNociA9IGNoYXJBdChzdHJpbmcsIGluZGV4KTtcbiAgICBpZiAoY2hyID09PSAnXFxcXCcpIHtcbiAgICAgIGNociA9IGNociArIGNoYXJBdChzdHJpbmcsICsraW5kZXgpO1xuICAgIH0gZWxzZSBpZiAoY2hyID09PSAnXScpIHtcbiAgICAgIGJyYWNrZXRzID0gZmFsc2U7XG4gICAgfSBlbHNlIGlmICghYnJhY2tldHMpIHN3aXRjaCAodHJ1ZSkge1xuICAgICAgY2FzZSBjaHIgPT09ICdbJzpcbiAgICAgICAgYnJhY2tldHMgPSB0cnVlO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgY2hy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HRoZSAneScgZmxhZy5cbiAgICAgIHZhciBzcGxpdHRlciA9IG5ldyBDKFVOU1VQUE9SVEVEX1kgPyAnXig/OicgKyByeC5zb3VyY2UgKyAnKScgOiByeCwgZmxhZ3MpO1xuICAgICAgdmFyIGxpbSA9IGxpbWl0ID09PSB1bmRlZmluZWQgPyBNQVhfVUlOVDMyIDogbGltaXQgPj4+IDA7XG4gICAgICBpZiAobGltID09PSAwKSByZXR1cm4gW107XG4gICAgICBpZiAoUy5sZW5ndGggPT09IDApIHJldHVybiBjYWxsUmVnRXhwRXhlYyhzcGxpdHRlciwgUykgPT09IG51bGwgPyBbU10gOiBbXTtcbiAgICAgIHZhciBwID0gMDtcbiAgICAgIHZhciBxID0gMDtcbiAgICAgIHZhciBBID0gW107XG4gICAgICB3aGlsZSAocSA8IFMubGVuZ3RoKSB7XG4gICAgICAgIHNwbGl0dGVyLmxhc3RJbmRleCA9IFVOU1VQUE9SVEVEX1kgPyAwIDogcTtcbiAgICAgICAgdmFyIHogPSBjYWxsUmVnRXhwRXhlYyhzcGxpdHRlciwgVU5TVVBQT1JURURfWSA/IHN0cmluZ1NsaWNlKFMsIHEpIDogUyk7XG4gICAgICAgIHZhciBlO1xuICAgICAgICBpZiAoXG4gICAgICAgICAgeiA9PT0gbnVsbCB8fFxuICAgICAgICAgIChlID0gbWluKHRvTGVuZ3RoKHNwbGl0dGVyLmxhc3RJbmRleCArIChVTlNVUFBPUlRFRF9ZID8gcSA6IDApKSwgUy5sZW5ndGgpKSA9PT0gcFxuICAgICAgICApIHtcbiAgICAgICAgICBxID0gYWR2YW5jZVN0cmluZ0luZGV4KFMsIHEsIHVuaWNvZGVNYXRjaGluZyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgcHVzaChBLCBzdHJpbmdTbGljZShTLCBwLCBxKSk7XG4gICAgICAgICAgaWYgKEEubGVuZ3RoID09PSBsaW0pIHJldHVybiBBO1xuICAgICAgICAgIGZvciAodmFyIGkgPSAxOyBpID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25lZCA9IFJlZmVyZW5jZUVycm9yKCk7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ1N5bnRheEVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBTeW50YXhFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdUeXBlRXJyb3InOlxuICAgICAgICAgIGNsb25lZCA9IFR5cGVFcnJvcigpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICdVUklFcnJvcic6XG4gICAgICAgICAgY2xvbmVkID0gVVJJRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnQ29tcGlsZUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBDb21waWxlRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnTGlua0Vycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBMaW5rRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnUnVudGltZUVycm9yJzpcbiAgICAgICAgICBjbG9uZWQgPSBSdW50aW1lRXJyb3IoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICBjbG9uZWQgPSBFcnJvcigpO1xuICAgICAgfVxuICAgICAgZGVlcCA9IHRydWU7XG4gICAgICBicmVhaztcbiAgICBjYXNlICdET01FeGNlcHRpb24nOlxuICAgICAgY2xvbmVkID0gbmV3IERPTUV4Y2VwdGlvbih2YWx1ZS5tZXNzYWdlLCB2YWx1ZS5uYW1lKTtcbiAgICAgIGRlZXAgPSB0cnVlO1xuICAgICAgYnJlYWs7XG4gICAgY2FzZSAnRGF0YVZpZXcnOlxuICAgIGNhc2UgJ0ludDhBcnJheSc6XG4gICAgY2FzZSAnVWludDhBcnJheSc6XG4gICAgY2FzZSAnVWludDhDbGFtcGVkQXJyYXknOlxuICAgIGNhc2UgJ0ludDE2QXJyYXknO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yb21Qb2ludFxuICAgICAgICAgICAgICA/IEMuZnJvbVBvaW50KHZhbHVlKVxuICAgICAgICAgICAgICA6IG5ldyBDKHZhbHVlLngsIHZhbHVlLnksIHZhbHVlLnosIHZhbHVlLncpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0RPTVJlY3QnOlxuICAgICAgICBjYXNlICdET01SZWN0UmVhZE9ubHknOlxuICAgICAgICAgIEMgPSBnbG9iYWxbdHlwZV07XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNsb25lZCA9IEMuZnJvbVJlY3RcbiAgICAgICAgICAgICAgPyBDLmZyb21SZWN0KHZhbHVlKVxuICAgICAgICAgICAgICA6IG5ldyBDKHZhbHVlLngsIHZhbHVlLnksIHZhbHVlLndpZHRoLCB2YWx1ZS5oZWlnaHQpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0RPTU1hdHJpeCc6XG4gICAgICAgIGNhc2UgJ0RPTU1hdHJpeFJlYWRPbmx5JzpcbiAgICAgICAgICBDID0gZ2xvYmFsW3R5cGVdO1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjbG9uZWQgPSBDLmZyb21NYXRyaXhcbiAgICAgICAgICAgICAgPyBDLmZyb21NYXRyaXgodmFsdWUpXG4gICAgICAgICAgICAgIDogbmV3IEModmFsdWUpO1xuICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aHJvd1VucG9seWZpbGxhYmxlKHR5cGUpO1xuICAgICAgICAgIH0gYnJlYWs7XG4gICAgICAgIGNhc2UgJ0F1ZGlvRGF0YSc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AgICBwb2ludGVyIC09IGxlbmd0aDtcbiAgICAgIGlmIChwaWVjZUluZGV4ID4gNikgcmV0dXJuO1xuICAgICAgbnVtYmVyc1NlZW4gPSAwO1xuICAgICAgd2hpbGUgKGNocigpKSB7XG4gICAgICAgIGlwdjRQaWVjZSA9IG51bGw7XG4gICAgICAgIGlmIChudW1iZXJzU2VlbiA+IDApIHtcbiAgICAgICAgICBpZiAoY2hyKCkgPT0gJy4nICYmIG51bWJlcnNTZWVuIDwgNCkgcG9pbnRlcisrO1xuICAgICAgICAgIGVsc2UgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmICghZXhlYyhESUdJVCwgY2hyKCkpKSByZXR1cm47XG4gICAgICAgIHdoaWxlIChleGVjKERJR0lULCBjaHIoKSkpIHtcbiAgICAgICAgICBudW1iZXIgPSBwYXJzZUludChjaHIoKSwgMTApO1xuICAgICAgICAgIGlmIChpcHY0UGllY2UgPT09IG51bGwpIGlwdjRQaWVjZSA9IG51bWJlcjtcbiAgICAgICAgICBlbHNlIGlmIChpcHY0UGllY2UgPT0gMCkgcmV0dXJuO1xuICAgICAgICAgIGVsc2UgaXB2NFBpZWNlID0gaXB2NFBpZWNlICogMTAgKyBudW1iZXI7XG4gICAgICAgICAgaWYgKGlwdjRQaWVjZSA+IDI1NSkgcmV0dXJuO1xuICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgfVxuICAgICAgICBhZGRyZXNzW3BpZWNlSW5kZXhdID0gYWRkcmVzc1twaWVjZUluZGV4XSAqIDI1NiArIGlwdjRQaWVjZTtcbiAgICAgICAgbnVtYmVyc1NlZW4rKztcbiAgICAgICAgaWYgKG51bWJlcnNTZWVuID09IDIgfHwgbnVtYmVyc1NlZW4gPT0gNCkgcGllY2VJbmRleCsrO1xuICAgICAgfVxuICAgICAgaWYgKG51bWJlcnNTZWVuICE9IDQpIHJldHVybjtcbiAgICAgIGJyZWFrO1xuICAgIH0gZWxzZSBpZiAoY2hyKCkgPT0gJzonK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ZmZXI7XG4gICAgICAgICAgICBpZiAoc3RhdGVPdmVycmlkZSkge1xuICAgICAgICAgICAgICBpZiAodXJsLmlzU3BlY2lhbCgpICYmIHNwZWNpYWxTY2hlbWVzW3VybC5zY2hlbWVdID09IHVybC5wb3J0KSB1cmwucG9ydCA9IG51bGw7XG4gICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgICAgaWYgKHVybC5zY2hlbWUgPT0gJ2ZpbGUnKSB7XG4gICAgICAgICAgICAgIHN0YXRlID0gRklMRTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodXJsLmlzU3BlY2lhbCgpICYmIGJhc2UgJiYgYmFzZS5zY2hlbWUgPT0gdXJsLnNjaGVtZSkge1xuICAgICAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfUkVMQVRJVkVfT1JfQVVUSE9SSVRZO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh1cmwuaXNTcGVjaWFsKCkpIHtcbiAgICAgICAgICAgICAgc3RhdGUgPSBTUEVDSUFMX0FVVEhPUklUWV9TTEFTSEVTO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChjb2RlUG9pbnRzW3BvaW50ZXIgKyAxXSA9PSAnLycpIHtcbiAgICAgICAgICAgICAgc3RhdGUgPSBQQVRIX09SX0FVVEhPUklUWTtcbiAgICAgICAgICAgICAgcG9pbnRlcisrO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgdXJsLmNhbm5vdEJlQUJhc2VVUkwgPSB0cnVlO1xuICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIHN0YXRlID0gQ0FOTk9UX0JFX0FfQkFTRV9VUkxfUEFUSDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKCFzdGF0ZU92ZXJyaWRlKSB7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gTk9fU0NIRU1FO1xuICAgICAgICAgICAgcG9pbnRlciA9IDA7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2UgcmV0dXJuIElOVkFMSURfU0NIRU1FO1xuICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgTk9fU0NIRU1FOlxuICAgICAgICAgIGlmICghYmFzZSB8fCAoYmFzZS5jYW5ub3RCZUFCYXNlVVJMICYmIGNociAhPSAnIycpKSByZXR1cm4gSU5WQUxJRF9TQ0hFTUU7XG4gICAgICAgICAgaWYgKGJhc2UuY2Fubm90QmVBQmFzZVVSTCAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuc2NoZW1lID0gYmFzZS5zY2hlbWU7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHVybC5jYW5ub3RCZUFCYXNlVVJMID0gdHJ1ZTtcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICB9XG4gICAgICAgICAgc3RhdGUgPSBiYXNlLnNjaGVtZSA9PSAnZmlsZScgPyBGSUxFIDogUkVMQVRJVkU7XG4gICAgICAgICAgY29udGludWU7XG5cbiAgICAgICAgY2FzZSBTUEVDSUFMX1JFTEFUSVZFX09SX0FVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICcvJyAmJiBjb2RlUG9pbnRzW3BvaW50ZXIgKyAxXSA9PSAnLycpIHtcbiAgICAgICAgICAgIHN0YXRlID0gU1BFQ0lBTF9BVVRIT1JJVFlfSUdOT1JFX1NMQVNIRVM7XG4gICAgICAgICAgICBwb2ludGVyKys7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUkVMQVRJVkU7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgUEFUSF9PUl9BVVRIT1JJVFk6XG4gICAgICAgICAgaWYgKGNociA9PSAnLycpIHtcbiAgICAgICAgICAgIHN0YXRlID0gQVVUSE9SSVRZO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH1cblxuICAgICAgICBjYXNlIFJFTEFUSVZFOlxuICAgICAgICAgIHVybC5zY2hlbWUgPSBiYXNlLnNjaGVtZTtcbiAgICAgICAgICBpZiAoY2hyID09IEVPRikge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSBiYXNlLnF1ZXJ5O1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICcvJyB8fCAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFJFTEFUSVZFX1NMQVNIO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyID09ICc/Jykge1xuICAgICAgICAgICAgdXJsLnVzZXJuYW1lID0gYmFzZS51c2VybmFtZTtcbiAgICAgICAgICAgIHVybC5wYXNzd29yZCA9IGJhc2UucGFzc3dvcmQ7XG4gICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgIHVybC5wb3J0ID0gYmFzZS5wb3J0O1xuICAgICAgICAgICAgdXJsLnBhdGggPSBhcnJheVNsaWNlKGJhc2UucGF0aCk7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgIHVybC5xdWVyeSA9IGJhc2UucXVlcnk7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVybC51c2VybmFtZSA9IGJhc2UudXNlcm5hbWU7XG4gICAgICAgICAgICB1cmwucGFzc3dvcmQgPSBiYXNlLnBhc3N3b3JkO1xuICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICB1cmwucG9ydCA9IGJhc2UucG9ydDtcbiAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgdXJsLnBhdGgubGVuZ3RoLS07XG4gICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgUkVMQVRJVkVfU0xBU0g6XG4gICAgICAgICAgaWYgKHVybC5pc1NwZWNpYWwoKSAmJiAoY2hyID09ICcvJyB8fCBjaHIgPT0gJ1xcXFwnKSkge1xuICAgICAgICAgICAgc3RhdGUgPSBTUEVDSUFMX0FVVEhPUklUWV9JR05PUkVfU0xBU0hFUztcbiAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnLycpIHtcbiAgICAgICAgICAgIHN0YXRlID0gQVVUSE9SSVRZO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB1cmwudXNlcm5hbWUgPSBiYXNlLnVzZXJuYW1lO1xuICAgICAgICAgICAgdXJsLnBhc3N3b3JkID0gYmFzZS5wYXNzd29yZDtcbiAgICAgICAgICAgIHVybC5ob3N0ID0gYmFzZS5ob3N0O1xuICAgICAgICAgICAgdXJsLnBvcnQgPSBiYXNlLnBvcnQ7XG4gICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgU1BFQ0lBTF9BVVRIT1JJVFlfU0xBU0hFUzpcbiAgICAgICAgICBzdGF0ZSA9IFNQRUNJQUxfQVVUSE9SSVRZX0lHTk9SRV9TTEFTSEVTO1xuICAgICAgICAgIGlmIChjaHIgIT0gJy8nIHx8IGNoYXJBdChidWZmZXIsIHBvaW50ZXIgKyAxKSAhPSAnLycpIGNvbnRpbnVlO1xuICAgICAgICAgIHBvaW50ZXIrKztcbiAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIFNQRUNJQUxfQVVUSE9SSVRZX0lHTk9SRV9TTEFTSEVTOlxuICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmIGNociAhPSAnXFxcXCcpIHtcbiAgICAgICAgICAgIHN0YXRlID0gQVVUSE9SSVRZO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIEFVVEhPUklUWTpcbiAgICAgICAgICBpZiAoY2hyID09ICdAJykge1xuICAgICAgICAgICAgaWYgKHNlZW5BdCkgYnVmZmVyID0gJyU0MCcgKyBidWZmZXI7XG4gICAgICAgICAgICBzZWVuQXQgPSB0cnVlO1xuICAgICAgICAgICAgYnVmZmVyQ29kZVBvaW50cyA9IGFycmF5RnJvbShidWZmZXIpO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBidWZmZXJDb2RlUG9pbnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgIHZhciBjb2RlUG9pbnQgPSBidWZmZXJDb2RlUG9pbnRzW2ldO1xuICAgICAgICAgICAgICBpZiAoY29kZVBvaW50ID09ICc6JyAmJiAhc2VlblBhc3N3b3JkVG9rZW4pIHtcbiAgICAgICAgICAgICAgICBzZWVuUGFzc3dvcmRUb2tlbiA9IHRydWU7XG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgdmFyIGVuY29kZWRDb2RlUG9pbnRzID0gcGVyY2VudEVuY29kZShjb2RlUG9pbnQsIHVzZXJpbmZvUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgICAgIGlmIChzZWVuUGFzc3dvcmRUb2tlbikgdXJsLnBhc3N3b3JkICs9IGVuY29kZWRDb2RlUG9pbnRzO1xuICAgICAgICAgICAgICBlbHNlIHVybC51c2VybmFtZSArPSBlbmNvZGVkQ29kZVBvaW50cztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJ1ZmZlciA9ICcnO1xuICAgICAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgICAgICBjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICc/JyB8fCBjaHIgPT0gJyMnIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZi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lY2lhbCgpICYmIGJ1ZmZlciA9PSAnJykgcmV0dXJuIElOVkFMSURfSE9TVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlICYmIGJ1ZmZlciA9PSAnJyAmJiAodXJsLmluY2x1ZGVzQ3JlZGVudGlhbHMoKSB8fCB1cmwucG9ydCAhPT0gbnVsbCkpIHJldHVybjtcbiAgICAgICAgICAgIGZhaWx1cmUgPSB1cmwucGFyc2VIb3N0KGJ1ZmZlcik7XG4gICAgICAgICAgICBpZiAoZmFpbHVyZSkgcmV0dXJuIGZhaWx1cmU7XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIGlmIChzdGF0ZU92ZXJyaWRlKSByZXR1cm47XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKGNociA9PSAnWycpIHNlZW5CcmFja2V0ID0gdHJ1ZTtcbiAgICAgICAgICAgIGVsc2UgaWYgKGNociA9PSAnXScpIHNlZW5CcmFja2V0ID0gZmFsc2U7XG4gICAgICAgICAgICBidWZmZXIgKz0gY2hyO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQT1JUOlxuICAgICAgICAgIGlmIChleGVjKERJR0lULCBjaHIpKSB7XG4gICAgICAgICAgICBidWZmZXIgKz0gY2hyO1xuICAgICAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgICAgICBjaHIgPT0gRU9GIHx8IGNociA9PSAnLycgfHwgY2hyID09ICc/JyB8fCBjaHIgPT0gJyMnIHx8XG4gICAgICAgICAgICAoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpIHx8XG4gICAgICAgICAgICBzdGF0ZU92ZXJyaWRlXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBpZiAoYnVmZmVyICE9ICcnKSB7XG4gICAgICAgICA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gICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgICAgdXJsLmhvc3QgPSBiYXNlLmhvc3Q7XG4gICAgICAgICAgICAgIHVybC5wYXRoID0gYXJyYXlTbGljZShiYXNlLnBhdGgpO1xuICAgICAgICAgICAgICB1cmwucXVlcnkgPSBiYXNlLnF1ZXJ5O1xuICAgICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgICAgc3RhdGUgPSBGUkFHTUVOVDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGlmICghc3RhcnRzV2l0aFdpbmRvd3NEcml2ZUxldHRlcihqb2luKGFycmF5U2xpY2UoY29kZVBvaW50cywgcG9pbnRlciksICcnKSkpIHtcbiAgICAgICAgICAgICAgICB1cmwuaG9zdCA9IGJhc2UuaG9zdDtcbiAgICAgICAgICAgICAgICB1cmwucGF0aCA9IGFycmF5U2xpY2UoYmFzZS5wYXRoKTtcbiAgICAgICAgICAgICAgICB1cmwuc2hvcnRlblBhdGgoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzdGF0ZSA9IFBBVEg7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9IGJyZWFrO1xuXG4gICAgICAgIGNhc2UgRklMRV9TTEFTSDpcbiAgICAgICAgICBpZiAoY2hyID09ICcvJyB8fCBjaHIgPT0gJ1xcXFwnKSB7XG4gICAgICAgICAgICBzdGF0ZSA9IEZJTEVfSE9TVDtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoYmFz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ICAgICAgaWYgKHN0YXRlT3ZlcnJpZGUpIHJldHVybjtcbiAgICAgICAgICAgICAgYnVmZmVyID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUEFUSF9TVEFSVDtcbiAgICAgICAgICAgIH0gY29udGludWU7XG4gICAgICAgICAgfSBlbHNlIGJ1ZmZlciArPSBjaHI7XG4gICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIX1NUQVJUOlxuICAgICAgICAgIGlmICh1cmwuaXNTcGVjaWFsKCkpIHtcbiAgICAgICAgICAgIHN0YXRlID0gUEFUSDtcbiAgICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmIGNociAhPSAnXFxcXCcpIGNvbnRpbnVlO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUgJiYgY2hyID09ICc/Jykge1xuICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IFFVRVJZO1xuICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlT3ZlcnJpZGUgJiYgY2hyID09ICcjJykge1xuICAgICAgICAgICAgdXJsLmZyYWdtZW50ID0gJyc7XG4gICAgICAgICAgICBzdGF0ZSA9IEZSQUdNRU5UO1xuICAgICAgICAgIH0gZWxzZSBpZiAoY2hyICE9IEVPRikge1xuICAgICAgICAgICAgc3RhdGUgPSBQQVRIO1xuICAgICAgICAgICAgaWYgKGNociAhPSAnLycpIGNvbnRpbnVlO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBQQVRIOlxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIGNociA9PSBFT0YgfHwgY2hyID09ICcvJyB8fFxuICAgICAgICAgICAgKGNociA9PSAnXFxcXCcgJiYgdXJsLmlzU3BlY2lhbCgpKSB8fFxuICAgICAgICAgICAgKCFzdGF0ZU92ZXJyaWRlICYmIChjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpKVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgaWYgKGlzRG91YmxlRG90KGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgdXJsLnNob3J0ZW5QYXRoKCk7XG4gICAgICAgICAgICAgIGlmIChjaHIgIT0gJy8nICYmICEoY2hyID09ICdcXFxcJyAmJiB1cmwuaXNTcGVjaWFsKCkpKSB7XG4gICAgICAgICAgICAgICAgcHVzaCh1cmwucGF0aCwgJycpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGlzU2luZ2xlRG90KGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgaWYgKGNociAhPSAnLycgJiYgIShjaHIgPT0gJ1xcXFwnICYmIHVybC5pc1NwZWNpYWwoKSkpIHtcbiAgICAgICAgICAgICAgICBwdXNoKHVybC5wYXRoLCAnJyk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGlmICh1cmwuc2NoZW1lID09ICdmaWxlJyAmJiAhdXJsLnBhdGgubGVuZ3RoICYmIGlzV2luZG93c0RyaXZlTGV0dGVyKGJ1ZmZlcikpIHtcbiAgICAgICAgICAgICAgICBpZiAodXJsLmhvc3QpIHVybC5ob3N0ID0gJyc7XG4gICAgICAgICAgICAgICAgYnVmZmVyID0gY2hhckF0KGJ1ZmZlciwgMCkgKyAnOic7IC8vIG5vcm1hbGl6ZSB3aW5kb3dzIGRyaXZlIGxldHRlclxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHB1c2godXJsLnBhdGgsIGJ1ZmZlcik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBidWZmZXIgPSAnJztcbiAgICAgICAgICAgIGlmICh1cmwuc2NoZW1lID09ICdmaWxlJyAmJiAoY2hyID09IEVPRiB8fCBjaHIgPT0gJz8nIHx8IGNociA9PSAnIycpKSB7XG4gICAgICAgICAgICAgIHdoaWxlICh1cmwucGF0aC5sZW5ndGggPiAxICYmIHVybC5wYXRoWzBdID09PSAnJykge1xuICAgICAgICAgICAgICAgIHNoaWZ0KHVybC5wYXRoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGNociA9PSAnPycpIHtcbiAgICAgICAgICAgICAgdXJsLnF1ZXJ5ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNociA9PSAnIycpIHtcbiAgICAgICAgICAgICAgdXJsLmZyYWdtZW50ID0gJyc7XG4gICAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGJ1ZmZlciArPSBwZXJjZW50RW5jb2RlKGNociwgcGF0aFBlcmNlbnRFbmNvZGVTZXQpO1xuICAgICAgICAgIH0gYnJlYWs7XG5cbiAgICAgICAgY2FzZSBDQU5OT1RfQkVfQV9CQVNFX1VSTF9QQVRIOlxuICAgICAgICAgIGlmIChjaHIgPT0gJz8nKSB7XG4gICAgICAgICAgICB1cmwucXVlcnkgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gUVVFUlk7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPSAnJztcbiAgICAgICAgICAgIHN0YXRlID0gRlJBR01FTlQ7XG4gICAgICAgICAgfSBlbHNlIGlmIChjaHIgIT0gRU9GKSB7XG4gICAgICAgICAgICB1cmwucGF0aFswXSArPSBwZXJjZW50RW5jb2RlKGNociwgQzBDb250cm9sUGVyY2VudEVuY29kZVNldCk7XG4gICAgICAgICAgfSBicmVhaztcblxuICAgICAgICBjYXNlIFFVRVJZOlxuICAgICAgICAgIGlmICghc3RhdGVPdmVycmlkZSAmJiBjaHIgPT0gJyMnKSB7XG4gICAgICAgICAgICB1cmwuZnJhZ21lbnQgPS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pZiAoZGVsZWdhdGVSZXN1bHQpIHtcbiAgICAgICAgICAgIGlmIChkZWxlZ2F0ZVJlc3VsdCA9PT0gQ29udGludWVTZW50aW5lbCkgY29udGludWU7XG4gICAgICAgICAgICByZXR1cm4gZGVsZWdhdGVSZXN1bHQ7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGNvbnRleHQubWV0aG9kID09PSBcIm5leHRcIikge1xuICAgICAgICAgIC8vIFNldHRpbmcgY29udGV4dC5fc2VudCBmb3IgbGVnYWN5IHN1cHBvcnQgb2YgQmFiZWwnc1xuICAgICAgICAgIC8vIGZ1bmN0aW9uLnNlbnQgaW1wbGVtZW50YXRpb24uXG4gICAgICAgICAgY29udGV4dC5zZW50ID0gY29udGV4dC5fc2VudCA9IGNvbnRleHQuYXJnO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoY29udGV4dC5tZXRob2QgPT09IFwidGhyb3dcIikge1xuICAgICAgICAgIGlmIChzdGF0ZSA9PT0gR2VuU3RhdGVTdXNwZW5kZWRTdGFydCkge1xuICAgICAgICAgICAgc3RhdGUgPSBHZW5TdGF0ZUNvbXBsZXRlZDtcbiAgICAgICAgICAgIHRocm93IGNvbnRleHQuYXJnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQuZGlzcGF0Y2hFeGNlcHRpb24oY29udGV4dC5hcmcpO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoY29udGV4dC5tZXRob2QgPT09IFwicmV0dXJuXCIpIHtcbiAgICAgICAgICBjb250ZXh0LmFicnVwdChcInJldHVyblwiLCBjb250ZXh0LmFyZyk7XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0ZSA9IEdlblN0YXRlRXhlY3V0aW5nO1xuXG4gICAgICAgIHZhciByZWNvcmQgPSB0cnlDYXRjaChpbm5lckZuLCBzZWxmLCBjb250ZXh0KTtcbiAgICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcIm5vcm1hbFwiKSB7XG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PSBudWxsO1xuXG4gICAgICB0aGlzLm1ldGhvZCA9IFwibmV4dFwiO1xuICAgICAgdGhpcy5hcmcgPSB1bmRlZmluZWQ7XG5cbiAgICAgIHRoaXMudHJ5RW50cmllcy5mb3JFYWNoKHJlc2V0VHJ5RW50cnkpO1xuXG4gICAgICBpZiAoIXNraXBUZW1wUmVzZXQpIHtcbiAgICAgICAgZm9yICh2YXIgbmFtZSBpbiB0aGlzKSB7XG4gICAgICAgICAgLy8gTm90IHN1cmUgYWJvdXQgdGhlIG9wdGltYWwgb3JkZXIgb2YgdGhlc2UgY29uZGl0aW9uczpcbiAgICAgICAgICBpZiAobmFtZS5jaGFyQXQoMCkgPT09IFwidFwiICYmXG4gICAgICAgICAgICAgIGhhc093bi5jYWxsKHRoaXMsIG5hbWUpICYmXG4gICAgICAgICAgICAgICFpc05hTigrbmFtZS5zbGljZSgxKSkpIHtcbiAgICAgICAgICAgIHRoaXNbbmFtZV0gPSB1bmRlZmluZWQ7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIHN0b3A6IGZ1bmN0aW9uKCkge1xuICAgICAgdGhpcy5kb25lID0gdHJ1ZTtcblxuICAgICAgdmFyIHJvb3RFbnRyeSA9IHRoaXMudHJ5RW50cmllc1swXTtcbiAgICAgIHZhciByb290UmVjb3JkID0gcm9vdEVudHJ5LmNvbXBsZXRpb247XG4gICAgICBpZiAocm9vdFJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgdGhyb3cgcm9vdFJlY29yZC5hcmc7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiB0aGlzLnJ2YWw7XG4gICAgfSxcblxuICAgIGRpc3BhdGNoRXhjZXB0aW9uOiBmdW5jdGlvbihleGNlcHRpb24pIHtcbiAgICAgIGlmICh0aGlzLmRvbmUpIHtcbiAgICAgICAgdGhyb3cgZXhjZXB0aW9uO1xuICAgICAgfVxuXG4gICAgICB2YXIgY29udGV4dCA9IHR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ICAgfVxuXG4gICAgICAgIGlmIChlbnRyeS50cnlMb2MgPD0gdGhpcy5wcmV2KSB7XG4gICAgICAgICAgdmFyIGhhc0NhdGNoID0gaGFzT3duLmNhbGwoZW50cnksIFwiY2F0Y2hMb2NcIik7XG4gICAgICAgICAgdmFyIGhhc0ZpbmFsbHkgPSBoYXNPd24uY2FsbChlbnRyeSwgXCJmaW5hbGx5TG9jXCIpO1xuXG4gICAgICAgICAgaWYgKGhhc0NhdGNoICYmIGhhc0ZpbmFsbHkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnByZXYgPCBlbnRyeS5jYXRjaExvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmNhdGNoTG9jLCB0cnVlKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5wcmV2IDwgZW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmZpbmFsbHlMb2MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNDYXRjaCkge1xuICAgICAgICAgICAgaWYgKHRoaXMucHJldiA8IGVudHJ5LmNhdGNoTG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuY2F0Y2hMb2MsIHRydWUpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIGlmIChoYXNGaW5hbGx5KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5wcmV2IDwgZW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAgICAgICByZXR1cm4gaGFuZGxlKGVudHJ5LmZpbmFsbHlMb2MpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcInRyeSBzdGF0ZW1lbnQgd2l0aG91dCBjYXRjaCBvciBmaW5hbGx5XCIpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG5cbiAgICBhYnJ1cHQ6IGZ1bmN0aW9uKHR5cGUsIGFyZykge1xuICAgICAgZm9yICh2YXIgaSA9IHRoaXMudHJ5RW50cmllcy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICB2YXIgZW50cnkgPSB0aGlzLnRyeUVudHJpZXNbaV07XG4gICAgICAgIGlmIChlbnRyeS50cnlMb2MgPD0gdGhpcy5wcmV2ICYmXG4gICAgICAgICAgICBoYXNPd24uY2FsbChlbnRyeSwgXCJmaW5hbGx5TG9jXCIpICYmXG4gICAgICAgICAgICB0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgdmFyIGZpbmFsbHlFbnRyeSA9IGVudHJ5O1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChmaW5hbGx5RW50cnkgJiZcbiAgICAgICAgICAodHlwZSA9PT0gXCJicmVha1wiIHx8XG4gICAgICAgICAgIHR5cGUgPT09IFwiY29udGludWVcIikgJiZcbiAgICAgICAgICBmaW5hbGx5RW50cnkudHJ5TG9jIDw9IGFyZyAmJlxuICAgICAgICAgIGFyZyA8PSBmaW5hbGx5RW50cnkuZmluYWxseUxvYykge1xuICAgICAgICAvLyBJZ25vcmUgdGhlIGZpbmFsbHkgZW50cnkgaWYgY29udHJvbCBpcyBub3QganVtcGluZyB0byBhXG4gICAgICAgIC8vIGxvY2F0aW9uIG91dHNpZGUgdGhlIHRyeS9jYXRjaCBibG9jay5cbiAgICAgICAgZmluYWxseUVudHJ5ID0gbnVsbDtcbiAgICAgIH1cblxuICAgICAgdmFyIHJlY29yZCA9IGZpbmFsbHlFbnRyeSA/IGZpbmFsbHlFbnRyeS5jb21wbGV0aW9uIDoge307XG4gICAgICByZWNvcmQudHlwZSA9IHR5cGU7XG4gICAgICByZWNvcmQuYXJnID0gYXJnO1xuXG4gICAgICBpZiAoZmluYWxseUVud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cnlTZWxlY3RvciIsImFwcGVuZCJdLCJzb3VyY2VSb290IjoiIn0= \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 7481c68..c93d4e8 100644 --- a/dist/index.html +++ b/dist/index.html @@ -9,6 +9,8 @@ -
        +
        +
          +
          diff --git a/src/index.html b/src/index.html index d1535ef..91320b1 100644 --- a/src/index.html +++ b/src/index.html @@ -8,9 +8,9 @@ -
          -
            + +
              diff --git a/src/style.css b/src/style.css index eac4c1d..871c4f7 100644 --- a/src/style.css +++ b/src/style.css @@ -14,6 +14,58 @@ body { font-size: 10px; } +main { + display: flex; +} + +main section { + padding-top: 15px; +} + +#display-items { + display: flex; + flex-wrap: wrap; + justify-content: center; + list-style: none; + box-sizing: border-box; +} + +#display-items li { + width: 20%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + flex-grow: 2; + box-sizing: border-box; +} + +#display-items li img { + width: 100%; + max-width: 100px; + filter: grayscale(100%); + transition: filter 500ms; +} + +#display-items li:hover img { + filter: grayscale(0%); +} + +#display-items li:hover { + box-shadow: 1px 1px 10px #ccba59; + border-radius: 10px; +} + +.pokemon-name { + color: white; + opacity: 0; + transition: opacity 500ms; +} + +#display-items li:hover .pokemon-name { + opacity: 1; +} + aside { width: 30%; box-sizing: border-box; From f092958cd9bae469c6aa1041e37824f64e4b10c4 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:25:12 +0100 Subject: [PATCH 09/42] Add comment button on homepage --- src/modules/create_listhtml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/create_listhtml.js b/src/modules/create_listhtml.js index 675f147..708691b 100644 --- a/src/modules/create_listhtml.js +++ b/src/modules/create_listhtml.js @@ -1,12 +1,13 @@ export const listHtml = (result) => `

              ${result.name}

              image + `; /*

              - + */ export const appendListItem = (result) => { const listItem = document.createElement('li'); From ef2f963af5277018715454ad3d57d4ada69faacc Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:25:44 +0100 Subject: [PATCH 10/42] Add style for pokemon name and comment button --- src/style.css | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/style.css b/src/style.css index 871c4f7..de64759 100644 --- a/src/style.css +++ b/src/style.css @@ -38,6 +38,7 @@ main section { align-items: center; flex-grow: 2; box-sizing: border-box; + padding: 10px; } #display-items li img { @@ -57,15 +58,33 @@ main section { } .pokemon-name { - color: white; + color: #e2d6a8; opacity: 0; transition: opacity 500ms; + font-size: 16px; + padding-bottom: 10px; } #display-items li:hover .pokemon-name { opacity: 1; } +#display-items button { + color: black; + opacity: 0; + transition: opacity 500ms; + font-size: 12px; + background-color: #e2d6a8; + border-radius: 6px; + margin: 10px; + padding: 4px; + border: none; +} + +#display-items li:hover button { + opacity: 1; +} + aside { width: 30%; box-sizing: border-box; From 95d71a59a20f9851da1c36862240f0c0a369e10e Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:36:21 +0100 Subject: [PATCH 11/42] Active popup --- src/index.html | 50 +++++- src/modules/app.js | 14 +- src/style.css | 380 ++++++++++++++++++++++++++------------------- 3 files changed, 270 insertions(+), 174 deletions(-) diff --git a/src/index.html b/src/index.html index 91320b1..7bf9dd6 100644 --- a/src/index.html +++ b/src/index.html @@ -10,7 +10,55 @@
              -
                +
                +
                  + + + + +
                  diff --git a/src/modules/app.js b/src/modules/app.js index 535ba39..5ca3dd5 100644 --- a/src/modules/app.js +++ b/src/modules/app.js @@ -1,28 +1,23 @@ import api from './api'; import { appendListItem } from './create_listhtml'; - -/* import './like_listener'; -import './load_pokemon'; import './like_listener'; -import './load_pokemon'; +//import './load_pokemon'; import likeListener from './like_listener'; import appendNoOFLikes from './append_no_of_likes'; -import { appendCount } from './counter'; +//import { appendCount } from './counter'; import { popupInit } from './popup'; -*/ + export const displayItems = async () => { const displayItems = await api.getDisplayItems(); displayItems.forEach(appendListItem); - /* appendCount(); + //appendCount(); popupInit(api); likeListener(); const likes = await api.getLikes(); appendNoOFLikes(likes); - */ }; -/* export const displayLess = async () => { if (api.POCKEMON_COUNT > 6) { api.POCKEMON_COUNT -= 6; @@ -34,6 +29,5 @@ export const displayLess = async () => { appendCount(); } }; -*/ export default displayItems; diff --git a/src/style.css b/src/style.css index de64759..53b6d4a 100644 --- a/src/style.css +++ b/src/style.css @@ -22,6 +22,162 @@ main section { padding-top: 15px; } +aside { + width: 30%; + box-sizing: border-box; + height: 100vh; + background-color: antiquewhite; +} + +.popup-hidden { + display: none; +} + +.popup-modal { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + overflow-y: scroll; + z-index: 999; + background: #171618; + border-radius: 16px; + padding: 30px; + padding-top: 10px; + color: #fc0; + color: white; +} + +.popup-modal::-webkit-scrollbar { + width: 0; +} + +.popup-datas { + display: flex; + flex-direction: column; +} + +.popup-pokemon { + text-align: center; +} + +.pokemon-characteristics { + display: flex; + flex-direction: row; + flex-wrap: wrap; + border-radius: 10px; + margin: 26px; + color: white; + font-size: 20px; + align-content: center; + align-items: center; + justify-content: center; + list-style: none; + height: 201px; +} + +.pokemon-characteristics, +.pokemon-comments, +.popup-close { + display: flex; + justify-content: end; +} + +.pokemon-characteristics li span { + margin: 10px; +} + +.popup-image { + text-align: center; + margin: 20px 0; + border-radius: 8px; +} + +.popup-image img { + max-width: 300px; +} + +h4 { + margin: 20px 0 10px 0; + text-align: left; +} + +.pokemon-comments { + border-radius: 10px; + margin: 6px; + display: flex; + justify-content: center; + font-size: 16px; + background: #302e37; + height: 100px; + overflow: scroll; +} + +.pokemon-comments li { + margin: 5px; +} + +.pokemon-characteristics li { + margin: 20px; +} + +.pokemon-characteristics li:nth-child(odd) { + color: yellow; +} + +.pokemon-characteristics, +.pokemon-comments { + display: flex; + flex-direction: column; + align-items: flex-start; +} + +.pokemon-comments::-webkit-scrollbar { + width: 0; +} + +.popup-modal i { + font-size: 40px; +} + +form { + display: flex; + flex-direction: column; + align-items: center; +} + +form input, +form textarea { + margin: 5px; + width: 300px; + font-size: 14px; + line-height: 20px; + border-radius: 5px; + border: 1px solid cadetblue; + padding: 10px; +} + +.add-comment-form button { + background-color: white; + padding: 10px; + border-radius: 10px; + border: 1px solid cadetblue; + margin: 5px; +} + +.popup-close { + display: flex; + justify-content: end; + position: fixed; + right: 30px; +} + +.popup-pokemon h3 { + font-size: 30px; + margin: 20px 0; +} + #display-items { display: flex; flex-wrap: wrap; @@ -85,11 +241,67 @@ main section { opacity: 1; } -aside { - width: 30%; - box-sizing: border-box; - height: 100vh; - background-color: antiquewhite; +@media (min-width: 750px) { + header { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + } + + #display-items { + grid-template-columns: 250px 250px 250px; + } + + #load-buttons { + margin: 0; + width: 100%; + } + + .pokemon-characteristics { + height: auto; + } + + .popup-close { + right: 120px; + cursor: pointer; + } + + .popup-modal { + top: 100px; + left: 100px; + right: 100px; + bottom: 100px; + } + + .pokemon-characteristics i { + font-size: 25px; + margin: 10px; + } + + .pokemon-characteristics li { + margin: 5px; + display: flex; + justify-content: space-around; + width: 100%; + } + + .popup-image { + flex-grow: 2; + } + + .popup-pokemon { + display: flex; + align-items: center; + } + + .popup-hidden { + display: none; + } + + form { + flex-direction: row; + } } /* @@ -212,164 +424,6 @@ li { margin: 50px; } -.popup-hidden { - display: none; -} - -.popup-modal { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow-y: scroll; - z-index: 999; - background: #171618; - border-radius: 16px; - padding: 30px; - padding-top: 10px; - color: #fc0; - color: white; -} - -.popup-modal::-webkit-scrollbar { - width: 0; -} - -.popup-datas { - display: flex; - flex-direction: column; -} - -.popup-pokemon { - text-align: center; -} - -.pokemon-characteristics { - display: flex; - flex-direction: row; - flex-wrap: wrap; - border-radius: 10px; - margin: 26px; - color: white; - font-size: 20px; - align-content: center; - align-items: center; - justify-content: center; - list-style: none; - height: 201px; -} - -.pokemon-characteristics, -.pokemon-comments, -.popup-close { - display: flex; - justify-content: end; -} - -.pokemon-characteristics li span { - margin: 10px; -} - -.popup-image { - text-align: center; - margin: 20px 0; - border-radius: 8px; -} - -.popup-image img { - max-width: 300px; -} - -h4 { - margin: 20px 0 10px 0; - text-align: left; -} - -.pokemon-comments { - border-radius: 10px; - margin: 6px; - display: flex; - justify-content: center; - font-size: 16px; - background: #302e37; - height: 100px; - overflow: scroll; -} - -.pokemon-comments li { - margin: 5px; -} - -.pokemon-characteristics li { - margin: 20px; -} - -.pokemon-characteristics li:nth-child(odd) { - color: yellow; -} - -.pokemon-characteristics, -.pokemon-comments { - display: flex; - flex-direction: column; - align-items: flex-start; -} - -.pokemon-comments::-webkit-scrollbar { - width: 0; -} - -.popup-modal i { - font-size: 40px; -} - -form { - display: flex; - flex-direction: column; - align-items: center; -} - -form input, -form textarea { - margin: 5px; - width: 300px; - font-size: 14px; - line-height: 20px; - border-radius: 5px; - border: 1px solid cadetblue; - padding: 10px; -} - -.add-comment-form button { - background-color: white; - padding: 10px; - border-radius: 10px; - border: 1px solid cadetblue; - margin: 5px; -} - -.popup-close { - display: flex; - justify-content: end; - position: fixed; - right: 30px; -} - -.popup-pokemon h3 { - font-size: 30px; - margin: 20px 0; -} - -#display-items { - display: grid; - width: 100%; - max-width: 800px; - grid-template-columns: 1fr; - grid-gap: 10px; - align-items: center; -} - .centered-column { display: flex; flex-direction: column; From f2a14c9a7ccd18a00fb7a7738c999085d338716c Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:37:55 +0100 Subject: [PATCH 12/42] Desactivate comments --- src/index.html | 4 ++-- src/modules/popup.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.html b/src/index.html index 7bf9dd6..1f0ac1d 100644 --- a/src/index.html +++ b/src/index.html @@ -40,10 +40,10 @@

                  ${pokemon_name}

                  -
                  +
                  diff --git a/src/modules/popup.js b/src/modules/popup.js index e1f81e3..071ecb1 100644 --- a/src/modules/popup.js +++ b/src/modules/popup.js @@ -1,6 +1,6 @@ import { selector, selectorAll } from './tools.js'; -import { appendCommentItem } from './create_listcomment'; -import { appendCountComment } from './counter'; +//import { appendCommentItem } from './create_listcomment'; +//import { appendCountComment } from './counter'; export const popupInit = (connector) => { selectorAll('button[id^="comment-"]').forEach((element) => { @@ -17,11 +17,11 @@ export const popupInit = (connector) => { const comments = await connector.getComments(idPokemon); if (comments.length > 0) { - comments.forEach(appendCommentItem); + //comments.forEach(appendCommentItem); } else { selector('.pokemon-comments').innerHTML = 'No comment yet.'; } - appendCountComment(); + //appendCountComment(); selector('.popup-modal').classList.remove('popup-hidden'); } else { selector('.pokemon-comments').innerHTML = ''; From 716a436739d9a7d8421164e862214b4a2d2ef840 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:38:38 +0100 Subject: [PATCH 13/42] Desactivate comments --- src/modules/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/popup.js b/src/modules/popup.js index 071ecb1..9475e8b 100644 --- a/src/modules/popup.js +++ b/src/modules/popup.js @@ -19,7 +19,7 @@ export const popupInit = (connector) => { if (comments.length > 0) { //comments.forEach(appendCommentItem); } else { - selector('.pokemon-comments').innerHTML = 'No comment yet.'; + // selector('.pokemon-comments').innerHTML = 'No comment yet.'; } //appendCountComment(); selector('.popup-modal').classList.remove('popup-hidden'); From 10154dc1bcebc34b255e56e527942f3f2856ad30 Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 13:45:32 +0100 Subject: [PATCH 14/42] Activate popup and add style --- src/modules/popup.js | 6 +++++- src/style.css | 13 +++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/modules/popup.js b/src/modules/popup.js index 9475e8b..6bb3421 100644 --- a/src/modules/popup.js +++ b/src/modules/popup.js @@ -7,6 +7,8 @@ export const popupInit = (connector) => { element.addEventListener('click', async (event) => { if (selector('.popup-modal').classList.contains('popup-hidden')) { selector('body').classList.add('popup-open'); + selector('main').classList.add('desactivate'); + const idPokemon = event.target.id.match(/\d+/g)[0]; const pokemon = await connector.getPokemonFromId(idPokemon); selector('#pokemon_name').innerHTML = pokemon.name; @@ -24,8 +26,9 @@ export const popupInit = (connector) => { //appendCountComment(); selector('.popup-modal').classList.remove('popup-hidden'); } else { - selector('.pokemon-comments').innerHTML = ''; + //selector('.pokemon-comments').innerHTML = ''; selector('body').classList.remove('popup-open'); + selector('main').classList.remove('desactivate'); selector('.popup-modal').classList.add('popup-hidden'); } }); @@ -33,6 +36,7 @@ export const popupInit = (connector) => { selector('.popup-close').addEventListener('click', () => { selector('body').classList.remove('popup-open'); + selector('main').classList.remove('desactivate'); selector('.popup-modal').classList.add('popup-hidden'); }); }; diff --git a/src/style.css b/src/style.css index 53b6d4a..9ec24c5 100644 --- a/src/style.css +++ b/src/style.css @@ -14,8 +14,17 @@ body { font-size: 10px; } +body.popup-open { + overflow: hidden; +} + +.desactivate { + background: yellow; +} + main { display: flex; + transition: background 1s; } main section { @@ -309,10 +318,6 @@ body * { font-size: 1.2rem; } -body.popup-open { - overflow: hidden; -} - h1 { display: inline; } From 84524f2ddd9c23419b6c33454a49d3ab41b1f97b Mon Sep 17 00:00:00 2001 From: jihaneh Date: Fri, 4 Feb 2022 14:24:45 +0100 Subject: [PATCH 15/42] Update popup style --- src/index.html | 27 ++++++++++++--------------- src/modules/app.js | 11 +++++------ src/modules/popup.js | 10 +++++----- src/style.css | 38 ++++++++++++++++++-------------------- 4 files changed, 40 insertions(+), 46 deletions(-) diff --git a/src/index.html b/src/index.html index 1f0ac1d..87aaf15 100644 --- a/src/index.html +++ b/src/index.html @@ -15,28 +15,25 @@
                  +
                  From dab92dbbad0d0f0fa9ccd60685b011d06373d51d Mon Sep 17 00:00:00 2001 From: Jihane Aflih Date: Fri, 18 Feb 2022 13:56:48 +0100 Subject: [PATCH 41/42] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cefbcc..483c29d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This project shows pokemon characters. This project is deployed on a github page on the link below: -- https://jihaneh.github.io/pokemon/ +- https://jaflih.github.io/pokemon/ ## Getting Started @@ -49,7 +49,7 @@ To get the content of this project locally you need to run this command in your 👤 **JihaneH** -- GitHub: [@githubhandle](https://github.com/jihaneH) +- GitHub: [@githubhandle](https://github.com/jaflih) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/jihanne/) From e04e79b247c956d5d72e14c7d2ff0a851b498c75 Mon Sep 17 00:00:00 2001 From: Jihane Aflih Date: Fri, 8 Apr 2022 11:31:10 +0200 Subject: [PATCH 42/42] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 483c29d..b265e74 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ This project is deployed on a github page on the link below: To get the content of this project locally you need to run this command in your terminal: ``` -- git clone your https://github.com/jihaneH/pokemon.git +- git clone your https://github.com/jaflih/pokemon.git - cd project pokemon - npm install - npm start @@ -47,10 +47,10 @@ To get the content of this project locally you need to run this command in your ## Author -👤 **JihaneH** +👤 **Jaflih** - GitHub: [@githubhandle](https://github.com/jaflih) -- LinkedIn: [LinkedIn](https://www.linkedin.com/in/jihanne/) +- LinkedIn: [LinkedIn](https://www.linkedin.com/in/jaflih/) 👤 **Matovu Farid Nkoba**