From bd3f3756fbc2e30948bd4c7857efb94314c0eff0 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Wed, 22 Jan 2020 16:00:23 +0100 Subject: Update MastoFE bundle to 2020-01-22 --- priv/static/packs/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv/static/packs/common.js') diff --git a/priv/static/packs/common.js b/priv/static/packs/common.js index 021c7d872..a1f3b4ffe 100644 --- a/priv/static/packs/common.js +++ b/priv/static/packs/common.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,,,,,,,function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"e",function(){return s}),a.d(t,"g",function(){return r}),a.d(t,"d",function(){return l}),a.d(t,"b",function(){return _});var i=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},s=function(e,t){return o(e,t)?e.substr(t.length):e},r=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var t=e||"/",a="",i="",n=t.indexOf("#");-1!==n&&(i=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===i?"":i}},_=function(e){var t=e.pathname,a=e.search,i=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}},,,,,function(e,t,a){"use strict";e.exports=function(){}},,,function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return s}),a.d(t,"g",function(){return r}),a.d(t,"h",function(){return l}),a.d(t,"f",function(){return _}),a.d(t,"d",function(){return g});var i=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},o=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},s=function(e,t){return t(window.confirm(e))},r=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},_=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},g=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function f(e){return"/"===e.charAt(0)}function u(e,t){for(var a=t,i=a+1,n=e.length;it?a.splice(t,a.length-t,i):a.push(i),_({action:"PUSH",location:i,index:t,entries:a})}})},replace:function(e,t){C()(!("object"===(void 0===e?"undefined":m(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=Object(M.a)(e,t,g(),h.location);l.confirmTransitionTo(i,a,n,function(e){e&&(h.entries[h.index]=i,_({action:a,location:i}))})},go:u,goBack:function(){return u(-1)},goForward:function(){return u(1)},canGo:function(e){var t=h.index+e;return 0<=t&&t=i.length)return""===t?i.length:-1;if(""===t)return a;var n=t.match(l.default),o=!1,s=void 0;for(s=a;s>",r=o||a;if(null==t[a])return e?new Error("Required "+n+" `"+r+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,_=Array(6e.get("votes_count")}),r=!!this.state.selected[""+e],l=i.get("voted")||i.get("expired"),_=t.get("title_emojified");if(!_){var g=i.get("emojis").reduce(function(e,t){return e[":"+t.get("shortcode")+":"]=t.toJS(),e},{});_=Object(O.default)(w()(t.get("title")),g)}return Object(c.a)("li",{},t.get("title"),l&&Object(c.a)(y.a,{defaultStyle:{width:0},style:{width:v()(o,{stiffness:180,damping:12})}},void 0,function(e){var t=e.width;return Object(c.a)("span",{className:F()("poll__chart",{leading:s}),style:{width:t+"%"}})}),Object(c.a)("label",{className:F()("poll__text",{selectable:!l})},void 0,Object(c.a)("input",{name:"vote-options",type:i.get("multiple")?"checkbox":"radio",value:e,checked:r,onChange:this.handleOptionChange,disabled:n}),!l&&Object(c.a)("span",{className:F()("poll__input",{checkbox:i.get("multiple"),active:r})}),l&&Object(c.a)("span",{className:"poll__number"},void 0,Math.round(o),"%"),Object(c.a)("span",{dangerouslySetInnerHTML:{__html:_}})))},t.render=function(){var a=this,e=this.props,t=e.poll,i=e.intl;if(!t)return null;var n=t.get("expired")?i.formatMessage(D.closed):Object(c.a)(E.default,{timestamp:t.get("expires_at"),futureDate:!0}),o=t.get("voted")||t.get("expired"),s=this.props.disabled||Object.entries(this.state.selected).every(function(e){return!e});return Object(c.a)("div",{className:"poll"},void 0,Object(c.a)("ul",{},void 0,t.get("options").map(function(e,t){return a.renderOption(e,t)})),Object(c.a)("div",{className:"poll__footer"},void 0,!o&&Object(c.a)("button",{className:"button button-secondary",disabled:s,onClick:this.handleVote},void 0,Object(c.a)(m.b,{id:"poll.vote",defaultMessage:"Vote"})),o&&!this.props.disabled&&Object(c.a)("span",{},void 0,Object(c.a)("button",{className:"poll__link",onClick:this.handleRefresh},void 0,Object(c.a)(m.b,{id:"poll.refresh",defaultMessage:"Refresh"}))," · "),Object(c.a)(m.b,{id:"poll.total_votes",defaultMessage:"{count, plural, one {# vote} other {# votes}}",values:{count:t.get("votes_count")}}),t.get("expires_at")&&Object(c.a)("span",{},void 0," · ",n)))},e}(h.a),Object(_.a)(n,"propTypes",{poll:u.a.map,intl:d.a.object.isRequired,dispatch:d.a.func,disabled:d.a.bool}),i=o))||i},,,,function(e,S,B){(function(u,h){var m;!function(e){S&&S.nodeType,u&&u.nodeType;var t="object"==typeof h&&h;t.global!==t&&t.window!==t&&t.self;var a,p=2147483647,F=36,b=1,y=26,n=38,o=700,k=72,v=128,j="-",i=/^xn--/,s=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=F-b,w=Math.floor,O=String.fromCharCode;function E(e){throw new RangeError(l[e])}function g(e,t){for(var a=e.length,i=[];a--;)i[a]=t(e[a]);return i}function c(e,t){var a=e.split("@"),i="";return 1>>10&1023|55296),e=56320|1023&e),t+=O(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,a){var i=0;for(e=a?w(e/o):e>>1,e+=w(e/t);_*y>>1w((p-u)/s))&&E("overflow"),u+=l*s,!(l<(_=r<=m?b:m+y<=r?y:r-m));r+=F)s>w(p/(g=F-_))&&E("overflow"),s*=g;m=M(u-o,t=d.length+1,0==o),w(u/t)>p-h&&E("overflow"),h+=w(u/t),u%=t,d.splice(u++,0,h)}return C(d)}function f(e){var t,a,i,n,o,s,r,l,_,g,c,d,f,u,h,m=[];for(d=(e=D(e)).length,t=v,o=k,s=a=0;sw((p-a)/(f=i+1))&&E("overflow"),a+=(r-t)*f,t=r,s=0;sp&&E("overflow"),c==t){for(l=a,_=F;!(l<(g=_<=o?b:o+y<=_?y:_-o));_+=F)h=l-g,u=F-g,m.push(O(x(g+h%u,0))),l=w(h/u);m.push(O(x(l,0))),o=M(a,f,i==n),a=0,++i}++a,++t}return m.join("")}a={version:"1.4.1",ucs2:{decode:D,encode:C},decode:d,encode:f,toASCII:function(e){return c(e,function(e){return s.test(e)?"xn--"+f(e):e})},toUnicode:function(e){return c(e,function(e){return i.test(e)?d(e.slice(4).toLowerCase()):e})}},void 0===(m=function(){return a}.call(S,B,S,u))||(u.exports=m)}()}).call(this,B(235)(e),B(55))},,,,,function(e,t,a){"use strict";var i=a(3),r=a.n(i),n=a(5),o=a.n(n),s=a(20),l=a.n(s),_=a(83),g=Object.assign||function(e){for(var t=1;t outside a "),l()(void 0!==t,'You must specify the "to" property');var n=this.context.router.history,o="string"==typeof t?Object(_.createLocation)(t,null,null,n.location):t,s=n.createHref(o);return r.a.createElement("a",g({},i,{onClick:this.handleClick,href:s,ref:a}))},o}(r.a.Component);d.defaultProps={replace:!1},d.contextTypes={router:o.a.shape({history:o.a.shape({push:o.a.func.isRequired,replace:o.a.func.isRequired,createHref:o.a.func.isRequired}).isRequired}).isRequired},t.a=d},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tthis.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=ta?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4 or withRouter() outside a ");var l=t.route,_=(i||l.location).pathname;return Object(d.a)(_,{path:n,strict:o,exact:s,sensitive:r},l.match)},s.prototype.componentWillMount=function(){n()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),n()(!(this.props.component&&this.props.children&&!u(this.props.children)),"You should not use and in the same route; will be ignored"),n()(!(this.props.render&&this.props.children&&!u(this.props.children)),"You should not use and in the same route; will be ignored")},s.prototype.componentWillReceiveProps=function(e,t){n()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),n()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},s.prototype.render=function(){var e=this.state.match,t=this.props,a=t.children,i=t.component,n=t.render,o=this.context.router,s=o.history,r=o.route,l=o.staticContext,_={match:e,location:this.props.location||r.location,history:s,staticContext:l};return i?e?c.a.createElement(i,_):null:n?e?n(_):null:"function"==typeof a?a(_):a&&!u(a)?c.a.Children.only(a):null},s}(c.a.Component);h.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},h.childContextTypes={router:l.a.object.isRequired},t.a=h},function(e,t,a){"use strict";var i=a(370),p=a.n(i),F={},b=0;t.a=function(e){var t=1a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.once=function(e,t){if(!l(t))throw TypeError("listener must be a function");var a=!1;function i(){this.removeListener(e,i),a||(a=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var a,i,n,o;if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(a=this._events[e]).length,i=-1,a===t||l(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(_(a)){for(o=n;0t.get("height")&&t.get("width")+100>=o||"link"!==t.get("type")||s,u="link"!==t.get("type"),h=E()("status-card",{horizontal:f,compact:i,interactive:u}),m=u?Object(j.a)("a",{className:"status-card__title",href:t.get("url"),title:t.get("title"),rel:"noopener",target:"_blank"},void 0,Object(j.a)("strong",{},void 0,t.get("title"))):Object(j.a)("strong",{className:"status-card__title",title:t.get("title")},void 0,t.get("title")),p=t.get("width")/t.get("height"),F=i&&!s?o/(16/9):o/p,b=Object(j.a)("div",{className:"status-card__content"},void 0,m,!(f||i)&&Object(j.a)("p",{className:"status-card__description"},void 0,(_=t.get("description")||"",g=a,-1===(c=_.indexOf(" ",g))?_:_.substring(0,c)+(_.length>g?"…":""))),Object(j.a)("span",{className:"status-card__host"},void 0,d)),y="",k=Object(j.a)("div",{style:{backgroundImage:"url("+t.get("image")+")",width:f?o:null,height:f?F:null},className:"status-card__image-image"});if(u){if(s)y=this.renderVideo();else{var v="play";"photo"===t.get("type")&&(v="search-plus"),y=Object(j.a)("div",{className:"status-card__image"},void 0,k,Object(j.a)("div",{className:"status-card__actions"},void 0,Object(j.a)("div",{},void 0,Object(j.a)("button",{onClick:this.handleEmbedClick},void 0,Object(j.a)("i",{className:"fa fa-"+v})),f&&Object(j.a)("a",{href:t.get("url"),target:"_blank",rel:"noopener"},void 0,Object(j.a)("i",{className:"fa fa-external-link"})))))}return w.a.createElement("div",{className:h,ref:this.setRef},y,!i&&b)}return y=t.get("image")?Object(j.a)("div",{className:"status-card__image"},void 0,k):Object(j.a)("div",{className:"status-card__image"},void 0,Object(j.a)("i",{className:"fa fa-file-text"})),w.a.createElement("a",{href:t.get("url"),className:h,target:"_blank",rel:"noopener",ref:this.setRef},y,b)},e}(w.a.PureComponent);Object(s.a)(d,"defaultProps",{maxDescription:50,compact:!1})},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=a(3),o=(i=n)&&i.__esModule?i:{default:i};t.default=function(){return o.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},o.default.createElement("title",null,"switch-check"),o.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=a(3),o=(i=n)&&i.__esModule?i:{default:i};t.default=function(){return o.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},o.default.createElement("title",null,"switch-x"),o.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&0t.get("height")&&t.get("width")+100>=o||"link"!==t.get("type")||s,u="link"!==t.get("type"),h=E()("status-card",{horizontal:f,compact:i,interactive:u}),m=u?Object(j.a)("a",{className:"status-card__title",href:t.get("url"),title:t.get("title"),rel:"noopener",target:"_blank"},void 0,Object(j.a)("strong",{},void 0,t.get("title"))):Object(j.a)("strong",{className:"status-card__title",title:t.get("title")},void 0,t.get("title")),p=t.get("width")/t.get("height"),F=i&&!s?o/(16/9):o/p,b=Object(j.a)("div",{className:"status-card__content"},void 0,m,!(f||i)&&Object(j.a)("p",{className:"status-card__description"},void 0,(_=t.get("description")||"",g=a,-1===(c=_.indexOf(" ",g))?_:_.substring(0,c)+(_.length>g?"…":""))),Object(j.a)("span",{className:"status-card__host"},void 0,d)),y="",k=Object(j.a)("div",{style:{backgroundImage:"url("+t.get("image")+")",width:f?o:null,height:f?F:null},className:"status-card__image-image"});if(u){if(s)y=this.renderVideo();else{var v="play";"photo"===t.get("type")&&(v="search-plus"),y=Object(j.a)("div",{className:"status-card__image"},void 0,k,Object(j.a)("div",{className:"status-card__actions"},void 0,Object(j.a)("div",{},void 0,Object(j.a)("button",{onClick:this.handleEmbedClick},void 0,Object(j.a)(D.a,{id:v})),f&&Object(j.a)("a",{href:t.get("url"),target:"_blank",rel:"noopener"},void 0,Object(j.a)(D.a,{id:"external-link"})))))}return w.a.createElement("div",{className:h,ref:this.setRef},y,!i&&b)}return y=t.get("image")?Object(j.a)("div",{className:"status-card__image"},void 0,k):Object(j.a)("div",{className:"status-card__image"},void 0,Object(j.a)(D.a,{id:"file-text"})),w.a.createElement("a",{href:t.get("url"),className:h,target:"_blank",rel:"noopener",ref:this.setRef},y,b)},e}(w.a.PureComponent);Object(s.a)(d,"defaultProps",{maxDescription:50,compact:!1})},function(e,t,a){"use strict";a.d(t,"a",function(){return u});var i,n,o,r=a(0),s=a(6),l=a(1),_=(a(3),a(5)),g=a.n(_),c=a(7),d=a(25),f=Object(c.f)({public:{id:"privacy.public.short",defaultMessage:"Public"},unlisted:{id:"privacy.unlisted.short",defaultMessage:"Unlisted"},private:{id:"privacy.private.short",defaultMessage:"Followers-only"},direct:{id:"privacy.direct.short",defaultMessage:"Direct"}}),u=Object(c.g)((o=n=function(e){function t(){return e.apply(this,arguments)||this}return Object(s.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.withLabel,a=e.visibility,i=e.intl,n={public:"globe",unlisted:"unlock",private:"lock",direct:"envelope"}[a],o=i.formatMessage(f[a]),s=Object(r.a)("i",{className:"status__visibility-icon fa fa-fw fa-"+n,title:o,"aria-hidden":"true"});return t?Object(r.a)("span",{style:{whiteSpace:"nowrap"}},void 0,s," ",o):s},t}(d.a),Object(l.a)(n,"propTypes",{visibility:g.a.string,intl:g.a.object.isRequired,withLabel:g.a.bool}),i=o))||i},function(e,t,a){"use strict";function i(){this.length=0}i.prototype.push=function(e){var t={item:e};this.last?this.last=this.last.next=t:this.last=this.first=t,this.length++},i.prototype.shift=function(){var e=this.first;if(e)return this.first=e.next,--this.length||(this.last=void 0),e.item},i.prototype.slice=function(e,t){e=void 0===e?0:e,t=void 0===t?1/0:t;for(var a=[],i=0,n=this.first;n&&!(--t<0);n=n.next)++i>e&&a.push(n.item);return a},e.exports=i},function(e,t,a){"use strict";var i=a(21),n=a(349);t.a=Object(i.connect)(function(e,t){var a=t.pollId;return{poll:e.getIn(["polls",a])}})(n.a)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function i(e,t){for(var a=0;a":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},s=1;s<20;++s)o[111+s]="f"+s;for(s=0;s<=9;++s)o[s+96]=s.toString();v.prototype.bind=function(e,t,a){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,a),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap "))&&(!function e(t,a){return null!==t&&t!==i&&(t===a||e(t.parentNode,a))}(t,this.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},v.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);n=null},v.init=function(){var t=v(i);for(var e in t)"_"!==e.charAt(0)&&(v[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},v.init(),e.Mousetrap=v,g.exports&&(g.exports=v),void 0===(f=function(){return v}.call(c,d,c,g))||(g.exports=f)}function F(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)}function b(e){if("keypress"!=e.type)return o[e.which]?o[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase();var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}function y(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function _(e,t,a){return a||(a=function(){if(!n)for(var e in n={},o)95(a.get("media_attachments").size&&!o?650:400):case r.get("reblogs")&&"reblogged_by"===s:case r.get("replies")&&null!==a.get("in_reply_to_id",null):case r.get("media")&&!a.get("spoiler_text").length&&!!a.get("media_attachments").size:return!0;default:return!1}})()&&(this.setCollapsed(!0),this.setState({autoCollapsed:!0})),this.didShowCard=!this.props.muted&&!this.props.hidden&&this.props.status&&this.props.status.get("card")&&this.props.settings.get("inline_preview_cards")}},t.getSnapshotBeforeUpdate=function(e,t){return this.props.getScrollPosition?this.props.getScrollPosition():null},t.componentDidUpdate=function(e,t,a){var i=!this.props.muted&&!this.props.hidden&&this.props.status&&this.props.status.get("card")&&this.props.settings.get("inline_preview_cards");(this.state.autoCollapsed||i&&!this.didShowCard)&&(i&&(this.didShowCard=!0),this.state.autoCollapsed&&this.setState({autoCollapsed:!1}),null!==a&&this.props.updateScrollBottom&&this.node.offsetTopi.offsetTop?i.scrollIntoView(!0):!t&&a.scrollTop+a.clientHeight>10),t=s%1024+56320,a.push(e,t)),(i+1===n||16384',custom:'',flags:'',foods:'',nature:'',objects:'',people:'',places:'',recent:'',symbols:''},B=function(e){function i(e){m()(this,i);var t=p(this,(i.__proto__||h(i)).call(this,e)),a=e.categories.filter(function(e){return e.first})[0];return t.state={selected:a.name},t.handleClick=t.handleClick.bind(t),t}return r(i,j.a.PureComponent),o(i,[{key:"getSVG",value:function(e){if(this.SVGs||(this.SVGs={}),this.SVGs[e])return this.SVGs[e];var t='\n '+S[e]+"\n ";return this.SVGs[e]=t}},{key:"handleClick",value:function(e){var t=e.currentTarget.getAttribute("data-index"),a=this.props,i=a.categories;(0,a.onAnchorClick)(i[t],t)}},{key:"render",value:function(){var s=this,e=this.props,t=e.categories,r=(e.onAnchorClick,e.color),l=e.i18n,_=this.state.selected;return j.a.createElement("div",{className:"emoji-mart-anchors"},t.map(function(e,t){var a=e.id,i=e.name,n=e.anchor,o=i==_;return!1===n?null:j.a.createElement("span",{key:a,title:l.categories[a],"data-index":t,onClick:s.handleClick,className:"emoji-mart-anchor "+(o?"emoji-mart-anchor-selected":""),style:{color:o?r:null}},j.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.getSVG(a)}}),j.a.createElement("span",{className:"emoji-mart-anchor-bar",style:{backgroundColor:r}}))}))}}]),i}(),q=B;B.defaultProps={categories:[],onAnchorClick:function(){}};var A=function(e){function a(e){m()(this,a);var t=p(this,(a.__proto__||h(a)).call(this,e));return t.data=e.data,t.setContainerRef=t.setContainerRef.bind(t),t.setLabelRef=t.setLabelRef.bind(t),t}return r(a,j.a.Component),o(a,[{key:"componentDidMount",value:function(){this.parent=this.container.parentNode,this.margin=0,this.minMargin=0,this.memoizeSize()}},{key:"shouldComponentUpdate",value:function(e,t){var a=this.props,i=a.name,n=a.perLine,o=a.native,s=a.hasStickyPosition,r=a.emojis,l=a.emojiProps,_=l.skin,g=l.size,c=l.set,d=e.perLine,f=e.native,u=e.hasStickyPosition,h=e.emojis,m=e.emojiProps,p=m.skin,F=m.size,b=m.set,y=!1;return"Recent"==i&&n!=d&&(y=!0),"Search"==i&&(y=!(r==h)),_==p&&g==F&&o==f&&c==b&&s==u||(y=!0),y}},{key:"memoizeSize",value:function(){var e=this.container.getBoundingClientRect(),t=e.top,a=e.height,i=this.parent.getBoundingClientRect().top,n=this.label.getBoundingClientRect().height;this.top=t-i+this.parent.scrollTop,this.maxMargin=0==a?0:a-n}},{key:"handleScroll",value:function(e){var t=e-this.top;if((t=(t=tthis.maxMargin?this.maxMargin:t)!=this.margin)return this.props.hasStickyPosition||(this.label.style.top=t+"px"),this.margin=t,!0}},{key:"getEmojis",value:function(){var t=this,e=this.props,a=e.name,i=e.emojis,n=e.recent,o=e.perLine;if("Recent"==a){var s=this.props.custom,r=n||D.get(o);if(r.length&&(i=r.map(function(t){var e=s.filter(function(e){return e.id===t})[0];return e||t}).filter(function(e){return!!Object(C.b)(e,null,null,t.data)})),0===i.length&&0i&&(l=l.slice(0,i))),l}}]),t}(),N=function(e){function a(e){m()(this,a);var t=p(this,(a.__proto__||h(a)).call(this,e));return t.data=e.data,t.emojiIndex=new I(t.data),t.setRef=t.setRef.bind(t),t.handleChange=t.handleChange.bind(t),t}return r(a,j.a.PureComponent),o(a,[{key:"handleChange",value:function(){var e=this.input.value;this.props.onSearch(this.emojiIndex.search(e,{emojisToShowFilter:this.props.emojisToShowFilter,maxResults:this.props.maxResults,include:this.props.include,exclude:this.props.exclude,custom:this.props.custom}))}},{key:"setRef",value:function(e){this.input=e}},{key:"clear",value:function(){this.input.value=""}},{key:"render",value:function(){var e=this.props,t=e.i18n,a=e.autoFocus;return j.a.createElement("div",{className:"emoji-mart-search"},j.a.createElement("input",{ref:this.setRef,type:"text",onChange:this.handleChange,placeholder:t.search,autoFocus:a}))}}]),a}(),L=N;N.defaultProps={onSearch:function(){},maxResults:75,emojisToShowFilter:null,autoFocus:!1};var H=function(e){function a(e){m()(this,a);var t=p(this,(a.__proto__||h(a)).call(this,e));return t.state={opened:!1},t.handleClick=t.handleClick.bind(t),t}return r(a,j.a.PureComponent),o(a,[{key:"handleClick",value:function(e){var t=parseInt(e.currentTarget.getAttribute("data-skin")),a=this.props.onChange;this.state.opened?(this.setState({opened:!1}),t!=this.props.skin&&a(t)):this.setState({opened:!0})}},{key:"render",value:function(){for(var e=this.props.skin,t=this.state.opened,a=[],i=0;i<6;i++){var n=i+1,o=n==e;a.push(j.a.createElement("span",{key:"skin-tone-"+n,className:"emoji-mart-skin-swatch "+(o?"emoji-mart-skin-swatch-selected":"")},j.a.createElement("span",{onClick:this.handleClick,"data-skin":n,className:"emoji-mart-skin emoji-mart-skin-tone-"+n})))}return j.a.createElement("div",null,j.a.createElement("div",{className:"emoji-mart-skin-swatches "+(t?"emoji-mart-skin-swatches-opened":"")},a))}}]),a}(),W=H;H.defaultProps={onChange:function(){}};a(899);var z=a(924),U={search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",people:"Smileys & People",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},V=function(e){function u(a){m()(this,u);var e=p(this,(u.__proto__||h(u)).call(this,a));e.RECENT_CATEGORY={id:"recent",name:"Recent",emojis:null},e.CUSTOM_CATEGORY={id:"custom",name:"Custom",emojis:[]},e.SEARCH_CATEGORY={id:"search",name:"Search",emojis:null,anchor:!1},a.data.compressed&&Object(x.uncompress)(a.data),e.data=a.data,e.i18n=Object(C.a)(U,a.i18n),e.state={skin:a.skin||b.get("skin")||a.defaultSkin,firstRender:!0},e.categories=[];var t=[].concat(e.data.categories);0a.include.indexOf(t.id)?1:-1});for(var i=0;i(this.scrollTop||0),i=0,n=0,o=this.categories.length;n=this.scrollHeight&&(e=this.categories[this.categories.length-1])}if(e){var g=this.anchors,c=e.name;g.state.selected!=c&&g.setState({selected:c})}this.scrollTop=t}}},{key:"handleSearch",value:function(e){this.SEARCH_CATEGORY.emojis=e;for(var t=0,a=this.categories.length;t