mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
12 lines
56 KiB
JavaScript
12 lines
56 KiB
JavaScript
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,n){"use strict";function r(e){return"[object Array]"===E.call(e)}function o(e){return"[object ArrayBuffer]"===E.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function u(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function a(e){return"number"==typeof e}function s(e){return void 0===e}function f(e){return null!==e&&"object"==typeof e}function l(e){return"[object Date]"===E.call(e)}function p(e){return"[object File]"===E.call(e)}function d(e){return"[object Blob]"===E.call(e)}function h(e){return"[object Function]"===E.call(e)}function m(e){return f(e)&&h(e.pipe)}function v(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function w(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=w(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function x(e,t,n){return b(t,function(t,r){e[r]=n&&"function"==typeof t?j(t,n):t}),e}var j=n(6),S=n(19),E=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:S,isFormData:i,isArrayBufferView:u,isString:c,isNumber:a,isObject:f,isUndefined:s,isDate:l,isFile:p,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:v,isStandardBrowserEnv:g,forEach:b,merge:w,extend:x,trim:y}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function u(){m&&d&&(m=!1,d.length?h=d.concat(h):v=-1,h.length&&c())}function c(){if(!m){var e=o(u);m=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,m=!1,i(e)}}function a(e,t){this.fun=e,this.array=t}function s(){}var f,l,p=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var d,h=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new a(e,t)),1!==h.length||m||o(c)},a.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";(function(t){function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(0),i=n(21),u={"Content-Type":"application/x-www-form-urlencoded"},c={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(7):void 0!==t&&(e=n(7)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){c.headers[e]={}}),o.forEach(["post","put","patch"],function(e){c.headers[e]=o.merge(u)}),e.exports=c}).call(t,n(2))},function(e,t,n){(function(e,n,r,o){!function(e,n){n(t)}(0,function(t){"use strict";function i(e,t){t|=0;for(var n=Math.max(e.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=e[t+o];return r}function u(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function c(e){setTimeout(e,0)}function a(e){return function(t){var n=i(arguments,1);e(function(){t.apply(null,n)})}}function s(e){return ct(function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}u(r)&&"function"==typeof r.then?r.then(function(e){f(n,null,e)},function(e){f(n,e.message?e:new Error(e))}):n(null,r)})}function f(e,t,n){try{e(t,n)}catch(e){ft(l,e)}}function l(e){throw e}function p(e){return lt&&"AsyncFunction"===e[Symbol.toStringTag]}function d(e){return p(e)?s(e):e}function h(e){return function(t){var n=i(arguments,1),r=ct(function(n,r){var o=this;return e(t,function(e,t){d(e).apply(o,n.concat(t))},r)});return n.length?r.apply(this,n):r}}function m(e){var t=yt.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var o=gt.call(e);return r&&(t?e[bt]=n:delete e[bt]),o}function v(e){return xt.call(e)}function y(e){return null==e?void 0===e?St:jt:Et&&Et in Object(e)?m(e):v(e)}function g(e){if(!u(e))return!1;var t=y(e);return t==Tt||t==Lt||t==kt||t==At}function b(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ot}function w(e){return null!=e&&b(e.length)&&!g(e)}function x(){}function j(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}function S(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function E(e){return null!=e&&"object"==typeof e}function k(e){return E(e)&&y(e)==Ft}function T(){return!1}function L(e,t){var n=typeof e;return!!(t=null==t?$t:t)&&("number"==n||"symbol"!=n&&Xt.test(e))&&e>-1&&e%1==0&&e<t}function A(e){return E(e)&&b(e.length)&&!!Qt[y(e)]}function O(e,t){var n=Bt(e),r=!n&&Mt(e),o=!n&&!r&&zt(e),i=!n&&!r&&!o&&en(e),u=n||r||o||i,c=u?S(e.length,String):[],a=c.length;for(var s in e)!t&&!nn.call(e,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||L(s,a))||c.push(s);return c}function _(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rn)}function C(e){if(!_(e))return on(e);var t=[];for(var n in Object(e))cn.call(e,n)&&"constructor"!=n&&t.push(n);return t}function R(e){return w(e)?O(e):C(e)}function F(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}function U(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}function I(e){var t=R(e),n=-1,r=t.length;return function(){var o=t[++n];return n<r?{value:e[o],key:o}:null}}function q(e){if(w(e))return F(e);var t=Rt(e);return t?U(t):I(e)}function M(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function B(e){return function(t,n,r){function o(e,t){if(a-=1,e)c=!0,r(e);else{if(t===_t||c&&a<=0)return c=!0,r(null);s||i()}}function i(){for(s=!0;a<e&&!c;){var t=u();if(null===t)return c=!0,void(a<=0&&r(null));a+=1,n(t.value,t.key,M(o))}s=!1}if(r=j(r||x),e<=0||!t)return r(null);var u=q(t),c=!1,a=0,s=!1;i()}}function N(e,t,n,r){B(t)(e,d(n),r)}function P(e,t){return function(n,r,o){return e(n,t,r,o)}}function D(e,t,n){function r(e,t){e?n(e):++i!==u&&t!==_t||n(null)}n=j(n||x);var o=0,i=0,u=e.length;for(0===u&&n(null);o<u;o++)t(e[o],o,M(r))}function H(e){return function(t,n,r){return e(sn,t,d(n),r)}}function V(e,t,n,r){r=r||x,t=t||[];var o=[],i=0,u=d(n);e(t,function(e,t,n){var r=i++;u(e,function(e,t){o[r]=t,n(e)})},function(e){r(e,o)})}function z(e){return function(t,n,r,o){return e(B(n),t,d(r),o)}}function $(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function X(e,t){return e&&mn(e,t,R)}function Q(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function W(e){return e!==e}function J(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function G(e,t,n){return t===t?J(e,t,n):Q(e,W,n)}function K(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Y(e){return"symbol"==typeof e||E(e)&&y(e)==yn}function Z(e){if("string"==typeof e)return e;if(Bt(e))return K(e,Z)+"";if(Y(e))return wn?wn.call(e):"";var t=e+"";return"0"==t&&1/e==-gn?"-0":t}function ee(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function te(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ee(e,t,n)}function ne(e,t){for(var n=e.length;n--&&G(t,e[n],0)>-1;);return n}function re(e,t){for(var n=-1,r=e.length;++n<r&&G(t,e[n],0)>-1;);return n}function oe(e){return e.split("")}function ie(e){return xn.test(e)}function ue(e){return e.match(_n)||[]}function ce(e){return ie(e)?ue(e):oe(e)}function ae(e){return null==e?"":Z(e)}function se(e,t,n){if((e=ae(e))&&(n||void 0===t))return e.replace(Cn,"");if(!e||!(t=Z(t)))return e;var r=ce(e),o=ce(t);return te(r,re(r,o),ne(r,o)+1).join("")}function fe(e){return e=e.toString().replace(In,""),e=e.match(Rn)[2].replace(" ",""),e=e?e.split(Fn):[],e=e.map(function(e){return se(e.replace(Un,""))})}function le(e,t){var n={};X(e,function(e,t){function r(t,n){var r=K(o,function(e){return t[e]});r.push(n),d(e).apply(null,r)}var o,i=p(e),u=!i&&1===e.length||i&&0===e.length;if(Bt(e))o=e.slice(0,-1),e=e[e.length-1],n[t]=o.concat(o.length>0?r:e);else if(u)n[t]=e;else{if(o=fe(e),0===e.length&&!i&&0===o.length)throw new Error("autoInject task functions require explicit parameters.");i||o.pop(),n[t]=o.concat(r)}}),vn(n,t)}function pe(){this.head=this.tail=null,this.length=0}function de(e,t){e.length=1,e.head=e.tail=t}function he(e,t,n){function r(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(f.started=!0,Bt(e)||(e=[e]),0===e.length&&f.idle())return ft(function(){f.drain()});for(var r=0,o=e.length;r<o;r++){var i={data:e[r],callback:n||x};t?f._tasks.unshift(i):f._tasks.push(i)}a||(a=!0,ft(function(){a=!1,f.process()}))}function o(e){return function(t){u-=1;for(var n=0,r=e.length;n<r;n++){var o=e[n],i=G(c,o,0);0===i?c.shift():i>0&&c.splice(i,1),o.callback.apply(o,arguments),null!=t&&f.error(t,o.data)}u<=f.concurrency-f.buffer&&f.unsaturated(),f.idle()&&f.drain(),f.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=d(e),u=0,c=[],a=!1,s=!1,f={_tasks:new pe,concurrency:t,payload:n,saturated:x,unsaturated:x,buffer:t/4,empty:x,drain:x,error:x,started:!1,paused:!1,push:function(e,t){r(e,!1,t)},kill:function(){f.drain=x,f._tasks.empty()},unshift:function(e,t){r(e,!0,t)},remove:function(e){f._tasks.remove(e)},process:function(){if(!s){for(s=!0;!f.paused&&u<f.concurrency&&f._tasks.length;){var e=[],t=[],n=f._tasks.length;f.payload&&(n=Math.min(n,f.payload));for(var r=0;r<n;r++){var a=f._tasks.shift();e.push(a),c.push(a),t.push(a.data)}u+=1,0===f._tasks.length&&f.empty(),u===f.concurrency&&f.saturated();var l=M(o(e));i(t,l)}s=!1}},length:function(){return f._tasks.length},running:function(){return u},workersList:function(){return c},idle:function(){return f._tasks.length+u===0},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,ft(f.process))}};return f}function me(e,t){return he(e,1,t)}function ve(e,t,n,r){r=j(r||x);var o=d(n);Mn(e,function(e,n,r){o(t,e,function(e,n){t=n,r(e)})},function(e){r(e,t)})}function ye(){var e=K(arguments,d);return function(){var t=i(arguments),n=this,r=t[t.length-1];"function"==typeof r?t.pop():r=x,ve(e,t,function(e,t,r){t.apply(n,e.concat(function(e){var t=i(arguments,1);r(e,t)}))},function(e,t){r.apply(n,[e].concat(t))})}}function ge(e){return e}function be(e,t){return function(n,r,o,i){i=i||x;var u,c=!1;n(r,function(n,r,i){o(n,function(r,o){r?i(r):e(o)&&!u?(c=!0,u=t(!0,n),i(null,_t)):i()})},function(e){e?i(e):i(null,c?u:t(!1))})}}function we(e,t){return t}function xe(e){return function(t){var n=i(arguments,1);n.push(function(t){var n=i(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&$(n,function(t){console[e](t)}))}),d(t).apply(null,n)}}function je(e,t,n){function r(e){if(e)return n(e);var t=i(arguments,1);t.push(o),c.apply(this,t)}function o(e,t){return e?n(e):t?void u(r):n(null)}n=M(n||x);var u=d(e),c=d(t);o(null,!0)}function Se(e,t,n){n=M(n||x);var r=d(e),o=function(e){if(e)return n(e);var u=i(arguments,1);if(t.apply(this,u))return r(o);n.apply(null,[null].concat(u))};r(o)}function Ee(e,t,n){Se(e,function(){return!t.apply(this,arguments)},n)}function ke(e,t,n){function r(e){if(e)return n(e);u(o)}function o(e,t){return e?n(e):t?void i(r):n(null)}n=M(n||x);var i=d(t),u=d(e);u(o)}function Te(e){return function(t,n,r){return e(t,r)}}function Le(e,t,n){sn(e,Te(d(t)),n)}function Ae(e,t,n,r){B(t)(e,Te(d(n)),r)}function Oe(e){return p(e)?e:ct(function(t,n){var r=!0;t.push(function(){var e=arguments;r?ft(function(){n.apply(null,e)}):n.apply(null,e)}),e.apply(this,t),r=!1})}function _e(e){return!e}function Ce(e){return function(t){return null==t?void 0:t[e]}}function Re(e,t,n,r){var o=new Array(t.length);e(t,function(e,t,r){n(e,function(e,n){o[t]=!!n,r(e)})},function(e){if(e)return r(e);for(var n=[],i=0;i<t.length;i++)o[i]&&n.push(t[i]);r(null,n)})}function Fe(e,t,n,r){var o=[];e(t,function(e,t,r){n(e,function(n,i){n?r(n):(i&&o.push({index:t,value:e}),r())})},function(e){e?r(e):r(null,K(o.sort(function(e,t){return e.index-t.index}),Ce("value")))})}function Ue(e,t,n,r){(w(t)?Re:Fe)(e,t,d(n),r||x)}function Ie(e,t){function n(e){if(e)return r(e);o(n)}var r=M(t||x),o=d(Oe(e));n()}function qe(e,t,n,r){r=j(r||x);var o={},i=d(n);N(e,t,function(e,t,n){i(e,t,function(e,r){if(e)return n(e);o[t]=r,n()})},function(e){r(e,o)})}function Me(e,t){return t in e}function Be(e,t){var n=Object.create(null),r=Object.create(null);t=t||ge;var o=d(e),u=ct(function(e,u){var c=t.apply(null,e);Me(n,c)?ft(function(){u.apply(null,n[c])}):Me(r,c)?r[c].push(u):(r[c]=[u],o.apply(null,e.concat(function(){var e=i(arguments);n[c]=e;var t=r[c];delete r[c];for(var o=0,u=t.length;o<u;o++)t[o].apply(null,e)})))});return u.memo=n,u.unmemoized=e,u}function Ne(e,t,n){n=n||x;var r=w(t)?[]:{};e(t,function(e,t,n){d(e)(function(e,o){arguments.length>2&&(o=i(arguments,1)),r[t]=o,n(e)})},function(e){n(e,r)})}function Pe(e,t){Ne(sn,e,t)}function De(e,t,n){Ne(B(t),e,n)}function He(e,t){if(t=j(t||x),!Bt(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)d(e[n])(t)}function Ve(e,t,n,r){ve(i(e).reverse(),t,n,r)}function ze(e){var t=d(e);return ct(function(e,n){return e.push(function(e,t){if(e)n(null,{error:e});else{var r;r=arguments.length<=2?t:i(arguments,1),n(null,{value:r})}}),t.apply(this,e)})}function $e(e){var t;return Bt(e)?t=K(e,ze):(t={},X(e,function(e,n){t[n]=ze.call(this,e)})),t}function Xe(e,t,n,r){Ue(e,t,function(e,t){n(e,function(e,n){t(e,!n)})},r)}function Qe(e){return function(){return e}}function We(e,t,n){function r(){c(function(e){e&&a++<u.times&&("function"!=typeof u.errorFilter||u.errorFilter(e))?setTimeout(r,u.intervalFunc(a)):n.apply(null,arguments)})}var o=5,i=0,u={times:o,intervalFunc:Qe(i)};if(arguments.length<3&&"function"==typeof e?(n=t||x,t=e):(!function(e,t){if("object"==typeof t)e.times=+t.times||o,e.intervalFunc="function"==typeof t.interval?t.interval:Qe(+t.interval||i),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||o}}(u,e),n=n||x),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var c=d(t),a=1;r()}function Je(e,t){Ne(Mn,e,t)}function Ge(e,t,n){function r(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}var o=d(t);fn(e,function(e,t){o(e,function(n,r){if(n)return t(n);t(null,{value:e,criteria:r})})},function(e,t){if(e)return n(e);n(null,K(t.sort(r),Ce("value")))})}function Ke(e,t,n){var r=d(e);return ct(function(o,i){function u(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,i(r)}var c,a=!1;o.push(function(){a||(i.apply(null,arguments),clearTimeout(c))}),c=setTimeout(u,t),r.apply(null,o)})}function Ye(e,t,n,r){for(var o=-1,i=gr(yr((t-e)/(n||1)),0),u=Array(i);i--;)u[r?i:++o]=e,e+=n;return u}function Ze(e,t,n,r){var o=d(n);pn(Ye(0,e,1),t,o,r)}function et(e,t,n,r){arguments.length<=3&&(r=n,n=t,t=Bt(e)?[]:{}),r=j(r||x);var o=d(n);sn(e,function(e,n,r){o(t,e,n,r)},function(e){r(e,t)})}function tt(e,t){var n,r=null;t=t||x,Wn(e,function(e,t){d(e)(function(e,o){n=arguments.length>2?i(arguments,1):o,r=e,t(!e)})},function(){t(r,n)})}function nt(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function rt(e,t,n){n=M(n||x);var r=d(t);if(!e())return n(null);var o=function(t){if(t)return n(t);if(e())return r(o);var u=i(arguments,1);n.apply(null,[null].concat(u))};r(o)}function ot(e,t,n){rt(function(){return!e.apply(this,arguments)},t,n)}var it,ut=function(e){var t=i(arguments,1);return function(){var n=i(arguments);return e.apply(null,t.concat(n))}},ct=function(e){return function(){var t=i(arguments),n=t.pop();e.call(this,t,n)}},at="function"==typeof e&&e,st="object"==typeof n&&"function"==typeof n.nextTick;it=at?e:st?n.nextTick:c;var ft=a(it),lt="function"==typeof Symbol,pt="object"==typeof r&&r&&r.Object===Object&&r,dt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||dt||Function("return this")(),mt=ht.Symbol,vt=Object.prototype,yt=vt.hasOwnProperty,gt=vt.toString,bt=mt?mt.toStringTag:void 0,wt=Object.prototype,xt=wt.toString,jt="[object Null]",St="[object Undefined]",Et=mt?mt.toStringTag:void 0,kt="[object AsyncFunction]",Tt="[object Function]",Lt="[object GeneratorFunction]",At="[object Proxy]",Ot=9007199254740991,_t={},Ct="function"==typeof Symbol&&Symbol.iterator,Rt=function(e){return Ct&&e[Ct]&&e[Ct]()},Ft="[object Arguments]",Ut=Object.prototype,It=Ut.hasOwnProperty,qt=Ut.propertyIsEnumerable,Mt=k(function(){return arguments}())?k:function(e){return E(e)&&It.call(e,"callee")&&!qt.call(e,"callee")},Bt=Array.isArray,Nt="object"==typeof t&&t&&!t.nodeType&&t,Pt=Nt&&"object"==typeof o&&o&&!o.nodeType&&o,Dt=Pt&&Pt.exports===Nt,Ht=Dt?ht.Buffer:void 0,Vt=Ht?Ht.isBuffer:void 0,zt=Vt||T,$t=9007199254740991,Xt=/^(?:0|[1-9]\d*)$/,Qt={};Qt["[object Float32Array]"]=Qt["[object Float64Array]"]=Qt["[object Int8Array]"]=Qt["[object Int16Array]"]=Qt["[object Int32Array]"]=Qt["[object Uint8Array]"]=Qt["[object Uint8ClampedArray]"]=Qt["[object Uint16Array]"]=Qt["[object Uint32Array]"]=!0,Qt["[object Arguments]"]=Qt["[object Array]"]=Qt["[object ArrayBuffer]"]=Qt["[object Boolean]"]=Qt["[object DataView]"]=Qt["[object Date]"]=Qt["[object Error]"]=Qt["[object Function]"]=Qt["[object Map]"]=Qt["[object Number]"]=Qt["[object Object]"]=Qt["[object RegExp]"]=Qt["[object Set]"]=Qt["[object String]"]=Qt["[object WeakMap]"]=!1;var Wt="object"==typeof t&&t&&!t.nodeType&&t,Jt=Wt&&"object"==typeof o&&o&&!o.nodeType&&o,Gt=Jt&&Jt.exports===Wt,Kt=Gt&&pt.process,Yt=function(){try{var e=Jt&&Jt.require&&Jt.require("util").types;return e||Kt&&Kt.binding&&Kt.binding("util")}catch(e){}}(),Zt=Yt&&Yt.isTypedArray,en=Zt?function(e){return function(t){return e(t)}}(Zt):A,tn=Object.prototype,nn=tn.hasOwnProperty,rn=Object.prototype,on=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),un=Object.prototype,cn=un.hasOwnProperty,an=P(N,1/0),sn=function(e,t,n){(w(e)?D:an)(e,d(t),n)},fn=H(V),ln=h(fn),pn=z(V),dn=P(pn,1),hn=h(dn),mn=function(e){return function(t,n,r){for(var o=-1,i=Object(t),u=r(t),c=u.length;c--;){var a=u[e?c:++o];if(!1===n(i[a],a,i))break}return t}}(),vn=function(e,t,n){function r(e,t){y.push(function(){a(e,t)})}function o(){if(0===y.length&&0===h)return n(null,p);for(;y.length&&h<t;){y.shift()()}}function u(e,t){var n=v[e];n||(n=v[e]=[]),n.push(t)}function c(e){$(v[e]||[],function(e){e()}),o()}function a(e,t){if(!m){var r=M(function(t,r){if(h--,arguments.length>2&&(r=i(arguments,1)),t){var o={};X(p,function(e,t){o[t]=e}),o[e]=r,m=!0,v=Object.create(null),n(t,o)}else p[e]=r,c(e)});h++;var o=d(t[t.length-1]);t.length>1?o(p,r):o(r)}}function s(t){var n=[];return X(e,function(e,r){Bt(e)&&G(e,t,0)>=0&&n.push(r)}),n}"function"==typeof t&&(n=t,t=null),n=j(n||x);var f=R(e),l=f.length;if(!l)return n(null);t||(t=l);var p={},h=0,m=!1,v=Object.create(null),y=[],g=[],b={};X(e,function(t,n){if(!Bt(t))return r(n,[t]),void g.push(n);var o=t.slice(0,t.length-1),i=o.length;if(0===i)return r(n,t),void g.push(n);b[n]=i,$(o,function(c){if(!e[c])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+c+"` in "+o.join(", "));u(c,function(){0===--i&&r(n,t)})})}),function(){for(var e,t=0;g.length;)e=g.pop(),t++,$(s(e),function(e){0==--b[e]&&g.push(e)});if(t!==l)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),o()},yn="[object Symbol]",gn=1/0,bn=mt?mt.prototype:void 0,wn=bn?bn.toString:void 0,xn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),jn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Sn="\\ud83c[\\udffb-\\udfff]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Tn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Ln="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",En,kn].join("|")+")[\\ufe0e\\ufe0f]?"+Tn+")*",An="[\\ufe0e\\ufe0f]?"+Tn+Ln,On="(?:"+["[^\\ud800-\\udfff]"+jn+"?",jn,En,kn,"[\\ud800-\\udfff]"].join("|")+")",_n=RegExp(Sn+"(?="+Sn+")|"+On+An,"g"),Cn=/^\s+|\s+$/g,Rn=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Fn=/,/,Un=/(=.+)?(\s*)$/,In=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pe.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},pe.prototype.empty=function(){for(;this.head;)this.shift();return this},pe.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},pe.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},pe.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):de(this,e)},pe.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):de(this,e)},pe.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pe.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pe.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,n=0;n<this.length;n++)e[n]=t.data,t=t.next;return e},pe.prototype.remove=function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this};var qn,Mn=P(N,1),Bn=function(){return ye.apply(null,i(arguments).reverse())},Nn=Array.prototype.concat,Pn=function(e,t,n,r){r=r||x;var o=d(n);pn(e,t,function(e,t){o(e,function(e){return e?t(e):t(null,i(arguments,1))})},function(e,t){for(var n=[],o=0;o<t.length;o++)t[o]&&(n=Nn.apply(n,t[o]));return r(e,n)})},Dn=P(Pn,1/0),Hn=P(Pn,1),Vn=function(){var e=i(arguments),t=[null].concat(e);return function(){return arguments[arguments.length-1].apply(this,t)}},zn=H(be(ge,we)),$n=z(be(ge,we)),Xn=P($n,1),Qn=xe("dir"),Wn=P(Ae,1),Jn=H(be(_e,_e)),Gn=z(be(_e,_e)),Kn=P(Gn,1),Yn=H(Ue),Zn=z(Ue),er=P(Zn,1),tr=function(e,t,n,r){r=r||x;var o=d(n);pn(e,t,function(e,t){o(e,function(n,r){return n?t(n):t(null,{key:r,val:e})})},function(e,t){for(var n={},o=Object.prototype.hasOwnProperty,i=0;i<t.length;i++)if(t[i]){var u=t[i].key,c=t[i].val;o.call(n,u)?n[u].push(c):n[u]=[c]}return r(e,n)})},nr=P(tr,1/0),rr=P(tr,1),or=xe("log"),ir=P(qe,1/0),ur=P(qe,1);qn=st?n.nextTick:at?e:c;var cr=a(qn),ar=function(e,t){var n=d(e);return he(function(e,t){n(e[0],t)},t,1)},sr=function(e,t){var n=ar(e,t);return n.push=function(e,t,r){if(null==r&&(r=x),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Bt(e)||(e=[e]),0===e.length)return ft(function(){n.drain()});t=t||0;for(var o=n._tasks.head;o&&t>=o.priority;)o=o.next;for(var i=0,u=e.length;i<u;i++){var c={data:e[i],priority:t,callback:r};o?n._tasks.insertBefore(o,c):n._tasks.push(c)}ft(n.process)},delete n.unshift,n},fr=H(Xe),lr=z(Xe),pr=P(lr,1),dr=function(e,t){t||(t=e,e=null);var n=d(t);return ct(function(t,r){function o(e){n.apply(null,t.concat(e))}e?We(e,o,r):We(o,r)})},hr=H(be(Boolean,ge)),mr=z(be(Boolean,ge)),vr=P(mr,1),yr=Math.ceil,gr=Math.max,br=P(Ze,1/0),wr=P(Ze,1),xr=function(e,t){function n(t){var n=d(e[o++]);t.push(M(r)),n.apply(null,t)}function r(r){if(r||o===e.length)return t.apply(null,arguments);n(i(arguments,1))}if(t=j(t||x),!Bt(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var o=0;n([])},jr={apply:ut,applyEach:ln,applyEachSeries:hn,asyncify:s,auto:vn,autoInject:le,cargo:me,compose:Bn,concat:Dn,concatLimit:Pn,concatSeries:Hn,constant:Vn,detect:zn,detectLimit:$n,detectSeries:Xn,dir:Qn,doDuring:je,doUntil:Ee,doWhilst:Se,during:ke,each:Le,eachLimit:Ae,eachOf:sn,eachOfLimit:N,eachOfSeries:Mn,eachSeries:Wn,ensureAsync:Oe,every:Jn,everyLimit:Gn,everySeries:Kn,filter:Yn,filterLimit:Zn,filterSeries:er,forever:Ie,groupBy:nr,groupByLimit:tr,groupBySeries:rr,log:or,map:fn,mapLimit:pn,mapSeries:dn,mapValues:ir,mapValuesLimit:qe,mapValuesSeries:ur,memoize:Be,nextTick:cr,parallel:Pe,parallelLimit:De,priorityQueue:sr,queue:ar,race:He,reduce:ve,reduceRight:Ve,reflect:ze,reflectAll:$e,reject:fr,rejectLimit:lr,rejectSeries:pr,retry:We,retryable:dr,seq:ye,series:Je,setImmediate:ft,some:hr,someLimit:mr,someSeries:vr,sortBy:Ge,timeout:Ke,times:br,timesLimit:Ze,timesSeries:wr,transform:et,tryEach:tt,unmemoize:nt,until:ot,waterfall:xr,whilst:rt,all:Jn,allLimit:Gn,allSeries:Kn,any:hr,anyLimit:mr,anySeries:vr,find:zn,findLimit:$n,findSeries:Xn,forEach:Le,forEachSeries:Wn,forEachLimit:Ae,forEachOf:sn,forEachOfSeries:Mn,forEachOfLimit:N,inject:ve,foldl:ve,foldr:Ve,select:Yn,selectLimit:Zn,selectSeries:er,wrapSync:s};t.default=jr,t.apply=ut,t.applyEach=ln,t.applyEachSeries=hn,t.asyncify=s,t.auto=vn,t.autoInject=le,t.cargo=me,t.compose=Bn,t.concat=Dn,t.concatLimit=Pn,t.concatSeries=Hn,t.constant=Vn,t.detect=zn,t.detectLimit=$n,t.detectSeries=Xn,t.dir=Qn,t.doDuring=je,t.doUntil=Ee,t.doWhilst=Se,t.during=ke,t.each=Le,t.eachLimit=Ae,t.eachOf=sn,t.eachOfLimit=N,t.eachOfSeries=Mn,t.eachSeries=Wn,t.ensureAsync=Oe,t.every=Jn,t.everyLimit=Gn,t.everySeries=Kn,t.filter=Yn,t.filterLimit=Zn,t.filterSeries=er,t.forever=Ie,t.groupBy=nr,t.groupByLimit=tr,t.groupBySeries=rr,t.log=or,t.map=fn,t.mapLimit=pn,t.mapSeries=dn,t.mapValues=ir,t.mapValuesLimit=qe,t.mapValuesSeries=ur,t.memoize=Be,t.nextTick=cr,t.parallel=Pe,t.parallelLimit=De,t.priorityQueue=sr,t.queue=ar,t.race=He,t.reduce=ve,t.reduceRight=Ve,t.reflect=ze,t.reflectAll=$e,t.reject=fr,t.rejectLimit=lr,t.rejectSeries=pr,t.retry=We,t.retryable=dr,t.seq=ye,t.series=Je,t.setImmediate=ft,t.some=hr,t.someLimit=mr,t.someSeries=vr,t.sortBy=Ge,t.timeout=Ke,t.times=br,t.timesLimit=Ze,t.timesSeries=wr,t.transform=et,t.tryEach=tt,t.unmemoize=nt,t.until=ot,t.waterfall=xr,t.whilst=rt,t.all=Jn,t.allLimit=Gn,t.allSeries=Kn,t.any=hr,t.anyLimit=mr,t.anySeries=vr,t.find=zn,t.findLimit=$n,t.findSeries=Xn,t.forEach=Le,t.forEachSeries=Wn,t.forEachLimit=Ae,t.forEachOf=sn,t.forEachOfSeries=Mn,t.forEachOfLimit=N,t.inject=ve,t.foldl=ve,t.foldr=Ve,t.select=Yn,t.selectLimit=Zn,t.selectSeries=er,t.wrapSync=s,Object.defineProperty(t,"__esModule",{value:!0})})}).call(t,n(12).setImmediate,n(2),n(1),n(14)(e))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(!e)return!1;var t=document.createElement("textarea");return t.innerHTML=e,t.value}function i(e){var t=(new Date).getTime()/1e3;if(!e||e>t)return!1;var n=t-e,r=Math.floor(n/60),o=Math.floor(r/60),i=Math.floor(o/24);return 1===i?"1 day ago":i>0?i+" days ago":1===o?"1 hour ago":o>0?o+" hours ago":1===r?"1 minute ago":r>0?r+" minutes ago":"a few seconds ago"}function u(e){function t(e,t){if(!e)throw new Error("No URL has been specified");if(s[e])return void t(null,s[e]);f.default.get(e).then(function(n){s[e]=n.data,t(null,n.data)}).catch(t)}function n(t){var n=t.sub,r=t.id;return n&&r?e.base+"/r/"+n+"/comments/"+r+".json":!(n||!r)&&e.base+r}function r(e,r){var o=e.hits.filter(function(e){return!!e.num_comments});a.default.map(o.slice(0,10),function(e,r){var o=e.id,i=e.subreddit;if("undefined"===o)throw new Error("No ID specified");t(n({sub:i,id:o}),r)},r)}function o(t){var n=t.comment,r=t.op,i=t.depth,u=i||0,c=e.commentFmt(n);if(c.depth=u,c.subreddit=r.subreddit,r.permalink&&(c.permalink=e.base+r.permalink,c.thread=e.base+r.permalink+n.id),n.children&&n.children.length>0){var a=u+1;c.hasReplies=!0,c.replies=n.children.reduce(function(e,t){return t.author&&e.push(o({comment:t,op:r,depth:a})),e},[]),c.loadMore=c.replies.length>4}return c}function i(t,n){n(null,t.map(function(t){var n=e.threadFmt(t),r=n.children.reduce(function(e,t){return t.author&&e.push(o({comment:t,op:n})),e},[]);return{op:n,comments:r}}))}function u(t,n){var r=function e(n,r,o){if(o>t.length-1)return{score:n,threads:t.length,comments:r,multiple:function(){return this.threads>1}};var i=t[o];return e(n+=i.op.points,r.concat(i.comments),o+1)}(0,[],0),o=r.comments.sort(function(e,t){return t.score-e.score}),i=e.limit||o.length;r.comments=o.slice(0,i),r.next=o.slice(i),r.hasMore=!!r.next.length,n(null,r)}if(!e)throw new Error("No spec object has been specified");if(!e.submitUrl)throw new Error("submitUrl isnt defined");if(!e.dataFmt)throw new Error("dataFmt method isnt defined");if(!e.commentFmt)throw new Error("commentFmt method isnt defined");if(!e.threadFmt)throw new Error("threadFmt method isnt defined");0===e.limit&&(e.limit=null);var c={},s={};return c.submitUrl=e.submitUrl,c.hasComments=function(n){a.default.waterfall([a.default.apply(t,e.query),e.dataFmt],function(e,t){if(e)throw new Error(e);var r=t.hits.filter(function(e){return!!e.num_comments});n(null,!!r.length)})},c.getComments=function(n){a.default.waterfall([a.default.apply(t,e.query),e.dataFmt,r,i,u],n)},c}Object.defineProperty(t,"__esModule",{value:!0}),t.decode=o,t.parseDate=i,t.embeddConstructor=u;var c=n(4),a=r(c),s=n(17),f=r(s)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n(24),u=n(25),c=n(26),a=n(8);e.exports=function(e){return new Promise(function(t,s){var f=e.data,l=e.headers;r.isFormData(f)&&delete l["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+h)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?p.response:p.responseText,i={data:r,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,s,i),p=null}},p.onerror=function(){s(a("Network Error",e,null,p)),p=null},p.ontimeout=function(){s(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var m=n(27),v=(e.withCredentials||c(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;v&&(l[e.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(l,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),s(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t,n,o,i){var u=new Error(e);return r(u,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(4),i=r(o),u=n(15),c=r(u),a=n(16),s=r(a),f=n(35),l=r(f),p=n(36),d=n(37);(function(){function e(e,t){var n={};for(var r in e)n[r]=e[r];for(var o in t)n[o]=t[o];return n}function t(){var e=[].slice.call(document.querySelectorAll(".embedd-container .hide-children-btn")),t=document.querySelector(".embedd-container .reddit-btn"),r=document.querySelector(".embedd-container .hn-btn"),i=[].slice.call(document.querySelectorAll(".embedd-container .view-more")),c=document.querySelector(".embedd-container .more-btn");e.forEach(function(e){e.addEventListener("click",u,!1)}),i.forEach(function(e){e.addEventListener("click",a,!1)}),t&&t.addEventListener("click",function(){h.config.service="reddit",h.config.serviceName="Reddit",h.init()},!1),r&&r.addEventListener("click",function(){h.config.service="hn",h.config.service="HackerNews",h.init()},!1),c&&c.addEventListener("click",function(){o(h)},!1),!h.config.loadMore&&h.config.infiniteScroll&&window.addEventListener("scroll",n,!1)}function n(){document.body.scrollHeight-window.innerHeight-window.scrollY<20&&(window.removeEventListener("scroll",n,!1),o(h))}function r(n){var r=e({},n);r.config=e({},n.config),r.redditActive=function(){return"reddit"===h.config.service},r.hnActive=function(){return"hn"===h.config.service},0===r.data.next.length&&(r.config.loadMore=!1);var o=c.default.render(p,r,{comment:d});h.config.debug&&console.log(r),h.config.element.innerHTML=o,t()}function o(e){var r=e.data,o=e.config,i=e.redditActive,u=document.querySelector(".embedd-container .comments");r.comments=r.next.slice(0,o.limit),r.next=r.next.slice(o.limit),r.config=o,r.hasMore=!!r.next.length,i&&(r.redditActive=i);var a=c.default.render("{{#comments}}{{> comment}}{{/comments}}",r,{comment:d});if(u.insertAdjacentHTML("beforeend",a),!r.hasMore){var s=document.querySelector(".embedd-container .more-btn");s?s.style.display="none":window.removeEventListener("scroll",n,!1)}t()}function u(e){e.target.parentNode.parentNode.parentNode.classList.toggle("closed")}function a(e){function t(e,n){e&&3!==n?e instanceof Text||"block"===f(e)?t(e.nextSibling,n):(e.style.display="block",t(e.nextSibling,n+1)):r.querySelector(".viewMore").style.display="none"}var n=e.currentTarget,r=n.parentElement;t(r.querySelector(".children").firstChild,0)}function f(e){return e.currentStyle?e.currentStyle.display:window.getComputedStyle(e,null).getPropertyValue("display")}var h={},m=document.currentScript,v=(m.parentNode,document.getElementById("embedd-comments"));if(v)return h.config={element:v,url:location.protocol+"//"+location.host+location.pathname,dark:!1,service:"hn",serviceName:"HackerNews",both:!0,loadMore:!0,infiniteScroll:!1,limit:5,debug:!1},"string"==typeof h.config.element&&(h.config.element=document.querySelector(h.config.element)),h.config.element.className="embedd-container",h.config.loadMore&&h.config.infiniteScroll&&(h.config.loadMore=!1),h.clients={},h.config.both&&(h.clients.reddit=(0,l.default)(h.config),h.clients.hn=(0,s.default)(h.config)),h.config.both||"reddit"!==h.config.service||(h.clients.reddit=(0,l.default)(h.config)),h.config.both||"hn"!==h.config.service||(h.clients.hn=(0,s.default)(h.config)),h.init=function(){var t=h.clients,n=t.reddit,o=t.hn,u=h.clients[h.config.service],c={};o&&(c.hasHn=o.hasComments),n&&(c.hasReddit=n.hasComments),c.data=u.getComments,i.default.series(c,function(t,n){if(t)throw new Error(t);n.submitUrl=u.submitUrl,h=e(h,n),r(h)})},h})().init()},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(13),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(1))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return s[a]=r,c(a),a++}function o(e){delete s[e]}function i(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function u(e){if(f)setTimeout(u,0,e);else{var t=s[e];if(t){f=!0;try{i(t)}finally{o(e),f=!1}}}}if(!e.setImmediate){var c,a=1,s={},f=!1,l=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?function(){c=function(e){t.nextTick(function(){u(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&u(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),c=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){u(e.data)},c=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;c=function(t){var n=l.createElement("script");n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){c=function(e){setTimeout(u,0,e)}}(),p.setImmediate=r,p.clearImmediate=o}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(1),n(2))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r,o,i;/*!
|
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
* http://github.com/janl/mustache.js
|
|
*/
|
|
!function(n,u){"object"==typeof t&&t&&"string"!=typeof t.nodeName?u(t):(o=[t],r=u,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i))}(0,function(e){function t(e){return"function"==typeof e}function n(e){return m(e)?"array":typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function i(e,t){return v.call(e,t)}function u(e){return!i(y,e)}function c(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return g[e]})}function a(t,n){function o(e){if("string"==typeof e&&(e=e.split(w,2)),!m(e)||2!==e.length)throw new Error("Invalid tags: "+e);i=new RegExp(r(e[0])+"\\s*"),c=new RegExp("\\s*"+r(e[1])),a=new RegExp("\\s*"+r("}"+e[1]))}if(!t)return[];var i,c,a,p=[],d=[],h=[],v=!1,y=!1;o(n||e.tags);for(var g,E,k,T,L,A,O=new l(t);!O.eos();){if(g=O.pos,k=O.scanUntil(i))for(var _=0,C=k.length;_<C;++_)T=k.charAt(_),u(T)?h.push(d.length):y=!0,d.push(["text",T,g,g+1]),g+=1,"\n"===T&&function(){if(v&&!y)for(;h.length;)delete d[h.pop()];else h=[];v=!1,y=!1}();if(!O.scan(i))break;if(v=!0,E=O.scan(S)||"name",O.scan(b),"="===E?(k=O.scanUntil(x),O.scan(x),O.scanUntil(c)):"{"===E?(k=O.scanUntil(a),O.scan(j),O.scanUntil(c),E="&"):k=O.scanUntil(c),!O.scan(c))throw new Error("Unclosed tag at "+O.pos);if(L=[E,k,g,O.pos],d.push(L),"#"===E||"^"===E)p.push(L);else if("/"===E){if(!(A=p.pop()))throw new Error('Unopened section "'+k+'" at '+g);if(A[1]!==k)throw new Error('Unclosed section "'+A[1]+'" at '+g)}else"name"===E||"{"===E||"&"===E?y=!0:"="===E&&o(k)}if(A=p.pop())throw new Error('Unclosed section "'+A[1]+'" at '+O.pos);return f(s(d))}function s(e){for(var t,n,r=[],o=0,i=e.length;o<i;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}function f(e){for(var t,n,r=[],o=r,i=[],u=0,c=e.length;u<c;++u)switch(t=e[u],t[0]){case"#":case"^":o.push(t),i.push(t),o=t[4]=[];break;case"/":n=i.pop(),n[5]=t[2],o=i.length>0?i[i.length-1][4]:r;break;default:o.push(t)}return r}function l(e){this.string=e,this.tail=e,this.pos=0}function p(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function d(){this.cache={}}var h=Object.prototype.toString,m=Array.isArray||function(e){return"[object Array]"===h.call(e)},v=RegExp.prototype.test,y=/\S/,g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},b=/\s*/,w=/\s+/,x=/\s*=/,j=/\s*\}/,S=/#|\^|\/|>|\{|&|=|!/;l.prototype.eos=function(){return""===this.tail},l.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},l.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},p.prototype.push=function(e){return new p(e,this)},p.prototype.lookup=function(e){var n,r=this.cache;if(r.hasOwnProperty(e))n=r[e];else{for(var i,u,c=this,a=!1;c;){if(e.indexOf(".")>0)for(n=c.view,i=e.split("."),u=0;null!=n&&u<i.length;)u===i.length-1&&(a=o(n,i[u])),n=n[i[u++]];else n=c.view[e],a=o(c.view,e);if(a)break;c=c.parent}r[e]=n}return t(n)&&(n=n.call(this.view)),n},d.prototype.clearCache=function(){this.cache={}},d.prototype.parse=function(e,t){var n=this.cache,r=n[e];return null==r&&(r=n[e]=a(e,t)),r},d.prototype.render=function(e,t,n){var r=this.parse(e),o=t instanceof p?t:new p(t);return this.renderTokens(r,o,n,e)},d.prototype.renderTokens=function(e,t,n,r){for(var o,i,u,c="",a=0,s=e.length;a<s;++a)u=void 0,o=e[a],i=o[0],"#"===i?u=this.renderSection(o,t,n,r):"^"===i?u=this.renderInverted(o,t,n,r):">"===i?u=this.renderPartial(o,t,n,r):"&"===i?u=this.unescapedValue(o,t):"name"===i?u=this.escapedValue(o,t):"text"===i&&(u=this.rawValue(o)),void 0!==u&&(c+=u);return c},d.prototype.renderSection=function(e,n,r,o){function i(e){return u.render(e,n,r)}var u=this,c="",a=n.lookup(e[1]);if(a){if(m(a))for(var s=0,f=a.length;s<f;++s)c+=this.renderTokens(e[4],n.push(a[s]),r,o);else if("object"==typeof a||"string"==typeof a||"number"==typeof a)c+=this.renderTokens(e[4],n.push(a),r,o);else if(t(a)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");a=a.call(n.view,o.slice(e[3],e[5]),i),null!=a&&(c+=a)}else c+=this.renderTokens(e[4],n,r,o);return c}},d.prototype.renderInverted=function(e,t,n,r){var o=t.lookup(e[1]);if(!o||m(o)&&0===o.length)return this.renderTokens(e[4],t,n,r)},d.prototype.renderPartial=function(e,n,r){if(r){var o=t(r)?r(e[1]):r[e[1]];return null!=o?this.renderTokens(this.parse(o),n,r,o):void 0}},d.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},d.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},d.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.3.0",e.tags=["{{","}}"];var E=new d;return e.clearCache=function(){return E.clearCache()},e.parse=function(e,t){return E.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+n(e)+'" was given as the first argument for mustache#render(template, view, partials)');return E.render(e,t,r)},e.to_html=function(n,r,o,i){var u=e.render(n,r,o);if(!t(i))return u;i(u)},e.escape=c,e.Scanner=l,e.Context=p,e.Writer=d,e})},function(e,t,n){"use strict";function r(e){if(!e)throw new Error("The HN constructor requires a spec object");var t=e.url,n=e.limit,r={},i=encodeURIComponent(document.querySelector("h1").innerText),u=encodeURIComponent(t);return r.query="https://hn.algolia.com/api/v1/search?restrictSearchableAttributes=url&query="+u,r.submitUrl="https://news.ycombinator.com/submitlink?t="+i+"&u="+u,r.base="https://hn.algolia.com/api/v1/items/",r.limit=n,r.dataFmt=function(e,t){e.hits=e.hits.map(function(e){return e.id=e.objectID,e}),t(null,e)},r.commentFmt=function(e){return{author:e.author,author_link:"https://news.ycombinator.com/user?id="+e.author,body_html:(0,o.decode)(e.text),created:(0,o.parseDate)(e.created_at_i),id:e.id,thread:"https://news.ycombinator.com/item?id="+e.id,replies:null,hasReplies:!1,isEven:function(){return this.depth%2==0},isOdd:function(){return this.depth%2==1}}},r.threadFmt=function(e){return e},(0,o.embeddConstructor)(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(5)},function(e,t,n){e.exports=n(18)},function(e,t,n){"use strict";function r(e){var t=new u(e),n=i(u.prototype.request,t);return o.extend(n,u.prototype,t),o.extend(n,t),n}var o=n(0),i=n(6),u=n(20),c=n(3),a=r(c);a.Axios=u,a.create=function(e){return r(o.merge(c,e))},a.Cancel=n(10),a.CancelToken=n(33),a.isCancel=n(9),a.all=function(e){return Promise.all(e)},a.spread=n(34),e.exports=a,e.exports.default=a},function(e,t){/*!
|
|
* Determine if an object is a Buffer
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/
|
|
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new u,response:new u}}var o=n(3),i=n(0),u=n(28),c=n(29);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[c,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(0);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var u=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),u.push(r(t)+"="+r(e))}))}),i=u.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,u={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(u[t]&&o.indexOf(t)>=0)return;u[t]="set-cookie"===t?(u[t]?u[t]:[]).concat([n]):u[t]?u[t]+", "+n:n}}),u):u}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,u){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===u&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(0);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(0),i=n(30),u=n(9),c=n(3),a=n(31),s=n(32);e.exports=function(e){return r(e),e.baseURL&&!a(e.url)&&(e.url=s(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||c.adapter)(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return u(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(10);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e){if(!e)throw new Error("The Reddit constructor requires a spec object");var t=e.url,n=e.limit,r={};return r.base="https://www.reddit.com",r.searchQs="/search.json?q=url:",r.query=r.base+r.searchQs+t,r.submitUrl="https://www.reddit.com/submit",r.limit=n,r.dataFmt=function(e,t){e.hits=e.data.children.map(function(e){return e=e.data}),t(null,e)},r.commentFmt=function(e){return{author:e.author,author_link:"https://www.reddit.com/user/"+e.author,body_html:(0,o.decode)(e.body_html),created:(0,o.parseDate)(e.created_utc),id:e.id,score:e.score,replies:null,hasReplies:!1,isEven:function(){return this.depth%2==0},isOdd:function(){return this.depth%2==1},lowScore:function(){return this.score<0}}},r.threadFmt=function(e){var t=function e(t){return t.points=t.score,t.replies&&(t.children=t.replies.data.children.map(function(t){return t=t.data,t.replies&&(t.children=e(t)),t})),t},n=e[0].data.children[0].data;return n.points=n.score,n.children=e[1].data.children.map(function(e){return e=e.data,t(e)}),n},(0,o.embeddConstructor)(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(5)},function(e,t){e.exports='<section>\n {{#data}}\n <div class="info">\n {{#score}}\n <h3>{{score}} upvotes {{#multiple}}over {{threads}} threads{{/multiple}} on {{config.serviceName}}</h3>\n {{/score}}\n {{^score}}\n <a target="_blank" href="{{submitUrl}}" class="no-comments btn btn-lg btn-outline-orange" rel="nofollow noreferrer external">\n Start discussion on {{config.serviceName}}\n </a>\n {{/score}}\n </div>\n\n {{#config.both}}\n {{#hasReddit}}\n {{#hasHn}}\n <div class="buttons btn-group my-3" role="group" aria-label="Comment source switch">\n <button type="button" class="reddit-btn btn btn-outline-orange {{#redditActive}} active{{/redditActive}}">\n Reddit\n </button>\n\n <button type="button" class="hn-btn btn btn-outline-orange button{{#hnActive}} active{{/hnActive}}">\n HackerNews\n </button>\n </div>\n {{/hasHn}}\n {{/hasReddit}}\n {{/config.both}}\n\n <div class="comments">\n {{#comments}}\n {{> comment}}\n {{/comments}}\n </div>\n\n {{#config.loadMore}}\n <div class="more-btn-container text-center my-3">\n <button class="btn btn-lg btn-outline-orange more-btn">Load more comments</button>\n </div>\n {{/config.loadMore}}\n\n {{/data}}\n</section>\n'},function(e,t){e.exports='<article class="{{#isEven}}comment-even{{/isEven}}{{#isOdd}}comment-odd{{/isOdd}} {{#lowScore}}closed{{/lowScore}} p-3">\n\n <aside>\n <span>\n <a class="hide-children-btn" href="javascript:void(0)"></a>\n </span>\n\n <span>\n <a href="{{author_link}}" target="_blank" rel="nofollow noreferrer external">{{author}}</a>\n </span>\n {{#redditActive}}\n {{#score}}<span><b>{{score}} points</b></span>{{/score}}\n {{/redditActive}}\n\n {{#permalink}}<span><a href="{{permalink}}" rel="nofollow noreferrer external" target="_blank">{{subreddit}}</a></span>{{/permalink}}\n\n {{#created}}<span class="text-muted">{{created}}</span>{{/created}}\n </aside>\n\n {{#body_html}}\n\n {{& body_html}}\n {{/body_html}}\n\n <aside class="links text-right">\n <a href="{{thread}}" target="_blank" rel="nofollow noreferrer external" class="text-muted">View on {{config.serviceName}}</a>\n </aside>\n\n {{#hasReplies}}\n <div class="children">\n {{#replies}}\n {{> comment}}\n {{/replies}}\n\n {{#loadMore}}\n <div class="view-more my-2">\n <a href="javascript:void(0)" class="btn btn-secondary text-white">Show more comments</a>\n </div>\n {{/loadMore}}\n </div>\n\n {{/hasReplies}}\n\n</article>\n'}]);
|