1(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function r(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function n(e,r,n){return r=a(r),function(e,r){if(r&&("object"==t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(e,i()?Reflect.construct(r,n||[],a(e).constructor):r.apply(e,n))}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(i())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&c(o,r.prototype),o}(t,arguments,a(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)},o(t)}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var u=function(t){function r(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n(this,r)).selectors={articles:"[data-article]",articlesWrapper:".main-blog__articles",paginationsWrapper:".main-blog__pagination",btnLoadMore:"btn--load-more",inputNextLink:"[data-next-link]"},t.paginationsWrapper=t.querySelector(t.selectors.paginationsWrapper),t.articlesWrapper=t.querySelector(t.selectors.articlesWrapper),t.btnLoadMore=t.querySelector(t.selectors.btnLoadMore),t.loadMore(),t.renderCount(),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(r,t),o=r,i=[{key:"loadMore",value:function(){var t=this;this.addEventListener("click",(function(e){if(e.target.classList.contains(t.selectors.btnLoadMore)){var r=t.querySelector(t.selectors.inputNextLink).value;e.currentTarget.disabled=!0,fetch(r).then((function(t){return t.text()})).then((function(e){var r=(new DOMParser).parseFromString(e,"text/html");t.articlesWrapper.innerHTML+=r.querySelector(t.selectors.articlesWrapper).innerHTML,t.paginationsWrapper.innerHTML=r.querySelector(t.selectors.paginationsWrapper).innerHTML,t.renderCount()}))}}))}},{key:"renderCount",value:function(t){var e=this.querySelectorAll("[data-blog-card]").length;this.querySelectorAll("[data-article-count]").forEach((function(t){t.innerHTML=e}))}}],i&&e(o.prototype,i),a&&e(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,i,a}(o(HTMLElement));customElements.get("main-blog")||customElements.define("main-blog",u)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.