-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
1 lines (1 loc) · 11 KB
/
bundle.js
File metadata and controls
1 lines (1 loc) · 11 KB
1
!function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,o,i){for(var u,l,c=0,a=[];t.length>c;c++)l=t[c],r[l]&&a.push(r[l][0]),r[l]=0;for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&(e[u]=o[u]);for(n&&n(t,o,i);a.length;)a.shift()()};var o={},r={1:0};t.e=function(e){function n(){l.onerror=l.onload=null,clearTimeout(c);var t=r[e];0!==t&&(t&&t[1](Error("Loading chunk "+e+" failed.")),r[e]=void 0)}var o=r[e];if(0===o)return new Promise(function(e){e()});if(o)return o[2];var i=new Promise(function(t,n){o=r[e]=[t,n]});o[2]=i;var u=document.getElementsByTagName("head")[0],l=document.createElement("script");l.type="text/javascript",l.charset="utf-8",l.async=!0,l.timeout=12e4,t.nc&&l.setAttribute("nonce",t.nc),l.src=t.p+""+({0:"polyfills"}[e]||e)+".chunk."+{0:"19df3"}[e]+".js";var c=setTimeout(n,12e4);return l.onerror=l.onload=n,u.appendChild(l),i},t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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.oe=function(e){throw console.error(e),e},t(t.s=0)}({0:function(e,t,n){e.exports=n("uXl7")},EBst:function(e){!function(){"use strict";function t(){}function n(e,n){var o,r,i,u,l=O;for(u=arguments.length;u-- >2;)M.push(arguments[u]);for(n&&null!=n.children&&(M.length||M.push(n.children),delete n.children);M.length;)if((r=M.pop())&&void 0!==r.pop)for(u=r.length;u--;)M.push(r[u]);else!0!==r&&!1!==r||(r=null),(i="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r+="":"string"!=typeof r&&(i=!1)),i&&o?l[l.length-1]+=r:l===O?l=[r]:l.push(r),o=i;var c=new t;return c.nodeName=e,c.children=l,c.attributes=null==n?void 0:n,c.key=null==n?void 0:n.key,void 0!==L.vnode&&L.vnode(c),c}function o(e,t){for(var n in t)e[n]=t[n];return e}function r(e,t){return n(e.nodeName,o(o({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==S.push(e)&&(L.debounceRendering||setTimeout)(u)}function u(){var e,t=S;for(S=[];e=t.pop();)e.__d&&j(e)}function l(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&c(e,t.nodeName):n||e._componentConstructor===t.nodeName}function c(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function a(e){var t=o({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function s(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===P.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e.__l||(e.__l={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)_(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var l=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function _(e,t,n){try{e[t]=n}catch(e){}}function d(e){return this.__l[e.type](L.event&&L.event(e)||e)}function h(){for(var e;e=A.pop();)L.afterMount&&L.afterMount(e),e.componentDidMount&&e.componentDidMount()}function v(e,t,n,o,r,i){B++||(V=null!=r&&void 0!==r.ownerSVGElement,D=null!=e&&!("__preactattr_"in e));var u=m(e,t,n,o,i);return r&&u.parentNode!==r&&r.appendChild(u),--B||(D=!1,i||h()),u}function m(e,t,n,o,r){var i=e,u=V;if(null==t&&(t=""),"string"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),y(e,!0))),i.__preactattr_=!0,i;if("function"==typeof t.nodeName)return E(e,t,n,o);if(V="svg"===t.nodeName||"foreignObject"!==t.nodeName&&V,(!e||!c(e,t.nodeName+""))&&(i=s(t.nodeName+"",V),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),y(e,!0)}var l=i.firstChild,a=i.__preactattr_||(i.__preactattr_={}),p=t.children;return!D&&p&&1===p.length&&"string"==typeof p[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=p[0]&&(l.nodeValue=p[0]):(p&&p.length||null!=l)&&b(i,p,n,o,D||null!=a.dangerouslySetInnerHTML),w(i,t.attributes,a),V=u,i}function b(e,t,n,o,r){var i,u,c,a,s=e.childNodes,f=[],_={},d=0,h=0,v=s.length,b=0,g=t?t.length:0;if(0!==v)for(var w=0;v>w;w++){var x=s[w],N=x.__preactattr_,C=g&&N?x._component?x._component.__k:N.key:null;null!=C?(d++,_[C]=x):(N||(void 0!==x.splitText?!r||x.nodeValue.trim():r))&&(f[b++]=x)}if(0!==g)for(var w=0;g>w;w++){c=t[w],a=null;var C=c.key;if(null!=C)d&&void 0!==_[C]&&(a=_[C],_[C]=void 0,d--);else if(!a&&b>h)for(i=h;b>i;i++)if(void 0!==f[i]&&l(u=f[i],c,r)){a=u,f[i]=void 0,i===b-1&&b--,i===h&&h++;break}(a=m(a,c,n,o))&&a!==e&&(v>w?a!==s[w]&&(a===s[w+1]?p(s[w]):e.insertBefore(a,s[w]||null)):e.appendChild(a))}if(d)for(var w in _)void 0!==_[w]&&y(_[w],!1);for(;b>=h;)void 0!==(a=f[b--])&&y(a,!1)}function y(e,t){var n=e._component;n?W(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||p(e),g(e))}function g(e){for(e=e.lastChild;e;){var t=e.previousSibling;y(e,!0),e=t}}function w(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||f(e,o,n[o],n[o]=void 0,V);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||f(e,o,n[o],n[o]=t[o],V)}function x(e){var t=e.constructor.name;(J[t]||(J[t]=[])).push(e)}function N(e,t,n){var o,r=J[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),T.call(o,t,n)):(o=new T(t,n),o.constructor=e,o.render=C),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.__b=r[i].__b,r.splice(i,1);break}return o}function C(e,t,n){return this.constructor(e,n)}function k(e,t,n,o,r){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o),o&&o!==e.context&&(e.__c||(e.__c=e.context),e.context=o),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===L.syncComponentUpdates&&e.base?i(e):j(e,1,r)),e.__r&&e.__r(e))}function j(e,t,n,r){if(!e.__x){var i,u,l,c=e.props,s=e.state,p=e.context,f=e.__p||c,_=e.__s||s,d=e.__c||p,m=e.base,b=e.__b,g=m||b,w=e._component,x=!1;if(m&&(e.props=f,e.state=_,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,s,p)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(c,s,p),e.props=c,e.state=s,e.context=p),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!x){i=e.render(c,s,p),e.getChildContext&&(p=o(o({},p),e.getChildContext()));var C,E,T=i&&i.nodeName;if("function"==typeof T){var U=a(i);u=w,u&&u.constructor===T&&U.key==u.__k?k(u,U,1,p,!1):(C=u,e._component=u=N(T,U,p),u.__b=u.__b||b,u.__u=e,k(u,U,0,p,!1),j(u,1,n,!0)),E=u.base}else l=g,C=w,C&&(l=e._component=null),(g||1===t)&&(l&&(l._component=null),E=v(l,i,p,n||!m,g&&g.parentNode,!0));if(g&&E!==g&&u!==w){var M=g.parentNode;M&&E!==M&&(M.replaceChild(E,g),C||(g._component=null,y(g,!1)))}if(C&&W(C),e.base=E,E&&!r){for(var O=e,P=e;P=P.__u;)(O=P).base=E;E._component=O,E._componentConstructor=O.constructor}}if(!m||n?A.unshift(e):x||(h(),e.componentDidUpdate&&e.componentDidUpdate(f,_,d),L.afterUpdate&&L.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);B||r||h()}}function E(e,t,n,o){for(var r=e&&e._component,i=r,u=e,l=r&&e._componentConstructor===t.nodeName,c=l,s=a(t);r&&!c&&(r=r.__u);)c=r.constructor===t.nodeName;return r&&c&&(!o||r._component)?(k(r,s,3,n,o),e=r.base):(i&&!l&&(W(i),e=u=null),r=N(t.nodeName,s,n),e&&!r.__b&&(r.__b=e,u=null),k(r,s,1,n,o),e=r.base,u&&e!==u&&(u._component=null,y(u,!1))),e}function W(e){L.beforeUnmount&&L.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?W(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,p(t),x(e),g(t)),e.__r&&e.__r(null)}function T(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function U(e,t,n){return v(n,e,{},!1,t,!1)}var L={},M=[],O=[],P=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,S=[],A=[],B=0,V=!1,D=!1,J={};o(T.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=o({},n)),o(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),i(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),j(this,2)},render:function(){}});var H={h:n,createElement:n,cloneElement:r,Component:T,render:U,rerender:u,options:L};e.exports=H}()},FWi5:function(){},JkW7:function(e,t,n){"use strict";function o(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){"function"!=typeof t&&null!==t||(e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t))}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return a});var i=n("EBst"),u=(n.n(i),n("FWi5")),l=(n.n(u),n("YXjq")),c=n.i(i.h)("h1",null,"Example"),a=function(e){function t(){return o(this,e.apply(this,arguments))}return r(t,e),t.prototype.componentDidMount=function(){var e=this;fetch("//api.github.com/search/repositories?q=preact").then(function(e){return e.json()}).then(function(t){e.setState({results:t&&t.items||[]})})},t.prototype.render=function(e,t){var o=t.results,r=void 0===o?[]:o;return n.i(i.h)("div",null,c,n.i(i.h)("div",{class:"list"},r.map(function(e){return n.i(i.h)(l.a,{result:e})})))},t}(i.Component)},YXjq:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n("EBst"),r=(n.n(o),function(e){var t=e.result;return n.i(o.h)("div",{class:"result"},n.i(o.h)("div",null,n.i(o.h)("a",{href:t.html_url,target:"_blank"},t.full_name),"🌟",n.i(o.h)("strong",null,t.stargazers_count)),n.i(o.h)("p",null,t.description))})},uXl7:function(e,t,n){"use strict";var o=n("EBst");"serviceWorker"in navigator&&"https:"===location.protocol&&navigator.serviceWorker.register("/sw.js");var r=function(e){return e&&e.default||e};if("function"==typeof r(n("JkW7"))){var i=document.body.firstElementChild,u=function(){var e=r(n("JkW7"));i=(0,o.render)((0,o.h)(e),document.body,i)};"function"==typeof fetch?u():n.e(0).then(function(){n("W1jL"),u()}.bind(null,n)).catch(n.oe)}}});