mirror of
https://github.com/He4eT/huge-link.git
synced 2026-05-04 16:37:23 +00:00
2 lines
No EOL
23 KiB
JavaScript
2 lines
No EOL
23 KiB
JavaScript
!function(t){function n(n){for(var e,r,o=n[0],i=n[1],_=0,l=[];_<o.length;_++)r=o[_],Object.prototype.hasOwnProperty.call(u,r)&&u[r]&&l.push(u[r][0]),u[r]=0;for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);for(c&&c(n);l.length;)l.shift()()}function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={},o={0:0},u={0:0};e.e=function(t){var n=[];o[t]?n.push(o[t]):0!==o[t]&&{2:1}[t]&&n.push(o[t]=new Promise((function(n,r){for(var u=({2:"route-editor",3:"route-post"}[t]||t)+".chunk."+{2:"e8d99",3:"31d6c"}[t]+".css",i=e.p+u,_=document.getElementsByTagName("link"),l=0;l<_.length;l++){var c=(f=_[l]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===u||c===i))return n()}var a=document.getElementsByTagName("style");for(l=0;l<a.length;l++){var f;if((c=(f=a[l]).getAttribute("data-href"))===u||c===i)return n()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=n,s.onerror=function(n){var e=n&&n.target&&n.target.src||i,u=new Error("Loading CSS chunk "+t+" failed.\n("+e+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=e,delete o[t],s.parentNode.removeChild(s),r(u)},s.href=i,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[t]=0})));var r=u[t];if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,e){r=u[t]=[n,e]}));n.push(r[2]=i);var _,l=document.createElement("script");l.charset="utf-8",l.timeout=120,e.nc&&l.setAttribute("nonce",e.nc),l.src=function(t){return e.p+""+({2:"route-editor",3:"route-post"}[t]||t)+".chunk."+{2:"c9f0a",3:"ecd18"}[t]+".js"}(t);var c=new Error;_=function(n){l.onerror=l.onload=null,clearTimeout(a);var e=u[t];if(0!==e){if(e){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,e[1](c)}u[t]=void 0}};var a=setTimeout((function(){_({type:"timeout",target:l})}),12e4);l.onerror=l.onload=_,document.head.appendChild(l)}return Promise.all(n)},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/huge-link/",e.oe=function(t){throw console.error(t),t};var i=window.webpackJsonp=window.webpackJsonp||[],_=i.push.bind(i);i.push=n,i=i.slice();for(var l=0;l<i.length;l++)n(i[l]);var c=_;e(e.s="mdyV")}({GFNa:function(){},QRet:function(t,n,e){"use strict";function r(t,n){w.options.__h&&w.options.__h(k,t,x||n),x=0;var e=k.__H||(k.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function o(t){return x=1,u(g,t)}function u(t,n,e){var o=r(b++,2);return o.t=t,o.__c||(o.__=[e?e(n):g(void 0,n),function(t){var n=o.t(o.__[0],t);o.__[0]!==n&&(o.__=[n,o.__[1]],o.__c.setState({}))}],o.__c=k),o.__}function i(t,n){var e=r(b++,3);!w.options.__s&&m(e.__H,n)&&(e.__=t,e.__H=n,k.__H.__h.push(e))}function _(t,n){var e=r(b++,4);!w.options.__s&&m(e.__H,n)&&(e.__=t,e.__H=n,k.__h.push(e))}function l(t){return x=5,a((function(){return{current:t}}),[])}function c(t,n,e){x=6,_((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==e?e:e.concat(t))}function a(t,n){var e=r(b++,7);return m(e.__H,n)&&(e.__=t(),e.__H=n,e.__h=t),e.__}function f(t,n){return x=8,a((function(){return t}),n)}function s(t){var n=k.context[t.__c],e=r(b++,9);return e.__c=t,n?(null==e.__&&(e.__=!0,n.sub(k)),n.props.value):t.__}function p(t,n){w.options.useDebugValue&&w.options.useDebugValue(n?n(t):t)}function d(t){var n=r(b++,10),e=o();return n.__=t,k.componentDidCatch||(k.componentDidCatch=function(t){n.__&&n.__(t),e[1](t)}),[e[0],function(){e[1](void 0)}]}function h(){A.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(v),t.__H.__h.forEach(y),t.__H.__h=[]}catch(n){t.__H.__h=[],w.options.__e(n,t.__v)}})),A=[]}function v(t){var n=k;"function"==typeof t.__c&&t.__c(),k=n}function y(t){var n=k;t.__c=t.__(),k=n}function m(t,n){return!t||t.length!==n.length||n.some((function(n,e){return n!==t[e]}))}function g(t,n){return"function"==typeof n?n(t):n}e.d(n,"k",(function(){return o})),e.d(n,"i",(function(){return u})),e.d(n,"d",(function(){return i})),e.d(n,"g",(function(){return _})),e.d(n,"j",(function(){return l})),e.d(n,"f",(function(){return c})),e.d(n,"h",(function(){return a})),e.d(n,"a",(function(){return f})),e.d(n,"b",(function(){return s})),e.d(n,"c",(function(){return p})),e.d(n,"e",(function(){return d}));var b,k,C,w=e("hosL"),x=0,A=[],O=w.options.__b,E=w.options.__r,S=w.options.diffed,P=w.options.__c,j=w.options.unmount;w.options.__b=function(t){k=null,O&&O(t)},w.options.__r=function(t){E&&E(t),b=0;var n=(k=t.__c).__H;n&&(n.__h.forEach(v),n.__h.forEach(y),n.__h=[])},w.options.diffed=function(t){S&&S(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==A.push(n)&&C===w.options.requestAnimationFrame||((C=w.options.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),T&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);T&&(n=requestAnimationFrame(e))})(h)),k=void 0},w.options.__c=function(t,n){n.some((function(t){try{t.__h.forEach(v),t.__h=t.__h.filter((function(t){return!t.__||y(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],w.options.__e(e,t.__v)}})),P&&P(t,n)},w.options.unmount=function(t){j&&j(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(v)}catch(t){w.options.__e(t,n.__v)}};var T="function"==typeof requestAnimationFrame},QfWi:function(t,n,e){"use strict";function r(t){function n(){var n=this;u.Component.call(this),e||(this.componentWillMount=function(){t((function(t){e=t&&t.default||t,n.setState({})}))},this.shouldComponentUpdate=function(){return null!=e}),this.render=function(t){if(e)return Object(u.h)(e,t);var r=function t(n,e){if("string"==typeof n.type)return null;var r=n.__;if(r){var o=r.__k;if(o){Array.isArray(o)||(o=[o]);var u=o.indexOf(n);-1===u&&(u=o.length);for(var i=u;i--;){var _=o[i],l=_&&_.__e||t(_,!0);if(l)return l}}return e?void 0:t(r)}}(n.__v),o=r&&r.nextSibling||(n.__P||n._parentDom).firstChild;return o&&Object(u.h)(o.localName,{dangerouslySetInnerHTML:l})}}var e;return n.preload=t,(n.prototype=new u.Component).constructor=n,n}function o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}e.r(n);var u=e("hosL"),i=e("QRet"),_=e("Y3FI"),l={},c=r((function(t){e.e(2).then(function(){var n=e("TqeA");"function"==typeof t&&t(n)}.bind(null,e)).catch(e.oe)})),a=r((function(t){e.e(3).then(function(){var n=e("nYVF");"function"==typeof t&&t(n)}.bind(null,e)).catch(e.oe)}));e("pRls"),e("GFNa"),n.default=function(){var t=Object(i.k)(""),n=t[0],e=t[1];return Object(u.h)("main",null,Object(u.h)(_.Router,null,Object(u.h)(c,o({path:"/",markdown:n},{setMarkdown:e})),Object(u.h)(a,o({path:"/preview/",mode:"preview",payload:n},{setMarkdown:e})),Object(u.h)(a,o({path:"/p/:payload",mode:"post"},{setMarkdown:e}))))}},Y3FI:function(t,n,e){"use strict";function r(t,n){for(var e in n)t[e]=n[e];return t}function o(t,n,e){var r,o=/(?:\?([^#]*))?(#.*)?$/,u=t.match(o),i={};if(u&&u[1])for(var l=u[1].split("&"),c=0;c<l.length;c++){var a=l[c].split("=");i[decodeURIComponent(a[0])]=decodeURIComponent(a.slice(1).join("="))}t=_(t.replace(o,"")),n=_(n||"");for(var f=Math.max(t.length,n.length),s=0;s<f;s++)if(n[s]&&":"===n[s].charAt(0)){var p=n[s].replace(/(^:|[+*?]+$)/g,""),d=(n[s].match(/[+*?]+$/)||y)[0]||"",h=~d.indexOf("+"),v=~d.indexOf("*"),m=t[s]||"";if(!m&&!v&&(d.indexOf("?")<0||h)){r=!1;break}if(i[p]=decodeURIComponent(m),h||v){i[p]=t.slice(s).map(decodeURIComponent).join("/");break}}else if(n[s]!==t[s]){r=!1;break}return(!0===e.default||!1!==r)&&i}function u(t,n){return t.rank<n.rank?1:t.rank>n.rank?-1:t.index-n.index}function i(t,n){return t.index=n,t.rank=function(t){return t.props.default?0:(n=t.props.path,_(n).map(l).join(""));var n}(t),t.props}function _(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function l(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}function c(){var t;return""+((t=m&&m.location?m.location:m&&m.getCurrentLocation?m.getCurrentLocation():"undefined"!=typeof location?location:k).pathname||"")+(t.search||"")}function a(t,n){return void 0===n&&(n=!1),"string"!=typeof t&&t.url&&(n=t.replace,t=t.url),function(t){for(var n=g.length;n--;)if(g[n].canRoute(t))return!0;return!1}(t)&&function(t,n){void 0===n&&(n="push"),m&&m[n]?m[n](t):"undefined"!=typeof history&&history[n+"State"]&&history[n+"State"](null,null,t)}(t,n?"replace":"push"),f(t)}function f(t){for(var n=!1,e=0;e<g.length;e++)!0===g[e].routeTo(t)&&(n=!0);for(var r=b.length;r--;)b[r](t);return n}function s(t){if(t&&t.getAttribute){var n=t.getAttribute("href"),e=t.getAttribute("target");if(n&&n.match(/^\//g)&&(!e||e.match(/^_?self$/i)))return a(n)}}function p(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button))return s(t.currentTarget||t.target||this),d(t)}function d(t){return t&&(t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault()),!1}function h(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var n=t.target;do{if("A"===String(n.nodeName).toUpperCase()&&n.getAttribute("href")){if(n.hasAttribute("native"))return;if(s(n))return d(t)}}while(n=n.parentNode)}}e.r(n),e.d(n,"subscribers",(function(){return b})),e.d(n,"getCurrentUrl",(function(){return c})),e.d(n,"route",(function(){return a})),e.d(n,"Router",(function(){return w})),e.d(n,"Route",(function(){return A})),e.d(n,"Link",(function(){return x})),e.d(n,"exec",(function(){return o}));var v=e("hosL"),y={},m=null,g=[],b=[],k={},C=!1,w=function(t){function n(n){t.call(this,n),n.history&&(m=n.history),this.state={url:n.url||c()},C||("function"==typeof addEventListener&&(m||addEventListener("popstate",(function(){f(c())})),addEventListener("click",h)),C=!0)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.shouldComponentUpdate=function(t){return!0!==t.static||(t.url!==this.props.url||t.onChange!==this.props.onChange)},n.prototype.canRoute=function(t){var n=Object(v.toChildArray)(this.props.children);return this.getMatchingChildren(n,t,!1).length>0},n.prototype.routeTo=function(t){this.setState({url:t});var n=this.canRoute(t);return this.updating||this.forceUpdate(),n},n.prototype.componentWillMount=function(){g.push(this),this.updating=!0},n.prototype.componentDidMount=function(){var t=this;m&&(this.unlisten=m.listen((function(n){t.routeTo(""+(n.pathname||"")+(n.search||""))}))),this.updating=!1},n.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),g.splice(g.indexOf(this),1)},n.prototype.componentWillUpdate=function(){this.updating=!0},n.prototype.componentDidUpdate=function(){this.updating=!1},n.prototype.getMatchingChildren=function(t,n,e){return t.filter(i).sort(u).map((function(t){var u=o(n,t.props.path,t.props);if(u){if(!1!==e){var i={url:n,matches:u};return r(i,u),delete i.ref,delete i.key,Object(v.cloneElement)(t,i)}return t}})).filter(Boolean)},n.prototype.render=function(t,n){var e=t.children,r=t.onChange,o=n.url,u=this.getMatchingChildren(Object(v.toChildArray)(e),o,!0),i=u[0]||null,_=this.previousUrl;return o!==_&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:_,active:u,current:i})),i},n}(v.Component),x=function(t){return Object(v.createElement)("a",r({onClick:p},t))},A=function(t){return Object(v.createElement)(t.component,t)};w.subscribers=b,w.getCurrentUrl=c,w.route=a,w.Router=w,w.Route=A,w.Link=x,w.exec=o,n.default=w},hosL:function(t,n,e){"use strict";function r(t,n){for(var e in n)t[e]=n[e];return t}function o(t){var n=t.parentNode;n&&n.removeChild(t)}function u(t,n,e){var r,o,u,_=arguments,l={};for(u in n)"key"==u?r=n[u]:"ref"==u?o=n[u]:l[u]=n[u];if(arguments.length>3)for(e=[e],u=3;u<arguments.length;u++)e.push(_[u]);if(null!=e&&(l.children=e),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===l[u]&&(l[u]=t.defaultProps[u]);return i(t,l,r,o,null)}function i(t,n,e,r,o){var u={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++L.__v:o};return null!=L.vnode&&L.vnode(u),u}function _(){return{current:null}}function l(t){return t.children}function c(t,n){this.props=t,this.context=n}function a(t,n){if(null==n)return t.__?a(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof t.type?a(t):null}function f(t){var n,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return f(t)}}function s(t){(!t.__d&&(t.__d=!0)&&D.push(t)&&!p.__r++||M!==L.debounceRendering)&&((M=L.debounceRendering)||H)(p)}function p(){for(var t;p.__r=D.length;)t=D.sort((function(t,n){return t.__v.__b-n.__v.__b})),D=[],t.some((function(t){var n,e,o,u,i,_,l;t.__d&&(_=(i=(n=t).__v).__e,(l=n.__P)&&(e=[],(o=r({},i)).__v=i.__v+1,u=C(l,i,o,n.__n,void 0!==l.ownerSVGElement,null!=i.__h?[_]:null,e,null==_?a(i):_,i.__h),w(e,i),u!=_&&f(i)))}))}function d(t,n,e,r,u,_,c,f,s,p){var d,h,y,m,g,b,k,w=r&&r.__k||F,x=w.length;for(s==W&&(s=null!=c?c[0]:x?a(r,0):null),e.__k=[],d=0;d<n.length;d++)if(null!=(m=e.__k[d]=null==(m=n[d])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m?i(null,m,null,null,m):Array.isArray(m)?i(l,{children:m},null,null,null):null!=m.__e||null!=m.__c?i(m.type,m.props,m.key,null,m.__v):m)){if(m.__=e,m.__b=e.__b+1,null===(y=w[d])||y&&m.key==y.key&&m.type===y.type)w[d]=void 0;else for(h=0;h<x;h++){if((y=w[h])&&m.key==y.key&&m.type===y.type){w[h]=void 0;break}y=null}g=C(t,m,y=y||W,u,_,c,f,s,p),(h=m.ref)&&y.ref!=h&&(k||(k=[]),y.ref&&k.push(y.ref,null,m),k.push(h,m.__c||g,m)),null!=g?(null==b&&(b=g),s=v(t,m,y,w,c,g,s),p||"option"!=e.type?"function"==typeof e.type&&(e.__d=s):t.value=""):s&&y.__e==s&&s.parentNode!=t&&(s=a(y))}if(e.__e=b,null!=c&&"function"!=typeof e.type)for(d=c.length;d--;)null!=c[d]&&o(c[d]);for(d=x;d--;)null!=w[d]&&O(w[d],w[d]);if(k)for(d=0;d<k.length;d++)A(k[d],k[++d],k[++d])}function h(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){h(t,n)})):n.push(t)),n}function v(t,n,e,r,o,u,i){var _,l,c;if(void 0!==n.__d)_=n.__d,n.__d=void 0;else if(o==e||u!=i||null==u.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(u),_=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==u)break t;t.insertBefore(u,i),_=i}return void 0!==_?_:u.nextSibling}function y(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||I.test(n)?e:e+"px"}function m(t,n,e,r,o){var u,i,_;if(o&&"className"==n&&(n="class"),"style"===n)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||y(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||y(t.style,n,e[n])}else"o"===n[0]&&"n"===n[1]?(u=n!==(n=n.replace(/Capture$/,"")),(i=n.toLowerCase())in t&&(n=i),n=n.slice(2),t.l||(t.l={}),t.l[n+u]=e,_=u?b:g,e?r||t.addEventListener(n,_,u):t.removeEventListener(n,_,u)):"list"!==n&&"tagName"!==n&&"form"!==n&&"type"!==n&&"size"!==n&&"download"!==n&&"href"!==n&&!o&&n in t?t[n]=null==e?"":e:"function"!=typeof e&&"dangerouslySetInnerHTML"!==n&&(n!==(n=n.replace(/xlink:?/,""))?null==e||!1===e?t.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),e):null==e||!1===e&&!/^ar/.test(n)?t.removeAttribute(n):t.setAttribute(n,e))}function g(t){this.l[t.type+!1](L.event?L.event(t):t)}function b(t){this.l[t.type+!0](L.event?L.event(t):t)}function k(t,n,e){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,o.__e&&("function"==typeof o.type&&o.__k.length>1&&k(o,n,e),n=v(e,o,o,t.__k,null,o.__e,n),"function"==typeof t.type&&(t.__d=n)))}function C(t,n,e,o,u,i,_,a,f){var s,p,h,v,y,m,g,b,C,w,A,O=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(f=e.__h,a=n.__e=e.__e,n.__h=null,i=[a]),(s=L.__b)&&s(n);try{t:if("function"==typeof O){if(b=n.props,C=(s=O.contextType)&&o[s.__c],w=s?C?C.props.value:s.__:o,e.__c?g=(p=n.__c=e.__c).__=p.__E:("prototype"in O&&O.prototype.render?n.__c=p=new O(b,w):(n.__c=p=new c(b,w),p.constructor=O,p.render=E),C&&C.sub(p),p.props=b,p.state||(p.state={}),p.context=w,p.__n=o,h=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=O.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=r({},p.__s)),r(p.__s,O.getDerivedStateFromProps(b,p.__s))),v=p.props,y=p.state,h)null==O.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==O.getDerivedStateFromProps&&b!==v&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,w),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,w)||n.__v===e.__v){p.props=b,p.state=p.__s,n.__v!==e.__v&&(p.__d=!1),p.__v=n,n.__e=e.__e,n.__k=e.__k,p.__h.length&&_.push(p),k(n,a,t);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,w),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(v,y,m)}))}p.context=w,p.props=b,p.state=p.__s,(s=L.__r)&&s(n),p.__d=!1,p.__v=n,p.__P=t,s=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(o=r(r({},o),p.getChildContext())),h||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(v,y)),A=null!=s&&s.type==l&&null==s.key?s.props.children:s,d(t,Array.isArray(A)?A:[A],n,e,o,u,i,_,a,f),p.base=n.__e,n.__h=null,p.__h.length&&_.push(p),g&&(p.__E=p.__=null),p.__e=!1}else null==i&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=x(e.__e,n,e,o,u,i,_,f);(s=L.diffed)&&s(n)}catch(t){n.__v=null,(f||null!=i)&&(n.__e=a,n.__h=!!f,i[i.indexOf(a)]=null),L.__e(t,n,e)}return n.__e}function w(t,n){L.__c&&L.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){L.__e(t,n.__v)}}))}function x(t,n,e,r,o,u,i,_){var l,c,a,f,s,p=e.props,h=n.props;if(o="svg"===n.type||o,null!=u)for(l=0;l<u.length;l++)if(null!=(c=u[l])&&((null===n.type?3===c.nodeType:c.localName===n.type)||t==c)){t=c,u[l]=null;break}if(null==t){if(null===n.type)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",n.type):document.createElement(n.type,h.is&&{is:h.is}),u=null,_=!1}if(null===n.type)p===h||_&&t.data===h||(t.data=h);else{if(null!=u&&(u=F.slice.call(t.childNodes)),a=(p=e.props||W).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!_){if(null!=u)for(p={},s=0;s<t.attributes.length;s++)p[t.attributes[s].name]=t.attributes[s].value;(f||a)&&(f&&(a&&f.__html==a.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}(function(t,n,e,r,o){var u;for(u in e)"children"===u||"key"===u||u in n||m(t,u,null,e[u],r);for(u in n)o&&"function"!=typeof n[u]||"children"===u||"key"===u||"value"===u||"checked"===u||e[u]===n[u]||m(t,u,n[u],e[u],r)})(t,h,p,o,_),f?n.__k=[]:(l=n.props.children,d(t,Array.isArray(l)?l:[l],n,e,r,"foreignObject"!==n.type&&o,u,i,W,_)),_||("value"in h&&void 0!==(l=h.value)&&(l!==t.value||"progress"===n.type&&!l)&&m(t,"value",l,p.value,!1),"checked"in h&&void 0!==(l=h.checked)&&l!==t.checked&&m(t,"checked",l,p.checked,!1))}return t}function A(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){L.__e(t,e)}}function O(t,n,e){var r,u,i;if(L.unmount&&L.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||A(r,null,n)),e||"function"==typeof t.type||(e=null!=(u=t.__e)),t.__e=t.__d=void 0,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){L.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&O(r[i],n,e);null!=u&&o(u)}function E(t,n,e){return this.constructor(t,e)}function S(t,n,e){var r,o,i;L.__&&L.__(t,n),o=(r=e===N)?null:e&&e.__k||n.__k,t=u(l,null,[t]),i=[],C(n,(r?n:e||n).__k=t,o||W,W,void 0!==n.ownerSVGElement,e&&!r?[e]:o?null:n.childNodes.length?F.slice.call(n.childNodes):null,i,e||W,r),w(i,t)}function P(t,n){S(t,n,N)}function j(t,n,e){var o,u,_,l=arguments,c=r({},t.props);for(_ in n)"key"==_?o=n[_]:"ref"==_?u=n[_]:c[_]=n[_];if(arguments.length>3)for(e=[e],_=3;_<arguments.length;_++)e.push(l[_]);return null!=e&&(c.children=e),i(t.type,c,o||t.key,u||t.ref,null)}function T(t,n){var e={__c:n="__cC"+R++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t,e,r){return this.getChildContext||(e=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some(s)},this.sub=function(t){e.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){e.splice(e.indexOf(t),1),n&&n.call(t)}}),t.children}};return e.Provider.__=e.Consumer.contextType=e}e.r(n),e.d(n,"render",(function(){return S})),e.d(n,"hydrate",(function(){return P})),e.d(n,"createElement",(function(){return u})),e.d(n,"h",(function(){return u})),e.d(n,"Fragment",(function(){return l})),e.d(n,"createRef",(function(){return _})),e.d(n,"isValidElement",(function(){return U})),e.d(n,"Component",(function(){return c})),e.d(n,"cloneElement",(function(){return j})),e.d(n,"createContext",(function(){return T})),e.d(n,"toChildArray",(function(){return h})),e.d(n,"__u",(function(){return O})),e.d(n,"options",(function(){return L}));var L,U,D,H,M,N,R,W={},F=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;L={__e:function(t,n){for(var e,r,o,u=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=u,e.__E=e}catch(n){t=n}throw t},__v:0},U=function(t){return null!=t&&void 0===t.constructor},c.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof t&&(t=t(r({},e),this.props)),t&&r(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),s(this))},c.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),s(this))},c.prototype.render=l,D=[],H="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,N=W,R=0},mdyV:function(t,n,e){"use strict";e.r(n);var r=e("hosL"),o=r.h,u=r.render,i=r.hydrate,_=function(t){return t&&t.default?t.default:t},l=function(t){return"/"===t[t.length-1]?t:t+"/"};if("serviceWorker"in navigator&&navigator.serviceWorker.register(e.p+"sw.js"),"function"==typeof _(e("QfWi"))){var c=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var t=_(e("QfWi")),n={},r=document.querySelector('[type="__PREACT_CLI_DATA__"]');r&&(n=JSON.parse(decodeURI(r.innerHTML)).preRenderData||n);var a={preRenderData:n},f=n.url?l(n.url):"",s=i&&f===l(location.pathname);c=(s?i:u)(o(t,{CLI_DATA:a}),document.body,c)}()}},pRls:function(){}});
|
|
//# sourceMappingURL=bundle.6319d.js.map
|