THU Hole react frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
95 KiB

(window.webpackJsonpwebhole=window.webpackJsonpwebhole||[]).push([[0],[,,,,,,,,,,,,,,,function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAC4jAAAuIwF4pT92AAAIoElEQVR42rVWaWwU5xn+dqGHVPCPQhMRsGXjIAKp1ASp0KhJo6qlTQq2fDYipN7d0ewcHV8CO8gHbh2wfGp3vTOZmTUWBArFXHUjFGiROewa0kNqkiJRUkUkMQ2lXD4SQ/DOfG/f75u1GwjmUNMfr2a11/O8z/s87/cR0zTJfZdhEAOLPeOWSU7XN8w+Lfxydudtnz3Ifz4YOD4tXScdlk1ONm2aSQPCIZol/26wbPPMji2Wj31mpL77xRPASnXoj5oWuV5RKkNABMhUYHxZ5c+jCQ7sN/4vCqTktQzDF7Es39831j8CkvBPGpIcd7HqwEPyhTOBhvkRroLhe5BR3D9blDdmWf6eSIRQSYyDIgISSNJFSpLOV4EuVF7taY6SmG362Xe/UAVS3fs7bJucr3l5BYjCDapKLgTDLn1Udd1MzYWH5RtDubVPoRfQJ/c/inuDp4zXjtKf3Lx5BoihPipLAErYgZBE6SKV0nTVcbM0gHnhY4OVm2a0s1HEU4b8nwikZo/lx9mT8Yqyn0FYACojuCq6SACQALgLNNfNUpPwiAyfLF8XiCYs/hvDvLcX7tk9+4MO7P7duto5CH4OwSlI4SSo+JxSQKM0E1XIVCnMU95/N1A3l8XS1I17qnDX7lnFTMvHjRcWWhAcpUfjyTKlKr4OhgE9AG46VqbCSCRpugJutty+uzmCpjV95j0ScdelY2PsWu0EGard8C2c/RhVJAdYSSEkIlDKR6AALNAoZGASMtGQWRqL5ccf5tc+2brVJlYcY3mX5XRX6bF7/4FIh89RpIO8e1lKgizSIa2OjmmVqIDIFRjJUuHcIlQgQ2WFKqjgZKlvHHgl4uexNKYfx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U8RsvNlb1f5VMm3WA8U4HcIXwBJGGWalPjj/gZeW2Xw8R8YPQk5cVVjYSiTm+bNzZuyyHmpSolFsPEaoapEVOjs5V0ln7IuFgnwlqKaquDyHtg12MK6tQZH/l4i5bDU5meK0cu46LEGVF7y8sx5s7PB2K8KzLL256nVYhHsABHg2YKsBBjPqyYor9pbAUpJtAbTbL9t2xS6Xjc4M6zt5NX27IjIaY2Q6Y1XtVcW/PFMmsyWmWdN9uEtElH9UYIIsAXJecBTi0g7oBjOl3bEu3TJxZrXInRtAa5PUhRvX9cnoUzrMi6ySL2CDmhBVnW6lhoPbSpULaKTAkUHXPojEiIjAng50W6ZqGWst6uIcV2pcIOnszkG3svw2RFWPUldv4peSfRJNcdyqiMogGe/nHOedLmt844LC+mQFFCCpMBQAA+imLc6b0eO9pJ37VWjPmSy5tTNNACzc8yztJ5M5/JcIrmX4pOZ1dpvKgdMYbvbpgGVCwsibPlJBfCIEgfkLIi+caamnuz3fd6oHOcrcnnQWVwLjJxHsVc9l1jy+egl/4VAVy48JyB+XoTxjXWBIlxOwCE/G58c/7lzcujU9xuN5Bqvcsl7YUVUT1l2ZbvJs0gVuVjfyb08MnBMswP0Cw6kHQGMM7RHUt2aYn7OowpzYWPki6NfOHxIfMcZGjr7E450TV9EcFaY7wbOG4SN3iKsHLDkaZ1/cUALxIFS7riqG7Dggm1LE2jX+KUPiT2eOX/h/I/e3P7mS3xS7Vu+e/duihj+aauVXAkjW4zVpCWHDadqS9whn4++0wG1A6aTgrodq7tPMm3rXYoyoKBm0h45O3r25T179jh9/X3LnMHBd5z+/v7lvb19zrFjx52r1yZWR7EZJ7mm7cYKCJaQJ/VDU14LeMGBvBYQ03JJQ6Qjk1y+OnHtl0ePH3W63+p2evt6l8nj+f8B6abRC75wAHoAAAAASUVORK5CYII="},,,,function(e,t,n){e.exports=n(53)},,,,,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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vQ5sug5pdrlPk79B0aFUsleyVUUG/WOT8D39jS/CH7XJ2tH2LNCe60hJRd6nv8Dwj5T3q96iTAAAAAASUVORK5CYII="},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),i=n(8),r=n.n(i),s=(n(30),n(1)),l=n(2),c=n(4),u=n(3),h=n(6),d=n(5),p=n(9),m=n(7),f=n(10),g=n.n(f),b=function(){function e(){Object(s.a)(this,e),this.names={},this.current_h=Math.random()}return Object(l.a)(e,[{key:"get",value:function(e){return"\u6d1e\u4e3b"===(e=e.toLowerCase())?["hsl(0,0%,97%)","hsl(0,0%,16%)"]:(this.names[e]||(this.current_h+=.618033988749895,this.current_h%=1,this.names[e]=["hsl(".concat(360*this.current_h,", 50%, 90%)"),"hsl(".concat(360*this.current_h,", 60%, 20%)")]),this.names[e])}}]),e}(),v=/(^|[^\d\u20e3\ufe0e\ufe0f])(#\d{1,7})(?![\d\u20e3\ufe0e\ufe0f])/g,E=/((?:https?:\/\/)?thuhole\.tech\/?#(?:#|%23)(\d{1,7}))(?!\d|\u20e3|\ufe0e|\ufe0f)/g,_=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Jolly|Kind|Little|Magic|Na\xefve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|\u6d1e\u4e3b)(?![A-Za-z])/gi,A=/(^|[^.@a-zA-Z0-9_])((?:https?:\/\/)?(?:(?:[\w-]+\.)+[a-zA-Z]{2,3}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::\d{1,5})?(?:\/[\w~!@#$%^&*()\-_=+[\]{};:,./?|]*)?)(?![a-zA-Z0-9])/gi;function w(e,t){return e=[[null,e]],t.forEach(function(t){var n=Object(m.a)(t,2),a=n[0],o=n[1];e=[].concat.apply([],e.map(function(e){var t=Object(m.a)(e,2),n=t[0],i=t[1];return n?[e]:i.split(o).map(function(e){return o.test(e)?[a,e]:[null,e]}).filter(function(e){var t=Object(m.a)(e,2),n=t[0],a=t[1];return null!==n||a})}))}),e}var k=n(12),y=n.n(k),O=n(13),j=n.n(O),C=n(14),N=n.n(C),S=(n(34),n(35),n(15)),x=n.n(S),I=n(16),D=n.n(I),U=n(17),R=n.n(U),H=n(18),M=n.n(H),L=n(19),Q=n.n(L),T=n(20),G=n.n(T),P=(n(36),n(37),n(21)),X=n.n(P),F="//api.thuhole.tech/";function B(e){if(!e.ok)throw Error("\u7f51\u7edc\u9519\u8bef ".concat(e.status," ").concat(e.statusText));return e.text().then(function(e){try{return JSON.parse(e)}catch(t){throw console.error("json parse error"),console.trace(t),console.log(e),new SyntaxError("JSON Parse Error "+e.substr(0,50))}})}function V(){return"&PKUHelperAPI=3.0&jsapiver="+encodeURIComponent('"200618233030"-'+2*Math.floor(+new Date/72e5))}var W="pkuhelper_login_popup_anchor";function Y(e){return e<10?"0"+e:""+e}function K(e){return"".concat(e.getMonth()+1,"-").concat(Y(e.getDate())," ").concat(e.getHours(),":").concat(Y(e.getMinutes()),":").concat(Y(e.getSeconds()))}var z=N()(j.a);function q(e){var t=new Date(1e3*e.stamp);return o.a.createElement("span",null,o.a.createElement(y.a,{date:t,formatter:z,title:t.toLocaleString("zh-CN",{timeZone:"Asia/Shanghai",hour12:!1})}),"\xa0",K(t))}function Z(e){return o.a.createElement("p",{className:"centered-line title-line aux-margin"},o.a.createElement("span",{className:"black-outline"},e.text))}x.a,D.a,R.a,M.a,Q.a,G.a,X.a;var J=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={loading_status:"idle"},n.username_ref=o.a.createRef(),n.password_ref=o.a.createRef(),n.input_token_ref=o.a.createRef(),n.popup_anchor=document.getElementById(W),n.popup_anchor||(n.popup_anchor=document.createElement("div"),n.popup_anchor.id=W,document.body.appendChild(n.popup_anchor)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"do_sendcode",value:function(e){var t=this;"loading"!==this.state.loading_status&&this.setState({loading_status:"loading"},function(){fetch(F+"api_xmcp/login/send_code?user="+encodeURIComponent(t.username_ref.current.value)+"&code_type="+encodeURIComponent(e)+V(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({excluded_scopes:[]})}).then(B).then(function(e){if(console.log(e),!e.success)throw new Error(JSON.stringify(e));alert(e.msg),t.setState({loading_status:"done"})}).catch(function(e){console.error(e),alert("\u53d1\u9001\u5931\u8d25\n"+e),t.setState({loading_status:"done"})})})}},{key:"do_login",value:function(e){var t=this;"loading"!==this.state.loading_status&&this.setState({loading_status:"loading"},function(){fetch(F+"api_xmcp/login/login?user="+encodeURIComponent(t.username_ref.current.value)+"&valid_code="+encodeURIComponent(t.password_ref.current.value)+V(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({excluded_scopes:[]})}).then(B).then(function(n){if(0!==n.code){if(n.msg)throw new Error(n.msg);throw new Error(JSON.stringify(n))}e(n.user_token),alert("\u767b\u5f55\u6210\u529f"),t.setState({loading_status:"done"}),t.props.on_close()}).catch(function(e){console.error(e),alert("\u767b\u5f55\u5931\u8d25\n"+e),t.setState({loading_status:"done"})})})}},{key:"do_input_token",value:function(e){var t=this;if("loading"!==this.state.loading_status){var n=this.input_token_ref.current.value;this.setState({loading_status:"loading"},function(){fetch(F+"api_xmcp/hole/system_msg?user_token="+encodeURIComponent(n)+V()).then(function(e){return e.json()}).then(function(a){if(a.error)throw new Error(a.error);if(0===a.result.length)throw new Error("result check failed");t.setState({loading_status:"done"}),e(n),t.props.on_close()}).catch(function(e){alert("Token\u68c0\u9a8c\u5931\u8d25\n"+e),t.setState({loading_status:"done"}),console.error(e)})})}}},{key:"render",value:function(){var e=this;return r.a.createPortal(o.a.createElement("div",null,o.a.createElement("div",{className:"pkuhelper-login-popup-shadow"}),o.a.createElement("div",{className:"pkuhelper-login-popup"},o.a.createElement("p",null,o.a.createElement("b",null,"\u63a5\u6536\u9a8c\u8bc1\u7801\u6765\u767b\u5f55 T\u5927\u6811\u6d1e")),o.a.createElement("p",null,o.a.createElement("label",null,"\u3000\u90ae\u7bb1\xa0",o.a.createElement("input",{ref:this.username_ref,type:"email",autoFocus:!0,defaultValue:"@mails.tsinghua.edu.cn"})),o.a.createElement("span",{className:"pkuhelper-login-type"},o.a.createElement("a",{onClick:function(t){return e.do_sendcode("mail")}},"\xa0\u53d1\u9001\u90ae\u4ef6\xa0"))),o.a.createElement("p",null,o.a.createElement("label",null,"\u9a8c\u8bc1\u7801\xa0",o.a.createElement("input",{ref:this.password_ref,type:"tel"})),o.a.createElement("button",{type:"button",disabled:"loading"===this.state.loading_status,onClick:function(t){return e.do_login(e.props.token_callback)}},"\u767b\u5f55")),o.a.createElement("hr",null),o.a.createElement("p",null,o.a.createElement("b",null,"\u4ece\u5176\u4ed6\u8bbe\u5907\u5bfc\u5165\u767b\u5f55\u72b6\u6001")),o.a.createElement("p",null,o.a.createElement("input",{ref:this.input_token_ref,placeholder:"User Token"}),o.a.createElement("button",{type:"button",disabled:"loading"===this.state.loading_status,onClick:function(t){return e.do_input_token(e.props.token_callback)}},"\u5bfc\u5165")),o.a.createElement("hr",null),o.a.createElement("p",null,o.a.createElement("button",{onClick:this.props.on_close},"\u53d6\u6d88")))),this.popup_anchor)}}]),t}(a.Component),$=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={popup_show:!1},n.on_popup_bound=n.on_popup.bind(Object(h.a)(n)),n.on_close_bound=n.on_close.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"on_popup",value:function(){this.setState({popup_show:!0})}},{key:"on_close",value:function(){this.setState({popup_show:!1})}},{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,this.props.children(this.on_popup_bound),this.state.popup_show&&o.a.createElement(J,{token_callback:this.props.token_callback,on_close:this.on_close_bound}))}}]),t}(a.Component),ee="hole_cache_db",te=1,ne=function(){function e(){var t=this;Object(s.a)(this,e),this.db=null,this.added_items_since_maintenance=0,this.encrypt=this.encrypt.bind(this),this.decrypt=this.decrypt.bind(this);var n=indexedDB.open(ee,te);n.onerror=console.error.bind(console),n.onupgradeneeded=function(e){console.log("comment cache db upgrade"),e.target.result.createObjectStore("comment",{keyPath:"pid"}).createIndex("last_access","last_access",{unique:!1})},n.onsuccess=function(e){console.log("comment cache db loaded"),t.db=e.target.result,setTimeout(t.maintenance.bind(t),1)}}return Object(l.a)(e,[{key:"encrypt",value:function(e,t){for(var n=JSON.stringify(t),a="",o=0,i=(42^e)%128;o<n.length;o++){var r=(i^n.charCodeAt(o)/2)%128;a+=String.fromCharCode(i^n.charCodeAt(o)),i=r}return a}},{key:"decrypt",value:function(e,t){var n="";if("string"!==typeof t)return null;for(var a=0,o=(42^e)%128;a<t.length;a++){var i=o^t.charCodeAt(a);n+=String.fromCharCode(i),o=(o^i/2)%128}try{return JSON.parse(n)}catch(r){return console.error("decrypt failed"),console.trace(r),null}}},{key:"get",value:function(e,t){var n=this;return e=parseInt(e),new Promise(function(a,o){if(!n.db)return a(null);var i=n.db.transaction(["comment"],"readwrite").objectStore("comment"),r=i.get(e);r.onsuccess=function(){var o=r.result;if(o&&o.data_str)if(t===o.version){console.log("comment cache hit",e),o.last_access=+new Date,i.put(o);var s=n.decrypt(e,o.data_str);a(s)}else console.log("comment cache expired",e,": ver",o.version,"target",t),i.delete(e),a(null);else a(null)},r.onerror=function(e){console.warn("comment cache indexeddb open failed"),console.error(e),a(null)}})}},{key:"put",value:function(e,t,n){var a=this;return e=parseInt(e),new Promise(function(o,i){if(!a.db)return o();a.db.transaction(["comment"],"readwrite").objectStore("comment").put({pid:e,version:t,data_str:a.encrypt(e,n),last_access:+new Date}),150===++a.added_items_since_maintenance&&setTimeout(a.maintenance.bind(a),1)})}},{key:"delete",value:function(e){var t=this;return e=parseInt(e),new Promise(function(n,a){if(!t.db)return n();var o=t.db.transaction(["comment"],"readwrite").objectStore("comment").delete(e);o.onerror=function(){return console.warn("comment cache delete failed ",e),n()},o.onsuccess=function(){return n()}})}},{key:"maintenance",value:function(){var e=this;if(this.db){var t=this.db.transaction(["comment"],"readwrite").objectStore("comment"),n=t.count();n.onsuccess=function(){var a=n.result;a>1e3?(console.log("comment cache db maintenance",a),t.index("last_access").openKeyCursor().onsuccess=function(e){var n=e.target.result;n&&(t.delete(n.primaryKey),--a>1e3&&n.continue())}):console.log("comment cache db no need to maintenance",a),e.added_items_since_maintenance=0},n.onerror=console.error.bind(console)}}},{key:"clear",value:function(){this.db&&(indexedDB.deleteDatabase(ee),console.log("delete comment cache db"))}}]),e}();function ae(){return window.hole_cache||(window.hole_cache=new ne),window.hole_cache}function oe(e){return V()+(e?"&user_token="+e:"")}var ie={load_replies:function(e,t,n,a){return e=parseInt(e),fetch(re+"/api.php?action=getcomment&pid="+e+oe(t)).then(B).then(function(t){if(0!==t.code)throw t.msg?new Error(t.msg):new Error(JSON.stringify(t));return ae().delete(e).then(function(){ae().put(e,a,t)}),t.data=t.data.sort(function(e,t){return parseInt(e.cid,10)-parseInt(t.cid,10)}).map(function(e){return e._display_color=n.get(e.name),e.variant={},e}),t})},load_replies_with_cache:function(e,t,n,a){return e=parseInt(e),ae().get(e,a).then(function(o){return o?(o.data=o.data.sort(function(e,t){return parseInt(e.cid,10)-parseInt(t.cid,10)}).map(function(e){return e._display_color=n.get(e.name),e.variant={},e}),o):ie.load_replies(e,t,n,a)})},set_attention:function(e,t,n){var a=new URLSearchParams;return a.append("user_token",n),a.append("pid",e),a.append("switch",t?"1":"0"),fetch(re+"/api.php?action=attention"+oe(n),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).then(B).then(function(t){if(ae().delete(e),0!==t.code&&(!t.msg||"\u5df2\u7ecf\u5173\u6ce8\u8fc7\u4e86"!==t.msg))throw t.msg&&alert(t.msg),new Error(JSON.stringify(t));return t})},report:function(e,t,n){var a=new URLSearchParams;return a.append("user_token",n),a.append("pid",e),a.append("reason",t),fetch(re+"/api.php?action=report"+oe(n),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).then(B).then(function(e){if(0!==e.code)throw e.msg&&alert(e.msg),new Error(JSON.stringify(e));return e})},get_list:function(e,t){return fetch(re+"/api.php?action=getlist&p="+e+oe(t)).then(B).then(function(e){if(0!==e.code)throw new Error(JSON.stringify(e));return e})},get_search:function(e,t,n){return fetch(re+"/api.php?action=search&pagesize=50&page="+e+"&keywords="+encodeURIComponent(t)+oe(n)).then(B).then(function(e){if(0!==e.code){if(e.msg)throw new Error(e.msg);throw new Error(JSON.stringify(e))}return e})},get_single:function(e,t){return fetch(re+"/api.php?action=getone&pid="+e+oe(t)).then(B).then(function(e){if(0!==e.code)throw e.msg?new Error(e.msg):new Error(JSON.stringify(e));return e})},get_attention:function(e){return fetch(re+"/api.php?action=getattention"+oe(e)).then(B).then(function(e){if(0!==e.code){if(e.msg)throw new Error(e.msg);throw new Error(JSON.stringify(e))}return e})}},re=(n(38),F+"services/thuhole");function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"g";return e?new RegExp("(".concat(e.split(t).filter(function(e){return!!e}).map(se).join("|"),")"),n):/^$/g}function ce(e){return o.a.createElement("span",{className:"colored-span",style:{"--coloredspan-bgcolor-light":e.colors[0],"--coloredspan-bgcolor-dark":e.colors[1]}},e.children)}var ue=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("pre",null,this.props.parts.map(function(t,n){var a,i=Object(m.a)(t,2),r=i[0],s=i[1];return o.a.createElement("span",{key:n},"url_pid"===r?o.a.createElement("span",{className:"url-pid-link",title:s},"/##"):"url"===r?o.a.createElement("a",{href:(a=s,/^https?:\/\//.test(a)?a:"http://"+a),target:"_blank",rel:"noopener"},s):"pid"===r?o.a.createElement("a",{href:"#"+s,onClick:function(t){t.preventDefault(),e.props.show_pid(s.substring(1))}},s):"nickname"===r?o.a.createElement(ce,{colors:e.props.color_picker.get(s)},s):"search"===r?o.a.createElement("span",{className:"search-query-highlight"},s):s)}))}}]),t}(a.PureComponent);window.TEXTAREA_BACKUP={};var he=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={text:""},n.on_change_bound=n.on_change.bind(Object(h.a)(n)),n.on_keydown_bound=n.on_keydown.bind(Object(h.a)(n)),n.clear=n.clear.bind(Object(h.a)(n)),n.area_ref=o.a.createRef(),n.change_callback=e.on_change||function(){},n.submit_callback=e.on_submit||function(){},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.setState({text:window.TEXTAREA_BACKUP[this.props.id]||""},function(){e.change_callback(e.state.text)})}},{key:"componentWillUnmount",value:function(){window.TEXTAREA_BACKUP[this.props.id]=this.state.text,this.change_callback(this.state.text)}},{key:"on_change",value:function(e){this.setState({text:e.target.value}),this.change_callback(e.target.value)}},{key:"on_keydown",value:function(e){"Enter"===e.key&&e.ctrlKey&&!e.altKey&&(e.preventDefault(),this.submit_callback())}},{key:"clear",value:function(){this.setState({text:""})}},{key:"set",value:function(e){this.change_callback(e),this.setState({text:e})}},{key:"get",value:function(){return this.state.text}},{key:"focus",value:function(){this.area_ref.current.focus()}},{key:"render",value:function(){return o.a.createElement("textarea",{ref:this.area_ref,onChange:this.on_change_bound,value:this.state.text,onKeyDown:this.on_keydown_bound})}}]),t}(a.Component),de=null;function pe(e){var t=/iPhone|iPad|iPod/i.test(window.navigator.userAgent);return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone?null:t?navigator.standalone?null:o.a.createElement("div",{className:"box promotion-bar"},o.a.createElement("span",{className:"icon icon-about"}),"\xa0 \u7528 Safari \u628a\u6811\u6d1e ",o.a.createElement("b",null,"\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55")," \u66f4\u597d\u7528"):de?o.a.createElement("div",{className:"box promotion-bar"},o.a.createElement("span",{className:"icon icon-about"}),"\xa0 \u628a\u7f51\u9875\u7248\u6811\u6d1e ",o.a.createElement("b",null,o.a.createElement("a",{onClick:function(){de&&de.prompt()}},"\u5b89\u88c5\u5230\u684c\u9762"))," \u66f4\u597d\u7528"):null}window.addEventListener("beforeinstallprompt",function(e){console.log("pwa: received before install prompt"),de=e});var me=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={moved:!0,init_y:0,init_x:0},n.on_begin_bound=n.on_begin.bind(Object(h.a)(n)),n.on_move_bound=n.on_move.bind(Object(h.a)(n)),n.on_end_bound=n.on_end.bind(Object(h.a)(n)),n.MOVE_THRESHOLD=3,n.last_fire=0,n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"on_begin",value:function(e){this.setState({moved:!1,init_y:(e.touches?e.touches[0]:e).screenY,init_x:(e.touches?e.touches[0]:e).screenX})}},{key:"on_move",value:function(e){this.state.moved||Math.abs((e.touches?e.touches[0]:e).screenY-this.state.init_y)+Math.abs((e.touches?e.touches[0]:e).screenX-this.state.init_x)>this.MOVE_THRESHOLD&&this.setState({moved:!0})}},{key:"on_end",value:function(e){this.state.moved||this.do_callback(e),this.setState({moved:!0})}},{key:"do_callback",value:function(e){this.last_fire+100>+new Date||(this.last_fire=+new Date,this.props.callback(e))}},{key:"render",value:function(){return o.a.createElement("div",{onTouchStart:this.on_begin_bound,onMouseDown:this.on_begin_bound,onTouchMove:this.on_move_bound,onMouseMove:this.on_move_bound,onClick:this.on_end_bound},this.props.children)}}]),t}(a.PureComponent);n(39);function fe(e,t,n,a){a=a||!1,e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(t){n.call(e,t||window.event)})}function ge(e,t,n,a){a=a||!1,e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent&&e.detachEvent("on".concat(t),n)}var be=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,n=/(scroll|auto)/,a=e;a;){if(!a.parentNode)return e.ownerDocument||document.documentElement;var o=window.getComputedStyle(a),i=o.position,r=o.overflow,s=o["overflow-x"],l=o["overflow-y"];if("static"===i&&t)a=a.parentNode;else{if(n.test(r)&&n.test(s)&&n.test(l))return a;a=a.parentNode}}return e.ownerDocument||e.documentElement||document.documentElement};var ve=0,Ee=0,_e="data-lazyload-listened",Ae=[],we=[],ke=!1;try{var ye=Object.defineProperty({},"passive",{get:function(){ke=!0}});window.addEventListener("test",null,ye)}catch(wt){}var Oe,je=!!ke&&{capture:!1,passive:!0},Ce=function(e){var t=r.a.findDOMNode(e);if(t instanceof HTMLElement){var n=be(t);(e.props.overflow&&n!==t.ownerDocument&&n!==document&&n!==document.documentElement?function(e,t){var n,a,o=r.a.findDOMNode(e);try{var i=t.getBoundingClientRect();n=i.top,a=i.height}catch(wt){n=ve,a=Ee}var s,l,c=window.innerHeight||document.documentElement.clientHeight,u=Math.max(n,0),h=Math.min(c,n+a)-u;try{var d=o.getBoundingClientRect();s=d.top,l=d.height}catch(wt){s=ve,l=Ee}var p=s-u,m=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return p-m[0]<=h&&p+l+m[1]>=0}(e,n):function(e){var t,n,a=r.a.findDOMNode(e);if(!(a.offsetWidth||a.offsetHeight||a.getClientRects().length))return!1;try{var o=a.getBoundingClientRect();t=o.top,n=o.height}catch(wt){t=ve,n=Ee}var i=window.innerHeight||document.documentElement.clientHeight,s=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return t-s[0]<=i&&t+n+s[1]>=0}(e))?e.state.visible&&!e.state.hidden||(e.props.once&&we.push(e),e.setState({visible:!0,hidden:!1})):e.props.once||(e.props.unmountIfInvisible?!0===e.visible&&e.setState({visible:!1}):e.props.hiddenIfInvisible&&!1===e.state.hidden&&e.setState({hidden:!0}))}},Ne=function(){for(var e=0;e<Ae.length;++e){var t=Ae[e];Ce(t)}we.forEach(function(e){var t=Ae.indexOf(e);-1!==t&&Ae.splice(t,1)}),we=[]},Se=null,xe=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={visible:!1,hidden:!1},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=window,t=this.props.scrollContainer;t&&"string"===typeof t&&(e=e.document.querySelector(t));var n=void 0!==this.props.debounce&&"throttle"===Oe||"debounce"===Oe&&void 0===this.props.debounce;if(n&&(ge(e,"scroll",Se,je),ge(window,"resize",Se,je),Se=null),Se||(void 0!==this.props.debounce?(Se=function(e,t,n){var a,o,i,r,s,l=function l(){var c=+new Date-r;c<t&&c>=0?a=setTimeout(l,t-c):(a=null,n||(s=e.apply(i,o),a||(i=null,o=null)))};return function(){i=this,o=arguments,r=+new Date;var c=n&&!a;return a||(a=setTimeout(l,t)),c&&(s=e.apply(i,o),i=null,o=null),s}}(Ne,"number"===typeof this.props.debounce?this.props.debounce:300),Oe="debounce"):void 0!==this.props.throttle?(Se=function(e,t,n){var a,o;return t||(t=250),function(){var i=n||this,r=+new Date,s=arguments;a&&r<a+t?(clearTimeout(o),o=setTimeout(function(){a=r,e.apply(i,s)},t)):(a=r,e.apply(i,s))}}(Ne,"number"===typeof this.props.throttle?this.props.throttle:300),Oe="throttle"):Se=Ne),this.props.overflow){var a=be(r.a.findDOMNode(this));if(a&&"function"===typeof a.getAttribute){var o=+a.getAttribute(_e)+1;1===o&&a.addEventListener("scroll",Se,je),a.setAttribute(_e,o)}}else if(0===Ae.length||n){var i=this.props,s=i.scroll,l=i.resize;s&&fe(e,"scroll",Se,je),l&&fe(window,"resize",Se,je)}Ae.push(this),Ce(this)}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var e=be(r.a.findDOMNode(this));if(e&&"function"===typeof e.getAttribute){var t=+e.getAttribute(_e)-1;0===t?(e.removeEventListener("scroll",Se,je),e.removeAttribute(_e)):e.setAttribute(_e,t)}}var n=Ae.indexOf(this);-1!==n&&Ae.splice(n,1),0===Ae.length&&"undefined"!==typeof window&&(ge(window,"resize",Se,je),ge(window,"scroll",Se,je))}},{key:"render",value:function(){return this.state.visible?this.props.hiddenIfInvisible?this.state.hidden?o.a.createElement("div",{style:{visibility:"hidden"}},this.props.children):o.a.createElement("div",null,this.props.children):this.props.children:this.props.placeholder?this.props.placeholder:o.a.createElement("div",{style:{height:this.props.height},className:"lazyload-placeholder"})}}]),t}(a.PureComponent);xe.defaultProps={once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1,hiddenIfInvisible:!1};var Ie=xe,De=n(22),Ue=n.n(De);window.audio_cache={};var Re=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={url:n.props.src,state:"waiting",data:null},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"load",value:function(){var e=this;window.audio_cache[this.state.url]?this.setState({state:"loaded",data:window.audio_cache[this.state.url]}):(console.log("fetching audio",this.state.url),this.setState({state:"loading"}),Promise.all([fetch(this.state.url),new Promise(function(e,t){window.AMR?e():Ue()("static/amr_all.min.js",function(n){n?t(n):e()})})]).then(function(t){t[0].blob().then(function(t){var n=new FileReader;n.onload=function(t){var n=(new window.AMR).decode(t.target.result);if(n){for(var a=window.PCMData.encode({sampleRate:8e3,channelCount:1,bytesPerSample:2,data:n}),o=new Uint8Array(a.length),i=0;i<a.length;i++)o[i]=a.charCodeAt(i);var r=URL.createObjectURL(new Blob([o],{type:"audio/wav"}));window.audio_cache[e.state.url]=r,e.setState({state:"loaded",data:r})}else alert("audio decoding failed")},n.readAsBinaryString(t)}),e.setState({state:"decoding"})}))}},{key:"render",value:function(){return"waiting"===this.state.state?o.a.createElement("p",null,o.a.createElement("a",{onClick:this.load.bind(this)},"\u52a0\u8f7d\u97f3\u9891")):"loading"===this.state.state?o.a.createElement("p",null,"\u6b63\u5728\u4e0b\u8f7d\u2026\u2026"):"decoding"===this.state.state?o.a.createElement("p",null,"\u6b63\u5728\u89e3\u7801\u2026\u2026"):"loaded"===this.state.state?o.a.createElement("p",null,o.a.createElement("audio",{src:this.state.data,controls:!0})):void 0}}]),t}(a.Component),He=(a.PureComponent,n(40),{"static/bg/gbp.jpg":"\u5bfb\u89c5\u7e41\u661f\uff08\u9ed8\u8ba4\uff09","static/bg/eriri.jpg":"\u5e73\u6210\u8457\u540d\u753b\u5e08","static/bg/yurucamp.jpg":"\u9732\u8425\u5929\u4e0b\u7b2c\u4e00","static/bg/minecraft.jpg":"\u9ea6\u6069\xb7\u5e93\u62c9\u592b\u7279","static/bg/cyberpunk.jpg":"\u8d5b\u535a\u57ce\u5e02","static/bg/sif.jpg":"\u68a6\u5f00\u59cb\u7684\u5730\u65b9"}),Me={background_img:"static/bg/gbp.jpg",background_color:"#113366",pressure:!1,easter_egg:!0,color_scheme:"default"};function Le(){var e,t=Object.assign({},Me);try{e=JSON.parse(localStorage.hole_config||"{}")}catch(wt){alert("\u8bbe\u7f6e\u52a0\u8f7d\u5931\u8d25\uff0c\u5c06\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u8bbe\u7f6e\uff01\n"+wt),delete localStorage.hole_config,e={}}Object.keys(e).forEach(function(n){void 0!==t[n]&&(t[n]=e[n])}),console.log("config loaded",t),window.config=t}function Qe(){localStorage.hole_config=JSON.stringify(window.config),Le()}function Te(e,t){return void 0===e&&(e=window.config.background_img),void 0===t&&(t=window.config.background_color),{background:"transparent center center",backgroundImage:null===e?"unset":'url("'+encodeURI(e)+'")',backgroundColor:t,backgroundSize:"cover"}}var Ge=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={img:window.config.background_img,color:window.config.background_color},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"save_changes",value:function(){this.props.callback({background_img:this.state.img,background_color:this.state.color})}},{key:"on_select",value:function(e){var t=e.target.value;this.setState({img:"##other"===t?"":"##color"===t?null:t},this.save_changes.bind(this))}},{key:"on_change_img",value:function(e){this.setState({img:e.target.value},this.save_changes.bind(this))}},{key:"on_change_color",value:function(e){this.setState({color:e.target.value},this.save_changes.bind(this))}},{key:"render",value:function(){var e=null===this.state.img?"##color":-1===Object.keys(He).indexOf(this.state.img)?"##other":this.state.img;return o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("b",null,"\u80cc\u666f\u56fe\u7247\uff1a"),o.a.createElement("select",{value:e,onChange:this.on_select.bind(this)},Object.keys(He).map(function(e){return o.a.createElement("option",{key:e,value:e},He[e])}),o.a.createElement("option",{value:"##other"},"\u8f93\u5165\u56fe\u7247\u7f51\u5740\u2026\u2026"),o.a.createElement("option",{value:"##color"},"\u7eaf\u8272\u80cc\u666f\u2026\u2026")),"\xa0","##other"===e&&o.a.createElement("input",{type:"url",placeholder:"\u56fe\u7247\u7f51\u5740",value:this.state.img,onChange:this.on_change_img.bind(this)}),"##color"===e&&o.a.createElement("input",{type:"color",value:this.state.color,onChange:this.on_change_color.bind(this)})),o.a.createElement("div",{className:"bg-preview",style:Te(this.state.img,this.state.color)}))}}]),t}(a.PureComponent),Pe=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={color_scheme:window.config.color_scheme},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"save_changes",value:function(){this.props.callback({color_scheme:this.state.color_scheme})}},{key:"on_select",value:function(e){var t=e.target.value;this.setState({color_scheme:t},this.save_changes.bind(this))}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("b",null,"\u591c\u95f4\u6a21\u5f0f\uff1a"),o.a.createElement("select",{value:this.state.color_scheme,onChange:this.on_select.bind(this)},o.a.createElement("option",{value:"default"},"\u8ddf\u968f\u7cfb\u7edf"),o.a.createElement("option",{value:"light"},"\u59cb\u7ec8\u6d45\u8272\u6a21\u5f0f"),o.a.createElement("option",{value:"dark"},"\u59cb\u7ec8\u6df1\u8272\u6a21\u5f0f")),"\xa0 ",o.a.createElement("small",null,"#color_scheme")),o.a.createElement("p",null,"\u9009\u62e9\u6d45\u8272\u6216\u6df1\u8272\u6a21\u5f0f\uff0c\u6df1\u8272\u6a21\u5f0f\u4e0b\u5c06\u4f1a\u8c03\u6697\u56fe\u7247\u4eae\u5ea6"))}}]),t}(a.PureComponent),Xe=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={switch:window.config[n.props.id]},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"on_change",value:function(e){var t=this,n=e.target.checked;this.setState({switch:n},function(){t.props.callback(Object(p.a)({},t.props.id,n))})}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("label",null,o.a.createElement("input",{name:"config-"+this.props.id,type:"checkbox",checked:this.state.switch,onChange:this.on_change.bind(this)}),o.a.createElement("b",null,this.props.name),"\xa0 ",o.a.createElement("small",null,"#",this.props.id))),o.a.createElement("p",null,this.props.description))}}]),t}(a.PureComponent),Fe=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).save_changes_bound=n.save_changes.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"save_changes",value:function(e){console.log(e),Object.keys(e).forEach(function(t){window.config[t]=e[t]}),Qe()}},{key:"reset_settings",value:function(){window.confirm("\u91cd\u7f6e\u6240\u6709\u8bbe\u7f6e\uff1f")&&(window.config={},Qe(),window.location.reload())}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"box config-ui-header"},o.a.createElement("p",null,"\u8fd9\u4e9b\u529f\u80fd\u4ecd\u5728\u6d4b\u8bd5\uff0c\u53ef\u80fd\u4e0d\u7a33\u5b9a\uff08",o.a.createElement("a",{onClick:this.reset_settings.bind(this)},"\u5168\u90e8\u91cd\u7f6e"),"\uff09"),o.a.createElement("p",null,o.a.createElement("b",null,"\u4fee\u6539\u8bbe\u7f6e\u540e ",o.a.createElement("a",{onClick:function(){window.location.reload()}},"\u5237\u65b0\u9875\u9762")," \u65b9\u53ef\u751f\u6548"))),o.a.createElement("div",{className:"box"},o.a.createElement(Ge,{callback:this.save_changes_bound}),o.a.createElement("hr",null),o.a.createElement(Pe,{callback:this.save_changes_bound}),o.a.createElement("hr",null),o.a.createElement(Xe,{callback:this.save_changes_bound,id:"pressure",name:"\u5feb\u901f\u8fd4\u56de",description:"\u77ed\u6682\u6309\u4f4f Esc \u952e\u6216\u91cd\u538b\u5c4f\u5e55\uff083D Touch\uff09\u53ef\u4ee5\u5feb\u901f\u8fd4\u56de\u6216\u8005\u5237\u65b0\u6811\u6d1e"}),o.a.createElement("hr",null),o.a.createElement(Xe,{callback:this.save_changes_bound,id:"easter_egg",name:"\u5141\u8bb8\u5f69\u86cb",description:"\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u663e\u793a\u5f69\u86cb"}),o.a.createElement("hr",null),o.a.createElement("p",null,"\u65b0\u529f\u80fd\u5efa\u8bae\u6216\u95ee\u9898\u53cd\u9988\u8bf7\u5728\xa0",o.a.createElement("a",{href:"https://github.com/thuhole/thuhole-go-backend/issues",target:"_blank"},"GitHub ",o.a.createElement("span",{className:"icon icon-github"})),"\xa0\u63d0\u51fa\u3002")))}}]),t}(a.PureComponent),Be=n(23),Ve=n.n(Be),We=(n(49),8e3),Ye=5e6,Ke=6e5,ze=o.a.createContext({value:null,set_value:function(){}});function qe(e){return o.a.createElement("div",null,o.a.createElement(pe,null),o.a.createElement(Ze,{show_sidebar:e.show_sidebar}),o.a.createElement("div",{className:"box list-menu"},o.a.createElement("a",{onClick:function(){e.show_sidebar("\u8bbe\u7f6e",o.a.createElement(Fe,null))}},o.a.createElement("span",{className:"icon icon-settings"}),o.a.createElement("label",null,"\u7f51\u9875\u7248\u6811\u6d1e\u8bbe\u7f6e")),"\xa0\xa0",o.a.createElement("a",{href:"https://github.com/thuhole/thuhole-go-backend/issues",target:"_blank"},o.a.createElement("span",{className:"icon icon-github"}),o.a.createElement("label",null,"\u610f\u89c1\u53cd\u9988"))),o.a.createElement("div",{className:"box help-desc-box"},o.a.createElement("p",null,"T\u5927\u6811\u6d1e \u7f51\u9875\u7248 by @thuhole\uff0c \u57fa\u4e8e\xa0",o.a.createElement("a",{href:"https://www.gnu.org/licenses/gpl-3.0.zh-cn.html",target:"_blank"},"GPLv3"),"\xa0\u534f\u8bae\u5728 ",o.a.createElement("a",{href:"https://github.com/thuhole/webhole",target:"_blank"},"GitHub")," \u5f00\u6e90"),o.a.createElement("p",null,"T\u5927\u6811\u6d1e \u7f51\u9875\u7248\u7684\u8bde\u751f\u79bb\u4e0d\u5f00\xa0",o.a.createElement("a",{href:"https://github.com/pkuhelper-web/webhole",target:"_blank",rel:"noopener"},"P\u5927\u6811\u6d1e"),"\u3001",o.a.createElement("a",{href:"https://reactjs.org/",target:"_blank",rel:"noopener"},"React"),"\u3001",o.a.createElement("a",{href:"https://icomoon.io/#icons",target:"_blank",rel:"noopener"},"IcoMoon"),"\xa0\u7b49\u5f00\u6e90\u9879\u76ee"),o.a.createElement("p",null,o.a.createElement("a",{onClick:function(){"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(e){var t=!0,n=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var r=o.value;console.log("unregister",r),r.unregister()}}catch(s){n=!0,a=s}finally{try{t||null==i.return||i.return()}finally{if(n)throw a}}}),ae().clear(),setTimeout(function(){window.location.reload(!0)},200)}},"\u5f3a\u5236\u68c0\u67e5\u66f4\u65b0"),"\uff08",'"200618233030"'," ","production"," \u4f1a\u81ea\u52a8\u5728\u540e\u53f0\u68c0\u67e5\u66f4\u65b0\u5e76\u5728\u4e0b\u6b21\u8bbf\u95ee\u65f6\u66f4\u65b0\uff09"),o.a.createElement("p",null,"This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version."),o.a.createElement("p",null,"This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\xa0",o.a.createElement("a",{href:"https://www.gnu.org/licenses/gpl-3.0.zh-cn.html",target:"_blank"},"GNU General Public License"),"\xa0for more details.")))}a.Component;var Ze=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"copy_token",value:function(e){g()(e)&&alert("\u590d\u5236\u6210\u529f\uff01\n\u8bf7\u4e00\u5b9a\u4e0d\u8981\u6cc4\u9732\u54e6")}},{key:"render",value:function(){var e=this;return o.a.createElement(ze.Consumer,null,function(t){return o.a.createElement("div",null,o.a.createElement("div",{className:"login-form box"},t.value?o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("b",null,"\u60a8\u5df2\u767b\u5f55\u3002"),o.a.createElement("button",{type:"button",onClick:function(){t.set_value(null)}},o.a.createElement("span",{className:"icon icon-logout"})," \u6ce8\u9500"),o.a.createElement("br",null)),o.a.createElement("p",null,o.a.createElement("a",{onClick:e.copy_token.bind(e,t.value)},"\u590d\u5236 User Token"),o.a.createElement("br",null),"User Token \u7528\u4e8e\u8fc1\u79fb\u767b\u5f55\u72b6\u6001\uff0c\u5207\u52ff\u544a\u77e5\u4ed6\u4eba")):o.a.createElement($,{token_callback:t.set_value},function(e){return o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("button",{type:"button",onClick:e},o.a.createElement("span",{className:"icon icon-login"}),"\xa0\u767b\u5f55")),o.a.createElement("p",null,o.a.createElement("small",null,"T\u5927\u6811\u6d1e \u9762\u5411\u6e05\u534e\u5927\u5b66\u5b66\u751f\uff0c\u901a\u8fc7\u6e05\u534e\u90ae\u7bb1\u9a8c\u8bc1\u60a8\u7684\u8eab\u4efd\u5e76\u63d0\u4f9b\u670d\u52a1\u3002")))})))})}}]),t}(a.Component),Je=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={text:"",loading_status:"done"},n.on_change_bound=n.on_change.bind(Object(h.a)(n)),n.area_ref=n.props.area_ref||o.a.createRef(),n.global_keypress_handler_bound=n.global_keypress_handler.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"global_keypress_handler",value:function(e){"Enter"!==e.code||e.ctrlKey||e.altKey||-1!==["input","textarea"].indexOf(e.target.tagName.toLowerCase())||this.area_ref.current&&(e.preventDefault(),this.area_ref.current.focus())}},{key:"componentDidMount",value:function(){document.addEventListener("keypress",this.global_keypress_handler_bound)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keypress",this.global_keypress_handler_bound)}},{key:"on_change",value:function(e){this.setState({text:e})}},{key:"on_submit",value:function(e){var t=this;if(e&&e.preventDefault(),"loading"!==this.state.loading_status){this.setState({loading_status:"loading"});var n=new URLSearchParams;n.append("pid",this.props.pid),n.append("text",this.state.text),n.append("user_token",this.props.token),fetch(re+"/api.php?action=docomment"+oe(this.props.token),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n}).then(B).then(function(e){if(0!==e.code)throw e.msg&&alert(e.msg),new Error(JSON.stringify(e));t.setState({loading_status:"done",text:""}),t.area_ref.current.clear(),t.props.on_complete()}).catch(function(e){console.error(e),alert("\u56de\u590d\u5931\u8d25"),t.setState({loading_status:"done"})})}}},{key:"render",value:function(){return o.a.createElement("form",{onSubmit:this.on_submit.bind(this),className:"reply-form box"+(this.state.text?" reply-sticky":"")},o.a.createElement(he,{key:this.props.pid,ref:this.area_ref,id:this.props.pid,on_change:this.on_change_bound,on_submit:this.on_submit.bind(this)}),"loading"===this.state.loading_status?o.a.createElement("button",{disabled:"disabled"},o.a.createElement("span",{className:"icon icon-loading"})):o.a.createElement("button",{type:"submit"},o.a.createElement("span",{className:"icon icon-send"})))}}]),t}(a.Component),$e=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={text:"",loading_status:"done",img_tip:null},n.img_ref=o.a.createRef(),n.area_ref=o.a.createRef(),n.on_change_bound=n.on_change.bind(Object(h.a)(n)),n.on_img_change_bound=n.on_img_change.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.area_ref.current&&this.area_ref.current.focus()}},{key:"on_change",value:function(e){this.setState({text:e})}},{key:"do_post",value:function(e,t){var n=this,a=new URLSearchParams;a.append("text",this.state.text),a.append("type",t?"image":"text"),a.append("user_token",this.props.token),t&&a.append("data",t),fetch(re+"/api.php?action=dopost"+oe(this.props.token),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).then(B).then(function(e){if(0!==e.code)throw e.msg&&alert(e.msg),new Error(JSON.stringify(e));n.setState({loading_status:"done",text:""}),n.area_ref.current.clear(),n.props.on_complete()}).catch(function(e){console.error(e),alert("\u53d1\u8868\u5931\u8d25"),n.setState({loading_status:"done"})})}},{key:"proc_img",value:function(e){return new Promise(function(t,n){function a(e){var t=e.indexOf(";base64,");if(-1===t)throw new Error("img not base64 encoded");return e.substr(t+8)}var o=new FileReader;o.onload=function(e){Ve()(e.target.result,{},function(e){!function(e){var o=new Image;o.onload=function(){var e=o.width,i=o.height,r=!1;if(e>We&&(i=i*We/e,e=We,r=!0),i>We&&(e=e*We/i,i=We,r=!0),i*e>Ye){var s=Math.sqrt(i*e/Ye);i/=s,e/=s,r=!0}console.log("chosen img size",e,i);var l=document.createElement("canvas"),c=l.getContext("2d");l.width=e,l.height=i,c.drawImage(o,0,0,e,i);for(var u,h,d=.1,p=.9;p-d>=.03;)u=(p+d)/2,h=l.toDataURL("image/jpeg",u),console.log(d,p,"trying quality",u,"size",h.length),h.length<=Ke?d=u:p=u;d>=.101?(console.log("chosen img quality",u),t({img:a(h),quality:u,width:Math.round(e),height:Math.round(i),compressed:r})):n("\u56fe\u7247\u8fc7\u5927\uff0c\u65e0\u6cd5\u4e0a\u4f20")},o.src=e}(e)})},o.readAsDataURL(e)})}},{key:"on_img_change",value:function(){var e=this;this.img_ref.current&&this.img_ref.current.files.length?this.setState({img_tip:"\uff08\u6b63\u5728\u5904\u7406\u56fe\u7247\u2026\u2026\uff09"},function(){e.proc_img(e.img_ref.current.files[0]).then(function(t){e.setState({img_tip:"\uff08".concat(t.compressed?"\u538b\u7f29\u5230":"\u5c3a\u5bf8"," ").concat(t.width,"*").concat(t.height," / ")+"\u8d28\u91cf ".concat(Math.floor(100*t.quality),"% / ").concat(Math.floor(t.img.length/(4/3)/1e3),"KB\uff09")})}).catch(function(t){e.setState({img_tip:"\u56fe\u7247\u65e0\u6548\uff1a".concat(t)})})}):this.setState({img_tip:null})}},{key:"on_submit",value:function(e){var t=this;e&&e.preventDefault(),"loading"!==this.state.loading_status&&(this.img_ref.current.files.length?(this.setState({loading_status:"processing"}),this.proc_img(this.img_ref.current.files[0]).then(function(e){t.setState({loading_status:"loading"}),t.do_post(t.state.text,e.img)}).catch(function(e){alert(e)})):(this.setState({loading_status:"loading"}),this.do_post(this.state.text,null)))}},{key:"render",value:function(){var e=this;return o.a.createElement("form",{onSubmit:this.on_submit.bind(this),className:"post-form box"},o.a.createElement("div",{className:"post-form-bar"},o.a.createElement("label",null,"\u56fe\u7247",o.a.createElement("input",{ref:this.img_ref,type:"file",accept:"image/*",disabled:"done"!==this.state.loading_status,onChange:this.on_img_change_bound})),"done"!==this.state.loading_status?o.a.createElement("button",{disabled:"disabled"},o.a.createElement("span",{className:"icon icon-loading"}),"\xa0\u6b63\u5728","processing"===this.state.loading_status?"\u5904\u7406":"\u4e0a\u4f20"):o.a.createElement("button",{type:"submit"},o.a.createElement("span",{className:"icon icon-send"}),"\xa0\u53d1\u8868")),!!this.state.img_tip&&o.a.createElement("p",{className:"post-form-img-tip"},o.a.createElement("a",{onClick:function(){e.img_ref.current.value="",e.on_img_change()}},"\u5220\u9664\u56fe\u7247"),this.state.img_tip),o.a.createElement(he,{ref:this.area_ref,id:"new_post",on_change:this.on_change_bound,on_submit:this.on_submit.bind(this)}),o.a.createElement("p",null,o.a.createElement("small",null,"\u8bf7\u9075\u5b88",o.a.createElement("a",{href:"http://pkuhelper.pku.edu.cn/treehole_rules.html",target:"_blank"},"\u6811\u6d1e\u7ba1\u7406\u89c4\u8303"),"\uff0c\u6587\u660e\u53d1\u8a00")))}}]),t}(a.Component),et=F+"/images/",tt={a:!0,audio:!0},nt=[];window.LATEST_POST_ID=parseInt(localStorage._LATEST_POST_ID,10)||0;function at(e,t){return function(n){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new b,r="\u6811\u6d1e #"+n;e(r,o.a.createElement("div",{className:"box box-tip"},"\u6b63\u5728\u52a0\u8f7d #",n),a?"replace":"push"),ie.get_single(n,t).then(function(e){return e.data.variant={},new Promise(function(a,o){ie.load_replies_with_cache(n,t,i,parseInt(e.data.reply)).then(function(t){a([e,t])}).catch(o)})}).then(function(n){var a=Object(m.a)(n,2),s=a[0],l=a[1];e(r,o.a.createElement(rt,{key:+new Date,info:s.data,replies:l.data,attention:l.attention,token:t,show_sidebar:e,color_picker:i,deletion_detect:"on"===localStorage.DELETION_DETECT}),"replace")}).catch(function(a){console.error(a),e(r,o.a.createElement("div",{className:"box box-tip"},o.a.createElement("p",null,o.a.createElement("a",{onClick:function(){return at(e,t)(n,!0)}},"\u91cd\u65b0\u52a0\u8f7d")),o.a.createElement("p",null,""+a)),"replace")})}}var ot=function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).call(this,e))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this,t=w(this.props.info.text,[["url_pid",E],["url",A],["pid",v],["nickname",_]]);return o.a.createElement("div",{className:"flow-reply box",style:this.props.info._display_color?{"--box-bgcolor-light":this.props.info._display_color[0],"--box-bgcolor-dark":this.props.info._display_color[1]}:null},o.a.createElement("div",{className:"box-header"},o.a.createElement("code",{className:"box-id"},"#",this.props.info.cid),!!this.props.do_filter_name&&o.a.createElement("span",{className:"reply-header-badge clickable",onClick:function(){e.props.do_filter_name(e.props.info.name)}},o.a.createElement("span",{className:"icon icon-locate"})),"\xa0",null!==this.props.info.tag&&o.a.createElement("span",{className:"box-header-tag"},this.props.info.tag),o.a.createElement(q,{stamp:this.props.info.timestamp})),o.a.createElement("div",{className:"box-content"},o.a.createElement(ue,{parts:t,color_picker:this.props.color_picker,show_pid:this.props.show_pid})))}}]),t}(a.PureComponent),it=function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).call(this,e))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"copy_link",value:function(e){e.preventDefault(),g()("".concat(e.target.href).concat(this.props.info.tag?" \u3010"+this.props.info.tag+"\u3011":"","\n")+"".concat(this.props.info.text).concat("image"===this.props.info.type?" [\u56fe\u7247]":"audio"===this.props.info.type?" [\u8bed\u97f3]":"","\n")+"\uff08".concat(K(new Date(1e3*this.props.info.timestamp))," ").concat(this.props.info.likenum,"\u5173\u6ce8 ").concat(this.props.info.reply,"\u56de\u590d\uff09\n")+this.props.replies.map(function(e){return(e.tag?"\u3010"+e.tag+"\u3011":"")+e.text}).join("\n"))}},{key:"render",value:function(){var e=this,t=this.props,n=t.parts||w(t.info.text,[["url_pid",E],["url",A],["pid",v],["nickname",_]]);return o.a.createElement("div",{className:"flow-item"+(t.is_quote?" flow-item-quote":"")},!!t.is_quote&&o.a.createElement("div",{className:"quote-tip black-outline"},o.a.createElement("div",null,o.a.createElement("span",{className:"icon icon-quote"})),o.a.createElement("div",null,o.a.createElement("small",null,"\u63d0\u5230"))),o.a.createElement("div",{className:"box"},!!window.LATEST_POST_ID&&parseInt(t.info.pid,10)>window.LATEST_POST_ID&&o.a.createElement("div",{className:"flow-item-dot"}),o.a.createElement("div",{className:"box-header"},!!this.props.do_filter_name&&o.a.createElement("span",{className:"reply-header-badge clickable",onClick:function(){e.props.do_filter_name("\u6d1e\u4e3b")}},o.a.createElement("span",{className:"icon icon-locate"})),!!parseInt(t.info.likenum,10)&&o.a.createElement("span",{className:"box-header-badge"},t.info.likenum,"\xa0",o.a.createElement("span",{className:"icon icon-"+(t.attention?"star-ok":"star")})),!!parseInt(t.info.reply,10)&&o.a.createElement("span",{className:"box-header-badge"},t.info.reply,"\xa0",o.a.createElement("span",{className:"icon icon-reply"})),o.a.createElement("code",{className:"box-id"},o.a.createElement("a",{href:"##"+t.info.pid,onClick:this.copy_link.bind(this)},"#",t.info.pid)),"\xa0",null!==t.info.tag&&o.a.createElement("span",{className:"box-header-tag"},t.info.tag),o.a.createElement(q,{stamp:t.info.timestamp})),o.a.createElement("div",{className:"box-content"},o.a.createElement(ue,{parts:n,color_picker:t.color_picker,show_pid:t.show_pid}),"image"===t.info.type&&o.a.createElement("p",{className:"img"},t.img_clickable?o.a.createElement("a",{className:"no-underline",href:et+t.info.url,target:"_blank"},o.a.createElement("img",{src:et+t.info.url})):o.a.createElement("img",{src:et+t.info.url})),"audio"===t.info.type&&o.a.createElement(Re,{src:"//api.thuhole.tech/services/thuhole/audios/"+t.info.url})),!(!t.attention||!t.info.variant.latest_reply)&&o.a.createElement("p",{className:"box-footer"},"\u6700\u65b0\u56de\u590d ",o.a.createElement(q,{stamp:t.info.variant.latest_reply}))))}}]),t}(a.PureComponent),rt=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={attention:e.attention,info:e.info,replies:e.replies,loading_status:"done",error_msg:null,filter_name:null,rev:!1},n.color_picker=e.color_picker,n.syncState=e.sync_state||function(){},n.reply_ref=o.a.createRef(),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"set_variant",value:function(e,t){this.setState(function(n){return e?{replies:n.replies.map(function(n){return n.cid===e?Object.assign({},n,{variant:Object.assign({},n.variant,t)}):n})}:{info:Object.assign({},n.info,{variant:Object.assign({},n.info.variant,t)})}},function(){this.syncState({info:this.state.info,replies:this.state.replies})})}},{key:"load_replies",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState({loading_status:"loading",error_msg:null}),ie.load_replies(this.state.info.pid,this.props.token,this.color_picker,null).then(function(n){e.setState(function(e,a){return{replies:n.data,info:t?Object.assign({},e.info,{reply:""+n.data.length}):e.info,attention:!!n.attention,loading_status:"done",error_msg:null}},function(){e.syncState({replies:e.state.replies,attention:e.state.attention,info:e.state.info}),e.state.replies.length&&e.set_variant(null,{latest_reply:Math.max.apply(null,e.state.replies.map(function(e){return parseInt(e.timestamp)}))})})}).catch(function(t){console.error(t),e.setState({replies:[],loading_status:"done",error_msg:""+t})})}},{key:"toggle_attention",value:function(){var e=this;this.setState({loading_status:"loading"});var t=!this.state.attention;ie.set_attention(this.state.info.pid,t,this.props.token).then(function(n){e.setState({loading_status:"done",attention:t}),e.syncState({attention:t})}).catch(function(t){e.setState({loading_status:"done"}),alert("\u8bbe\u7f6e\u5173\u6ce8\u5931\u8d25"),console.error(t)})}},{key:"report",value:function(){var e=prompt("\u4e3e\u62a5 #".concat(this.state.info.pid," \u7684\u7406\u7531\uff1a"));null!==e&&ie.report(this.state.info.pid,e,this.props.token).then(function(e){alert("\u4e3e\u62a5\u6210\u529f")}).catch(function(e){alert("\u4e3e\u62a5\u5931\u8d25"),console.error(e)})}},{key:"set_filter_name",value:function(e){this.setState(function(t){return{filter_name:e===t.filter_name?null:e}})}},{key:"toggle_rev",value:function(){this.setState(function(e){return{rev:!e.rev}})}},{key:"show_reply_bar",value:function(e,t){if(this.reply_ref.current&&!t.target.closest("a, .clickable")){var n=this.reply_ref.current.get();if(/^\s*(?:Re (?:|\u6d1e\u4e3b|(?:[A-Z][a-z]+ )?(?:[A-Z][a-z]+)|You Win(?: \d+)?):)?\s*$/.test(n)){var a="Re "+e+": ";a===this.reply_ref.current.get()?this.reply_ref.current.set(""):this.reply_ref.current.set(a)}}}},{key:"render",value:function(){var e=this;if("loading"===this.state.loading_status)return o.a.createElement("p",{className:"box box-tip"},"\u52a0\u8f7d\u4e2d\u2026\u2026");var t=at(this.props.show_sidebar,this.props.token),n=this.state.filter_name?this.state.replies.filter(function(t){return t.name===e.state.filter_name}):this.state.replies.slice();this.state.rev&&n.reverse();var a=(this.state.rev?"y-":"n-")+(this.state.filter_name||"null"),i=Object(p.a)({},"\u6d1e\u4e3b",1);n.forEach(function(e){void 0===i[e.name]&&(i[e.name]=0),i[e.name]++});var r=this.state.filter_name&&"\u6d1e\u4e3b"!==this.state.filter_name?null:o.a.createElement(me,{callback:function(t){e.show_reply_bar("",t)}},o.a.createElement(it,{info:this.state.info,attention:this.state.attention,img_clickable:!0,color_picker:this.color_picker,show_pid:t,replies:this.state.replies,set_variant:function(t){e.set_variant(null,t)},do_filter_name:i["\u6d1e\u4e3b"]>1?this.set_filter_name.bind(this):null}));return o.a.createElement("div",{className:"flow-item-row sidebar-flow-item"},o.a.createElement("div",{className:"box box-tip"},!!this.props.token&&o.a.createElement("span",null,o.a.createElement("a",{onClick:this.report.bind(this)},o.a.createElement("span",{className:"icon icon-flag"}),o.a.createElement("label",null,"\u4e3e\u62a5")),"\xa0\xa0"),o.a.createElement("a",{onClick:this.load_replies.bind(this)},o.a.createElement("span",{className:"icon icon-refresh"}),o.a.createElement("label",null,"\u5237\u65b0")),(this.state.replies.length>=1||this.state.rev)&&o.a.createElement("span",null,"\xa0\xa0",o.a.createElement("a",{onClick:this.toggle_rev.bind(this)},o.a.createElement("span",{className:"icon icon-order-rev"}),o.a.createElement("label",null,this.state.rev?"\u8fd8\u539f":"\u9006\u5e8f"))),!!this.props.token&&o.a.createElement("span",null,"\xa0\xa0",o.a.createElement("a",{onClick:function(){e.toggle_attention()}},this.state.attention?o.a.createElement("span",null,o.a.createElement("span",{className:"icon icon-star-ok"}),o.a.createElement("label",null,"\u5df2\u5173\u6ce8")):o.a.createElement("span",null,o.a.createElement("span",{className:"icon icon-star"}),o.a.createElement("label",null,"\u672a\u5173\u6ce8"))))),!!this.state.filter_name&&o.a.createElement("div",{className:"box box-tip flow-item filter-name-bar"},o.a.createElement("p",null,o.a.createElement("span",{style:{float:"left"}},o.a.createElement("a",{onClick:function(){e.set_filter_name(null)}},"\u8fd8\u539f")),o.a.createElement("span",{className:"icon icon-locate"}),"\xa0\u5f53\u524d\u53ea\u770b\xa0",o.a.createElement(ce,{colors:this.color_picker.get(this.state.filter_name)},this.state.filter_name))),!this.state.rev&&r,!!this.state.error_msg&&o.a.createElement("div",{className:"box box-tip flow-item"},o.a.createElement("p",null,"\u56de\u590d\u52a0\u8f7d\u5931\u8d25"),o.a.createElement("p",null,this.state.error_msg)),this.props.deletion_detect&&parseInt(this.state.info.reply)>this.state.replies.length&&!!this.state.replies.length&&o.a.createElement("div",{className:"box box-tip flow-item box-danger"},parseInt(this.state.info.reply)-this.state.replies.length," \u6761\u56de\u590d\u88ab\u5220\u9664"),n.map(function(n){return o.a.createElement(Ie,{key:n.cid+a,offset:1500,height:"5em",overflow:!0,once:!0},o.a.createElement(me,{callback:function(t){e.show_reply_bar(n.name,t)}},o.a.createElement(ot,{info:n,color_picker:e.color_picker,show_pid:t,set_variant:function(t){e.set_variant(n.cid,t)},do_filter_name:i[n.name]>1?e.set_filter_name.bind(e):null})))}),this.state.rev&&r,this.props.token?o.a.createElement(Je,{pid:this.state.info.pid,token:this.props.token,area_ref:this.reply_ref,on_complete:this.load_replies.bind(this)}):o.a.createElement("div",{className:"box box-tip flow-item"},"\u767b\u5f55\u540e\u53ef\u4ee5\u56de\u590d\u6811\u6d1e"))}}]),t}(a.PureComponent),st=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={replies:[],reply_status:"done",reply_error:null,info:Object.assign({},e.info,{variant:{}}),attention:null!==e.attention_override&&e.attention_override},n.color_picker=new b,n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){parseInt(this.state.info.reply,10)&&this.load_replies(null,!1)}},{key:"load_replies",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];console.log("fetching reply",this.state.info.pid),this.setState({reply_status:"loading",reply_error:null}),ie.load_replies_with_cache(this.state.info.pid,this.props.token,this.color_picker,parseInt(this.state.info.reply)).then(function(a){t.setState(function(e,t){return{replies:a.data,info:Object.assign({},e.info,{reply:n?""+a.data.length:e.info.reply,variant:a.data.length?{latest_reply:Math.max.apply(null,a.data.map(function(e){return parseInt(e.timestamp)}))}:{}}),attention:!!a.attention,reply_status:"done",reply_error:null}},e)}).catch(function(n){console.error(n),t.setState({replies:[],reply_status:"failed",reply_error:""+n},e)})}},{key:"show_sidebar",value:function(){this.props.show_sidebar("\u6811\u6d1e #"+this.state.info.pid,o.a.createElement(rt,{key:+new Date,info:this.state.info,replies:this.state.replies,attention:this.state.attention,sync_state:this.setState.bind(this),token:this.props.token,show_sidebar:this.props.show_sidebar,color_picker:this.color_picker,deletion_detect:this.props.deletion_detect}))}},{key:"render",value:function(){var e=this,t=at(this.props.show_sidebar,this.props.token,this.state.info.pid),n=[["url_pid",E],["url",A],["pid",v],["nickname",_]];this.props.search_param&&n.push(["search",le(this.props.search_param," ","gi")]);var a=w(this.state.info.text,n),i=null;if(!this.props.is_quote){var r=!0,s=!1,l=void 0;try{for(var c,u=a[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var h=c.value,d=Object(m.a)(h,2),p=d[0],f=d[1];if(f=f.length>0?f.substring(1):f,"pid"===p&&-1===nt.indexOf(f)&&parseInt(f)<parseInt(this.state.info.pid)){if(null!==i){i=null;break}i=parseInt(f)}}}catch(b){s=!0,l=b}finally{try{r||null==u.return||u.return()}finally{if(s)throw l}}}var g=o.a.createElement("div",{className:"flow-item-row flow-item-row-with-prompt"+(this.props.is_quote?" flow-item-row-quote":""),onClick:function(t){tt[t.target.tagName.toLowerCase()]||e.show_sidebar()}},o.a.createElement(it,{parts:a,info:this.state.info,attention:this.state.attention,img_clickable:!1,is_quote:this.props.is_quote,color_picker:this.color_picker,show_pid:t,replies:this.state.replies}),o.a.createElement("div",{className:"flow-reply-row"},"loading"===this.state.reply_status&&o.a.createElement("div",{className:"box box-tip"},"\u52a0\u8f7d\u4e2d"),"failed"===this.state.reply_status&&o.a.createElement("div",{className:"box box-tip"},o.a.createElement("p",null,o.a.createElement("a",{onClick:function(){e.load_replies()}},"\u91cd\u65b0\u52a0\u8f7d\u8bc4\u8bba")),o.a.createElement("p",null,this.state.reply_error)),this.state.replies.slice(0,10).map(function(n){return o.a.createElement(ot,{key:n.cid,info:n,color_picker:e.color_picker,show_pid:t})}),this.state.replies.length>10&&o.a.createElement("div",{className:"box box-tip"},"\u8fd8\u6709 ",this.state.replies.length-10," \u6761")));return i?o.a.createElement("div",null,g,o.a.createElement(lt,{pid:i,show_sidebar:this.props.show_sidebar,token:this.props.token,deletion_detect:this.props.deletion_detect})):g}}]),t}(a.PureComponent),lt=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={loading_status:"empty",error_msg:null,info:null},n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.load()}},{key:"load",value:function(){var e=this;this.setState({loading_status:"loading"},function(){ie.get_single(e.props.pid,e.props.token).then(function(t){e.setState({loading_status:"done",info:t.data})}).catch(function(t){-1!==(""+t).indexOf("\u6ca1\u6709\u8fd9\u6761\u6811\u6d1e")?e.setState({loading_status:"empty"}):e.setState({loading_status:"error",error_msg:""+t})})})}},{key:"render",value:function(){return"empty"===this.state.loading_status?null:"loading"===this.state.loading_status?o.a.createElement("div",{className:"aux-margin"},o.a.createElement("div",{className:"box box-tip"},o.a.createElement("span",{className:"icon icon-loading"}),"\u63d0\u5230\u4e86 #",this.props.pid)):"error"===this.state.loading_status?o.a.createElement("div",{className:"aux-margin"},o.a.createElement("div",{className:"box box-tip"},o.a.createElement("p",null,o.a.createElement("a",{onClick:this.load.bind(this)},"\u91cd\u65b0\u52a0\u8f7d")),o.a.createElement("p",null,this.state.error_msg))):o.a.createElement(st,{info:this.state.info,show_sidebar:this.props.show_sidebar,token:this.props.token,is_quote:!0,deletion_detect:this.props.deletion_detect})}}]),t}(a.PureComponent);function ct(e){return o.a.createElement(ze.Consumer,null,function(t){var n=t.value;return o.a.createElement("div",{className:"flow-chunk"},!!e.title&&o.a.createElement(Z,{text:e.title}),e.list.map(function(t,a){return o.a.createElement(Ie,{key:t.pid,offset:1500,height:"15em",hiddenIfInvisible:!0},o.a.createElement("div",null,!!(e.deletion_detect&&"list"===e.mode&&a&&e.list[a-1].pid-t.pid>1)&&o.a.createElement("div",{className:"flow-item-row"},o.a.createElement("div",{className:"box box-tip flow-item box-danger"},e.list[a-1].pid-t.pid-1," \u6761\u88ab\u5220\u9664")),o.a.createElement(st,{info:t,show_sidebar:e.show_sidebar,token:n,attention_override:"attention_finished"===e.mode||null,deletion_detect:e.deletion_detect,search_param:e.search_param})))}))})}var ut=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={mode:e.mode,search_param:e.search_text,loaded_pages:0,chunks:{title:"",data:[]},loading_status:"done",error_msg:null},n.on_scroll_bound=n.on_scroll.bind(Object(h.a)(n)),window.LATEST_POST_ID=parseInt(localStorage._LATEST_POST_ID,10)||0,n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"load_page",value:function(e){var t=this,n=function(e){console.error(e),t.setState(function(t,n){return{loaded_pages:t.loaded_pages-1,loading_status:"failed",error_msg:""+e}})};if(e>this.state.loaded_pages+1)throw new Error("bad page");if(e===this.state.loaded_pages+1){if(console.log("fetching page",e),"list"===this.state.mode)ie.get_list(e,this.props.token).then(function(n){if(1===e&&n.data.length){var a=-1;n.data.forEach(function(e){parseInt(e.pid,10)>a&&(a=parseInt(e.pid,10))}),localStorage._LATEST_POST_ID=""+a}t.setState(function(e,t){return{chunks:{title:"News Feed",data:e.chunks.data.concat(n.data.filter(function(t){return 0===e.chunks.data.length||!e.chunks.data.slice(-100).some(function(e){return e.pid===t.pid})}))},loading_status:"done"}})}).catch(n);else if("search"===this.state.mode)ie.get_search(e,this.state.search_param,this.props.token).then(function(e){var n=0===e.data.length;t.setState(function(a,o){return{chunks:{title:'Result for "'+t.state.search_param+'"',data:a.chunks.data.concat(e.data.filter(function(e){return 0===a.chunks.data.length||!a.chunks.data.slice(-100).some(function(t){return t.pid===e.pid})}))},mode:n?"search_finished":"search",loading_status:"done"}})}).catch(n);else if("single"===this.state.mode){var a=parseInt(this.state.search_param.substr(1),10);ie.get_single(a,this.props.token).then(function(e){t.setState({chunks:{title:"PID = "+a,data:[e.data]},mode:"single_finished",loading_status:"done"})}).catch(n)}else{if("attention"!==this.state.mode)return void console.log("nothing to load");ie.get_attention(this.props.token).then(function(e){t.setState({chunks:{title:"Attention List",data:e.data},mode:"attention_finished",loading_status:"done"})}).catch(n)}this.setState(function(e,t){return{loaded_pages:e.loaded_pages+1,loading_status:"loading",error_msg:null}})}}},{key:"on_scroll",value:function(e){e.target===document&&(document.body.scrollHeight-window.scrollY-window.innerHeight<window.innerHeight&&"done"===this.state.loading_status&&this.load_page(this.state.loaded_pages+1))}},{key:"componentDidMount",value:function(){this.load_page(1),window.addEventListener("scroll",this.on_scroll_bound),window.addEventListener("resize",this.on_scroll_bound)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.on_scroll_bound),window.removeEventListener("resize",this.on_scroll_bound)}},{key:"render",value:function(){var e=this,t="on"===localStorage.DELETION_DETECT;return o.a.createElement("div",{className:"flow-container"},o.a.createElement(ct,{title:this.state.chunks.title,list:this.state.chunks.data,mode:this.state.mode,search_param:this.state.search_param||null,show_sidebar:this.props.show_sidebar,deletion_detect:t}),"failed"===this.state.loading_status&&o.a.createElement("div",{className:"aux-margin"},o.a.createElement("div",{className:"box box-tip"},o.a.createElement("p",null,o.a.createElement("a",{onClick:function(){e.load_page(e.state.loaded_pages+1)}},"\u91cd\u65b0\u52a0\u8f7d")),o.a.createElement("p",null,this.state.error_msg))),o.a.createElement(Z,{text:"loading"===this.state.loading_status?o.a.createElement("span",null,o.a.createElement("span",{className:"icon icon-loading"}),"\xa0Loading..."):"\xa9 thuhole"}))}}]),t}(a.PureComponent),ht=(n(50),/^\/\/setflag ([a-zA-Z0-9_]+)=(.*)$/),dt=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={search_text:""},n.set_mode=e.set_mode,n.on_change_bound=n.on_change.bind(Object(h.a)(n)),n.on_keypress_bound=n.on_keypress.bind(Object(h.a)(n)),n.do_refresh_bound=n.do_refresh.bind(Object(h.a)(n)),n.do_attention_bound=n.do_attention.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;if(window.location.hash){var t=decodeURIComponent(window.location.hash).substr(1);-1!==t.lastIndexOf("?")&&(t=t.substr(0,t.lastIndexOf("?"))),this.setState({search_text:t},function(){e.on_keypress({key:"Enter"})})}}},{key:"on_change",value:function(e){this.setState({search_text:e.target.value})}},{key:"on_keypress",value:function(e){if("Enter"===e.key){var t=ht.exec(this.state.search_text);if(t)return void(t[2]?(localStorage[t[1]]=t[2],alert("Set Flag "+t[1]+"="+t[2]+"\nYou may need to refresh this webpage.")):(delete localStorage[t[1]],alert("Clear Flag "+t[1]+"\nYou may need to refresh this webpage.")));var n=this.state.search_text.startsWith("#")?"single":"search";this.set_mode(n,this.state.search_text||"")}}},{key:"do_refresh",value:function(){window.scrollTo(0,0),this.setState({search_text:""}),this.set_mode("list",null)}},{key:"do_attention",value:function(){window.scrollTo(0,0),this.setState({search_text:""}),this.set_mode("attention",null)}},{key:"render",value:function(){var e=this;return o.a.createElement(ze.Consumer,null,function(t){var n=t.value;return o.a.createElement("div",{className:"control-bar"},o.a.createElement("a",{className:"no-underline control-btn",onClick:e.do_refresh_bound},o.a.createElement("span",{className:"icon icon-refresh"}),o.a.createElement("span",{className:"control-btn-label"},"\u6700\u65b0")),!!n&&o.a.createElement("a",{className:"no-underline control-btn",onClick:e.do_attention_bound},o.a.createElement("span",{className:"icon icon-attention"}),o.a.createElement("span",{className:"control-btn-label"},"\u5173\u6ce8")),o.a.createElement("input",{className:"control-search",value:e.state.search_text,placeholder:"\u641c\u7d22 \u6216 #PID",onChange:e.on_change_bound,onKeyPress:e.on_keypress_bound}),o.a.createElement("a",{className:"no-underline control-btn",onClick:function(){e.props.show_sidebar("T\u5927\u6811\u6d1e",o.a.createElement(qe,{show_sidebar:e.props.show_sidebar}))}},o.a.createElement("span",{className:"icon icon-"+(n?"about":"login")}),o.a.createElement("span",{className:"control-btn-label"},n?"\u8d26\u6237":"\u767b\u5f55")),!!n&&o.a.createElement("a",{className:"no-underline control-btn",onClick:function(){e.props.show_sidebar("\u53d1\u8868\u6811\u6d1e",o.a.createElement($e,{token:n,on_complete:function(){e.props.show_sidebar(null,null),e.do_refresh()}}))}},o.a.createElement("span",{className:"icon icon-plus"}),o.a.createElement("span",{className:"control-btn-label"},"\u53d1\u8868")))})}}]),t}(a.PureComponent);function pt(e){return o.a.createElement("div",{className:"title-bar"},o.a.createElement("div",{className:"aux-margin"},o.a.createElement("div",{className:"title"},o.a.createElement("p",{className:"centered-line"},o.a.createElement("span",{onClick:function(){return e.show_sidebar("T\u5927\u6811\u6d1e",o.a.createElement(qe,{show_sidebar:e.show_sidebar}))}},"T\u5927\u6811\u6d1e"))),o.a.createElement(dt,{show_sidebar:e.show_sidebar,set_mode:e.set_mode})))}n(51);var mt=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).sidebar_ref=o.a.createRef(),n.do_close_bound=n.do_close.bind(Object(h.a)(n)),n.do_back_bound=n.do_back.bind(Object(h.a)(n)),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidUpdate",value:function(e){this.props.stack!==e.stack&&this.sidebar_ref.current&&(this.sidebar_ref.current.scrollTop=0)}},{key:"do_close",value:function(){this.props.show_sidebar(null,null,"clear")}},{key:"do_back",value:function(){this.props.show_sidebar(null,null,"pop")}},{key:"render",value:function(){var e=Object(m.a)(this.props.stack[this.props.stack.length-1],2),t=e[0],n=e[1];return o.a.createElement("div",{className:"sidebar-container "+(null!==t?"sidebar-on":"sidebar-off")},o.a.createElement("div",{className:"sidebar-shadow",onClick:this.do_back_bound,onTouchEnd:function(e){e.preventDefault(),e.target.click()}}),o.a.createElement("div",{ref:this.sidebar_ref,className:"sidebar"},n),o.a.createElement("div",{className:"sidebar-title"},o.a.createElement("a",{className:"no-underline",onClick:this.do_close_bound},"\xa0",o.a.createElement("span",{className:"icon icon-close"}),"\xa0"),this.props.stack.length>2&&o.a.createElement("a",{className:"no-underline",onClick:this.do_back_bound},"\xa0",o.a.createElement("span",{className:"icon icon-back"}),"\xa0"),t))}}]),t}(a.PureComponent),ft=n(24),gt=n.n(ft),bt=(n(52),function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={level:0,fired:!1},n.callback=e.callback,n.esc_interval=null,n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"do_fire",value:function(){var e=this;this.esc_interval&&(clearInterval(this.esc_interval),this.esc_interval=null),this.setState({level:1,fired:!0}),this.callback(),window.setTimeout(function(){e.setState({level:0,fired:!1})},300)}},{key:"componentDidMount",value:function(){var e=this;window.config.pressure&&(gt.a.set(document.body,{change:function(t){e.state.fired||(t>=.999?e.do_fire():e.setState({level:t}))},end:function(){e.setState({level:0,fired:!1})}},{polyfill:!1,only:"touch",preventSelect:!1}),document.addEventListener("keydown",function(t){t.repeat||"Escape"!==t.key||(e.esc_interval&&clearInterval(e.esc_interval),e.setState({level:.2},function(){e.esc_interval=setInterval(function(){var t=e.state.level+.1;t>=.999?e.do_fire():e.setState({level:t})},30)}))}),document.addEventListener("keyup",function(t){"Escape"===t.key&&(e.esc_interval&&(clearInterval(e.esc_interval),e.esc_interval=null),e.setState({level:0}))}))}},{key:"render",value:function(){var e=25*(this.state.level-.4)-500;return o.a.createElement("div",{className:"pressure-box"+(this.state.fired?" pressure-box-fired":"")+(this.state.level<=1e-4?" pressure-box-empty":""),style:{left:e,right:e,top:e,bottom:e}})}}]),t}(a.Component));function vt(e){return o.a.createElement("div",{id:"global-hint-container",style:{display:"none"}})}var Et=function(e){function t(e){var n;return Object(s.a)(this,t),n=Object(c.a)(this,Object(u.a)(t).call(this,e)),Le(),function(e){function t(){(void 0===e?window.matchMedia("(prefers-color-scheme: dark)").matches:e)?document.body.classList.add("root-dark-mode"):document.body.classList.remove("root-dark-mode")}t(),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(){t()})}({default:void 0,light:!1,dark:!0}[window.config.color_scheme]),n.state={sidebar_stack:[[null,null]],mode:"list",search_text:null,flow_render_key:+new Date,token:localStorage.TOKEN||null},n.show_sidebar_bound=n.show_sidebar.bind(Object(h.a)(n)),n.set_mode_bound=n.set_mode.bind(Object(h.a)(n)),n.on_pressure_bound=n.on_pressure.bind(Object(h.a)(n)),n.inpku_flag=-1!==window[atob("ZG9jdW1lbnQ")][atob("Y29va2ll")].indexOf(atob("cGt1X2lwX2ZsYWc9eWVz")),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"on_pressure",value:function(){this.state.sidebar_stack.length>1?this.show_sidebar(null,null,"clear"):this.set_mode("list",null)}},{key:"show_sidebar",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"push";this.setState(function(a){var o=a.sidebar_stack.slice();if("push"===n)o.length>10&&o.splice(1,1),o=o.concat([[e,t]]);else if("pop"===n){if(1===o.length)return;o.pop()}else if("replace"===n)o.pop(),o=o.concat([[e,t]]);else{if("clear"!==n)throw new Error("bad show_sidebar mode");o=[[null,null]]}return{sidebar_stack:o}})}},{key:"set_mode",value:function(e,t){this.setState({mode:e,search_text:t,flow_render_key:+new Date})}},{key:"render",value:function(){var e=this;return o.a.createElement(ze.Provider,{value:{value:this.state.token,set_value:function(t){localStorage.TOKEN=t||"",e.setState({token:t})}}},o.a.createElement(bt,{callback:this.on_pressure_bound}),o.a.createElement("div",{className:"bg-img",style:Te()}),o.a.createElement(pt,{show_sidebar:this.show_sidebar_bound,set_mode:this.set_mode_bound}),o.a.createElement(ze.Consumer,null,function(t){return o.a.createElement("div",{className:"left-container"},o.a.createElement(vt,{token:t.value}),!t.value&&o.a.createElement("div",{className:"flow-item-row aux-margin"},o.a.createElement("div",{className:"box box-tip"},o.a.createElement("p",null,o.a.createElement($,{token_callback:t.set_value},function(e){return o.a.createElement("a",{onClick:e},o.a.createElement("span",{className:"icon icon-login"}),"\xa0\u767b\u5f55\u5230 T\u5927\u6811\u6d1e")})))),(e.inpku_flag||t.value,o.a.createElement(ut,{key:e.state.flow_render_key,show_sidebar:e.show_sidebar_bound,mode:e.state.mode,search_text:e.state.search_text,token:t.value})),o.a.createElement("br",null))}),o.a.createElement(mt,{show_sidebar:this.show_sidebar_bound,stack:this.state.sidebar_stack}))}}],[{key:"is_darkmode",value:function(){return"dark"===window.config.color_scheme||"light"!==window.config.color_scheme&&window.matchMedia("(prefers-color-scheme: dark)").matches}}]),t}(a.Component),_t=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function At(e){navigator.serviceWorker.register(e).then(function(e){e.onupdatefound=function(){var t=e.installing;t.onstatechange=function(){"installed"===t.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))}}}).catch(function(e){console.error("Error during service worker registration:",e)})}r.a.render(o.a.createElement(Et,null),document.getElementById("root")),function(){if("serviceWorker"in navigator){if(new URL("//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages",window.location).origin!==window.location.origin)return;window.addEventListener("load",function(){var e="".concat("//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages","/service-worker.js");_t?(!function(e){fetch(e).then(function(t){404===t.status||-1===t.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(function(e){e.unregister().then(function(){window.location.reload()})}):At(e)}).catch(function(){console.log("No internet connection found. App is running in offline mode.")})}(e),navigator.serviceWorker.ready.then(function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://goo.gl/SC7cgQ")})):At(e)})}}()}],[[25,1,2]]]);
//# sourceMappingURL=main.95f77d5e.chunk.js.map