forked from AkkomaGang/akkoma
2 lines
No EOL
36 KiB
JavaScript
2 lines
No EOL
36 KiB
JavaScript
webpackJsonp([29],{149:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(6),v=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return h()(e,t),e.prototype.render=function(){var t=this.props,e=t.disabled,n=t.visible;return a()("button",{className:"load-more",disabled:e||!n,style:{visibility:n?"visible":"hidden"},onClick:this.props.onClick},void 0,a()(m.b,{id:"status.load_more",defaultMessage:"Load more"}))},e}(p.a.PureComponent),o.defaultProps={visible:!0},r)},283:function(t,e,n){"use strict";function o(t){return function(e){e({type:i,account:t}),e(Object(r.d)("MUTE"))}}e.a=o;var r=(n(14),n(22),n(15),n(26)),i="MUTES_INIT_MODAL"},285:function(t,e,n){"use strict";var o=n(2),r=n.n(o),i=n(0),a=(n.n(i),n(9)),s=n(153),c=n(66),l=n(18),u=n(67),d=n(22),h=n(91),f=n(283),p=n(151),m=n(26),v=n(6),g=n(11),y=Object(v.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}}),b=function(){var t=Object(c.e)();return function(e,n){return{status:t(e,n.id)}}},O=function(t,e){var n=e.intl;return{onReply:function(e,n){t(Object(l.T)(e,n))},onModalReblog:function(e){t(Object(u.l)(e))},onReblog:function(e,n){e.get("reblogged")?t(Object(u.n)(e)):n.shiftKey||!g.b?this.onModalReblog(e):t(Object(m.d)("BOOST",{status:e,onReblog:this.onModalReblog}))},onFavourite:function(e){t(e.get("favourited")?Object(u.m)(e):Object(u.i)(e))},onDelete:function(e){t(g.e?Object(m.d)("CONFIRM",{message:n.formatMessage(y.deleteMessage),confirm:n.formatMessage(y.deleteConfirm),onConfirm:function(){return t(Object(h.f)(e.get("id")))}}):Object(h.f)(e.get("id")))},onMention:function(e,n){t(Object(l.R)(e,n))},onOpenMedia:function(e,n){t(Object(m.d)("MEDIA",{media:e,index:n}))},onOpenVideo:function(e,n){t(Object(m.d)("VIDEO",{media:e,time:n}))},onBlock:function(e){t(Object(m.d)("CONFIRM",{message:r()(v.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:r()("strong",{},void 0,"@",e.get("acct"))}}),confirm:n.formatMessage(y.blockConfirm),onConfirm:function(){return t(Object(d.q)(e.get("id")))}}))},onReport:function(e){t(Object(p.k)(e.get("account"),e))},onMute:function(e){t(Object(f.a)(e))},onMuteConversation:function(e){t(e.get("muted")?Object(h.k)(e.get("id")):Object(h.i)(e.get("id")))},onToggleHidden:function(e){t(e.get("hidden")?Object(h.j)(e.get("id")):Object(h.h)(e.get("id")))}}};e.a=Object(v.g)(Object(a.connect)(b,O)(s.a))},287:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(93),p=n.n(f),m=n(0),v=n.n(m),g=n(152),y=n(5),b=n.n(y),O=n(288),M=n(149),j=n(293),_=n(8),k=(n.n(_),n(10)),C=n.n(k),I=n(154),w=(r=o=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.state={lastMouseMove:null},o.intersectionObserverWrapper=new j.a,o.handleScroll=p()(function(){if(o.node){var t=o.node,e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight,i=n-e-r;o._oldScrollPosition=n-e,400>i&&o.props.onLoadMore&&!o.props.isLoading&&o.props.onLoadMore(),e<100&&o.props.onScrollToTop?o.props.onScrollToTop():o.props.onScroll&&o.props.onScroll()}},150,{trailing:!0}),o.handleMouseMove=p()(function(){o._lastMouseMove=new Date},300),o.handleMouseLeave=function(){o._lastMouseMove=null},o.onFullScreenChange=function(){o.setState({fullscreen:Object(I.d)()})},o.setRef=function(t){o.node=t},o.handleLoadMore=function(t){t.preventDefault(),o.props.onLoadMore()},r=n,u()(o,r)}return h()(e,t),e.prototype.componentDidMount=function(){this.attachScrollListener(),this.attachIntersectionObserver(),Object(I.a)(this.onFullScreenChange),this.handleScroll()},e.prototype.componentDidUpdate=function(t){if(v.a.Children.count(t.children)>0&&v.a.Children.count(t.children)<v.a.Children.count(this.props.children)&&this.getFirstChildKey(t)!==this.getFirstChildKey(this.props)&&this._oldScrollPosition&&this.node.scrollTop>0){var e=this.node.scrollHeight-this._oldScrollPosition;this.node.scrollTop!==e&&(this.node.scrollTop=e)}else this._oldScrollPosition=this.node.scrollHeight-this.node.scrollTop},e.prototype.componentWillUnmount=function(){this.detachScrollListener(),this.detachIntersectionObserver(),Object(I.b)(this.onFullScreenChange)},e.prototype.attachIntersectionObserver=function(){this.intersectionObserverWrapper.connect({root:this.node,rootMargin:"300% 0px"})},e.prototype.detachIntersectionObserver=function(){this.intersectionObserverWrapper.disconnect()},e.prototype.attachScrollListener=function(){this.node.addEventListener("scroll",this.handleScroll)},e.prototype.detachScrollListener=function(){this.node.removeEventListener("scroll",this.handleScroll)},e.prototype.getFirstChildKey=function(t){var e=t.children,n=e;return e instanceof _.List?n=e.get(0):Array.isArray(e)&&(n=e[0]),n&&n.key},e.prototype._recentlyMoved=function(){return null!==this._lastMouseMove&&new Date-this._lastMouseMove<600},e.prototype.render=function(){var t=this,e=this.props,n=e.children,o=e.scrollKey,r=e.trackScroll,i=e.shouldUpdateScroll,s=e.isLoading,c=e.hasMore,l=e.prepend,u=e.emptyMessage,d=e.onLoadMore,h=this.state.fullscreen,f=v.a.Children.count(n),p=c&&f>0&&d?a()(M.a,{visible:!s,onClick:this.handleLoadMore}):null,m=null;return m=s||f>0||!u?v.a.createElement("div",{className:C()("scrollable",{fullscreen:h}),ref:this.setRef,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave},a()("div",{role:"feed",className:"item-list"},void 0,l,v.a.Children.map(this.props.children,function(e,n){return a()(O.a,{id:e.key,index:n,listLength:f,intersectionObserverWrapper:t.intersectionObserverWrapper,saveHeightKey:r?t.context.router.route.location.key+":"+o:null},e.key,e)}),p)):v.a.createElement("div",{className:"empty-column-indicator",ref:this.setRef},u),r?a()(g.a,{scrollKey:o,shouldUpdateScroll:i},void 0,m):m},e}(m.PureComponent),o.contextTypes={router:b.a.object},o.defaultProps={trackScroll:!0},r)},288:function(t,e,n){"use strict";var o=n(9),r=n(289),i=n(94),a=function(t,e){return{cachedHeight:t.getIn(["height_cache",e.saveHeightKey,e.id])}},s=function(t){return{onHeightChange:function(e,n,o){t(Object(i.d)(e,n,o))}}};e.a=Object(o.connect)(a,s)(r.a)},289:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o=n(1),r=n.n(o),i=n(3),a=n.n(i),s=n(4),c=n.n(s),l=n(0),u=n.n(l),d=n(290),h=n(292),f=n(8),p=(n.n(f),["id","index","listLength"]),m=["id","index","listLength","cachedHeight"],v=function(t){function e(){var n,o,i;r()(this,e);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=o=a()(this,t.call.apply(t,[this].concat(c))),o.state={isHidden:!1},o.handleIntersection=function(t){o.entry=t,Object(d.a)(o.calculateHeight),o.setState(o.updateStateAfterIntersection)},o.updateStateAfterIntersection=function(t){return t.isIntersecting&&!o.entry.isIntersecting&&Object(d.a)(o.hideIfNotIntersecting),{isIntersecting:o.entry.isIntersecting,isHidden:!1}},o.calculateHeight=function(){var t=o.props,e=t.onHeightChange,n=t.saveHeightKey,r=t.id;o.height=Object(h.a)(o.entry).height,e&&n&&e(n,r,o.height)},o.hideIfNotIntersecting=function(){o.componentMounted&&o.setState(function(t){return{isHidden:!t.isIntersecting}})},o.handleRef=function(t){o.node=t},i=n,a()(o,i)}return c()(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=this,o=!this.state.isIntersecting&&(this.state.isHidden||this.props.cachedHeight);return!!o!=!(e.isIntersecting||!e.isHidden&&!t.cachedHeight)||!(o?m:p).every(function(e){return Object(f.is)(t[e],n.props[e])})},e.prototype.componentDidMount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.observe(n,this.node,this.handleIntersection),this.componentMounted=!0},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.unobserve(n,this.node),this.componentMounted=!1},e.prototype.render=function(){var t=this.props,e=t.children,n=t.id,o=t.index,r=t.listLength,i=t.cachedHeight,a=this.state,s=a.isIntersecting,c=a.isHidden;return s||!c&&!i?u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!1})):u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,style:{height:(this.height||i)+"px",opacity:0,overflow:"hidden"},"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!0}))},e}(u.a.Component)},290:function(t,e,n){"use strict";function o(t){for(;s.length&&t.timeRemaining()>0;)s.shift()();s.length?requestIdleCallback(o):c=!1}function r(t){s.push(t),c||(c=!0,requestIdleCallback(o))}var i=n(291),a=n.n(i),s=new a.a,c=!1;e.a=r},291:function(t,e,n){"use strict";function o(){this.length=0}o.prototype.push=function(t){var e={item:t};this.last?this.last=this.last.next=e:this.last=this.first=e,this.length++},o.prototype.shift=function(){var t=this.first;if(t)return this.first=t.next,--this.length||(this.last=void 0),t.item},o.prototype.slice=function(t,e){t=void 0===t?0:t,e=void 0===e?1/0:e;for(var n=[],o=0,r=this.first;r&&!(--e<0);r=r.next)++o>t&&n.push(r.item);return n},t.exports=o},292:function(t,e,n){"use strict";function o(t){if("boolean"!=typeof r){var e=t.target.getBoundingClientRect(),n=t.boundingClientRect;r=e.height!==n.height||e.top!==n.top||e.width!==n.width||e.bottom!==n.bottom||e.left!==n.left||e.right!==n.right}return r?t.target.getBoundingClientRect():t.boundingClientRect}var r=void 0;e.a=o},293:function(t,e,n){"use strict";var o=n(1),r=n.n(o),i=function(){function t(){r()(this,t),this.callbacks={},this.observerBacklog=[],this.observer=null}return t.prototype.connect=function(t){var e=this,n=function(t){t.forEach(function(t){var n=t.target.getAttribute("data-id");e.callbacks[n]&&e.callbacks[n](t)})};this.observer=new IntersectionObserver(n,t),this.observerBacklog.forEach(function(t){var n=t[0],o=t[1],r=t[2];e.observe(n,o,r)}),this.observerBacklog=null},t.prototype.observe=function(t,e,n){this.observer?(this.callbacks[t]=n,this.observer.observe(e)):this.observerBacklog.push([t,e,n])},t.prototype.unobserve=function(t,e){this.observer&&(delete this.callbacks[t],this.observer.unobserve(e))},t.prototype.disconnect=function(){this.observer&&(this.callbacks={},this.observer.disconnect(),this.observer=null)},t}();e.a=i},294:function(t,e,n){"use strict";n.d(e,"a",function(){return N});var o,r,i,a,s=n(29),c=n.n(s),l=n(31),u=n.n(l),d=n(2),h=n.n(d),f=n(1),p=n.n(f),m=n(3),v=n.n(m),g=n(4),y=n.n(g),b=n(34),O=n.n(b),M=n(0),j=n.n(M),_=n(13),k=n.n(_),C=n(5),I=n.n(C),w=n(285),x=n(12),T=n.n(x),L=n(149),S=n(287),P=n(6),R=(r=o=function(t){function e(){var n,o,r;p()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=v()(this,t.call.apply(t,[this].concat(a))),o.handleClick=function(){o.props.onClick(o.props.maxId)},r=n,v()(o,r)}return y()(e,t),e.prototype.render=function(){return h()(L.a,{onClick:this.handleClick,disabled:this.props.disabled})},e}(T.a),o.propTypes={disabled:I.a.bool,maxId:I.a.string,onClick:I.a.func.isRequired},r),N=(a=i=function(t){function e(){var n,o,r;p()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=v()(this,t.call.apply(t,[this].concat(a))),o.handleMoveUp=function(t){var e=o.props.statusIds.indexOf(t)-1;o._selectChild(e)},o.handleMoveDown=function(t){var e=o.props.statusIds.indexOf(t)+1;o._selectChild(e)},o.handleLoadOlder=O()(function(){o.props.onLoadMore(o.props.statusIds.last())},300,{leading:!0}),o.setRef=function(t){o.node=t},r=n,v()(o,r)}return y()(e,t),e.prototype._selectChild=function(t){var e=this.node.node.querySelector("article:nth-of-type("+(t+1)+") .focusable");e&&e.focus()},e.prototype.render=function(){var t=this,e=this.props,n=e.statusIds,o=e.onLoadMore,r=u()(e,["statusIds","onLoadMore"]),i=r.isLoading;if(r.isPartial)return h()("div",{className:"regeneration-indicator"},void 0,h()("div",{},void 0,h()("div",{className:"regeneration-indicator__label"},void 0,h()(P.b,{id:"regeneration_indicator.label",tagName:"strong",defaultMessage:"Loading…"}),h()(P.b,{id:"regeneration_indicator.sublabel",defaultMessage:"Your home feed is being prepared!"}))));var a=i||n.size>0?n.map(function(e,r){return null===e?h()(R,{disabled:i,maxId:r>0?n.get(r-1):null,onClick:o},"gap:"+n.get(r+1)):h()(w.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e)}):null;return j.a.createElement(S.a,c()({},r,{onLoadMore:o&&this.handleLoadOlder,ref:this.setRef}),a)},e}(T.a),i.propTypes={scrollKey:I.a.string.isRequired,statusIds:k.a.list.isRequired,onLoadMore:I.a.func,onScrollToTop:I.a.func,onScroll:I.a.func,trackScroll:I.a.bool,shouldUpdateScroll:I.a.func,isLoading:I.a.bool,isPartial:I.a.bool,hasMore:I.a.bool,prepend:I.a.node,emptyMessage:I.a.node},i.defaultProps={trackScroll:!0},a)},339:function(t,e,n){"use strict";function o(){var t=n(340).default,e=n(0),o=n(20),r=document.getElementById("mastodon-timeline");if(null!==r){var i=JSON.parse(r.getAttribute("data-props"));o.render(e.createElement(t,i),r)}}function r(){(0,n(89).default)(o)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(75);Object(i.a)().then(r).catch(function(t){console.error(t)})},340:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return x});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(9),v=n(121),g=n(30),y=n(6),b=n(7),O=n(486),M=n(656),j=n(657),_=n(11),k=Object(b.getLocale)(),C=k.localeData,I=k.messages;Object(y.e)(C);var w=Object(v.a)();_.d&&w.dispatch(Object(g.b)(_.d));var x=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return h()(e,t),e.prototype.render=function(){var t=this.props,e=t.locale,n=t.hashtag,o=t.showPublicTimeline,r=void 0;return r=n?a()(j.a,{hashtag:n}):o?a()(O.a,{}):a()(M.a,{}),a()(y.d,{locale:e,messages:I},void 0,a()(m.Provider,{store:w},void 0,r))},e}(p.a.PureComponent),o.defaultProps={showPublicTimeline:_.d.settings.known_fediverse},r)},486:function(t,e,n){"use strict";n.d(e,"a",function(){return _});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(9),v=n(92),g=n(19),y=n(69),b=n(68),O=n(6),M=n(70),j=Object(O.f)({title:{id:"standalone.public_title",defaultMessage:"A look inside..."}}),_=(o=Object(m.connect)())(r=Object(O.g)(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.q)({maxId:t}))},r=n,u()(o,r)}return h()(e,t),e.prototype.componentDidMount=function(){var t=this.props.dispatch;t(Object(g.q)()),this.disconnect=t(Object(M.d)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.intl;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"globe",title:t.formatMessage(j.title),onClick:this.handleHeaderClick}),a()(v.a,{timelineId:"public",onLoadMore:this.handleLoadMore,scrollKey:"standalone_public_timeline",trackScroll:!1}))},e}(p.a.PureComponent))||r)||r},6:function(t,e,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(S.a.__addLocaleData(t),R.a.__addLocaleData(t))})}function r(t){for(var e=(t||"").split("-");e.length>0;){if(i(e.join("-")))return!0;e.pop()}return!1}function i(t){var e=t&&t.toLowerCase();return!(!S.a.__localeData__[e]||!R.a.__localeData__[e])}function a(t){return(""+t).replace(Ot,function(t){return bt[t]})}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,o){return t.hasOwnProperty(o)?e[o]=t[o]:n.hasOwnProperty(o)&&(e[o]=n[o]),e},{})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;H()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function l(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":K(t))||null===t||"object"!==(void 0===e?"undefined":K(e))||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(e),i=0;i<n.length;i++)if(!r(n[i])||t[n[i]]!==e[n[i]])return!1;return!0}function u(t,e,n){var o=t.props,r=t.state,i=t.context,a=void 0===i?{}:i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=a.intl,d=void 0===u?{}:u,h=c.intl,f=void 0===h?{}:h;return!l(e,o)||!l(n,r)||!(f===d||l(s(f,yt),s(d,yt)))}function d(t){return t.displayName||t.name||"Component"}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,o=void 0===n?"intl":n,r=e.withRef,i=void 0!==r&&r,a=function(e){function n(t,e){B(this,n);var o=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return c(e),o}return Z(n,e),z(n,[{key:"getWrappedInstance",value:function(){return H()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return E.a.createElement(t,J({},this.props,V({},o,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(F.Component);return a.displayName="InjectIntl("+d(t)+")",a.contextTypes={intl:ft},a.WrappedComponent=t,a}function f(t){return t}function p(t){return S.a.prototype._resolveLocale(t)}function m(t){return S.a.prototype._findPluralRuleFunction(t)}function v(t){var e=R.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function g(t,e,n){var o=t&&t[e]&&t[e][n];if(o)return o}function y(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"date",a),u=s(o,jt,l);try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function b(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"time",a),u=s(o,jt,l);u.hour||u.minute||u.second||(u=J({},u,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function O(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=new Date(o.now),u=a&&g(i,"relative",a),d=s(o,kt,u),h=J({},R.a.thresholds);v(It);try{return e.getRelativeFormat(r,d).format(c,{now:isFinite(l)?l:e.now()})}catch(t){}finally{v(h)}return String(c)}function M(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=a&&g(i,"number",a),l=s(o,_t,c);try{return e.getNumberFormat(r,l).format(n)}catch(t){}return String(n)}function j(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=s(o,Ct);try{return e.getPluralFormat(r,i).format(n)}catch(t){}return"other"}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=t.messages,s=t.defaultLocale,c=t.defaultFormats,l=n.id,u=n.defaultMessage;H()(l,"[React Intl] An `id` must be provided to format a message.");var d=a&&a[l];if(!(Object.keys(o).length>0))return d||u||l;var h=void 0;if(d)try{h=e.getMessageFormat(d,r,i).format(o)}catch(t){}if(!h&&u)try{h=e.getMessageFormat(u,s,c).format(o)}catch(t){}return h||d||u||l}function k(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _(t,e,n,Object.keys(o).reduce(function(t,e){var n=o[e];return t[e]="string"==typeof n?a(n):n,t},{}))}function C(t){var e=Math.abs(t);return e<Dt?"second":e<Ft?"minute":e<Et?"hour":"day"}function I(t){switch(t){case"second":return Nt;case"minute":return Dt;case"hour":return Ft;case"day":return Et;default:return At}}function w(t,e){if(t===e)return!0;var n=new Date(t).getTime(),o=new Date(e).getTime();return isFinite(n)&&isFinite(o)&&n===o}n.d(e,"e",function(){return o}),n.d(e,"g",function(){return h}),n.d(e,"f",function(){return f}),n.d(e,"d",function(){return St}),n.d(e,"a",function(){return Pt}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return qt});var x=n(80),T=n.n(x),L=n(53),S=n.n(L),P=n(61),R=n.n(P),N=n(5),D=n.n(N),F=n(0),E=n.n(F),A=n(16),H=n.n(A),U=n(81),W=n.n(U),q={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),o=!n[1],r=Number(n[0])==t,i=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},z=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),V=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Z=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},G=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Q=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},X=D.a.bool,$=D.a.number,tt=D.a.string,et=D.a.func,nt=D.a.object,ot=D.a.oneOf,rt=D.a.shape,it=D.a.any,at=D.a.oneOfType,st=ot(["best fit","lookup"]),ct=ot(["narrow","short","long"]),lt=ot(["numeric","2-digit"]),ut=et.isRequired,dt={locale:tt,formats:nt,messages:nt,textComponent:it,defaultLocale:tt,defaultFormats:nt},ht={formatDate:ut,formatTime:ut,formatRelative:ut,formatNumber:ut,formatPlural:ut,formatMessage:ut,formatHTMLMessage:ut},ft=rt(J({},dt,ht,{formatters:nt,now:ut})),pt=(tt.isRequired,at([tt,nt]),{localeMatcher:st,formatMatcher:ot(["basic","best fit"]),timeZone:tt,hour12:X,weekday:ct,era:ct,year:lt,month:ot(["numeric","2-digit","narrow","short","long"]),day:lt,hour:lt,minute:lt,second:lt,timeZoneName:ot(["short","long"])}),mt={localeMatcher:st,style:ot(["decimal","currency","percent"]),currency:tt,currencyDisplay:ot(["symbol","code","name"]),useGrouping:X,minimumIntegerDigits:$,minimumFractionDigits:$,maximumFractionDigits:$,minimumSignificantDigits:$,maximumSignificantDigits:$},vt={style:ot(["best fit","numeric"]),units:ot(["second","minute","hour","day","month","year"])},gt={style:ot(["cardinal","ordinal"])},yt=Object.keys(dt),bt={"&":"&",">":">","<":"<",'"':""","'":"'"},Ot=/[&><"']/g,Mt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(this,t);var o="ordinal"===n.style,r=m(p(e));this.format=function(t){return r(t,o)}},jt=Object.keys(pt),_t=Object.keys(mt),kt=Object.keys(vt),Ct=Object.keys(gt),It={second:60,minute:60,hour:24,day:30,month:12},wt=Object.freeze({formatDate:y,formatTime:b,formatRelative:O,formatNumber:M,formatPlural:j,formatMessage:_,formatHTMLMessage:k}),xt=Object.keys(dt),Tt=Object.keys(ht),Lt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},St=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));H()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var r=n.intl,i=void 0;i=isFinite(t.initialNow)?Number(t.initialNow):r?r.now():Date.now();var a=r||{},s=a.formatters,c=void 0===s?{getDateTimeFormat:W()(Intl.DateTimeFormat),getNumberFormat:W()(Intl.NumberFormat),getMessageFormat:W()(S.a),getRelativeFormat:W()(R.a),getPluralFormat:W()(Mt)}:s;return o.state=J({},c,{now:function(){return o._didDisplay?Date.now():i}}),o}return Z(e,t),z(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=s(this.props,xt,t);for(var n in Lt)void 0===e[n]&&(e[n]=Lt[n]);if(!r(e.locale)){var o=e,i=(o.locale,o.defaultLocale),a=o.defaultFormats;e=J({},e,{locale:i,formats:a,messages:Lt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return Tt.reduce(function(n,o){return n[o]=wt[o].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,o=n.now,r=G(n,["now"]);return{intl:J({},t,e,{formatters:r,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return F.Children.only(this.props.children)}}]),e}(F.Component);St.displayName="IntlProvider",St.contextTypes={intl:ft},St.childContextTypes={intl:ft.isRequired};var Pt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(F.Component);Pt.displayName="FormattedDate",Pt.contextTypes={intl:ft};var Rt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(F.Component);Rt.displayName="FormattedTime",Rt.contextTypes={intl:ft};var Nt=1e3,Dt=6e4,Ft=36e5,Et=864e5,At=2147483647,Ht=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));c(n);var r=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return o.state={now:r},o}return Z(e,t),z(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var o=t.value,r=t.units,i=t.updateInterval,a=new Date(o).getTime();if(i&&isFinite(a)){var s=a-e.now,c=I(r||C(s)),l=Math.abs(s%c),u=s<0?Math.max(i,c-l):Math.max(i,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},u)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(t){w(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentWillUpdate",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,J({},this.props,this.state));return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(F.Component);Ht.displayName="FormattedRelative",Ht.contextTypes={intl:ft},Ht.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(F.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ft};var Wt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,o=this.props,r=o.value,i=o.other,a=o.children,s=e(r,this.props),c=this.props[s]||i;return"function"==typeof a?a(c):E.a.createElement(n,null,c)}}]),e}(F.Component);Wt.displayName="FormattedPlural",Wt.contextTypes={intl:ft},Wt.defaultProps={style:"cardinal"};var qt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatMessage,n=t.textComponent,o=this.props,r=o.id,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,h=void 0,f=void 0;if(s&&Object.keys(s).length>0){var p=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var t=0;return function(){return"ELEMENT-"+p+"-"+(t+=1)}}();d="@__"+p+"__@",h={},f={},Object.keys(s).forEach(function(t){var e=s[t];if(Object(F.isValidElement)(e)){var n=m();h[t]=d+n+d,f[n]=e}else h[t]=e})}var v={id:r,description:i,defaultMessage:a},g=e(v,h||s),y=void 0;return y=f&&Object.keys(f).length>0?g.split(d).filter(function(t){return!!t}).map(function(t){return f[t]||t}):[g],"function"==typeof u?u.apply(void 0,Q(y)):F.createElement.apply(void 0,[l,null].concat(Q(y)))}}]),e}(F.Component);qt.displayName="FormattedMessage",qt.contextTypes={intl:ft},qt.defaultProps={values:{}};var Kt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,o=this.props,r=o.id,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:r,description:i,defaultMessage:a},h=e(d,s);if("function"==typeof u)return u(h);var f={__html:h};return E.a.createElement(l,{dangerouslySetInnerHTML:f})}}]),e}(F.Component);Kt.displayName="FormattedHTMLMessage",Kt.contextTypes={intl:ft},Kt.defaultProps={values:{}},o(q),o(T.a)},656:function(t,e,n){"use strict";n.d(e,"a",function(){return _});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(9),v=n(92),g=n(19),y=n(69),b=n(68),O=n(6),M=n(70),j=Object(O.f)({title:{id:"standalone.public_title",defaultMessage:"A look inside..."}}),_=(o=Object(m.connect)())(r=Object(O.g)(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.m)({maxId:t}))},r=n,u()(o,r)}return h()(e,t),e.prototype.componentDidMount=function(){var t=this.props.dispatch;t(Object(g.m)()),this.disconnect=t(Object(M.a)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.intl;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"users",title:t.formatMessage(j.title),onClick:this.handleHeaderClick}),a()(v.a,{timelineId:"community",onLoadMore:this.handleLoadMore,scrollKey:"standalone_public_timeline",trackScroll:!1}))},e}(p.a.PureComponent))||r)||r},657:function(t,e,n){"use strict";n.d(e,"a",function(){return M});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(9),v=n(92),g=n(19),y=n(69),b=n(68),O=n(70),M=(o=Object(m.connect)())(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.n)(o.props.hashtag,{maxId:t}))},r=n,u()(o,r)}return h()(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.dispatch,n=t.hashtag;e(Object(g.n)(n)),this.disconnect=e(Object(O.b)(n))},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.hashtag;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"hashtag",title:t,onClick:this.handleHeaderClick}),a()(v.a,{trackScroll:!1,scrollKey:"standalone_hashtag_timeline",timelineId:"hashtag:"+t,onLoadMore:this.handleLoadMore}))},e}(p.a.PureComponent))||r},92:function(t,e,n){"use strict";var o=n(34),r=n.n(o),i=n(9),a=n(294),s=n(19),c=n(8),l=(n.n(c),n(95)),u=(n.n(l),n(11)),d=function(){return Object(l.createSelector)([function(t,e){var n=e.type;return t.getIn(["settings",n],Object(c.Map)())},function(t,e){var n=e.type;return t.getIn(["timelines",n,"items"],Object(c.List)())},function(t){return t.get("statuses")}],function(t,e,n){var o=t.getIn(["regex","body"],"").trim(),r=null;try{r=o&&new RegExp(o,"i")}catch(t){}return e.filter(function(e){var o=n.get(e),i=!0;if(!1===t.getIn(["shows","reblog"])&&(i=i&&null===o.get("reblog")),!1===t.getIn(["shows","reply"])&&(i=i&&(null===o.get("in_reply_to_id")||o.get("in_reply_to_account_id")===u.g)),i&&r&&o.get("account")!==u.g){var a=o.get("reblog")?n.getIn([o.get("reblog"),"search_index"]):o.get("search_index");i=!r.test(a)}return i})})},h=function(){var t=d();return function(e,n){var o=n.timelineId;return{statusIds:t(e,{type:o}),isLoading:e.getIn(["timelines",o,"isLoading"],!0),isPartial:e.getIn(["timelines",o,"isPartial"],!1),hasMore:e.getIn(["timelines",o,"hasMore"])}}},f=function(t,e){var n=e.timelineId;return{onScrollToTop:r()(function(){t(Object(s.r)(n,!0))},100),onScroll:r()(function(){t(Object(s.r)(n,!1))},100)}};e.a=Object(i.connect)(h,f)(a.a)}},[339]);
|
|
//# sourceMappingURL=about.js.map
|