From 28f34a46d558d6115665563cead73b950b4b6d63 Mon Sep 17 00:00:00 2001 From: Amin Mahboubi Date: Thu, 20 May 2021 14:40:39 +0200 Subject: [PATCH] 1.1.1 --- docs/404.html | 2 +- docs/404/index.html | 2 +- docs/app-9397f579363a09cd0a29.js | 3 ++ docs/app-9397f579363a09cd0a29.js.LICENSE.txt | 52 +++++++++++++++++++ docs/app-9397f579363a09cd0a29.js.map | 1 + docs/chunk-map.json | 2 +- docs/components/activity/index.html | 8 +-- docs/components/attached-activity/index.html | 4 +- docs/components/audio/index.html | 4 +- docs/components/avatar-group/index.html | 4 +- docs/components/avatar/index.html | 4 +- docs/components/button/index.html | 4 +- docs/components/card/index.html | 4 +- docs/components/comment-field/index.html | 4 +- docs/components/comment-item/index.html | 4 +- docs/components/comment-list/index.html | 4 +- docs/components/data-label/index.html | 4 +- docs/components/dropdown-panel/index.html | 4 +- docs/components/dropdown/index.html | 4 +- docs/components/emoji-picker/index.html | 4 +- docs/components/flat-feed/index.html | 4 +- docs/components/flex/index.html | 4 +- docs/components/follow-button/index.html | 4 +- docs/components/gallery/index.html | 4 +- docs/components/icon-badge/index.html | 4 +- docs/components/icons/index.html | 4 +- docs/components/infinite-scroll/index.html | 4 +- docs/components/like-button/index.html | 4 +- docs/components/link/index.html | 4 +- docs/components/load-more-button/index.html | 4 +- .../components/load-more-paginator/index.html | 4 +- .../new-activities-notification/index.html | 4 +- .../notification-dropdown/index.html | 4 +- docs/components/notification-feed/index.html | 4 +- docs/components/notification/index.html | 4 +- docs/components/panel/index.html | 4 +- docs/components/reaction-icon/index.html | 4 +- docs/components/reaction-list/index.html | 4 +- .../reaction-toggle-icon/index.html | 4 +- docs/components/repost-button/index.html | 4 +- docs/components/single-post/index.html | 4 +- docs/components/status-update-form/index.html | 4 +- docs/components/textarea/index.html | 4 +- docs/components/time-header/index.html | 4 +- docs/components/title/index.html | 4 +- docs/components/user-bar/index.html | 4 +- docs/components/video/index.html | 4 +- docs/example-readme/index.html | 2 +- docs/i18n/index.html | 4 +- docs/index.html | 4 +- docs/page-data/app-data.json | 2 +- docs/page-data/sq/d/1635659820.json | 2 +- docs/webpack.stats.json | 2 +- package.json | 2 +- 54 files changed, 152 insertions(+), 96 deletions(-) create mode 100644 docs/app-9397f579363a09cd0a29.js create mode 100644 docs/app-9397f579363a09cd0a29.js.LICENSE.txt create mode 100644 docs/app-9397f579363a09cd0a29.js.map diff --git a/docs/404.html b/docs/404.html index 0a699588..eebabdbc 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -
Not Found
\ No newline at end of file +
Not Found
\ No newline at end of file diff --git a/docs/404/index.html b/docs/404/index.html index 237fe461..d15d2ad0 100644 --- a/docs/404/index.html +++ b/docs/404/index.html @@ -1 +1 @@ -
Not Found
\ No newline at end of file +
Not Found
\ No newline at end of file diff --git a/docs/app-9397f579363a09cd0a29.js b/docs/app-9397f579363a09cd0a29.js new file mode 100644 index 00000000..c968d410 --- /dev/null +++ b/docs/app-9397f579363a09cd0a29.js @@ -0,0 +1,3 @@ +/*! For license information please see app-9397f579363a09cd0a29.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+165":function(e,t){e.exports=function(e,t){return e.has(t)}},"+2yT":function(e,t,r){"use strict";(function(t){e.exports={addTimeout:function(e,r,n,o){if(this._timeouts=this._timeouts||{},!this._timeouts.hasOwnProperty(e)){var i=this;this._timeouts[e]=t.setTimeout((function(){delete i._timeouts[e],n.call(o)}),1e3*r)}},removeTimeout:function(e){this._timeouts=this._timeouts||{};var r=this._timeouts[e];r&&(t.clearTimeout(r),delete this._timeouts[e])},removeAllTimeouts:function(){for(var e in this._timeouts=this._timeouts||{},this._timeouts)this.removeTimeout(e)}}}).call(this,r("pCvA"))},"+Ckz":function(e,t,r){var n=r("V2ZB"),o=r("tb+2");e.exports=function(e,t){return n(e,o(e),t)}},"+Ltg":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},"+Vbj":function(e,t,r){var n=r("jgJv"),o=r("lYsT"),i=r("PqlX"),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},"+dZb":function(e,t,r){var n=r("zm72"),o=r("scUu");e.exports=function(e,t,r){return n(o,e,t,r)}},"+iL7":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"+jXo":function(e,t,r){"use strict";(function(t){var n=r("NFrV"),o=r("abqF"),i=r("/95U"),a=r("BZif"),s=r("j1kx"),c=r("L+qr"),u=r("gJRt"),l=r("JyNm"),f=n({className:"Dispatcher",MAX_REQUEST_SIZE:2048,DEFAULT_RETRY:5,UP:1,DOWN:2,initialize:function(e,t,r){this._client=e,this.endpoint=o.parse(t),this._alternates=r.endpoints||{},this.cookies=i.CookieJar&&new i.CookieJar,this._disabled=[],this._envelopes={},this.headers={},this.retry=r.retry||this.DEFAULT_RETRY,this._scheduler=r.scheduler||l,this._state=0,this.transports={},this.wsExtensions=[],this.proxy=r.proxy||{},"string"==typeof this._proxy&&(this._proxy={origin:this._proxy});var n=r.websocketExtensions;if(n)for(var a=0,s=(n=[].concat(n)).length;a=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=o.a.createContext({}),f=function(e){return function(t){var r=p(t.components);return o.a.createElement(e,a({},t,{components:r}))}},p=function(e){var t=o.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},d=function(e){var t=p(e.components);return o.a.createElement(l.Provider,{value:t},e.children)},h={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},m=o.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,i=e.originalType,a=e.parentName,s=u(e,["components","mdxType","originalType","parentName"]),l=p(r),f=n,d=l["".concat(a,".").concat(f)]||l[f]||h[f]||i;return r?o.a.createElement(d,c(c({ref:t},s),{},{components:r})):o.a.createElement(d,c({ref:t},s))}));function v(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=r.length,a=new Array(i);a[0]=m;var s={};for(var c in t)hasOwnProperty.call(t,c)&&(s[c]=t[c]);s.originalType=e,s.mdxType="string"==typeof e?e:n,a[1]=s;for(var u=2;u0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return"string"==typeof e?e:e.id}))})),this.client=t,this.token=r}return(0,a.default)(e,[{key:"add",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.id,i=n.targetFeeds,a=void 0===i?[]:i,s=n.userId,c=n.targetFeedsExtraData,u={id:o,activity_id:t instanceof Object?t.id:t,kind:e,data:r||{},target_feeds:this._convertTargetFeeds(a),user_id:s};return null!=c&&(u.target_feeds_extra_data=c),this.client.post({url:this.buildURL(),body:u,token:this.token})}},{key:"addChild",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.targetFeeds,i=void 0===o?[]:o,a=n.userId,s=n.targetFeedsExtraData,c={parent:t instanceof Object?t.id:t,kind:e,data:r||{},target_feeds:this._convertTargetFeeds(i),user_id:a};return null!=s&&(c.target_feeds_extra_data=s),this.client.post({url:this.buildURL(),body:c,token:this.token})}},{key:"get",value:function(e){return this.client.get({url:this.buildURL(e),token:this.token})}},{key:"filter",value:function(e){var t=e.user_id,r=e.activity_id,n=e.reaction_id,i=(0,o.default)(e,["user_id","activity_id","reaction_id"]);if(i.limit||(i.limit=10),(t?1:0)+(r?1:0)+(n?1:0)!=1)throw new c.SiteError("Must provide exactly one value for one of these params: user_id, activity_id, reaction_id");var a=(t?"user_id":r&&"activity_id")||n&&"reaction_id",s=t||r||n,u=e.kind?this.buildURL(a,s,e.kind):this.buildURL(a,s);return this.client.get({url:u,qs:i,token:this.token})}},{key:"update",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.targetFeeds,o=void 0===n?[]:n,i=r.targetFeedsExtraData,a={data:t,target_feeds:this._convertTargetFeeds(o)};return null!=i&&(a.target_feeds_extra_data=i),this.client.put({url:this.buildURL(e),body:a,token:this.token})}},{key:"delete",value:function(e){return this.client.delete({url:this.buildURL(e),token:this.token})}}]),e}();t.StreamReaction=u},"0711":function(e,t,r){var n=r("WRuO"),o=r("WMT/"),i=r("F3Ab"),a=r("wnk4"),s=r("ArpJ"),c=r("Fldm"),u=r("e766"),l=r("+Ckz"),f=r("CIBY"),p=r("2AbI"),d=r("zIph"),h=r("s3t7"),m=r("316b"),v=r("iXK7"),g=r("FQMq"),b=r("PqlX"),y=r("tfj2"),w=r("Bpme"),O=r("9aUh"),_=r("CPLO"),x=r("h0av"),j=r("Vujp"),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,r,A,E,S,P){var C,T=1&r,R=2&r,D=4&r;if(A&&(C=S?A(t,E,S,P):A(t)),void 0!==C)return C;if(!O(t))return t;var L=b(t);if(L){if(C=m(t),!T)return u(t,C)}else{var I=h(t),N="[object Function]"==I||"[object GeneratorFunction]"==I;if(y(t))return c(t,T);if("[object Object]"==I||"[object Arguments]"==I||N&&!S){if(C=R||N?{}:g(t),!T)return R?f(t,s(C,t)):l(t,a(C,t))}else{if(!k[I])return S?t:{};C=v(t,I,T)}}P||(P=new n);var M=P.get(t);if(M)return M;P.set(t,C),_(t)?t.forEach((function(n){C.add(e(n,r,A,n,t,P))})):w(t)&&t.forEach((function(n,o){C.set(o,e(n,r,A,o,t,P))}));var F=L?void 0:(D?R?d:p:R?j:x)(t);return o(F||t,(function(n,o){F&&(n=t[o=n]),i(C,o,e(n,r,A,o,t,P))})),C}},"07F0":function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++rc;)o.f(e,r=n[c++],t[r]);return e}},"1M3q":function(e,t,r){e.exports=r("wcNg")},"1SHM":function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r("mXGw"),o=r.n(n),i=r("LFXc"),a=r("3DpS"),s=r("Dg5a"),c=r("eezF"),u=r("aD51");"undefined"!=typeof CommentListProps&&CommentListProps&&CommentListProps===Object(CommentListProps)&&Object.isExtensible(CommentListProps)&&!CommentListProps.hasOwnProperty("__filemeta")&&Object.defineProperty(CommentListProps,"__filemeta",{configurable:!0,value:{name:"CommentListProps",filename:"src/components/CommentList.tsx"}});var l=function(e){var t=e.Paginator,r=void 0===t?s.a:t,n=e.CommentItem,l=void 0===n?c.a:n,f=e.activityId,p=e.activityPath,d=e.oldestToNewest,h=void 0!==d&&d,m=e.reverseOrder,v=void 0!==m&&m;return Object(u.c)(a.a,{Paginator:r,activityId:f,reactionKind:"comment",Reaction:function(e){var t=e.reaction;return Object(u.c)(o.a.Fragment,null,Object(i.a)(l,{comment:t}))},activityPath:p,oldestToNewest:h,reverseOrder:v})};void 0!==l&&l&&l===Object(l)&&Object.isExtensible(l)&&!l.hasOwnProperty("__filemeta")&&Object.defineProperty(l,"__filemeta",{configurable:!0,value:{name:"CommentList",filename:"src/components/CommentList.tsx"}})},"1dvN":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapRootElement=void 0;var o=n(r("mXGw")),i=r("LcPu");t.wrapRootElement=function(e){var t=e.element;return o.default.createElement(i.HelmetProvider,null,t)}},"1ezk":function(e,t){e.exports=function(){return!1}},"1q4v":function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r("HtiD"),o=r("Eo5u"),i=r("HGLW"),a=(r("x3Br"),r("1M3q")),s=r.n(a),c=r("3KFY"),u=r("49Kr"),l=r.n(u),f=r("NfLg"),p=r.n(f),d=r("/gfI"),h=r.n(d),m=r("nXCe"),v=r.n(m),g=r("Pdo2");function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?i-1:0),s=1;s1){var l=c.slice(0,-1);i=t.removeFoundActivityIdPath(n.getIn(l).toJS(),i,l),a=t.removeFoundActivityIdPaths(n.getIn(l).toJS(),a,l),s=t.removeFoundReactionIdPaths(n.getIn(l).toJS(),s,l)}else a=t.removeFoundActivityIdPaths(n.get(e).toJS(),a,[e]),s=t.removeFoundReactionIdPaths(n.get(e).toJS(),s,[e]);if(n=n.removeIn(c),c.length>1){var f=c.slice(0,-1);u=0===n.getIn(f).size?c[0]:null,i=t.addFoundActivityIdPath(n.getIn(f).toJS(),i,f),a=t.addFoundActivityIdPaths(n.getIn(f).toJS(),a,f),s=t.addFoundReactionIdPaths(n.getIn(f).toJS(),s,f)}return null!=u&&(o=o.filter((function(e){return e!==u}))),{activities:n,activityOrder:o,activityIdToPaths:a,reactionIdToPaths:s,activityIdToPath:i}}))},this.onRemoveActivity=function(){var e=Object(n.a)(s.a.mark((function e(r){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t.props.doActivityDeleteRequest){e.next=6;break}return e.next=4,t.props.doActivityDeleteRequest(r);case 4:e.next=8;break;case 6:return e.next=8,t.feed().removeActivity(r);case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(0),t.props.errorHandler(e.t0,"delete-activity",{activityId:t.props.feedGroup,feedGroup:t.props.feedGroup,userId:t.props.userId}),e.abrupt("return");case 14:return e.abrupt("return",t._removeActivityFromState(r));case 15:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),this.onMarkAsRead=function(e){return t._onMarkAs("read",e)},this.onMarkAsSeen=function(e){return t._onMarkAs("seen",e)},this._onMarkAs=function(){var e=Object(n.a)(s.a.mark((function e(r,n){var o,i,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n,!0===n?o=t.state.activityOrder:Array.isArray(n)?(o=n.map((function(e){return e.id})),i=o):(i=n.id,o=[n.id]),e.prev=2,e.next=5,t.doFeedRequest(((a={limit:1,id_lte:t.state.activityOrder[0]})["mark_"+r]=i,a));case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),t.props.errorHandler(e.t0,"get-notification-counts",{feedGroup:t.props.feedGroup,userId:t.props.userId});case 10:t.setState((function(e){for(var t,n,i="un"+r,a=e.activities,s=e[i],c=b(o);!(n=c()).done;){var u=[n.value,"is_"+r];!1===a.getIn(u)&&(a=a.setIn(u,!0),s--)}return(t={activities:a})[i]=s,t}));case 11:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t,r){return e.apply(this,arguments)}}(),this.getOptions=function(e){void 0===e&&(e={});var r=O({},t.props.options),n=e,o=n.id_gt,i=n.id_gte,a=n.id_lt,s=n.id_lte,c=n.offset;return(o||i||a||s||null!=c)&&(delete r.id_gt,delete r.id_gte,delete r.id_lt,delete r.id_lte,delete r.offset,delete r.refresh),O(O({withReactionCounts:!0,withOwnReactions:!0,limit:10},r),e)},this.doFeedRequest=function(){var e=Object(n.a)(s.a.mark((function e(r){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.props.doFeedRequest){e.next=4;break}return e.next=3,t.props.doFeedRequest(t.props.client,t.props.feedGroup,t.props.userId,r);case 3:return e.abrupt("return",e.sent);case 4:return e.next=6,t.feed().get(r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.feed=function(){return t.props.client.feed(t.props.feedGroup,t.props.userId)},this.responseToActivityMap=function(e){return c.a.fromJS(e.results.reduce((function(e,t){return e[t.id]=t,e}),{}))},this.responseToActivityIdToPath=function(e){if(0===e.results.length||void 0===e.results[0].activities)return{};for(var t,r=e.results,n={},o=function(){var e=t.value;e.activities.forEach((function(t,r){n[t.id]=[e.id,"activities",r]}))},i=b(r);!(t=i()).done;)o();return n},this.responseToActivityIdToPaths=function(e,t){void 0===t&&(t={});var r=t,n=[];function o(e){if(Array.isArray(e))e.forEach((function(e,t){n.push(t),o(e),n.pop()}));else if(p()(e))for(var t in e.id&&e.actor&&e.verb&&e.object&&(r[e.id]||(r[e.id]=[]),r[e.id].push([].concat(n))),e)n.push(t),o(e[t]),n.pop()}for(var i,a=b(e.results);!(i=a()).done;){var s=i.value;n.push(s.id),o(s),n.pop()}return r},this.feedResponseToReactionIdToPaths=function(e,t){void 0===t&&(t={});var r=t,n=[];function o(e){if(Array.isArray(e))e.forEach((function(e,t){n.push(t),o(e),n.pop()}));else if(p()(e))for(var t in e.id&&e.kind&&e.data&&(r[e.id]||(r[e.id]=[]),r[e.id].push([].concat(n))),e)n.push(t),o(e[t]),n.pop()}for(var i,a=b(e.results);!(i=a()).done;){var s=i.value;n.push(s.id),o(s),n.pop()}return r},this.reactionResponseToReactionIdToPaths=function(e,t,r,n){var i=t,a=Object(o.a)(r);function s(e){if(Array.isArray(e))e.forEach((function(e,t){a.push(t),s(e),a.pop()}));else if(p()(e))for(var t in e.id&&e.kind&&e.data&&(i[e.id]||(i[e.id]=[]),i[e.id].push(Object(o.a)(a))),e)a.push(t),s(e[t]),a.pop()}for(var c,u=b(e.results);!(c=u()).done;){var l=c.value;a.push(n),s(l),a.pop(),n++}return i},this.removeFoundReactionIdPaths=function(e,t,r){var n=t,i=Object(o.a)(r);return function e(t){if(Array.isArray(t))t.forEach((function(t,r){i.push(r),e(t),i.pop()}));else if(p()(t))for(var r in t.id&&t.kind&&t.data&&(n[t.id]||(n[t.id]=[]),v()(n[t.id],(function(e){return h()(e,i)}))),t)i.push(r),e(t[r]),i.pop()}(e),n},this.removeFoundActivityIdPaths=function(e,t,r){var n=t,i=Object(o.a)(r);return function e(t){if(Array.isArray(t))t.forEach((function(t,r){i.push(r),e(t),i.pop()}));else if(p()(t))for(var r in t.id&&t.actor&&t.verb&&t.object&&(n[t.id]||(n[t.id]=[]),v()(n[t.id],(function(e){return h()(e,i)}))),t)i.push(r),e(t[r]),i.pop()}(e),n},this.removeFoundActivityIdPath=function(e,t,r){var n=t,i=Object(o.a)(r);return e.forEach((function(e,t){i.push(t),h()(n[e.id],i)&&delete n[e.id],i.pop()})),n},this.addFoundReactionIdPaths=function(e,t,r){var n=t,i=Object(o.a)(r);return function e(t){if(Array.isArray(t))t.forEach((function(t,r){i.push(r),e(t),i.pop()}));else if(p()(t))for(var r in t.id&&t.kind&&t.data&&(n[t.id]||(n[t.id]=[]),n[t.id].push(Object(o.a)(i))),t)i.push(r),e(t[r]),i.pop()}(e),n},this.addFoundActivityIdPaths=function(e,t,r){var n=t,i=Object(o.a)(r);return function e(t){if(Array.isArray(t))t.forEach((function(t,r){i.push(r),e(t),i.pop()}));else if(p()(t))for(var r in t.id&&t.actor&&t.verb&&t.object&&(n[t.id]||(n[t.id]=[]),n[t.id].push(Object(o.a)(i))),t)i.push(r),e(t[r]),i.pop()}(e),n},this.addFoundActivityIdPath=function(e,t,r){var n=t;return e.forEach((function(e,t){n[e.id]=[].concat(Object(o.a)(r),[t])})),n},this.responseToReactionActivities=function(e){if(0===e.results.length)return{};var t={};function r(e){for(var r,n=b(e);!(r=n()).done;){var o=r.value;o.reaction&&o.reaction.id&&(t[o.reaction.id]=o.id)}}if(void 0===e.results[0].activities)r(e.results);else for(var n,o=b(e.results);!(n=o()).done;){r(n.value.activities)}return t},this.refresh=function(){var e=Object(n.a)(s.a.mark((function e(r){var n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getOptions(r),e.next=3,t.setState({refreshing:!0});case 3:return e.prev=3,e.next=6,t.doFeedRequest(n);case 6:o=e.sent,e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(3),t.setState({refreshing:!1}),t.props.errorHandler(e.t0,"get-feed",{feedGroup:t.props.feedGroup,userId:t.props.userId}),e.abrupt("return");case 14:return i=O({activityOrder:o.results.map((function(e){return e.id})),activities:t.responseToActivityMap(o),activityIdToPath:t.responseToActivityIdToPath(o),activityIdToPaths:t.responseToActivityIdToPaths(o),reactionIdToPaths:t.feedResponseToReactionIdToPaths(o),reactionActivities:t.responseToReactionActivities(o),refreshing:!1,lastResponse:o,realtimeAdds:[],realtimeDeletes:[]},t.unseenUnreadFromResponse(o)),!0===n.mark_seen&&(i.unseen=0),!0===n.mark_read&&(i.unread=0),e.abrupt("return",t.setState(i));case 18:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),this.subscribe=Object(n.a)(s.a.mark((function e(){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.props.notify){e.next=4;break}return r=t.feed(),e.next=4,t.setState((function(e){if(e.subscription)return{};var n=r.subscribe((function(e){t.setState((function(t){var r=e.new.length-e.deleted.length;return{realtimeAdds:t.realtimeAdds.concat(e.new),realtimeDeletes:t.realtimeDeletes.concat(e.deleted),unread:t.unread+r,unseen:t.unseen+r}}))}));return n.then((function(){return console.log("now listening to changes in realtime for "+t.feed().id)}),(function(e){return console.error(e)})),{subscription:n}}));case 4:case"end":return e.stop()}}),e)}))),this.unsubscribe=Object(n.a)(s.a.mark((function e(){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.state.subscription)&&!t.registeredCallbacks.length){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,r;case 6:e.sent.cancel(),console.log("stopped listening to changes in realtime for "+t.feed().id),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])}))),this.hasNextPage=function(){var e=t.state.lastResponse;return Boolean(e&&e.next)},this.hasReverseNextPage=function(){var e=t.state.lastReverseResponse;return Boolean(e&&e.next)},this.loadNextPage=Object(n.a)(s.a.mark((function e(){var r,n,o,i,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.state.lastResponse)&&r.next){e.next=3;break}return e.abrupt("return");case 3:return n=!1,e.next=6,t.setState((function(e){return e.refreshing?(n=!0,{}):{refreshing:!0}}));case 6:if(!n){e.next=8;break}return e.abrupt("return");case 8:return o=new l.a(r.next,!0),i=t.getOptions(o.query),e.prev=10,e.next=13,t.doFeedRequest(i);case 13:a=e.sent,e.next=21;break;case 16:return e.prev=16,e.t0=e.catch(10),t.setState({refreshing:!1}),t.props.errorHandler(e.t0,"get-feed-next-page",{feedGroup:t.props.feedGroup,userId:t.props.userId}),e.abrupt("return");case 21:return e.abrupt("return",t.setState((function(e){var r=e.activities.merge(t.responseToActivityMap(a)),n=O(O({},e.activityIdToPath),t.responseToActivityIdToPath(a));return{activityOrder:e.activityOrder.concat(a.results.map((function(e){return e.id}))),activities:r,activityIdToPath:n,activityIdToPaths:t.responseToActivityIdToPaths(a,e.activityIdToPaths),reactionIdToPaths:t.feedResponseToReactionIdToPaths(a,e.reactionIdToPaths),reactionActivities:O(O({},e.reactionActivities),t.responseToReactionActivities(a)),refreshing:!1,lastResponse:a}})));case 22:case"end":return e.stop()}}),e,null,[[10,16]])}))),this.loadReverseNextPage=Object(n.a)(s.a.mark((function e(){var r,n,o,i,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.state.lastReverseResponse)&&r.next){e.next=3;break}return e.abrupt("return");case 3:return n=!1,e.next=6,t.setState((function(e){return e.refreshing?(n=!0,{}):{refreshing:!0}}));case 6:if(!n){e.next=8;break}return e.abrupt("return");case 8:return o=new l.a(r.next,!0),i=t.getOptions(o.query),e.prev=10,e.next=13,t.doFeedRequest(i);case 13:a=e.sent,e.next=21;break;case 16:return e.prev=16,e.t0=e.catch(10),t.setState({refreshing:!1}),t.props.errorHandler(e.t0,"get-feed-next-page",{feedGroup:t.props.feedGroup,userId:t.props.userId}),e.abrupt("return");case 21:return e.abrupt("return",t.setState((function(e){var r=e.activities.merge(t.responseToActivityMap(a)),n=O(O({},e.activityIdToPath),t.responseToActivityIdToPath(a));return{activityOrder:a.results.map((function(e){return e.id})).concat(e.activityOrder),activities:r,activityIdToPath:n,activityIdToPaths:t.responseToActivityIdToPaths(a,e.activityIdToPaths),reactionIdToPaths:t.feedResponseToReactionIdToPaths(a,e.reactionIdToPaths),reactionActivities:O(O({},e.reactionActivities),t.responseToReactionActivities(a)),refreshing:!1,lastReverseResponse:a}})));case 22:case"end":return e.stop()}}),e,null,[[10,16]])}))),this.loadNextReactions=function(){var e=Object(n.a)(s.a.mark((function e(r,n,i,a){var u,f,p,d,h,m,v,b,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u={activity_id:r,kind:n},f="latest",a&&(f="oldest"),i||(i=t.getActivityPath(r)),p=[].concat(Object(o.a)(i),[f+"_reactions",n]),d=[].concat(Object(o.a)(i),[f+"_reactions_extra",n,"next"]),h=[].concat(Object(o.a)(i),[f+"_reactions_extra",n,"refreshing"]),m=t.state.activities.getIn([].concat(Object(o.a)(i),[f+"_reactions_extra"])),v="https://api.stream-io-api.com/",m?v=m.getIn([n,"next"],""):a&&(u.id_gt="non-existant-"+Object(g.c)()),b=t.state.activities.getIn(h,!1),v&&!b){e.next=13;break}return e.abrupt("return");case 13:if(t.setState((function(e){return{activities:e.activities.setIn(h,!0)}})),u=O(O({},l()(v,!0).query),u),e.prev=15,!t.props.doReactionsFilterRequest){e.next=22;break}return e.next=19,t.props.doReactionsFilterRequest(u);case 19:y=e.sent,e.next=25;break;case 22:return e.next=24,t.props.client.reactions.filter(u);case 24:y=e.sent;case 25:e.next=32;break;case 27:return e.prev=27,e.t0=e.catch(15),t.setState({refreshing:!1}),t.props.errorHandler(e.t0,"get-reactions-next-page",{options:u}),e.abrupt("return");case 32:t.setState((function(e){return{activities:e.activities.setIn(h,!1).setIn(d,y.next).updateIn(p,(function(e){return void 0===e&&(e=c.a.List()),e.concat(c.a.fromJS(y.results))})),reactionIdToPaths:t.reactionResponseToReactionIdToPaths(y,e.reactionIdToPaths,p,e.activities.getIn(p,c.a.List()).toJS().length)}}));case 33:case"end":return e.stop()}}),e,null,[[15,27]])})));return function(t,r,n,o){return e.apply(this,arguments)}}(),this.refreshUnreadUnseen=Object(n.a)(s.a.mark((function e(){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.doFeedRequest({limit:0});case 3:r=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),t.props.errorHandler(e.t0,"get-notification-counts",{feedGroup:t.props.feedGroup,userId:t.props.userId}),e.abrupt("return");case 10:return e.abrupt("return",t.setState(t.unseenUnreadFromResponse(r)));case 11:case"end":return e.stop()}}),e,null,[[0,6]])}))),this.props=e;var r=this.getOptions();this.registeredCallbacks=[];var i="";r.id_gte?i="?id_lt="+r.id_gte:r.id_gt?i="?id_lte="+r.id_gt:r.id_lte?i="?id_gt="+r.id_lte:r.id_lt&&(i="?id_gte="+r.id_lt),this.state.lastReverseResponse={next:i}}var t=e.prototype;return t.register=function(e){this.registeredCallbacks.push(e),this.subscribe()},t.unregister=function(e){this.registeredCallbacks.splice(this.registeredCallbacks.indexOf(e),1),this.unsubscribe()},t.triggerUpdate=function(){for(var e,t=b(this.registeredCallbacks);!(e=t()).done;){(0,e.value)()}},t.unseenUnreadFromResponse=function(e){var t=0,r=0;return"number"==typeof e.unseen&&(t=e.unseen),"number"==typeof e.unread&&(r=e.unread),{unseen:t,unread:r}},e}();void 0!==_&&_&&_===Object(_)&&Object.isExtensible(_)&&!_.hasOwnProperty("__filemeta")&&Object.defineProperty(_,"__filemeta",{configurable:!0,value:{name:"FeedManager",filename:"src/context/FeedManager.tsx"}})},2:function(e,t){},2775:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("qqks"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,Avatar:o.a,React:i}},"296D":function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,r(t,n)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},"2AbI":function(e,t,r){var n=r("6TGQ"),o=r("tb+2"),i=r("h0av");e.exports=function(e){return n(e,i,o)}},"2CTe":function(e,t,r){var n=r("ejlC");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},"2EQx":function(e,t,r){var n=r("9aUh");e.exports=function(e){return e==e&&!n(e)}},"2GMX":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeRenderer=a,t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new n.default.Renderer;function s(e,t){for(var r=e.children;;){if(!r.length||r[r.length-1].level===t)return r;r=r[r.length-1].children}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split(/(\{\{.*?\}\})/),n=r.map((function(t){var r=t.match(/\{\{(.*)\}\}/);return r?(e.tree.splice(e.tree.indexOf(e.elements[r[1]]),1),e.elements[r[1]]):""!==t?o.default.decode(t):null}));return n}function u(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,a=e.nextElementId++,s=null,u=t.elements&&t.elements[i];return o&&(s=Array.isArray(o)?o.map(c):c(o)),e.elements[a]=t.createElement(u||r,Object.assign({key:a},n,u?{context:e.context}:{}),s),e.tree.push(e.elements[a]),"{{".concat(a,"}}")}return i.code=r.code||a(e,t),i.html=r.html||function(r){var n=e.nextElementId++;e.tree.push(t.createElement("div",{key:n,dangerouslySetInnerHTML:{__html:r}}))},i.paragraph=r.paragraph||function(e){return u("p",null,e)},i.blockquote=r.blockquote||function(e){return u("blockquote",null,e)},i.link=r.link||function(e,t,r){return u("a",{href:e,title:t},r)},i.br=r.br||function(){return u("br")},i.hr=r.hr||function(){return u("hr")},i.strong=r.strong||function(e){return u("strong",null,e)},i.del=r.del||function(e){return u("del",null,e)},i.em=r.em||function(e){return u("em",null,e)},i.heading=r.heading||function(t,r){e.currentId=e.currentId.slice(0,r-1),e.currentId.push(t.replace(/\s/g,"-").toLowerCase());var n=e.currentId.join("-"),o=e.toc[e.toc.length-1];!o||o.level>r?e.toc.push({id:n,title:t,level:r,children:[]}):s(o,r).push({id:n,title:t,level:r,children:[]});return u("h".concat(r),{id:n},t)},i.list=r.list||function(e,t){return u(t?"ol":"ul",null,e)},i.listitem=r.listitem||function(e){return u("li",null,e)},i.table=r.table||function(e,t){return u("table",null,[u("thead",null,e),u("tbody",null,t)])},i.thead=r.thead||function(e){return u("thead",null,e)},i.tbody=r.tbody||function(e){return u("tbody",null,e)},i.tablerow=r.tablerow||function(e){return u("tr",null,e)},i.tablecell=r.tablecell||function(e,t){return u(t.header?"th":"td",{className:t.align?"text-".concat(t.align):void 0},e)},i.codespan=r.codespan||function(e){return u("code",null,e,"codespan")},i.image=r.image||function(e,t,r){return u("img",{src:e,alt:r})},i};var n=i(r("Ax1p")),o=i(r("P9a0"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){function r(e){var r;try{r=t.createElement("code",{className:"language-".concat(e.language),dangerouslySetInnerHTML:t.highlight?{__html:t.highlight(e.language,e.code)}:null},t.highlight?null:e.code)}catch(n){console.warn("".concat(e.language," is not supported by your defined highlighter.")),r=t.createElement("code",null,e.code)}return t.createElement("pre",null,r)}return function(n,o){var i=e.nextElementId++;return e.elements[i]=t.createElement(t.elements&&t.elements.code||r,{key:i,code:n,language:o}),e.tree.push(e.elements[i]),"{{".concat(i,"}}")}}},"2Hgx":function(e,t){var r="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!e(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!e(c.value[1],a.get(c.value[0])))return!1;return!0}if(o&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(r&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!e(t[u[c]],a[u[c]]))return!1;return!0}return t!=t&&a!=a}(e,t)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}}},"2JYJ":function(e,t,r){var n,o,i;!function(a){"use strict";o=[r("lrIn"),r("t8nd")],void 0===(i="function"==typeof(n=function(e){function t(e){e&&(Object.defineProperty(this,"map",{value:this.ifds[e].map}),Object.defineProperty(this,"tags",{value:this.tags&&this.tags[e]||{}}))}t.prototype.map={Orientation:274,Thumbnail:"ifd1",Blob:513,Exif:34665,GPSInfo:34853,Interoperability:40965},t.prototype.ifds={ifd1:{name:"Thumbnail",map:t.prototype.map},34665:{name:"Exif",map:{}},34853:{name:"GPSInfo",map:{}},40965:{name:"Interoperability",map:{}}},t.prototype.get=function(e){return this[e]||this[this.map[e]]};var r={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,r){return e.getUint16(t,r)},size:2},4:{getValue:function(e,t,r){return e.getUint32(t,r)},size:4},5:{getValue:function(e,t,r){return e.getUint32(t,r)/e.getUint32(t+4,r)},size:8},9:{getValue:function(e,t,r){return e.getInt32(t,r)},size:4},10:{getValue:function(e,t,r){return e.getInt32(t,r)/e.getInt32(t+4,r)},size:8}};function n(e,t,n,o,i,a){var s,c,u,l,f,p,d=r[o];if(d){if(!((c=(s=d.size*i)>4?t+e.getUint32(n+8,a):n+8)+s>e.byteLength)){if(1===i)return d.getValue(e,c,a);for(u=[],l=0;le.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((f=r+2+12*(l=e.getUint16(r,i)))+4>e.byteLength)){for(p=0;pr.byteLength)console.log("Invalid Exif data: Invalid segment size.");else if(0===r.getUint16(n+8)){switch(r.getUint16(h)){case 18761:u=!0;break;case 19789:u=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}42===r.getUint16(h+2,u)?(l=r.getUint32(h+4,u),s.exif=new t,c.disableExifOffsets||(s.exifOffsets=new t,s.exifTiffOffset=h,s.exifLittleEndian=u),(l=i(r,h,h+l,u,s.exif,s.exifOffsets,p,d))&&o(p,d,"ifd1")&&(s.exif.ifd1=l,s.exifOffsets&&(s.exifOffsets.ifd1=h+l)),Object.keys(s.exif.ifds).forEach((function(e){!function(e,r,n,o,a,s,c){var u=e.exif[r];u&&(e.exif[r]=new t(r),e.exifOffsets&&(e.exifOffsets[r]=new t(r)),i(n,o,o+u,a,e.exif[r],e.exifOffsets&&e.exifOffsets[r],s&&s[r],c&&c[r]))}(s,e,r,h,u,p,d)})),(f=s.exif.ifd1)&&f[513]&&(f[513]=function(t,r,n){if(n){if(!(r+n>t.byteLength))return new Blob([e.bufferSlice.call(t.buffer,r,r+n)],{type:"image/jpeg"});console.log("Invalid Exif data: Invalid thumbnail data.")}}(r,h+f[513],f[514]))):console.log("Invalid Exif data: Missing TIFF marker.")}else console.log("Invalid Exif data: Missing byte alignment offset.")}},e.metaDataParsers.jpeg[65505].push(e.parseExifData),e.exifWriters={274:function(e,t,r){var n=t.exifOffsets[274];return n?(new DataView(e,n+8,2).setUint16(0,r,t.exifLittleEndian),e):e}},e.writeExifData=function(t,r,n,o){return e.exifWriters[r.exif.map[n]](t,r,o)},e.ExifMap=t})?n.apply(t,o):n)||(e.exports=i)}()},"2JdJ":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.connect=function(t,r,o,i){var a;if(void 0!==e&&null!==(a={})&&void 0!==a&&a.STREAM_URL&&!t){var s=/https:\/\/(\w+):(\w+)@([\w-]*).*\?app_id=(\d+)/.exec({}.STREAM_URL)||[];t=s[1],r=s[2];var c=s[3];o=s[4],void 0===i&&(i={}),"getstream"!==c&&"stream-io-api"!==c&&(i.location=c)}return new n.StreamClient(t,r,o,i)};var n=r("ju9Q")}).call(this,r("5IsQ"))},"2KG9":function(e,t,r){"use strict";var n=r("OmE2");e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},"2PKq":function(e,t,r){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var n=r("UAPb"),o=r("xwaA"),i=(0,n.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,n.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),u=a(":"),l=a("."),f=a(),p=a(),d=a("\n"),h=a(),m=a("+"),v=a("#"),g=a(),b=a("mailto:"),y=a("?"),w=a("/"),O=a("_"),_=a(),x=a(),j=a(),k=a("{"),A=a("["),E=a("<"),S=a("("),P=a("}"),C=a("]"),T=a(">"),R=a(")"),D=a("&");t.Base=i,t.DOMAIN=s,t.AT=c,t.COLON=u,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=h,t.PLUS=m,t.POUND=v,t.QUERY=y,t.PROTOCOL=g,t.MAILTO=b,t.SLASH=w,t.UNDERSCORE=O,t.SYM=_,t.TLD=x,t.WS=j,t.OPENBRACE=k,t.OPENBRACKET=A,t.OPENANGLEBRACKET=E,t.OPENPAREN=S,t.CLOSEBRACE=P,t.CLOSEBRACKET=C,t.CLOSEANGLEBRACKET=T,t.CLOSEPAREN=R,t.AMPERSAND=D},"2Soz":function(e,t,r){var n,o,i;!function(a){"use strict";o=[r("lrIn"),r("2JYJ")],void 0===(i="function"==typeof(n=function(e){var t=e.ExifMap.prototype;t.tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",34665:{36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber"},34853:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},40965:{1:"InteroperabilityIndex"}},t.tags.ifd1=t.tags,t.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"Original",2:"Horizontal flip",3:"Rotate 180° CCW",4:"Vertical flip",5:"Vertical flip + Rotate 90° CW",6:"Rotate 90° CW",7:"Horizontal flip + Rotate 90° CW",8:"Rotate 90° CCW"}},t.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":if(!t)return;return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":if(!t)return;return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":if(!t)return;return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},t.getAll=function(){var e,t,r,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&((t=this[e])&&t.getAll?n[this.ifds[e].name]=t.getAll():(r=this.tags[e])&&(n[r]=this.getText(r)));return n},t.getName=function(e){var t=this.tags[e];return"object"==typeof t?this.ifds[e].name:t},function(){var e,r,n,o=t.tags;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e))if(r=t.ifds[e])for(e in n=o[e])Object.prototype.hasOwnProperty.call(n,e)&&(r.map[n[e]]=Number(e));else t.map[o[e]]=Number(e)}()})?n.apply(t,o):n)||(e.exports=i)}()},"2YCq":function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},"2cPb":function(e,t,r){"use strict";e.exports=function e(t){var r,n,o;if(t instanceof Array){for(r=[],n=t.length;n--;)r[n]=e(t[n]);return r}if("object"==typeof t){for(o in r=null===t?null:{},t)r[o]=e(t[o]);return r}return t}},"2g96":function(e,t,r){"use strict";e.exports=r("Lyi2")},"2wRU":function(e,t,r){var n=r("GI0s"),o=r("ckUF"),i=r("T9Ud"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},"2xEH":function(e,t){var r=Math.max;e.exports=function(e,t,n,o){for(var i=-1,a=e.length,s=n.length,c=-1,u=t.length,l=r(a-s,0),f=Array(u+l),p=!o;++c=o?e:n(e,t,r)}},"3DpS":function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r("Eo5u"),o=r("mXGw"),i=r.n(o),a=r("3KFY"),s=r("Dg5a"),c=r("ca/S"),u=r("LFXc"),l=r("aD51");"undefined"!=typeof ReactionListType&&ReactionListType&&ReactionListType===Object(ReactionListType)&&Object.isExtensible(ReactionListType)&&!ReactionListType.hasOwnProperty("__filemeta")&&Object.defineProperty(ReactionListType,"__filemeta",{configurable:!0,value:{name:"ReactionListType",filename:"src/components/ReactionList.tsx"}});var f=function(e){var t=e.activityId,r=e.Reaction,f=e.reactionKind,p=e.activityPath,d=e.oldestToNewest,h=void 0!==d&&d,m=e.Paginator,v=void 0===m?s.a:m,g=e.reverseOrder,b=void 0!==g&&g,y=Object(c.b)(),w=p||y.getActivityPath(t),O=h?"oldest":"latest",_=y.activities.getIn([].concat(Object(n.a)(w),[O+"_reactions_extra"])),x=!_||!!_.getIn([f,"next"],""),j=y.activities.getIn([].concat(Object(n.a)(w),[O+"_reactions",f]),a.a.List()),k=y.activities.getIn([].concat(Object(n.a)(w),[O+"_reactions_extra",f,"refreshing"]),!1);b&&(j=j.reverse());var A=function(){y.loadNextReactions(t,f,w,h)};return Object(o.useEffect)((function(){h&&_&&A()}),[]),Object(l.c)(i.a.Fragment,null,Object(u.a)(v,{loadNextPage:A,hasNextPage:x,refreshing:k,reverse:b,children:j.map((function(e){return Object(u.a)(r,{reaction:e.toJS(),key:e.get("id")})}))}))};void 0!==f&&f&&f===Object(f)&&Object.isExtensible(f)&&!f.hasOwnProperty("__filemeta")&&Object.defineProperty(f,"__filemeta",{configurable:!0,value:{name:"ReactionList",filename:"src/components/ReactionList.tsx"}})},"3GNe":function(e,t,r){var n=r("+dZb")("mapValues",r("qg2j"));n.placeholder=r("IOY3"),e.exports=n},"3I4I":function(e,t,r){"use strict";var n=r("h/Mk"),o=r("zrDt"),i=r("a72Q"),a=function(e,t,r,s,c,u,l,f){for(var p,d=c,h=0,m=!!l&&i(l,f,3);h0&&n(p))d=a(e,t,p,o(p.length),d,u-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=p}d++}h++}return d};e.exports=a},"3KFY":function(e,t,r){"use strict";r("x3Br"),r("SJSz"),r("RsBt");var n={};function o(e){e&&(e.value=!0)}function i(){}function a(e){return void 0===e.size&&(e.size=e.__iterate(c)),e.size}function s(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?a(e)+t:t}function c(){return!0}function u(e,t,r){return(0===e&&!d(e)||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function l(e,t){return p(e,t,0)}function f(e,t){return p(e,t,t)}function p(e,t,r){return void 0===e?r:d(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function d(e){return e<0||0===e&&1/e==-1/0}function h(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function m(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function v(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function g(e){return m(e)||v(e)}var b=function(e){return h(e)?e:F(e)},y=function(e){function t(e){return m(e)?e:q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b),w=function(e){function t(e){return v(e)?e:U(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b),O=function(e){function t(e){return h(e)&&!g(e)?e:z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b);b.Keyed=y,b.Indexed=w,b.Set=O;function _(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function x(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function j(e){return h(e)||x(e)}var k="@@__IMMUTABLE_ORDERED__@@";function A(e){return Boolean(e&&e[k])}var E="function"==typeof Symbol&&Symbol.iterator,S=E||"@@iterator",P=function(e){this.next=e};function C(e,t,r,n){var o=0===e?t:1===e?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function T(){return{value:void 0,done:!0}}function R(e){return!!I(e)}function D(e){return e&&"function"==typeof e.next}function L(e){var t=I(e);return t&&t.call(e)}function I(e){var t=e&&(E&&e[E]||e["@@iterator"]);if("function"==typeof t)return t}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[S]=function(){return this};var N=Object.prototype.hasOwnProperty;function M(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var F=function(e){function t(e){return null==e?W():j(e)?e.toSeq():function(e){var t=J(e);if(t)return t;if("object"==typeof e)return new H(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var r=this._cache;if(r){for(var n=r.length,o=0;o!==n;){var i=r[t?n-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var r=this._cache;if(r){var n=r.length,o=0;return new P((function(){if(o===n)return{value:void 0,done:!0};var i=r[t?n-++o:o++];return C(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(b),q=function(e){function t(e){return null==e?W().toKeyedSeq():h(e)?m(e)?e.toSeq():e.fromEntrySeq():x(e)?e.toSeq():Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(F),U=function(e){function t(e){return null==e?W():h(e)?m(e)?e.entrySeq():e.toIndexedSeq():x(e)?e.toSeq().entrySeq():X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(F),z=function(e){function t(e){return(h(e)&&!g(e)?e:U(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(F);F.isSeq=_,F.Keyed=q,F.Set=z,F.Indexed=U,F.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var B=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length,o=0;o!==n;){var i=t?n-++o:o++;if(!1===e(r[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var r=this._array,n=r.length,o=0;return new P((function(){if(o===n)return{value:void 0,done:!0};var i=t?n-++o:o++;return C(e,i,r[i])}))},t}(U),H=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return N.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,o=n.length,i=0;i!==o;){var a=n[t?o-++i:i++];if(!1===e(r[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,o=n.length,i=0;return new P((function(){if(i===o)return{value:void 0,done:!0};var a=n[t?o-++i:i++];return C(e,a,r[a])}))},t}(q);H.prototype[k]=!0;var V,G=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=L(this._collection),n=0;if(D(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,n++,this););return n},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=L(this._collection);if(!D(r))return new P(T);var n=0;return new P((function(){var t=r.next();return t.done?t:C(e,n++,t.value)}))},t}(U);function W(){return V||(V=new B([]))}function Y(e){var t=Array.isArray(e)?new B(e):R(e)?new G(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new H(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function X(e){var t=J(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function J(e){return M(e)?new B(e):R(e)?new G(e):void 0}function K(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function Z(e){return K(e)&&A(e)}function Q(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function $(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(Q(e)&&Q(t)&&e.equals(t))}var ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function te(e){return e>>>1&1073741824|3221225471&e}var re=Object.prototype.valueOf;function ne(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return te(t)}(e);case"string":return e.length>fe?function(e){var t=he[e];void 0===t&&(t=oe(e),de===pe&&(de=0,he={}),de++,he[e]=t);return t}(e):oe(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?te(e.hashCode(e)):(e.valueOf!==re&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(ce&&void 0!==(t=se.get(e)))return t;if(void 0!==(t=e[le]))return t;if(!ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[le]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++ue,1073741824&ue&&(ue=0);if(ce)se.set(e,t);else{if(void 0!==ie&&!1===ie(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ae)Object.defineProperty(e,le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[le]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function oe(e){for(var t=0,r=0;r=0&&(d.get=function(t,r){return(t=s(this,t))>=0&&tc)return{value:void 0,done:!0};var e=o.next();return n||1===t||e.done?e:C(t,s-1,0===t?void 0:e.value[1],e)}))},d}function je(e,t,r,n){var o=Le(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(r,e,i,u)))return c++,o(e,n?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new P((function(){var e,i,l;do{if((e=s.next()).done)return n||1===o?e:C(o,u++,0===o?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(r,l,i,a))}while(c);return 2===o?e:C(o,i,l,e)}))},o}function ke(e,t){var r=m(e),n=[e].concat(t).map((function(e){return h(e)?r&&(e=y(e)):e=r?Y(e):X(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===n.length)return e;if(1===n.length){var o=n[0];if(o===e||r&&m(o)||v(e)&&v(o))return o}var i=new B(n);return r?i=i.toKeyedSeq():v(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=n.reduce((function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}}),0),i}function Ae(e,t,r){var n=Le(e);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(c,u){c.__iterate((function(i,c){return(!t||u0}function Ce(e,t,r,n){var o=Le(e),i=new B(r).map((function(e){return e.size}));return o.size=n?i.max():i.min(),o.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),o=0;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=b(e),L(o?e.reverse():e)})),a=0,s=!1;return new P((function(){var r;return s||(r=i.map((function(e){return e.next()})),s=n?r.every((function(e){return e.done})):r.some((function(e){return e.done}))),s?{value:void 0,done:!0}:C(e,a++,t.apply(null,r.map((function(e){return e.value}))))}))},o}function Te(e,t){return e===t?e:_(e)?t:e.constructor(t)}function Re(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function De(e){return m(e)?y:v(e)?w:O}function Le(e){return Object.create((m(e)?q:v(e)?U:z).prototype)}function Ie(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function Ne(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[r]=arguments[r+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return it(this,t,e)}function it(e,t,r){for(var o=[],i=0;i0;)t[r]=arguments[r+1];return at(this,t,e)}function lt(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Je(this,e,St(),(function(e){return st(e,t)}))}function ft(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Je(this,e,St(),(function(e){return at(e,t)}))}function pt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function dt(){return this.__ownerID?this:this.__ensureOwner(new i)}function ht(){return this.__ensureOwner()}function mt(){return this.__altered}ve.prototype.cacheResult=me.prototype.cacheResult=ge.prototype.cacheResult=be.prototype.cacheResult=Ie;var vt=function(e){function t(t){return null==t?St():K(t)&&!A(t)?t:St().withMutations((function(r){var n=e(t);qe(n.size),n.forEach((function(e,t){return r.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return St().withMutations((function(t){for(var r=0;r=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Pt(this,e,t)},t.prototype.remove=function(e){return Pt(this,e,n)},t.prototype.deleteAll=function(e){var t=b(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):St()},t.prototype.sort=function(e){return $t(Ee(this,e))},t.prototype.sortBy=function(e,t){return $t(Ee(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(r){r.forEach((function(n,o){r.set(o,e.call(t,n,o,r))}))}))},t.prototype.__iterator=function(e,t){return new jt(this,e,t)},t.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate((function(t){return n++,e(t[1],t[0],r)}),t),n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Et(this.size,this._root,e,this.__hash):0===this.size?St():(this.__ownerID=e,this.__altered=!1,this)},t}(y);vt.isMap=K;var gt=vt.prototype;gt["@@__IMMUTABLE_MAP__@@"]=!0,gt.delete=gt.remove,gt.removeAll=gt.deleteAll,gt.setIn=Ze,gt.removeIn=gt.deleteIn=$e,gt.update=tt,gt.updateIn=rt,gt.merge=gt.concat=nt,gt.mergeWith=ot,gt.mergeDeep=ct,gt.mergeDeepWith=ut,gt.mergeIn=lt,gt.mergeDeepIn=ft,gt.withMutations=pt,gt.wasAltered=mt,gt.asImmutable=ht,gt["@@transducer/init"]=gt.asMutable=dt,gt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},gt["@@transducer/result"]=function(e){return e.asImmutable()};var bt=function(e,t){this.ownerID=e,this.entries=t};bt.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i=It)return function(e,t,r,n){e||(e=new i);for(var o=new _t(e,ne(r),[r,n]),a=0;a>>e)),i=this.bitmap;return 0==(i&o)?n:this.nodes[Dt(i&o-1)].get(e+5,t,r,n)},yt.prototype.update=function(e,t,r,o,i,a,s){void 0===r&&(r=ne(o));var c=31&(0===t?r:r>>>t),u=1<=Nt)return function(e,t,r,n,o){for(var i=0,a=new Array(32),s=0;0!==r;s++,r>>>=1)a[s]=1&r?t[i++]:void 0;return a[n]=o,new wt(e,i+1,a)}(e,d,l,c,m);if(f&&!m&&2===d.length&&Tt(d[1^p]))return d[1^p];if(f&&m&&1===d.length&&Tt(m))return m;var v=e&&e===this.ownerID,g=f?m?l:l^u:l|u,b=f?m?Lt(d,p,m,v):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var o=new Array(n),i=0,a=0;a>>e),i=this.nodes[o];return i?i.get(e+5,t,r,n):n},wt.prototype.update=function(e,t,r,o,i,a,s){void 0===r&&(r=ne(o));var c=31&(0===t?r:r>>>t),u=i===n,l=this.nodes,f=l[c];if(u&&!f)return this;var p=Ct(f,e,t+5,r,o,i,a,s);if(p===f)return this;var d=this.count;if(f){if(!p&&--d>>r),s=31&(0===r?n:n>>>r),c=a===s?[Rt(e,t,r+5,n,o)]:(i=new _t(t,n,o),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Lt(e,t,r,n){var o=n?e:Me(e);return o[t]=r,o}var It=8,Nt=16,Mt=8;function Ft(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var qt=function(e){function t(t){var r=Wt();if(null==t)return r;if(Ft(t))return t;var n=e(t),o=n.size;return 0===o?r:(qe(o),o>0&&o<32?Gt(0,o,5,null,new zt(n.toArray())):r.withMutations((function(e){e.setSize(o),n.forEach((function(t,r){return e.set(r,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?Kt(e,t).set(0,r):Kt(e,0,t+1).set(t,r)}));t+=e._origin;var n=e._tail,o=e._root,i={value:!1};t>=Zt(e._capacity)?n=Yt(n,e.__ownerID,0,t,r,i):o=Yt(o,e.__ownerID,e._level,t,r,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e;return Gt(e._origin,e._capacity,e._level,o,n)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Wt()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(r){Kt(r,0,t+e.length);for(var n=0;n>>t&31;if(n>=this.array.length)return new zt([],e);var o,i=0===n;if(t>0){var a=this.array[n];if((o=a&&a.removeBefore(e,t-5,r))===a&&i)return this}if(i&&!o)return this;var s=Xt(this,e);if(!i)for(var c=0;c>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((n=i&&i.removeAfter(e,t-5,r))===i&&o===this.array.length-1)return this}var a=Xt(this,e);return a.array.splice(o+1),n&&(a.array[o]=n),a};var Bt,Ht={};function Vt(e,t){var r=e._origin,n=e._capacity,o=Zt(n),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>r?0:r-a,u=n-a;u>32&&(u=32);return function(){if(c===u)return Ht;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>r?0:r-i>>o,l=1+(n-i>>o);l>32&&(l=32);return function(){for(;;){if(s){var e=s();if(e!==Ht)return e;s=null}if(u===l)return Ht;var r=t?--l:u++;s=a(c&&c[r],o-5,i+(r<>>r&31,u=e&&c0){var l=e&&e.array[c],f=Yt(l,t,r-5,n,i,a);return f===l?e:((s=Xt(e,t)).array[c]=f,s)}return u&&e.array[c]===i?e:(a&&o(a),s=Xt(e,t),void 0===i&&c===s.array.length-1?s.array.pop():s.array[c]=i,s)}function Xt(e,t){return t&&e&&t===e.ownerID?e:new zt(e?e.array.slice():[],t)}function Jt(e,t){if(t>=Zt(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&31],n-=5;return r}}function Kt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new i,o=e._origin,a=e._capacity,s=o+t,c=void 0===r?a:r<0?a+r:o+r;if(s===o&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,l=e._root,f=0;s+f<0;)l=new zt(l&&l.array.length?[void 0,l]:[],n),f+=1<<(u+=5);f&&(s+=f,o+=f,c+=f,a+=f);for(var p=Zt(a),d=Zt(c);d>=1<p?new zt([],n):h;if(h&&d>p&&s5;g-=5){var b=p>>>g&31;v=v.array[b]=Xt(v.array[b],n)}v.array[p>>>5&31]=h}if(c=d)s-=d,c-=d,u=5,l=null,m=m&&m.removeBefore(n,0,s);else if(s>o||d>>u&31;if(y!==d>>>u&31)break;y&&(f+=(1<o&&(l=l.removeBefore(n,u,s-f)),l&&d>>5<<5}var Qt,$t=function(e){function t(e){return null==e?tr():Z(e)?e:tr().withMutations((function(t){var r=y(e);qe(r.size),r.forEach((function(e,r){return t.set(r,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tr()},t.prototype.set=function(e,t){return rr(this,e,t)},t.prototype.remove=function(e){return rr(this,e,n)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],r)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?er(t,r,e,this.__hash):0===this.size?tr():(this.__ownerID=e,this._map=t,this._list=r,this)},t}(vt);function er(e,t,r,n){var o=Object.create($t.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=r,o.__hash=n,o}function tr(){return Qt||(Qt=er(St(),Wt()))}function rr(e,t,r){var o,i,a=e._map,s=e._list,c=a.get(t),u=void 0!==c;if(r===n){if(!u)return e;s.size>=32&&s.size>=2*a.size?(o=(i=s.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=i.__ownerID=e.__ownerID)):(o=a.remove(t),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(r===s.get(c)[1])return e;o=a,i=s.set(c,[t,r])}else o=a.set(t,s.size),i=s.set(s.size,[t,r]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=i,e.__hash=void 0,e):er(o,i)}$t.isOrderedMap=Z,$t.prototype[k]=!0,$t.prototype.delete=$t.prototype.remove;function nr(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var or=function(e){function t(e){return null==e?cr():nr(e)?e:cr().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var r=this._head;for(e=s(this,e);r&&e--;)r=r.next;return r?r.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:e[n],next:r};return this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):sr(t,r)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&nr(t))return t;qe(t.size);var r=this.size,n=this._head;return t.__iterate((function(e){r++,n={value:e,next:n}}),!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):sr(r,n)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):cr()},t.prototype.slice=function(t,r){if(u(t,r,this.size))return this;var n=l(t,this.size);if(f(r,this.size)!==this.size)return e.prototype.slice.call(this,t,r);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):sr(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?sr(this.size,this._head,e,this.__hash):0===this.size?cr():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var r=this;if(t)return new B(this.toArray()).__iterate((function(t,n){return e(t,n,r)}),t);for(var n=0,o=this._head;o&&!1!==e(o.value,n++,this);)o=o.next;return n},t.prototype.__iterator=function(e,t){if(t)return new B(this.toArray()).__iterator(e,t);var r=0,n=this._head;return new P((function(){if(n){var t=n.value;return n=n.next,C(e,r++,t)}return{value:void 0,done:!0}}))},t}(w);or.isStack=nr;var ir,ar=or.prototype;function sr(e,t,r,n){var o=Object.create(ar);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function cr(){return ir||(ir=sr(0))}ar["@@__IMMUTABLE_STACK__@@"]=!0,ar.shift=ar.pop,ar.unshift=ar.push,ar.unshiftAll=ar.pushAll,ar.withMutations=pt,ar.wasAltered=mt,ar.asImmutable=ht,ar["@@transducer/init"]=ar.asMutable=dt,ar["@@transducer/step"]=function(e,t){return e.unshift(t)},ar["@@transducer/result"]=function(e){return e.asImmutable()};function ur(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function lr(e){return ur(e)&&A(e)}function fr(e,t){if(e===t)return!0;if(!h(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||m(e)!==m(t)||v(e)!==v(t)||A(e)!==A(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!g(e);if(A(e)){var o=e.entries();return t.every((function(e,t){var n=o.next().value;return n&&$(n[1],e)&&(r||$(n[0],t))}))&&o.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var s=!0,c=t.__iterate((function(t,o){if(r?!e.has(t):i?!$(t,e.get(o,n)):!$(e.get(o,n),t))return s=!1,!1}));return s&&e.size===c}function pr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function dr(e){if(!e||"object"!=typeof e)return e;if(!h(e)){if(!Be(e))return e;e=F(e)}if(m(e)){var t={};return e.__iterate((function(e,r){t[r]=dr(e)})),t}var r=[];return e.__iterate((function(e){r.push(dr(e))})),r}var hr=function(e){function t(t){return null==t?yr():ur(t)&&!A(t)?t:yr().withMutations((function(r){var n=e(t);qe(n.size),n.forEach((function(e){return r.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(y(e).keySeq())},t.intersect=function(e){return(e=b(e).toArray()).length?vr.intersect.apply(t(e.pop()),e):yr()},t.union=function(e){return(e=b(e).toArray()).length?vr.union.apply(t(e.pop()),e):yr()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return gr(this,this._map.set(e,e))},t.prototype.remove=function(e){return gr(this,this._map.remove(e))},t.prototype.clear=function(){return gr(this,this._map.clear())},t.prototype.map=function(e,t){var r=this,n=[],o=[];return this.forEach((function(i){var a=e.call(t,i,i,r);a!==i&&(n.push(i),o.push(a))})),this.withMutations((function(e){n.forEach((function(t){return e.remove(t)})),o.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(r){for(var n=0;n=0&&t=0&&r>>-15,461845907),t=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Nr(ne(e),ne(t))|0}:function(e,t){n=n+Nr(ne(e),ne(t))|0}:t?function(e){n=31*n+ne(e)|0}:function(e){n=n+ne(e)|0}),n)}(this))}});var Ar=b.prototype;Ar["@@__IMMUTABLE_ITERABLE__@@"]=!0,Ar[S]=Ar.values,Ar.toJSON=Ar.toArray,Ar.__toStringMapper=He,Ar.inspect=Ar.toSource=function(){return this.toString()},Ar.chain=Ar.flatMap,Ar.contains=Ar.includes,pr(y,{flip:function(){return Te(this,ye(this))},mapEntries:function(e,t){var r=this,n=0;return Te(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],n++,r)})).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Te(this,this.toSeq().flip().map((function(n,o){return e.call(t,n,o,r)})).flip())}});var Er=y.prototype;Er["@@__IMMUTABLE_KEYED__@@"]=!0,Er[S]=Ar.entries,Er.toJSON=kr,Er.__toStringMapper=function(e,t){return He(t)+": "+He(e)},pr(w,{toKeyedSeq:function(){return new me(this,!1)},filter:function(e,t){return Te(this,_e(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Te(this,Oe(this,!1))},slice:function(e,t){return Te(this,xe(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(t||0,0),0===r||2===r&&!t)return this;e=l(e,e<0?this.count():this.size);var n=this.slice(0,e);return Te(this,1===r?n:n.concat(Me(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Te(this,Ae(this,e,!1))},get:function(e,t){return(e=s(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,r){return r===e}),void 0,t)},has:function(e){return(e=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function Nr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Sr["@@__IMMUTABLE_INDEXED__@@"]=!0,Sr[k]=!0,pr(O,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),O.prototype.has=Ar.includes,O.prototype.contains=O.prototype.includes,pr(q,y.prototype),pr(U,w.prototype),pr(z,O.prototype);var Mr=function(e){function t(e){return null==e?zr():lr(e)?e:zr().withMutations((function(t){var r=O(e);qe(r.size),r.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(y(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(hr);Mr.isOrderedSet=lr;var Fr,qr=Mr.prototype;function Ur(e,t){var r=Object.create(qr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function zr(){return Fr||(Fr=Ur(tr()))}qr[k]=!0,qr.zip=Sr.zip,qr.zipWith=Sr.zipWith,qr.__empty=zr,qr.__make=Ur;var Br=function(e,t){var r,n=function(i){var a=this;if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var s=Object.keys(e),c=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u2?[]:void 0,{"":e})},hash:ne,isImmutable:j,isCollection:h,isKeyed:m,isIndexed:v,isAssociative:g,isOrdered:A,isValueObject:Q,isSeq:_,isList:Ft,isMap:K,isOrderedMap:Z,isStack:nr,isSet:ur,isOrderedSet:lr,isRecord:x,get:Ge,getIn:_r,has:Ve,hasIn:jr,merge:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return st(e,t)},mergeDeep:function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return at(e,t)},mergeWith:function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return st(t,r,e)},mergeDeepWith:function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return at(t,r,e)},remove:Ye,removeIn:Qe,set:Xe,setIn:Ke,update:et,updateIn:Je};t.a=Kr},"3gDE":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,i.default)(e);if(!r.length)return void t.preventDefault();var n=void 0,o=t.shiftKey,a=r[0],s=r[r.length-1];if(e===document.activeElement){if(!o)return;n=s}s!==document.activeElement||o||(n=a);a===document.activeElement&&o&&(n=s);if(n)return t.preventDefault(),void n.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=r.indexOf(document.activeElement);u>-1&&(u+=o?-1:1);if(void 0===(n=r[u]))return t.preventDefault(),void(n=o?s:a).focus();t.preventDefault(),n.focus()};var n,o=r("XrU5"),i=(n=o)&&n.__esModule?n:{default:n};e.exports=t.default},"3hyD":function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("Sgbw")),i=n(r("AcCc")),a=n(r("Mj04")),s=n(r("D1KR")),c=n(r("ti3h")),u=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e))).state={opened:!1},r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(e){var t=parseInt(e.currentTarget.getAttribute("data-skin")),r=this.props.onChange;this.state.opened?(this.setState({opened:!1}),t!=this.props.skin&&r(t)):this.setState({opened:!0})}},{key:"render",value:function(){return null}}]),t}(n(r("mXGw")).default.PureComponent);t.default=u,u.defaultProps={onChange:function(){}}},"3kU/":function(e,t,r){var n=r("2wRU"),o=r("TsNJ"),i=r("DhoL"),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},"3pC9":function(e,t,r){var n=r("gIo2"),o=r("nrda"),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4:function(e,t){},"41Zj":function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},"42WU":function(e,t,r){var n=r("296D");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},"49Kr":function(e,t,r){"use strict";(function(t){r("W7E7");var n=r("zHBu"),o=r("VlGz"),i=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,a=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(e){return(e||"").toString().replace(s,"")}var u=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function f(e){var r,n=("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||n);if("blob:"===e.protocol)o=new d(unescape(e.pathname),{});else if("string"===a)for(r in o=new d(e,{}),l)delete o[r];else if("object"===a){for(r in e)r in l||(o[r]=e[r]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function p(e){e=c(e);var t=a.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&t[2].length>=2),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function d(e,t,r){if(e=c(e),!(this instanceof d))return new d(e,t,r);var i,a,s,l,h,m,v=u.slice(),g=typeof t,b=this,y=0;for("object"!==g&&"string"!==g&&(r=t,t=null),r&&"function"!=typeof r&&(r=o.parse),t=f(t),i=!(a=p(e||"")).protocol&&!a.slashes,b.slashes=a.slashes||i&&t.slashes,b.protocol=a.protocol||t.protocol||"",e=a.rest,a.slashes||(v[3]=[/(.*)/,"pathname"]);y1&&n<9}function s(e,t){return e!==t&&(1===e&&t>1&&t<9||e>1&&e<9)}function c(e,t){if(t>1&&t<9)switch(e){case 2:case 4:return t>4;case 5:case 7:return t%2==0;case 6:case 8:return 2===t||4===t||5===t||7===t}return!1}(function(e){if(e.global.document){var t=document.createElement("img");t.onload=function(){if(e.orientation=2===t.width&&3===t.height,e.orientation){var r=e.createCanvas(1,1,!0).getContext("2d");r.drawImage(t,1,1,1,1,0,0,1,1),e.orientationCropBug="255,255,255,255"!==r.getImageData(0,0,1,1).data.toString()}},t.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k="}})(e),e.requiresCanvas=function(t){return a(t)||r.call(e,t)},e.requiresMetaData=function(t){return a(t,!0)||n.call(e,t)},e.transform=function(r,n,o,i,a){t.call(e,r,n,(function(t,r){if(r){var n=e.orientation&&r.exif&&r.exif.get("Orientation");if(n>4&&n<9){var i=r.originalWidth,a=r.originalHeight;r.originalWidth=a,r.originalHeight=i}}o(t,r)}),i,a)},e.getTransformedOptions=function(t,r,n){var o=i.call(e,t,r),a=n.exif&&n.exif.get("Orientation"),u=o.orientation,l=e.orientation&&a;if(!0===u&&(u=a),!s(u,l))return o;var f=o.top,p=o.right,d=o.bottom,h=o.left,m={};for(var v in o)Object.prototype.hasOwnProperty.call(o,v)&&(m[v]=o[v]);if(m.orientation=u,(u>4&&!(l>4)||u<5&&l>4)&&(m.maxWidth=o.maxHeight,m.maxHeight=o.maxWidth,m.minWidth=o.minHeight,m.minHeight=o.minWidth,m.sourceWidth=o.sourceHeight,m.sourceHeight=o.sourceWidth),l>1){switch(l){case 2:p=o.left,h=o.right;break;case 3:f=o.bottom,p=o.left,d=o.top,h=o.right;break;case 4:f=o.bottom,d=o.top;break;case 5:f=o.left,p=o.bottom,d=o.right,h=o.top;break;case 6:f=o.left,p=o.top,d=o.right,h=o.bottom;break;case 7:f=o.right,p=o.top,d=o.left,h=o.bottom;break;case 8:f=o.right,p=o.bottom,d=o.left,h=o.top}if(c(u,l)){var g=f,b=p;f=d,p=h,d=g,h=b}}switch(m.top=f,m.right=p,m.bottom=d,m.left=h,u){case 2:m.right=h,m.left=p;break;case 3:m.top=d,m.right=h,m.bottom=f,m.left=p;break;case 4:m.top=d,m.bottom=f;break;case 5:m.top=h,m.right=d,m.bottom=p,m.left=f;break;case 6:m.top=p,m.right=d,m.bottom=h,m.left=f;break;case 7:m.top=p,m.right=f,m.bottom=h,m.left=d;break;case 8:m.top=h,m.right=f,m.bottom=p,m.left=d}return m},e.transformCoordinates=function(t,r,n){o.call(e,t,r,n);var i=r.orientation,a=e.orientation&&n.exif&&n.exif.get("Orientation");if(s(i,a)){var u=t.getContext("2d"),l=t.width,f=t.height,p=l,d=f;switch((i>4&&!(a>4)||i<5&&a>4)&&(t.width=f,t.height=l),i>4&&(p=f,d=l),a){case 2:u.translate(p,0),u.scale(-1,1);break;case 3:u.translate(p,d),u.rotate(Math.PI);break;case 4:u.translate(0,d),u.scale(1,-1);break;case 5:u.rotate(-.5*Math.PI),u.scale(-1,1);break;case 6:u.rotate(-.5*Math.PI),u.translate(-p,0);break;case 7:u.rotate(-.5*Math.PI),u.translate(-p,d),u.scale(1,-1);break;case 8:u.rotate(.5*Math.PI),u.translate(0,-d)}switch(c(i,a)&&(u.translate(p,d),u.rotate(Math.PI)),i){case 2:u.translate(l,0),u.scale(-1,1);break;case 3:u.translate(l,f),u.rotate(Math.PI);break;case 4:u.translate(0,f),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-f);break;case 7:u.rotate(.5*Math.PI),u.translate(l,-f),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-l,0)}}}})?n.apply(t,o):n)||(e.exports=i)}()},"4Wxh":function(e,t,r){"use strict";(function(t){var n=r("NFrV"),o=r("hJL7"),i=r("abqF"),a=r("BZif"),s=r("o2qG"),c=a(n(r("69GW"),{encode:function(e){return"message="+encodeURIComponent(s(e))},request:function(e){var r,n=t.XDomainRequest?XDomainRequest:XMLHttpRequest,o=new n,i=++c._id,a=this._dispatcher.headers,s=this;if(o.open("POST",this.endpoint.href,!0),o.withCredentials=!0,o.setRequestHeader)for(r in o.setRequestHeader("Pragma","no-cache"),a)a.hasOwnProperty(r)&&o.setRequestHeader(r,a[r]);var u=function(){if(!o)return!1;c._pending.remove(i),o.onload=o.onerror=o.ontimeout=o.onprogress=null,o=null};return o.onload=function(){var t;try{t=JSON.parse(o.responseText)}catch(r){}u(),t?s._receive(t):s._handleError(e)},o.onerror=o.ontimeout=function(){u(),s._handleError(e)},o.onprogress=function(){},n===t.XDomainRequest&&c._pending.add({id:i,xhr:o}),o.send(this.encode(e)),o}}),{_id:0,_pending:new o,isUsable:function(e,r,n,o){if(i.isSameOrigin(r))return n.call(o,!1);if(t.XDomainRequest)return n.call(o,r.protocol===location.protocol);if(t.XMLHttpRequest){var a=new XMLHttpRequest;return n.call(o,void 0!==a.withCredentials)}return n.call(o,!1)}});e.exports=c}).call(this,r("pCvA"))},"4a20":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"4e1R":function(e,t,r){var n=r("GI0s"),o=r("PqlX"),i=r("T9Ud");e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},"4mhO":function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"4qfS":function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1)for(var r=1;r=t||r<0||v&&e-h>=l}function O(){var e=o();if(w(e))return _(e);p=setTimeout(O,function(e){var r=t-(e-d);return v?s(r,l-(e-h)):r}(e))}function _(e){return p=void 0,g&&c?b(e):(c=u=void 0,f)}function x(){var e=o(),r=w(e);if(c=arguments,u=this,d=e,r){if(void 0===p)return y(d);if(v)return clearTimeout(p),p=setTimeout(O,t),b(d)}return void 0===p&&(p=setTimeout(O,t)),f}return t=i(t)||0,n(r)&&(m=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,t):l,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=d=u=p=void 0},x.flush=function(){return void 0===p?f:_(o())},x}},"5e2E":function(e,t,r){var n=r("296D"),o=r("I4Y3");function i(t,r,a){return o()?(e.exports=i=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.default=e.exports,e.exports.__esModule=!0),i.apply(null,arguments)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},"5u71":function(e,t,r){var n=r("0711");e.exports=function(e){return n(e,4)}},"5xfP":function(e,t,r){var n;!function(o){var i=/^\s+/,a=/\s+$/,s=0,c=o.round,u=o.min,l=o.max,f=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,r=!1;if(C[e])e=C[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:q(t[4]),format:r?"name":"hex8"};if(t=H.hex6.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:r?"name":"hex"};if(t=H.hex4.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:q(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=H.hex3.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(d=e.r,h=e.g,m=e.b,t={r:255*D(d,255),g:255*D(h,255),b:255*D(m,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(n=M(e.s),s=M(e.v),t=function(e,t,r){e=6*D(e,360),t=D(t,100),r=D(r,100);var n=o.floor(e),i=e-n,a=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,a,a,c,r][u],g:255*[c,r,r,s,a,a][u],b:255*[a,a,c,r,r,s][u]}}(e.h,n,s),f=!0,p="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(n=M(e.s),c=M(e.l),t=function(e,t,r){var n,o,i;function a(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=D(e,360),t=D(t,100),r=D(r,100),0===t)n=o=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*i}}(e.h,n,c),f=!0,p="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,h,m;return r=R(r),{ok:f,format:e.format||p,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function d(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n,o,i=l(e,t,r),a=u(e,t,r),s=(i+a)/2;if(i==a)n=o=0;else{var c=i-a;switch(o=s>.5?c/(2-i-a):c/(i+a),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(p(n));return i}function P(e,t){t=t||6;for(var r=p(e).toHsv(),n=r.h,o=r.s,i=r.v,a=[],s=1/t;t--;)a.push(p({h:n,s:o,v:i})),i=(i+s)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var i=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(r).toString(16)),N(F(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*D(this._r,255))+"%",g:c(100*D(this._g,255))+"%",b:c(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%)":"rgba("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);r="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:M(e[n]));e=r}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,r){r=0===r?0:r||50;var n=p(e).toRgb(),o=p(t).toRgb(),i=r/100;return p({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},p.readability=function(e,t){var r=p(e),n=p(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},p.isReadable=function(e,t,r){var n,o,i=p.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,r){var n,o,i,a,s=null,c=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var u=0;uc&&(c=n,s=p(t[u]));return p.isReadable(e,s,{level:i,size:a})||!o?s:(r.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],r))};var C=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=p.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(C);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function I(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function q(e){return I(e)/255}var U,z,B,H=(z="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",B="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(n=function(){return p}.call(t,r,t,e))||(e.exports=n)}(Math)},"5yr3":function(e,t,r){"use strict";var n=function(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).slice().map((function(e){e(r)})),(e["*"]||[]).slice().map((function(e){e(t,r)}))}}}();t.a=n},"6+Ft":function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r("k0FJ"),o=r("mXGw"),i=r.n(o),a=r("swbX"),s=r("+mwj"),c=r("WjHG"),u=r("Dg5a"),l=r("QBKC"),f=r("LFXc"),p=r("ca/S"),d=r("/asK"),h=r("aD51");"undefined"!=typeof FlatFeedProps&&FlatFeedProps&&FlatFeedProps===Object(FlatFeedProps)&&Object.isExtensible(FlatFeedProps)&&!FlatFeedProps.hasOwnProperty("__filemeta")&&Object.defineProperty(FlatFeedProps,"__filemeta",{configurable:!0,value:{name:"FlatFeedProps",filename:"src/components/FlatFeed.tsx"}});var m=function(e){return Object(h.c)(c.a,Object(n.a)({labelPlural:"activities",labelSingle:"activity"},e))},v=function(e){var t=e.Activity,r=e.Notifier,n=e.Placeholder,a=e.Paginator,s=e.LoadingIndicator,c=e.options,u=Object(p.b)(),l=Object(d.b)().t,m=function(){return u.refresh(c)};return Object(o.useEffect)((function(){m()}),[u.feedGroup]),u.refreshing&&!u.hasDoneRequest?Object(h.c)("div",{className:"raf-loading-indicator"},Object(f.a)(s)):Object(h.c)(i.a.Fragment,null,Object(f.a)(r,{adds:u.realtimeAdds,deletes:u.realtimeDeletes,onClick:u.hasReverseNextPage?u.loadReverseNextPage:m,labelFunction:u.hasReverseNextPage?function(){return l("Load activities")}:void 0}),0===u.activities.size&&u.hasDoneRequest?Object(f.a)(n):Object(f.a)(a,{loadNextPage:u.loadNextPage,hasNextPage:u.hasNextPage,refreshing:u.refreshing,children:u.activityOrder.map((function(e){var r;return Object(f.a)(t,{activity:null===(r=u.activities.get(e))||void 0===r?void 0:r.toJS(),feedGroup:u.feedGroup,userId:u.userId,key:e})}))}))},g=function(e){var t=e.userId,r=e.options,n=e.analyticsLocation,o=e.doFeedRequest,i=e.doActivityDeleteRequest,c=e.doChildReactionAddRequest,f=e.doChildReactionDeleteRequest,d=e.doReactionAddRequest,g=e.doReactionDeleteRequest,b=e.doReactionsFilterRequest,y=e.feedGroup,w=void 0===y?"timeline":y,O=e.notify,_=void 0!==O&&O,x=e.Activity,j=void 0===x?s.a:x,k=e.Notifier,A=void 0===k?m:k,E=e.Placeholder,S=void 0===E?l.a:E,P=e.Paginator,C=void 0===P?u.a:P,T=e.LoadingIndicator,R=void 0===T?a.h:T;return Object(h.c)(p.a,{feedGroup:w,userId:t,options:r,notify:_,analyticsLocation:n,doFeedRequest:o,doActivityDeleteRequest:i,doReactionAddRequest:d,doReactionDeleteRequest:g,doChildReactionAddRequest:c,doChildReactionDeleteRequest:f,doReactionsFilterRequest:b},Object(h.c)(v,{Activity:j,Notifier:A,Placeholder:S,Paginator:C,LoadingIndicator:R,options:r}))};void 0!==g&&g&&g===Object(g)&&Object.isExtensible(g)&&!g.hasOwnProperty("__filemeta")&&Object.defineProperty(g,"__filemeta",{configurable:!0,value:{name:"FlatFeed",filename:"src/components/FlatFeed.tsx"}})},6758:function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},"68/1":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("mXGw"),o=r("/asK"),i=r("aD51");"undefined"!=typeof ReactionIconProps&&ReactionIconProps&&ReactionIconProps===Object(ReactionIconProps)&&Object.isExtensible(ReactionIconProps)&&!ReactionIconProps.hasOwnProperty("__filemeta")&&Object.defineProperty(ReactionIconProps,"__filemeta",{configurable:!0,value:{name:"ReactionIconProps",filename:"src/components/ReactionIcon.tsx"}});var a=function(e){var t,r=e.counts,a=e.kind,s=e.icon,c=e.labelPlural,u=e.labelSingle,l=e.onPress,f=Object(o.b)().t,p=null!==(t=null==r?void 0:r[null!=a?a:""])&&void 0!==t?t:0,d=Object(n.useMemo)((function(){var e=p>1||p<1;if(u&&c)return p+" "+(e?c:u);if("comment"===a||"repost"===a||"like"===a)switch(a){case"comment":return e?f("{{ countComments }} comments",{countComments:p}):f("1 comment");case"like":return e?f("{{ countLikes }} likes",{countLikes:p}):f("1 like");case"repost":return e?f("{{ countReposts }} reposts",{countReposts:p}):f("1 repost");default:return}}),[p,u,c,a]);return Object(i.c)("div",{className:"raf-reaction-icon",role:"button",onClick:l},s&&("string"==typeof s?Object(i.c)("img",{className:"raf-reaction-icon__image",src:s,alt:""}):s),Object(i.c)("p",{className:"raf-reaction-icon__label"},d))};void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"ReactionIcon",filename:"src/components/ReactionIcon.tsx"}})},"69GW":function(e,t,r){"use strict";(function(t){var n=r("NFrV"),o=r("/95U").Cookie,i=r("UCma"),a=r("DZJZ"),s=r("BZif"),c=r("j1kx"),u=r("+2yT"),l=r("dC2m"),f=s(n({className:"Transport",DEFAULT_PORTS:{"http:":80,"https:":443,"ws:":80,"wss:":443},MAX_DELAY:0,batching:!0,initialize:function(e,t){this._dispatcher=e,this.endpoint=t,this._outbox=[],this._proxy=s({},this._dispatcher.proxy),this._proxy.origin||(this._proxy.origin=this._findProxy())},close:function(){},encode:function(e){return""},sendMessage:function(e){return this.debug("Client ? sending message to ?: ?",this._dispatcher.clientId,this.endpoint.href,e),this.batching?(this._outbox.push(e),this._flushLargeBatch(),e.channel===l.HANDSHAKE?this._publish(.01):(e.channel===l.CONNECT&&(this._connectMessage=e),this._publish(this.MAX_DELAY))):i.resolve(this.request([e]))},_makePromise:function(){var e=this;this._requestPromise=this._requestPromise||new i((function(t){e._resolvePromise=t}))},_publish:function(e){return this._makePromise(),this.addTimeout("publish",e,(function(){this._flush(),delete this._requestPromise}),this),this._requestPromise},_flush:function(){this.removeTimeout("publish"),this._outbox.length>1&&this._connectMessage&&(this._connectMessage.advice={timeout:0}),this._resolvePromise(this.request(this._outbox)),this._connectMessage=null,this._outbox=[]},_flushLargeBatch:function(){if(!(this.encode(this._outbox).length1&&(n=a[o]),n=n||a["CGI_"+i]):(n=a[o]||a[i])&&!a[o]&&console.warn("The environment variable "+i+" is discouraged. Use "+o+"."),n}}}}),{get:function(e,t,r,n,o){var i=e.endpoint;a.asyncEach(this._transports,(function(i,s){var c=i[0],u=i[1],l=e.endpointFor(c);return a.indexOf(r,c)>=0?s():a.indexOf(t,c)<0?(u.isUsable(e,l,(function(){})),s()):void u.isUsable(e,l,(function(t){if(!t)return s();var r=u.hasOwnProperty("create")?u.create(e,l):new u(e,l);n.call(o,r)}))}),(function(){throw new Error("Could not find a usable connection type for "+i.href)}))},register:function(e,t){this._transports.push([e,t]),t.prototype.connectionType=e},getConnectionTypes:function(){return a.map(this._transports,(function(e){return e[0]}))},disable:function(e){if("autodisconnect"===e)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return this.client.get({url:"".concat(e,"/"),serviceName:"personalization",qs:t,token:t.token||this.client.getPersonalizationToken()})}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.client.post({url:"".concat(e,"/"),serviceName:"personalization",qs:t,body:r,token:this.client.getPersonalizationToken()})}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.client.delete({url:"".concat(e,"/"),serviceName:"personalization",qs:t,token:this.client.getPersonalizationToken()})}}]),e}();t.Personalization=s},"7UJ8":function(e,t,r){"use strict";var n=r("ui+V"),o=r("H0bX");t.__esModule=!0,t.ScrollContainer=void 0;var i=o(r("COMz")),a=o(r("42WU")),s=n(r("mXGw")),c=o(r("xARA")),u=o(r("W0B4")),l=r("czn3"),f=r("JF+v"),p={scrollKey:u.default.string.isRequired,shouldUpdateScroll:u.default.func,children:u.default.element.isRequired},d=function(e){function t(t){return e.call(this,t)||this}(0,a.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this,t=c.default.findDOMNode(this),r=this.props,n=r.location,o=r.scrollKey;if(t){t.addEventListener("scroll",(function(){e.props.context.save(n,o,t.scrollTop)}));var i=this.props.context.read(n,o);t.scrollTo(0,i||0)}},r.render=function(){return this.props.children},t}(s.Component),h=function(e){return s.createElement(f.Location,null,(function(t){var r=t.location;return s.createElement(l.ScrollContext.Consumer,null,(function(t){return s.createElement(d,(0,i.default)({},e,{context:t,location:r}))}))}))};t.ScrollContainer=h,h.propTypes=p},"7aSA":function(e,t,r){e.exports=function(){"use strict";return function(e,t,r){var n="h:mm A",o={lastDay:"[Yesterday at] "+n,sameDay:"[Today at] "+n,nextDay:"[Tomorrow at] "+n,nextWeek:"dddd [at] "+n,lastWeek:"[Last] dddd [at] "+n,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var n=t||this.$locale().calendar||o,i=r(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s=a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse",c=n[s]||o[s];return"function"==typeof c?c.call(this,r()):this.format(c)}}}()},"7bRu":function(e,t){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++oc;)n(s,r=t[c++])&&(~i(u,r)||u.push(r));return u}},"8kd7":function(e,t,r){var n=r("ofiy"),o=r("SyCk"),i=r("4e1R"),a=r("LF0y"),s=r("N3wY"),c=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:s(e),r=r&&!u?a(r):0;var l=e.length;return r<0&&(r=c(l+r,0)),i(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}},"8p/A":function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("Dg5a"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,LoadMorePaginator:o.a,React:i}},"94VI":function(e,t){t.polyfill=function(e){return e}},"97Yx":function(e,t,r){var n=r("6kFe"),o=r("AN5y"),i=r("c2OK");e.exports=function(e,t,r,a,s,c,u,l,f,p){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var h=[e,t,s,d?c:void 0,d?u:void 0,d?void 0:c,d?void 0:u,l,f,p],m=r.apply(void 0,h);return n(e)&&o(m,h),m.placeholder=a,i(m,e,t)}},"9OMS":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r("fVVT"),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},"9aUh":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"9jf2":function(e,t,r){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e){return e+"."}};return e.locale(t,null,!0),t}(r("jTUD"))},"9kCU":function(e,t){e.exports={VERSION:"1.4.0",BAYEUX_VERSION:"1.0",ID_LENGTH:160,JSONP_CALLBACK:"jsonpcallback",CONNECTION_TYPES:["long-polling","cross-origin-long-polling","callback-polling","websocket","eventsource","in-process"],MANDATORY_CONNECTION_TYPES:["long-polling","callback-polling","in-process"]}},"9lU+":function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},"9nX2":function(e,t,r){var n=r("+iL7"),o=/#|\.prototype\./,i=function(e,t){var r=s[a(e)];return r==u||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"9pAD":function(e,t,r){var n=r("Qean");e.exports=function(e){return Object(n(e))}},"9xxD":function(e,t,r){"use strict";var n=r("D2wv"),o=r("e46L"),i=r("Rlj/");function a(e,t){return t=t||{},function(r,n){for(var o,i=e.length,a=-1;++a ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links={},this.options=e||g.defaults,this.rules=r.normal,this.options.gfm&&(this.options.tables?this.rules=r.tables:this.rules=r.gfm)}r._label=/(?:\\[\[\]]|[^\[\]])+/,r._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,r.def=f(r.def).replace("label",r._label).replace("title",r._title).getRegex(),r.bullet=/(?:[*+-]|\d+\.)/,r.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,r.item=f(r.item,"gm").replace(/bull/g,r.bullet).getRegex(),r.list=f(r.list).replace(/bull/g,r.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+r.def.source+")").getRegex(),r._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",r.html=f(r.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,r._tag).getRegex(),r.paragraph=f(r.paragraph).replace("hr",r.hr).replace("heading",r.heading).replace("lheading",r.lheading).replace("tag","<"+r._tag).getRegex(),r.blockquote=f(r.blockquote).replace("paragraph",r.paragraph).getRegex(),r.normal=v({},r),r.gfm=v({},r.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),r.gfm.paragraph=f(r.paragraph).replace("(?!","(?!"+r.gfm.fences.source.replace("\\1","\\2")+"|"+r.list.source.replace("\\1","\\3")+"|").getRegex(),r.tables=v({},r.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=r,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,t){var n,o,i,a,s,c,u,l,f,p,d;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),c={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},l=0;l ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),d=(a=i[2]).length>1,this.tokens.push({type:"list_start",ordered:d,start:d?+a:""}),n=!1,p=(i=i[0].match(this.rules.item)).length,l=0;l1&&s.length>1||(e=i.slice(l+1).join("\n")+e,l=p-1)),o=n||/\n\n(?!\s*$)/.test(c),l!==p-1&&(n="\n"===c.charAt(c.length-1),o||(o=n)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(c,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),f=i[1].toLowerCase(),this.tokens.links[f]||(this.tokens.links[f]={href:i[2],title:i[3]});else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),c={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},l=0;l])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:m,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function f(e,t){return e=e.source,t=t||"",{replace:function(t,r){return r=(r=r.source||r).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,r),this},getRegex:function(){return new RegExp(e,t)}}}function p(e,t){return d[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?d[" "+e]=e+"/":d[" "+e]=e.replace(/[^/]*$/,"")),e=d[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=f(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,o._href=/\s*?(?:\s+['"]([\s\S]*?)['"])?\s*/,o.link=f(o.link).replace("inside",o._inside).replace("href",o._href).getRegex(),o.reflink=f(o.reflink).replace("inside",o._inside).getRegex(),o.normal=v({},o),o.pedantic=v({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),o.gfm=v({},o.normal,{escape:f(o.escape).replace("])","~|])").getRegex(),url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",o._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:f(o.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),o.breaks=v({},o.gfm,{br:f(o.br).replace("{2,}","*").getRegex(),text:f(o.gfm.text).replace("{2,}","*").getRegex()}),i.rules=o,i.output=function(e,t,r){return new i(t,r).output(e)},i.prototype.output=function(e){for(var t,r,n,o,i="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),i+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),n="@"===o[2]?"mailto:"+(r=u(this.mangle(o[1]))):r=u(o[1]),i+=this.renderer.link(n,null,r);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,i+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){i+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),i+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),i+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),i+=this.renderer.codespan(u(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),i+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),i+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),i+=this.renderer.text(u(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else o[0]=this.rules._backpedal.exec(o[0])[0],e=e.substring(o[0].length),"@"===o[2]?n="mailto:"+(r=u(o[0])):(r=u(o[0]),n="www."===o[1]?"http://"+r:r),i+=this.renderer.link(n,null,r);return i},i.prototype.outputLink=function(e,t){var r=u(t.href),n=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(r,n,this.output(e[1])):this.renderer.image(r,n,u(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,r="",n=e.length,o=0;o.5&&(t="x"+t.toString(16)),r+="&#"+t+";";return r},a.prototype.code=function(e,t,r){if(this.options.highlight){var n=this.options.highlight(e,t);null!=n&&n!==e&&(r=!0,e=n)}return t?'
'+(r?e:u(e,!0))+"\n
\n":"
"+(r?e:u(e,!0))+"\n
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,r){return"'+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' style="text-align:'+t.align+'">':"<"+r+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,r){if(this.options.sanitize){try{var n=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return r}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return r}this.options.baseUrl&&!h.test(e)&&(e=p(this.options.baseUrl,e));var o='
    "},a.prototype.image=function(e,t,r){this.options.baseUrl&&!h.test(e)&&(e=p(this.options.baseUrl,e));var n=''+r+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,r){return""+r},s.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,v({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop()},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,r,n,o="",i="";for(r="",e=0;eAn error occurred:

    "+u(f.message+"",!0)+"
    ";throw f}}m.exec=m,g.options=g.setOptions=function(e){return v(g.defaults,e),g},g.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},g.Parser=c,g.parser=c.parse,g.Renderer=a,g.TextRenderer=s,g.Lexer=n,g.lexer=n.lex,g.InlineLexer=i,g.inlineLexer=i.output,g.parse=g,e.exports=g}(this||"undefined"!=typeof window&&window)}).call(this,r("pCvA"))},"B/3V":function(e,t,r){var n=r("clxC");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"B4/L":function(e,t,r){var n=r("gwRl"),o=r("LBQr"),i=r("tb+2"),a=r("E7Xw"),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},B4Jh:function(e,t,r){var n=r("fRAL"),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(r,"{\n/* [wrapped with "+t+"] */\n")}},BW49:function(e,t,r){var n=r("sWZd"),o=r("lYsT"),i=r("PqlX"),a=r("q+I6"),s=r("ckUF"),c=r("cTHi");e.exports=function(e,t,r){for(var u=-1,l=(t=n(t,e)).length,f=!1;++u=Math.pow(2,32)&&(this._messageId=0),this._messageId.toString(36)},_receiveMessage:function(e){var t,r=e.id;void 0!==e.successful&&(t=this._responseCallbacks[r],delete this._responseCallbacks[r]),this.pipeThroughExtensions("incoming",e,null,(function(e){e&&(e.advice&&this._handleAdvice(e.advice),this._deliverMessage(e),t&&t[0].call(t[1],e))}),this)},_handleAdvice:function(e){c(this._advice,e),this._dispatcher.timeout=this._advice.timeout/1e3,this._advice.reconnect===this.HANDSHAKE&&this._state!==this.DISCONNECTED&&(this._state=this.UNCONNECTED,this._dispatcher.clientId=null,this._cycleConnection())},_deliverMessage:function(e){e.channel&&void 0!==e.data&&(this.info("Client ? calling listeners for ? with ?",this._dispatcher.clientId,e.channel,e.data),this._channels.distributeMessage(e))},_cycleConnection:function(){this._connectRequest&&(this._connectRequest=null,this.info("Closed connection for ?",this._dispatcher.clientId));var e=this;t.setTimeout((function(){e.connect()}),this._advice.interval)}});c(y.prototype,l),c(y.prototype,p),c(y.prototype,f),c(y.prototype,v),e.exports=y}).call(this,r("pCvA"))},CIBY:function(e,t,r){var n=r("V2ZB"),o=r("B4/L");e.exports=function(e,t){return n(e,o(e),t)}},CIUO:function(e,t,r){var n=r("s3t7"),o=r("T9Ud");e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},COMz:function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t=3?s[e](a,r,t):s[e](a,t)}(t)}};r("BZif")(n,r("j1kx")),e.exports=n},COrk:function(e,t,r){var n=r("E1Sn"),o=r("T9Ud");e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},CPLO:function(e,t,r){var n=r("zlak"),o=r("TsNJ"),i=r("DhoL"),a=i&&i.isSet,s=a?o(a):n;e.exports=s},CYlu:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmojiDefaultProps=t.PickerDefaultProps=void 0;var n={skin:1,set:"apple",sheetSize:64,sheetColumns:57,sheetRows:57,native:!1,forceSize:!1,tooltip:!1,useButton:!0,backgroundImageFn:function(e,t){return"https://unpkg.com/emoji-datasource-".concat(e,"@").concat("5.0.1","/img/").concat(e,"/sheets-256/").concat(t,".png")}};t.EmojiDefaultProps=n;var o={onClick:function(){},onSelect:function(){},onSkinChange:function(){},emojiSize:24,perLine:9,i18n:{},style:{},title:"Emoji Mart™",emoji:"department_store",color:"#ae65c5",set:n.set,theme:"light",skin:null,defaultSkin:n.skin,native:n.native,sheetSize:n.sheetSize,backgroundImageFn:n.backgroundImageFn,emojisToShowFilter:null,showPreview:!0,showSkinTones:!0,emojiTooltip:n.tooltip,useButton:n.useButton,autoFocus:!1,enableFrequentEmojiSort:!1,custom:[],skinEmoji:"",notFound:function(){},notFoundEmoji:"sleuth_or_spy",icons:{}};t.PickerDefaultProps=o},Chmn:function(e,t){e.exports=function(e){return this.__data__.get(e)}},Cy6g:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n=r("HtiD"),o=r("1M3q"),i=r.n(o),a=r("mXGw"),s=r("qqks"),c=r("FMa6"),u=r("z0fj"),l=r("Pdo2"),f=r("ca/S"),p=r("/asK"),d=r("aD51");"undefined"!=typeof CommentFieldProps&&CommentFieldProps&&CommentFieldProps===Object(CommentFieldProps)&&Object.isExtensible(CommentFieldProps)&&!CommentFieldProps.hasOwnProperty("__filemeta")&&Object.defineProperty(CommentFieldProps,"__filemeta",{configurable:!0,value:{name:"CommentFieldProps",filename:"src/components/CommentField.tsx"}});var h=function(e){var t=e.activity,r=e.emojiData,o=e.onSuccess,h=e.image,m=e.placeholder,v=e.trigger,g=e.targetFeeds,b=Object(f.b)(),y=Object(p.b)().t,w=Object(a.useRef)(),O=Object(a.useState)(),_=O[0],x=O[1],j=function(){var e=Object(n.a)(i.a.mark((function e(r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),_){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,b.onAddReaction("comment",t,{text:_},{targetFeeds:g});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),console.error(e.t0);case 11:x(""),null==o||o();case 13:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}();return Object(a.useEffect)((function(){if(w.current){var e=function(e){var t=w.current;"Enter"===e.key&&null===(null==t?void 0:t.nextSibling)&&j(e)};return w.current.addEventListener("keydown",e),function(){var t;return null===(t=w.current)||void 0===t?void 0:t.removeEventListener("keydown",e)}}}),[]),Object(d.c)("form",{onSubmit:j,className:"raf-comment-field"},h&&Object(d.c)(s.a,{image:h,circle:!0,size:39}),Object(d.c)("div",{className:"raf-comment-field__group"},Object(d.c)(u.a,{rows:1,value:_,placeholder:null!=m?m:y("Start Typing..."),onChange:function(e){return x((function(t){var r;return null!==(r=Object(l.e)(e))&&void 0!==r?r:t}))},emojiData:r,trigger:v,maxLength:280,innerRef:function(e){return w.current=e}}),Object(d.c)(c.a,{buttonStyle:"primary",disabled:!_,type:"submit"},y("Post"))))};void 0!==h&&h&&h===Object(h)&&Object.isExtensible(h)&&!h.hasOwnProperty("__filemeta")&&Object.defineProperty(h,"__filemeta",{configurable:!0,value:{name:"CommentField",filename:"src/components/CommentField.tsx"}})},CzB4:function(e,t,r){var n=r("w5ta"),o=r("RW/s"),i=r("0KRy");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},D1KR:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},D2wv:function(e,t,r){"use strict";var n=r("wpsh");e.exports=function(e,t,r){if(null!=r&&"string"!==n(r))throw new TypeError('expected "prop" to be undefined or a string');var o=n(e),i=n(t);return r&&("object"===o&&(e=e[r],o=n(e)),"object"===i&&(t=t[r],i=n(t))),"null"===o?"null"===i?0:"undefined"===i?-1:1:"undefined"===o?"null"===i?1:"undefined"===i?0:1:"null"===i||"undefined"===i||et?1:0}},DAq4:function(e,t){e.exports=function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},DGBo:function(e,t){},DHdO:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("2JdJ");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var o=r("ju9Q");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=r("PB2k");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=r("Z/TY");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r("5L7t");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var c=r("IZuc");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=r("7Sw7");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=r("03Te");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=r("oTdG");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var p=r(4);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var d=r("XqWt");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r("Jlkc");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},DJGK:function(e,t,r){var n=r("+iL7"),o=r("fSIz"),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},DZJZ:function(e,t,r){"use strict";e.exports={commonElement:function(e,t){for(var r=0,n=e.length;r0;)c();s=!1}}()};u()}}},DZMJ:function(e,t,r){var n=r("FEiO"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},Dg5a:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("mXGw"),o=r.n(n),i=r("l4B8"),a=r("LFXc"),s=r("aD51");"undefined"!=typeof LoadMorePaginatorProps&&LoadMorePaginatorProps&&LoadMorePaginatorProps===Object(LoadMorePaginatorProps)&&Object.isExtensible(LoadMorePaginatorProps)&&!LoadMorePaginatorProps.hasOwnProperty("__filemeta")&&Object.defineProperty(LoadMorePaginatorProps,"__filemeta",{configurable:!0,value:{name:"LoadMorePaginatorProps",filename:"src/components/LoadMorePaginator.tsx"}});var c=function(e){var t=e.LoadMoreButton,r=void 0===t?i.a:t,n=e.children,c=e.reverse,u=e.hasNextPage,l=e.refreshing,f=e.loadNextPage;return Object(s.c)(o.a.Fragment,null,!c&&n,u&&Object(a.a)(r,{refreshing:l,onClick:f}),c&&n)};void 0!==c&&c&&c===Object(c)&&Object.isExtensible(c)&&!c.hasOwnProperty("__filemeta")&&Object.defineProperty(c,"__filemeta",{configurable:!0,value:{name:"LoadMorePaginator",filename:"src/components/LoadMorePaginator.tsx"}})},Dh2Y:function(e,t,r){var n=r("YaJL");e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},DhoL:function(e,t,r){(function(e){var n=r("FfeU"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,r("RoC8")(e))},DlYZ:function(e,t){e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},E1Sn:function(e,t,r){var n=r("WRuO"),o=r("MBdc"),i=r("LdZC"),a=r("ji6j"),s=r("s3t7"),c=r("PqlX"),u=r("tfj2"),l=r("3kU/"),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,h,m){var v=c(e),g=c(t),b=v?"[object Array]":s(e),y=g?"[object Array]":s(t),w=(b="[object Arguments]"==b?f:b)==f,O=(y="[object Arguments]"==y?f:y)==f,_=b==y;if(_&&u(e)){if(!u(t))return!1;v=!0,w=!1}if(_&&!w)return m||(m=new n),v||l(e)?o(e,t,r,d,h,m):i(e,t,b,r,d,h,m);if(!(1&r)){var x=w&&p.call(e,"__wrapped__"),j=O&&p.call(t,"__wrapped__");if(x||j){var k=x?e.value():e,A=j?t.value():t;return m||(m=new n),h(k,A,r,d,m)}}return!!_&&(m||(m=new n),a(e,t,r,d,h,m))}},E7Xw:function(e,t){e.exports=function(){return[]}},EKeD:function(e,t,r){var n=r("fxeQ"),o=n&&new n;e.exports=o},ELdr:function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},u=c.state,l=c.replace,f=void 0!==l&&l;if("number"==typeof t)e.history.go(t);else{u=n({},u,{key:Date.now()+""});try{a||f?e.history.replaceState(u,null,t):e.history.pushState(u,null,t)}catch(d){e.location[f?"replace":"assign"](t)}}i=o(e),a=!0;var p=new Promise((function(e){return s=e}));return r.forEach((function(e){return e({location:i,action:"PUSH"})})),p}}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),r={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},n=0,o=[r],i=[null];return{get location(){return o[n]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return n},get state(){return i[n]},pushState:function(e,t,r){var a=r.split("?"),s=a[0],c=a[1],u=void 0===c?"":c;n++,o.push({pathname:s,search:u.length?"?"+u:u}),i.push(e)},replaceState:function(e,t,r){var a=r.split("?"),s=a[0],c=a[1],u=void 0===c?"":c;o[n]={pathname:s,search:u},i[n]=e},go:function(e){var t=n+e;t<0||t>i.length-1||(n=t)}}}},s=!("undefined"==typeof window||!window.document||!window.document.createElement),c=i(s?window:a()),u=c.navigate},EN0E:function(e,t,r){var n=r("/5e1")();e.exports=n},ENJY:function(e,t,r){"use strict";var n=r("9kCU"),o=r("j1kx"),i={VERSION:n.VERSION,Client:r("CE29"),Scheduler:r("JyNm")};o.wrapper=i,e.exports=i},EPMi:function(e,t,r){"use strict";(function(t){var n=r("NFrV"),o=r("UCma"),i=r("hJL7"),a=r("abqF"),s=r("cSUU"),c=r("2cPb"),u=r("BZif"),l=r("o2qG"),f=r("LBbR"),p=r("eEbX"),d=u(n(r("69GW"),{UNCONNECTED:1,CONNECTING:2,CONNECTED:3,batching:!1,isUsable:function(e,t){this.callback((function(){e.call(t,!0)})),this.errback((function(){e.call(t,!1)})),this.connect()},request:function(e){this._pending=this._pending||new i;for(var t=0,r=e.length;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},G9gt:function(e,t,r){var n=r("jgJv"),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},GAEk:function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));r("x3Br");var n=r("X7+o"),o=r("W0B4"),i=r.n(o),a=r("mXGw"),s=r.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0||!Array.isArray(t)&&t?u({},e,t):{}}function y(e){var t=e.forwardedRef,r=p(e,["forwardedRef"]),o=r.icon,i=r.mask,a=r.symbol,s=r.className,c=r.title,l=r.titleId,h=g(o),m=b("classes",[].concat(d(function(e){var t,r=e.spin,n=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,s=e.listItem,c=e.flip,l=e.size,f=e.rotation,p=e.pull,d=(u(t={"fa-spin":r,"fa-pulse":n,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":s,"fa-flip-horizontal":"horizontal"===c||"both"===c,"fa-flip-vertical":"vertical"===c||"both"===c},"fa-".concat(l),null!=l),u(t,"fa-rotate-".concat(f),null!=f&&0!==f),u(t,"fa-pull-".concat(p),null!=p),u(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(r)),d(s.split(" ")))),O=b("transform","string"==typeof r.transform?n.b.transform(r.transform):r.transform),_=b("mask",g(i)),x=Object(n.a)(h,f({},m,{},O,{},_,{symbol:a,title:c,titleId:l}));if(!x)return function(){var e;!v&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",h),null;var j=x.abstract,k={ref:t};return Object.keys(r).forEach((function(e){y.defaultProps.hasOwnProperty(e)||(k[e]=r[e])})),w(j[0],k)}y.displayName="FontAwesomeIcon",y.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([0,90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object]),swapOpacity:i.a.bool},y.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var w=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var o=(r.children||[]).map((function(r){return e(t,r)})),i=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=m(n);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[h(t)]=n}return e}),{attrs:{}}),a=n.style,s=void 0===a?{}:a,c=p(n,["style"]);return i.attrs.style=f({},i.attrs.style,{},s),t.apply(void 0,[r.tag,f({},i.attrs,{},c)].concat(d(o)))}.bind(null,s.a.createElement)},GC0P:function(e,t,r){var n=r("+dZb")("flattenDepth",r("HGTD"));n.placeholder=r("IOY3"),e.exports=n},GE03:function(e,t,r){var n=r("xkFB"),o=r("4mhO"),i=r("4a20");function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t0){var o={},i=0;e.custom.forEach((function(e){o[e.customCategory]||(o[e.customCategory]={id:e.customCategory?"custom-".concat(e.customCategory):"custom",name:e.customCategory||"Custom",emojis:[],anchor:0===i},i++);var t=o[e.customCategory],n=j({},e,{id:e.short_names[0],custom:!0});t.emojis.push(n),r.CUSTOM.push(n)})),n=n.concat(Object.keys(o).map((function(e){return o[e]})))}r.hideRecent=!0,null!=e.include&&n.sort((function(t,r){return e.include.indexOf(t.id)>e.include.indexOf(r.id)?1:-1}));for(var s=0;s-1,h=!(!e.exclude||!e.exclude.length)&&e.exclude.indexOf(f.id)>-1;if(p&&!h)if(e.emojisToShowFilter){for(var m=[],b=f.emojis,y=0;y-1,x=!(!e.exclude||!e.exclude.length)&&e.exclude.indexOf(r.RECENT_CATEGORY.id)>-1;return _&&!x&&(r.hideRecent=!1,r.categories.unshift(r.RECENT_CATEGORY)),r.categories[0]&&(r.categories[0].first=!0),r.categories.unshift(r.SEARCH_CATEGORY),r.setAnchorsRef=r.setAnchorsRef.bind((0,l.default)(r)),r.handleAnchorClick=r.handleAnchorClick.bind((0,l.default)(r)),r.setSearchRef=r.setSearchRef.bind((0,l.default)(r)),r.handleSearch=r.handleSearch.bind((0,l.default)(r)),r.setScrollRef=r.setScrollRef.bind((0,l.default)(r)),r.handleScroll=r.handleScroll.bind((0,l.default)(r)),r.handleScrollPaint=r.handleScrollPaint.bind((0,l.default)(r)),r.handleEmojiOver=r.handleEmojiOver.bind((0,l.default)(r)),r.handleEmojiLeave=r.handleEmojiLeave.bind((0,l.default)(r)),r.handleEmojiClick=r.handleEmojiClick.bind((0,l.default)(r)),r.handleEmojiSelect=r.handleEmojiSelect.bind((0,l.default)(r)),r.setPreviewRef=r.setPreviewRef.bind((0,l.default)(r)),r.handleSkinChange=r.handleSkinChange.bind((0,l.default)(r)),r.handleKeyDown=r.handleKeyDown.bind((0,l.default)(r)),r.handleDarkMatchMediaChange=r.handleDarkMatchMediaChange.bind((0,l.default)(r)),r}return(0,f.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.state.firstRender&&(this.testStickyPosition(),this.firstRenderTimeout=setTimeout((function(){e.setState({firstRender:!1})}),60))}},{key:"componentDidUpdate",value:function(){this.updateCategoriesSize(),this.handleScroll()}},{key:"componentWillUnmount",value:function(){this.SEARCH_CATEGORY.emojis=null,clearTimeout(this.leaveTimeout),clearTimeout(this.firstRenderTimeout),this.darkMatchMedia&&this.darkMatchMedia.removeListener(this.handleDarkMatchMediaChange)}},{key:"testStickyPosition",value:function(){var e=document.createElement("div");["","-webkit-","-ms-","-moz-","-o-"].forEach((function(t){return e.style.position="".concat(t,"sticky")})),this.hasStickyPosition=!!e.style.position.length}},{key:"getPreferredTheme",value:function(){return"auto"!=this.props.theme?this.props.theme:this.state.theme?this.state.theme:"function"!=typeof matchMedia?_.PickerDefaultProps.theme:(this.darkMatchMedia||(this.darkMatchMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMatchMedia.addListener(this.handleDarkMatchMediaChange)),this.darkMatchMedia.media.match(/^not/)?_.PickerDefaultProps.theme:this.darkMatchMedia.matches?"dark":"light")}},{key:"handleDarkMatchMediaChange",value:function(){this.setState({theme:this.darkMatchMedia.matches?"dark":"light"})}},{key:"handleEmojiOver",value:function(e){var t=this.preview;if(t){var r=this.CUSTOM.filter((function(t){return t.id===e.id}))[0];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);t.setState({emoji:e}),clearTimeout(this.leaveTimeout)}}},{key:"handleEmojiLeave",value:function(e){var t=this.preview;t&&(this.leaveTimeout=setTimeout((function(){t.setState({emoji:null})}),16))}},{key:"handleEmojiClick",value:function(e,t){this.props.onClick(e,t),this.handleEmojiSelect(e)}},{key:"handleEmojiSelect",value:function(e){var t=this;this.props.onSelect(e),this.hideRecent||this.props.recent||m.default.add(e);var r=this.categoryRefs["category-1"];if(r){var n=r.maxMargin;this.props.enableFrequentEmojiSort&&r.forceUpdate(),requestAnimationFrame((function(){t.scroll&&(r.memoizeSize(),n!=r.maxMargin&&(t.updateCategoriesSize(),t.handleScrollPaint(),t.SEARCH_CATEGORY.emojis&&r.updateDisplay("none")))}))}}},{key:"handleScroll",value:function(){this.waitingForPaint||(this.waitingForPaint=!0,requestAnimationFrame(this.handleScrollPaint))}},{key:"handleScrollPaint",value:function(){if(this.waitingForPaint=!1,this.scroll){var e=null;if(this.SEARCH_CATEGORY.emojis)e=this.SEARCH_CATEGORY;else{for(var t=this.scroll.scrollTop,r=t>(this.scrollTop||0),n=0,o=0,i=this.categories.length;o0&&(n=c.top),u&&!e&&(e=s)}}t=this.scrollHeight&&(e=this.categories[this.categories.length-1])}if(e){var l=this.anchors,f=e.name;l.state.selected!=f&&l.setState({selected:f})}this.scrollTop=t}}},{key:"handleSearch",value:function(e){this.SEARCH_CATEGORY.emojis=e;for(var t=0,r=this.categories.length;t1&&void 0!==arguments[1]?arguments[1]:null,r=this.next(new e(""));return r===this.defaultTransition?(r=new this.constructor(t),this.on(e,r)):t&&(r.T=t),r},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,r,n){for(var o=0,a=e.length,s=t,c=[],u=void 0;o=a)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:{},t={tree:null,elements:null,nextElementId:null,toc:null,currentIdLevel:0,currentId:[]},r=(0,i.default)(t,e,{code:function(r,n){if("marksy"===n){try{var o=t.nextElementId++,a=Object.keys(e.components).map((function(t){return e.components[t]}));return t.elements[o]=s(Function,["h"].concat(u(Object.keys(e.components)),["return ".concat(r)])).apply(void 0,[function(r){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.indexOf(r)>=0?Object.assign(n||{},{key:t.nextElementId++,context:t.context}):n,i=arguments.length,s=new Array(i>2?i-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.tree=[],t.elements={},t.toc=[],t.nextElementId=0,t.context=i,t.currentId=[],(0,o.default)(e,Object.assign({renderer:r,smartypants:!0},n)),{tree:t.tree,toc:t.toc}}}},"HkQ/":function(e,t,r){e.exports=r("lrIn"),r("h5uN"),r("t8nd"),r("mu/v"),r("2JYJ"),r("2Soz"),r("LuUu"),r("b/vo"),r("4Ubm")},HtiD:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}r.d(t,"a",(function(){return o}))},Hvpk:function(e,t,r){var n=r("+iL7");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"I2+2":function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("WjHG"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,NewActivitiesNotification:o.a,React:i}},I4Y3:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},IOVJ:function(e,t,r){"use strict";var n=r("HGLW"),o=r("hsa5"),i=r("mXGw"),a=r.n(i),s=r("emEt"),c=r("xtsi"),u=r("30RF");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{crop:"center",resize:"clip"},o=n.crop,i=n.resize;return this.process(e,{w:t,h:r,crop:o,resize:i})}}]),e}();t.StreamImageStore=c},Ildw:function(e){e.exports=JSON.parse('{"1 comment":"1 yorum","1 like":"1 beğeni","1 repost":"1 paylaşım","Details":"Detaylar","Getting website data...":"Web sitesi verileri alınıyor ...","Load activities":"Aktiviteleri yükle","Load more":"Daha fazla yükle","New Post":"Yeni İleti","No data to display...":"Gösterilecek veri yok...","Pick your emoji":"Emoji seç","Post":"Yolla","Start Typing...":"Yazmaya Başla...","Type your post...":"İletini yaz...","You have 1 new notification":"1 yeni bildirimin var","You have {{ notificationCount }} new notifications":"{{ notificationCount }} yeni bildirimin var","{{ actorName }} and 1 other commented on your {{ activityVerb }}":"{{ actorName }} ve biri daha {{ activityVerb }} üzerine yorum yaptı","{{ actorName }} and 1 other followed you":"{{ actorName }} ve biri daha seni takip etti","{{ actorName }} and 1 other liked your {{ activityVerb }}":"{{ actorName }} ve biri daha senin {{ activityVerb }}\'ini beğendi","{{ actorName }} and 1 other reposted your {{ activityVerb }}":"{{ actorName }} ve biri daha senin {{ activityVerb }}\'ini beğendi","{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}":"{{ actorName }} ve {{ countOtherActors }} kişi daha {{ activityVerb }} üzerine yorum yaptı","{{ actorName }} and {{ countOtherActors }} others followed you":"{{ actorName }} ve {{ countOtherActors }} kişi daha seni takip etti","{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}":"{{ actorName }} ve {{ countOtherActors }} kişi daha senin {{ activityVerb }}\'ini beğendi","{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}":"{{ actorName }} ve {{ countOtherActors }} kişi daha senin {{ activityVerb }}\'ini paylaştı","{{ actorName }} commented on your {{ activityVerb }}":"{{ actorName }} {{ activityVerb }}\'ine yorum yaptı","{{ actorName }} followed you":"{{ actorName }} seni takip etti","{{ actorName }} liked your {{ activityVerb }}":"{{ actorName }} senin {{ activityVerb }}\'ini beğendi","{{ actorName }} reposted your {{ activityVerb }}":"{{ actorName }} senin {{ activityVerb }}\'ini paylaştı","{{ countComments }} comments":"{{ countComments }} yorum","{{ countLikes }} likes":"{{ countLikes }} beğeni","{{ countReposts }} reposts":"{{ countReposts }} paylaşım"}')},IqJI:function(e,t,r){var n=r("gwRl"),o=r("+Vbj");e.exports=function e(t,r,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c0&&i(l)?r>1?e(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},IrTi:function(e,t){e.exports={}},IsbQ:function(e,t,r){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return e.locale(t,null,!0),t}(r("jTUD"))},J9rK:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("WmJE"),i=r("mXGw");t.default={Playground:n.c,TimeHeader:o.a,React:i}},J9xP:function(e,t,r){var n=r("cm7J");e.exports=function(e){return n(this.__data__,e)>-1}},"JF+v":function(e,t,r){"use strict";r.r(t),r.d(t,"Link",(function(){return R})),r.d(t,"Location",(function(){return y})),r.d(t,"LocationProvider",(function(){return w})),r.d(t,"Match",(function(){return F})),r.d(t,"Redirect",(function(){return M})),r.d(t,"Router",(function(){return x})),r.d(t,"ServerLocation",(function(){return O})),r.d(t,"isRedirect",(function(){return L})),r.d(t,"redirectTo",(function(){return I})),r.d(t,"useLocation",(function(){return q})),r.d(t,"useNavigate",(function(){return U})),r.d(t,"useParams",(function(){return z})),r.d(t,"useMatch",(function(){return B})),r.d(t,"BaseContext",(function(){return _}));var n=r("mXGw"),o=r.n(n),i=(r("W0B4"),r("+Ltg")),a=r.n(i),s=r("nqlD"),c=r.n(s),u=r("94VI"),l=r("ZkUl");r.d(t,"matchPath",(function(){return l.match}));var f=r("ELdr");r.d(t,"createHistory",(function(){return f.a})),r.d(t,"createMemorySource",(function(){return f.b})),r.d(t,"navigate",(function(){return f.d})),r.d(t,"globalHistory",(function(){return f.c}));var p=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e,t){var r=c()(t);return r.displayName=e,r},b=g("Location"),y=function(e){var t=e.children;return o.a.createElement(b.Consumer,null,(function(e){return e?t(e):o.a.createElement(w,null,t)}))},w=function(e){function t(){var r,n;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a-1?(i=t.substring(0,n),a=t.substring(n)):i=t,o.a.createElement(b.Provider,{value:{location:{pathname:i,search:a,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},r)},_=g("Base",{baseuri:"/",basepath:"/"}),x=function(e){return o.a.createElement(_.Consumer,null,(function(t){return o.a.createElement(y,null,(function(r){return o.a.createElement(j,p({},t,r,e))}))}))},j=function(e){function t(){return h(this,t),m(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.location,r=e.navigate,n=e.basepath,i=e.primary,a=e.children,s=(e.baseuri,e.component),c=void 0===s?"div":s,u=d(e,["location","navigate","basepath","primary","children","baseuri","component"]),f=o.a.Children.toArray(a).reduce((function(e,t){var r=V(n)(t);return e.concat(r)}),[]),h=t.pathname,m=Object(l.pick)(f,h);if(m){var v=m.params,g=m.uri,b=m.route,y=m.route.value;n=b.default?n:b.path.replace(/\*$/,"");var w=p({},v,{uri:g,location:t,navigate:function(e,t){return r(Object(l.resolve)(e,g),t)}}),O=o.a.cloneElement(y,w,y.props.children?o.a.createElement(x,{location:t,primary:i},y.props.children):void 0),j=i?A:c,k=i?p({uri:g,location:t,component:c},u):u;return o.a.createElement(_.Provider,{value:{baseuri:g,basepath:n}},o.a.createElement(j,k,O))}return null},t}(o.a.PureComponent);j.defaultProps={primary:!0};var k=g("Focus"),A=function(e){var t=e.uri,r=e.location,n=e.component,i=d(e,["uri","location","component"]);return o.a.createElement(k.Consumer,null,(function(e){return o.a.createElement(P,p({},i,{component:n,requestFocus:e,uri:t,location:r}))}))},E=!0,S=0,P=function(e){function t(){var r,n;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a3&&void 0!==arguments[3]?arguments[3]:{},o=!n.expireTokens||!n.expireTokens,a={resource:c(t),action:c(r)};n.feedId&&(a.feed_id=c(n.feedId));n.userId&&(a.user_id=n.userId);return i.default.sign(a,e,{algorithm:"HS256",noTimestamp:o})},t.JWTUserSessionToken=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"!=typeof t)throw new TypeError("userId should be a string");var o=s({user_id:t},r),a=s({algorithm:"HS256",noTimestamp:!0},n);return i.default.sign(o,e,a)};var o=n(r("g2JX")),i=n(r(3));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t=e)&&!(void 0!==r&&n>r)},send:function(){this.attempts+=1},succeed:function(){},fail:function(){},abort:function(){}}),e.exports=n},"K/xo":function(e,t,r){var n;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},"KAl/":function(e,t,r){var n=r("WMT/"),o=r("l3+0"),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(i,(function(r){var n="_."+r[0];t&r[1]&&!o(e,n)&&e.push(n)})),e.sort()}},KBMT:function(e){e.exports=JSON.parse('{"name":"stream-analytics","version":"3.4.2","description":"Analytics JS client for GetStream.io.","main":"./lib/stream-analytics.js","module":"./lib/stream-analytics.js","types":"./lib/stream-analytics.d.ts","scripts":{"test":"yarn test-node && yarn test-browser","test-node":"mocha tests --exit","test-browser":"karma start karma.config.js","lint":"yarn run prettier && yarn run eslint","eslint":"eslint \'**/*.{js,ts}\' --max-warnings 0","prettier":"prettier --config ./.prettierrc --list-different \\"**/*.{js,ts,md,html,json}\\"","prettier-fix":"prettier --config ./.prettierrc --write \\"**/*.{js,ts,md,html,json}\\"","build":"tsc && webpack && webpack --minify","preversion":"yarn run build && yarn test","version":"git add -A dist","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git://github.com/GetStream/stream-analytics-js.git"},"keywords":["npm","stream-analytics","getstream.io","stream.io"],"author":"Tommaso Barbugli ","license":"MIT","bugs":{"url":"https://github.com/GetStream/stream-analytics-js/issues"},"homepage":"https://github.com/GetStream/stream-analytics-js","engines":{"node":"10 || 12 || >=14"},"browser":{"cross-fetch":false},"dependencies":{"cross-fetch":"^3.0.6"},"devDependencies":{"@types/node":"^14.11.2","@typescript-eslint/eslint-plugin":"^4.3.0","@typescript-eslint/parser":"^4.3.0","chai":"^4.2.0","dotenv":"^8.2.0","eslint":"^7.10.0","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.12.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-typescript-sort-keys":"^1.5.0","karma":"^5.2.3","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"~2.2.5","karma-sauce-launcher":"^4.1.5","karma-sourcemap-loader":"~0.3.8","karma-webpack":"^4.0.2","mocha":"^8.1.3","prettier":"^2.1.2","ts-loader":"^8.0.4","typescript":"^4.0.3","webpack":"^4.44.2","webpack-cli":"^3.3.12"},"files":["src","dist","lib"]}')},KV5O:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("mXGw");var n=r("aD51");"undefined"!=typeof TitleProps&&TitleProps&&TitleProps===Object(TitleProps)&&Object.isExtensible(TitleProps)&&!TitleProps.hasOwnProperty("__filemeta")&&Object.defineProperty(TitleProps,"__filemeta",{configurable:!0,value:{name:"TitleProps",filename:"src/components/Title.tsx"}});var o=function(e){var t=e.size,r=void 0===t?18:t,o=e.children;return Object(n.c)("div",{className:"raf-title",style:{fontSize:r}},o)};void 0!==o&&o&&o===Object(o)&&Object.isExtensible(o)&&!o.hasOwnProperty("__filemeta")&&Object.defineProperty(o,"__filemeta",{configurable:!0,value:{name:"Title",filename:"src/components/Title.tsx"}})},"KjZ+":function(e,t,r){var n=r("s3UK").Uint8Array;e.exports=n},"Kn+0":function(e,t,r){e.exports=function(){var e=!1;-1!==navigator.appVersion.indexOf("MSIE 10")&&(e=!0);var t,r=[],n="object"==typeof document&&document,o=e?n.documentElement.doScroll("left"):n.documentElement.doScroll,i=n&&(o?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return!i&&n&&n.addEventListener("DOMContentLoaded",t=function(){for(n.removeEventListener("DOMContentLoaded",t),i=1;t=r.shift();)t()}),function(e){i?setTimeout(e,0):r.push(e)}}()},Kv1s:function(e,t,r){e.exports=function(){"use strict";return function(e,t,r){var n=t.prototype;r.utc=function(e){return new t({date:e,utc:!0,args:arguments})},n.utc=function(e){var t=r(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),"minute"):t},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var o=n.parse;n.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var i=n.init;n.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else i.call(this)};var a=n.utcOffset;n.utcOffset=function(e,t){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;var n=Math.abs(e)<=16?60*e:e,o=this;if(t)return o.$offset=n,o.$u=0===e,o;if(0!==e){var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(n+i,"minute")).$offset=n,o.$x.$localOffset=i}else o=this.utc();return o};var s=n.format;n.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return s.call(this,t)},n.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var c=n.toDate;n.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var u=n.diff;n.diff=function(e,t,n){if(e&&this.$u===e.$u)return u.call(this,e,t,n);var o=this.local(),i=r(e).local();return u.call(o,i,t,n)}}}()},"L+qr":function(e,t,r){"use strict";var n={countListeners:function(e){return this.listeners(e).length},bind:function(e,t,r){var n=Array.prototype.slice,o=function(){t.apply(r,n.call(arguments))};return this._listeners=this._listeners||[],this._listeners.push([e,t,r,o]),this.on(e,o)},unbind:function(e,t,r){this._listeners=this._listeners||[];for(var n,o=this._listeners.length;o--;)(n=this._listeners[o])[0]===e&&(!t||n[1]===t&&n[2]===r)&&(this._listeners.splice(o,1),this.removeListener(e,n[3]))}};r("BZif")(n,r("u69n").prototype),n.trigger=n.emit,e.exports=n},"L/xi":function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r("mXGw"),o=r("GFgX"),i=r.n(o),a=r("8W8Z"),s=r("/asK"),c=r("pcv9"),u=r("yGUY"),l=r("aD51");"undefined"!=typeof EmojiPickerProps&&EmojiPickerProps&&EmojiPickerProps===Object(EmojiPickerProps)&&Object.isExtensible(EmojiPickerProps)&&!EmojiPickerProps.hasOwnProperty("__filemeta")&&Object.defineProperty(EmojiPickerProps,"__filemeta",{configurable:!0,value:{name:"EmojiPickerProps",filename:"src/components/EmojiPicker.tsx"}});var f=function(e){var t=e.emojiData,r=void 0===t?a.a:t,o=e.onSelect,f=Object(s.b)().t,p=Object(n.useState)(!1),d=p[0],h=p[1],m=Object(n.useRef)(null);return Object(c.a)(m,(function(){return h(!1)}),d),Object(l.c)("div",{className:"raf-emoji-picker"},d&&Object(l.c)("div",{"data-testid":"picker-wrapper",className:"raf-emoji-picker__container",ref:m},Object(l.c)(i.a,{emoji:"point_up",title:f("Pick your emoji"),data:r,onSelect:o})),Object(l.c)("div",{role:"button",onClick:function(){return h(!0)},className:"raf-emoji-picker__button"},Object(l.c)(u.f,null)))};void 0!==f&&f&&f===Object(f)&&Object.isExtensible(f)&&!f.hasOwnProperty("__filemeta")&&Object.defineProperty(f,"__filemeta",{configurable:!0,value:{name:"EmojiPicker",filename:"src/components/EmojiPicker.tsx"}})},LBQr:function(e,t,r){var n=r("SHde")(Object.getPrototypeOf,Object);e.exports=n},LBbR:function(e,t,r){"use strict";(function(t){var r=t.MozWebSocket||t.WebSocket;e.exports={create:function(e,t,n){return"function"!=typeof r?null:new r(e)}}}).call(this,r("pCvA"))},LF0y:function(e,t,r){var n=r("UzdM");e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},LFXc:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("mXGw"),o=r.n(n);function i(e,t,r){var i=void 0===e?r:e;return o.a.isValidElement(i)||"string"==typeof i||"number"==typeof i||"boolean"==typeof i||null==i?i:Object(n.createElement)(i,t)}"undefined"!=typeof ElementOrComponentOrLiteralType&&ElementOrComponentOrLiteralType&&ElementOrComponentOrLiteralType===Object(ElementOrComponentOrLiteralType)&&Object.isExtensible(ElementOrComponentOrLiteralType)&&!ElementOrComponentOrLiteralType.hasOwnProperty("__filemeta")&&Object.defineProperty(ElementOrComponentOrLiteralType,"__filemeta",{configurable:!0,value:{name:"ElementOrComponentOrLiteralType",filename:"src/utils/smartRender.tsx"}}),void 0!==i&&i&&i===Object(i)&&Object.isExtensible(i)&&!i.hasOwnProperty("__filemeta")&&Object.defineProperty(i,"__filemeta",{configurable:!0,value:{name:"smartRender",filename:"src/utils/smartRender.tsx"}})},LMdw:function(e,t,r){var n=r("UVdV"),o=r("OVha"),i=r("rk7W"),a=r("gDYM");e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?t.concat(r(e)):t}},LSEb:function(e,t,r){var n=r("Yzgk"),o=r("X/0h");e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},Lalj:function(e,t,r){var n=r("jL4t"),o=r("MQuF"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},LcPu:function(e,t,r){"use strict";r.r(t),r.d(t,"Helmet",(function(){return B})),r.d(t,"HelmetProvider",(function(){return N}));r("x3Br");var n=r("mXGw"),o=r.n(n),i=r("W0B4"),a=r.n(i),s=r("2Hgx"),c=r.n(s),u=r("+Ltg"),l=r.n(u),f=r("F56x"),p=r.n(f);function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},g=Object.keys(v).map((function(e){return v[e]})),b={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},y=Object.keys(b).reduce((function(e,t){return e[b[t]]=t,e}),{}),w=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},O=function(e){var t=w(e,v.TITLE),r=w(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=w(e,"defaultTitle");return t||n||void 0},_=function(e){return w(e,"onChangeClientState")||function(){}},x=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return d({},e,t)}),{})},j=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")},P=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},C=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[b[r]||r]=e[r],t}),t)},T=function(e,t,r){switch(e){case v.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,i=C(r,n),[o.a.createElement(v.TITLE,i,e)];var e,r,n,i},toString:function(){return function(e,t,r,n){var o=P(r),i=A(t);return o?"<"+e+' data-rh="true" '+o+">"+S(i,n)+"":"<"+e+' data-rh="true">'+S(i,n)+""}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return C(t)},toString:function(){return P(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,i=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=b[e]||e;"innerHTML"===r||"cssText"===r?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[r]=t[e]})),o.a.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+S(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===E.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,r)}}}},R=function(e){var t=e.bodyAttributes,r=e.encode,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title,l=void 0===u?"":u,f=e.titleAttributes;return{base:T(v.BASE,e.baseTag,r),bodyAttributes:T("bodyAttributes",t,r),htmlAttributes:T("htmlAttributes",n,r),link:T(v.LINK,o,r),meta:T(v.META,i,r),noscript:T(v.NOSCRIPT,a,r),script:T(v.SCRIPT,s,r),style:T(v.STYLE,c,r),title:T(v.TITLE,{title:l,titleAttributes:f},r)}},D=o.a.createContext({}),L=a.a.shape({setHelmet:a.a.func,helmetInstances:a.a.shape({get:a.a.func,add:a.a.func,remove:a.a.func})}),I="undefined"!=typeof document,N=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=R({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return h(t,e),t.prototype.render=function(){return o.a.createElement(D.Provider,{value:this.value},this.props.children)},t}(n.Component);N.canUseDOM=I,N.propTypes={context:a.a.shape({helmet:a.a.shape()}),children:a.a.node.isRequired},N.defaultProps={context:{}},N.displayName="HelmetProvider";var M=function(e,t){var r,n=document.head||document.querySelector(v.HEAD),o=n.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?n.innerHTML=t.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(o,void 0===t[o]?"":t[o]));n.setAttribute("data-rh","true"),i.some((function(e,t){return r=t,n.isEqualNode(e)}))?i.splice(r,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},F=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},q=function(e,t){var r=e.baseTag,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;F(v.BODY,e.bodyAttributes),F(v.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=A(e)),F(v.TITLE,t)}(l,f);var p={baseTag:M(v.BASE,r),linkTags:M(v.LINK,o),metaTags:M(v.META,i),noscriptTags:M(v.NOSCRIPT,a),scriptTags:M(v.SCRIPT,c),styleTags:M(v.STYLE,u)},d={},h={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(d[e]=r),n.length&&(h[e]=p[e].oldTags)})),t&&t(),s(e,d,h)},U=null,z=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return d({},n,((t={})[r.type]=[].concat(n[r.type]||[],[d({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case v.TITLE:return d({},o,((t={})[n.type]=a,t.titleAttributes=d({},i),t));case v.BODY:return d({},o,{bodyAttributes:d({},i)});case v.HTML:return d({},o,{htmlAttributes:d({},i)});default:return d({},o,((r={})[n.type]=d({},i),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=d({},t);return Object.keys(e).forEach((function(t){var n;r=d({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return l()(g.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+g.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),l()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return o.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=m(o,["children"]),s=Object.keys(a).reduce((function(e,t){return e[y[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(e,i),c){case v.FRAGMENT:t=r.mapChildrenToProps(i,t);break;case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=d({},m(e,["children"]));return t&&(r=this.mapChildrenToProps(t,r)),o.a.createElement(D.Consumer,null,(function(e){return o.a.createElement(z,d({},r,{context:e}))}))},t}(n.Component);B.propTypes={base:a.a.object,bodyAttributes:a.a.object,children:a.a.oneOfType([a.a.arrayOf(a.a.node),a.a.node]),defaultTitle:a.a.string,defer:a.a.bool,encodeSpecialCharacters:a.a.bool,htmlAttributes:a.a.object,link:a.a.arrayOf(a.a.object),meta:a.a.arrayOf(a.a.object),noscript:a.a.arrayOf(a.a.object),onChangeClientState:a.a.func,script:a.a.arrayOf(a.a.object),style:a.a.arrayOf(a.a.object),title:a.a.string,titleAttributes:a.a.object,titleTemplate:a.a.string},B.defaultProps={defer:!0,encodeSpecialCharacters:!0},B.displayName="Helmet"},LdZC:function(e,t,r){var n=r("jgJv"),o=r("KjZ+"),i=r("dIZa"),a=r("MBdc"),s=r("rrk0"),c=r("OF9M"),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&n;if(d||(d=c),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var v=a(d(e),d(t),n,u,f,p);return p.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},LeKB:function(e,t,r){e.exports=[{plugin:r("AdG2"),options:{plugins:[],extensions:[".md",".mdx"],remarkPlugins:[[null,{type:"yaml",marker:"-"}],null],rehypePlugins:[null,null],gatsbyRemarkPlugins:[],defaultLayouts:{default:"/Users/amin/Stream/react-activity-feed/node_modules/gatsby-theme-docz/src/base/Layout.js"},lessBabel:!1,mediaTypes:["text/markdown","text/x-markdown"],root:"/Users/amin/Stream/react-activity-feed/.docz"}},{plugin:r("1dvN"),options:{plugins:[]}},{plugin:r("mEVR"),options:{plugins:[],themeConfig:{},src:"./",gatsbyRoot:null,themesDir:"src",mdxExtensions:[".md",".mdx"],docgenConfig:{},menu:[{name:"Introduction"},{name:"Top Level Components"},{name:"UI Components"},{name:"Layout Components"},{name:"Streami18n"},{name:"Composition Components"}],mdPlugins:[],hastPlugins:[],ignore:["PULL_REQUEST_TEMPLATE.md","CHANGELOG.md","README.md"],typescript:!0,ts:!1,propsParser:!0,"props-parser":!0,debug:!1,native:!1,openBrowser:null,o:null,open:null,"open-browser":null,root:"/Users/amin/Stream/react-activity-feed/.docz",base:"/react-activity-feed",source:"./","gatsby-root":null,files:"**/*.{md,markdown,mdx}",public:"/public",dest:"/docs",d:".docz/dist",editBranch:"main",eb:"master","edit-branch":"master",config:"",title:"React Activity Feed",description:"React components to create activity and notification feeds",host:"localhost",port:3001,p:3e3,separator:"-",paths:{root:"/Users/amin/Stream/react-activity-feed",templates:"/Users/amin/Stream/react-activity-feed/node_modules/docz-core/dist/templates",docz:"/Users/amin/Stream/react-activity-feed/.docz",cache:"/Users/amin/Stream/react-activity-feed/.docz/.cache",app:"/Users/amin/Stream/react-activity-feed/.docz/app",appPackageJson:"/Users/amin/Stream/react-activity-feed/package.json",appTsConfig:"/Users/amin/Stream/react-activity-feed/tsconfig.json",gatsbyConfig:"/Users/amin/Stream/react-activity-feed/gatsby-config.js",gatsbyBrowser:"/Users/amin/Stream/react-activity-feed/gatsby-browser.js",gatsbyNode:"/Users/amin/Stream/react-activity-feed/gatsby-node.js",gatsbySSR:"/Users/amin/Stream/react-activity-feed/gatsby-ssr.js",importsJs:"/Users/amin/Stream/react-activity-feed/.docz/app/imports.js",rootJs:"/Users/amin/Stream/react-activity-feed/.docz/app/root.jsx",indexJs:"/Users/amin/Stream/react-activity-feed/.docz/app/index.jsx",indexHtml:"/Users/amin/Stream/react-activity-feed/.docz/app/index.html",db:"/Users/amin/Stream/react-activity-feed/.docz/app/db.json"},repository:"https://github.com/GetStream/react-activity-feed/"}}]},LqJZ:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r("mXGw");var n=r("yGUY"),o=r("aD51");"undefined"!=typeof IconBadgeProps&&IconBadgeProps&&IconBadgeProps===Object(IconBadgeProps)&&Object.isExtensible(IconBadgeProps)&&!IconBadgeProps.hasOwnProperty("__filemeta")&&Object.defineProperty(IconBadgeProps,"__filemeta",{configurable:!0,value:{name:"IconBadgeProps",filename:"src/components/IconBadge.tsx"}});var i=function(e){var t=e.children,r=e.onClick,i=e.hidden,a=e.unseen,s=void 0===a?0:a,c=e.showNumber;return Object(o.c)("div",{className:"raf-icon-badge",role:"button",onClick:r},null!=t?t:Object(o.c)(n.b,null),s>0&&!i&&Object(o.c)("div",{className:"raf-icon-badge__badge","data-testid":"unseen-wrapper"},c&&Object(o.c)("p",{"data-testid":"unseen-count"},s)))};void 0!==i&&i&&i===Object(i)&&Object.isExtensible(i)&&!i.hasOwnProperty("__filemeta")&&Object.defineProperty(i,"__filemeta",{configurable:!0,value:{name:"IconBadge",filename:"src/components/IconBadge.tsx"}})},LuUu:function(e,t,r){var n,o,i;!function(a){"use strict";o=[r("lrIn"),r("t8nd")],void 0===(i="function"==typeof(n=function(e){function t(){}function r(e,t,r,n,o){return"binary"===t.types[e]?new Blob([r.buffer.slice(n,n+o)]):"Uint16"===t.types[e]?r.getUint16(n):function(e,t,r){for(var n="",o=t+r,i=t;iu){console.log("Invalid IPTC data: Invalid segment offset.");break}var p=e.getUint16(r+6+l);if(r+p>u){console.log("Invalid IPTC data: Invalid segment size.");break}return s.iptc=new t,c.disableIptcOffsets||(s.iptcOffsets=new t),void o(e,f,p,s,c.includeIptcTags,c.excludeIptcTags||{202:!0})}r+=1}},e.metaDataParsers.jpeg[65517].push(e.parseIptcData),e.IptcMap=t})?n.apply(t,o):n)||(e.exports=i)}()},Lyi2:function(e,t,r){"use strict";var n=r("eEPp"),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rC.length&&C.push(e)}function D(e,t,r){return null==e?0:function e(t,r,n,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return n(o,t,""===r?"."+L(t,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;ul))return!1;var p=c.get(e),d=c.get(t);if(p&&d)return p==t&&d==e;var h=-1,m=!0,v=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h5?"img--last":""),onClick:function(){return c(t)},key:"image-"+t},Object(i.c)("img",{src:e,className:"raf-gallery__image",alt:""}),4===t&&r.length>5&&Object(i.c)("p",null,r.length-4," more"))})),null!==s&&Object(i.c)(o.a,{mainSrc:r[s],nextSrc:r[s+1],prevSrc:r[s-1],onCloseRequest:function(){return c(null)},onMoveNextRequest:function(){return c(s+1)},onMovePrevRequest:function(){return c(s-1)}}))};void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"Gallery",filename:"src/components/Gallery.tsx"}})},MLWY:function(e,t,r){var n=r("JZQH"),o=r("q+I6"),i=Array.prototype.splice;e.exports=function(e,t){for(var r=e?t.length:0,a=r-1;r--;){var s=t[r];if(r==a||s!==c){var c=s;o(s)?i.call(e,s,1):n(e,s)}}return e}},MNFw:function(e,t,r){var n=r("JpX9");e.exports=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,n(e,128,void 0,void 0,void 0,void 0,t)}},MQuF:function(e,t,r){var n=r("SHde")(Object.keys,Object);e.exports=n},Mb7f:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("Ux1d"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,FollowButton:o.a,React:i}},MfmI:function(e,t,r){var n=r("jgJv"),o=r("NmMy"),i=r("PqlX"),a=r("zXe4"),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},Mj04:function(e,t,r){var n=r("kidB").default,o=r("YrpG");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},Mmsx:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("SUHN"),i=r("WjHG"),a=r("KV5O"),s=r("wlos"),c=r("byEl"),u=r("pGZ+"),l=r("mXGw");t.default={Playground:n.c,Props:n.d,DropdownPanel:o.a,NewActivitiesNotification:i.a,Title:a.a,Link:s.a,Notification:c.a,WithExampleStreamApp:u.b,notificationGroup1:u.c,notificationGroup2:u.d,React:l}},MoOl:function(e,t,r){var n=r("nEaP"),o=r("Ya6V"),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},N3wY:function(e,t,r){var n=r("OJX8"),o=r("h0av");e.exports=function(e){return null==e?[]:n(e,o(e))}},NA7H:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("byEl"),i=r("pGZ+"),a=r("mXGw");t.default={Playground:n.c,Props:n.d,Notification:o.a,WithExampleStreamApp:i.b,notificationGroup1:i.c,notificationGroup2:i.d,React:a}},NFrV:function(e,t,r){"use strict";var n=r("BZif");e.exports=function(e,t){"function"!=typeof e&&(t=e,e=Object);var r=function(){return this.initialize&&this.initialize.apply(this,arguments)||this},o=function(){};return o.prototype=e.prototype,r.prototype=new o,n(r.prototype,t),r}},NSX3:function(e,t,r){"use strict";r.r(t);var n=r("xtsi");"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/react-activity-feed/sw.js").then((function(e){e.addEventListener("updatefound",(function(){Object(n.apiRunner)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,Object(n.apiRunner)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),Object(n.apiRunner)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),Object(n.apiRunner)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":Object(n.apiRunner)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},NfLg:function(e,t,r){var n=r("GI0s"),o=r("LBQr"),i=r("T9Ud"),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},NmMy:function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r=0&&p++,r++,l++;if(p<0)for(var d=r-l;d0&&(n.push(new o.TEXT(i)),i=[]),r-=p,l-=p;var h=f.emit();n.push(new h(e.slice(r-l,r)))}}return i.length>0&&n.push(new o.TEXT(i)),n},t.start=c},Owjd:function(e){e.exports=JSON.parse('{"1 comment":"1 commentaire","1 like":"1 J\'aime","1 repost":"1 partage","Details":"Voir les commentaires","Getting website data...":"Obtention des données du site Web ...","Load activities":"Voir les nouvelles publications","Load more":"voir plus","New Post":"Nouvelle publication","No data to display...":"Aucune donnée à afficher","Pick your emoji":"Choisissez votre emoji","Post":"Publier","Start Typing...":"Démarrez la saisie...","Type your post...":"Tapez votre message","You have 1 new notification":"Vous avez reçu 1 nouvelle notification","You have {{ notificationCount }} new notifications":"Vous avez reçu {{ notificationCount }} nouvelles notifications","{{ actorName }} and 1 other commented on your {{ activityVerb }}":"{{ actorName }} et 1 autre ont commenté votre {{ activityVerb }}","{{ actorName }} and 1 other followed you":"{{ actorName }} et 1 autre vous suivent désormais","{{ actorName }} and 1 other liked your {{ activityVerb }}":"{{ actorName }} et 1 autre ont aimé votre {{ activityVerb }}","{{ actorName }} and 1 other reposted your {{ activityVerb }}":"{{ actorName }} et 1 autre ont partagé votre {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}":"{{ actorName }} et {{ countOtherActors }} autres ont commenté votre {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others followed you":"{{ actorName }} et {{ countOtherActors }} autres vous suivent désormais","{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}":"{{ actorName }} et {{ countOtherActors }} autres ont aimé votre {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}":"{{ actorName }} et {{ countOtherActors }} autres ont partagé votre {{ activityVerb }}","{{ actorName }} commented on your {{ activityVerb }}":"{{ actorName }} a commenté votre {{ activityVerb }}","{{ actorName }} followed you":"{{ actorName }} vous suit désormais","{{ actorName }} liked your {{ activityVerb }}":"{{ actorName }} a aimé votre {{ activityVerb }}","{{ actorName }} reposted your {{ activityVerb }}":"{{ actorName }} a partagé votre {{ activityVerb }}","{{ countComments }} comments":"{{ countComments }} commentaires","{{ countLikes }} likes":"{{ countLikes }} J\'aime","{{ countReposts }} reposts":"{{ countReposts }} partages"}')},P2u4:function(e,t,r){var n=r("nEaP"),o=r("/dUa"),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},P9a0:function(e,t,r){(function(e,n){var o;!function(i){var a=t,s=(e&&e.exports,"object"==typeof n&&n);s.global!==s&&s.window;var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,f=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},d=/["&'<>`]/g,h={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},m=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,v=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},y={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},w={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},O=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],_=String.fromCharCode,x={}.hasOwnProperty,j=function(e,t){return x.call(e,t)},k=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=j(e,r)?e[r]:t[r];return n},A=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&P("character reference outside the permissible Unicode range"),"�"):j(w,e)?(t&&P("disallowed character reference"),w[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r65535&&(r+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=_(e))},E=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},S=function(e){return"&#"+e+";"},P=function(e){throw Error("Parse error: "+e)},C=function e(t,r){(r=k(r,e.options)).strict&&v.test(t)&&P("forbidden code point");var n=r.encodeEverything,o=r.useNamedReferences,i=r.allowUnsafeSymbols,a=r.decimal?S:E,s=function(e){return a(e.charCodeAt(0))};return n?(t=t.replace(u,(function(e){return o&&j(p,e)?"&"+p[e]+";":s(e)})),o&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),o&&(t=t.replace(f,(function(e){return"&"+p[e]+";"})))):o?(i||(t=t.replace(d,(function(e){return"&"+p[e]+";"}))),t=(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(f,(function(e){return"&"+p[e]+";"}))):i||(t=t.replace(d,s)),t.replace(c,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return a(1024*(t-55296)+r-56320+65536)})).replace(l,s)};C.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function e(t,r){var n=(r=k(r,e.options)).strict;return n&&m.test(t)&&P("malformed character reference"),t.replace(g,(function(e,t,o,i,a,s,c,u,l){var f,p,d,h,m,v;return t?b[m=t]:o?(m=o,(v=i)&&r.isAttributeValue?(n&&"="==v&&P("`&` did not start a character reference"),e):(n&&P("named character reference was not terminated by a semicolon"),y[m]+(v||""))):a?(d=a,p=s,n&&!p&&P("character reference was not terminated by a semicolon"),f=parseInt(d,10),A(f,n)):c?(h=c,p=u,n&&!p&&P("character reference was not terminated by a semicolon"),f=parseInt(h,16),A(f,n)):(n&&P("named character reference was not terminated by a semicolon"),e)}))};T.options={isAttributeValue:!1,strict:!1};var R={version:"1.2.0",encode:C,decode:T,escape:function(e){return e.replace(d,(function(e){return h[e]}))},unescape:T};void 0===(o=function(){return R}.call(t,r,t,e))||(e.exports=o)}()}).call(this,r("RoC8")(e),r("pCvA"))},PAOY:function(e,t,r){var n=r("iMLE")({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=n},PB2k:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.Collections=t.CollectionEntry=void 0;var o=n(r("1M3q")),i=n(r("OXsn")),a=n(r("Sgbw")),s=n(r("AcCc")),c=n(r("g2JX")),u=r("XqWt"),l=function(){function e(t,r,n,o){(0,a.default)(this,e),(0,c.default)(this,"id",void 0),(0,c.default)(this,"collection",void 0),(0,c.default)(this,"store",void 0),(0,c.default)(this,"data",void 0),(0,c.default)(this,"full",void 0),this.collection=r,this.store=t,this.id=n,this.data=o}var t,r,n,u;return(0,s.default)(e,[{key:"ref",value:function(){return"SO:".concat(this.collection,":").concat(this.id)}},{key:"get",value:(u=(0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.get(this.collection,this.id);case 2:return t=e.sent,this.data=t.data,this.full=t,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"add",value:(n=(0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.add(this.collection,this.id,this.data);case 2:return t=e.sent,this.data=t.data,this.full=t,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"update",value:(r=(0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.update(this.collection,this.id,this.data);case 2:return t=e.sent,this.data=t.data,this.full=t,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"delete",value:(t=(0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.delete(this.collection,this.id);case 2:return t=e.sent,this.data=null,this.full=null,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();t.CollectionEntry=l;var f=function(){function e(t,r){(0,a.default)(this,e),(0,c.default)(this,"client",void 0),(0,c.default)(this,"token",void 0),(0,c.default)(this,"buildURL",(function(e,t){var r="collections/".concat(e,"/");return void 0===t?r:"".concat(r).concat(t,"/")})),this.client=t,this.token=r}var t,r,n;return(0,s.default)(e,[{key:"entry",value:function(e,t,r){return new l(this,e,t,r)}},{key:"get",value:(n=(0,i.default)(o.default.mark((function e(t,r){var n,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.get({url:this.buildURL(t,r),token:this.token});case 2:return n=e.sent,(i=this.entry(n.collection,n.id,n.data)).full=n,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"add",value:(r=(0,i.default)(o.default.mark((function e(t,r,n){var i,a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.post({url:this.buildURL(t),body:{id:null===r?void 0:r,data:n},token:this.token});case 2:return i=e.sent,(a=this.entry(i.collection,i.id,i.data)).full=i,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"update",value:(t=(0,i.default)(o.default.mark((function e(t,r,n){var i,a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.put({url:this.buildURL(t,r),body:{data:n},token:this.token});case 2:return i=e.sent,(a=this.entry(i.collection,i.id,i.data)).full=i,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"delete",value:function(e,t){return this.client.delete({url:this.buildURL(e,t),token:this.token})}},{key:"upsert",value:function(e,t){if(!this.client.usingApiSecret)throw new u.SiteError("This method can only be used server-side using your API Secret");return Array.isArray(t)||(t=[t]),this.client.post({url:"collections/",serviceName:"api",body:{data:(0,c.default)({},e,t)},token:this.client.getCollectionsToken()})}},{key:"select",value:function(e,t){if(!this.client.usingApiSecret)throw new u.SiteError("This method can only be used server-side using your API Secret");return Array.isArray(t)||(t=[t]),this.client.get({url:"collections/",serviceName:"api",qs:{foreign_ids:t.map((function(t){return"".concat(e,":").concat(t)})).join(",")},token:this.client.getCollectionsToken()})}},{key:"deleteMany",value:function(e,t){if(!this.client.usingApiSecret)throw new u.SiteError("This method can only be used server-side using your API Secret");Array.isArray(t)||(t=[t]);var r={collection_name:e,ids:t.map((function(e){return e.toString()})).join(",")};return this.client.delete({url:"collections/",serviceName:"api",qs:r,token:this.client.getCollectionsToken()})}}]),e}();t.Collections=f},PCqT:function(e,t){e.exports=!1},PHxc:function(e,t,r){var n=r("cm7J");e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},PWxN:function(e,t,r){var n=r("NmMy"),o=r("0711"),i=r("JZQH"),a=r("sWZd"),s=r("V2ZB"),c=r("fdVR"),u=r("yF7r"),l=r("zIph"),f=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,l(e),r),u&&(r=o(r,7,c));for(var f=t.length;f--;)i(r,t[f]);return r}));e.exports=f},PYDc:function(e,t,r){var n=r("FEiO");e.exports=function(){this.__data__=n?n(null):{},this.size=0}},PbS7:function(e,t,r){var n=r("+dZb")("merge",r("HVn3"));n.placeholder=r("IOY3"),e.exports=n},Pdo2:function(e,t,r){"use strict";r.d(t,"d",(function(){return g})),r.d(t,"i",(function(){return b})),r.d(t,"c",(function(){return y})),r.d(t,"a",(function(){return O})),r.d(t,"b",(function(){return x})),r.d(t,"e",(function(){return k})),r.d(t,"f",(function(){return A})),r.d(t,"g",(function(){return E})),r.d(t,"h",(function(){return S}));var n=r("HtiD"),o=r("1M3q"),i=r.n(o),a=r("mXGw"),s=r("49Kr"),c=r.n(s),u=r("jTUD"),l=r.n(u),f=r("Kv1s"),p=r.n(f),d=r("oCnO"),h=r.n(d),m=r("cBTi"),v=r.n(m);function g(e,t){return("string"==typeof e&&"z"===e[e.length-1].toLowerCase()?t(e):t(e).add(l()(e).utcOffset(),"minute")).fromNow()}function b(e){return!e||"string"==typeof e||function(e){return!!e&&"string"==typeof e.error}(e)?{id:"!not-found",created_at:"",updated_at:"",data:{name:"Unknown",profileImage:""}}:e}function y(){return w()+w()+"-"+w()+"-"+w()+"-"+w()+"-"+w()+w()+w()}function w(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function O(e){if(!e||!e.length)return!1;for(var t=0;t1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n0)&&(n.unobserve(t),n.disconnect(),r())}))}))).observe(t),{instance:n,el:t}))},r.render=function(){var e=this,t=this.props,r=t.to,n=t.getProps,i=void 0===n?this.defaultGetProps:n,a=t.onClick,c=t.onMouseEnter,f=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),d=t.replace,h=t._location,m=(0,o.default)(t,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"]);var v=b(r,h.pathname);return g(v)?u.default.createElement(l.Link,(0,s.default)({to:v,state:f,getProps:i,innerRef:this.handleRef,onMouseEnter:function(e){c&&c(e),___loader.hovering((0,p.parsePath)(v).pathname)},onClick:function(t){if(a&&a(t),!(0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();var r=d,n=encodeURI(v)===h.pathname;"boolean"!=typeof d&&n&&(r=!0),window.___navigate(v,{state:f,replace:r})}return!0}},m)):u.default.createElement("a",(0,s.default)({href:v},m))},t}(u.default.Component);O.propTypes=(0,s.default)({},y,{onClick:c.default.func,to:c.default.string.isRequired,replace:c.default.bool,state:c.default.object});var _=function(e,t,r){return console.warn('The "'+e+'" method is now deprecated and will be removed in Gatsby v'+r+'. Please use "'+t+'" instead.')},x=u.default.forwardRef((function(e,t){return u.default.createElement(w,(0,s.default)({innerRef:t},e))}));t.default=x;t.navigate=function(e,t){window.___navigate(b(e,window.location.pathname),t)};var j=function(e){_("push","navigate",3),window.___push(b(e,window.location.pathname))};t.push=j;t.replace=function(e){_("replace","navigate",3),window.___replace(b(e,window.location.pathname))};t.navigateTo=function(e){return _("navigateTo","navigate",3),j(e)}},SEN6:function(e,t,r){var n=r("F7vZ"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},SEuL:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("COMz")),i=n(r("Sgbw")),a=n(r("AcCc")),s=n(r("Mj04")),c=n(r("D1KR")),u=n(r("YrpG")),l=n(r("ti3h")),f=n(r("mXGw")),p=function(e){function t(e){var r;return(0,i.default)(this,t),(r=(0,s.default)(this,(0,c.default)(t).call(this,e))).handleClick=r.handleClick.bind((0,u.default)(r)),r.handleKeyDown=r.handleKeyDown.bind((0,u.default)(r)),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"handleKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.handleClick(e))}},{key:"render",value:function(){for(var e=this.props,t=e.skin,r=e.i18n,n=this.state.opened,i=[],a=1;a<=6;a++){var s=a===t,c=n||s;i.push(f.default.createElement("span",(0,o.default)({key:"skin-tone-".concat(a),className:"emoji-mart-skin-swatch".concat(s?" selected":""),"aria-label":r.skintones[a],"aria-hidden":!c},n?{role:"menuitem"}:{}),f.default.createElement("span",(0,o.default)({onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:"button"},s?{"aria-haspopup":!0,"aria-expanded":!!n}:{},n?{"aria-pressed":!!s}:{},{tabIndex:c?"0":"","aria-label":r.skintones[a],title:r.skintones[a],"data-skin":a,className:"emoji-mart-skin emoji-mart-skin-tone-".concat(a)}))))}return f.default.createElement("section",{className:"emoji-mart-skin-swatches".concat(n?" opened":""),"aria-label":r.skintext},f.default.createElement("div",n?{role:"menubar"}:{},i))}}]),t}(n(r("3hyD")).default);t.default=p,p.defaultProps={onChange:function(){}}},SHde:function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},SJSz:function(e,t,r){"use strict";var n=r("JRM0"),o=r("3I4I"),i=r("9pAD"),a=r("zrDt"),s=r("jmUq"),c=r("iSxr");n({target:"Array",proto:!0},{flatMap:function(e){var t,r=i(this),n=a(r.length);return s(e),(t=c(r,0)).length=o(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},SN9N:function(e,t,r){var n=r("Dh2Y"),o=r("dIZa");e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},SUHN:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r("mXGw");var n=r("LFXc"),o=r("aD51");"undefined"!=typeof DropdownPanelProps&&DropdownPanelProps&&DropdownPanelProps===Object(DropdownPanelProps)&&Object.isExtensible(DropdownPanelProps)&&!DropdownPanelProps.hasOwnProperty("__filemeta")&&Object.defineProperty(DropdownPanelProps,"__filemeta",{configurable:!0,value:{name:"DropdownPanelProps",filename:"src/components/DropdownPanel.tsx"}});var i=function(e){var t=e.arrow,r=void 0!==t&&t,i=e.right,a=void 0!==i&&i,s=e.Header,c=e.Footer,u=e.children;return Object(o.c)("div",{"data-testid":"dp-wrapper",className:"raf-dropdown-panel"+(r?" raf-dropdown-panel--arrow":"")+" "+(a?" raf-dropdown-panel--right raf-dropdown-panel--arrow-right":" raf-dropdown-panel--left raf-dropdown-panel--arrow-left")},!!s&&Object(o.c)("div",{className:"raf-dropdown-panel__header"},Object(n.a)(s)),Object(o.c)("div",{className:"raf-dropdown-panel__content"},u),!!c&&Object(o.c)("div",{className:"raf-dropdown-panel__footer"},Object(n.a)(c)))};void 0!==i&&i&&i===Object(i)&&Object.isExtensible(i)&&!i.hasOwnProperty("__filemeta")&&Object.defineProperty(i,"__filemeta",{configurable:!0,value:{name:"DropdownPanel",filename:"src/components/DropdownPanel.tsx"}})},Sgbw:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},SkE4:function(e,t,r){var n,o,i,a=r("P2u4"),s=r("nEaP"),c=r("fT8P"),u=r("nHIk"),l=r("tF07"),f=r("MoOl"),p=r("3pC9"),d=r("s3NK"),h=s.WeakMap;if(a){var m=f.state||(f.state=new h),v=m.get,g=m.has,b=m.set;n=function(e,t){if(g.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,b.call(m,e,t),t},o=function(e){return v.call(m,e)||{}},i=function(e){return g.call(m,e)}}else{var y=p("state");d[y]=!0,n=function(e,t){if(l(e,y))throw new TypeError("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},SmY9:function(e,t,r){var n=r("jmUq"),o=r("9pAD"),i=r("DJGK"),a=r("zrDt"),s=function(e){return function(t,r,s,c){n(r);var u=o(t),l=i(u),f=a(u.length),p=e?f-1:0,d=e?-1:1;if(s<2)for(;;){if(p in l){c=l[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in l&&(c=r(c,l[p],p,u));return c}};e.exports={left:s(!1),right:s(!0)}},Sq4h:function(e,t,r){var n=r("QDPn"),o=r("9aUh");e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return o(i)?i:r}}},SyCk:function(e,t,r){var n=r("RqPZ"),o=r("ckUF");e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},T5cu:function(e,t,r){var n=r("5Zwl"),o=r("9aUh");e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},T9Ud:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},TDIH:function(e,t,r){"use strict";var n=r("ovh1"),o=r("5QbJ"),i=r("uahg"),a=r("Zrjs");function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var c=s(r("bRtl"));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=r("tImM"),c.CancelToken=r("OHXD"),c.isCancel=r("e5jZ"),c.all=function(e){return Promise.all(e)},c.spread=r("6s8r"),c.isAxiosError=r("OBDY"),e.exports=c,e.exports.default=c},TE3c:function(e,t){e.exports=function(e,t){return t||(e=e.toLowerCase()),e.charAt(0).toUpperCase()+e.substring(1)},e.exports.words=function(e,t){return t||(e=e.toLowerCase()),e.replace(/(?!^[0-9])(^|[^a-zA-Z\u00C0-\u017F\u0400-\u04FF'])([a-zA-Z\u00C0-\u017F\u0400-\u04FF])/g,(function(e){return e.toUpperCase()}))}},TEbo:function(e,t,r){var n=r("Qn7i");e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},TRAi:function(e,t,r){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var n=window.sessionStorage.getItem(r);return n?JSON.parse(n):0}catch(o){return window&&window.___GATSBY_REACT_ROUTER_SCROLL&&window.___GATSBY_REACT_ROUTER_SCROLL[r]?window.___GATSBY_REACT_ROUTER_SCROLL[r]:0}},t.save=function(e,t,r){var n=this.getStateKey(e,t),o=JSON.stringify(r);try{window.sessionStorage.setItem(n,o)}catch(i){window&&window.___GATSBY_REACT_ROUTER_SCROLL||(window.___GATSBY_REACT_ROUTER_SCROLL={}),window.___GATSBY_REACT_ROUTER_SCROLL[n]=JSON.parse(o)}},t.getStateKey=function(e,t){var r="@@scroll|"+e.pathname;return null==t?r:r+"|"+t},e}();t.SessionStorage=n},TSPQ:function(e,t,r){var n=r("s3t7"),o=r("T9Ud");e.exports=function(e){return o(e)&&"[object WeakMap]"==n(e)}},TUkA:function(e,t,r){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var n=r("Gkb8"),o=r("2PKq"),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new n.CharacterState(e)},p=f(),d=f(o.NUM),h=f(o.DOMAIN),m=f(),v=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(u,v),v.on(u,v);for(var g=0;g=0&&u++,s++,o++;if(!(u<0)){o-=u,s-=u;var l=c.emit();n.push(new l(e.substr(o-s,s)))}}return n},t.start=R},TsNJ:function(e,t){e.exports=function(e){return function(t){return e(t)}}},"U+o8":function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.PickerPropTypes=t.EmojiPropTypes=void 0;var o=n(r("W0B4")),i={data:o.default.object.isRequired,onOver:o.default.func,onLeave:o.default.func,onClick:o.default.func,fallback:o.default.func,backgroundImageFn:o.default.func,native:o.default.bool,forceSize:o.default.bool,tooltip:o.default.bool,useButton:o.default.bool,skin:o.default.oneOf([1,2,3,4,5,6]),sheetSize:o.default.oneOf([16,20,32,64]),sheetColumns:o.default.number,sheetRows:o.default.number,set:o.default.oneOf(["apple","google","twitter","facebook"]),size:o.default.number.isRequired,emoji:o.default.oneOfType([o.default.string,o.default.object]).isRequired};t.EmojiPropTypes=i;var a={onClick:o.default.func,onSelect:o.default.func,onSkinChange:o.default.func,perLine:o.default.number,emojiSize:o.default.number,i18n:o.default.object,style:o.default.object,title:o.default.string,emoji:o.default.string,color:o.default.string,set:i.set,skin:i.skin,native:o.default.bool,backgroundImageFn:i.backgroundImageFn,sheetSize:i.sheetSize,emojisToShowFilter:o.default.func,showPreview:o.default.bool,showSkinTones:o.default.bool,emojiTooltip:i.tooltip,useButton:i.useButton,theme:o.default.oneOf(["auto","light","dark"]),include:o.default.arrayOf(o.default.string),exclude:o.default.arrayOf(o.default.string),recent:o.default.arrayOf(o.default.string),autoFocus:o.default.bool,enableFrequentEmojiSort:o.default.bool,custom:o.default.arrayOf(o.default.shape({name:o.default.string.isRequired,short_names:o.default.arrayOf(o.default.string).isRequired,emoticons:o.default.arrayOf(o.default.string),keywords:o.default.arrayOf(o.default.string),imageUrl:o.default.string,spriteUrl:o.default.string,sheet_x:o.default.number,sheet_y:o.default.number,size:o.default.number,sheetColumns:o.default.number,sheetRows:o.default.number})),skinEmoji:o.default.string,notFound:o.default.func,notFoundEmoji:o.default.string,icons:o.default.object};t.PickerPropTypes=a},UAPb:function(e,t,r){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},UBk5:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));r("x3Br");var n=r("mXGw"),o=r.n(n),i=r("u8FO"),a=r.n(i),s=r("mG8t"),c=r("wphe"),u=r.n(c),l=r("aD51");u()(s),function(e){var t=e.scanner.TOKENS,r=e.parser.TOKENS.Base,n=e.parser.start;function o(e){this.v=e}e.inherits(r,o,{type:"hashtag",isLink:!0});var i=n.jump(t.POUND),a=new e.parser.State(o);i.on(t.DOMAIN,a),i.on(t.UNDERSCORE,a),i.on(t.TLD,a),i.on(t.LOCALHOST,a),a.on(t.UNDERSCORE,i)}(s);var f=function(e){var t=e.type,r=e.word,n=e.parentClass,i=e.value,a=e.clickCallback,s=void 0===a?function(){}:a;return Object(l.c)(o.a.Fragment,null,!r.startsWith(i)&&r.slice(0,r.indexOf(i)),Object(l.c)("a",{onClick:function(){return s(i.substring(1))},className:n+"__"+t},i),!r.endsWith(i)&&r.slice(r.indexOf(i)+i.length))},p=function(e,t,r,n){if(!e)return Object(l.c)(o.a.Fragment,null);var i=e.split(/\r\n|\r|\n/).map((function(e,o){return e.split(" ").map((function(e,i){return function(e,t,r,n,o){var i=s.find(e)[0];if(!i)return e;var c=i.type,u=i.value,p=i.href;return n&&"mention"===c?Object(l.c)(f,{key:t,type:c,value:u,word:e,clickCallback:n,parentClass:r}):o&&"hashtag"===c?Object(l.c)(f,{key:t,type:c,value:u,word:e,clickCallback:o,parentClass:r}):"email"===c||"url"===c?Object(l.c)("a",{href:encodeURI(p),className:r+"__link",target:"blank","data-testid":"renderWord-hyperlink",rel:"nofollow noreferrer noopener",key:t},"email"===c?u:a()(u.replace(/(http(s?):\/\/)?(www\.)?/,""),{length:33})):e}(e,"item-"+o+"-"+i,t,r,n)})).reduce((function(e,t){return e.length?[e," ",t]:[t]}),[])})).reduce((function(e,t){return e.length?[e,"\n",t]:[t]}),[]);return Object(l.c)(o.a.Fragment,null,i)};void 0!==p&&p&&p===Object(p)&&Object.isExtensible(p)&&!p.hasOwnProperty("__filemeta")&&Object.defineProperty(p,"__filemeta",{configurable:!0,value:{name:"textRenderer",filename:"src/utils/textRenderer.tsx"}})},UCma:function(e,t,r){"use strict";var n=r("vODl"),o=function(e){this._state=-1,this._value=null,this._defer=[],i(this,e)};o.prototype.then=function(e,t){var r=new o,n={promise:r,onFulfilled:e,onRejected:t};return-1===this._state?this._defer.push(n):a(this,n),r},o.prototype.catch=function(e){return this.then(null,e)};var i=function(e,t){if("function"==typeof t){var r=0,n=function(t){0==r++&&l(e,t)};try{t((function(t){0==r++&&s(e,t)}),n)}catch(o){n(o)}}},a=function(e,t){var r=e._state,o=e._value,i=t.promise,a=[t.onFulfilled,t.onRejected][r];if("function"!=typeof a)return(0,[s,l][r])(i,o);n((function(){try{s(i,a(o))}catch(e){l(i,e)}}))},s=function(e,t){if(e===t)return l(e,new TypeError("Recursive promise chain detected"));var r;try{r=c(t)}catch(n){return l(e,n)}if(!r)return u(e,t);i(e,(function(e,n){r.call(t,e,n)}))},c=function(e){var t=typeof e,r=("object"===t||"function"===t)&&e&&e.then;return"function"==typeof r?r:null},u=function(e,t){f(e,0,t)},l=function(e,t){f(e,1,t)},f=function(e,t,r){var n=e._defer,o=0;if(e._state=t,e._value=r,e._defer=null,0!==n.length)for(;o>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[r]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},URdw:function(e,t,r){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"hi",weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(e){return e},formats:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"}};return e.locale(t,null,!0),t}(r("jTUD"))},UVdV:function(e,t,r){var n=r("lUv3"),o=r("nEaP"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},UgeB:function(e,t,r){var n=r("GI0s"),o=r("T9Ud");e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},Uhub:function(e,t,r){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var n=r("UAPb"),o=r("xwaA"),i=r("2PKq");function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,n.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,o.inherits)(s,(0,n.createTokenClass)(),{type:"email",isLink:!0}),u=(0,o.inherits)(s,(0,n.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(s,(0,n.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(s,(0,n.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(s,(0,n.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,r=!1,n=this.v,o=[],s=0;n[s]instanceof i.PROTOCOL;)t=!0,o.push(n[s].toString().toLowerCase()),s++;for(;n[s]instanceof i.SLASH;)r=!0,o.push(n[s].toString()),s++;for(;a(n[s]);)o.push(n[s].toString().toLowerCase()),s++;for(;so?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n0)return s[s.length-1];if(e&&e.location.pathname===o)return a?decodeURI(a.slice(1)):[0,0];return!0}var P=function(e){function t(t){var r;return(r=e.call(this,t)||this).announcementRef=s.a.createRef(),r}Object(o.a)(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){var r=this;requestAnimationFrame((function(){var e="new page at "+r.props.location.pathname;document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var n="Navigated to "+e;r.announcementRef.current&&(r.announcementRef.current.innerText!==n&&(r.announcementRef.current.innerText=n))}))},r.render=function(){return Object(O.c)("div",Object(n.a)({},b,{ref:this.announcementRef}))},t}(s.a.Component),C=function(e,t){var r,n;return e.href!==t.href||(null==e||null===(r=e.state)||void 0===r?void 0:r.key)!==(null==t||null===(n=t.state)||void 0===n?void 0:n.key)},T=function(e){function t(t){var r;return r=e.call(this,t)||this,k(t.location,null),r}Object(o.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){A(this.props.location,null)},r.shouldComponentUpdate=function(e){return!!C(e.location,this.props.location)&&(k(this.props.location,e.location),!0)},r.componentDidUpdate=function(e){C(e.location,this.props.location)&&A(this.props.location,e.location)},r.render=function(){return Object(O.c)(s.a.Fragment,null,this.props.children,Object(O.c)(P,{location:location}))},t}(s.a.Component),R=r("IOVJ"),D=r("NsGk"),L=r.n(D),I=r("HGLW");function N(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t0&&r("NSX3");var e=function(e){return Object(O.c)(l.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},Object(O.c)(R.a,e))},t=s.a.createContext({}),a=function(e){function r(){return e.apply(this,arguments)||this}return Object(o.a)(r,e),r.prototype.render=function(){var e=this.props.children;return Object(O.c)(l.Location,null,(function(r){var n=r.location;return Object(O.c)(q,{location:n},(function(r){var n=r.pageResources,o=r.location,i=Object(m.getStaticQueryResults)();return Object(O.c)(h.b.Provider,{value:i},Object(O.c)(t.Provider,{value:{pageResources:n,location:o}},e))}))}))},r}(s.a.Component),c=function(r){function i(){return r.apply(this,arguments)||this}return Object(o.a)(i,r),i.prototype.render=function(){var r=this;return Object(O.c)(t.Consumer,null,(function(t){var o=t.pageResources,i=t.location;return Object(O.c)(T,{location:i},Object(O.c)(f.ScrollContext,{location:i,shouldUpdateScroll:S},Object(O.c)(l.Router,{basepath:"/react-activity-feed",location:i,id:"gatsby-focus-wrapper"},Object(O.c)(e,Object(n.a)({path:"/404.html"===o.page.path?Object(U.a)(i.pathname,"/react-activity-feed"):encodeURI(o.page.matchPath||o.page.path)},r.props,{location:i,pageResources:o},o.json)))))}))},i}(s.a.Component),p=window,v=p.pagePath,g=p.location;v&&"/react-activity-feed"+v!==g.pathname&&!(B.findMatchPath(Object(U.a)(g.pathname,"/react-activity-feed"))||"/404.html"===v||v.match(/^\/404\/?$/)||v.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&Object(l.navigate)("/react-activity-feed"+v+g.search+g.hash,{replace:!0}),m.publicLoader.loadPage(g.pathname).then((function(e){if(!e||e.status===m.PageResourceStatus.Error)throw new Error("page resources for "+g.pathname+" not found. Not rendering React");window.___webpackCompilationHash=e.page.webpackCompilationHash;var t=Object(i.apiRunner)("wrapRootElement",{element:Object(O.c)(c,null)},Object(O.c)(c,null),(function(e){return{element:e.result}})).pop(),r=function(){return Object(O.c)(a,null,t)},n=Object(i.apiRunner)("replaceHydrateFunction",void 0,u.a.hydrate)[0];d()((function(){n(Object(O.c)(r,null),"undefined"!=typeof window?document.getElementById("___gatsby"):void 0,(function(){Object(i.apiRunner)("onInitialClientRender")}))}))}))}))},UzdM:function(e,t,r){var n=r("j6ZD");e.exports=function(e){return e?(e=n(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"V+BL":function(e,t,r){var n=r("X30S"),o=r("DAq4"),i=r("2CTe"),a=r("wH0I");e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},V2ZB:function(e,t,r){var n=r("F3Ab"),o=r("Dh2Y");e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s0&&0===(b-=1)&&l.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(c.returnFocus(r.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),h.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(c.setupScopedFocus(r.node),c.markForFocusLater()),r.setState({isOpen:!0},(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},(function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())}))},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(r.content,e),r.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n="object"===(void 0===t?"undefined":o(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},i=n.base;return r.state.afterOpen&&(i=i+" "+n.afterOpen),r.state.beforeClose&&(i=i+" "+n.beforeClose),"string"==typeof t&&t?i+" "+t:i},r.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(r,n){return r[e+"-"+n]=t[n],r}),{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&f.add(document.body,o),n&&f.add(document.getElementsByTagName("html")[0],n),r&&(b+=1,l.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=r?{}:i.content,c=o?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(l,a);return this.props.overlayElement(u,f)}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default},W9fh:function(e,t,r){var n=r("fT8P");e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"WEz/":function(e,t,r){var n=r("eTd+");e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},"WMT/":function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t||r<0||v&&n>=g},b=function(t){return s.current=null,m&&c.current?e(t):(c.current=u.current=null,l.current)},y=function e(){var n=Date.now();if(o(n))return b(n);if(p.current){var s=n-i.current,c=n-a.current,u=t-s,l=v?Math.min(u,g-c):u;r(e,l)}},w=function(){for(var f=[],d=0;d1&&Object(B.c)("ol",{className:"raf-status-update-form__url-list"},w.availableOg.map((function(e){var t=e.url,r=e.title;return Object(B.c)("li",{onClick:function(){return w.setActiveOg(t)},key:t,className:"raf-status-update-form__url-list-item"+(t===w.ogActiveUrl?" raf-status-update-form__url-list-item--active":"")},Object(B.c)(a.a,{icon:s.a})," ",void 0!==r?r:t)}))),w.images.order.length>0&&Object(B.c)(c.f,{imageUploads:w.images.order.map((function(e){return w.images.data[e]})),handleRemove:w.removeImage,handleRetry:function(e){return w.uploadImage(e,w.images.data[e])},handleFiles:w.uploadNewFiles}),w.files.order.length>0&&Object(B.c)(c.b,{uploads:w.files.order.map((function(e){return w.files.data[e]})),handleRemove:w.removeFile,handleRetry:function(e){return w.uploadFile(e,w.files.data[e])},handleFiles:w.uploadNewFiles})),Object(B.c)(D.c,null,Object(B.c)("div",{style:{display:"flex",alignItems:"center"}},Object(B.c)("div",{style:{flex:1}},Object(B.c)("div",{style:{marginRight:"32px",display:"inline-block"}},Object(B.c)(c.g,{resetOnChange:!0,handleFiles:w.uploadNewFiles,multiple:!0})),Object(B.c)("div",{style:{marginRight:"32px",display:"inline-block"}},Object(B.c)(c.c,{handleFiles:w.uploadNewFiles,multiple:!0})),Object(B.c)(q.a,{onSelect:w.onSelectEmoji,emojiData:p}),h),Object(B.c)(U.a,{type:"submit",buttonStyle:"primary",loading:w.submitting,disabled:!w.canSubmit()},y("Post")))))))}"undefined"!=typeof StatusUpdateFormProps&&StatusUpdateFormProps&&StatusUpdateFormProps===Object(StatusUpdateFormProps)&&Object.isExtensible(StatusUpdateFormProps)&&!StatusUpdateFormProps.hasOwnProperty("__filemeta")&&Object.defineProperty(StatusUpdateFormProps,"__filemeta",{configurable:!0,value:{name:"StatusUpdateFormProps",filename:"src/components/StatusUpdateForm/StatusUpdateForm.tsx"}}),void 0!==H&&H&&H===Object(H)&&Object.isExtensible(H)&&!H.hasOwnProperty("__filemeta")&&Object.defineProperty(H,"__filemeta",{configurable:!0,value:{name:"StatusUpdateForm",filename:"src/components/StatusUpdateForm/StatusUpdateForm.tsx"}})},WRuO:function(e,t,r){var n=r("RW/s"),o=r("e1Ej"),i=r("zEvu"),a=r("Chmn"),s=r("AJMQ"),c=r("kCQp");function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},WYPT:function(e,t,r){var n=r("JpX9");function o(e,t,r){var i=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},Wbzz:function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return u}));var n=r("mXGw"),o=r.n(n),i=r("SDHo"),a=r.n(i);r.d(t,"a",(function(){return a.a}));r("5LHb"),r("lw3w");var s=r("emEt"),c=(r("aD51"),s.default.enqueue,o.a.createContext({}));var u=function(e){var t;o.a.useContext;var r=o.a.useContext(c);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+e+"`);\n");if(null!==(t=r[e])&&void 0!==t&&t.data)return r[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")}},WenO:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("Sgbw")),i=n(r("AcCc")),a=n(r("Mj04")),s=n(r("D1KR")),c=n(r("YrpG")),u=n(r("ti3h")),l=n(r("mXGw")),f=r("cZH0"),p=n(r("v5HE")),d=r("s/V/"),h=0,m=function(e){function t(e){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e))).state={icon:f.search.search,isSearching:!1,id:++h},r.data=e.data,r.emojiIndex=new p.default(r.data),r.setRef=r.setRef.bind((0,c.default)(r)),r.clear=r.clear.bind((0,c.default)(r)),r.handleKeyUp=r.handleKeyUp.bind((0,c.default)(r)),r.handleChange=(0,d.throttleIdleTask)(r.handleChange.bind((0,c.default)(r))),r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.input&&this.input.value&&this.search(this.input.value)}},{key:"search",value:function(e){""==e?this.setState({icon:f.search.search,isSearching:!1}):this.setState({icon:f.search.delete,isSearching:!0}),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:"clear",value:function(){""!=this.input.value&&(this.input.value="",this.input.focus(),this.search(""))}},{key:"handleChange",value:function(){this.input&&this.search(this.input.value)}},{key:"handleKeyUp",value:function(e){13===e.keyCode&&this.clear()}},{key:"setRef",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.i18n,r=e.autoFocus,n=this.state,o=n.icon,i=n.isSearching,a=n.id,s="emoji-mart-search-".concat(a);return l.default.createElement("section",{className:"emoji-mart-search","aria-label":t.search},l.default.createElement("input",{id:s,ref:this.setRef,type:"search",onChange:this.handleChange,placeholder:t.search,autoFocus:r}),l.default.createElement("label",{className:"emoji-mart-sr-only",htmlFor:s},t.search),l.default.createElement("button",{className:"emoji-mart-search-icon",onClick:this.clear,onKeyUp:this.handleKeyUp,"aria-label":t.clear,disabled:!i},o()))}}]),t}(l.default.PureComponent);t.default=m,m.defaultProps={onSearch:function(){},maxResults:75,emojisToShowFilter:null,autoFocus:!1}},WjHG:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));r("mXGw");var n=r("wlos"),o=r("/asK"),i=r("aD51");"undefined"!=typeof LabelFunction&&LabelFunction&&LabelFunction===Object(LabelFunction)&&Object.isExtensible(LabelFunction)&&!LabelFunction.hasOwnProperty("__filemeta")&&Object.defineProperty(LabelFunction,"__filemeta",{configurable:!0,value:{name:"LabelFunction",filename:"src/components/NewActivitiesNotification.tsx"}}),"undefined"!=typeof NewActivitiesNotificationProps&&NewActivitiesNotificationProps&&NewActivitiesNotificationProps===Object(NewActivitiesNotificationProps)&&Object.isExtensible(NewActivitiesNotificationProps)&&!NewActivitiesNotificationProps.hasOwnProperty("__filemeta")&&Object.defineProperty(NewActivitiesNotificationProps,"__filemeta",{configurable:!0,value:{name:"NewActivitiesNotificationProps",filename:"src/components/NewActivitiesNotification.tsx"}});var a=function(e,t){return"You have "+e+" new "+t},s=function(e){var t=e.adds,r=void 0===t?[]:t,s=e.deletes,c=void 0===s?[]:s,u=e.labelPlural,l=e.labelSingle,f=e.onClick,p=e.labelFunction,d=Object(o.b)().t,h=(null!=p?p:function(e){var t=e.addCount,r=e.labelPlural,n=e.labelSingle;return t?t>1?r?a(t,r):d("You have {{ notificationCount }} new notifications",{notificationCount:t}):n?a(1,n):d("You have 1 new notification"):null})({addCount:r.length,deleteCount:c.length,count:r.length+c.length,labelPlural:u,labelSingle:l});return h?Object(i.c)("button",{className:"raf-new-activities-notification",type:"button",onClick:f},Object(i.c)(n.a,null,h)):null};void 0!==s&&s&&s===Object(s)&&Object.isExtensible(s)&&!s.hasOwnProperty("__filemeta")&&Object.defineProperty(s,"__filemeta",{configurable:!0,value:{name:"NewActivitiesNotification",filename:"src/components/NewActivitiesNotification.tsx"}})},WjON:function(e,t,r){var n=r("zcvR");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},WmI9:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("swbX"),i=r("oW2I"),a=r("pGZ+"),s=r("mXGw");t.default={Playground:n.c,Props:n.d,LoadingIndicator:o.h,InfiniteScroll:i.a,resolveAfter:a.e,StatefulComponent:a.a,React:s}},WmJE:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r("mXGw");var n=r("KV5O"),o=r("aD51");"undefined"!=typeof TimeHeaderProps&&TimeHeaderProps&&TimeHeaderProps===Object(TimeHeaderProps)&&Object.isExtensible(TimeHeaderProps)&&!TimeHeaderProps.hasOwnProperty("__filemeta")&&Object.defineProperty(TimeHeaderProps,"__filemeta",{configurable:!0,value:{name:"TimeHeaderProps",filename:"src/components/TimeHeader.tsx"}});var i=function(e){var t=e.children;return Object(o.c)("div",{className:"raf-time-header"},Object(o.c)(n.a,{size:14},t),Object(o.c)("div",{className:"raf-time-header__line"}))};void 0!==i&&i&&i===Object(i)&&Object.isExtensible(i)&&!i.hasOwnProperty("__filemeta")&&Object.defineProperty(i,"__filemeta",{configurable:!0,value:{name:"TimeHeader",filename:"src/components/TimeHeader.tsx"}})},WmRU:function(e,t,r){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return e.locale(t,null,!0),t}(r("jTUD"))},"X/0h":function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},X30S:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},X3Hh:function(e,t,r){var n=r("QDPn"),o=r("iZmY");function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},"X7+o":function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return je})),r.d(t,"b",(function(){return xe}));r("x3Br");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r-1;o--){var i=r[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=i)}return v.head.insertBefore(t,n),e}}function Y(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function X(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function J(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r],";")}),"")}function K(e){return e.size!==G.size||e.x!==G.x||e.y!==G.y||e.rotate!==G.rotate||e.flipX||e.flipY}function Z(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function $(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ee(e){var t=e.icons,r=t.main,n=t.mask,o=e.prefix,i=e.iconName,a=e.transform,c=e.symbol,u=e.title,l=e.maskId,f=e.titleId,p=e.extra,d=e.watchable,h=void 0!==d&&d,m=n.found?n:r,v=m.width,g=m.height,b="fak"===o,y=b?"":"fa-w-".concat(Math.ceil(v/g*16)),w=[j.replacementClass,i?"".concat(j.familyPrefix,"-").concat(i):"",y].filter((function(e){return-1===p.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(p.classes).join(" "),O={children:[],attributes:s({},p.attributes,{"data-prefix":o,"data-icon":i,class:w,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(g)})},_=b&&!~p.classes.indexOf("fa-fw")?{width:"".concat(v/g*16*.0625,"em")}:{};h&&(O.attributes["data-fa-i2svg"]=""),u&&O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(f||Y())},children:[u]});var x=s({},O,{prefix:o,iconName:i,main:r,mask:n,maskId:l,transform:a,symbol:c,styles:s({},_,p.styles)}),k=n.found&&r.found?function(e){var t,r=e.children,n=e.attributes,o=e.main,i=e.mask,a=e.maskId,c=e.transform,u=o.width,l=o.icon,f=i.width,p=i.icon,d=Z({transform:c,containerWidth:f,iconWidth:u}),h={tag:"rect",attributes:s({},Q,{fill:"white"})},m=l.children?{children:l.children.map($)}:{},v={tag:"g",attributes:s({},d.inner),children:[$(s({tag:l.tag,attributes:s({},l.attributes,d.path)},m))]},g={tag:"g",attributes:s({},d.outer),children:[v]},b="mask-".concat(a||Y()),y="clip-".concat(a||Y()),w={tag:"mask",attributes:s({},Q,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},O={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=p,"g"===t.tag?t.children:[t])},w]};return r.push(O,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},Q)}),{children:r,attributes:n}}(x):function(e){var t=e.children,r=e.attributes,n=e.main,o=e.transform,i=J(e.styles);if(i.length>0&&(r.style=i),K(o)){var a=Z({transform:o,containerWidth:n.width,iconWidth:n.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:s({},n.icon.attributes,a.path)}]}]})}else t.push(n.icon);return{children:t,attributes:r}}(x),A=k.children,E=k.attributes;return x.children=A,x.attributes=E,c?function(e){var t=e.prefix,r=e.iconName,n=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===i?"".concat(t,"-").concat(j.familyPrefix,"-").concat(r):i}),children:n}]}]}(x):function(e){var t=e.children,r=e.main,n=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(K(a)&&r.found&&!n.found){var c={x:r.width/r.height/2,y:.5};o.style=J(s({},i,{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(x)}var te=function(){},re=(j.measurePerformance&&g&&g.mark&&g.measure,function(e,t,r,n){var o,i,a,s=Object.keys(e),c=s.length,u=void 0!==n?function(e,t){return function(r,n,o,i){return e.call(t,r,n,o,i)}}(t,n):t;for(void 0===r?(o=1,a=e[s[0]]):(o=0,a=r);o2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,o=void 0!==n&&n,i=Object.keys(t).reduce((function(e,r){var n=t[r];return!!n.icon?e[n.iconName]=n.icon:e[r]=n,e}),{});"function"!=typeof A.hooks.addPack||o?A.styles[e]=s({},A.styles[e]||{},i):A.hooks.addPack(e,i),"fas"===e&&ne("fa",t)}var oe=A.styles,ie=A.shims,ae=function(){var e=function(e){return re(oe,(function(t,r,n){return t[n]=re(r,e,{}),t}),{})};e((function(e,t,r){return t[3]&&(e[t[3]]=r),e})),e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in oe;re(ie,(function(e,r){var n=r[0],o=r[1],i=r[2];return"far"!==o||t||(o="fas"),e[n]={prefix:o,iconName:i},e}),{})};ae();A.styles;function se(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function ce(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?X(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(X(e[r]),'" ')}),"").trim()}(n),">").concat(i.map(ce).join(""),"")}var ue=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],o=r.slice(1).join("-");if(n&&"h"===o)return e.flipX=!0,e;if(n&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(n){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t};function le(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le;var fe={fill:"currentColor"},pe={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},de={tag:"path",attributes:s({},fe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},he=s({},pe,{attributeName:"opacity"});s({},fe,{cx:"256",cy:"364",r:"28"}),s({},pe,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},he,{values:"1;0;1;1;0;1;"}),s({},fe,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},he,{values:"1;0;0;0;0;1;"}),s({},fe,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},he,{values:"0;0;1;1;0;0;"}),A.styles;function me(e){var t=e[0],r=e[1],n=c(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(j.familyPrefix,"-").concat(O.GROUP)},children:[{tag:"path",attributes:{class:"".concat(j.familyPrefix,"-").concat(O.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(j.familyPrefix,"-").concat(O.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}A.styles;function ve(){var e="svg-inline--fa",t=j.familyPrefix,r=j.replacementClass,n='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==t||r!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),a=new RegExp("\\.".concat(e),"g");n=n.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(a,".".concat(r))}return n}function ge(){j.autoAddCss&&!_e&&(W(ve()),_e=!0)}function be(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ce(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=v.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,r=void 0===t?"fa":t,n=e.iconName;if(n)return se(Oe.definitions,r,n)||se(A.styles,r,n)}var we,Oe=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,(r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?G:r,o=t.symbol,i=void 0!==o&&o,a=t.mask,c=void 0===a?null:a,u=t.maskId,l=void 0===u?null:u,f=t.title,p=void 0===f?null:f,d=t.titleId,h=void 0===d?null:d,m=t.classes,v=void 0===m?[]:m,g=t.attributes,b=void 0===g?{}:g,y=t.styles,w=void 0===y?{}:y;if(e){var O=e.prefix,_=e.iconName,x=e.icon;return be(s({type:"icon"},e),(function(){return ge(),j.autoA11y&&(p?b["aria-labelledby"]="".concat(j.replacementClass,"-title-").concat(h||Y()):(b["aria-hidden"]="true",b.focusable="false")),ee({icons:{main:me(x),mask:c?me(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:O,iconName:_,transform:s({},G,n),symbol:i,title:p,maskId:l,titleId:h,extra:{attributes:b,styles:w,classes:v}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:ye(e||{}),n=t.mask;return n&&(n=(n||{}).icon?n:ye(n||{})),we(r,s({},t,{mask:n}))})}).call(this,r("pCvA"),r("oPUo").setImmediate)},XA32:function(e,t){e.exports=function(e){return e.placeholder}},XHox:function(e,t,r){var n=r("+dZb")("head",r("9lU+"),r("hgXp"));n.placeholder=r("IOY3"),e.exports=n},XXCu:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},Xd03:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("sIZM"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,UserBar:o.a,React:i}},XqWt:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.StreamApiError=t.MissingSchemaError=t.SiteError=t.FeedError=void 0;var o=n(r("Sgbw")),i=n(r("YrpG")),a=n(r("ti3h")),s=n(r("Mj04")),c=n(r("D1KR")),u=n(r("R1KO")),l=n(r("g2JX"));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var p="function"==typeof Error.captureStackTrace,d=!!(new Error).stack,h=function(e){(0,a.default)(r,e);var t=f(r);function r(e){var n;return(0,o.default)(this,r),n=t.call(this,e),(0,l.default)((0,i.default)(n),"message",void 0),n.message=e,p?Error.captureStackTrace((0,i.default)(n),r.constructor):n.stack=d?(new Error).stack:"",n}return r}((0,u.default)(Error)),m=function(e){(0,a.default)(r,e);var t=f(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return r}(h);t.FeedError=m;var v=function(e){(0,a.default)(r,e);var t=f(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return r}(h);t.SiteError=v;var g=function(e){(0,a.default)(r,e);var t=f(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return r}(h);t.MissingSchemaError=g;var b=function(e){(0,a.default)(r,e);var t=f(r);function r(e,n,a){var s;return(0,o.default)(this,r),s=t.call(this,e),(0,l.default)((0,i.default)(s),"error",void 0),(0,l.default)((0,i.default)(s),"response",void 0),s.error=n,s.response=a,s}return r}(h);t.StreamApiError=b},XrU5:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};var n=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var r=window.getComputedStyle(e);return t?"visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==r.getPropertyValue("display")}function i(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&i(e,!r)}e.exports=t.default},YIRF:function(e,t){e.exports=function(e){return e.split("")}},"YLt+":function(e){e.exports=JSON.parse("[]")},YODn:function(e,t,r){var n=r("JpX9"),o=r("yF7r"),i=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=i},Ya6V:function(e,t,r){var n=r("nEaP"),o=r("nHIk");e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},YaJL:function(e,t,r){var n=r("LSEb"),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},Yeux:function(e,t,r){},YrpG:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},YwWt:function(e,t,r){e.exports=function(){"use strict";return function(e,t,r){var n=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,r,o,i){var a=e.name?e:e.$locale(),s=n(a[t]),c=n(a[r]),u=s||c.map((function(e){return e.substr(0,o)}));if(!i)return u;var l=a.weekStart;return u.map((function(e,t){return u[(t+(l||0))%7]}))},i=function(){return r.Ls[r.locale()]},a=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}(e.formats[t.toUpperCase()])};t.prototype.localeData=function(){return function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}}.bind(this)()},r.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return o(i(),"months")},r.monthsShort=function(){return o(i(),"monthsShort","months",3)},r.weekdays=function(e){return o(i(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return o(i(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return o(i(),"weekdaysMin","weekdays",2,e)}}}()},YxGO:function(e,t,r){var n=r("fSIz"),o=r("nEaP");e.exports="process"==n(o.process)},Yzgk:function(e,t,r){var n=r("RqPZ"),o=r("zc1V"),i=r("9aUh"),a=r("bE7W"),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},"Z/TY":function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.StreamFeed=void 0;var o=n(r("Sgbw")),i=n(r("AcCc")),a=n(r("g2JX")),s=r("oTdG"),c=r("XqWt"),u=n(r("qMz4"));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};t instanceof s.StreamUser&&(t=t.id),u.default.validateFeedSlug(e),u.default.validateUserId(t);var n={target:"".concat(e,":").concat(t)};return"number"==typeof r.limit&&(n.activity_copy_limit=r.limit),this.client.post({url:"feed/".concat(this.feedUrl,"/following/"),body:n,token:this.token})}},{key:"unfollow",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};"boolean"==typeof r.keepHistory&&r.keepHistory&&(n.keep_history="1"),u.default.validateFeedSlug(e),u.default.validateUserId(t);var o="".concat(e,":").concat(t);return this.client.delete({url:"feed/".concat(this.feedUrl,"/following/").concat(o,"/"),qs:n,token:this.token})}},{key:"following",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return e.filter&&(t.filter=e.filter.join(",")),this.client.get({url:"feed/".concat(this.feedUrl,"/following/"),qs:f(f({},e),t),token:this.token})}},{key:"followers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return e.filter&&(t.filter=e.filter.join(",")),this.client.get({url:"feed/".concat(this.feedUrl,"/followers/"),qs:f(f({},e),t),token:this.token})}},{key:"followStats",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={followers:this.id,following:this.id};return e.followerSlugs&&e.followerSlugs.length&&(t.followers_slugs=e.followerSlugs.join(",")),e.followingSlugs&&e.followingSlugs.length&&(t.following_slugs=e.followingSlugs.join(",")),this.client.get({url:"stats/follow/",qs:t,token:this.client.getOrCreateToken()||this.token})}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};e.mark_read&&e.mark_read.join&&(t.mark_read=e.mark_read.join(",")),e.mark_seen&&e.mark_seen.join&&(t.mark_seen=e.mark_seen.join(",")),this.client.replaceReactionOptions(e);var r=this.client.shouldUseEnrichEndpoint(e)?"enrich/feed/":"feed/";return this.client.get({url:"".concat(r).concat(this.feedUrl,"/"),qs:f(f({},e),t),token:this.token})}},{key:"getActivityDetail",value:function(e,t){return this.get(f({id_lte:e,id_gte:e,limit:1},t||{}))}},{key:"getFayeClient",value:function(){return this.client.getFayeClient()}},{key:"subscribe",value:function(e){if(!this.client.appId)throw new c.SiteError("Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);");var t=this.getFayeClient().subscribe("/".concat(this.notificationChannel),e);return this.client.subscriptions["/".concat(this.notificationChannel)]={token:this.token,userId:this.notificationChannel,fayeSubscription:t},t}},{key:"unsubscribe",value:function(){var e=this.client.subscriptions["/".concat(this.notificationChannel)];e&&(delete this.client.subscriptions["/".concat(this.notificationChannel)],e.fayeSubscription.cancel())}},{key:"updateActivityToTargets",value:function(e,t,r,n,o){if(!e)throw new Error("Missing `foreign_id` parameter!");if(!t)throw new Error("Missing `time` parameter!");if(!r&&!n&&!o)throw new Error('Requires you to provide at least one parameter for `newTargets`, `addedTargets`, or `removedTargets` - example: `updateActivityToTargets("foreignID:1234", new Date(), [newTargets...], [addedTargets...], [removedTargets...])`');if(r&&(n||o))throw new Error("Can't include add_targets or removedTargets if you're also including newTargets");n&&o&&n.forEach((function(e){if(o.includes(e))throw new Error("Can't have the same feed ID in addedTargets and removedTargets.")}));var i={foreign_id:e,time:t};return r&&(i.new_targets=r),n&&(i.added_targets=n),o&&(i.removed_targets=o),this.client.post({url:"feed_targets/".concat(this.feedUrl,"/activity_to_targets/"),token:this.token,body:i})}}]),e}();t.StreamFeed=p},ZFoC:function(e,t,r){"use strict";r.d(t,"b",(function(){return o.a})),r.d(t,"a",(function(){return we})),r.d(t,"c",(function(){return We})),r.d(t,"d",(function(){return Ke})),r.d(t,"e",(function(){return Ze})),r.d(t,"f",(function(){return Oe})),r.d(t,"g",(function(){return Ee})),r.d(t,"h",(function(){return Pe})),r.d(t,"i",(function(){return De})),r.d(t,"j",(function(){return ze}));r("x3Br");var n=r("hsa5"),o=r("Wbzz"),i=r("mXGw"),a=r("PbS7"),s=r.n(a),c=r("OoM2"),u=r.n(c),l=r("RhEf"),f=r.n(l),p=r("3GNe"),d=r.n(p),h=r("mwLw"),m=r.n(h),v=r("dYK0"),g=r.n(v),b=r("EqhP"),y=r.n(b),w=r("bb6g");function O(e){return e.toLowerCase()}var _=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],x=/[^A-Z0-9]+/gi;function j(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}function k(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function A(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=void 0===r?_:r,o=t.stripRegexp,i=void 0===o?x:o,a=t.transform,s=void 0===a?O:a,c=t.delimiter,u=void 0===c?" ":c,l=j(j(e,n,"$1\0$2"),i,"\0"),f=0,p=l.length;"\0"===l.charAt(f);)f++;for(;"\0"===l.charAt(p-1);)p--;return l.slice(f,p).split("\0").map(s).join(u)}(e,Object(w.a)({delimiter:"",transform:k},t))}var E=r("HcYh"),S=r.n(E),P=r("9xxD"),C=r.n(P),T=r("knvM"),R=r.n(T),D=r("GC0P"),L=r.n(D),I=r("G4dw"),N=r.n(I),M=r("eciW"),F=r.n(M);function q(e){var t=new Error(e);return t.source="ulid",t}var U="0123456789ABCDEFGHJKMNPQRSTVWXYZ",z=U.length,B=Math.pow(2,48)-1;function H(e){var t=Math.floor(e()*z);return t===z&&(t=z-1),U.charAt(t)}function V(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>B)throw q("cannot encode time greater than "+B);if(e<0)throw q("time must be positive");if(!1===Number.isInteger(e))throw q("time must be an integer");for(var r=void 0,n="";t>0;t--)n=U.charAt(r=e%z)+n,e=(e-r)/z;return n}function G(e,t){for(var r="";e>0;e--)r=H(t)+r;return r}function W(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];t||(t="undefined"!=typeof window?window:null);var n=t&&(t.crypto||t.msCrypto);if(n)return function(){var e=new Uint8Array(1);return n.getRandomValues(e),e[0]/255};try{var o=r("DGBo");return function(){return o.randomBytes(1).readUInt8()/255}}catch(i){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(i){}return function(){return Math.random()}}throw q("secure crypto unusable, insecure Math.random not allowed")}var Y,X=(Y||(Y=W()),function(e){return isNaN(e)&&(e=Date.now()),V(e,10)+G(16,Y)}),J={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},K=Object.keys(J).join("|"),Z=new RegExp(K,"g"),Q=new RegExp(K,""),$=function(e){return e.replace(Z,(function(e){return J[e]}))},ee=$,te=function(e){return!!e.match(Q)},re=$;ee.has=te,ee.remove=re;var ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return e;var n=r.keys,o=r.threshold,i=void 0===o?ie.MATCHES:o,a=e.reduce((function(e,o,a){var s=ce(o,n,t,r),c=s.rankedItem,u=s.rank,l=s.keyIndex,f=s.keyThreshold;return u>=(void 0===f?i:f)&&e.push({rankedItem:c,item:o,rank:u,index:a,keyIndex:l}),e}),[]);return a.sort(le).map((function(e){return e.item}))}function ce(e,t,r,n){return t?function(e,t){return t.reduce((function(t,r){var n=function(e,t){"object"===(void 0===t?"undefined":ne(t))&&(t=t.key);var r=void 0;r="function"==typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=r?[].concat(r):null}(e,r);return n&&n.forEach((function(e){t.push({itemValue:e,attributes:pe(r)})})),t}),[])}(e,t).reduce((function(e,t,o){var i=e.rank,a=e.keyIndex,s=e.keyThreshold,c=t.itemValue,u=t.attributes,l=ue(c,r,n),f=u.minRanking,p=u.maxRanking,d=u.threshold;return l=ie.MATCHES?l=f:l>p&&(l=p),l>i&&(i=l,a=o,s=d),{rankedItem:c,rank:i,keyIndex:a,keyThreshold:s}}),{rank:ie.NO_MATCH,keyIndex:-1,keyThreshold:n.threshold}):{rankedItem:e,rank:ue(e,r,n),keyIndex:-1,keyThreshold:n.threshold}}function ue(e,t,r){if(e=fe(e,r),(t=fe(t,r)).length>e.length)return ie.NO_MATCH;if(e===t)return ie.CASE_SENSITIVE_EQUAL;var n,o,i=function(e){var t=e.toLowerCase()!==e,r=e.indexOf("-")>=0,n=e.indexOf("_")>=0;if(!t&&!n&&r)return ae.KEBAB;if(!t&&n&&!r)return ae.SNAKE;if(t&&!r&&!n){return e[0].toUpperCase()===e[0]?ae.PASCAL:ae.CAMEL}return ae.NO_CASE}(e),a=function(e,t,r){var n=e.toLowerCase().indexOf(t.toLowerCase());switch(r){case ae.SNAKE:return"_"===e[n-1];case ae.KEBAB:return"-"===e[n-1];case ae.PASCAL:case ae.CAMEL:return-1!==n&&e[n]===e[n].toUpperCase();default:return!1}}(e,t,i),s=function(e,t,r){var n=null;switch(r){case ae.SNAKE:n="_";break;case ae.KEBAB:n="-";break;case ae.PASCAL:case ae.CAMEL:n=/(?=[A-Z])/;break;default:n=null}var o=e.split(n);return t.toLowerCase().split("").reduce((function(e,t,r){var n=o[r];return e&&n&&n[0].toLowerCase()===t}),!0)}(e,t,i);return(e=e.toLowerCase())===(t=t.toLowerCase())?ie.EQUAL+i:0===e.indexOf(t)?ie.STARTS_WITH+i:-1!==e.indexOf(" "+t)?ie.WORD_STARTS_WITH+i:a?ie.STRING_CASE+i:i>0&&s?ie.STRING_CASE_ACRONYM+i:-1!==e.indexOf(t)?ie.CONTAINS+i:1===t.length?ie.NO_MATCH:-1!==(n=e,o="",n.split(" ").forEach((function(e){e.split("-").forEach((function(e){o+=e.substr(0,1)}))})),o).indexOf(t)?ie.ACRONYM+i:function(e,t){var r=0,n=0;function o(e,t,n){for(var o=n;o-1))return ie.NO_MATCH}return function(e){var n=r/t.length;return ie.MATCHES+n*(1/e)}(n-i)}(e,t)}function le(e,t){var r=e.rankedItem,n=e.rank,o=e.keyIndex,i=t.rankedItem,a=t.rank,s=t.keyIndex;return n===a?o===s?String(r).localeCompare(i):oa?-1:1}function fe(e,t){return e=""+e,t.keepDiacritics||(e=ee(e)),e}function pe(e){return"string"==typeof e&&(e={key:e}),oe({maxRanking:1/0,minRanking:-1/0},e)}se.rankings=ie,se.caseRankings=ae;var de=se,he=r("Egi+"),me=r.n(he),ve=r("TE3c"),ge=r.n(ve);"undefined"!=typeof Link&&Link&&Link===Object(Link)&&Object.isExtensible(Link)&&!Link.hasOwnProperty("__filemeta")&&Object.defineProperty(Link,"__filemeta",{configurable:!0,value:{name:"Link",filename:"node_modules/docz/dist/index.esm.js"}});var be={layout:function(e){var t=e.children;return Object(i.createElement)(i.Fragment,null,t)},notFound:function(){return Object(i.createElement)(i.Fragment,null,"Not found")},playground:function(e){var t=e.component,r=e.code;return Object(i.createElement)("div",null,t,Object(i.createElement)("pre",null,r))}},ye=Object(i.createContext)(be),we=function(e){var t=e.components,r=void 0===t?{}:t,n=e.children;return Object(i.createElement)(ye.Provider,{value:Object.assign({},be,r)},n)},Oe=function(){return Object(i.useContext)(ye)};var _e,xe,je,ke,Ae=(_e={},je=Object(i.createContext)(_e),ke=new Set,{context:je,set:function(e){return function(e){ke.forEach((function(t){return t(e)}))}(e)},Provider:(xe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state=t.props.initial||_e||{},t}Object(n.a)(t,e),t.getDerivedStateFromProps=function(e,t){return u()(e.initial,t)?null:e.initial};var r=t.prototype;return r.componentDidMount=function(){var e=this;ke.add((function(t){return e.setState(t)}))},r.componentWillUnmount=function(){ke.clear()},r.render=function(){return Object(i.createElement)(je.Provider,{value:this.state},this.props.children)},t}(i.Component),xe.displayName="DoczStateProvider",xe)}),Ee=function(){var e=Object(i.useContext)(Ae.context),t=e.transform,r=e.config,n=e.themeConfig,o=void 0===n?{}:n,a=s()(o,r?r.themeConfig:{}),c=t?t(a):a;return Object.assign({},r,{themeConfig:c})},Se=function(e){var t=e.componentName,r=e.fileName,n=Oe(),o=Object(i.useContext)(Ae.context).props,a=o&&o.length>0&&o.find((function(e){return function(e,t){return!![r,"/"+e+".","/"+f()(e)+".","/"+A(e)+"."].find((function(e){return t.key.includes(e)}))}(t,e)})),s=m()("value",a)||[],c=g()(s),u=s.find((function(e){return e.displayName===t})),l=Object(i.useMemo)((function(){return S()({createElement:i.createElement,elements:n})}),[n]);return Object(i.useMemo)((function(){var e=m()("props",u||c);return d()((function(e){var t=m()("description",e);return t?y()("description",l(t).tree,e):e}))(e)}),[l,u||c])},Pe=function(){var e=Object(i.useContext)(Ae.context);return m()("currentEntry.value",e)},Ce=function(e){var t=JSON.parse(e.data),r=t.type,n=t.payload,o=r.startsWith("state.")&&r.split(".")[1];o&&Ae.set((function(e){var t;return Object.assign({},e,((t={})[o]=n,t))}))},Te=function(e){Object(i.useEffect)((function(){if(e){var t=new WebSocket(e);return t.onmessage=Ce,function(){return t.close()}}}),[])};function Re(e,t,r){return et?r?-1:1:0}var De=function(){var e=Object(i.useContext)(Ae.context).entries,t=(void 0===e?[]:e).map((function(e){return e.value}));return C()(t,(function(e,t){return Re(e.name,t.name)}))},Le=function(e){return!e.menu},Ie=function(e,t){return t.filter(function(e){return function(t){return t.menu===e}}(e))},Ne=function(e){var t,r,n=e.filter(Le),o=(t=e,r="menu",Array.from(new Set(t.reduce((function(e,t){var n=m()(r)(t);return n?e.concat([n]):e}),[])))).map(function(e){return function(t){return{name:t,menu:Ie(t,e)}}}(e));return R()("name",o,n)},Me=F()((function e(t){var r=function(e){return"string"==typeof e?{name:e}:e}(t);return Object.assign({},r,{id:r.id||X(),parent:m()("parent",r)||m()("parent",t),menu:Array.isArray(r.menu)?r.menu.map(e):r.menu})}),(function(e){return e.href||e.route?N()("menu",e):e})),Fe=function(e,t){void 0===t&&(t=[]);var r="string"!=typeof e?m()("name",e):e,n=t.findIndex((function(e){return e===r}));return-1!==n?n:1/0},qe=function(e,t){return e.namet.name?1:0},Ue=function e(t,r){var n;return void 0===r&&(r=[]),C()(t,(void 0===(n=r)&&(n=[]),function(e,t){var r=n.map((function(e){return e.name||e}));return Re(Fe(e,r),Fe(t,r))}),qe).map((function(t){if(!t.menu)return t;var n=r.find((function(e){return e.name===t.name})),o=n&&n.menu;return Object.assign({},t,{menu:o?e(t.menu,o):C()(t.menu,qe)})}))},ze=function(e){var t=(e||{}).query,r=void 0===t?"":t,n=Object(i.useContext)(Ae.context),o=n.entries,a=n.config;if(!o)return null;var s,c,u,l,f=o.map((function(e){return e.value})),p=Ne(f),d=Object(i.useMemo)((function(){var t,r,n=function e(t,r){var n=t.map(Me),o=r.map(Me);return R()("name",n,o).map((function(t){if(!t.menu)return t;var r=o.find((function(e){return e.name===t.name})),n=r&&r.menu;return Object.assign({},t,{menu:n?e(t.menu,n):t.menu||r.menu})}))}(p,a.menu),o=Ue(n,a.menu);return t=o,(r=e&&e.filter)?t.filter(r).map((function(e){return e.menu?Object.assign({},e,{menu:e.menu.filter(r)}):e})):t}),[o,a]);return r&&r.length>0?(s=r,c=d.map((function(e){return[e].concat(e.menu||[])})),u=L()(2,c),l=Array.from(new Set(u)),de(l,s,{keys:["name"]})):d},Be=function(e,t){var r=Object(i.useRef)(t);return Object(i.useEffect)((function(){r.current=e})),r.current},He="object"==typeof window,Ve=function(e,t){return{innerHeight:He?window.innerHeight:t,innerWidth:He?window.innerWidth:e,outerHeight:He?window.outerHeight:t,outerWidth:He?window.outerWidth:e}},Ge=function(e,t,r){void 0===e&&(e=300),void 0===t&&(t=1/0),void 0===r&&(r=1/0);var n=Object(i.useState)(Ve(r,r)),o=n[0],a=n[1],s=me()(e,(function(){return a(Ve(r,r))}));return Object(i.useEffect)((function(){return window.addEventListener("resize",s),function(){window.removeEventListener("resize",s)}}),[]),o},We=function(e){var t=e.className,r=e.children,n=e.style,o=e.wrapper,a=e.__scope,s=e.__position,c=e.__code,u=e.language,l=e.useScoping,f=Oe(),p=f.playground;return p?Object(i.createElement)(p,{components:f,component:r,className:t,style:n,wrapper:o,scope:a,position:s,code:c,language:u,useScoping:l}):null},Ye=/(?:React\.)?(?:PropTypes\.)?objectOf\((?:React\.)?(?:PropTypes\.)?(\w+)\)/,Xe=function(e){return function e(t){switch(t.name.toLowerCase()){case"instanceof":return"Class("+t.value+")";case"enum":return t.computed?t.value:t.value?t.value.map((function(e){return""+e.value})).join(" │ "):t.raw;case"union":return t.value?t.value.map((function(t){return""+e(t)})).join(" │ "):t.raw;case"array":return t.raw;case"arrayof":return"Array<"+e(t.value)+">";case"custom":if(-1!==t.raw.indexOf("function")||-1!==t.raw.indexOf("=>"))return"Custom(Function)";if(-1!==t.raw.toLowerCase().indexOf("objectof")){var r=t.raw.match(Ye);return r&&r[1]?"ObjectOf("+ge()(r[1])+")":"ObjectOf"}return"Custom";case"bool":return"Boolean";case"func":return"Function";case"shape":var n=t.value,o={};return Object.keys(n).forEach((function(t){o[t]=e(n[t])})),JSON.stringify(o,null,2);default:return t.name}}(e)},Je=function(e){var t=m()("name",e.flowType||e.type);if(!t)return null;var r=t.startsWith('"')||"enum"===t,n=r?"enum":t,o=m()("type.value",e);return n?r&&"string"==typeof o||!e.flowType&&!r&&!o||e.flowType&&!e.flowType.elements?n:e.flowType?Xe(e.flowType):Xe(e.type):null},Ke=function(e){var t=e.title,r=e.isToggle,n=e.isRaw,o=e.of,a=Object(w.d)(e,["title","isToggle","isRaw","of"]),s=Oe().props,c=m()("__filemeta.filename",o),u=m()("__filemeta.name",o)||m()("displayName",o)||m()("name",o),l=Se({componentName:u,fileName:c});return s?Object(i.createElement)(s,Object.assign({title:t,isRaw:n,isToggle:r,props:l,getPropType:Je,of:o},a)):null};function Ze(e,t){return void 0===t&&(t=function(e){return e}),function(r){var n=Object(i.memo)((function(n){var o=n.db,a=n.currentEntry,s=n.children,c=Object.assign({},o,{currentEntry:a,themeConfig:e,transform:t});return Object(i.createElement)(Ae.Provider,{initial:c},Object(i.createElement)(r,null,s))}));return n.displayName=r.displayName||"DoczTheme",n}}void 0!==Ge&&Ge&&Ge===Object(Ge)&&Object.isExtensible(Ge)&&!Ge.hasOwnProperty("__filemeta")&&Object.defineProperty(Ge,"__filemeta",{configurable:!0,value:{name:"useWindowSize",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Be&&Be&&Be===Object(Be)&&Object.isExtensible(Be)&&!Be.hasOwnProperty("__filemeta")&&Object.defineProperty(Be,"__filemeta",{configurable:!0,value:{name:"usePrevious",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==ze&&ze&&ze===Object(ze)&&Object.isExtensible(ze)&&!ze.hasOwnProperty("__filemeta")&&Object.defineProperty(ze,"__filemeta",{configurable:!0,value:{name:"useMenus",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==De&&De&&De===Object(De)&&Object.isExtensible(De)&&!De.hasOwnProperty("__filemeta")&&Object.defineProperty(De,"__filemeta",{configurable:!0,value:{name:"useDocs",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Te&&Te&&Te===Object(Te)&&Object.isExtensible(Te)&&!Te.hasOwnProperty("__filemeta")&&Object.defineProperty(Te,"__filemeta",{configurable:!0,value:{name:"useDataServer",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Pe&&Pe&&Pe===Object(Pe)&&Object.isExtensible(Pe)&&!Pe.hasOwnProperty("__filemeta")&&Object.defineProperty(Pe,"__filemeta",{configurable:!0,value:{name:"useCurrentDoc",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Ee&&Ee&&Ee===Object(Ee)&&Object.isExtensible(Ee)&&!Ee.hasOwnProperty("__filemeta")&&Object.defineProperty(Ee,"__filemeta",{configurable:!0,value:{name:"useConfig",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Oe&&Oe&&Oe===Object(Oe)&&Object.isExtensible(Oe)&&!Oe.hasOwnProperty("__filemeta")&&Object.defineProperty(Oe,"__filemeta",{configurable:!0,value:{name:"useComponents",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Se&&Se&&Se===Object(Se)&&Object.isExtensible(Se)&&!Se.hasOwnProperty("__filemeta")&&Object.defineProperty(Se,"__filemeta",{configurable:!0,value:{name:"useComponentProps",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Ze&&Ze&&Ze===Object(Ze)&&Object.isExtensible(Ze)&&!Ze.hasOwnProperty("__filemeta")&&Object.defineProperty(Ze,"__filemeta",{configurable:!0,value:{name:"theme",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Ae&&Ae&&Ae===Object(Ae)&&Object.isExtensible(Ae)&&!Ae.hasOwnProperty("__filemeta")&&Object.defineProperty(Ae,"__filemeta",{configurable:!0,value:{name:"doczState",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==Ke&&Ke&&Ke===Object(Ke)&&Object.isExtensible(Ke)&&!Ke.hasOwnProperty("__filemeta")&&Object.defineProperty(Ke,"__filemeta",{configurable:!0,value:{name:"Props",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==We&&We&&We===Object(We)&&Object.isExtensible(We)&&!We.hasOwnProperty("__filemeta")&&Object.defineProperty(We,"__filemeta",{configurable:!0,value:{name:"Playground",filename:"node_modules/docz/dist/index.esm.js"}}),void 0!==we&&we&&we===Object(we)&&Object.isExtensible(we)&&!we.hasOwnProperty("__filemeta")&&Object.defineProperty(we,"__filemeta",{configurable:!0,value:{name:"ComponentsProvider",filename:"node_modules/docz/dist/index.esm.js"}})},ZJgW:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("O6/i"),i=r("eX3J"),a=r("mXGw");t.default={Playground:n.c,Props:n.d,DataLabel:o.a,Flex:i.a,React:a}},ZPhZ:function(e,t,r){var n=r("fRAL"),o=r("Sq4h"),i=r("ySkN"),a=r("97Yx"),s=r("XA32"),c=r("cud3"),u=r("s3UK");e.exports=function(e,t,r){var l=o(e);return function o(){for(var f=arguments.length,p=Array(f),d=f,h=s(o);d--;)p[d]=arguments[d];var m=f<3&&p[0]!==h&&p[f-1]!==h?[]:c(p,h);if((f-=m.length)1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var r=e;return t&&Object.keys(t).forEach((function(e){r=r.replace(e,t[e])})),r}function b(){return void 0!==e.window?e.window.innerWidth:0}var y=27,w=37,O=39,_=function(t){function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}(this,p(r).call(this,e))).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=o.a.createRef(),t.zoomInBtn=o.a.createRef(),t.zoomOutBtn=o.a.createRef(),t.caption=o.a.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(h(h(t))),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(h(h(t))),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(h(h(t))),t.handleKeyInput=t.handleKeyInput.bind(h(h(t))),t.handleMouseUp=t.handleMouseUp.bind(h(h(t))),t.handleMouseDown=t.handleMouseDown.bind(h(h(t))),t.handleMouseMove=t.handleMouseMove.bind(h(h(t))),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(h(h(t))),t.handleTouchStart=t.handleTouchStart.bind(h(h(t))),t.handleTouchMove=t.handleTouchMove.bind(h(h(t))),t.handleTouchEnd=t.handleTouchEnd.bind(h(h(t))),t.handlePointerEvent=t.handlePointerEvent.bind(h(h(t))),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(h(h(t))),t.handleWindowResize=t.handleWindowResize.bind(h(h(t))),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(h(h(t))),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(h(h(t))),t.requestClose=t.requestClose.bind(h(h(t))),t.requestMoveNext=t.requestMoveNext.bind(h(h(t))),t.requestMovePrev=t.requestMovePrev.bind(h(h(t))),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,t),c(r,null,[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,r=void 0===t?0:t,n=e.y,o=void 0===n?0:n,i=e.zoom,a=void 0===i?1:i,s=e.width,c=e.targetWidth,u=r,l=b();s>l&&(u+=(l-s)/2);var f=a*(c/s);return{transform:"translate3d(".concat(u,"px,").concat(o,"px,0) scale3d(").concat(f,",").concat(f,",1)")}}}]),c(r,[{key:"componentWillMount",value:function(){this.timeouts=[],this.currentAction=0,this.eventsSource=0,this.pointerList=[],this.preventInnerClose=!1,this.preventInnerCloseTimeout=null,this.keyPressed=!1,this.imageCache={},this.lastKeyDownTime=0,this.resizeTimeout=null,this.wheelActionTimeout=null,this.resetScrollTimeout=null,this.scrollX=0,this.scrollY=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,this.pinchTouchList=null,this.pinchDistance=0,this.keyCounter=0,this.moveRequested=!1,this.props.animationDisabled||this.setState({isClosing:!1})}},{key:"componentDidMount",value:function(){var t=this;this.windowContext=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.window.self,n=r.document.referrer;if(r===e.window.top||!n)return r;var o=function(e){return e.match(/(.*\/\/.*?)(\/|$)/)[1]};return o(r.location.href)===o(n)?t(r.parent):r}(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(e){t.windowContext.addEventListener(e,t.listeners[e])})),this.loadAllImages()}},{key:"componentWillReceiveProps",value:function(e){var t=this,r=!1,n={},o={};this.getSrcTypes().forEach((function(i){t.props[i.name]!==e[i.name]&&(r=!0,n[t.props[i.name]]=!0,o[e[i.name]]=!0)})),(r||this.moveRequested)&&(Object.keys(n).forEach((function(e){!(e in o)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(e))}},{key:"shouldComponentUpdate",value:function(){return!this.moveRequested}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var r=this,n=setTimeout((function(){r.timeouts=r.timeouts.filter((function(e){return e!==n})),e()}),t);return this.timeouts.push(n),n}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],r={};if(this.isImageLoaded(t))r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:r.height,targetWidth:r.width}}},{key:"getFitSizes",value:function(e,t,r){var n=this.getLightboxRect(),o=n.height-2*this.props.imagePadding,i=n.width-2*this.props.imagePadding;return r||(o=Math.min(o,t),i=Math.min(i,e)),i/o>e/t?{width:e*o/t,height:o}:{width:i,height:t*i/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var r=this.getLightboxRect(),n=this.getZoomMultiplier(e),o=0,i=0;return{maxX:o=n*t.width-r.width<0?(r.width-n*t.width)/2:(n*t.width-r.width)/2,maxY:i=n*t.height-r.height<0?(r.height-n*t.height)/2:(n*t.height-r.height)/2,minX:-1*o,minY:-1*i}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:b(),height:void 0!==e.window?e.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,r){if(this.props.enableZoom){var n=Math.max(0,Math.min(300,e));if(n!==this.state.zoomLevel)if(0!==n){var o=this.getBestImageForType("mainSrc");if(null!==o){var i=this.getZoomMultiplier(),a=this.getZoomMultiplier(n),s=this.getLightboxRect(),c=void 0!==t?t-s.left:s.width/2,u=void 0!==r?r-s.top:s.height/2,l=(s.width-o.width*i)/2,f=(s.height-o.height*i)/2,p=c-(c-(l-this.state.offsetX))/i*a,d=u-(u-(f-this.state.offsetY))/i*a,h=(s.width-o.width*a)/2-p,m=(s.height-o.height*a)/2-d;if(3!==this.currentAction){var v=this.getMaxOffsets();this.state.zoomLevel>n&&(h=Math.max(v.minX,Math.min(v.maxX,h)),m=Math.max(v.minY,Math.min(v.maxY,m)))}this.setState({zoomLevel:n,offsetX:h,offsetY:m})}}else this.setState({zoomLevel:n,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,r=new Date;if(!(r.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),r=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),r=500,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),r))}}},{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0);default:return!1}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&r.isTargetMatchImage(e.target)&&(this.addPointer(r.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[r.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(r.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":r.isTargetMatchImage(e.target)&&(this.addPointer(r.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[r.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(r.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&r.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(r.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return r.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(r.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,r=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=r,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,r=e.y,n=this.moveStartX-t+this.moveStartOffsetX,o=this.moveStartY-r+this.moveStartOffsetY;this.state.offsetX===n&&this.state.offsetY===o||this.setState({offsetX:n,offsetY:o})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),r=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),n=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));r===this.state.offsetX&&n===this.state.offsetY||(this.setState({offsetX:r,offsetY:n,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,r=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=r,this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipe",value:function(e){var t=e.x,r=e.y;this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,r=Math.abs(t),n=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||r<1.5*n)){if(r<200)if(r0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=m(e,2),r=t[0],n=t[1];return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=m(e,2),r=t[0],n=t[1];return{x:r.x-(r.x-n.x)/2,y:r.y-(r.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var r=0;r0&&t+o>=n||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(t,r,n){var o=this;if(this.isImageLoaded(r))this.setTimeout((function(){n()}),1);else{var i=new e.Image;this.props.imageCrossOrigin&&(i.crossOrigin=this.props.imageCrossOrigin),i.onerror=function(e){o.props.onImageLoadError(r,t,e),o.setState((function(e){return{loadErrorStatus:f({},e.loadErrorStatus,u({},t,!0))}})),n(e)},i.onload=function(){o.props.onImageLoad(r,t,i),o.imageCache[r]={loaded:!0,width:i.width,height:i.height},n()},i.src=r}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=function(t,r){return function(n){n||e.props[t]!==r||e.didUnmount||e.forceUpdate()}};this.getSrcTypes().forEach((function(n){var o=n.name;t[o]&&e.state.loadErrorStatus[o]&&e.setState((function(e){return{loadErrorStatus:f({},e.loadErrorStatus,u({},o,!1))}})),t[o]&&!e.isImageLoaded(t[o])&&e.loadImage(o,t[o],r(o,t[o]))}))}},{key:"requestClose",value:function(e){var t=this,r=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?r():(this.setState({isClosing:!0}),this.setTimeout(r,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var r=this,n={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(n.shouldAnimate=!0,this.setTimeout((function(){return r.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(n),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(n),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var t=this,n=this.props,i=n.animationDisabled,s=n.animationDuration,c=n.clickOutsideToClose,u=n.discourageDownloads,p=n.enableZoom,d=n.imageTitle,h=n.nextSrc,m=n.prevSrc,b=n.toolbarButtons,y=n.reactModalStyle,w=n.onAfterOpen,O=n.imageCrossOrigin,_=n.reactModalProps,x=this.state,j=x.zoomLevel,k=x.offsetX,A=x.offsetY,E=x.isClosing,S=x.loadErrorStatus,P=this.getLightboxRect(),C={};!i&&this.isAnimating()&&(C=f({},C,{transition:"transform ".concat(s,"ms")}));var T={};this.getSrcTypes().forEach((function(e){var t=e.name,r=e.keyEnding;T[t]=r}));var R=[],D=function(e,n,i){if(t.props[e]){var a=t.getBestImageForType(e),s=f({},C,r.getTransform(f({},i,a)));j>0&&(s.cursor="move");var c;if(null===a&&(c=S,Object.keys(c).some((function(e){return c[e]}))))R.push(o.a.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:s,key:t.props[e]+T[e]},o.a.createElement("div",{className:"ril__errorContainer"},t.props.imageLoadErrorMessage)));else if(null!==a){var p=a.src;u?(s.backgroundImage="url('".concat(p,"')"),R.push(o.a.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:t.handleImageDoubleClick,onWheel:t.handleImageMouseWheel,style:s,key:p+T[e]},o.a.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):R.push(o.a.createElement("img",l({},O?{crossOrigin:O}:{},{className:"".concat(n," ril__image"),onDoubleClick:t.handleImageDoubleClick,onWheel:t.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:s,src:p,key:p+T[e],alt:"string"==typeof d?d:g("Image"),draggable:!1})))}else{var h=o.a.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},v(new Array(12)).map((function(e,t){return o.a.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));R.push(o.a.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:s,key:t.props[e]+T[e]},o.a.createElement("div",{className:"ril__loadingContainer"},h)))}}},L=this.getZoomMultiplier();D("nextSrc","ril-image-next ril__imageNext",{x:P.width}),D("mainSrc","ril-image-current",{x:-1*k,y:-1*A,zoom:L}),D("prevSrc","ril-image-prev ril__imagePrev",{x:-1*P.width});var I={overlay:f({zIndex:1e3,backgroundColor:"transparent"},y.overlay),content:f({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},y.content)};return o.a.createElement(a.a,l({isOpen:!0,onRequestClose:c?this.requestClose:void 0,onAfterOpen:function(){t.outerEl.current&&t.outerEl.current.focus(),w()},style:I,contentLabel:g("Lightbox"),appElement:void 0!==e.window?e.window.document.body:void 0},_),o.a.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(E?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(s,"ms"),animationDuration:"".concat(s,"ms"),animationDirection:E?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},o.a.createElement("div",{className:"ril-inner ril__inner",onClick:c?this.closeIfClickInner:void 0},R),m&&o.a.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),h&&o.a.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),o.a.createElement("div",{className:"ril-toolbar ril__toolbar"},o.a.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},o.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.a.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},d))),o.a.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},b&&b.map((function(e,t){return o.a.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),p&&o.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.a.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(v(300===j?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||300===j,onClick:this.isAnimating()||300===j?void 0:this.handleZoomInButtonClick})),p&&o.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.a.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(v(0===j?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===j,onClick:this.isAnimating()||0===j?void 0:this.handleZoomOutButtonClick})),o.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.a.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&o.a.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},o.a.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}]),r}(n.Component);_.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load"},t.a=_}).call(this,r("pCvA"))},ZjZ4:function(e,t,r){var n=r("IqJI");e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},ZkUl:function(e,t,r){"use strict";r.r(t),r.d(t,"startsWith",(function(){return i})),r.d(t,"pick",(function(){return a})),r.d(t,"match",(function(){return s})),r.d(t,"resolve",(function(){return c})),r.d(t,"insertParams",(function(){return u})),r.d(t,"validateRedirect",(function(){return l})),r.d(t,"shallowCompare",(function(){return y}));var n=r("+Ltg"),o=r.n(n),i=function(e,t){return e.substr(0,t.length)===t},a=function(e,t){for(var r=void 0,n=void 0,i=t.split("?")[0],a=v(i),s=""===a[0],c=m(e),u=0,l=c.length;ut.score?-1:e.index-t.index}))},v=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},g=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n0})))&&r.length>0?"?"+r.join("&"):"")},b=["uri","path"],y=function(e,t){var r=Object.keys(e);return r.length===Object.keys(t).length&&r.every((function(r){return t.hasOwnProperty(r)&&e[r]===t[r]}))}},Zrjs:function(e,t,r){"use strict";var n=r("ovh1");e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function u(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=c(void 0,t[e]))})),n.forEach(i,u),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(void 0,t[o])})),n.forEach(s,(function(n){n in t?r[n]=c(e[n],t[n]):n in e&&(r[n]=c(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,u),r}},Zs3A:function(e,t){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+r+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+r+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",p="(?:"+l+"|"+s+")",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+d+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,u].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*"),m="(?:"+[i,c,u].join("|")+")"+h,v=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,l,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,m].join("|"),"g");e.exports=function(e){return e.match(v)||[]}},ZxGu:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("mXGw"),o=r.n(n),i=r("swbX"),a=r("Pdo2"),s=r("aD51");function c(e){var t,r=e.activity,c=r.object,u=r.verb,l=r.attachments,f=r.actor,p=null!==(t=null==l?void 0:l.images)&&void 0!==t?t:[],d=Object(n.useMemo)((function(){return Object(a.i)(f)}),[f]);return"repost"!==u&&"post"!==u&&"comment"!==u?null:Object(s.c)("div",{className:"raf-attached-activity"},p.length?Object(s.c)("div",{className:"raf-attached-activity__images"},p.slice(0,5).map((function(e,t){return Object(s.c)(i.i,{image:e,size:50,key:"image-"+t})}))):Object(s.c)(o.a.Fragment,null,Object(s.c)("p",{className:"raf-attached-activity__author"},Object(s.c)("strong",null,d.data.name)),Object(s.c)("p",{className:"raf-attached-activity__content"},c)))}"undefined"!=typeof AttachedActivityProps&&AttachedActivityProps&&AttachedActivityProps===Object(AttachedActivityProps)&&Object.isExtensible(AttachedActivityProps)&&!AttachedActivityProps.hasOwnProperty("__filemeta")&&Object.defineProperty(AttachedActivityProps,"__filemeta",{configurable:!0,value:{name:"AttachedActivityProps",filename:"src/components/AttachedActivity.tsx"}}),void 0!==c&&c&&c===Object(c)&&Object.isExtensible(c)&&!c.hasOwnProperty("__filemeta")&&Object.defineProperty(c,"__filemeta",{configurable:!0,value:{name:"AttachedActivity",filename:"src/components/AttachedActivity.tsx"}})},a72Q:function(e,t,r){var n=r("jmUq");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},a7YA:function(e,t){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},aBIM:function(e,t,r){var n=r("zcvR");e.exports=function(e){return n(this,e).get(e)}},aCmY:function(e,t){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++in&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0d)&&(q=(B=B.replace(" ",":")).length),0=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},h={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},m=r("M8e6"),v=/[A-Z]|^ms/g,g=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(e){return 45===e.charCodeAt(1)},y=function(e){return null!=e&&"boolean"!=typeof e},w=Object(m.a)((function(e){return b(e)?e:e.replace(v,"-$&").toLowerCase()})),O=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(g,(function(e,t,r){return x={name:t,styles:r,next:x},t}))}return 1===h[e]||b(e)||"number"!=typeof t||0===t?t:t+"px"};function _(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return x={name:r.name,styles:r.styles,next:x},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)x={name:o.name,styles:o.styles,next:x},o=o.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(i)})),e.exports=c}).call(this,r("5IsQ"))},bafw:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("mXGw"),o=r("swbX"),i=r("aD51"),a=function(e){var t=e.children,r=Object(n.useState)(!1),a=r[0],s=r[1],c=Object(n.useRef)(null),u=function(e){var t,r=e.target;null!==(t=c.current)&&void 0!==t&&t.contains(r)||s((function(e){return!e}))};return Object(n.useEffect)((function(){if(a)return document.addEventListener("click",u),function(){return document.removeEventListener("click",u)}}),[a]),Object(i.c)("div",{className:"raf-dropdown"},Object(i.c)(o.d,{onClick:u},Object(i.c)("svg",{className:"raf-dropdown__button",width:"12",height:"8",viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg"},Object(i.c)("path",{d:"M1.41 0L6 4.77 10.59 0 12 1.469l-6 6.25-6-6.25z",fill:"#A0B2B8",fillRule:"evenodd"}))),a&&Object(i.c)("div",{className:"raf-dropdown__box",ref:c},t))};void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"Dropdown",filename:"src/components/Dropdown.tsx"}})},bb6g:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return c}));var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function c(){for(var e=[],t=0;t1&&t<3)switch(r){case"like":return e("{{ actorName }} and 1 other liked your {{ activityVerb }}",{actorName:n,activityVerb:o});case"repost":return e("{{ actorName }} and 1 other reposted your {{ activityVerb }}",{actorName:n,activityVerb:o});case"follow":return e("{{ actorName }} and 1 other followed you",{actorName:n});case"comment":return e("{{ actorName }} and 1 other commented on your {{ activityVerb }}",{actorName:n,activityVerb:o});default:return console.warn("No notification styling found for your verb, please create your own custom Notification group."),""}var i=t-1;switch(r){case"like":return e("{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}",{actorName:n,activityVerb:o,countOtherActors:i});case"repost":return e("{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}",{actorName:n,activityVerb:o,countOtherActors:i});case"follow":return e("{{ actorName }} and {{ countOtherActors }} others followed you",{actorName:n,countOtherActors:i});case"comment":return e("{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}",{actorName:n,activityVerb:o,countOtherActors:i});default:return console.warn("No notification styling found for your verb, please create your own custom Notification group."),""}}(m,g.length,b.verb,O.data.name,w.verb),x=Object(c.h)(p),j=d?function(e){e.stopPropagation(),d(t)}:void 0;return Object(l.c)("div",{onClick:j,className:"raf-notification "+(t.is_read?"raf-notification--read":"")},Object(l.c)(n.a,{onClick:null==x?void 0:x(O),image:O.data.profileImage,circle:!0,size:30}),Object(l.c)("div",{className:"raf-notification__content"},Object(l.c)("div",{className:"raf-notification__header"},Object(l.c)("strong",null,_),!t.is_read&&r&&Object(l.c)(a.a,null,Object(l.c)("div",null,Object(l.c)(s.a,{onClick:function(e){e.stopPropagation(),r(t)}},"Mark as read")))),Object(l.c)("div",null,Object(l.c)("small",null,Object(c.d)(b.time,v))),"follow"!==b.verb&&Object(l.c)(i.a,{activity:b.object})),Object(l.c)("div",{className:"raf-notification__extra"},g.length>1&&"follow"===b.verb&&Object(l.c)(o.a,{onClickUser:p,avatarSize:30,users:f(y)})))};void 0!==p&&p&&p===Object(p)&&Object.isExtensible(p)&&!p.hasOwnProperty("__filemeta")&&Object.defineProperty(p,"__filemeta",{configurable:!0,value:{name:"Notification",filename:"src/components/Notification.tsx"}})},"c+bQ":function(e,t,r){var n=r("mzbm"),o=r("IqJI"),i=r("bim0"),a=r("nxZd"),s=i((function(e,t){return a(e)?n(e,o(t,1,a,!0)):[]}));e.exports=s},c2OK:function(e,t,r){var n=r("fVd2"),o=r("BKxz"),i=r("yqAG"),a=r("KAl/");e.exports=function(e,t,r){var s=t+"";return i(e,o(s,a(n(s),r)))}},c3s2:function(e){e.exports=JSON.parse('{"1 comment":"1 комментарий","1 like":"1 лайк","1 repost":"1 репост","Details":"Детали","Getting website data...":"Получение данных веб-сайта ...","Load activities":"Загрузка активити","Load more":"Загрузить еще","New Post":"Новое пост","No data to display...":"Нет данных для отображения...","Pick your emoji":"Выберите emoji","Post":"Отправить","Start Typing...":"Начните набирать...","Type your post...":"Напишите ваш пост...","You have 1 new notification":"У вас одно уведомление","You have {{ notificationCount }} new notifications":"У вас {{ notificationCount }} новых уведомлений","{{ actorName }} and 1 other commented on your {{ activityVerb }}":"{{ actorName }} и еще 1 пользователь оставили комментарий на вашем {{ activityVerb }}","{{ actorName }} and 1 other followed you":"{{ actorName }} и еще 1 пользователь зафоловили вас","{{ actorName }} and 1 other liked your {{ activityVerb }}":"{{ actorName }} и еще 1 пользователю понравилась ваше {{ activityVerb }}","{{ actorName }} and 1 other reposted your {{ activityVerb }}":"{{ actorName }} и еще 1 пользоватль зарепостил ваше {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}":"{{ actorName }} и {{ countOtherActors }} других пользователе оставили комментарии на вашем {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others followed you":"{{ actorName }} и {{ countOtherActors }} других пользователей зафоловили вас","{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}":"{{ actorName }} и {{ countOtherActors }} другим пользователям понравилась ваше {{ activityVerb }}","{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}":"{{ actorName }} и {{ countOtherActors }} других пользователей зарепостили ваше {{ activityVerb }}","{{ actorName }} commented on your {{ activityVerb }}":"{{ actorName }} оставил комментарий на вашем {{ activityVerb }}","{{ actorName }} followed you":"{{ actorName }} зафоловили вас","{{ actorName }} liked your {{ activityVerb }}":"{{ actorName }} понравилось ваше {{ activityVerb }}","{{ actorName }} reposted your {{ activityVerb }}":"{{ actorName }} зарепостил ваше {{ activityVerb }}","{{ countComments }} comments":"{{ countComments }} комментариев","{{ countLikes }} likes":"{{ countLikes }} лайков","{{ countReposts }} reposts":"{{ countReposts }} репостов"}')},c8O6:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r("k0FJ"),o=r("HGLW"),i=r("oedh"),a=(r("mXGw"),r("6+Ft")),s=r("aD51");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0,v<=m.r||!m.r){v<=1&&h>0&&(m=p[h-1]);var g=f[m.l];s&&(v=s(""+v)),u="string"==typeof g?g.replace("%d",v):g(v,n,m.l,l);break}}if(n)return u;var b=l?f.future:f.past;return"function"==typeof b?b(u):b.replace("%s",u)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}}()},cLz6:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("68/1"),i=r("yGUY"),a=r("mXGw");t.default={Playground:n.c,Props:n.d,ReactionIcon:o.a,ThumbsUpIcon:i.h,React:a}},cMzW:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("ZxGu"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,AttachedActivity:o.a,React:i}},cON5:function(e,t,r){"use strict";var n=r("ovh1");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},cSJ8:function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}r.d(t,"a",(function(){return n}))},cSUU:function(e,t,r){"use strict";(function(t){var r={_registry:[],on:function(e,t,r,n){var o=function(){r.call(n)};e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),this._registry.push({_element:e,_type:t,_callback:r,_context:n,_handler:o})},detach:function(e,t,r,n){for(var o,i=this._registry.length;i--;)o=this._registry[i],e&&e!==o._element||t&&t!==o._type||r&&r!==o._callback||n&&n!==o._context||(o._element.removeEventListener?o._element.removeEventListener(o._type,o._handler,!1):o._element.detachEvent("on"+o._type,o._handler),this._registry.splice(i,1),o=null)}};void 0!==t.onunload&&r.on(t,"unload",r.detach,r),e.exports={Event:r}}).call(this,r("pCvA"))},cTHi:function(e,t,r){var n=r("zXe4");e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},cXmu:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("pGZ+"),i=r("/x7e"),a=r("mXGw");t.default={Playground:n.c,Props:n.d,WithExampleStreamApp:o.b,NotificationDropdown:i.a,React:a}},cZH0:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.search=t.categories=void 0;var o=n(r("mXGw")),i={activity:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"}))},custom:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("g",{transform:"translate(2.000000, 1.000000)"},o.default.createElement("rect",{id:"Rectangle",x:"8",y:"0",width:"3",height:"21",rx:"1.5"}),o.default.createElement("rect",{id:"Rectangle",transform:"translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) ",x:"8.343",y:"0.049",width:"3",height:"21",rx:"1.5"}),o.default.createElement("rect",{id:"Rectangle",transform:"translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) ",x:"8.343",y:"0.049",width:"3",height:"21",rx:"1.5"})))},flags:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"}))},foods:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"}))},nature:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),o.default.createElement("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"}))},objects:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),o.default.createElement("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"}))},people:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),o.default.createElement("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"}))},places:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),o.default.createElement("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"}))},recent:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),o.default.createElement("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}))},symbols:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},o.default.createElement("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"}))}};t.categories=i;var a={search:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 20 20",opacity:"0.5"},o.default.createElement("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}))},delete:function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 20 20",opacity:"0.5"},o.default.createElement("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"}))}};t.search=a},"ca/S":function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return h}));var n=r("HGLW"),o=r("mXGw"),i=r.n(o),a=r("1q4v"),s=r("doU1"),c=r("aD51");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t-1&&e%1==0&&e<=9007199254740991}},clxC:function(e,t,r){var n=r("YxGO"),o=r("G5hJ"),i=r("+iL7");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(n?38===o:o>37&&o<41)}))},cm7J:function(e,t,r){var n=r("dIZa");e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},cud3:function(e,t){e.exports=function(e,t){for(var r=-1,n=e.length,o=0,i=[];++r=400&&o<600?i:m(e,t,r)};void 0!==h&&h&&h===Object(h)&&Object.isExtensible(h)&&!h.hasOwnProperty("__filemeta")&&Object.defineProperty(h,"__filemeta",{configurable:!0,value:{name:"getErrorMessage",filename:"src/utils/errors.ts"}});var m=function(e,t,r){var n="Something went wrong",o="";switch(t){case"get-user-info":n+=" when loading user info";break;case"get-feed":n+=" when loading the feed";break;case"get-feed-next-page":n+=" when loading the next page of the feed";break;case"get-notification-counts":n+=" when loading your unread notification counts";break;case"upload-image":n+=" when uploading your image",o=" If it is, the image is probably too big";break;case"add-activity":n+=" when submitting your post";break;case"add-reaction":case"add-child-reaction":n+=" when submitting your "+r.kind;break;case"delete-reaction":case"delete-child-reaction":n+=" when removing your "+r.kind}return n+". Is your internet working?"+o};void 0!==m&&m&&m===Object(m)&&Object.isExtensible(m)&&!m.hasOwnProperty("__filemeta")&&Object.defineProperty(m,"__filemeta",{configurable:!0,value:{name:"fallbackErrorMessage",filename:"src/utils/errors.ts"}});r("x3Br");function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};b(this,e),this.init(t,r)}return w(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function I(e,t,r){var n=L(e,t,Object);n.obj[n.k]=r}function N(e,t){var r=L(e,t),n=r.obj,o=r.k;if(n)return n[o]}function M(e,t,r){var n=N(e,r);return void 0!==n?n:N(t,r)}function F(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):F(e[n],t[n],r):e[n]=t[n]);return e}function q(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var U={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function z(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return U[e]})):e}var B="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;ii+a;)a++,c=o[s=n.slice(i,i+a).join(r)];if(void 0===c)return;if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s];var u=n.slice(i+a).join(r);return u?H(c,u,r):void 0}o=o[n[i]]}return o}}var V=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return b(this,t),r=j(this,k(t).call(this)),B&&C.call(x(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return E(t,e),w(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=N(this.data,a);return s||!i||"string"!=typeof r?s:H(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),I(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=N(this.data,a)||{};n?F(s,r,o):s=g({},s,r),I(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?g({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(C),G={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}},W={},Y=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(this,t),r=j(this,k(t).call(this)),B&&C.call(x(r)),D(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,x(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=P.create("translator"),r}return E(t,e),w(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,r,n){var o=this;if("object"!==v(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],r),s=a.key,c=a.namespaces,u=c[c.length-1],l=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var p=r.nsSeparator||this.options.nsSeparator;return u+p+s}return s}var d=this.resolve(e,r),h=d&&d.res,m=d&&d.usedKey||s,b=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],O=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(_&&h&&x&&w.indexOf(y)<0&&("string"!=typeof O||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var j="[object Array]"===y,k=j?[]:{},A=j?b:m;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var S="".concat(A).concat(i).concat(E);k[E]=this.translate(S,g({},r,{joinArrays:!1,ns:c})),k[E]===S&&(k[E]=h[E])}h=k}}else if(_&&"string"==typeof O&&"[object Array]"===y)(h=h.join(O))&&(h=this.extendTranslation(h,e,r,n));else{var P=!1,C=!1,T=void 0!==r.count&&"string"!=typeof r.count,R=t.hasDefaultValue(r),D=T?this.pluralResolver.getSuffix(l,r.count):"",L=r["defaultValue".concat(D)]||r.defaultValue;!this.isValidLookup(h)&&R&&(P=!0,h=L),this.isValidLookup(h)||(C=!0,h=s);var I=R&&L!==h&&this.options.updateMissing;if(C||P||I){if(this.logger.log(I?"updateKey":"missingKey",l,u,s,I?L:h),i){var N=this.resolve(s,g({},r,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,d=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!W["".concat(d[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(W["".concat(d[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,c,l=u,d=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,u,r,e,s);else f&&(i=a.pluralResolver.getSuffix(r,s.count)),f&&p&&d.push(l+i),p&&d.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&d.push(l+=i);for(;c=d.pop();)a.isValidLookup(t)||(n=c,t=a.getResource(r,e,c,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(C);function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}var J=function(){function e(t){b(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P.create("languageUtils")}return w(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=X(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(n))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),K=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Q(){var e={};return K.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Z[t.fc]}}))})),e}var $=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,e),this.languageUtils=t,this.options=r,this.logger=P.create("pluralResolver"),this.rules=Q()}return w(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map((function(r){return t.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=this,n=this.getRule(e);if(n){var o=n.noAbs?n.plurals(t):n.plurals(Math.abs(t)),i=n.numbers[o];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b(this,e),this.logger=P.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return w(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:z,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?q(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?q(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?q(t.nestingPrefix):t.nestingPrefixEscaped||q("$t("),this.nestingSuffix=t.nestingSuffix?q(t.nestingSuffix):t.nestingSuffixEscaped||q(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=M(t,c,e);return s.alwaysFormat?s.format(o,void 0,r,g({},n,t,{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(M(t,c,a),u,r,g({},n,t,{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var r=f(e,o,n);i="string"==typeof r?r:""}else{if(p){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=R(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=g({},i);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),o="{".concat(n[1]);e=n[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=g({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(r).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var l=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=l.shift(),c=l,u=!0}if((n=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=R(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=c.reduce((function(e,t){return o.format(e,t,i.lng,g({},i,{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();var te=function(e){function t(e,r,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return b(this,t),o=j(this,k(t).call(this)),B&&C.call(x(o)),o.backend=e,o.store=r,o.services=n,o.languageUtils=n.languageUtils,o.options=i,o.logger=P.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(n,i.backend,i),o}return E(t,e),w(t,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i=[],a=[],s=[],c=[];return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,n=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),n||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:n}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){var n,s,c,u,l,f;n=r.loaded,s=i,u=L(n,[o],Object),l=u.obj,f=u.k,l[f]=l[f]||[],c&&(l[f]=l[f].concat(s)),c||l[f].push(s),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(s,c){s&&c&&o<5?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,g({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),t}(C);function re(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===v(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===v(e[2])||"object"===v(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ne(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oe(){}var ie=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(b(this,t),e=j(this,k(t).call(this)),B&&C.call(x(e)),e.options=ne(r),e.services={},e.logger=P,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),j(e,x(e));setTimeout((function(){e.init(r,n)}),0)}return e}return E(t,e),w(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function n(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=g({},re(),this.options,ne(t)),this.format=this.options.interpolation.format,r||(r=oe),!this.options.isClone){this.modules.logger?P.init(n(this.modules.logger),this.options):P.init(null,this.options);var o=new J(this.options);this.store=new V(this.options.resources,this.options);var i=this.services;i.logger=P,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new $(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new ee(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new te(n(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var u=T(),l=function(){var t=function(t,n){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=r,o="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=T();return e||(e=this.languages),t||(t=this.options.ns),r||(r=oe),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&G.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=T();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);o&&(r.language||(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o)),r.translator.language||r.translator.changeLanguage(o),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(o)),r.loadResources(o,(function(e){!function(e,o){o?(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t){var r=this,n=function e(t,n){var o;if("object"!==v(n)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(n,e)||(!this.services.backendConnector.backend||!(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=T();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=T();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,o=g({},this.options,r,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=g({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Y(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=10?e:e+12:"शाम"===t?e+12:e},meridiem:function(e){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"}}),se.a.updateLocale("fr",{calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"}}),se.a.updateLocale("tr",{calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"}}),se.a.updateLocale("ru",{calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT"}});var Se={formats:{},months:["January","February","March","April","May","June","July","August","September","October","November","December"],relativeTime:{},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pe={language:"en",disableDateTimeTranslations:!1,debug:!1,logger:function(e){return console.warn(e)},dayjsLocaleConfigForLanguage:null,DateTimeParser:se.a};"undefined"!=typeof TDateTimeParser&&TDateTimeParser&&TDateTimeParser===Object(TDateTimeParser)&&Object.isExtensible(TDateTimeParser)&&!TDateTimeParser.hasOwnProperty("__filemeta")&&Object.defineProperty(TDateTimeParser,"__filemeta",{configurable:!0,value:{name:"TDateTimeParser",filename:"src/i18n/Streami18n.ts"}}),"undefined"!=typeof LanguageCallbackFn&&LanguageCallbackFn&&LanguageCallbackFn===Object(LanguageCallbackFn)&&Object.isExtensible(LanguageCallbackFn)&&!LanguageCallbackFn.hasOwnProperty("__filemeta")&&Object.defineProperty(LanguageCallbackFn,"__filemeta",{configurable:!0,value:{name:"LanguageCallbackFn",filename:"src/i18n/Streami18n.ts"}});var Ce=function(){function e(e){var t,r,n,o,i,a,s,c=this;void 0===e&&(e={}),this.i18nInstance=ie.createInstance(),this.Dayjs=null,this.setLanguageCallback=function(){},this.initialized=!1,this.t=function(e){return e},this.translations={en:(t={},t[Ee]=be,t),nl:(r={},r[Ee]=ye,r),ru:(n={},n[Ee]=we,n),tr:(o={},o[Ee]=Oe,o),fr:(i={},i[Ee]=_e,i),hi:(a={},a[Ee]=xe,a),it:(s={},s[Ee]=je,s)},this.dayjsLocales={},this.localeExists=function(e){return!!c.isCustomDateTimeParser||Object.keys(se.a.Ls).indexOf(e)>-1},this.validateCurrentLanguage=function(){-1===Object.keys(c.translations).indexOf(c.currentLanguage)&&(c.logger("Streami18n: '"+c.currentLanguage+"' language is not registered. Please make sure to call streami18n.registerTranslation('"+c.currentLanguage+"', {...}) or use one the built-in supported languages - "+c.getAvailableLanguages()),c.currentLanguage="en")},this.geti18Instance=function(){return c.i18nInstance},this.getAvailableLanguages=function(){return Object.keys(c.translations)},this.getTranslations=function(){return c.translations};var u=Ae(Ae({},Pe),e);this.logger=u.logger,this.currentLanguage=u.language,this.DateTimeParser=u.DateTimeParser;try{this.DateTimeParser&&void 0!==this.DateTimeParser.extend&&(this.DateTimeParser.extend(de.a),this.DateTimeParser.extend(ue.a),this.DateTimeParser.extend(me.a),this.DateTimeParser.extend(ge.a))}catch(h){throw Error("Streami18n: Looks like you wanted to provide Dayjs instance, but something went wrong while adding plugins "+h)}this.isCustomDateTimeParser=!!e.DateTimeParser;var l,f,p=u.translationsForLanguage;p&&(this.translations[this.currentLanguage]=((l={})[Ee]=p,l));this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]=((f={})[Ee]={},f));this.i18nextConfig={nsSeparator:!1,keySeparator:!1,fallbackLng:!1,debug:u.debug,lng:this.currentLanguage,interpolation:{escapeValue:!1},parseMissingKeyHandler:function(e){return c.logger("Streami18n: Missing translation for key: "+e),e}},this.validateCurrentLanguage();var d=u.dayjsLocaleConfigForLanguage;d?this.addOrUpdateLocale(this.currentLanguage,Ae({},d)):this.localeExists(this.currentLanguage)||this.logger("Streami18n: Streami18n(...) - Locale config for "+this.currentLanguage+" does not exist in momentjs.Please import the locale file using \"import 'moment/locale/"+this.currentLanguage+"';\" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.tDateTimeParser=function(e){return u.disableDateTimeTranslations||!c.localeExists(c.currentLanguage)?c.DateTimeParser(e).locale("en"):c.DateTimeParser(e).locale(c.currentLanguage)}}var t=e.prototype;return t.init=function(){var e=Object(n.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateCurrentLanguage(),e.prev=1,e.next=4,this.i18nInstance.init(Ae(Ae({},this.i18nextConfig),{},{resources:this.translations,lng:this.currentLanguage}));case 4:this.t=e.sent,this.initialized=!0,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.logger("Something went wrong with init: "+e.t0);case 11:return e.abrupt("return",{t:this.t,tDateTimeParser:this.tDateTimeParser});case 12:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),t.getTranslators=function(){var e=Object(n.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initialized){e.next=7;break}return this.dayjsLocales[this.currentLanguage]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),e.next=4,this.init();case 4:return e.abrupt("return",e.sent);case 7:return e.abrupt("return",{t:this.t,tDateTimeParser:this.tDateTimeParser});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.registerTranslation=function(e,t,r){if(t){var n;if(this.translations[e])this.translations[e][Ee]=t;else this.translations[e]=((n={})[Ee]=t,n);r?this.dayjsLocales[e]=Ae({},r):this.localeExists(e)||this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) - Locale config for "+e+" does not exist in Dayjs.Please import the locale file using \"import 'dayjs/locale/"+e+"';\" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.initialized&&this.i18nInstance.addResources(e,Ee,t)}else this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation")},t.addOrUpdateLocale=function(e,t){this.localeExists(e)?se.a.updateLocale(e,Ae({},t)):se.a.locale(Ae(Ae({name:e},Se),t),void 0,!0)},t.setLanguage=function(){var e=Object(n.a)(a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentLanguage=t,this.initialized){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,this.i18nInstance.changeLanguage(t);case 6:return r=e.sent,this.dayjsLocales[t]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),this.setLanguageCallback(r),e.abrupt("return",r);case 12:return e.prev=12,e.t0=e.catch(3),this.logger("Failed to set language: "+e.t0),e.abrupt("return",this.t);case 16:case"end":return e.stop()}}),e,this,[[3,12]])})));return function(t){return e.apply(this,arguments)}}(),t.registerSetLanguageCallback=function(e){this.setLanguageCallback=e},e}();void 0!==Ce&&Ce&&Ce===Object(Ce)&&Object.isExtensible(Ce)&&!Ce.hasOwnProperty("__filemeta")&&Object.defineProperty(Ce,"__filemeta",{configurable:!0,value:{name:"Streami18n",filename:"src/i18n/Streami18n.ts"}});var Te=r("/asK"),Re=r("aD51");function De(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},eX3J:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r("HGLW"),o=(r("mXGw"),r("aD51"));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},gi03:function(e,t,r){"use strict";e.exports={CHANNEL_NAME:/^\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*$/,CHANNEL_PATTERN:/^(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*\/\*{1,2}$/,ERROR:/^([0-9][0-9][0-9]:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*(,(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)*:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*|[0-9][0-9][0-9]::(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)$/,VERSION:/^([0-9])+(\.(([a-z]|[A-Z])|[0-9])(((([a-z]|[A-Z])|[0-9])|\-|\_))*)*$/}},glsI:function(e,t,r){var n=r("wTAb"),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},guUT:function(e,t,r){"use strict";var n=r("ovh1"),o=r("4OlW"),i=r("e5jZ"),a=r("bRtl");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},guuX:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));r("mXGw");var n=r("aXhT"),o=r("tMEJ"),i=r("eX3J"),a=r("aD51");"undefined"!=typeof ActivityFooterProps&&ActivityFooterProps&&ActivityFooterProps===Object(ActivityFooterProps)&&Object.isExtensible(ActivityFooterProps)&&!ActivityFooterProps.hasOwnProperty("__filemeta")&&Object.defineProperty(ActivityFooterProps,"__filemeta",{configurable:!0,value:{name:"ActivityFooterProps",filename:"src/components/ActivityFooter.tsx"}});var s=function(e){return Object(a.c)("div",{className:"raf-activity-footer"},Object(a.c)("div",{className:"raf-activity-footer__left"}),Object(a.c)("div",{className:"raf-activity-footer__right"},Object(a.c)(i.a,{a:"center"},Object(a.c)(n.a,e),Object(a.c)(o.a,e))))};void 0!==s&&s&&s===Object(s)&&Object.isExtensible(s)&&!s.hasOwnProperty("__filemeta")&&Object.defineProperty(s,"__filemeta",{configurable:!0,value:{name:"ActivityFooter",filename:"src/components/ActivityFooter.tsx"}}),s.defaultProps={feedGroup:"user"}},gwRl:function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++ra?(r.maxWidth=i*a,r.maxHeight=i):(r.maxWidth=o,r.maxHeight=o/a),r},e.drawImage=function(e,t,r,n,o,i,a,s,c){var u=t.getContext("2d");return!1===c.imageSmoothingEnabled?(u.msImageSmoothingEnabled=!1,u.imageSmoothingEnabled=!1):c.imageSmoothingQuality&&(u.imageSmoothingQuality=c.imageSmoothingQuality),u.drawImage(e,r,n,o,i,0,0,a,s),u},e.requiresCanvas=function(e){return e.canvas||e.crop||!!e.aspectRatio},e.scale=function(t,r,n){r=r||{},n=n||{};var o,i,a,s,c,u,l,f,p,d,h,m,v=t.getContext||e.requiresCanvas(r)&&!!e.global.HTMLCanvasElement,g=t.naturalWidth||t.width,b=t.naturalHeight||t.height,y=g,w=b;function O(){var e=Math.max((a||y)/y,(s||w)/w);e>1&&(y*=e,w*=e)}function _(){var e=Math.min((o||y)/y,(i||w)/w);e<1&&(y*=e,w*=e)}if(v&&(l=(r=e.getTransformedOptions(t,r,n)).left||0,f=r.top||0,r.sourceWidth?(c=r.sourceWidth,void 0!==r.right&&void 0===r.left&&(l=g-c-r.right)):c=g-l-(r.right||0),r.sourceHeight?(u=r.sourceHeight,void 0!==r.bottom&&void 0===r.top&&(f=b-u-r.bottom)):u=b-f-(r.bottom||0),y=c,w=u),o=r.maxWidth,i=r.maxHeight,a=r.minWidth,s=r.minHeight,v&&o&&i&&r.crop?(y=o,w=i,(h=c/u-o/i)<0?(u=i*c/o,void 0===r.top&&void 0===r.bottom&&(f=(b-u)/2)):h>0&&(c=o*u/i,void 0===r.left&&void 0===r.right&&(l=(g-c)/2))):((r.contain||r.cover)&&(a=o=o||a,s=i=i||s),r.cover?(_(),O()):(O(),_())),v){if((p=r.pixelRatio)>1&&(!t.style.width||Math.floor(parseFloat(t.style.width,10))!==Math.floor(g/p))&&(y*=p,w*=p),e.orientationCropBug&&!t.getContext&&(l||f||c!==g||u!==b)&&(h=t,t=e.createCanvas(g,b,!0),e.drawImage(h,t,0,0,g,b,g,b,r)),(d=r.downsamplingRatio)>0&&d<1&&yy;)m=e.createCanvas(c*d,u*d,!0),e.drawImage(t,m,l,f,c,u,m.width,m.height,r),l=0,f=0,c=m.width,u=m.height,t=m;return m=e.createCanvas(y,w),e.transformCoordinates(m,r,n),p>1&&(m.style.width=m.width/p+"px"),e.drawImage(t,m,l,f,c,u,y,w,r).setTransform(1,0,0,1,0,0),m}return t.width=y,t.height=w,t}})?n.apply(t,o):n)||(e.exports=i)}()},hJL7:function(e,t,r){"use strict";var n=r("NFrV");e.exports=n({initialize:function(){this._index={}},add:function(e){var t=void 0!==e.id?e.id:e;return!this._index.hasOwnProperty(t)&&(this._index[t]=e,!0)},forEach:function(e,t){for(var r in this._index)this._index.hasOwnProperty(r)&&e.call(t,this._index[r])},isEmpty:function(){for(var e in this._index)if(this._index.hasOwnProperty(e))return!1;return!0},member:function(e){for(var t in this._index)if(this._index[t]===e)return!0;return!1},remove:function(e){var t=void 0!==e.id?e.id:e,r=this._index[t];return delete this._index[t],r},toArray:function(){var e=[];return this.forEach((function(t){e.push(t)})),e}})},hPk7:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("JR5N"),i=r("yGUY"),a=r("mXGw");t.default={Playground:n.c,Props:n.d,ReactionToggleIcon:o.a,ThumbsUpIcon:i.h,Color:i.d,React:a}},hRIO:function(e,t){e.exports={plugins:[]}},hUM7:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},heVN:function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o,i,a,s,c=1,u={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r=2&&n%10<=4&&(n%100<10||n%100>=20)?o[1]:o[2])}var s=function(e,n){return i.test(n)?t[e.month()]:r[e.month()]};s.s=r,s.f=t;var c=function(e,t){return i.test(t)?n[e.month()]:o[e.month()]};c.s=o,c.f=n;var u={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:c,weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(e){return e}};return e.locale(u,null,!0),u}(r("jTUD"))},hsa5:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("7gSu");function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(n.a)(e,t)}},"i/JN":function(e,t,r){var n=r("GE03"),o=r("l3+0"),i=r("BAZ7"),a=r("+165"),s=r("pZIW"),c=r("OF9M");e.exports=function(e,t,r){var u=-1,l=o,f=e.length,p=!0,d=[],h=d;if(r)p=!1,l=i;else if(f>=200){var m=t?null:s(e);if(m)return c(m);p=!1,l=a,h=new n}else h=t?[]:d;e:for(;++u=0||(g.push(e.toLowerCase()),b.push(e))})),l.default.createElement("div",{className:"emoji-mart-preview"},l.default.createElement("div",{className:"emoji-mart-preview-emoji","aria-hidden":"true"},(0,p.default)(v({key:e.id,emoji:e,data:this.data},r))),l.default.createElement("div",{className:"emoji-mart-preview-data","aria-hidden":"true"},l.default.createElement("div",{className:"emoji-mart-preview-name"},e.name),l.default.createElement("div",{className:"emoji-mart-preview-shortnames"},u.short_names.map((function(e){return l.default.createElement("span",{key:e,className:"emoji-mart-preview-shortname"},":",e,":")}))),l.default.createElement("div",{className:"emoji-mart-preview-emoticons"},b.map((function(e){return l.default.createElement("span",{key:e,className:"emoji-mart-preview-emoticon"},e)})))))}return l.default.createElement("div",{className:"emoji-mart-preview"},l.default.createElement("div",{className:"emoji-mart-preview-emoji","aria-hidden":"true"},a&&a.length&&(0,p.default)(v({emoji:a,data:this.data},r))),l.default.createElement("div",{className:"emoji-mart-preview-data","aria-hidden":"true"},l.default.createElement("span",{className:"emoji-mart-title-label"},i)),o&&l.default.createElement("div",{className:"emoji-mart-preview-skins".concat(n.skinEmoji?" custom":"")},n.skinEmoji?l.default.createElement(d.default,{skin:n.skin,emojiProps:r,data:this.data,skinEmoji:n.skinEmoji,i18n:s,onChange:n.onChange}):l.default.createElement(h.default,{skin:n.skin,i18n:s,onChange:n.onChange})))}}]),t}(l.default.PureComponent);t.default=g,g.defaultProps={showSkinTones:!0,onChange:function(){}}},jL4t:function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},jTUD:function(e,t,r){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",o="day",i="week",a="month",s="quarter",c="year",u="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+d(n,2,"0")+":"+d(o,2,"0")},m:function e(t,r){if(t.date()3&&void 0!==arguments[3]?arguments[3]:{};if((0,u.default)(this,t),(0,f.default)(this,"baseUrl",void 0),(0,f.default)(this,"baseAnalyticsUrl",void 0),(0,f.default)(this,"apiKey",void 0),(0,f.default)(this,"appId",void 0),(0,f.default)(this,"usingApiSecret",void 0),(0,f.default)(this,"apiSecret",void 0),(0,f.default)(this,"userToken",void 0),(0,f.default)(this,"enrichByDefault",void 0),(0,f.default)(this,"options",void 0),(0,f.default)(this,"userId",void 0),(0,f.default)(this,"authPayload",void 0),(0,f.default)(this,"version",void 0),(0,f.default)(this,"fayeUrl",void 0),(0,f.default)(this,"group",void 0),(0,f.default)(this,"expireTokens",void 0),(0,f.default)(this,"location",void 0),(0,f.default)(this,"fayeClient",void 0),(0,f.default)(this,"browser",void 0),(0,f.default)(this,"node",void 0),(0,f.default)(this,"nodeOptions",void 0),(0,f.default)(this,"request",void 0),(0,f.default)(this,"subscriptions",void 0),(0,f.default)(this,"handlers",void 0),(0,f.default)(this,"currentUser",void 0),(0,f.default)(this,"personalization",void 0),(0,f.default)(this,"collections",void 0),(0,f.default)(this,"files",void 0),(0,f.default)(this,"images",void 0),(0,f.default)(this,"reactions",void 0),(0,f.default)(this,"_personalizationToken",void 0),(0,f.default)(this,"_collectionsToken",void 0),(0,f.default)(this,"_getOrCreateToken",void 0),(0,f.default)(this,"addToMany",void 0),(0,f.default)(this,"followMany",void 0),(0,f.default)(this,"unfollowMany",void 0),(0,f.default)(this,"createRedirectUrl",void 0),(0,f.default)(this,"replaceReactionOptions",(function(e){null!=e&&e.reactions&&(null!=e.reactions.own&&(e.withOwnReactions=e.reactions.own),null!=e.reactions.recent&&(e.withRecentReactions=e.reactions.recent),null!=e.reactions.counts&&(e.withReactionCounts=e.reactions.counts),null!=e.reactions.own_children&&(e.withOwnChildren=e.reactions.own_children),delete e.reactions)})),(0,f.default)(this,"handleResponse",(function(e){if(/^2/.test("".concat(e.status)))return l.send("response",null,e,e.data),e.data;throw new j.StreamApiError("".concat(JSON.stringify(e.data)," with HTTP status code ").concat(e.status),e.data,e)})),(0,f.default)(this,"doAxiosRequest",function(){var e=(0,c.default)(i.default.mark((function e(t,r){var n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l.send("request",t,r),e.prev=1,e.next=4,l.request(l.enrichKwargs(C({method:t},r)));case 4:return n=e.sent,e.abrupt("return",l.handleResponse(n));case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.response){e.next=12;break}return e.abrupt("return",l.handleResponse(e.t0.response));case 12:throw new j.SiteError(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,r){return e.apply(this,arguments)}}()),this.baseUrl="https://api.stream-io-api.com/api/",this.baseAnalyticsUrl="https://analytics.stream-io-api.com/analytics/",this.apiKey=r,this.usingApiSecret=null!=n&&!n.includes("."),this.apiSecret=this.usingApiSecret?n:null,this.userToken=this.usingApiSecret?null:n,this.enrichByDefault=!this.usingApiSecret,null!=this.userToken){var _=(0,v.default)(this.userToken);if(!_.user_id)throw new TypeError("user_id is missing in user token");this.userId=_.user_id,this.currentUser=this.user(this.userId)}if(this.appId=o,this.options=d,this.version=this.options.version||"v1.0",this.fayeUrl=this.options.fayeUrl||"https://faye-us-east.stream-io-api.com/faye",this.fayeClient=null,this.group=this.options.group||"unspecified",this.subscriptions={},this.expireTokens=!!this.options.expireTokens&&this.options.expireTokens,this.location=this.options.location,this.baseUrl=this.getBaseUrl(),void 0!==e&&null!==(a={})&&void 0!==a&&a.LOCAL_FAYE&&(this.fayeUrl="http://localhost:9999/faye/"),void 0!==e&&null!==(s={})&&void 0!==s&&s.STREAM_ANALYTICS_BASE_URL&&(this.baseAnalyticsUrl={}.STREAM_ANALYTICS_BASE_URL),this.handlers={},this.browser=void 0!==this.options.browser?this.options.browser:"undefined"!=typeof window,this.node=!this.browser,this.node){var x=void 0===this.options.keepAlive||this.options.keepAlive;this.nodeOptions={httpAgent:new h.Agent({keepAlive:x,keepAliveMsecs:3e3}),httpsAgent:new m.Agent({keepAlive:x,keepAliveMsecs:3e3})}}if(this.request=p.default.create(C({timeout:this.options.timeout||1e4,withCredentials:!1},this.nodeOptions||{})),this.personalization=new g.Personalization(this),this.browser&&this.usingApiSecret)throw new j.FeedError('You are publicly sharing your App Secret. Do not expose the App Secret in browsers, "native" mobile apps, or other non-trusted environments.');this.collections=new b.Collections(this,this.getOrCreateToken()),this.files=new y.StreamFileStore(this,this.getOrCreateToken()),this.images=new w.StreamImageStore(this,this.getOrCreateToken()),this.reactions=new O.StreamReaction(this,this.getOrCreateToken()),A.default&&E.default&&(this.addToMany=A.default.addToMany,this.followMany=A.default.followMany,this.unfollowMany=A.default.unfollowMany,this.createRedirectUrl=E.default)}var r,n;return(0,l.default)(t,[{key:"_throwMissingApiSecret",value:function(){if(!this.usingApiSecret)throw new j.SiteError("This method can only be used server-side using your API Secret, use client = stream.connect(key, secret);")}},{key:"getPersonalizationToken",value:function(){return this._personalizationToken||(this._throwMissingApiSecret(),this._personalizationToken=(0,x.JWTScopeToken)(this.apiSecret,"personalization","*",{userId:"*",feedId:"*",expireTokens:this.expireTokens})),this._personalizationToken}},{key:"getCollectionsToken",value:function(){return this._collectionsToken||(this._throwMissingApiSecret(),this._collectionsToken=(0,x.JWTScopeToken)(this.apiSecret,"collections","*",{feedId:"*",expireTokens:this.expireTokens})),this._collectionsToken}},{key:"getAnalyticsToken",value:function(){return this._throwMissingApiSecret(),(0,x.JWTScopeToken)(this.apiSecret,"analytics","*",{userId:"*",expireTokens:this.expireTokens})}},{key:"getBaseUrl",value:function(t){var r,n;if(t||(t="api"),this.options.urlOverride&&this.options.urlOverride[t])return this.options.urlOverride[t];var o="api"===t?"STREAM_BASE_URL":"STREAM_".concat(t.toUpperCase(),"_URL");if(void 0!==e&&null!==(r={})&&void 0!==r&&r[o])return{}[o];if(void 0!==e&&null!==(n={})&&void 0!==n&&n.LOCAL||this.options.local)return"http://localhost:8000/".concat(t,"/");if(this.location){var i=this.options.protocol||"https";return"".concat(i,"://").concat(this.location,"-").concat(t,".stream-io-api.com/").concat(t,"/")}return"api"!==t?"https://".concat(t,".stream-io-api.com/").concat(t,"/"):this.baseUrl}},{key:"on",value:function(e,t){this.handlers[e]=t}},{key:"off",value:function(e){void 0===e?this.handlers={}:delete this.handlers[e]}},{key:"send",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};if(void 0!==e.enrich){var t=e.enrich;return delete e.enrich,t}return this.enrichByDefault||null!=e.ownReactions||null!=e.withRecentReactions||null!=e.withReactionCounts||null!=e.withOwnChildren}},{key:"enrichKwargs",value:function(e){var t=e.method,r=e.token,n=(0,s.default)(e,["method","token"]);return C({method:t,url:this.enrichUrl(n.url,n.serviceName),data:n.body,params:C({api_key:this.apiKey,location:this.group},n.qs||{}),headers:C({"X-Stream-Client":this.userAgent(),"stream-auth-type":"jwt",Authorization:r},n.headers||{})},n.axiosOptions||{})}},{key:"getFayeAuthorization",value:function(){var e=this;return{incoming:function(e,t){return t(e)},outgoing:function(t,r){if(t.subscription&&e.subscriptions[t.subscription]){var n=e.subscriptions[t.subscription];t.ext={user_id:n.userId,api_key:e.apiKey,signature:n.token}}r(t)}}}},{key:"getFayeClient",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(null===this.fayeClient){this.fayeClient=new d.Client(this.fayeUrl,{timeout:e});var t=this.getFayeAuthorization();this.fayeClient.addExtension(t)}return this.fayeClient}},{key:"upload",value:function(e,t,r,n,o){var i=k.default.addFileToFormData(t,r,n);return this.doAxiosRequest("POST",{url:e,body:i,headers:i.getHeaders?i.getHeaders():{},token:this.getOrCreateToken(),axiosOptions:{timeout:0,maxContentLength:1/0,maxBodyLength:1/0,onUploadProgress:o}})}},{key:"get",value:function(e){return this.doAxiosRequest("GET",e)}},{key:"post",value:function(e){return this.doAxiosRequest("POST",e)}},{key:"delete",value:function(e){return this.doAxiosRequest("DELETE",e)}},{key:"put",value:function(e){return this.doAxiosRequest("PUT",e)}},{key:"createUserToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._throwMissingApiSecret(),(0,x.JWTUserSessionToken)(this.apiSecret,e,t,{noTimestamp:!this.expireTokens})}},{key:"updateActivities",value:function(e){if(this._throwMissingApiSecret(),!(e instanceof Array))throw new TypeError("The activities argument should be an Array");var t=(0,x.JWTScopeToken)(this.apiSecret,"activities","*",{feedId:"*",expireTokens:this.expireTokens});return this.post({url:"activities/",body:{activities:e},token:t})}},{key:"updateActivity",value:function(e){return this._throwMissingApiSecret(),this.updateActivities([e])}},{key:"getActivities",value:function(e){var t=e.ids,r=e.foreignIDTimes,n=(0,s.default)(e,["ids","foreignIDTimes"]),o={};if(t){if(!(t instanceof Array))throw new TypeError("The ids argument should be an Array");o.ids=t.join(",")}else{if(!r)throw new TypeError("Missing ids or foreignIDTimes params");if(!(r instanceof Array))throw new TypeError("The foreignIDTimes argument should be an Array");var i=[],a=[];r.forEach((function(e){if(!(e instanceof Object))throw new TypeError("foreignIDTimes elements should be Objects");i.push(e.foreignID),a.push(e.time)})),o.foreign_ids=i.join(","),o.timestamps=a.join(",")}var c=this.userToken;this.usingApiSecret&&(c=(0,x.JWTScopeToken)(this.apiSecret,"activities","*",{feedId:"*",expireTokens:this.expireTokens})),this.replaceReactionOptions(n);var u=this.shouldUseEnrichEndpoint(n)?"enrich/activities/":"activities/";return this.get({url:u,qs:C(C({},n),o),token:c})}},{key:"getOrCreateToken",value:function(){return this._getOrCreateToken||(this._getOrCreateToken=this.usingApiSecret?(0,x.JWTScopeToken)(this.apiSecret,"*","*",{feedId:"*"}):this.userToken),this._getOrCreateToken}},{key:"user",value:function(e){return new _.StreamUser(this,e,this.getOrCreateToken())}},{key:"setUser",value:(n=(0,c.default)(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.usingApiSecret){e.next=2;break}throw new j.SiteError("This method can only be used client-side using a user token");case 2:return delete(r=C({},t)).id,e.next=6,this.currentUser.getOrCreate(r);case 6:return n=e.sent,this.currentUser=n,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"og",value:function(e){return this.get({url:"og/",qs:{url:e},token:this.getOrCreateToken()})}},{key:"personalizedFeed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.get({url:"enrich/personalization/feed/",qs:e,token:this.getOrCreateToken()})}},{key:"activityPartialUpdate",value:(r=(0,c.default)(i.default.mark((function e(t){var r,n,o,c,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.activitiesPartialUpdate([t]);case 2:return r=e.sent,n=r.activities,o=(0,s.default)(r,["activities"]),c=(0,a.default)(n,1),u=c[0],e.abrupt("return",C(C({},u),o));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"activitiesPartialUpdate",value:function(e){if(!(e instanceof Array))throw new TypeError("changes should be an Array");e.forEach((function(e){if(!(e instanceof Object))throw new TypeError("changeset should be and Object");if(e.foreignID&&(e.foreign_id=e.foreignID),void 0===e.id&&(void 0===e.foreign_id||void 0===e.time))throw new TypeError("missing id or foreign ID and time");if(e.set&&!(e.set instanceof Object))throw new TypeError("set field should be an Object");if(e.unset&&!(e.unset instanceof Array))throw new TypeError("unset field should be an Array")}));var t=this.userToken;return this.usingApiSecret&&(t=(0,x.JWTScopeToken)(this.apiSecret,"activities","*",{feedId:"*",expireTokens:this.expireTokens})),this.post({url:"activity/",body:{changes:e},token:t})}}]),t}();t.StreamClient=R}).call(this,r("5IsQ"))},jzsW:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("l4B8"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,LoadMoreButton:o.a,React:i}},k0FJ:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tl;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},kXPx:function(e,t,r){var n=r("COrk"),o=r("edSL"),i=r("dtdj"),a=r("BwbT"),s=r("2EQx"),c=r("a7YA"),u=r("cTHi");e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},kidB:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},knvM:function(e,t,r){var n=r("+dZb")("unionBy",r("qkBe"));n.placeholder=r("IOY3"),e.exports=n},"l3+0":function(e,t,r){var n=r("ofiy");e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},l4B8:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("mXGw");var n=r("FMa6"),o=r("/asK"),i=r("aD51");"undefined"!=typeof LoadMoreButtonProps&&LoadMoreButtonProps&&LoadMoreButtonProps===Object(LoadMoreButtonProps)&&Object.isExtensible(LoadMoreButtonProps)&&!LoadMoreButtonProps.hasOwnProperty("__filemeta")&&Object.defineProperty(LoadMoreButtonProps,"__filemeta",{configurable:!0,value:{name:"LoadMoreButtonProps",filename:"src/components/LoadMoreButton.tsx"}});var a=function(e){var t=e.onClick,r=e.refreshing,a=void 0!==r&&r,s=e.children,c=Object(o.b)().t;return Object(i.c)("div",{className:"raf-load-more-button"},Object(i.c)(n.a,{onClick:t,buttonStyle:"info",disabled:a,loading:a},s||c("Load more")))};void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"LoadMoreButton",filename:"src/components/LoadMoreButton.tsx"}})},l7Do:function(e,t,r){var n=r("WRuO"),o=r("SN9N"),i=r("EN0E"),a=r("ONOI"),s=r("9aUh"),c=r("Vujp"),u=r("Bq5F");e.exports=function e(t,r,l,f,p){t!==r&&i(r,(function(i,c){if(p||(p=new n),s(i))a(t,r,c,l,e,f,p);else{var d=f?f(u(t,c),i,c+"",t,r,p):void 0;void 0===d&&(d=i),o(t,c,d)}}),c)}},lLPU:function(e,t,r){var n=r("f/Xo"),o=r("YaJL"),i=r("yoW1"),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},lUv3:function(e,t,r){var n=r("nEaP");e.exports=n},lYsT:function(e,t,r){var n=r("UgeB"),o=r("T9Ud"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},lcn4:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("pGZ+"),i=r("+mwj"),a=r("6+Ft"),s=r("WQtb"),c=r("mXGw");t.default={Playground:n.c,Props:n.d,WithExampleStreamApp:o.b,Activity:i.a,FlatFeed:a.a,StatusUpdateForm:s.a,React:c}},lgYy:function(e,t,r){var n=r("9aUh"),o=r("jL4t"),i=r("6758"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},lkaj:function(e){e.exports=JSON.parse('{"1 comment":"1 कमेंट","1 like":"1 लाइक","1 repost":"1 रिपोस्ट","Details":"डिटेल्स","Getting website data...":"वेबसाइट डेटा प्राप्त कर रहा है ...","Load activities":"एक्टिविटीज को लोड करें","Load more":"एक्टिविटीज को लोड करें","New Post":"नया पोस्ट","No data to display...":"कोई डेटा उपलब्ध नहीं है","Pick your emoji":"अपनी इमोजी चुनिए","Post":"पोस्ट करे","Start Typing...":"टाइप करना शुरू करें ...","Type your post...":"अपनी पोस्ट लिखें ...","You have 1 new notification":"आपके पास 1 नई नोटिफिकेशन है","You have {{ notificationCount }} new notifications":"आपके पास {{ notificationCount }} नई नोटिफिकेशन्स है","{{ actorName }} and 1 other commented on your {{ activityVerb }}":"{{ actorName }} और १ और यूजर ने आपके {{ activityVerb }} के ऊपर कमेंट किया ","{{ actorName }} and 1 other followed you":"{{ actorName }} और १ और यूजर ने आपको फॉलो किया","{{ actorName }} and 1 other liked your {{ activityVerb }}":"{{ actorName }} और १ और यूजर ने आपके {{ activityVerb }} को लाइक किया","{{ actorName }} and 1 other reposted your {{ activityVerb }}":"{{ actorName }} और १ और यूजर ने आपके {{ activityVerb }} को रिपोस्ट किया","{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}":"{{ actorName }} और {{ countOtherActors }} और यूजर ने आपके {{ activityVerb }} पे कमेंट किया ","{{ actorName }} and {{ countOtherActors }} others followed you":"{{ actorName }} और {{ countOtherActors }} और यूजर ने आपको फॉलो किया","{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}":"{{ actorName }} और {{ countOtherActors }} और यूजर ने आपके {{ activityVerb }} को लाइक किया","{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}":"{{ actorName }} और {{ countOtherActors }} और यूजर ने आपके {{ activityVerb }} को रिपोस्ट किया ","{{ actorName }} commented on your {{ activityVerb }}":"{{ actorName }} ने आपके {{ activityVerb }} के ऊपर कमेंट किया","{{ actorName }} followed you":"{{ actorName }} ने आपको फॉलो किया","{{ actorName }} liked your {{ activityVerb }}":"{{ actorName }} ने आपके {{ activityVerb }} को लाइक किया","{{ actorName }} reposted your {{ activityVerb }}":"{{ actorName }} ने आपके {{ activityVerb }} को रिपोस्ट किया","{{ countComments }} comments":"{{ countComments }} कमैंट्स","{{ countLikes }} likes":"{{ countLikes }} लाइक्स","{{ countReposts }} reposts":"{{ countReposts }} रेपोस्टस"}')},lrIn:function(e,t,r){var n;!function(o){"use strict";var i=o.URL||o.webkitURL;function a(e){return!!i&&i.createObjectURL(e)}function s(e){return!!i&&i.revokeObjectURL(e)}function c(e,t){!e||"blob:"!==e.slice(0,5)||t&&t.noRevoke||s(e)}function u(e,t,r,n){if(!o.FileReader)return!1;var i=new FileReader;i.onload=function(){t.call(i,this.result)},r&&(i.onabort=i.onerror=function(){r.call(i,this.error)});var a=i[n||"readAsDataURL"];return a?(a.call(i,e),i):void 0}function l(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}function f(e,t,r){function n(t,n){var i,s=document.createElement("img");function p(e,r){t!==n?e instanceof Error?n(e):((r=r||{}).image=e,t(r)):t&&t(e,r)}function d(t,n){n&&o.console&&console.log(n),t&&l("Blob",t)?i=a(e=t):(i=e,r&&r.crossOrigin&&(s.crossOrigin=r.crossOrigin)),s.src=i}return s.onerror=function(e){c(i,r),n&&n.call(s,e)},s.onload=function(){c(i,r);var t={originalWidth:s.naturalWidth||s.width,originalHeight:s.naturalHeight||s.height};try{f.transform(s,r,p,e,t)}catch(o){n&&n(o)}},"string"==typeof e?(f.requiresMetaData(r)?f.fetchBlob(e,d,r):d(),s):l("Blob",e)||l("File",e)?(i=a(e))?(s.src=i,s):u(e,(function(e){s.src=e}),n):void 0}return o.Promise&&"function"!=typeof t?(r=t,new Promise(n)):n(t,t)}f.requiresMetaData=function(e){return e&&e.meta},f.fetchBlob=function(e,t){t()},f.transform=function(e,t,r,n,o){r(e,o)},f.global=o,f.readFile=u,f.isInstanceOf=l,f.createObjectURL=a,f.revokeObjectURL=s,void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}("undefined"!=typeof window&&window||this)},lw3w:function(e,t,r){var n;e.exports=(n=r("rzlk"))&&n.default||n},lwI7:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("pGZ+"),i=r("c8O6"),a=r("+mwj"),s=r("Cy6g"),c=r("1SHM"),u=r("mXGw");t.default={Playground:n.c,Props:n.d,WithExampleStreamApp:o.b,SinglePost:i.a,Activity:a.a,CommentField:s.a,CommentList:c.a,React:u}},m3cY:function(e,t,r){var n=r("PAOY"),o=r("zYYD"),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},m5HO:function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var i=r[o];e.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},mDEU:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=e.scanner.TOKENS,r=e.parser,n=r.TOKENS,o=r.State,i=n.Base,a=e.parser.start,s=t.DOMAIN,c=t.LOCALHOST,u=t.NUM,l=t.SLASH,f=t.TLD,p=t.UNDERSCORE,d=t.DOT,h=t.AT;function m(e){this.v=e}e.inherits(i,m,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var v=a.jump(t.AT),g=new o,b=new o(m),y=new o,w=new o;v.on(p,g),g.on(p,g).on(d,g),v.on(s,b).on(c,b).on(f,b).on(u,b),g.on(s,b).on(c,b).on(f,b).on(u,b),b.on(s,b).on(c,b).on(f,b).on(u,b).on(p,b),b.on(l,y).on(d,y).on(h,y),y.on(p,w),w.on(p,w),y.on(s,b).on(c,b).on(f,b).on(u,b),w.on(s,b).on(c,b).on(f,b).on(u,b)}},mEVR:function(e,t,r){"use strict";r.r(t);r("Yeux")},mFYZ:function(e,t,r){!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],r="undefined"!=typeof window,n=r&&null!=window.mozInnerScreenX;function o(e,o,i){if(!r)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=i&&i.debug||!1;if(a){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var c=document.createElement("div");c.id="input-textarea-caret-position-mirror-div",document.body.appendChild(c);var u=c.style,l=window.getComputedStyle?getComputedStyle(e):e.currentStyle;u.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(u.wordWrap="break-word"),u.position="absolute",a||(u.visibility="hidden"),t.forEach((function(e){u[e]=l[e]})),n?e.scrollHeight>parseInt(l.height)&&(u.overflowY="scroll"):u.overflow="hidden",c.textContent=e.value.substring(0,o),"INPUT"===e.nodeName&&(c.textContent=c.textContent.replace(/\s/g," "));var f=document.createElement("span");f.textContent=e.value.substring(o)||".",c.appendChild(f);var p={top:f.offsetTop+parseInt(l.borderTopWidth),left:f.offsetLeft+parseInt(l.borderLeftWidth)};return a?f.style.backgroundColor="#aaa":document.body.removeChild(c),p}void 0!==e.exports?e.exports=o:r&&(window.getCaretCoordinates=o)}()},mG8t:function(e,t,r){e.exports=r("o7OJ")},mH3y:function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},mJLn:function(e){e.exports=JSON.parse('{"author":{"name":"Thierry Schellenbach","company":"Stream.io Inc"},"name":"getstream","description":"The official low-level GetStream.io client for Node.js and the browser.","main":"./lib/index.js","module":"./lib/index.js","types":"./lib/index.d.ts","homepage":"https://getstream.io/docs/?language=js","email":"support@getstream.io","license":"BSD-3-Clause","version":"7.2.8","scripts":{"transpile":"babel src --out-dir lib --extensions \'.ts\'","types":"tsc --emitDeclarationOnly","build":"rm -rf lib && yarn run transpile && yarn run types","dist":"webpack && webpack --env minify","eslint":"eslint \'**/*.{js,ts}\' --max-warnings 0","prettier":"prettier --list-different \'**/*.{js,ts}\'","lint":"yarn run prettier && yarn run eslint","lint-fix":"prettier --write \'**/*.{js,ts}\' && eslint --fix \'**/*.{js,ts}\'","test":"yarn run test-unit-node","test-types":"tsc --esModuleInterop true --noEmit true test/typescript/*.ts","test-unit-node":"mocha --require ./babel-register.js test/unit/common test/unit/node","test-integration-node":"mocha --require ./babel-register.js test/integration/common test/integration/node --exit","test-cloud":"mocha --require ./babel-register.js test/integration/cloud --timeout 40000","test-cloud-local":"LOCAL=true mocha --require ./babel-register.js test/integration/cloud --timeout 40000 --ignore \'test/integration/cloud/{personalized_feed,files,images}.js\'","test-browser":"karma start karma.config.js","prepare":"yarn run build","preversion":"yarn run test-unit-node","version":"yarn run dist && yarn run build && git add dist","postversion":"git push && git push --tags && npm publish"},"husky":{"hooks":{"pre-commit":"yarn run lint"}},"browser":{"crypto":false,"jsonwebtoken":false,"./lib/batch_operations.js":false,"./lib/redirect_url.js":false,"qs":false,"url":false,"http":false,"https":false},"react-native":{"crypto":false,"jsonwebtoken":false,"./lib/batch_operations.js":false,"./lib/redirect_url.js":false,"qs":false,"url":false},"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/node":"^7.13.10","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-object-assign":"^7.12.13","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.10","@babel/preset-typescript":"^7.13.0","@babel/register":"^7.13.8","@typescript-eslint/eslint-plugin":"^4.17.0","@typescript-eslint/parser":"^4.17.0","babel-eslint":"^10.1.0","babel-loader":"^8.2.2","chai":"^4.3.3","dotenv":"^8.2.0","eslint":"^7.21.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-chai-friendly":"^0.6.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.3.1","eslint-plugin-sonarjs":"^0.6.0","eslint-plugin-typescript-sort-keys":"^1.5.0","expect.js":"^0.3.1","husky":"^4.3.8","json-loader":"~0.5.7","karma":"^6.1.2","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"~2.2.5","karma-sauce-launcher":"^4.3.5","karma-sourcemap-loader":"~0.3.8","karma-webpack":"^5.0.0","mocha":"^8.3.1","null-loader":"^4.0.1","nyc":"^15.1.0","prettier":"^2.2.1","request":"^2.88.2","testdouble":"^3.16.1","typescript":"^4.2.3","webpack":"^5.24.4","webpack-cli":"^4.5.0"},"dependencies":{"@babel/runtime":"^7.13.10","@types/jsonwebtoken":"^8.5.0","@types/jwt-decode":"^2.2.1","@types/qs":"^6.9.6","axios":"^0.21.1","faye":"^1.4.0","form-data":"^4.0.0","jsonwebtoken":"^8.5.1","jwt-decode":"^3.1.2","qs":"^6.9.6"},"peerDependencies":{"@types/node":">=10"},"repository":{"type":"git","url":"git://github.com/GetStream/stream-js.git"},"files":["src","dist","types","lib"],"engines":{"node":"10 || 12 || >=14"},"keywords":["stream","get","get-stream","chat","notification","feed","stream.io","getstream"]}')},mhTI:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=String.fromCodePoint||function(){var e,t,r=16384,n=[],o=-1,i=arguments.length;if(!i)return"";for(var a="";++o1114111||Math.floor(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?n.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,n.push(e,t)),(o+1===i||n.length>r)&&(a+=String.fromCharCode.apply(null,n),n.length=0)}return a};t.default=n},mldb:function(e,t,r){var n=r("GI0s"),o=r("T9Ud");e.exports=function(e){return o(e)&&"[object RegExp]"==n(e)}},mmBF:function(e,t,r){"use strict";(function(t){var n=r("NFrV"),o=r("abqF"),i=r("2cPb"),a=r("BZif"),s=r("o2qG"),c=a(n(r("69GW"),{encode:function(e){var t=i(this.endpoint);return t.query.message=s(e),t.query.jsonp="__jsonp"+c._cbCount+"__",o.stringify(t)},request:function(e){var r=document.getElementsByTagName("head")[0],n=document.createElement("script"),a=c.getCallbackName(),u=i(this.endpoint),l=this;u.query.message=s(e),u.query.jsonp=a;var f=function(){if(!t[a])return!1;t[a]=void 0;try{delete t[a]}catch(e){}n.parentNode.removeChild(n)};return t[a]=function(e){f(),l._receive(e)},n.type="text/javascript",n.src=o.stringify(u),r.appendChild(n),n.onerror=function(){f(),l._handleError(e)},{abort:f}}}),{_cbCount:0,getCallbackName:function(){return this._cbCount+=1,"__jsonp"+this._cbCount+"__"},isUsable:function(e,t,r,n){r.call(n,!0)}});e.exports=c}).call(this,r("pCvA"))},"mu/v":function(e,t,r){var n,o,i;!function(a){"use strict";o=[r("lrIn")],void 0===(i="function"==typeof(n=function(e){var t=e.global;t.fetch&&t.Request&&t.Response&&t.Response.prototype.blob?e.fetchBlob=function(e,r,n){function o(e){return e.blob()}if(t.Promise&&"function"!=typeof r)return fetch(new Request(e,r)).then(o);fetch(new Request(e,n)).then(o).then(r).catch((function(e){r(null,e)}))}:t.XMLHttpRequest&&""===(new XMLHttpRequest).responseType&&(e.fetchBlob=function(e,r,n){function o(t,r){n=n||{};var o=new XMLHttpRequest;o.open(n.method||"GET",e),n.headers&&Object.keys(n.headers).forEach((function(e){o.setRequestHeader(e,n.headers[e])})),o.withCredentials="include"===n.credentials,o.responseType="blob",o.onload=function(){t(o.response)},o.onerror=o.onabort=o.ontimeout=function(e){t===r?r(null,e):r(e)},o.send(n.body)}return t.Promise&&"function"!=typeof r?(n=r,new Promise(o)):o(r,r)})})?n.apply(t,o):n)||(e.exports=i)}()},mwLw:function(e,t,r){var n=r("+dZb")("get",r("edSL"));n.placeholder=r("IOY3"),e.exports=n},mzbm:function(e,t,r){var n=r("GE03"),o=r("l3+0"),i=r("BAZ7"),a=r("NmMy"),s=r("TsNJ"),c=r("+165");e.exports=function(e,t,r,u){var l=-1,f=o,p=!0,d=e.length,h=[],m=t.length;if(!d)return h;r&&(t=a(t,s(r))),u?(f=i,p=!1):t.length>=200&&(f=c,p=!1,t=new n(t));e:for(;++l1&&void 0!==arguments[1]?arguments[1]:null,r=c(e),n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:null,r=c(e);return 1===r.length&&r[0].isLink&&(!t||r[0].type===t)},t.tokenize=c},oCnO:function(e,t,r){e.exports=function(){"use strict";return function(e,t,r){var n=function(e,t){if(!t||!t.length||!t[0]||1===t.length&&!t[0].length)return null;var r;1===t.length&&t[0].length>0&&(t=t[0]),r=t[0];for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r("heVN"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r("pCvA"))},oTdG:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.StreamUser=void 0;var o=n(r("1M3q")),i=n(r("OXsn")),a=n(r("Sgbw")),s=n(r("AcCc")),c=n(r("g2JX"));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},ofiy:function(e,t,r){var n=r("aCmY"),o=r("VbZR"),i=r("oagz");e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},ohHe:function(e,t,r){var n=r("GI0s"),o=r("T9Ud"),i=r("NfLg");e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},oizr:function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r("HGLW"),o=r("mXGw"),i=r.n(o),a=r("ca/S"),s=r("WjHG"),c=r("Dg5a"),u=r("byEl"),l=r("swbX"),f=r("QBKC"),p=r("LFXc"),d=r("aD51");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;tthis.maxMargin?this.maxMargin:t)!=this.margin)return this.props.hasStickyPosition||(this.label.style.top="".concat(t,"px")),this.margin=t,!0}},{key:"getEmojis",value:function(){var e=this,t=this.props,r=t.name,n=t.emojis,o=t.recent,i=t.perLine;if("Recent"==r){var a=this.props.custom,s=o||p.default.get(i);if(s.length&&(n=s.map((function(e){var t=a.filter((function(t){return t.id===e}))[0];return t||e})).filter((function(t){return!!(0,d.getData)(t,null,null,e.data)}))),0===n.length&&s.length>0)return null}return n&&(n=n.slice(0)),n}},{key:"updateDisplay",value:function(e){this.getEmojis()&&this.container&&(this.container.style.display=e)}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"setLabelRef",value:function(e){this.label=e}},{key:"render",value:function(){var e=this,t=this.props,r=t.id,n=t.name,i=t.hasStickyPosition,a=t.emojiProps,s=t.i18n,c=t.notFound,u=t.notFoundEmoji,l=this.getEmojis(),p={},d={},g={};l||(g={display:"none"}),i||(p={height:28},d={position:"absolute"});var b=s.categories[r]||n;return f.default.createElement("section",{ref:this.setContainerRef,className:"emoji-mart-category","aria-label":b,style:g},f.default.createElement("div",{style:p,"data-name":n,className:"emoji-mart-category-label"},f.default.createElement("span",{style:d,ref:this.setLabelRef,"aria-hidden":!0},b)),f.default.createElement("ul",{className:"emoji-mart-category-list"},l&&l.map((function(t){return f.default.createElement("li",{key:t.short_names&&t.short_names.join("_")||t},(0,h.default)(function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(r){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",l))};var n,o=r("XrU5"),i=(n=o)&&n.__esModule?n:{default:n};var a=[],s=null,c=!1;function u(){c=!0}function l(){if(c){if(c=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},pCs0:function(e,t){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(r)||[]}},pCvA:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}e.exports=r},"pGZ+":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"a",(function(){return l}));var n=r("mXGw"),o=r("doU1"),i=r("aD51"),a=function(e){var t=e.children;return Object(i.c)(o.a,{apiKey:"fpwesm5u2evu",appId:"64527",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZXhhbXBsZS11c2VyIn0.cM6zFlcQ68qP2LLz-Y6fPeNglfOuwB2aeBUaQild1wg"},t)};void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"WithExampleStreamApp",filename:"src/components/docz.tsx"}});var s={activities:[{actor:{data:{name:"Jacky Davidson",profileImage:"https://randomuser.me/api/portraits/men/72.jpg"}},verb:"like",object:{verb:"post",attachments:{files:[],images:["https://stream-cloud-uploads.imgix.net/images/41814/a5db2d18-1803-4300-906f-579af270edf1.3356358479_a0e3ee8a05_b.jpg?s=65db066cf45ee7895529725a8d478c14"]},object:"https://stream-cloud-uploads.imgix.net/images/41814/a5db2d18-1803-4300-906f-579af270edf1.3356358479_a0e3ee8a05_b.jpg?s=65db066cf45ee7895529725a8d478c14",actor:{data:{name:"Josh"}}},time:"2021-04-13T07:40:37.975Z"}]};void 0!==s&&s&&s===Object(s)&&Object.isExtensible(s)&&!s.hasOwnProperty("__filemeta")&&Object.defineProperty(s,"__filemeta",{configurable:!0,value:{name:"notificationGroup1",filename:"src/components/docz.tsx"}});var c={activities:[{actor:{data:{name:"Jordan Belfair",profileImage:"https://randomuser.me/api/portraits/women/72.jpg"}},verb:"follow",object:{},time:"2021-04-11T07:40:37.975Z"},{actor:{data:{name:"Jacky Davidson",profileImage:"https://randomuser.me/api/portraits/men/72.jpg"}},verb:"follow",object:{}},{actor:{data:{name:"Jared Fault",profileImage:"https://randomuser.me/api/portraits/women/7.jpg"}},verb:"follow",object:{}}]};void 0!==c&&c&&c===Object(c)&&Object.isExtensible(c)&&!c.hasOwnProperty("__filemeta")&&Object.defineProperty(c,"__filemeta",{configurable:!0,value:{name:"notificationGroup2",filename:"src/components/docz.tsx"}});var u=function(e){return new Promise((function(t){return setTimeout(t,e)}))};void 0!==u&&u&&u===Object(u)&&Object.isExtensible(u)&&!u.hasOwnProperty("__filemeta")&&Object.defineProperty(u,"__filemeta",{configurable:!0,value:{name:"resolveAfter",filename:"src/components/docz.tsx"}});var l=function(e){var t=e.children,r=e.initialValue,o=Object(n.useState)(r);return t({state:o[0],setState:o[1]})};void 0!==l&&l&&l===Object(l)&&Object.isExtensible(l)&&!l.hasOwnProperty("__filemeta")&&Object.defineProperty(l,"__filemeta",{configurable:!0,value:{name:"StatefulComponent",filename:"src/components/docz.tsx"}})},pHF5:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var n={},o={};t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},pZIW:function(e,t,r){var n=r("b2OE"),o=r("7IP4"),i=r("OF9M"),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},pcv9:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("mXGw"),o=function(e,t,r){void 0===r&&(r=!0),Object(n.useEffect)((function(){if(r){var n=function(r){var n;null!==(n=e.current)&&void 0!==n&&n.contains(r.target)||t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}}),[t,r])};void 0!==o&&o&&o===Object(o)&&Object.isExtensible(o)&&!o.hasOwnProperty("__filemeta")&&Object.defineProperty(o,"__filemeta",{configurable:!0,value:{name:"useOnClickOutside",filename:"src/hooks/useOnClickOutside.ts"}})},"pj/D":function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("1SHM"),i=r("pGZ+"),a=r("ca/S"),s=r("mXGw");t.default={Playground:n.c,Props:n.d,CommentList:o.a,WithExampleStreamApp:i.b,Feed:a.a,React:s}},"q+I6":function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e0&&(n=r+2,o=s[r])})),r.emojis){var p=r.emojis[l],d=p.unified;p.variations&&p.variations.length&&(d=p.variations.shift()),n&&p.skin_variations&&p.skin_variations[o]&&(d=p.skin_variations[o].unified),u(d)===c&&(a=p)}if(!a)return null;return a.id=a.short_names[0],f(a,n,t,r)},t.getSanitizedData=f,t.uniq=d,t.intersect=function(e,t){var r=d(e),n=d(t);return r.filter((function(e){return n.indexOf(e)>=0}))},t.deepMerge=function e(t,r){var n={};for(var i in t){var a=t[i],s=a;r.hasOwnProperty(i)&&(s=r[i]),"object"===(0,o.default)(s)&&(s=e(a,s)),n[i]=s}return n},t.unifiedToNative=u,t.measureScrollbar=function(){if("undefined"==typeof document)return 0;var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},t.throttleIdleTask=function(e){var t="function"==typeof requestIdleCallback?requestIdleCallback:setTimeout,r=!1;return function(){r||(r=!0,t((function(){r=!1,e()})))}};var o=n(r("kidB")),i=r("dPH4"),a=n(r("mhTI")),s=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,c=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];function u(e){var t=e.split("-").map((function(e){return"0x".concat(e)}));return a.default.apply(null,t)}function l(e){var t=e.name,r=e.short_names,n=e.skin_tone,o=e.skin_variations,i=e.emoticons,a=e.unified,s=e.custom,c=e.customCategory,l=e.imageUrl,f=e.id||r[0],p=":".concat(f,":");return s?{id:f,name:t,short_names:r,colons:p,emoticons:i,custom:s,customCategory:c,imageUrl:l}:(n&&(p+=":skin-tone-".concat(n,":")),{id:f,name:t,short_names:r,colons:p,emoticons:i,unified:a.toLowerCase(),skin:n||(o?1:null),native:u(a)})}function f(){return l(p.apply(void 0,arguments))}function p(e,t,r,n){var o={};if("string"==typeof e){var a=e.match(s);if(a&&(e=a[1],a[2]&&(t=parseInt(a[2],10))),n.aliases.hasOwnProperty(e)&&(e=n.aliases[e]),!n.emojis.hasOwnProperty(e))return null;o=n.emojis[e]}else e.id&&(n.aliases.hasOwnProperty(e.id)&&(e.id=n.aliases[e.id]),n.emojis.hasOwnProperty(e.id)&&(o=n.emojis[e.id],t||(t=e.skin)));if(Object.keys(o).length||((o=e).custom=!0,o.search||(o.search=(0,i.buildSearch)(e))),o.emoticons||(o.emoticons=[]),o.variations||(o.variations=[]),o.skin_variations&&t>1){o=JSON.parse(JSON.stringify(o));var u=c[t-1],l=o.skin_variations[u];if(l&&(!l.variations&&o.variations&&delete o.variations,r&&(null==l["has_img_".concat(r)]||l["has_img_".concat(r)])||!r))for(var f in o.skin_tone=t,l){var p=l[f];o[f]=p}}return o.variations&&o.variations.length&&((o=JSON.parse(JSON.stringify(o))).unified=o.variations.shift()),o}function d(e){return e.reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[])}},s3NK:function(e,t){e.exports={}},s3UK:function(e,t,r){var n=r("FfeU"),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},s3t7:function(e,t,r){var n=r("VNQV"),o=r("0KRy"),i=r("rV0Y"),a=r("b2OE"),s=r("fxeQ"),c=r("GI0s"),u=r("bE7W"),l=u(n),f=u(o),p=u(i),d=u(a),h=u(s),m=c;(n&&"[object DataView]"!=m(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},s4Wf:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var n,o=r("K/xo");var i=((n=o)&&n.__esModule?n:{default:n}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},sA10:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("KV5O"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,Title:o.a,React:i}},sIZM:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("mXGw"),o=r("Pdo2"),i=r("qqks"),a=r("LFXc"),s=r("/asK"),c=r("aD51");"undefined"!=typeof UserBarProps&&UserBarProps&&UserBarProps===Object(UserBarProps)&&Object.isExtensible(UserBarProps)&&!UserBarProps.hasOwnProperty("__filemeta")&&Object.defineProperty(UserBarProps,"__filemeta",{configurable:!0,value:{name:"UserBarProps",filename:"src/components/UserBar.tsx"}});var u=function(e){var t=e.time,r=e.timestamp,u=e.Right,l=e.subtitle,f=e.icon,p=e.AfterUsername,d=e.username,h=e.onClickUser,m=e.avatar,v=Object(s.b)().tDateTimeParser,g=Object(n.useMemo)((function(){return[!t&&r?Object(o.d)(r,v):t,r?v(r).toJSON():void 0]}),[r,v]),b=g[0],y=g[1];return Object(c.c)("div",{className:"raf-user-bar"},m&&Object(c.c)(i.a,{onClick:h,size:50,circle:!0,image:m}),Object(c.c)("div",{className:"raf-user-bar__details"},Object(c.c)("p",{"data-testid":"user-bar-username",className:"raf-user-bar__username",onClick:h},d),p,f&&Object(c.c)("img",{src:f,alt:"icon"}),l&&Object(c.c)("p",{className:"raf-user-bar__subtitle"},Object(c.c)("time",{dateTime:y,title:y},l))),Object(a.a)(u,{},Object(c.c)("p",{className:"raf-user-bar__extra"},Object(c.c)("time",{dateTime:y,title:y},b))))};void 0!==u&&u&&u===Object(u)&&Object.isExtensible(u)&&!u.hasOwnProperty("__filemeta")&&Object.defineProperty(u,"__filemeta",{configurable:!0,value:{name:"UserBar",filename:"src/components/UserBar.tsx"}})},sMae:function(e,t,r){e.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")}}()},sWZd:function(e,t,r){var n=r("PqlX"),o=r("BwbT"),i=r("ULAX"),a=r("zYYD");e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},sZ0V:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("COMz")),i=n(r("g2JX")),a=n(r("mXGw")),s=r("s/V/"),c=r("dPH4"),u=(r("U+o8"),r("CYlu"));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t").concat(b||"","")):a.default.createElement(x.name,(0,o.default)({onClick:function(e){return function(e,t){t.onClick&&(0,t.onClick)(h(t),e)}(e,t)},onMouseEnter:function(e){return function(e,t){t.onOver&&(0,t.onOver)(h(t),e)}(e,t)},onMouseLeave:function(e){return function(e,t){t.onLeave&&(0,t.onLeave)(h(t),e)}(e,t)},"aria-label":O,title:_,className:y},x.props),a.default.createElement("span",{style:g},b))};v.defaultProps=u.EmojiDefaultProps;var g=v;t.default=g},scUu:function(e,t,r){e.exports={ary:r("MNFw"),assign:r("wnk4"),clone:r("5u71"),curry:r("WYPT"),forEach:r("WMT/"),isArray:r("PqlX"),isError:r("ohHe"),isFunction:r("RqPZ"),isWeakMap:r("TSPQ"),iteratee:r("vft2"),keys:r("Lalj"),rearg:r("YODn"),toInteger:r("LF0y"),toPath:r("ii79")}},swbX:function(e,t,r){"use strict";r.d(t,"a",(function(){return ve})),r.d(t,"b",(function(){return be})),r.d(t,"c",(function(){return we})),r.d(t,"d",(function(){return Oe})),r.d(t,"e",(function(){return _e})),r.d(t,"f",(function(){return Ee})),r.d(t,"g",(function(){return ke})),r.d(t,"h",(function(){return ge})),r.d(t,"i",(function(){return xe}));var n=r("mXGw"),o=r.n(n),i=r("RrXF"),a=r("GAEk"),s=r("tfWD"),c=r.n(s),u=(r("x3Br"),r("bb6g")),l=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function f(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=l.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var p=[".DS_Store","Thumbs.db"];function d(e){return Object(u.b)(this,void 0,void 0,(function(){return Object(u.c)(this,(function(t){return[2,(r=e,r.dataTransfer&&e.dataTransfer?m(e.dataTransfer,e.type):h(e))];var r}))}))}function h(e){return(null!==e.target&&e.target.files?g(e.target.files):[]).map((function(e){return f(e)}))}function m(e,t){return Object(u.b)(this,void 0,void 0,(function(){var r;return Object(u.c)(this,(function(n){switch(n.label){case 0:return e.items?(r=g(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(b))]):[3,2];case 1:return[2,v(y(n.sent()))];case 2:return[2,v(g(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===p.indexOf(e.name)}))}function g(e){for(var t=[],r=0;rr)return[!1,S(r)];if(e.sizer)return[!1,S(r)]}return[!0,null]}function D(e){return null!=e}function L(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize;return!(!e.multiple&&t.length>1)&&t.every((function(e){var t=A(T(e,r),1)[0],i=A(R(e,n,o),1)[0];return t&&i}))}function I(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function F(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function q(e){return-1!==e.indexOf("Edge/")}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return F(e)||q(e)}function z(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),o=1;o=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var X=Object(n.forwardRef)((function(e,t){var r=e.children,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accept,r=e.disabled,o=void 0!==r&&r,i=e.getFilesFromEvent,a=void 0===i?d:i,s=e.maxSize,c=void 0===s?1/0:s,u=e.minSize,l=void 0===u?0:u,f=e.multiple,p=void 0===f||f,h=e.maxFiles,m=void 0===h?0:h,v=e.onDragEnter,g=e.onDragLeave,b=e.onDragOver,y=e.onDrop,w=e.onDropAccepted,O=e.onDropRejected,_=e.onFileDialogCancel,x=e.preventDropOnDocument,j=void 0===x||x,k=e.noClick,A=void 0!==k&&k,E=e.noKeyboard,S=void 0!==E&&E,P=e.noDrag,D=void 0!==P&&P,F=e.noDragEventsBubbling,q=void 0!==F&&F,V=Object(n.useRef)(null),X=Object(n.useRef)(null),J=Object(n.useReducer)(Z,K),Q=H(J,2),$=Q[0],ee=Q[1],te=$.isFocused,re=$.isFileDialogActive,ne=$.draggedFiles,oe=Object(n.useCallback)((function(){X.current&&(ee({type:"openDialog"}),X.current.value=null,X.current.click())}),[ee]),ie=function(){re&&setTimeout((function(){X.current&&(X.current.files.length||(ee({type:"closeDialog"}),"function"==typeof _&&_()))}),300)};Object(n.useEffect)((function(){return window.addEventListener("focus",ie,!1),function(){window.removeEventListener("focus",ie,!1)}}),[X,re,_]);var ae=Object(n.useCallback)((function(e){V.current&&V.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),oe()))}),[V,X]),se=Object(n.useCallback)((function(){ee({type:"focus"})}),[]),ce=Object(n.useCallback)((function(){ee({type:"blur"})}),[]),ue=Object(n.useCallback)((function(){A||(U()?setTimeout(oe,0):oe())}),[X,A]),le=Object(n.useRef)([]),fe=function(e){V.current&&V.current.contains(e.target)||(e.preventDefault(),le.current=[])};Object(n.useEffect)((function(){return j&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",fe))}}),[V,j]);var pe=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ye(e),le.current=[].concat(B(le.current),[e.target]),N(e)&&Promise.resolve(a(e)).then((function(t){I(e)&&!q||(ee({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),v&&v(e))}))}),[a,v,q]),de=Object(n.useCallback)((function(e){if(e.preventDefault(),e.persist(),ye(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(t){}return N(e)&&b&&b(e),!1}),[b,q]),he=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ye(e);var t=le.current.filter((function(e){return V.current&&V.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),le.current=t,t.length>0||(ee({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),N(e)&&g&&g(e))}),[V,g,q]),me=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ye(e),le.current=[],N(e)&&Promise.resolve(a(e)).then((function(r){if(!I(e)||q){var n=[],o=[];r.forEach((function(e){var r=H(T(e,t),2),i=r[0],a=r[1],s=H(R(e,l,c),2),u=s[0],f=s[1];if(i&&u)n.push(e);else{var p=[a,f].filter((function(e){return e}));o.push({file:e,errors:p})}})),(!p&&n.length>1||p&&m>=1&&n.length>m)&&(n.forEach((function(e){o.push({file:e,errors:[C]})})),n.splice(0)),ee({acceptedFiles:n,fileRejections:o,type:"setFiles"}),y&&y(n,o,e),o.length>0&&O&&O(o,e),n.length>0&&w&&w(n,e)}})),ee({type:"reset"})}),[p,t,l,c,a,y,w,O,q]),ve=function(e){return o?null:e},ge=function(e){return S?null:ve(e)},be=function(e){return D?null:ve(e)},ye=function(e){q&&e.stopPropagation()},we=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onKeyDown,i=e.onFocus,a=e.onBlur,s=e.onClick,c=e.onDragEnter,u=e.onDragOver,l=e.onDragLeave,f=e.onDrop,p=Y(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return G(W({onKeyDown:ge(z(n,ae)),onFocus:ge(z(i,se)),onBlur:ge(z(a,ce)),onClick:ve(z(s,ue)),onDragEnter:be(z(c,pe)),onDragOver:be(z(u,de)),onDragLeave:be(z(l,he)),onDrop:be(z(f,me))},r,V),o||S?{}:{tabIndex:0},{},p)}}),[V,ae,se,ce,ue,pe,de,he,me,S,D,o]),Oe=Object(n.useCallback)((function(e){e.stopPropagation()}),[]),_e=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.refKey,n=void 0===r?"ref":r,o=e.onChange,i=e.onClick,a=Y(e,["refKey","onChange","onClick"]),s=W({accept:t,multiple:p,type:"file",style:{display:"none"},onChange:ve(z(o,me)),onClick:ve(z(i,Oe)),autoComplete:"off",tabIndex:-1},n,X);return G({},s,{},a)}}),[X,t,p,me,o]),xe=ne.length,je=xe>0&&L({files:ne,accept:t,minSize:l,maxSize:c,multiple:p}),ke=xe>0&&!je;return G({},$,{isDragAccept:je,isDragReject:ke,isFocused:te&&!o,getRootProps:we,getInputProps:_e,rootRef:V,inputRef:X,open:ve(oe)})}(Y(e,["children"])),a=i.open,s=Y(i,["open"]);return Object(n.useImperativeHandle)(t,(function(){return{open:a}}),[a]),o.a.createElement(n.Fragment,null,r(G({},s,{open:a})))}));X.displayName="Dropzone";var J=X,K={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Z(e,t){switch(t.type){case"focus":return G({},e,{isFocused:!0});case"blur":return G({},e,{isFocused:!1});case"openDialog":return G({},e,{isFileDialogActive:!0});case"closeDialog":return G({},e,{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive;return G({},e,{draggedFiles:t.draggedFiles,isDragActive:r});case"setFiles":return G({},e,{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return G({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}var Q=r("HkQ/"),$=r.n(Q),ee=function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"20",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),o.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},te=function(){return(te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r'}})):null),o.a.createElement("img",{src:u||r||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAADWlJREFUeAHtnYtS4koURRtFBJ8j4/9/4Myoo44vRLlzuEMVhdKJTSfp7LNSZak06eSs3Vl58MhgNpstAhMEIOCSwJ7LqikaAhBYEkAADAQIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmgAAch0/pEEAAjAEIOCaAAByHT+kQQACMAQg4JoAAHIdP6RBAAIwBCDgmMPRY+9vbW3h5eQnPz8/B/raf9/d3jyhaqXl/fz+MRqNwdHQUDg8PW1kmC6lHYDCbzRb1ntr/Z/2tNdzf3y83/v5X088KTAAXFxdhb4+DzxISdCEA28Pf3t4u9/glQPe+DsPhMFxeXiKBAgaCvIZtr//z5082/gIG22oV5vN5uLm5Wf3L7w4JSAvg6ekp/Pr1i/P7DgfYtkWvrsFsa+fxdgjICsD2/Oxl2hlEqUt5fHxMnZX5MhGQFICd819fX2dCRDdNETBJM3VLQFIAd3d3HPZ3O65qLd1eel0s3LwIVYtJ20+SE4DtVezcnwkCEKgmICcAe52fqR8E7OXAwWDQj5UVXUspAdghpV1dZuoHAd4V2H1OUgKwt/Yy9YfA8fFxf1ZWdE0RgGiwpZd1dnYW7BSAqVsCUgKwl/+Yyidge/6Tk5PyV9TBGkopGAGUPWLtU4G2559MJmWvqKO1kxJAEx/ptU+tHRwc8MGVxI3CrvIbQ7vgZx8J5qp/IsiGZpMSQE5GNmBPT0+XgzZnv/QFgZIIIIBP0jg/Pw9cof4EDA/JEZC6CJgjHTb+HBTpoy8EEMBaUnbYz55/DQh/yhNAAGsR2xVqJgh4IoAA/qVtL1HZ1X4mCHgigAD+pc3G72nYU+uKAAL4R4JvqV0NCX57IoAAPKVNrRDYIIAANoDwLwQ8EUAAntKmVghsEEAAG0D4FwKeCCAAT2lTKwQ2CCCADSD8CwFPBBCAp7SpFQIbBPg04AaQNv617y1YvzW5wheZ2Of87d2Uq1uB2xur+Ox/G6Npt2UggN341Z7bboBh9yuw22F5uCOOvbFqPB4vv/qL7/6rPUxafyICaAG57e3tbkV2V1wvkx3lmOzs5+joaPnlKnZ0wFQWAQTQYB6217cN/+HhocGllN+1ScCOfqbT6fKrwcpfYz9ryEXAhrK2PaDdoNT7xr/CazK8urqCxwpIIb8RQANB2GC3W5Nzl6KPcG9vbwO3b/vIpatHEEAD5O2wn41/O1gTABLYzqfNFgSQmbZd8OOwvxoqEqhm1MYzEEBGyquLfhm7lO4KCXQfLwLImIFd6fb0Ul8OdEggB8X0PhBAOrsPc9rLXUxfJ2AS+PPnz9dnZI6dCSCAnRH+34G97OfhHX6ZcH3oxi6cIoEPWBp/AAFkQmwX/zxO9i6/XN+niATaH0EIIBNzr+f+9vbey8tLJJBpHLXdDQLIRFzhE32pKOzDPkgglV638yGATPztGoDnCQn0M30EkCk37wIwjEgg02BqsRsE0CJsD4tCAv1KGQH0K69erC0S6EVMy5VEAP3JqldrigT6ERcC6EdOvVzLJiTAB63yDgUEkJcnvW0QyC0B+z4BJLABeYd/EcAO8Ji1HgGTwPfv37O9WQgJ1ONe51kIoA4lnrMzAfuacCSwM8bsHSCA7EjpcBsBJLCNTHePI4Du2LtcMhIoK3YEUFYeLtYGCZQTMwIoJwtXa4IEyogbAZSRg8u1QALdx44Aus/A9RoggW7jRwDd8mfpfwkgge6GAQLojj1LXiPQhAT4ktY1wFv+RABbwPBw+wRyS+D379/LuxO3X0l/logA+pOVizVFAu3GjADa5c3SahBYSWAwGNR4dvVTOBLYzggBbGdDS4cETAL2RaNIoNkQEECzfOl9BwJIYAd4NWdFADVB8bRuCCCBZrkjgGb50nsGAkggA8QtXSCALWB4uCwCSKCZPBBAM1zptQECJgH7UhEuDOaDiwDysaSnFgiMRiMkkJEzAsgIk67aIdCEBJ6entpZ+cKWggAKC4TVqUcgtwRubm7CbDart3ChZyEAoTC9lZJbAtfX18HbXZ4RgLetRqzenBKwG7zaV457mhCAp7RFa80pgefnZ1enAghAdKNoq6zFYtHWoqLLySmB+/v76LKUGhFApjRL2RAylVO7m5LOmXNJ4OXlJdjpgIcJAXhIucEaS7tynksCdirgYUIAHlJusEY7ArA9ZklTDgmUVlNTfBFAU2Qd9Xt3dxdKOwXaVQLz+dxFggjARczNFvn6+rp8+UxJAiVd22gyPQTQJF1Hfds38Nq76UrbcFKPBLgI6GjwUmoeAnbh7MePH8ujgZKupJsEptNptk8R5qFVRi/DMlaDtVAhYKcBDw8Pyx+VmpTr4BRAOV1qg0AFAQRQAYhmCCgTQADK6VIbBCoIIIAKQDRDQJkAAlBOl9ogUEEAAVQAohkCygQQgHK61AaBCgIIoAIQzRBQJoAAlNOlNghUEEAAFYBohoAyAQSgnC61QaCCAAKoAEQzBJQJIADldKkNAhUEEEAFIJohoEwAASinS20QqCCAACoA0QwBZQIIQDldaoNABQEEUAGIZggoE0AAyulSGwQqCCCACkA0Q0CZAAJQTpfaIFBBAAFUAKIZAsoEEIByutQGgQoCCKACEM0QUCaAAJTTpTYIVBBAABWAaIaAMgEEoJwutUGgggACqABEMwSUCSAA5XSpDQIVBBBABSCaIaBMAAH8S3cwGCjnTG0Q+JSAlAD29/c/LbLOg7vMW6d/ngOBEglICWA0GiUz3mXe5IUyIwQ6JiAlgMlkkoRzOByGg4ODpHmZCQJ9JiAlgPF4HA4PD7+cx9nZWeAawJexMYMAASkBWB7fvn0LXzmfPzk5CSYOJgh4JCAnANv4Ly8vQ51zetvz2w8TBLwSGCoWvpLA09NTeHx8DLPZLCwWi2Wp1mZ7/OPj42Dn/kwQ8ExAeguwi4KrC4Pv7+/L83zO9T0Pd2rfJCAtgPVi9/bkznbWy+NvCCQRYKtIwsZMENAggAA0cqQKCCQRQABJ2JgJAhoEEIBGjlQBgSQCCCAJGzNBQIMAAtDIkSogkEQAASRhYyYIaBBAABo5UgUEkggggCRszAQBDQIIQCNHqoBAEgEEkISNmSCgQQABaORIFRBIIoAAkrAxEwQ0CCAAjRypAgJJBBBAEjZmgoAGAQSgkSNVQCCJAAJIwsZMENAggAA0cqQKCCQRQABJ2JgJAhoEEIBGjlQBgSQCCCAJGzNBQIMAAtDIkSogkEQAASRhYyYIaBBAABo5UgUEkggggCRszAQBDQIIQCNHqoBAEgEEkISNmSCgQQABaORIFRBIIoAAkrAxEwQ0CCAAjRypAgJJBBBAEraPM+3v7398kEd6S8DL7eQRQKYh6mXAZMJVfDdehI4AMg1FLwMmE67iu/GSJwLINBTH43GmnuimBAJe8kQAmUbbwcFB4DQgE8wCukEABYTQp1UYDAZhMpn0aZVZ1y0EDg8P3cicI4AtgyDl4ZOTk2AiYOo3gdPT034X8IW1RwBfgFX1VLtwdHx8XPU02gsmYEdxo9Go4DXMu2oIIC/PYEcBw+Ewc6901wYBu4ZzdnbWxqKKWQYCyByFDaLpdOrmHDIzvk67s9y8vPy3Ao0AViQy/rYjgIuLC64HZGTadFeWl6dD/xXPwWw2W6z+4XdeAvP5PFxdXYW3t7e8HdNbNgKrIzaPG79BRADZhtLnHb2/v4e7u7vw+Pj4+RN4tDMC9lr/+fm5u8P+deAIYJ1Gg3+/vr6G+/v78Pz83OBS6LoOAXud317q87rXX2eEANZptPC3HRGYBF5eXoKdItj/nCI0B94O8e3Cnv3YHt82fm8X+mJ0EUCMDm0QECfAqwDiAVMeBGIEEECMDm0QECeAAMQDpjwIxAgggBgd2iAgTgABiAdMeRCIEUAAMTq0QUCcAAIQD5jyIBAjgABidGiDgDgBBCAeMOVBIEYAAcTo0AYBcQIIQDxgyoNAjAACiNGhDQLiBBCAeMCUB4EYAQQQo0MbBMQJIADxgCkPAjECCCBGhzYIiBNAAOIBUx4EYgQQQIwObRAQJ4AAxAOmPAjECCCAGB3aICBOAAGIB0x5EIgRQAAxOrRBQJwAAhAPmPIgECOAAGJ0aIOAOAEEIB4w5UEgRgABxOjQBgFxAghAPGDKg0CMAAKI0aENAuIEEIB4wJQHgRgBBBCjQxsExAkgAPGAKQ8CMQIIIEaHNgiIE0AA4gFTHgRiBBBAjA5tEBAngADEA6Y8CMQIIIAYHdogIE4AAYgHTHkQiBFAADE6tEFAnAACEA+Y8iAQI4AAYnRog4A4gf8ARJi5ESOVQKYAAAAASUVORK5CYII=",className:"rfu-thumbnail__image",alt:""}))},je=function(){return o.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm3 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM2 16v2h16v-6l-3-3-6 6-3-3-4 4z",fillRule:"nonzero"}))},ke=function(e){var t=e.multiple,r=void 0!==t&&t,n=e.disabled,i=void 0!==n&&n,a=e.handleFiles,s=e.children,c=void 0===s?o.a.createElement(je,null):s,u=e.resetOnChange,l=ye(void 0!==u&&u,a);return o.a.createElement("div",{className:"rfu-image-upload-button"},o.a.createElement("label",null,o.a.createElement("input",{type:"file",className:"rfu-image-input",onChange:l,accept:"image/*",multiple:r,disabled:i}),c))},Ae=function(e){var t=e.multiple,r=void 0!==t&&t,n=e.handleFiles;return o.a.createElement(ke,{handleFiles:n,multiple:r},o.a.createElement("div",{role:"button",className:"rfu-thumbnail-placeholder"},o.a.createElement("svg",{width:"14",height:"15",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M14 8.998H8v6H6v-6H0v-2h6v-6h2v6h6z",fill:"#A0B2B8",fillRule:"nonzero"}))))},Ee=function(e){var t=e.multiple,r=void 0===t||t,i=e.disabled,a=void 0!==i&&i,s=e.imageUploads,c=e.handleRemove,u=e.handleRetry,l=e.handleFiles,f=Object(n.useCallback)((function(e){if(c){if(null==e)return void console.warn("id of closed image was undefined, this shouldn't happen");c(e)}}),[c]);return o.a.createElement("div",{className:"rfu-image-previewer"},null==s?void 0:s.map((function(e){var t=e.url||e.previewUri;return o.a.createElement("div",{key:e.id,className:"rfu-image-previewer__image"+("finished"===e.state?" rfu-image-previewer__image--loaded":"")},"failed"===e.state&&o.a.createElement("div",{className:"rfu-image-previewer__retry",dangerouslySetInnerHTML:{__html:''},onClick:u&&function(){return u(e.id)}}),void 0!==t&&o.a.createElement(xe,{handleClose:f,image:t,id:e.id}),"uploading"===e.state&&o.a.createElement(ge,{backgroundColor:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.7)"}))})),l&&!a&&o.a.createElement(Ae,{handleFiles:l,multiple:r}))}},t8nd:function(e,t,r){var n,o,i;!function(a){"use strict";o=[r("lrIn")],void 0===(i="function"==typeof(n=function(e){var t=e.global,r=e.transform,n=t.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),o=t.ArrayBuffer&&ArrayBuffer.prototype.slice||function(e,t){t=t||this.byteLength-e;var r=new Uint8Array(this,e,t),n=new Uint8Array(t);return n.set(r),n.buffer},i={jpeg:{65505:[],65517:[]}};function a(r,a,s,c){var u=this;function l(a,l){if(!(t.DataView&&n&&r&&r.size>=12&&"image/jpeg"===r.type))return a(c);var f=s.maxMetaDataSize||262144;e.readFile(n.call(r,0,f),(function(e){var t=new DataView(e);if(65496!==t.getUint16(0))return l(new Error("Invalid JPEG file: Missing JPEG marker."));for(var r,n,f,p,d=2,h=t.byteLength-4,m=d;d=65504&&r<=65519||65534===r);){if(d+(n=t.getUint16(d+2)+2)>t.byteLength){console.log("Invalid JPEG metadata: Invalid segment size.");break}if((f=i.jpeg[r])&&!s.disableMetaDataParsers)for(p=0;p6&&(c.imageHead=o.call(e,0,m)),a(c)}),l,"readAsArrayBuffer")||a(c)}return s=s||{},t.Promise&&"function"!=typeof a?(c=s=a||{},new Promise(l)):(c=c||{},l(a,a))}function s(e,t,r){return e&&t&&r?new Blob([r,n.call(e,t.byteLength)],{type:"image/jpeg"}):null}e.transform=function(n,o,i,s,c){e.requiresMetaData(o)?a(s,(function(a){a!==c&&(t.console&&console.log(a),a=c),r.call(e,n,o,i,s,a)}),o,c=c||{}):r.apply(e,arguments)},e.blobSlice=n,e.bufferSlice=o,e.replaceHead=function(e,r,n){var o={maxMetaDataSize:256,disableMetaDataParsers:!0};if(!n&&t.Promise)return a(e,o).then((function(t){return s(e,t.imageHead,r)}));a(e,(function(t){n(s(e,t.imageHead,r))}),o)},e.parseMetaData=a,e.metaDataParsers=i})?n.apply(t,o):n)||(e.exports=i)}()},tDyL:function(e,t,r){var n=r("wiKJ"),o=r("kXPx"),i=r("yoW1"),a=r("PqlX"),s=r("0qVv");e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},tF07:function(e,t,r){var n=r("9pAD"),o={}.hasOwnProperty;e.exports=function(e,t){return o.call(n(e),t)}},tImM:function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},tMEJ:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("Eo5u"),o=(r("mXGw"),r("JR5N")),i=r("ca/S"),a=r("doU1"),s=r("yGUY"),c=r("aD51");"undefined"!=typeof RepostButtonProps&&RepostButtonProps&&RepostButtonProps===Object(RepostButtonProps)&&Object.isExtensible(RepostButtonProps)&&!RepostButtonProps.hasOwnProperty("__filemeta")&&Object.defineProperty(RepostButtonProps,"__filemeta",{configurable:!0,value:{name:"RepostButtonProps",filename:"src/components/RepostButton.tsx"}});var u=function(e){var t=e.activity,r=e.feedGroup,u=void 0===r?"user":r,l=e.userId,f=e.repostData,p=e.targetFeeds,d=void 0===p?[]:p,h=Object(i.b)(),m=Object(a.b)(),v="repost"===t.verb&&"object"==typeof t.object?t.object:t;return Object(c.c)(o.a,{counts:v.reaction_counts,own_reactions:v.own_reactions,kind:"repost",onPress:function(){var e;return h.onToggleReaction("repost",v,f,{targetFeeds:[u+":"+(l||(null===(e=m.user)||void 0===e?void 0:e.id))].concat(Object(n.a)(d))})},activeIcon:Object(c.c)(s.g,{style:{color:s.d.Active}}),inactiveIcon:Object(c.c)(s.g,{style:{color:s.d.Inactive}})})};void 0!==u&&u&&u===Object(u)&&Object.isExtensible(u)&&!u.hasOwnProperty("__filemeta")&&Object.defineProperty(u,"__filemeta",{configurable:!0,value:{name:"RepostButton",filename:"src/components/RepostButton.tsx"}})},tTDV:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("LqJZ"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,IconBadge:o.a,React:i}},"tb+2":function(e,t,r){var n=r("07F0"),o=r("E7Xw"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},tfWD:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r("2g96")),i=n(r("5xfP")),a=n(r("n6j1")),s={"3d":o.createElement("path",{d:"M18 14.625V3.375L9 0 0 3.375v11.25L9 18l9-3.375zM9 2.136l5.918 2.22-5.98 2.242-5.919-2.22L9 2.137zM2 13.239V5.065l6.438 2.414v8.174L2 13.24zM9.438 15.7L16 13.239V5.018l-6.563 2.46V15.7z",transform:"translate(15 10)",fillRule:"evenodd"}),acrobat:o.createElement("path",{d:"M10.15 1.095C9.938.33 9.42-.051 8.984.005c-.528.068-1.09.382-1.314.876-.63 1.416.685 5.582.887 6.279-1.28 3.863-5.66 11.5-7.806 12.017-.045-.505.225-1.965 3.055-3.785.146-.157.315-.348.393-.472-2.392 1.168-5.492 3.044-3.628 4.448.102.079.259.146.439.213 1.426.528 3.425-1.201 5.435-5.121 2.213-.73 3.999-1.28 6.526-1.662 2.762 1.875 4.616 2.257 5.874 1.774.348-.135.898-.573 1.055-1.145-1.022 1.258-3.414.382-5.323-.82 1.763-.191 3.582-.303 4.369-.056 1 .314.965.808.954.876.079-.27.191-.708-.022-1.056-.842-1.37-4.706-.573-6.11-.427-2.212-1.336-3.74-3.717-4.358-5.436.573-2.212 1.19-3.818.742-5.413zm-.954 4.638C8.826 4.42 8.309 1.5 9.14.556c1.628.932.618 3.144.056 5.177zm3.044 6.514c-2.134.393-3.583.944-5.66 1.764.617-1.202 1.785-4.268 2.346-6.29.787 1.573 1.741 3.111 3.314 4.526z",transform:"translate(14 9)",fillRule:"evenodd"}),audio:o.createElement("path",{d:"M.25 4.75v4.5h3L7 13V1L3.25 4.75h-3zM10.375 7A3.375 3.375 0 0 0 8.5 3.977v6.037A3.355 3.355 0 0 0 10.375 7zM8.5.421v1.545A5.254 5.254 0 0 1 12.25 7a5.254 5.254 0 0 1-3.75 5.032v1.545A6.747 6.747 0 0 0 13.75 7 6.747 6.747 0 0 0 8.5.421z",transform:"translate(17 12)",fillRule:"evenodd"}),binary:o.createElement("path",{d:"M2.338 6.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504C1.274.928.538 2 .538 3.608c0 1.56.576 2.504 1.8 2.504zM1.61 3.408c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zM2.418 5.2c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568zm7.03.8l.088-.944H8.36V.896L7.272.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zm5.199 0l.088-.944h-1.176V.896L12.47.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zM4.25 14l.088-.944H3.162v-4.16l-1.088.088v.592L.89 9.688l.024.824h1.16v2.544H.754V14zm5.198 0l.088-.944H8.36v-4.16l-1.088.088v.592l-1.184.112.024.824h1.16v2.544h-1.32V14zm3.287.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504-1.192 0-1.928 1.072-1.928 2.68 0 1.56.576 2.504 1.8 2.504zm-.728-2.704c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zm.808 1.792c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568z",transform:"translate(16 11)",fillRule:"evenodd"}),code:o.createElement("path",{d:"M4.078 13.67c-1.875-.527-2.812-1.738-2.812-3.634V9.49C1.266 8.437.844 7.911 0 7.911V6.138c.844 0 1.266-.529 1.266-1.586v-.64c.015-.938.257-1.696.726-2.274C2.466 1.06 3.162.64 4.078.38l.492 1.375c-.656.25-.997.95-1.023 2.102v.695c0 1.167-.482 1.99-1.445 2.469.963.479 1.445 1.304 1.445 2.476v.688c.026 1.15.367 1.851 1.023 2.101l-.492 1.383zm7.844 0c1.875-.527 2.812-1.738 2.812-3.634V9.49c0-1.052.422-1.578 1.266-1.578V6.138c-.844 0-1.266-.529-1.266-1.586v-.64c-.015-.938-.257-1.696-.726-2.274-.474-.578-1.17-.998-2.086-1.258l-.492 1.375c.656.25.997.95 1.023 2.102v.695c0 1.167.482 1.99 1.445 2.469-.963.479-1.445 1.304-1.445 2.476v.688c-.026 1.15-.367 1.851-1.023 2.101l.492 1.383z",transform:"translate(16 13)",fillRule:"evenodd"}),code2:o.createElement("path",{d:"M7.4 10.6L2.8 6l4.6-4.6L6 0 0 6l6 6 1.4-1.4zm5.2 0L17.2 6l-4.6-4.6L14 0l6 6-6 6-1.4-1.4z",transform:"translate(14 14)",fillRule:"evenodd"}),compressed:o.createElement("path",{d:"M.25 0A.25.25 0 0 0 0 .25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 1.75V.25A.25.25 0 0 0 1.75 0H.25zM1 17a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H1zm0 4v3h2v-3H1zM2 2.25A.25.25 0 0 1 2.25 2h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 3.75v-1.5zM.25 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 5.75v-1.5A.25.25 0 0 0 1.75 4H.25zM2 6.25A.25.25 0 0 1 2.25 6h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 7.75v-1.5zM.25 8a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 9.75v-1.5A.25.25 0 0 0 1.75 8H.25zM2 10.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5zM.25 12a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25H.25zM2 14.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5z",transform:"translate(15 1)",fillRule:"evenodd"}),document:o.createElement("path",{d:"M12 4H0v2h12V4zM0 10h18V8H0v2zM0 0v2h18V0H0z",transform:"translate(15 15)",fillRule:"evenodd"}),drive:o.createElement("path",{d:"M2.199.289A.5.5 0 0 1 2.652 0h8.696a.5.5 0 0 1 .453.289l1.867 4a.5.5 0 0 1-.453.711H.785a.5.5 0 0 1-.453-.711l1.867-4zM13 6H1a.752.752 0 0 0-.75.75v4.5c0 .412.338.75.75.75h12c.412 0 .75-.338.75-.75v-4.5A.752.752 0 0 0 13 6zm-9.75 4.5c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5z",transform:"translate(17 13)",fillRule:"evenodd"}),font:o.createElement("path",{d:"M3.722 8.702l-.686 1.89c-.053.14-.094.28-.123.421-.03.135-.044.252-.044.352 0 .304.097.527.29.668.2.14.501.21.905.21h.414V13H.083v-.756h.343c.176 0 .325-.018.448-.053a.81.81 0 0 0 .334-.22c.1-.105.193-.249.281-.43.094-.182.197-.416.308-.704L5.787.15h1.406l4.07 11.136c.07.187.14.343.21.466.077.123.165.222.264.298.1.07.214.12.343.15.129.03.281.044.457.044h.237V13H7.826v-.756h.413c.72 0 1.081-.287 1.081-.862 0-.1-.014-.202-.044-.307a3.274 3.274 0 0 0-.105-.36l-.72-2.013H3.72zM7.009 4.65c-.188-.533-.36-1.031-.519-1.494a15.92 15.92 0 0 1-.378-1.354 7.12 7.12 0 0 1-.15.633 16.95 16.95 0 0 1-.395 1.283c-.082.229-.175.484-.28.765L4.063 7.796h4.061L7.009 4.65zm8.411 5.74c0 .562.117.984.351 1.265.24.275.61.413 1.108.413.363 0 .691-.059.984-.176.3-.117.551-.284.756-.5.211-.218.372-.481.483-.792.112-.31.168-.656.168-1.037V8.104l-1.152.053c-.51.023-.937.088-1.283.193-.34.1-.615.243-.826.43a1.546 1.546 0 0 0-.457.678c-.088.27-.132.58-.132.931zm2.18-6.32c-.346 0-.627.05-.844.15a1.182 1.182 0 0 0-.501.404 1.594 1.594 0 0 0-.237.624c-.041.24-.062.5-.062.782-.498 0-.879-.085-1.143-.255-.257-.17-.386-.463-.386-.879 0-.31.085-.574.255-.79.17-.218.401-.393.694-.528.299-.14.644-.243 1.037-.308a7.76 7.76 0 0 1 1.257-.097c.55 0 1.031.056 1.441.167.41.106.753.282 1.029.528.275.246.48.568.615.967.14.392.21.876.21 1.45v4.667c0 .252.021.46.062.624a.928.928 0 0 0 .194.395c.088.1.202.17.343.211.146.041.319.062.518.062h.053V13H19.7l-.281-1.547h-.15c-.187.252-.369.483-.544.694-.176.211-.37.393-.58.545-.211.152-.452.27-.721.352a3.053 3.053 0 0 1-.958.131c-.399 0-.77-.058-1.116-.175a2.369 2.369 0 0 1-.888-.519 2.516 2.516 0 0 1-.58-.896c-.14-.364-.211-.791-.211-1.284 0-.955.34-1.664 1.02-2.127.68-.462 1.707-.714 3.084-.755l1.495-.053V6.285a6.93 6.93 0 0 0-.053-.888 1.778 1.778 0 0 0-.229-.703 1.14 1.14 0 0 0-.51-.457c-.216-.111-.51-.167-.878-.167z",transform:"translate(13 12)",fillRule:"evenodd"}),image:o.createElement("path",{d:"M13 0L9.25 5l2.85 3.8-1.6 1.2C8.81 7.75 6 4 6 4l-6 8h22L13 0z",transform:"translate(13 14)",fillRule:"evenodd"}),presentation:o.createElement("path",{d:"M2 4H0v10c0 1.1.9 2 2 2h14v-2H2V4zm16-4H6C4.9 0 4 .9 4 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 10H6V2h12v8z",transform:"matrix(-1 0 0 1 34 12)",fillRule:"evenodd"}),settings:o.createElement("path",{d:"M13.572 8.735c.03-.24.053-.48.053-.735s-.023-.495-.053-.735l1.583-1.237a.378.378 0 0 0 .09-.48l-1.5-2.595a.377.377 0 0 0-.457-.165l-1.868.75a5.48 5.48 0 0 0-1.268-.735L9.868.815A.366.366 0 0 0 9.5.5h-3a.366.366 0 0 0-.367.315l-.285 1.988a5.762 5.762 0 0 0-1.268.735l-1.868-.75a.366.366 0 0 0-.457.165l-1.5 2.595a.37.37 0 0 0 .09.48l1.583 1.237c-.03.24-.053.488-.053.735 0 .248.022.495.053.735L.845 9.973a.378.378 0 0 0-.09.48l1.5 2.595c.09.165.292.225.458.165l1.867-.75c.39.3.81.547 1.268.735l.285 1.987c.022.18.18.315.367.315h3a.366.366 0 0 0 .367-.315l.285-1.988a5.762 5.762 0 0 0 1.268-.734l1.867.75c.173.067.368 0 .458-.165l1.5-2.595a.378.378 0 0 0-.09-.48l-1.582-1.238zM8 10.625A2.628 2.628 0 0 1 5.375 8 2.628 2.628 0 0 1 8 5.375 2.628 2.628 0 0 1 10.625 8 2.628 2.628 0 0 1 8 10.625z",transform:"translate(16 11)",fillRule:"evenodd"}),spreadsheet:o.createElement("path",{d:"M0 8h6V5H0v3zm0 5h6v-3H0v3zM0 3h6V0H0v3zm8 5h12V5H8v3zm0 5h12v-3H8v3zM8 0v3h12V0H8z",transform:"translate(14 14)",fillRule:"evenodd"}),vector:o.createElement("path",{d:"M14.5 2V1a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v1H3.937a2 2 0 1 0 0 1h3.936A9 9 0 0 0 3 11v1h2v-1a7.003 7.003 0 0 1 4.594-6.576A1 1 0 0 0 10.5 5h3a1 1 0 0 0 .906-.576A7.003 7.003 0 0 1 19 11v1h2v-1a9 9 0 0 0-4.873-8h3.936a2 2 0 1 0 0-1H14.5zm-1-1h-3v3h3V1zM2 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm19 1a1 1 0 1 0 2 0 1 1 0 0 0-2 0z",transform:"translate(12 14)",fillRule:"evenodd"}),video:o.createElement("path",{d:"M10.75 3.875V1.25A.752.752 0 0 0 10 .5H1a.752.752 0 0 0-.75.75v7.5c0 .412.338.75.75.75h9c.412 0 .75-.338.75-.75V6.125l3 3V.875l-3 3z",transform:"translate(17 14)"})},c=48,u=48,l={WIDTH:40,HEIGHT:u,X_OFFSET:4},f=12;t.default=function(e){var t=e.color,r=void 0===t?"whitesmoke":t,n=e.extension,p=e.fold,d=void 0===p||p,h=e.foldColor,m=e.glyphColor,v=e.gradientColor,g=void 0===v?"white":v,b=e.gradientOpacity,y=void 0===b?.25:b,w=e.labelColor,O=e.labelTextColor,_=void 0===O?"white":O,x=(e.labelTextStyle,e.labelUppercase),j=void 0!==x&&x,k=e.radius,A=void 0===k?4:k,E=e.size,S=e.type,P=a();return o.createElement("svg",{viewBox:"0 0 "+c+" "+u,width:E,height:E,style:{maxWidth:"100%"}},o.createElement("defs",null,o.createElement("clipPath",{id:"pageRadius"+P},o.createElement("rect",{x:l.X_OFFSET,y:"0",rx:A,ry:A,width:l.WIDTH,height:l.HEIGHT})),o.createElement("clipPath",{id:"foldCrop"},o.createElement("rect",{width:l.WIDTH,height:f,transform:"rotate(-45 0 "+f+")"})),o.createElement("linearGradient",{x1:"100%",y1:"0%",y2:"100%",id:"pageGradient"+P},o.createElement("stop",{stopColor:g,stopOpacity:y,offset:"0%"}),o.createElement("stop",{stopColor:g,stopOpacity:"0",offset:"66.67%"}))),o.createElement("g",{id:"file",clipPath:"url(#pageRadius"+P+")"},d?o.createElement(o.Fragment,null,o.createElement("path",{d:"M"+l.X_OFFSET+" 0 h "+(l.WIDTH-f)+" L "+(l.WIDTH+l.X_OFFSET)+" "+f+" v "+(l.HEIGHT-f)+" H "+l.X_OFFSET+" Z",fill:r}),o.createElement("path",{d:"M"+l.X_OFFSET+" 0 h "+(l.WIDTH-f)+" L "+(l.WIDTH+l.X_OFFSET)+" "+f+" v "+(l.HEIGHT-f)+" H "+l.X_OFFSET+" Z",fill:"url(#pageGradient"+P+")"})):o.createElement(o.Fragment,null,o.createElement("rect",{x:l.X_OFFSET,y:"0",width:l.WIDTH,height:l.HEIGHT,fill:r}),o.createElement("rect",{x:l.X_OFFSET,y:"0",width:l.WIDTH,height:l.HEIGHT,fill:"url(#pageGradient"+P+")"}))),d&&o.createElement("g",{transform:"translate(32 "+f+") rotate(-90)"},o.createElement("rect",{width:l.WIDTH,height:l.HEIGHT,fill:h||i(r).darken(10).toString(),rx:A,ry:A,clipPath:"url(#foldCrop)"})),n&&o.createElement(o.Fragment,null,o.createElement("g",{id:"label"},o.createElement("rect",{fill:w||i(r).darken(30).toString(),x:l.X_OFFSET,y:l.HEIGHT-14,width:l.WIDTH,height:14,clipPath:"url(#pageRadius"+P+")"})),o.createElement("g",{id:"labelText",transform:"translate("+l.X_OFFSET+" 34)"},o.createElement("text",{x:l.WIDTH/2,y:"10",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"9",fill:_,textAnchor:"middle",style:{fontWeight:"bold",textAlign:"center",pointerEvents:"none",textTransform:j?"uppercase":"none",userSelect:"none"}},n))),S&&o.createElement("g",{transform:"translate(0 "+(n?0:6)+")",fill:m||i(r).darken(15).toString()},s[S]))},t.defaultStyles={"3dm":{labelColor:"#8D1A11",type:"3d"},"3ds":{labelColor:"#5FB9AD",type:"3d"},"3g2":{type:"video"},"3gp":{type:"video"},"7zip":{type:"compressed"},aac:{type:"audio"},aep:{type:"video"},ai:{color:"#423325",gradientOpacity:0,labelColor:"#423325",labelTextColor:"#FF7F18",labelUppercase:!0,foldColor:"#FF7F18",radius:2},aif:{type:"audio"},aiff:{type:"audio"},asf:{type:"video"},asp:{type:"code"},aspx:{type:"code"},avi:{type:"video"},bin:{type:"binary"},bmp:{type:"image"},c:{type:"code"},cpp:{type:"code"},cs:{type:"code"},css:{type:"code"},csv:{type:"spreadsheet"},cue:{type:"document"},dll:{type:"settings"},dmg:{type:"drive"},doc:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},docx:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},dwg:{type:"vector"},dxf:{type:"vector"},eot:{type:"font"},eps:{type:"vector"},exe:{type:"settings"},flac:{type:"audio"},flv:{type:"video"},fnt:{type:"font"},fodp:{type:"presentation"},fods:{type:"spreadsheet"},fodt:{type:"document"},fon:{type:"font"},gif:{type:"image"},gz:{type:"compressed"},htm:{type:"code"},html:{type:"code"},indd:{color:"#4B2B36",gradientOpacity:0,labelColor:"#4B2B36",labelTextColor:"#FF408C",labelUppercase:!0,foldColor:"#FF408C",radius:2},ini:{type:"settings"},java:{type:"code"},jpeg:{type:"image"},jpg:{type:"image"},js:{labelColor:"#F7DF1E",type:"code"},json:{type:"code"},jsx:{labelColor:"#00D8FF",type:"code"},m4a:{type:"audio"},m4v:{type:"video"},max:{labelColor:"#5FB9AD",type:"3d"},md:{type:"document"},mid:{type:"audio"},mkv:{type:"video"},mov:{type:"video"},mp3:{type:"audio"},mp4:{type:"video"},mpeg:{type:"video"},mpg:{type:"video"},obj:{type:"3d"},odp:{type:"presentation"},ods:{type:"spreadsheet"},odt:{type:"document"},ogg:{type:"audio"},ogv:{type:"video"},otf:{type:"font"},pdf:{labelColor:"#D93831",type:"acrobat"},php:{labelColor:"#8892BE",type:"code"},pkg:{type:"3d"},plist:{type:"settings"},png:{type:"image"},ppt:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pptx:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pr:{type:"video"},ps:{type:"vector"},psd:{color:"#34364E",gradientOpacity:0,labelColor:"#34364E",labelTextColor:"#31C5F0",labelUppercase:!0,foldColor:"#31C5F0",radius:2},py:{labelColor:"#FFDE57",type:"code"},rar:{type:"compressed"},rb:{labelColor:"#BB271A",type:"code"},rm:{type:"video"},rtf:{type:"document"},scss:{labelColor:"#C16A98",type:"code"},sitx:{type:"compressed"},svg:{type:"vector"},swf:{type:"video"},sys:{type:"settings"},tar:{type:"compressed"},tex:{type:"document"},tif:{type:"image"},tiff:{type:"image"},ts:{labelColor:"#3478C7",type:"code"},ttf:{type:"font"},txt:{type:"document"},wav:{type:"audio"},webm:{type:"video"},wmv:{type:"video"},woff:{type:"font"},wpd:{type:"document"},wps:{type:"document"},xlr:{type:"spreadsheet"},xls:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},xlsx:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},yml:{type:"code"},zip:{type:"compressed"},zipx:{type:"compressed"}}},tfj2:function(e,t,r){(function(e){var n=r("s3UK"),o=r("1ezk"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,r("RoC8")(e))},ti3h:function(e,t,r){var n=r("296D");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},tuRl:function(e,t,r){"use strict";r.r(t);var n=r("ZFoC"),o=r("j4d1"),i=r("mXGw");t.default={Playground:n.c,Props:n.d,Audio:o.a,React:i}},u2vY:function(e,t,r){var n=r("Exs5");e.exports=function(e){return function(t){return n(t,e)}}},u69n:function(e,t){var r="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(){}e.exports=n,n.prototype.emit=function(e){if("error"===e&&(!this._events||!this._events.error||r(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var t=this._events[e];if(!t)return!1;if("function"==typeof t){switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:var n=Array.prototype.slice.call(arguments,1);t.apply(this,n)}return!0}if(r(t)){n=Array.prototype.slice.call(arguments,1);for(var o=t.slice(),i=0,a=o.length;i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},u8FO:function(e,t,r){var n=r("MfmI"),o=r("33Qb"),i=r("SAih"),a=r("9aUh"),s=r("r2IE"),c=r("iysA"),u=r("gPdB"),l=r("LF0y"),f=r("zYYD"),p=/\w*$/;e.exports=function(e,t){var r=30,d="...";if(a(t)){var h="separator"in t?t.separator:h;r="length"in t?l(t.length):r,d="omission"in t?n(t.omission):d}var m=(e=f(e)).length;if(i(e)){var v=u(e);m=v.length}if(r>=m)return e;var g=r-c(d);if(g<1)return d;var b=v?o(v,0,g).join(""):e.slice(0,g);if(void 0===h)return b+d;if(v&&(g+=b.length-g),s(h)){if(e.slice(g).search(h)){var y,w=b;for(h.global||(h=RegExp(h.source,f(p.exec(h))+"g")),h.lastIndex=0;y=h.exec(w);)var O=y.index;b=b.slice(0,void 0===O?g:O)}}else if(e.indexOf(n(h),g)!=g){var _=b.lastIndexOf(h);_>-1&&(b=b.slice(0,_))}return b+d}},u8vn:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("mXGw");var n=r("Pdo2"),o=r("qqks"),i=r("aD51");function a(e){var t=e.limit,r=void 0===t?5:t,a=e.users,s=void 0===a?[]:a,c=e.avatarSize,u=void 0===c?30:c,l=e.onClickUser,f=Object(n.h)(l);return Object(i.c)("div",{className:"raf-avatar-group"},s.slice(0,r).map((function(e,t){var r;return Object(i.c)("div",{className:"raf-avatar-group__avatar",key:"avatar-"+t},Object(i.c)(o.a,{onClick:null==f?void 0:f(e),image:null===(r=e.data)||void 0===r?void 0:r.profileImage,size:u,circle:!0}))})))}"undefined"!=typeof AvatarGroupProps&&AvatarGroupProps&&AvatarGroupProps===Object(AvatarGroupProps)&&Object.isExtensible(AvatarGroupProps)&&!AvatarGroupProps.hasOwnProperty("__filemeta")&&Object.defineProperty(AvatarGroupProps,"__filemeta",{configurable:!0,value:{name:"AvatarGroupProps",filename:"src/components/AvatarGroup.tsx"}}),void 0!==a&&a&&a===Object(a)&&Object.isExtensible(a)&&!a.hasOwnProperty("__filemeta")&&Object.defineProperty(a,"__filemeta",{configurable:!0,value:{name:"AvatarGroup",filename:"src/components/AvatarGroup.tsx"}})},uWlk:function(e,t,r){"use strict";var n=r("H0bX");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("Sgbw")),i=n(r("AcCc")),a=n(r("Mj04")),s=n(r("D1KR")),c=n(r("YrpG")),u=n(r("ti3h")),l=n(r("mXGw")),f=function(e){function t(e){var r;(0,o.default)(this,t),r=(0,a.default)(this,(0,s.default)(t).call(this,e));var n=e.categories.filter((function(e){return e.first}))[0];return r.state={selected:n.name},r.handleClick=r.handleClick.bind((0,c.default)(r)),r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(e){var t=e.currentTarget.getAttribute("data-index"),r=this.props,n=r.categories;(0,r.onAnchorClick)(n[t],t)}},{key:"render",value:function(){var e=this,t=this.props,r=t.categories,n=t.color,o=t.i18n,i=t.icons,a=this.state.selected;return l.default.createElement("nav",{className:"emoji-mart-anchors","aria-label":o.categorieslabel},r.map((function(t,r){var s=t.id,c=t.name,u=t.anchor,f=c==a;if(!1===u)return null;var p=s.startsWith("custom-")?"custom":s;return l.default.createElement("button",{key:s,"aria-label":o.categories[p],title:o.categories[p],"data-index":r,type:"button",onClick:e.handleClick,className:"emoji-mart-anchor ".concat(f?"emoji-mart-anchor-selected":""),style:{color:f?n:null}},l.default.createElement("div",{className:"emoji-mart-anchor-icon"},i.categories[p]()),l.default.createElement("span",{className:"emoji-mart-anchor-bar",style:{backgroundColor:n}}))})))}}]),t}(l.default.PureComponent);t.default=f,f.defaultProps={categories:[],onAnchorClick:function(){},icons:{}}},uahg:function(e,t,r){"use strict";var n=r("ovh1"),o=r("fwl+"),i=r("i0F7"),a=r("guUT"),s=r("Zrjs");function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=c},"ui+V":function(e,t,r){var n=r("kidB").default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r},e.exports.default=e.exports,e.exports.__esModule=!0},ujzH:function(e,t,r){var n=r("8OJN"),o=r("ek/P");e.exports=Object.keys||function(e){return n(e,o)}},v0JE:function(e,t,r){var n=r("tF07"),o=r("LMdw"),i=r("Fup7"),a=r("nRc6");e.exports=function(e,t){for(var r=o(t),s=a.f,c=i.f,u=0;u1&&void 0!==arguments[1]?arguments[1]:{},n=r.emojisToShowFilter,o=r.maxResults,i=r.include,s=r.exclude,u=r.custom,l=void 0===u?[]:u;this.customEmojisList!=l&&this.addCustomToPool(l,this.originalPool);var f=c.default.get("skin")||1;o||(o=75),i||(i=[]),s||(s=[]);var p=null,d=this.originalPool;if(e.length){if("-"==e||"-1"==e)return[this.emojis[-1][f]];var h=e.toLowerCase().split(/[\s|,|\-|_]+/),m=[];if(h.length>2&&(h=[h[0],h[1]]),(i.length||s.length)&&(d={},this.data.categories.forEach((function(e){var r=!i||!i.length||i.indexOf(e.id)>-1,n=!(!s||!s.length)&&s.indexOf(e.id)>-1;r&&!n&&e.emojis.forEach((function(e){return d[e]=t.data.emojis[e]}))})),l.length)){var v=!i||!i.length||i.indexOf("custom")>-1,g=!(!s||!s.length)&&s.indexOf("custom")>-1;v&&!g&&this.addCustomToPool(l,d)}p=(m=h.map((function(e){for(var r=d,n=t.index,o=0,i=0;i1?a.intersect.apply(null,m):m.length?m[0]:[]}return p&&(n&&(p=p.filter((function(e){return n(d[e.id])}))),p&&p.length>o&&(p=p.slice(0,o))),p}}]),e}();t.default=u},vDbd:function(e,t,r){var n=r("V2ZB"),o=r("Vujp");e.exports=function(e){return n(e,o(e))}},vMO2:function(e,t,r){"use strict";var n=r("ovh1");e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},vMVM:function(e,t,r){var n=r("jgJv"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(c){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},vODl:function(e,t,r){"use strict";var n=r("y4Fq"),o=[],i=[],a=n.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function s(e){var t;(t=o.length?o.pop():new c).task=e,n(t)}function c(){this.task=null}e.exports=s,c.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},vft2:function(e,t,r){var n=r("0711"),o=r("tDyL");e.exports=function(e){return o("function"==typeof e?e:n(e,1))}},vhWV:function(e,t,r){"use strict";t.__esModule=!0,t.parsePath=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");-1!==i&&(r=t.substr(i),t=t.substr(0,i));return{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}},vvBr:function(e,t,r){var n=r("naAV");e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},"w/Ji":function(e,t,r){var n,o=r("gDYM"),i=r("11ZY"),a=r("ek/P"),s=r("s3NK"),c=r("R1TW"),u=r("HRgQ"),l=r("3pC9"),f=l("IE_PROTO"),p=function(){},d=function(e){return"\n if (val === '') return true;\n if (val === 'false') return false;\n if (val === 'true') return true;\n return val;\n}\n\nif (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {\n var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];\n attrs.forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n attr = _ref2[0],\n key = _ref2[1];\n\n var val = coerce(getAttrConfig(attr));\n\n if (val !== undefined && val !== null) {\n initial[key] = val;\n }\n });\n}\n\nvar _default = {\n familyPrefix: DEFAULT_FAMILY_PREFIX,\n replacementClass: DEFAULT_REPLACEMENT_CLASS,\n autoReplaceSvg: true,\n autoAddCss: true,\n autoA11y: true,\n searchPseudoElements: false,\n observeMutations: true,\n mutateApproach: 'async',\n keepOriginalSource: true,\n measurePerformance: false,\n showMissingIcons: true\n};\n\nvar _config = _objectSpread({}, _default, initial);\n\nif (!_config.autoReplaceSvg) _config.observeMutations = false;\n\nvar config = _objectSpread({}, _config);\n\nWINDOW.FontAwesomeConfig = config;\nvar w = WINDOW || {};\nif (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};\nif (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};\nif (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};\nif (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];\nvar namespace = w[NAMESPACE_IDENTIFIER];\nvar functions = [];\n\nvar listener = function listener() {\n DOCUMENT.removeEventListener('DOMContentLoaded', listener);\n loaded = 1;\n functions.map(function (fn) {\n return fn();\n });\n};\n\nvar loaded = false;\n\nif (IS_DOM) {\n loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);\n}\n\nfunction domready(fn) {\n if (!IS_DOM) return;\n loaded ? setTimeout(fn, 0) : functions.push(fn);\n}\n\nvar PENDING = 'pending';\nvar SETTLED = 'settled';\nvar FULFILLED = 'fulfilled';\nvar REJECTED = 'rejected';\n\nvar NOOP = function NOOP() {};\n\nvar isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';\nvar asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;\nvar asyncQueue = [];\nvar asyncTimer;\n\nfunction asyncFlush() {\n // run promise callbacks\n for (var i = 0; i < asyncQueue.length; i++) {\n asyncQueue[i][0](asyncQueue[i][1]);\n } // reset async asyncQueue\n\n\n asyncQueue = [];\n asyncTimer = false;\n}\n\nfunction asyncCall(callback, arg) {\n asyncQueue.push([callback, arg]);\n\n if (!asyncTimer) {\n asyncTimer = true;\n asyncSetTimer(asyncFlush, 0);\n }\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch (e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(subscriber) {\n var owner = subscriber.owner;\n var settled = owner._state;\n var value = owner._data;\n var callback = subscriber[settled];\n var promise = subscriber.then;\n\n if (typeof callback === 'function') {\n settled = FULFILLED;\n\n try {\n value = callback(value);\n } catch (e) {\n reject(promise, e);\n }\n }\n\n if (!handleThenable(promise, value)) {\n if (settled === FULFILLED) {\n resolve(promise, value);\n }\n\n if (settled === REJECTED) {\n reject(promise, value);\n }\n }\n}\n\nfunction handleThenable(promise, value) {\n var resolved;\n\n try {\n if (promise === value) {\n throw new TypeError('A promises callback cannot return that same promise.');\n }\n\n if (value && (typeof value === 'function' || _typeof(value) === 'object')) {\n // then should be retrieved only once\n var then = value.then;\n\n if (typeof then === 'function') {\n then.call(value, function (val) {\n if (!resolved) {\n resolved = true;\n\n if (value === val) {\n fulfill(promise, val);\n } else {\n resolve(promise, val);\n }\n }\n }, function (reason) {\n if (!resolved) {\n resolved = true;\n reject(promise, reason);\n }\n });\n return true;\n }\n }\n } catch (e) {\n if (!resolved) {\n reject(promise, e);\n }\n\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value || !handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = value;\n asyncCall(publishFulfillment, promise);\n }\n}\n\nfunction reject(promise, reason) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = reason;\n asyncCall(publishRejection, promise);\n }\n}\n\nfunction publish(promise) {\n promise._then = promise._then.forEach(invokeCallback);\n}\n\nfunction publishFulfillment(promise) {\n promise._state = FULFILLED;\n publish(promise);\n}\n\nfunction publishRejection(promise) {\n promise._state = REJECTED;\n publish(promise);\n\n if (!promise._handled && isNode) {\n global.process.emit('unhandledRejection', promise._data, promise);\n }\n}\n\nfunction notifyRejectionHandled(promise) {\n global.process.emit('rejectionHandled', promise);\n}\n/**\n * @class\n */\n\n\nfunction P(resolver) {\n if (typeof resolver !== 'function') {\n throw new TypeError('Promise resolver ' + resolver + ' is not a function');\n }\n\n if (this instanceof P === false) {\n throw new TypeError('Failed to construct \\'Promise\\': Please use the \\'new\\' operator, this object constructor cannot be called as a function.');\n }\n\n this._then = [];\n invokeResolver(resolver, this);\n}\n\nP.prototype = {\n constructor: P,\n _state: PENDING,\n _then: null,\n _data: undefined,\n _handled: false,\n then: function then(onFulfillment, onRejection) {\n var subscriber = {\n owner: this,\n then: new this.constructor(NOOP),\n fulfilled: onFulfillment,\n rejected: onRejection\n };\n\n if ((onRejection || onFulfillment) && !this._handled) {\n this._handled = true;\n\n if (this._state === REJECTED && isNode) {\n asyncCall(notifyRejectionHandled, this);\n }\n }\n\n if (this._state === FULFILLED || this._state === REJECTED) {\n // already resolved, call callback async\n asyncCall(invokeCallback, subscriber);\n } else {\n // subscribe\n this._then.push(subscriber);\n }\n\n return subscriber.then;\n },\n catch: function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nP.all = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.all().');\n }\n\n return new P(function (resolve, reject) {\n var results = [];\n var remaining = 0;\n\n function resolver(index) {\n remaining++;\n return function (value) {\n results[index] = value;\n\n if (! --remaining) {\n resolve(results);\n }\n };\n }\n\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolver(i), reject);\n } else {\n results[i] = promise;\n }\n }\n\n if (!remaining) {\n resolve(results);\n }\n });\n};\n\nP.race = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.race().');\n }\n\n return new P(function (resolve, reject) {\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n};\n\nP.resolve = function (value) {\n if (value && _typeof(value) === 'object' && value.constructor === P) {\n return value;\n }\n\n return new P(function (resolve) {\n resolve(value);\n });\n};\n\nP.reject = function (reason) {\n return new P(function (resolve, reject) {\n reject(reason);\n });\n};\n\nvar picked = typeof Promise === 'function' ? Promise : P;\nvar d = UNITS_IN_GRID;\nvar meaninglessTransform = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: false,\n flipY: false\n};\n\nfunction isReserved(name) {\n return ~RESERVED_CLASSES.indexOf(name);\n}\n\nfunction insertCss(css) {\n if (!css || !IS_DOM) {\n return;\n }\n\n var style = DOCUMENT.createElement('style');\n style.setAttribute('type', 'text/css');\n style.innerHTML = css;\n var headChildren = DOCUMENT.head.childNodes;\n var beforeChild = null;\n\n for (var i = headChildren.length - 1; i > -1; i--) {\n var child = headChildren[i];\n var tagName = (child.tagName || '').toUpperCase();\n\n if (['STYLE', 'LINK'].indexOf(tagName) > -1) {\n beforeChild = child;\n }\n }\n\n DOCUMENT.head.insertBefore(style, beforeChild);\n return css;\n}\n\nvar idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\nfunction nextUniqueId() {\n var size = 12;\n var id = '';\n\n while (size-- > 0) {\n id += idPool[Math.random() * 62 | 0];\n }\n\n return id;\n}\n\nfunction toArray(obj) {\n var array = [];\n\n for (var i = (obj || []).length >>> 0; i--;) {\n array[i] = obj[i];\n }\n\n return array;\n}\n\nfunction classArray(node) {\n if (node.classList) {\n return toArray(node.classList);\n } else {\n return (node.getAttribute('class') || '').split(' ').filter(function (i) {\n return i;\n });\n }\n}\n\nfunction getIconName(familyPrefix, cls) {\n var parts = cls.split('-');\n var prefix = parts[0];\n var iconName = parts.slice(1).join('-');\n\n if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {\n return iconName;\n } else {\n return null;\n }\n}\n\nfunction htmlEscape(str) {\n return \"\".concat(str).replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(//g, '>');\n}\n\nfunction joinAttributes(attributes) {\n return Object.keys(attributes || {}).reduce(function (acc, attributeName) {\n return acc + \"\".concat(attributeName, \"=\\\"\").concat(htmlEscape(attributes[attributeName]), \"\\\" \");\n }, '').trim();\n}\n\nfunction joinStyles(styles) {\n return Object.keys(styles || {}).reduce(function (acc, styleName) {\n return acc + \"\".concat(styleName, \": \").concat(styles[styleName], \";\");\n }, '');\n}\n\nfunction transformIsMeaningful(transform) {\n return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;\n}\n\nfunction transformForSvg(_ref) {\n var transform = _ref.transform,\n containerWidth = _ref.containerWidth,\n iconWidth = _ref.iconWidth;\n var outer = {\n transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n };\n var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n var inner = {\n transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n };\n var path = {\n transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n };\n return {\n outer: outer,\n inner: inner,\n path: path\n };\n}\n\nfunction transformForCss(_ref2) {\n var transform = _ref2.transform,\n _ref2$width = _ref2.width,\n width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,\n _ref2$height = _ref2.height,\n height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,\n _ref2$startCentered = _ref2.startCentered,\n startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;\n var val = '';\n\n if (startCentered && IS_IE) {\n val += \"translate(\".concat(transform.x / d - width / 2, \"em, \").concat(transform.y / d - height / 2, \"em) \");\n } else if (startCentered) {\n val += \"translate(calc(-50% + \".concat(transform.x / d, \"em), calc(-50% + \").concat(transform.y / d, \"em)) \");\n } else {\n val += \"translate(\".concat(transform.x / d, \"em, \").concat(transform.y / d, \"em) \");\n }\n\n val += \"scale(\".concat(transform.size / d * (transform.flipX ? -1 : 1), \", \").concat(transform.size / d * (transform.flipY ? -1 : 1), \") \");\n val += \"rotate(\".concat(transform.rotate, \"deg) \");\n return val;\n}\n\nvar ALL_SPACE = {\n x: 0,\n y: 0,\n width: '100%',\n height: '100%'\n};\n\nfunction fillBlack(abstract) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (abstract.attributes && (abstract.attributes.fill || force)) {\n abstract.attributes.fill = 'black';\n }\n\n return abstract;\n}\n\nfunction deGroup(abstract) {\n if (abstract.tag === 'g') {\n return abstract.children;\n } else {\n return [abstract];\n }\n}\n\nfunction makeIconMasking(_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n mask = _ref.mask,\n explicitMaskId = _ref.maskId,\n transform = _ref.transform;\n var mainWidth = main.width,\n mainPath = main.icon;\n var maskWidth = mask.width,\n maskPath = mask.icon;\n var trans = transformForSvg({\n transform: transform,\n containerWidth: maskWidth,\n iconWidth: mainWidth\n });\n var maskRect = {\n tag: 'rect',\n attributes: _objectSpread({}, ALL_SPACE, {\n fill: 'white'\n })\n };\n var maskInnerGroupChildrenMixin = mainPath.children ? {\n children: mainPath.children.map(fillBlack)\n } : {};\n var maskInnerGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [fillBlack(_objectSpread({\n tag: mainPath.tag,\n attributes: _objectSpread({}, mainPath.attributes, trans.path)\n }, maskInnerGroupChildrenMixin))]\n };\n var maskOuterGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [maskInnerGroup]\n };\n var maskId = \"mask-\".concat(explicitMaskId || nextUniqueId());\n var clipId = \"clip-\".concat(explicitMaskId || nextUniqueId());\n var maskTag = {\n tag: 'mask',\n attributes: _objectSpread({}, ALL_SPACE, {\n id: maskId,\n maskUnits: 'userSpaceOnUse',\n maskContentUnits: 'userSpaceOnUse'\n }),\n children: [maskRect, maskOuterGroup]\n };\n var defs = {\n tag: 'defs',\n children: [{\n tag: 'clipPath',\n attributes: {\n id: clipId\n },\n children: deGroup(maskPath)\n }, maskTag]\n };\n children.push(defs, {\n tag: 'rect',\n attributes: _objectSpread({\n fill: 'currentColor',\n 'clip-path': \"url(#\".concat(clipId, \")\"),\n mask: \"url(#\".concat(maskId, \")\")\n }, ALL_SPACE)\n });\n return {\n children: children,\n attributes: attributes\n };\n}\n\nfunction makeIconStandard(_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n transform = _ref.transform,\n styles = _ref.styles;\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n if (transformIsMeaningful(transform)) {\n var trans = transformForSvg({\n transform: transform,\n containerWidth: main.width,\n iconWidth: main.width\n });\n children.push({\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [{\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [{\n tag: main.icon.tag,\n children: main.icon.children,\n attributes: _objectSpread({}, main.icon.attributes, trans.path)\n }]\n }]\n });\n } else {\n children.push(main.icon);\n }\n\n return {\n children: children,\n attributes: attributes\n };\n}\n\nfunction asIcon(_ref) {\n var children = _ref.children,\n main = _ref.main,\n mask = _ref.mask,\n attributes = _ref.attributes,\n styles = _ref.styles,\n transform = _ref.transform;\n\n if (transformIsMeaningful(transform) && main.found && !mask.found) {\n var width = main.width,\n height = main.height;\n var offset = {\n x: width / height / 2,\n y: 0.5\n };\n attributes['style'] = joinStyles(_objectSpread({}, styles, {\n 'transform-origin': \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n }));\n }\n\n return [{\n tag: 'svg',\n attributes: attributes,\n children: children\n }];\n}\n\nfunction asSymbol(_ref) {\n var prefix = _ref.prefix,\n iconName = _ref.iconName,\n children = _ref.children,\n attributes = _ref.attributes,\n symbol = _ref.symbol;\n var id = symbol === true ? \"\".concat(prefix, \"-\").concat(config.familyPrefix, \"-\").concat(iconName) : symbol;\n return [{\n tag: 'svg',\n attributes: {\n style: 'display: none;'\n },\n children: [{\n tag: 'symbol',\n attributes: _objectSpread({}, attributes, {\n id: id\n }),\n children: children\n }]\n }];\n}\n\nfunction makeInlineSvgAbstract(params) {\n var _params$icons = params.icons,\n main = _params$icons.main,\n mask = _params$icons.mask,\n prefix = params.prefix,\n iconName = params.iconName,\n transform = params.transform,\n symbol = params.symbol,\n title = params.title,\n maskId = params.maskId,\n titleId = params.titleId,\n extra = params.extra,\n _params$watchable = params.watchable,\n watchable = _params$watchable === void 0 ? false : _params$watchable;\n\n var _ref = mask.found ? mask : main,\n width = _ref.width,\n height = _ref.height;\n\n var isUploadedIcon = prefix === 'fak';\n var widthClass = isUploadedIcon ? '' : \"fa-w-\".concat(Math.ceil(width / height * 16));\n var attrClass = [config.replacementClass, iconName ? \"\".concat(config.familyPrefix, \"-\").concat(iconName) : '', widthClass].filter(function (c) {\n return extra.classes.indexOf(c) === -1;\n }).filter(function (c) {\n return c !== '' || !!c;\n }).concat(extra.classes).join(' ');\n var content = {\n children: [],\n attributes: _objectSpread({}, extra.attributes, {\n 'data-prefix': prefix,\n 'data-icon': iconName,\n 'class': attrClass,\n 'role': extra.attributes.role || 'img',\n 'xmlns': 'http://www.w3.org/2000/svg',\n 'viewBox': \"0 0 \".concat(width, \" \").concat(height)\n })\n };\n var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {\n width: \"\".concat(width / height * 16 * 0.0625, \"em\")\n } : {};\n\n if (watchable) {\n content.attributes[DATA_FA_I2SVG] = '';\n }\n\n if (title) content.children.push({\n tag: 'title',\n attributes: {\n id: content.attributes['aria-labelledby'] || \"title-\".concat(titleId || nextUniqueId())\n },\n children: [title]\n });\n\n var args = _objectSpread({}, content, {\n prefix: prefix,\n iconName: iconName,\n main: main,\n mask: mask,\n maskId: maskId,\n transform: transform,\n symbol: symbol,\n styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)\n });\n\n var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),\n children = _ref2.children,\n attributes = _ref2.attributes;\n\n args.children = children;\n args.attributes = attributes;\n\n if (symbol) {\n return asSymbol(args);\n } else {\n return asIcon(args);\n }\n}\n\nfunction makeLayersTextAbstract(params) {\n var content = params.content,\n width = params.width,\n height = params.height,\n transform = params.transform,\n title = params.title,\n extra = params.extra,\n _params$watchable2 = params.watchable,\n watchable = _params$watchable2 === void 0 ? false : _params$watchable2;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n if (watchable) {\n attributes[DATA_FA_I2SVG] = '';\n }\n\n var styles = _objectSpread({}, extra.styles);\n\n if (transformIsMeaningful(transform)) {\n styles['transform'] = transformForCss({\n transform: transform,\n startCentered: true,\n width: width,\n height: height\n });\n styles['-webkit-transform'] = styles['transform'];\n }\n\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n}\n\nfunction makeLayersCounterAbstract(params) {\n var content = params.content,\n title = params.title,\n extra = params.extra;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n var styleString = joinStyles(extra.styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n}\n\nvar noop$1 = function noop() {};\n\nvar p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n mark: noop$1,\n measure: noop$1\n};\nvar preamble = \"FA \\\"5.15.3\\\"\";\n\nvar begin = function begin(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n return function () {\n return end(name);\n };\n};\n\nvar end = function end(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" ends\"));\n p.measure(\"\".concat(preamble, \" \").concat(name), \"\".concat(preamble, \" \").concat(name, \" begins\"), \"\".concat(preamble, \" \").concat(name, \" ends\"));\n};\n\nvar perf = {\n begin: begin,\n end: end\n};\n/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */\n\nvar bindInternal4 = function bindInternal4(func, thisContext) {\n return function (a, b, c, d) {\n return func.call(thisContext, a, b, c, d);\n };\n};\n/**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param {Object} subject The object to reduce over.\n * @param {Function} fn The reducer function.\n * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].\n * @param {Object} thisContext The context for the reducer.\n * @return {mixed} The final result.\n */\n\n\nvar reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {\n var keys = Object.keys(subject),\n length = keys.length,\n iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,\n i,\n key,\n result;\n\n if (initialValue === undefined) {\n i = 1;\n result = subject[keys[0]];\n } else {\n i = 0;\n result = initialValue;\n }\n\n for (; i < length; i++) {\n key = keys[i];\n result = iterator(result, subject[key], key, subject);\n }\n\n return result;\n};\n\nfunction toHex(unicode) {\n var result = '';\n\n for (var i = 0; i < unicode.length; i++) {\n var hex = unicode.charCodeAt(i).toString(16);\n result += ('000' + hex).slice(-4);\n }\n\n return result;\n}\n\nfunction defineIcons(prefix, icons) {\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _params$skipHooks = params.skipHooks,\n skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;\n var normalized = Object.keys(icons).reduce(function (acc, iconName) {\n var icon = icons[iconName];\n var expanded = !!icon.icon;\n\n if (expanded) {\n acc[icon.iconName] = icon.icon;\n } else {\n acc[iconName] = icon;\n }\n\n return acc;\n }, {});\n\n if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {\n namespace.hooks.addPack(prefix, normalized);\n } else {\n namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);\n }\n /**\n * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n * for `fas` so we'll easy the upgrade process for our users by automatically defining\n * this as well.\n */\n\n\n if (prefix === 'fas') {\n defineIcons('fa', icons);\n }\n}\n\nvar styles = namespace.styles,\n shims = namespace.shims;\nvar _byUnicode = {};\nvar _byLigature = {};\nvar _byOldName = {};\n\nvar build = function build() {\n var lookup = function lookup(reducer) {\n return reduce(styles, function (o, style, prefix) {\n o[prefix] = reduce(style, reducer, {});\n return o;\n }, {});\n };\n\n _byUnicode = lookup(function (acc, icon, iconName) {\n if (icon[3]) {\n acc[icon[3]] = iconName;\n }\n\n return acc;\n });\n _byLigature = lookup(function (acc, icon, iconName) {\n var ligatures = icon[2];\n acc[iconName] = iconName;\n ligatures.forEach(function (ligature) {\n acc[ligature] = iconName;\n });\n return acc;\n });\n var hasRegular = ('far' in styles);\n _byOldName = reduce(shims, function (acc, shim) {\n var oldName = shim[0];\n var prefix = shim[1];\n var iconName = shim[2];\n\n if (prefix === 'far' && !hasRegular) {\n prefix = 'fas';\n }\n\n acc[oldName] = {\n prefix: prefix,\n iconName: iconName\n };\n return acc;\n }, {});\n};\n\nbuild();\n\nfunction byUnicode(prefix, unicode) {\n return (_byUnicode[prefix] || {})[unicode];\n}\n\nfunction byLigature(prefix, ligature) {\n return (_byLigature[prefix] || {})[ligature];\n}\n\nfunction byOldName(name) {\n return _byOldName[name] || {\n prefix: null,\n iconName: null\n };\n}\n\nvar styles$1 = namespace.styles;\n\nvar emptyCanonicalIcon = function emptyCanonicalIcon() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n};\n\nfunction getCanonicalIcon(values) {\n return values.reduce(function (acc, cls) {\n var iconName = getIconName(config.familyPrefix, cls);\n\n if (styles$1[cls]) {\n acc.prefix = cls;\n } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {\n acc.prefix = cls;\n } else if (iconName) {\n var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};\n acc.iconName = shim.iconName || iconName;\n acc.prefix = shim.prefix || acc.prefix;\n } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {\n acc.rest.push(cls);\n }\n\n return acc;\n }, emptyCanonicalIcon());\n}\n\nfunction iconFromMapping(mapping, prefix, iconName) {\n if (mapping && mapping[prefix] && mapping[prefix][iconName]) {\n return {\n prefix: prefix,\n iconName: iconName,\n icon: mapping[prefix][iconName]\n };\n }\n}\n\nfunction toHtml(abstractNodes) {\n var tag = abstractNodes.tag,\n _abstractNodes$attrib = abstractNodes.attributes,\n attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,\n _abstractNodes$childr = abstractNodes.children,\n children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;\n\n if (typeof abstractNodes === 'string') {\n return htmlEscape(abstractNodes);\n } else {\n return \"<\".concat(tag, \" \").concat(joinAttributes(attributes), \">\").concat(children.map(toHtml).join(''), \"\");\n }\n}\n\nvar noop$2 = function noop() {};\n\nfunction isWatched(node) {\n var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n return typeof i2svg === 'string';\n}\n\nfunction getMutator() {\n if (config.autoReplaceSvg === true) {\n return mutators.replace;\n }\n\n var mutator = mutators[config.autoReplaceSvg];\n return mutator || mutators.replace;\n}\n\nvar mutators = {\n replace: function replace(mutation) {\n var node = mutation[0];\n var abstract = mutation[1];\n var newOuterHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n\n if (node.parentNode && node.outerHTML) {\n node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? \"\") : '');\n } else if (node.parentNode) {\n var newNode = document.createElement('span');\n node.parentNode.replaceChild(newNode, node);\n newNode.outerHTML = newOuterHTML;\n }\n },\n nest: function nest(mutation) {\n var node = mutation[0];\n var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.\n // Short-circuit to the standard replacement\n\n if (~classArray(node).indexOf(config.replacementClass)) {\n return mutators.replace(mutation);\n }\n\n var forSvg = new RegExp(\"\".concat(config.familyPrefix, \"-.*\"));\n delete abstract[0].attributes.style;\n delete abstract[0].attributes.id;\n var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {\n if (cls === config.replacementClass || cls.match(forSvg)) {\n acc.toSvg.push(cls);\n } else {\n acc.toNode.push(cls);\n }\n\n return acc;\n }, {\n toNode: [],\n toSvg: []\n });\n abstract[0].attributes.class = splitClasses.toSvg.join(' ');\n var newInnerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.setAttribute('class', splitClasses.toNode.join(' '));\n node.setAttribute(DATA_FA_I2SVG, '');\n node.innerHTML = newInnerHTML;\n }\n};\n\nfunction performOperationSync(op) {\n op();\n}\n\nfunction perform(mutations, callback) {\n var callbackFunction = typeof callback === 'function' ? callback : noop$2;\n\n if (mutations.length === 0) {\n callbackFunction();\n } else {\n var frame = performOperationSync;\n\n if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {\n frame = WINDOW.requestAnimationFrame || performOperationSync;\n }\n\n frame(function () {\n var mutator = getMutator();\n var mark = perf.begin('mutate');\n mutations.map(mutator);\n mark();\n callbackFunction();\n });\n }\n}\n\nvar disabled = false;\n\nfunction disableObservation() {\n disabled = true;\n}\n\nfunction enableObservation() {\n disabled = false;\n}\n\nvar mo = null;\n\nfunction observe(options) {\n if (!MUTATION_OBSERVER) {\n return;\n }\n\n if (!config.observeMutations) {\n return;\n }\n\n var treeCallback = options.treeCallback,\n nodeCallback = options.nodeCallback,\n pseudoElementsCallback = options.pseudoElementsCallback,\n _options$observeMutat = options.observeMutationsRoot,\n observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;\n mo = new MUTATION_OBSERVER(function (objects) {\n if (disabled) return;\n toArray(objects).forEach(function (mutationRecord) {\n if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {\n if (config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target);\n }\n\n treeCallback(mutationRecord.target);\n }\n\n if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target.parentNode);\n }\n\n if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n if (mutationRecord.attributeName === 'class') {\n var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),\n prefix = _getCanonicalIcon.prefix,\n iconName = _getCanonicalIcon.iconName;\n\n if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);\n if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);\n } else {\n nodeCallback(mutationRecord.target);\n }\n }\n });\n });\n if (!IS_DOM) return;\n mo.observe(observeMutationsRoot, {\n childList: true,\n attributes: true,\n characterData: true,\n subtree: true\n });\n}\n\nfunction disconnect() {\n if (!mo) return;\n mo.disconnect();\n}\n\nfunction styleParser(node) {\n var style = node.getAttribute('style');\n var val = [];\n\n if (style) {\n val = style.split(';').reduce(function (acc, style) {\n var styles = style.split(':');\n var prop = styles[0];\n var value = styles.slice(1);\n\n if (prop && value.length > 0) {\n acc[prop] = value.join(':').trim();\n }\n\n return acc;\n }, {});\n }\n\n return val;\n}\n\nfunction classParser(node) {\n var existingPrefix = node.getAttribute('data-prefix');\n var existingIconName = node.getAttribute('data-icon');\n var innerText = node.innerText !== undefined ? node.innerText.trim() : '';\n var val = getCanonicalIcon(classArray(node));\n\n if (existingPrefix && existingIconName) {\n val.prefix = existingPrefix;\n val.iconName = existingIconName;\n }\n\n if (val.prefix && innerText.length > 1) {\n val.iconName = byLigature(val.prefix, node.innerText);\n } else if (val.prefix && innerText.length === 1) {\n val.iconName = byUnicode(val.prefix, toHex(node.innerText));\n }\n\n return val;\n}\n\nvar parseTransformString = function parseTransformString(transformString) {\n var transform = {\n size: 16,\n x: 0,\n y: 0,\n flipX: false,\n flipY: false,\n rotate: 0\n };\n\n if (!transformString) {\n return transform;\n } else {\n return transformString.toLowerCase().split(' ').reduce(function (acc, n) {\n var parts = n.toLowerCase().split('-');\n var first = parts[0];\n var rest = parts.slice(1).join('-');\n\n if (first && rest === 'h') {\n acc.flipX = true;\n return acc;\n }\n\n if (first && rest === 'v') {\n acc.flipY = true;\n return acc;\n }\n\n rest = parseFloat(rest);\n\n if (isNaN(rest)) {\n return acc;\n }\n\n switch (first) {\n case 'grow':\n acc.size = acc.size + rest;\n break;\n\n case 'shrink':\n acc.size = acc.size - rest;\n break;\n\n case 'left':\n acc.x = acc.x - rest;\n break;\n\n case 'right':\n acc.x = acc.x + rest;\n break;\n\n case 'up':\n acc.y = acc.y - rest;\n break;\n\n case 'down':\n acc.y = acc.y + rest;\n break;\n\n case 'rotate':\n acc.rotate = acc.rotate + rest;\n break;\n }\n\n return acc;\n }, transform);\n }\n};\n\nfunction transformParser(node) {\n return parseTransformString(node.getAttribute('data-fa-transform'));\n}\n\nfunction symbolParser(node) {\n var symbol = node.getAttribute('data-fa-symbol');\n return symbol === null ? false : symbol === '' ? true : symbol;\n}\n\nfunction attributesParser(node) {\n var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {\n if (acc.name !== 'class' && acc.name !== 'style') {\n acc[attr.name] = attr.value;\n }\n\n return acc;\n }, {});\n var title = node.getAttribute('title');\n var titleId = node.getAttribute('data-fa-title-id');\n\n if (config.autoA11y) {\n if (title) {\n extraAttributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n extraAttributes['aria-hidden'] = 'true';\n extraAttributes['focusable'] = 'false';\n }\n }\n\n return extraAttributes;\n}\n\nfunction maskParser(node) {\n var mask = node.getAttribute('data-fa-mask');\n\n if (!mask) {\n return emptyCanonicalIcon();\n } else {\n return getCanonicalIcon(mask.split(' ').map(function (i) {\n return i.trim();\n }));\n }\n}\n\nfunction blankMeta() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: meaninglessTransform,\n symbol: false,\n mask: null,\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n}\n\nfunction parseMeta(node) {\n var _classParser = classParser(node),\n iconName = _classParser.iconName,\n prefix = _classParser.prefix,\n extraClasses = _classParser.rest;\n\n var extraStyles = styleParser(node);\n var transform = transformParser(node);\n var symbol = symbolParser(node);\n var extraAttributes = attributesParser(node);\n var mask = maskParser(node);\n return {\n iconName: iconName,\n title: node.getAttribute('title'),\n titleId: node.getAttribute('data-fa-title-id'),\n prefix: prefix,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: node.getAttribute('data-fa-mask-id'),\n extra: {\n classes: extraClasses,\n styles: extraStyles,\n attributes: extraAttributes\n }\n };\n}\n\nfunction MissingIcon(error) {\n this.name = 'MissingIcon';\n this.message = error || 'Icon unavailable';\n this.stack = new Error().stack;\n}\n\nMissingIcon.prototype = Object.create(Error.prototype);\nMissingIcon.prototype.constructor = MissingIcon;\nvar FILL = {\n fill: 'currentColor'\n};\nvar ANIMATION_BASE = {\n attributeType: 'XML',\n repeatCount: 'indefinite',\n dur: '2s'\n};\nvar RING = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'\n })\n};\n\nvar OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'opacity'\n});\n\nvar DOT = {\n tag: 'circle',\n attributes: _objectSpread({}, FILL, {\n cx: '256',\n cy: '364',\n r: '28'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'r',\n values: '28;14;28;28;14;28;'\n })\n }, {\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;1;1;0;1;'\n })\n }]\n};\nvar QUESTION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '1',\n d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;0;0;0;1;'\n })\n }]\n};\nvar EXCLAMATION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '0',\n d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '0;0;1;1;0;0;'\n })\n }]\n};\nvar missing = {\n tag: 'g',\n children: [RING, DOT, QUESTION, EXCLAMATION]\n};\nvar styles$2 = namespace.styles;\n\nfunction asFoundIcon(icon) {\n var width = icon[0];\n var height = icon[1];\n\n var _icon$slice = icon.slice(4),\n _icon$slice2 = _slicedToArray(_icon$slice, 1),\n vectorData = _icon$slice2[0];\n\n var element = null;\n\n if (Array.isArray(vectorData)) {\n element = {\n tag: 'g',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.GROUP)\n },\n children: [{\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.SECONDARY),\n fill: 'currentColor',\n d: vectorData[0]\n }\n }, {\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.PRIMARY),\n fill: 'currentColor',\n d: vectorData[1]\n }\n }]\n };\n } else {\n element = {\n tag: 'path',\n attributes: {\n fill: 'currentColor',\n d: vectorData\n }\n };\n }\n\n return {\n found: true,\n width: width,\n height: height,\n icon: element\n };\n}\n\nfunction findIcon(iconName, prefix) {\n return new picked(function (resolve, reject) {\n var val = {\n found: false,\n width: 512,\n height: 512,\n icon: missing\n };\n\n if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {\n var icon = styles$2[prefix][iconName];\n return resolve(asFoundIcon(icon));\n }\n\n if (iconName && prefix && !config.showMissingIcons) {\n reject(new MissingIcon(\"Icon is missing for prefix \".concat(prefix, \" with icon name \").concat(iconName)));\n } else {\n resolve(val);\n }\n });\n}\n\nvar styles$3 = namespace.styles;\n\nfunction generateSvgReplacementMutation(node, nodeMeta) {\n var iconName = nodeMeta.iconName,\n title = nodeMeta.title,\n titleId = nodeMeta.titleId,\n prefix = nodeMeta.prefix,\n transform = nodeMeta.transform,\n symbol = nodeMeta.symbol,\n mask = nodeMeta.mask,\n maskId = nodeMeta.maskId,\n extra = nodeMeta.extra;\n return new picked(function (resolve, reject) {\n picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n main = _ref2[0],\n mask = _ref2[1];\n\n resolve([node, makeInlineSvgAbstract({\n icons: {\n main: main,\n mask: mask\n },\n prefix: prefix,\n iconName: iconName,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: maskId,\n title: title,\n titleId: titleId,\n extra: extra,\n watchable: true\n })]);\n });\n });\n}\n\nfunction generateLayersText(node, nodeMeta) {\n var title = nodeMeta.title,\n transform = nodeMeta.transform,\n extra = nodeMeta.extra;\n var width = null;\n var height = null;\n\n if (IS_IE) {\n var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);\n var boundingClientRect = node.getBoundingClientRect();\n width = boundingClientRect.width / computedFontSize;\n height = boundingClientRect.height / computedFontSize;\n }\n\n if (config.autoA11y && !title) {\n extra.attributes['aria-hidden'] = 'true';\n }\n\n return picked.resolve([node, makeLayersTextAbstract({\n content: node.innerHTML,\n width: width,\n height: height,\n transform: transform,\n title: title,\n extra: extra,\n watchable: true\n })]);\n}\n\nfunction generateMutation(node) {\n var nodeMeta = parseMeta(node);\n\n if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {\n return generateLayersText(node, nodeMeta);\n } else {\n return generateSvgReplacementMutation(node, nodeMeta);\n }\n}\n\nfunction onTree(root) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!IS_DOM) return;\n var htmlClassList = DOCUMENT.documentElement.classList;\n\n var hclAdd = function hclAdd(suffix) {\n return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var hclRemove = function hclRemove(suffix) {\n return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);\n var prefixesDomQuery = [\".\".concat(LAYERS_TEXT_CLASSNAME, \":not([\").concat(DATA_FA_I2SVG, \"])\")].concat(prefixes.map(function (p) {\n return \".\".concat(p, \":not([\").concat(DATA_FA_I2SVG, \"])\");\n })).join(', ');\n\n if (prefixesDomQuery.length === 0) {\n return;\n }\n\n var candidates = [];\n\n try {\n candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n } catch (e) {// noop\n }\n\n if (candidates.length > 0) {\n hclAdd('pending');\n hclRemove('complete');\n } else {\n return;\n }\n\n var mark = perf.begin('onTree');\n var mutations = candidates.reduce(function (acc, node) {\n try {\n var mutation = generateMutation(node);\n\n if (mutation) {\n acc.push(mutation);\n }\n } catch (e) {\n if (!PRODUCTION) {\n if (e instanceof MissingIcon) {\n console.error(e);\n }\n }\n }\n\n return acc;\n }, []);\n return new picked(function (resolve, reject) {\n picked.all(mutations).then(function (resolvedMutations) {\n perform(resolvedMutations, function () {\n hclAdd('active');\n hclAdd('complete');\n hclRemove('pending');\n if (typeof callback === 'function') callback();\n mark();\n resolve();\n });\n }).catch(function () {\n mark();\n reject();\n });\n });\n}\n\nfunction onNode(node) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n generateMutation(node).then(function (mutation) {\n if (mutation) {\n perform([mutation], callback);\n }\n });\n}\n\nfunction replaceForPosition(node, position) {\n var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));\n return new picked(function (resolve, reject) {\n if (node.getAttribute(pendingAttribute) !== null) {\n // This node is already being processed\n return resolve();\n }\n\n var children = toArray(node.children);\n var alreadyProcessedPseudoElement = children.filter(function (c) {\n return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;\n })[0];\n var styles = WINDOW.getComputedStyle(node, position);\n var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);\n var fontWeight = styles.getPropertyValue('font-weight');\n var content = styles.getPropertyValue('content');\n\n if (alreadyProcessedPseudoElement && !fontFamily) {\n // If we've already processed it but the current computed style does not result in a font-family,\n // that probably means that a class name that was previously present to make the icon has been\n // removed. So we now should delete the icon.\n node.removeChild(alreadyProcessedPseudoElement);\n return resolve();\n } else if (fontFamily && content !== 'none' && content !== '') {\n var _content = styles.getPropertyValue('content');\n\n var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];\n var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);\n var iconName = byUnicode(prefix, hexValue);\n var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't\n // already done so with the same prefix and iconName\n\n if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n node.setAttribute(pendingAttribute, iconIdentifier);\n\n if (alreadyProcessedPseudoElement) {\n // Delete the old one, since we're replacing it with a new one\n node.removeChild(alreadyProcessedPseudoElement);\n }\n\n var meta = blankMeta();\n var extra = meta.extra;\n extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;\n findIcon(iconName, prefix).then(function (main) {\n var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {\n icons: {\n main: main,\n mask: emptyCanonicalIcon()\n },\n prefix: prefix,\n iconName: iconIdentifier,\n extra: extra,\n watchable: true\n }));\n var element = DOCUMENT.createElement('svg');\n\n if (position === ':before') {\n node.insertBefore(element, node.firstChild);\n } else {\n node.appendChild(element);\n }\n\n element.outerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.removeAttribute(pendingAttribute);\n resolve();\n }).catch(reject);\n } else {\n resolve();\n }\n } else {\n resolve();\n }\n });\n}\n\nfunction replace(node) {\n return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);\n}\n\nfunction processable(node) {\n return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');\n}\n\nfunction searchPseudoElements(root) {\n if (!IS_DOM) return;\n return new picked(function (resolve, reject) {\n var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);\n var end = perf.begin('searchPseudoElements');\n disableObservation();\n picked.all(operations).then(function () {\n end();\n enableObservation();\n resolve();\n }).catch(function () {\n end();\n enableObservation();\n reject();\n });\n });\n}\n\nvar baseStyles = \"svg:not(:root).svg-inline--fa {\\n overflow: visible;\\n}\\n\\n.svg-inline--fa {\\n display: inline-block;\\n font-size: inherit;\\n height: 1em;\\n overflow: visible;\\n vertical-align: -0.125em;\\n}\\n.svg-inline--fa.fa-lg {\\n vertical-align: -0.225em;\\n}\\n.svg-inline--fa.fa-w-1 {\\n width: 0.0625em;\\n}\\n.svg-inline--fa.fa-w-2 {\\n width: 0.125em;\\n}\\n.svg-inline--fa.fa-w-3 {\\n width: 0.1875em;\\n}\\n.svg-inline--fa.fa-w-4 {\\n width: 0.25em;\\n}\\n.svg-inline--fa.fa-w-5 {\\n width: 0.3125em;\\n}\\n.svg-inline--fa.fa-w-6 {\\n width: 0.375em;\\n}\\n.svg-inline--fa.fa-w-7 {\\n width: 0.4375em;\\n}\\n.svg-inline--fa.fa-w-8 {\\n width: 0.5em;\\n}\\n.svg-inline--fa.fa-w-9 {\\n width: 0.5625em;\\n}\\n.svg-inline--fa.fa-w-10 {\\n width: 0.625em;\\n}\\n.svg-inline--fa.fa-w-11 {\\n width: 0.6875em;\\n}\\n.svg-inline--fa.fa-w-12 {\\n width: 0.75em;\\n}\\n.svg-inline--fa.fa-w-13 {\\n width: 0.8125em;\\n}\\n.svg-inline--fa.fa-w-14 {\\n width: 0.875em;\\n}\\n.svg-inline--fa.fa-w-15 {\\n width: 0.9375em;\\n}\\n.svg-inline--fa.fa-w-16 {\\n width: 1em;\\n}\\n.svg-inline--fa.fa-w-17 {\\n width: 1.0625em;\\n}\\n.svg-inline--fa.fa-w-18 {\\n width: 1.125em;\\n}\\n.svg-inline--fa.fa-w-19 {\\n width: 1.1875em;\\n}\\n.svg-inline--fa.fa-w-20 {\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-pull-left {\\n margin-right: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-pull-right {\\n margin-left: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-border {\\n height: 1.5em;\\n}\\n.svg-inline--fa.fa-li {\\n width: 2em;\\n}\\n.svg-inline--fa.fa-fw {\\n width: 1.25em;\\n}\\n\\n.fa-layers svg.svg-inline--fa {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.fa-layers {\\n display: inline-block;\\n height: 1em;\\n position: relative;\\n text-align: center;\\n vertical-align: -0.125em;\\n width: 1em;\\n}\\n.fa-layers svg.svg-inline--fa {\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n display: inline-block;\\n position: absolute;\\n text-align: center;\\n}\\n\\n.fa-layers-text {\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n background-color: #ff253a;\\n border-radius: 1em;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n color: #fff;\\n height: 1.5em;\\n line-height: 1;\\n max-width: 5em;\\n min-width: 1.5em;\\n overflow: hidden;\\n padding: 0.25em;\\n right: 0;\\n text-overflow: ellipsis;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n bottom: 0;\\n right: 0;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom right;\\n transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n bottom: 0;\\n left: 0;\\n right: auto;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom left;\\n transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n right: 0;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n left: 0;\\n right: auto;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top left;\\n transform-origin: top left;\\n}\\n\\n.fa-lg {\\n font-size: 1.3333333333em;\\n line-height: 0.75em;\\n vertical-align: -0.0667em;\\n}\\n\\n.fa-xs {\\n font-size: 0.75em;\\n}\\n\\n.fa-sm {\\n font-size: 0.875em;\\n}\\n\\n.fa-1x {\\n font-size: 1em;\\n}\\n\\n.fa-2x {\\n font-size: 2em;\\n}\\n\\n.fa-3x {\\n font-size: 3em;\\n}\\n\\n.fa-4x {\\n font-size: 4em;\\n}\\n\\n.fa-5x {\\n font-size: 5em;\\n}\\n\\n.fa-6x {\\n font-size: 6em;\\n}\\n\\n.fa-7x {\\n font-size: 7em;\\n}\\n\\n.fa-8x {\\n font-size: 8em;\\n}\\n\\n.fa-9x {\\n font-size: 9em;\\n}\\n\\n.fa-10x {\\n font-size: 10em;\\n}\\n\\n.fa-fw {\\n text-align: center;\\n width: 1.25em;\\n}\\n\\n.fa-ul {\\n list-style-type: none;\\n margin-left: 2.5em;\\n padding-left: 0;\\n}\\n.fa-ul > li {\\n position: relative;\\n}\\n\\n.fa-li {\\n left: -2em;\\n position: absolute;\\n text-align: center;\\n width: 2em;\\n line-height: inherit;\\n}\\n\\n.fa-border {\\n border: solid 0.08em #eee;\\n border-radius: 0.1em;\\n padding: 0.2em 0.25em 0.15em;\\n}\\n\\n.fa-pull-left {\\n float: left;\\n}\\n\\n.fa-pull-right {\\n float: right;\\n}\\n\\n.fa.fa-pull-left,\\n.fas.fa-pull-left,\\n.far.fa-pull-left,\\n.fal.fa-pull-left,\\n.fab.fa-pull-left {\\n margin-right: 0.3em;\\n}\\n.fa.fa-pull-right,\\n.fas.fa-pull-right,\\n.far.fa-pull-right,\\n.fal.fa-pull-right,\\n.fab.fa-pull-right {\\n margin-left: 0.3em;\\n}\\n\\n.fa-spin {\\n -webkit-animation: fa-spin 2s infinite linear;\\n animation: fa-spin 2s infinite linear;\\n}\\n\\n.fa-pulse {\\n -webkit-animation: fa-spin 1s infinite steps(8);\\n animation: fa-spin 1s infinite steps(8);\\n}\\n\\n@-webkit-keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n.fa-rotate-90 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\\\";\\n -webkit-transform: rotate(90deg);\\n transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\\\";\\n -webkit-transform: rotate(180deg);\\n transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\\\";\\n -webkit-transform: rotate(270deg);\\n transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\\\";\\n -webkit-transform: scale(-1, 1);\\n transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(1, -1);\\n transform: scale(1, -1);\\n}\\n\\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(-1, -1);\\n transform: scale(-1, -1);\\n}\\n\\n:root .fa-rotate-90,\\n:root .fa-rotate-180,\\n:root .fa-rotate-270,\\n:root .fa-flip-horizontal,\\n:root .fa-flip-vertical,\\n:root .fa-flip-both {\\n -webkit-filter: none;\\n filter: none;\\n}\\n\\n.fa-stack {\\n display: inline-block;\\n height: 2em;\\n position: relative;\\n width: 2.5em;\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n height: 1em;\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-stack-2x {\\n height: 2em;\\n width: 2.5em;\\n}\\n\\n.fa-inverse {\\n color: #fff;\\n}\\n\\n.sr-only {\\n border: 0;\\n clip: rect(0, 0, 0, 0);\\n height: 1px;\\n margin: -1px;\\n overflow: hidden;\\n padding: 0;\\n position: absolute;\\n width: 1px;\\n}\\n\\n.sr-only-focusable:active, .sr-only-focusable:focus {\\n clip: auto;\\n height: auto;\\n margin: 0;\\n overflow: visible;\\n position: static;\\n width: auto;\\n}\\n\\n.svg-inline--fa .fa-primary {\\n fill: var(--fa-primary-color, currentColor);\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n fill: var(--fa-secondary-color, currentColor);\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n fill: black;\\n}\\n\\n.fad.fa-inverse {\\n color: #fff;\\n}\";\n\nfunction css() {\n var dfp = DEFAULT_FAMILY_PREFIX;\n var drc = DEFAULT_REPLACEMENT_CLASS;\n var fp = config.familyPrefix;\n var rc = config.replacementClass;\n var s = baseStyles;\n\n if (fp !== dfp || rc !== drc) {\n var dPatt = new RegExp(\"\\\\.\".concat(dfp, \"\\\\-\"), 'g');\n var customPropPatt = new RegExp(\"\\\\--\".concat(dfp, \"\\\\-\"), 'g');\n var rPatt = new RegExp(\"\\\\.\".concat(drc), 'g');\n s = s.replace(dPatt, \".\".concat(fp, \"-\")).replace(customPropPatt, \"--\".concat(fp, \"-\")).replace(rPatt, \".\".concat(rc));\n }\n\n return s;\n}\n\nvar Library = /*#__PURE__*/function () {\n function Library() {\n _classCallCheck(this, Library);\n\n this.definitions = {};\n }\n\n _createClass(Library, [{\n key: \"add\",\n value: function add() {\n var _this = this;\n\n for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {\n definitions[_key] = arguments[_key];\n }\n\n var additions = definitions.reduce(this._pullDefinitions, {});\n Object.keys(additions).forEach(function (key) {\n _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);\n defineIcons(key, additions[key]);\n build();\n });\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this.definitions = {};\n }\n }, {\n key: \"_pullDefinitions\",\n value: function _pullDefinitions(additions, definition) {\n var normalized = definition.prefix && definition.iconName && definition.icon ? {\n 0: definition\n } : definition;\n Object.keys(normalized).map(function (key) {\n var _normalized$key = normalized[key],\n prefix = _normalized$key.prefix,\n iconName = _normalized$key.iconName,\n icon = _normalized$key.icon;\n if (!additions[prefix]) additions[prefix] = {};\n additions[prefix][iconName] = icon;\n });\n return additions;\n }\n }]);\n\n return Library;\n}();\n\nfunction ensureCss() {\n if (config.autoAddCss && !_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n}\n\nfunction apiObject(val, abstractCreator) {\n Object.defineProperty(val, 'abstract', {\n get: abstractCreator\n });\n Object.defineProperty(val, 'html', {\n get: function get() {\n return val.abstract.map(function (a) {\n return toHtml(a);\n });\n }\n });\n Object.defineProperty(val, 'node', {\n get: function get() {\n if (!IS_DOM) return;\n var container = DOCUMENT.createElement('div');\n container.innerHTML = val.html;\n return container.children;\n }\n });\n return val;\n}\n\nfunction findIconDefinition(iconLookup) {\n var _iconLookup$prefix = iconLookup.prefix,\n prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,\n iconName = iconLookup.iconName;\n if (!iconName) return;\n return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n}\n\nfunction resolveIcons(next) {\n return function (maybeIconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});\n var mask = params.mask;\n\n if (mask) {\n mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n }\n\n return next(iconDefinition, _objectSpread({}, params, {\n mask: mask\n }));\n };\n}\n\nvar library = new Library();\n\nvar noAuto = function noAuto() {\n config.autoReplaceSvg = false;\n config.observeMutations = false;\n disconnect();\n};\n\nvar _cssInserted = false;\nvar dom = {\n i2svg: function i2svg() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (IS_DOM) {\n ensureCss();\n var _params$node = params.node,\n node = _params$node === void 0 ? DOCUMENT : _params$node,\n _params$callback = params.callback,\n callback = _params$callback === void 0 ? function () {} : _params$callback;\n\n if (config.searchPseudoElements) {\n searchPseudoElements(node);\n }\n\n return onTree(node, callback);\n } else {\n return picked.reject('Operation requires a DOM of some kind.');\n }\n },\n css: css,\n insertCss: function insertCss$$1() {\n if (!_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n },\n watch: function watch() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var autoReplaceSvgRoot = params.autoReplaceSvgRoot,\n observeMutationsRoot = params.observeMutationsRoot;\n\n if (config.autoReplaceSvg === false) {\n config.autoReplaceSvg = true;\n }\n\n config.observeMutations = true;\n domready(function () {\n autoReplace({\n autoReplaceSvgRoot: autoReplaceSvgRoot\n });\n observe({\n treeCallback: onTree,\n nodeCallback: onNode,\n pseudoElementsCallback: searchPseudoElements,\n observeMutationsRoot: observeMutationsRoot\n });\n });\n }\n};\nvar parse = {\n transform: function transform(transformString) {\n return parseTransformString(transformString);\n }\n};\nvar icon = resolveIcons(function (iconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform = params.transform,\n transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,\n _params$symbol = params.symbol,\n symbol = _params$symbol === void 0 ? false : _params$symbol,\n _params$mask = params.mask,\n mask = _params$mask === void 0 ? null : _params$mask,\n _params$maskId = params.maskId,\n maskId = _params$maskId === void 0 ? null : _params$maskId,\n _params$title = params.title,\n title = _params$title === void 0 ? null : _params$title,\n _params$titleId = params.titleId,\n titleId = _params$titleId === void 0 ? null : _params$titleId,\n _params$classes = params.classes,\n classes = _params$classes === void 0 ? [] : _params$classes,\n _params$attributes = params.attributes,\n attributes = _params$attributes === void 0 ? {} : _params$attributes,\n _params$styles = params.styles,\n styles = _params$styles === void 0 ? {} : _params$styles;\n if (!iconDefinition) return;\n var prefix = iconDefinition.prefix,\n iconName = iconDefinition.iconName,\n icon = iconDefinition.icon;\n return apiObject(_objectSpread({\n type: 'icon'\n }, iconDefinition), function () {\n ensureCss();\n\n if (config.autoA11y) {\n if (title) {\n attributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n attributes['aria-hidden'] = 'true';\n attributes['focusable'] = 'false';\n }\n }\n\n return makeInlineSvgAbstract({\n icons: {\n main: asFoundIcon(icon),\n mask: mask ? asFoundIcon(mask.icon) : {\n found: false,\n width: null,\n height: null,\n icon: {}\n }\n },\n prefix: prefix,\n iconName: iconName,\n transform: _objectSpread({}, meaninglessTransform, transform),\n symbol: symbol,\n title: title,\n maskId: maskId,\n titleId: titleId,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: classes\n }\n });\n });\n});\n\nvar text = function text(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform2 = params.transform,\n transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,\n _params$title2 = params.title,\n title = _params$title2 === void 0 ? null : _params$title2,\n _params$classes2 = params.classes,\n classes = _params$classes2 === void 0 ? [] : _params$classes2,\n _params$attributes2 = params.attributes,\n attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,\n _params$styles2 = params.styles,\n styles = _params$styles2 === void 0 ? {} : _params$styles2;\n return apiObject({\n type: 'text',\n content: content\n }, function () {\n ensureCss();\n return makeLayersTextAbstract({\n content: content,\n transform: _objectSpread({}, meaninglessTransform, transform),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-text\")].concat(_toConsumableArray(classes))\n }\n });\n });\n};\n\nvar counter = function counter(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$title3 = params.title,\n title = _params$title3 === void 0 ? null : _params$title3,\n _params$classes3 = params.classes,\n classes = _params$classes3 === void 0 ? [] : _params$classes3,\n _params$attributes3 = params.attributes,\n attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,\n _params$styles3 = params.styles,\n styles = _params$styles3 === void 0 ? {} : _params$styles3;\n return apiObject({\n type: 'counter',\n content: content\n }, function () {\n ensureCss();\n return makeLayersCounterAbstract({\n content: content.toString(),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-counter\")].concat(_toConsumableArray(classes))\n }\n });\n });\n};\n\nvar layer = function layer(assembler) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$classes4 = params.classes,\n classes = _params$classes4 === void 0 ? [] : _params$classes4;\n return apiObject({\n type: 'layer'\n }, function () {\n ensureCss();\n var children = [];\n assembler(function (args) {\n Array.isArray(args) ? args.map(function (a) {\n children = children.concat(a.abstract);\n }) : children = children.concat(args.abstract);\n });\n return [{\n tag: 'span',\n attributes: {\n class: [\"\".concat(config.familyPrefix, \"-layers\")].concat(_toConsumableArray(classes)).join(' ')\n },\n children: children\n }];\n });\n};\n\nvar api = {\n noAuto: noAuto,\n config: config,\n dom: dom,\n library: library,\n parse: parse,\n findIconDefinition: findIconDefinition,\n icon: icon,\n text: text,\n counter: counter,\n layer: layer,\n toHtml: toHtml\n};\n\nvar autoReplace = function autoReplace() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _params$autoReplaceSv = params.autoReplaceSvgRoot,\n autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;\n if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({\n node: autoReplaceSvgRoot\n });\n};\n\nexport { icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition };","/**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\nfunction getHolder(func) {\n var object = func;\n return object.placeholder;\n}\n\nmodule.exports = getHolder;\n","var convert = require('./convert'),\n func = convert('head', require('../head'), require('./_falseOptions'));\n\nfunc.placeholder = require('./placeholder');\nmodule.exports = func;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","import { Playground, Props } from 'docz';\nimport { UserBar } from \"../../../../../src/components/UserBar\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n UserBar,\n React\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.StreamApiError = exports.MissingSchemaError = exports.SiteError = exports.FeedError = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));\n\nvar _getPrototypeOf2 = _interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));\n\nvar _wrapNativeSuper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/wrapNativeSuper\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = (0, _getPrototypeOf2.default)(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = (0, _getPrototypeOf2.default)(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return (0, _possibleConstructorReturn2.default)(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar canCapture = typeof Error.captureStackTrace === 'function';\nvar canStack = !!new Error().stack;\n/**\n * Abstract error object\n * @class ErrorAbstract\n * @access private\n * @param {string} [msg] Error message\n */\n\nvar ErrorAbstract = /*#__PURE__*/function (_Error) {\n (0, _inherits2.default)(ErrorAbstract, _Error);\n\n var _super = _createSuper(ErrorAbstract);\n\n function ErrorAbstract(msg) {\n var _this;\n\n (0, _classCallCheck2.default)(this, ErrorAbstract);\n _this = _super.call(this, msg);\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), \"message\", void 0);\n _this.message = msg;\n\n if (canCapture) {\n Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ErrorAbstract.constructor);\n } else if (canStack) {\n _this.stack = new Error().stack;\n } else {\n _this.stack = '';\n }\n\n return _this;\n }\n\n return ErrorAbstract;\n}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));\n/**\n * FeedError\n * @class FeedError\n * @access private\n * @extends ErrorAbstract\n * @memberof Stream.errors\n * @param {String} [msg] - An error message that will probably end up in a log.\n */\n\n\nvar FeedError = /*#__PURE__*/function (_ErrorAbstract) {\n (0, _inherits2.default)(FeedError, _ErrorAbstract);\n\n var _super2 = _createSuper(FeedError);\n\n function FeedError() {\n (0, _classCallCheck2.default)(this, FeedError);\n return _super2.apply(this, arguments);\n }\n\n return FeedError;\n}(ErrorAbstract);\n/**\n * SiteError\n * @class SiteError\n * @access private\n * @extends ErrorAbstract\n * @memberof Stream.errors\n * @param {string} [msg] An error message that will probably end up in a log.\n */\n\n\nexports.FeedError = FeedError;\n\nvar SiteError = /*#__PURE__*/function (_ErrorAbstract2) {\n (0, _inherits2.default)(SiteError, _ErrorAbstract2);\n\n var _super3 = _createSuper(SiteError);\n\n function SiteError() {\n (0, _classCallCheck2.default)(this, SiteError);\n return _super3.apply(this, arguments);\n }\n\n return SiteError;\n}(ErrorAbstract);\n/**\n * MissingSchemaError\n * @method MissingSchemaError\n * @access private\n * @extends ErrorAbstract\n * @memberof Stream.errors\n * @param {string} msg\n */\n\n\nexports.SiteError = SiteError;\n\nvar MissingSchemaError = /*#__PURE__*/function (_ErrorAbstract3) {\n (0, _inherits2.default)(MissingSchemaError, _ErrorAbstract3);\n\n var _super4 = _createSuper(MissingSchemaError);\n\n function MissingSchemaError() {\n (0, _classCallCheck2.default)(this, MissingSchemaError);\n return _super4.apply(this, arguments);\n }\n\n return MissingSchemaError;\n}(ErrorAbstract);\n/**\n * StreamApiError\n * @method StreamApiError\n * @access private\n * @extends ErrorAbstract\n * @memberof Stream.errors\n * @param {string} msg\n * @param {object} data\n * @param {object} response\n */\n\n\nexports.MissingSchemaError = MissingSchemaError;\n\nvar StreamApiError = /*#__PURE__*/function (_ErrorAbstract4) {\n (0, _inherits2.default)(StreamApiError, _ErrorAbstract4);\n\n var _super5 = _createSuper(StreamApiError);\n\n function StreamApiError(msg, data, response) {\n var _this2;\n\n (0, _classCallCheck2.default)(this, StreamApiError);\n _this2 = _super5.call(this, msg);\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), \"error\", void 0);\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), \"response\", void 0);\n _this2.error = data;\n _this2.response = response;\n return _this2;\n }\n\n return StreamApiError;\n}(ErrorAbstract);\n\nexports.StreamApiError = StreamApiError;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = findTabbableDescendants;\n/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n\nvar tabbableNode = /input|select|textarea|button|object/;\n\nfunction hidesContents(element) {\n var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0; // If the node is empty, this is good enough\n\n if (zeroSize && !element.innerHTML) return true; // Otherwise we need to check some styles\n\n var style = window.getComputedStyle(element);\n return zeroSize ? style.getPropertyValue(\"overflow\") !== \"visible\" || // if 'overflow: visible' set, check if there is actually any overflow\n element.scrollWidth <= 0 && element.scrollHeight <= 0 : style.getPropertyValue(\"display\") == \"none\";\n}\n\nfunction visible(element) {\n var parentElement = element;\n\n while (parentElement) {\n if (parentElement === document.body) break;\n if (hidesContents(parentElement)) return false;\n parentElement = parentElement.parentNode;\n }\n\n return true;\n}\n\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === \"a\" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n return res && visible(element);\n}\n\nfunction tabbable(element) {\n var tabIndex = element.getAttribute(\"tabindex\");\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\n\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll(\"*\"), 0).filter(tabbable);\n}\n\nmodule.exports = exports[\"default\"];","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","var createWrap = require('./_createWrap'),\n flatRest = require('./_flatRest');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_REARG_FLAG = 256;\n\n/**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\nvar rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n});\n\nmodule.exports = rearg;\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","!function (n, t) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define(t) : n.dayjs_plugin_localeData = t();\n}(this, function () {\n \"use strict\";\n\n return function (n, t, e) {\n var r = function r(n) {\n return n && (n.indexOf ? n : n.s);\n },\n o = function o(n, t, e, _o, u) {\n var a = n.name ? n : n.$locale(),\n i = r(a[t]),\n s = r(a[e]),\n d = i || s.map(function (n) {\n return n.substr(0, _o);\n });\n if (!u) return d;\n var f = a.weekStart;\n return d.map(function (n, t) {\n return d[(t + (f || 0)) % 7];\n });\n },\n u = function u() {\n return e.Ls[e.locale()];\n },\n a = function a(n, t) {\n return n.formats[t] || function (n) {\n return n.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, function (n, t, e) {\n return t || e.slice(1);\n });\n }(n.formats[t.toUpperCase()]);\n };\n\n t.prototype.localeData = function () {\n return function () {\n var n = this;\n return {\n months: function months(t) {\n return t ? t.format(\"MMMM\") : o(n, \"months\");\n },\n monthsShort: function monthsShort(t) {\n return t ? t.format(\"MMM\") : o(n, \"monthsShort\", \"months\", 3);\n },\n firstDayOfWeek: function firstDayOfWeek() {\n return n.$locale().weekStart || 0;\n },\n weekdays: function weekdays(t) {\n return t ? t.format(\"dddd\") : o(n, \"weekdays\");\n },\n weekdaysMin: function weekdaysMin(t) {\n return t ? t.format(\"dd\") : o(n, \"weekdaysMin\", \"weekdays\", 2);\n },\n weekdaysShort: function weekdaysShort(t) {\n return t ? t.format(\"ddd\") : o(n, \"weekdaysShort\", \"weekdays\", 3);\n },\n longDateFormat: function longDateFormat(t) {\n return a(n.$locale(), t);\n },\n meridiem: this.$locale().meridiem,\n ordinal: this.$locale().ordinal\n };\n }.bind(this)();\n }, e.localeData = function () {\n var n = u();\n return {\n firstDayOfWeek: function firstDayOfWeek() {\n return n.weekStart || 0;\n },\n weekdays: function weekdays() {\n return e.weekdays();\n },\n weekdaysShort: function weekdaysShort() {\n return e.weekdaysShort();\n },\n weekdaysMin: function weekdaysMin() {\n return e.weekdaysMin();\n },\n months: function months() {\n return e.months();\n },\n monthsShort: function monthsShort() {\n return e.monthsShort();\n },\n longDateFormat: function longDateFormat(t) {\n return a(n, t);\n },\n meridiem: n.meridiem,\n ordinal: n.ordinal\n };\n }, e.months = function () {\n return o(u(), \"months\");\n }, e.monthsShort = function () {\n return o(u(), \"monthsShort\", \"months\", 3);\n }, e.weekdays = function (n) {\n return o(u(), \"weekdays\", null, null, n);\n }, e.weekdaysShort = function (n) {\n return o(u(), \"weekdaysShort\", \"weekdays\", 3, n);\n }, e.weekdaysMin = function (n) {\n return o(u(), \"weekdaysMin\", \"weekdays\", 2, n);\n };\n };\n});","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.StreamFeed = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _user = require(\"./user\");\n\nvar _errors = require(\"./errors\");\n\nvar _utils = _interopRequireDefault(require(\"./utils\"));\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n (0, _defineProperty2.default)(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n/**\n * Manage api calls for specific feeds\n * The feed object contains convenience functions such add activity, remove activity etc\n * @class StreamFeed\n */\n\n\nvar StreamFeed = /*#__PURE__*/function () {\n /**\n * Initialize a feed object\n * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js\n * @method constructor\n * @memberof StreamFeed.prototype\n * @param {StreamClient} client - The stream client this feed is constructed from\n * @param {string} feedSlug - The feed slug\n * @param {string} userId - The user id\n * @param {string} [token] - The authentication token\n */\n function StreamFeed(client, feedSlug, userId, token) {\n (0, _classCallCheck2.default)(this, StreamFeed);\n (0, _defineProperty2.default)(this, \"client\", void 0);\n (0, _defineProperty2.default)(this, \"token\", void 0);\n (0, _defineProperty2.default)(this, \"id\", void 0);\n (0, _defineProperty2.default)(this, \"slug\", void 0);\n (0, _defineProperty2.default)(this, \"userId\", void 0);\n (0, _defineProperty2.default)(this, \"feedUrl\", void 0);\n (0, _defineProperty2.default)(this, \"feedTogether\", void 0);\n (0, _defineProperty2.default)(this, \"notificationChannel\", void 0);\n\n if (!feedSlug || !userId) {\n throw new _errors.FeedError('Please provide a feed slug and user id, ie client.feed(\"user\", \"1\")');\n }\n\n if (feedSlug.indexOf(':') !== -1) {\n throw new _errors.FeedError('Please initialize the feed using client.feed(\"user\", \"1\") not client.feed(\"user:1\")');\n }\n\n _utils.default.validateFeedSlug(feedSlug);\n\n _utils.default.validateUserId(userId); // raise an error if there is no token\n\n\n if (!token) {\n throw new _errors.FeedError('Missing token, in client side mode please provide a feed secret');\n }\n\n this.client = client;\n this.slug = feedSlug;\n this.userId = userId;\n this.id = \"\".concat(this.slug, \":\").concat(this.userId);\n this.token = token;\n this.feedUrl = this.id.replace(':', '/');\n this.feedTogether = this.id.replace(':', ''); // faye setup\n\n this.notificationChannel = \"site-\".concat(this.client.appId, \"-feed-\").concat(this.feedTogether);\n }\n /**\n * Adds the given activity to the feed\n * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js#adding-activities-basic\n * @method addActivity\n * @memberof StreamFeed.prototype\n * @param {NewActivity} activity - The activity to add\n * @return {Promise>}\n */\n\n\n (0, _createClass2.default)(StreamFeed, [{\n key: \"addActivity\",\n value: function addActivity(activity) {\n activity = _utils.default.replaceStreamObjects(activity);\n\n if (!activity.actor && this.client.currentUser) {\n activity.actor = this.client.currentUser.ref();\n }\n\n return this.client.post({\n url: \"feed/\".concat(this.feedUrl, \"/\"),\n body: activity,\n token: this.token\n });\n }\n /**\n * Removes the activity by activityId or foreignId\n * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js#removing-activities\n * @method removeActivity\n * @memberof StreamFeed.prototype\n * @param {string} activityId Identifier of activity to remove\n * @return {Promise}\n * @example feed.removeActivity(activityId);\n * @example feed.removeActivity({'foreignId': foreignId});\n */\n\n }, {\n key: \"removeActivity\",\n value: function removeActivity(activityId) {\n return this.client.delete({\n url: \"feed/\".concat(this.feedUrl, \"/\").concat(activityId.foreignId || activityId, \"/\"),\n qs: activityId.foreignId ? {\n foreign_id: '1'\n } : {},\n token: this.token\n });\n }\n /**\n * Adds the given activities to the feed\n * @link https://getstream.io/activity-feeds/docs/node/add_many_activities/?language=js#batch-add-activities\n * @method addActivities\n * @memberof StreamFeed.prototype\n * @param {NewActivity[]} activities Array of activities to add\n * @return {Promise[]>}\n */\n\n }, {\n key: \"addActivities\",\n value: function addActivities(activities) {\n return this.client.post({\n url: \"feed/\".concat(this.feedUrl, \"/\"),\n body: {\n activities: _utils.default.replaceStreamObjects(activities)\n },\n token: this.token\n });\n }\n /**\n * Follows the given target feed\n * @link https://getstream.io/activity-feeds/docs/node/following/?language=js\n * @method follow\n * @memberof StreamFeed.prototype\n * @param {string} targetSlug Slug of the target feed\n * @param {string} targetUserId User identifier of the target feed\n * @param {object} [options] Additional options\n * @param {number} [options.limit] Limit the amount of activities copied over on follow\n * @return {Promise}\n * @example feed.follow('user', '1');\n * @example feed.follow('user', '1');\n * @example feed.follow('user', '1', options);\n */\n\n }, {\n key: \"follow\",\n value: function follow(targetSlug, targetUserId) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (targetUserId instanceof _user.StreamUser) {\n targetUserId = targetUserId.id;\n }\n\n _utils.default.validateFeedSlug(targetSlug);\n\n _utils.default.validateUserId(targetUserId);\n\n var body = {\n target: \"\".concat(targetSlug, \":\").concat(targetUserId)\n };\n if (typeof options.limit === 'number') body.activity_copy_limit = options.limit;\n return this.client.post({\n url: \"feed/\".concat(this.feedUrl, \"/following/\"),\n body: body,\n token: this.token\n });\n }\n /**\n * Unfollow the given feed\n * @link https://getstream.io/activity-feeds/docs/node/following/?language=js#unfollowing-feeds\n * @method unfollow\n * @memberof StreamFeed.prototype\n * @param {string} targetSlug Slug of the target feed\n * @param {string} targetUserId User identifier of the target feed\n * @param {object} [options]\n * @param {boolean} [options.keepHistory] when provided the activities from target\n * feed will not be kept in the feed\n * @return {Promise}\n * @example feed.unfollow('user', '2');\n */\n\n }, {\n key: \"unfollow\",\n value: function unfollow(targetSlug, targetUserId) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var qs = {};\n if (typeof options.keepHistory === 'boolean' && options.keepHistory) qs.keep_history = '1';\n\n _utils.default.validateFeedSlug(targetSlug);\n\n _utils.default.validateUserId(targetUserId);\n\n var targetFeedId = \"\".concat(targetSlug, \":\").concat(targetUserId);\n return this.client.delete({\n url: \"feed/\".concat(this.feedUrl, \"/following/\").concat(targetFeedId, \"/\"),\n qs: qs,\n token: this.token\n });\n }\n /**\n * List which feeds this feed is following\n * @link https://getstream.io/activity-feeds/docs/node/following/?language=js#reading-followed-feeds\n * @method following\n * @memberof StreamFeed.prototype\n * @param {GetFollowOptions} [options] Additional options\n * @param {string[]} options.filter array of feed id to filter on\n * @param {number} options.limit pagination\n * @param {number} options.offset pagination\n * @return {Promise}\n * @example feed.following({limit:10, filter: ['user:1', 'user:2']});\n */\n\n }, {\n key: \"following\",\n value: function following() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var extraOptions = {};\n if (options.filter) extraOptions.filter = options.filter.join(',');\n return this.client.get({\n url: \"feed/\".concat(this.feedUrl, \"/following/\"),\n qs: _objectSpread(_objectSpread({}, options), extraOptions),\n token: this.token\n });\n }\n /**\n * List the followers of this feed\n * @link https://getstream.io/activity-feeds/docs/node/following/?language=js#reading-feed-followers\n * @method followers\n * @memberof StreamFeed.prototype\n * @param {GetFollowOptions} [options] Additional options\n * @param {string[]} options.filter array of feed id to filter on\n * @param {number} options.limit pagination\n * @param {number} options.offset pagination\n * @return {Promise}\n * @example feed.followers({limit:10, filter: ['user:1', 'user:2']});\n */\n\n }, {\n key: \"followers\",\n value: function followers() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var extraOptions = {};\n if (options.filter) extraOptions.filter = options.filter.join(',');\n return this.client.get({\n url: \"feed/\".concat(this.feedUrl, \"/followers/\"),\n qs: _objectSpread(_objectSpread({}, options), extraOptions),\n token: this.token\n });\n }\n /**\n * Retrieve the number of follower and following feed stats of the current feed.\n * For each count, feed slugs can be provided to filter counts accordingly.\n * @link https://getstream.io/activity-feeds/docs/node/following/?language=js#reading-follow-stats\n * @method followStats\n * @param {object} [options]\n * @param {string[]} [options.followerSlugs] find counts only on these slugs\n * @param {string[]} [options.followingSlugs] find counts only on these slugs\n * @return {Promise}\n * @example feed.followStats();\n * @example feed.followStats({ followerSlugs:['user', 'news'], followingSlugs:['timeline'] });\n */\n\n }, {\n key: \"followStats\",\n value: function followStats() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var qs = {\n followers: this.id,\n following: this.id\n };\n if (options.followerSlugs && options.followerSlugs.length) qs.followers_slugs = options.followerSlugs.join(',');\n if (options.followingSlugs && options.followingSlugs.length) qs.following_slugs = options.followingSlugs.join(',');\n return this.client.get({\n url: 'stats/follow/',\n qs: qs,\n token: this.client.getOrCreateToken() || this.token\n });\n }\n /**\n * Reads the feed\n * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js#retrieving-activities\n * @method get\n * @memberof StreamFeed.prototype\n * @param {GetFeedOptions} options Additional options\n * @return {Promise}\n * @example feed.get({limit: 10, id_lte: 'activity-id'})\n * @example feed.get({limit: 10, mark_seen: true})\n */\n\n }, {\n key: \"get\",\n value: function get() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var extraOptions = {};\n\n if (options.mark_read && options.mark_read.join) {\n extraOptions.mark_read = options.mark_read.join(',');\n }\n\n if (options.mark_seen && options.mark_seen.join) {\n extraOptions.mark_seen = options.mark_seen.join(',');\n }\n\n this.client.replaceReactionOptions(options);\n var path = this.client.shouldUseEnrichEndpoint(options) ? 'enrich/feed/' : 'feed/';\n return this.client.get({\n url: \"\".concat(path).concat(this.feedUrl, \"/\"),\n qs: _objectSpread(_objectSpread({}, options), extraOptions),\n token: this.token\n });\n }\n /**\n * Retrieves one activity from a feed and adds enrichment\n * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js#retrieving-activities\n * @method getActivityDetail\n * @memberof StreamFeed.prototype\n * @param {string} activityId Identifier of activity to retrieve\n * @param {EnrichOptions} options Additional options\n * @return {Promise}\n * @example feed.getActivityDetail(activityId)\n * @example feed.getActivityDetail(activityId, {withRecentReactions: true})\n * @example feed.getActivityDetail(activityId, {withReactionCounts: true})\n * @example feed.getActivityDetail(activityId, {withOwnReactions: true, withReactionCounts: true})\n */\n\n }, {\n key: \"getActivityDetail\",\n value: function getActivityDetail(activityId, options) {\n return this.get(_objectSpread({\n id_lte: activityId,\n id_gte: activityId,\n limit: 1\n }, options || {}));\n }\n /**\n * Returns the current faye client object\n * @method getFayeClient\n * @memberof StreamFeed.prototype\n * @access private\n * @return {Faye.Client} Faye client\n */\n\n }, {\n key: \"getFayeClient\",\n value: function getFayeClient() {\n return this.client.getFayeClient();\n }\n /**\n * Subscribes to any changes in the feed, return a promise\n * @link https://getstream.io/activity-feeds/docs/node/web_and_mobile/?language=js#subscribe-to-realtime-updates-via-api-client\n * @method subscribe\n * @memberof StreamFeed.prototype\n * @param {function} Faye.Callback> Callback to call on completion\n * @return {Promise}\n * @example\n * feed.subscribe(callback).then(function(){\n * \t\tconsole.log('we are now listening to changes');\n * });\n */\n\n }, {\n key: \"subscribe\",\n value: function subscribe(callback) {\n if (!this.client.appId) {\n throw new _errors.SiteError('Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);');\n }\n\n var subscription = this.getFayeClient().subscribe(\"/\".concat(this.notificationChannel), callback);\n this.client.subscriptions[\"/\".concat(this.notificationChannel)] = {\n token: this.token,\n userId: this.notificationChannel,\n fayeSubscription: subscription\n };\n return subscription;\n }\n /**\n * Cancel updates created via feed.subscribe()\n * @link https://getstream.io/activity-feeds/docs/node/web_and_mobile/?language=js#subscribe-to-realtime-updates-via-api-client\n * @return void\n */\n\n }, {\n key: \"unsubscribe\",\n value: function unsubscribe() {\n var streamSubscription = this.client.subscriptions[\"/\".concat(this.notificationChannel)];\n\n if (streamSubscription) {\n delete this.client.subscriptions[\"/\".concat(this.notificationChannel)];\n streamSubscription.fayeSubscription.cancel();\n }\n }\n /**\n * Updates an activity's \"to\" fields\n * @link https://getstream.io/activity-feeds/docs/node/targeting/?language=js\n * @param {string} foreignId The foreign_id of the activity to update\n * @param {string} time The time of the activity to update\n * @param {string[]} newTargets Set the new \"to\" targets for the activity - will remove old targets\n * @param {string[]} added_targets Add these new targets to the activity\n * @param {string[]} removedTargets Remove these targets from the activity\n */\n\n }, {\n key: \"updateActivityToTargets\",\n value: function updateActivityToTargets(foreignId, time, newTargets, addedTargets, removedTargets) {\n if (!foreignId) throw new Error('Missing `foreign_id` parameter!');\n if (!time) throw new Error('Missing `time` parameter!');\n\n if (!newTargets && !addedTargets && !removedTargets) {\n throw new Error('Requires you to provide at least one parameter for `newTargets`, `addedTargets`, or `removedTargets` - example: `updateActivityToTargets(\"foreignID:1234\", new Date(), [newTargets...], [addedTargets...], [removedTargets...])`');\n }\n\n if (newTargets) {\n if (addedTargets || removedTargets) {\n throw new Error(\"Can't include add_targets or removedTargets if you're also including newTargets\");\n }\n }\n\n if (addedTargets && removedTargets) {\n // brute force - iterate through added, check to see if removed contains that element\n addedTargets.forEach(function (addedTarget) {\n if (removedTargets.includes(addedTarget)) {\n throw new Error(\"Can't have the same feed ID in addedTargets and removedTargets.\");\n }\n });\n }\n\n var body = {\n foreign_id: foreignId,\n time: time\n };\n if (newTargets) body.new_targets = newTargets;\n if (addedTargets) body.added_targets = addedTargets;\n if (removedTargets) body.removed_targets = removedTargets;\n return this.client.post({\n url: \"feed_targets/\".concat(this.feedUrl, \"/activity_to_targets/\"),\n token: this.token,\n body: body\n });\n }\n }]);\n return StreamFeed;\n}();\n\nexports.StreamFeed = StreamFeed;","/**\n * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt\n */\nvar SUPPORTED_LOCALE = {\n tr: {\n regexp: /\\u0130|\\u0049|\\u0049\\u0307/g,\n map: {\n İ: \"i\",\n I: \"\\u0131\",\n İ: \"i\"\n }\n },\n az: {\n regexp: /\\u0130/g,\n map: {\n İ: \"i\",\n I: \"\\u0131\",\n İ: \"i\"\n }\n },\n lt: {\n regexp: /\\u0049|\\u004A|\\u012E|\\u00CC|\\u00CD|\\u0128/g,\n map: {\n I: \"i\\u0307\",\n J: \"j\\u0307\",\n Į: \"\\u012F\\u0307\",\n Ì: \"i\\u0307\\u0300\",\n Í: \"i\\u0307\\u0301\",\n Ĩ: \"i\\u0307\\u0303\"\n }\n }\n};\n/**\n * Localized lower case.\n */\n\nexport function localeLowerCase(str, locale) {\n var lang = SUPPORTED_LOCALE[locale.toLowerCase()];\n if (lang) return lowerCase(str.replace(lang.regexp, function (m) {\n return lang.map[m];\n }));\n return lowerCase(str);\n}\n/**\n * Lower case as a function.\n */\n\nexport function lowerCase(str) {\n return str.toLowerCase();\n}","import \"core-js/modules/es.array.reduce.js\";\nimport { lowerCase } from \"lower-case\"; // Support camel case (\"camelCase\" -> \"camel Case\" and \"CAMELCase\" -> \"CAMEL Case\").\n\nvar DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; // Remove all non-word characters.\n\nvar DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;\n/**\n * Normalize the string into something other libraries can manipulate easier.\n */\n\nexport function noCase(input, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _a = options.splitRegexp,\n splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a,\n _b = options.stripRegexp,\n stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b,\n _c = options.transform,\n transform = _c === void 0 ? lowerCase : _c,\n _d = options.delimiter,\n delimiter = _d === void 0 ? \" \" : _d;\n var result = replace(replace(input, splitRegexp, \"$1\\0$2\"), stripRegexp, \"\\0\");\n var start = 0;\n var end = result.length; // Trim the delimiter from around the output string.\n\n while (result.charAt(start) === \"\\0\") {\n start++;\n }\n\n while (result.charAt(end - 1) === \"\\0\") {\n end--;\n } // Transform each token independently.\n\n\n return result.slice(start, end).split(\"\\0\").map(transform).join(delimiter);\n}\n/**\n * Replace `re` in the input string with the replacement value.\n */\n\nfunction replace(input, re, value) {\n if (re instanceof RegExp) return input.replace(re, value);\n return re.reduce(function (input, re) {\n return input.replace(re, value);\n }, input);\n}","import { __assign } from \"tslib\";\nimport { noCase } from \"no-case\";\nexport function pascalCaseTransform(input, index) {\n var firstChar = input.charAt(0);\n var lowerChars = input.substr(1).toLowerCase();\n\n if (index > 0 && firstChar >= \"0\" && firstChar <= \"9\") {\n return \"_\" + firstChar + lowerChars;\n }\n\n return \"\" + firstChar.toUpperCase() + lowerChars;\n}\nexport function pascalCaseTransformMerge(input) {\n return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();\n}\nexport function pascalCase(input, options) {\n if (options === void 0) {\n options = {};\n }\n\n return noCase(input, __assign({\n delimiter: \"\",\n transform: pascalCaseTransform\n }, options));\n}","import \"core-js/modules/es.array.reduce.js\";\n\nfunction createError(message) {\n var err = new Error(message);\n err.source = \"ulid\";\n return err;\n} // These values should NEVER change. If\n// they do, we're no longer making ulids!\n\n\nvar ENCODING = \"0123456789ABCDEFGHJKMNPQRSTVWXYZ\"; // Crockford's Base32\n\nvar ENCODING_LEN = ENCODING.length;\nvar TIME_MAX = Math.pow(2, 48) - 1;\nvar TIME_LEN = 10;\nvar RANDOM_LEN = 16;\n\nfunction replaceCharAt(str, index, char) {\n if (index > str.length - 1) {\n return str;\n }\n\n return str.substr(0, index) + char + str.substr(index + 1);\n}\n\nfunction incrementBase32(str) {\n var done = undefined;\n var index = str.length;\n var char = void 0;\n var charIndex = void 0;\n var maxCharIndex = ENCODING_LEN - 1;\n\n while (!done && index-- >= 0) {\n char = str[index];\n charIndex = ENCODING.indexOf(char);\n\n if (charIndex === -1) {\n throw createError(\"incorrectly encoded string\");\n }\n\n if (charIndex === maxCharIndex) {\n str = replaceCharAt(str, index, ENCODING[0]);\n continue;\n }\n\n done = replaceCharAt(str, index, ENCODING[charIndex + 1]);\n }\n\n if (typeof done === \"string\") {\n return done;\n }\n\n throw createError(\"cannot increment this string\");\n}\n\nfunction randomChar(prng) {\n var rand = Math.floor(prng() * ENCODING_LEN);\n\n if (rand === ENCODING_LEN) {\n rand = ENCODING_LEN - 1;\n }\n\n return ENCODING.charAt(rand);\n}\n\nfunction encodeTime(now, len) {\n if (isNaN(now)) {\n throw new Error(now + \" must be a number\");\n }\n\n if (now > TIME_MAX) {\n throw createError(\"cannot encode time greater than \" + TIME_MAX);\n }\n\n if (now < 0) {\n throw createError(\"time must be positive\");\n }\n\n if (Number.isInteger(now) === false) {\n throw createError(\"time must be an integer\");\n }\n\n var mod = void 0;\n var str = \"\";\n\n for (; len > 0; len--) {\n mod = now % ENCODING_LEN;\n str = ENCODING.charAt(mod) + str;\n now = (now - mod) / ENCODING_LEN;\n }\n\n return str;\n}\n\nfunction encodeRandom(len, prng) {\n var str = \"\";\n\n for (; len > 0; len--) {\n str = randomChar(prng) + str;\n }\n\n return str;\n}\n\nfunction decodeTime(id) {\n if (id.length !== TIME_LEN + RANDOM_LEN) {\n throw createError(\"malformed ulid\");\n }\n\n var time = id.substr(0, TIME_LEN).split(\"\").reverse().reduce(function (carry, char, index) {\n var encodingIndex = ENCODING.indexOf(char);\n\n if (encodingIndex === -1) {\n throw createError(\"invalid character found: \" + char);\n }\n\n return carry += encodingIndex * Math.pow(ENCODING_LEN, index);\n }, 0);\n\n if (time > TIME_MAX) {\n throw createError(\"malformed ulid, timestamp too large\");\n }\n\n return time;\n}\n\nfunction detectPrng() {\n var allowInsecure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var root = arguments[1];\n\n if (!root) {\n root = typeof window !== \"undefined\" ? window : null;\n }\n\n var browserCrypto = root && (root.crypto || root.msCrypto);\n\n if (browserCrypto) {\n return function () {\n var buffer = new Uint8Array(1);\n browserCrypto.getRandomValues(buffer);\n return buffer[0] / 0xff;\n };\n } else {\n try {\n var nodeCrypto = require(\"crypto\");\n\n return function () {\n return nodeCrypto.randomBytes(1).readUInt8() / 0xff;\n };\n } catch (e) {}\n }\n\n if (allowInsecure) {\n try {\n console.error(\"secure crypto unusable, falling back to insecure Math.random()!\");\n } catch (e) {}\n\n return function () {\n return Math.random();\n };\n }\n\n throw createError(\"secure crypto unusable, insecure Math.random not allowed\");\n}\n\nfunction factory(currPrng) {\n if (!currPrng) {\n currPrng = detectPrng();\n }\n\n return function ulid(seedTime) {\n if (isNaN(seedTime)) {\n seedTime = Date.now();\n }\n\n return encodeTime(seedTime, TIME_LEN) + encodeRandom(RANDOM_LEN, currPrng);\n };\n}\n\nfunction monotonicFactory(currPrng) {\n if (!currPrng) {\n currPrng = detectPrng();\n }\n\n var lastTime = 0;\n var lastRandom = void 0;\n return function ulid(seedTime) {\n if (isNaN(seedTime)) {\n seedTime = Date.now();\n }\n\n if (seedTime <= lastTime) {\n var incrementedRandom = lastRandom = incrementBase32(lastRandom);\n return encodeTime(lastTime, TIME_LEN) + incrementedRandom;\n }\n\n lastTime = seedTime;\n var newRandom = lastRandom = encodeRandom(RANDOM_LEN, currPrng);\n return encodeTime(seedTime, TIME_LEN) + newRandom;\n };\n}\n\nvar ulid = factory();\nexport { replaceCharAt, incrementBase32, randomChar, encodeTime, encodeRandom, decodeTime, detectPrng, factory, monotonicFactory, ulid };","import \"core-js/modules/es.array.reduce.js\";\nvar characterMap = {\n \"À\": \"A\",\n \"Á\": \"A\",\n \"Â\": \"A\",\n \"Ã\": \"A\",\n \"Ä\": \"A\",\n \"Å\": \"A\",\n \"Ấ\": \"A\",\n \"Ắ\": \"A\",\n \"Ẳ\": \"A\",\n \"Ẵ\": \"A\",\n \"Ặ\": \"A\",\n \"Æ\": \"AE\",\n \"Ầ\": \"A\",\n \"Ằ\": \"A\",\n \"Ȃ\": \"A\",\n \"Ç\": \"C\",\n \"Ḉ\": \"C\",\n \"È\": \"E\",\n \"É\": \"E\",\n \"Ê\": \"E\",\n \"Ë\": \"E\",\n \"Ế\": \"E\",\n \"Ḗ\": \"E\",\n \"Ề\": \"E\",\n \"Ḕ\": \"E\",\n \"Ḝ\": \"E\",\n \"Ȇ\": \"E\",\n \"Ì\": \"I\",\n \"Í\": \"I\",\n \"Î\": \"I\",\n \"Ï\": \"I\",\n \"Ḯ\": \"I\",\n \"Ȋ\": \"I\",\n \"Ð\": \"D\",\n \"Ñ\": \"N\",\n \"Ò\": \"O\",\n \"Ó\": \"O\",\n \"Ô\": \"O\",\n \"Õ\": \"O\",\n \"Ö\": \"O\",\n \"Ø\": \"O\",\n \"Ố\": \"O\",\n \"Ṍ\": \"O\",\n \"Ṓ\": \"O\",\n \"Ȏ\": \"O\",\n \"Ù\": \"U\",\n \"Ú\": \"U\",\n \"Û\": \"U\",\n \"Ü\": \"U\",\n \"Ý\": \"Y\",\n \"à\": \"a\",\n \"á\": \"a\",\n \"â\": \"a\",\n \"ã\": \"a\",\n \"ä\": \"a\",\n \"å\": \"a\",\n \"ấ\": \"a\",\n \"ắ\": \"a\",\n \"ẳ\": \"a\",\n \"ẵ\": \"a\",\n \"ặ\": \"a\",\n \"æ\": \"ae\",\n \"ầ\": \"a\",\n \"ằ\": \"a\",\n \"ȃ\": \"a\",\n \"ç\": \"c\",\n \"ḉ\": \"c\",\n \"è\": \"e\",\n \"é\": \"e\",\n \"ê\": \"e\",\n \"ë\": \"e\",\n \"ế\": \"e\",\n \"ḗ\": \"e\",\n \"ề\": \"e\",\n \"ḕ\": \"e\",\n \"ḝ\": \"e\",\n \"ȇ\": \"e\",\n \"ì\": \"i\",\n \"í\": \"i\",\n \"î\": \"i\",\n \"ï\": \"i\",\n \"ḯ\": \"i\",\n \"ȋ\": \"i\",\n \"ð\": \"d\",\n \"ñ\": \"n\",\n \"ò\": \"o\",\n \"ó\": \"o\",\n \"ô\": \"o\",\n \"õ\": \"o\",\n \"ö\": \"o\",\n \"ø\": \"o\",\n \"ố\": \"o\",\n \"ṍ\": \"o\",\n \"ṓ\": \"o\",\n \"ȏ\": \"o\",\n \"ù\": \"u\",\n \"ú\": \"u\",\n \"û\": \"u\",\n \"ü\": \"u\",\n \"ý\": \"y\",\n \"ÿ\": \"y\",\n \"Ā\": \"A\",\n \"ā\": \"a\",\n \"Ă\": \"A\",\n \"ă\": \"a\",\n \"Ą\": \"A\",\n \"ą\": \"a\",\n \"Ć\": \"C\",\n \"ć\": \"c\",\n \"Ĉ\": \"C\",\n \"ĉ\": \"c\",\n \"Ċ\": \"C\",\n \"ċ\": \"c\",\n \"Č\": \"C\",\n \"č\": \"c\",\n \"C̆\": \"C\",\n \"c̆\": \"c\",\n \"Ď\": \"D\",\n \"ď\": \"d\",\n \"Đ\": \"D\",\n \"đ\": \"d\",\n \"Ē\": \"E\",\n \"ē\": \"e\",\n \"Ĕ\": \"E\",\n \"ĕ\": \"e\",\n \"Ė\": \"E\",\n \"ė\": \"e\",\n \"Ę\": \"E\",\n \"ę\": \"e\",\n \"Ě\": \"E\",\n \"ě\": \"e\",\n \"Ĝ\": \"G\",\n \"Ǵ\": \"G\",\n \"ĝ\": \"g\",\n \"ǵ\": \"g\",\n \"Ğ\": \"G\",\n \"ğ\": \"g\",\n \"Ġ\": \"G\",\n \"ġ\": \"g\",\n \"Ģ\": \"G\",\n \"ģ\": \"g\",\n \"Ĥ\": \"H\",\n \"ĥ\": \"h\",\n \"Ħ\": \"H\",\n \"ħ\": \"h\",\n \"Ḫ\": \"H\",\n \"ḫ\": \"h\",\n \"Ĩ\": \"I\",\n \"ĩ\": \"i\",\n \"Ī\": \"I\",\n \"ī\": \"i\",\n \"Ĭ\": \"I\",\n \"ĭ\": \"i\",\n \"Į\": \"I\",\n \"į\": \"i\",\n \"İ\": \"I\",\n \"ı\": \"i\",\n \"IJ\": \"IJ\",\n \"ij\": \"ij\",\n \"Ĵ\": \"J\",\n \"ĵ\": \"j\",\n \"Ķ\": \"K\",\n \"ķ\": \"k\",\n \"Ḱ\": \"K\",\n \"ḱ\": \"k\",\n \"K̆\": \"K\",\n \"k̆\": \"k\",\n \"Ĺ\": \"L\",\n \"ĺ\": \"l\",\n \"Ļ\": \"L\",\n \"ļ\": \"l\",\n \"Ľ\": \"L\",\n \"ľ\": \"l\",\n \"Ŀ\": \"L\",\n \"ŀ\": \"l\",\n \"Ł\": \"l\",\n \"ł\": \"l\",\n \"Ḿ\": \"M\",\n \"ḿ\": \"m\",\n \"M̆\": \"M\",\n \"m̆\": \"m\",\n \"Ń\": \"N\",\n \"ń\": \"n\",\n \"Ņ\": \"N\",\n \"ņ\": \"n\",\n \"Ň\": \"N\",\n \"ň\": \"n\",\n \"ʼn\": \"n\",\n \"N̆\": \"N\",\n \"n̆\": \"n\",\n \"Ō\": \"O\",\n \"ō\": \"o\",\n \"Ŏ\": \"O\",\n \"ŏ\": \"o\",\n \"Ő\": \"O\",\n \"ő\": \"o\",\n \"Œ\": \"OE\",\n \"œ\": \"oe\",\n \"P̆\": \"P\",\n \"p̆\": \"p\",\n \"Ŕ\": \"R\",\n \"ŕ\": \"r\",\n \"Ŗ\": \"R\",\n \"ŗ\": \"r\",\n \"Ř\": \"R\",\n \"ř\": \"r\",\n \"R̆\": \"R\",\n \"r̆\": \"r\",\n \"Ȓ\": \"R\",\n \"ȓ\": \"r\",\n \"Ś\": \"S\",\n \"ś\": \"s\",\n \"Ŝ\": \"S\",\n \"ŝ\": \"s\",\n \"Ş\": \"S\",\n \"Ș\": \"S\",\n \"ș\": \"s\",\n \"ş\": \"s\",\n \"Š\": \"S\",\n \"š\": \"s\",\n \"Ţ\": \"T\",\n \"ţ\": \"t\",\n \"ț\": \"t\",\n \"Ț\": \"T\",\n \"Ť\": \"T\",\n \"ť\": \"t\",\n \"Ŧ\": \"T\",\n \"ŧ\": \"t\",\n \"T̆\": \"T\",\n \"t̆\": \"t\",\n \"Ũ\": \"U\",\n \"ũ\": \"u\",\n \"Ū\": \"U\",\n \"ū\": \"u\",\n \"Ŭ\": \"U\",\n \"ŭ\": \"u\",\n \"Ů\": \"U\",\n \"ů\": \"u\",\n \"Ű\": \"U\",\n \"ű\": \"u\",\n \"Ų\": \"U\",\n \"ų\": \"u\",\n \"Ȗ\": \"U\",\n \"ȗ\": \"u\",\n \"V̆\": \"V\",\n \"v̆\": \"v\",\n \"Ŵ\": \"W\",\n \"ŵ\": \"w\",\n \"Ẃ\": \"W\",\n \"ẃ\": \"w\",\n \"X̆\": \"X\",\n \"x̆\": \"x\",\n \"Ŷ\": \"Y\",\n \"ŷ\": \"y\",\n \"Ÿ\": \"Y\",\n \"Y̆\": \"Y\",\n \"y̆\": \"y\",\n \"Ź\": \"Z\",\n \"ź\": \"z\",\n \"Ż\": \"Z\",\n \"ż\": \"z\",\n \"Ž\": \"Z\",\n \"ž\": \"z\",\n \"ſ\": \"s\",\n \"ƒ\": \"f\",\n \"Ơ\": \"O\",\n \"ơ\": \"o\",\n \"Ư\": \"U\",\n \"ư\": \"u\",\n \"Ǎ\": \"A\",\n \"ǎ\": \"a\",\n \"Ǐ\": \"I\",\n \"ǐ\": \"i\",\n \"Ǒ\": \"O\",\n \"ǒ\": \"o\",\n \"Ǔ\": \"U\",\n \"ǔ\": \"u\",\n \"Ǖ\": \"U\",\n \"ǖ\": \"u\",\n \"Ǘ\": \"U\",\n \"ǘ\": \"u\",\n \"Ǚ\": \"U\",\n \"ǚ\": \"u\",\n \"Ǜ\": \"U\",\n \"ǜ\": \"u\",\n \"Ứ\": \"U\",\n \"ứ\": \"u\",\n \"Ṹ\": \"U\",\n \"ṹ\": \"u\",\n \"Ǻ\": \"A\",\n \"ǻ\": \"a\",\n \"Ǽ\": \"AE\",\n \"ǽ\": \"ae\",\n \"Ǿ\": \"O\",\n \"ǿ\": \"o\",\n \"Þ\": \"TH\",\n \"þ\": \"th\",\n \"Ṕ\": \"P\",\n \"ṕ\": \"p\",\n \"Ṥ\": \"S\",\n \"ṥ\": \"s\",\n \"X́\": \"X\",\n \"x́\": \"x\",\n \"Ѓ\": \"Г\",\n \"ѓ\": \"г\",\n \"Ќ\": \"К\",\n \"ќ\": \"к\",\n \"A̋\": \"A\",\n \"a̋\": \"a\",\n \"E̋\": \"E\",\n \"e̋\": \"e\",\n \"I̋\": \"I\",\n \"i̋\": \"i\",\n \"Ǹ\": \"N\",\n \"ǹ\": \"n\",\n \"Ồ\": \"O\",\n \"ồ\": \"o\",\n \"Ṑ\": \"O\",\n \"ṑ\": \"o\",\n \"Ừ\": \"U\",\n \"ừ\": \"u\",\n \"Ẁ\": \"W\",\n \"ẁ\": \"w\",\n \"Ỳ\": \"Y\",\n \"ỳ\": \"y\",\n \"Ȁ\": \"A\",\n \"ȁ\": \"a\",\n \"Ȅ\": \"E\",\n \"ȅ\": \"e\",\n \"Ȉ\": \"I\",\n \"ȉ\": \"i\",\n \"Ȍ\": \"O\",\n \"ȍ\": \"o\",\n \"Ȑ\": \"R\",\n \"ȑ\": \"r\",\n \"Ȕ\": \"U\",\n \"ȕ\": \"u\",\n \"B̌\": \"B\",\n \"b̌\": \"b\",\n \"Č̣\": \"C\",\n \"č̣\": \"c\",\n \"Ê̌\": \"E\",\n \"ê̌\": \"e\",\n \"F̌\": \"F\",\n \"f̌\": \"f\",\n \"Ǧ\": \"G\",\n \"ǧ\": \"g\",\n \"Ȟ\": \"H\",\n \"ȟ\": \"h\",\n \"J̌\": \"J\",\n \"ǰ\": \"j\",\n \"Ǩ\": \"K\",\n \"ǩ\": \"k\",\n \"M̌\": \"M\",\n \"m̌\": \"m\",\n \"P̌\": \"P\",\n \"p̌\": \"p\",\n \"Q̌\": \"Q\",\n \"q̌\": \"q\",\n \"Ř̩\": \"R\",\n \"ř̩\": \"r\",\n \"Ṧ\": \"S\",\n \"ṧ\": \"s\",\n \"V̌\": \"V\",\n \"v̌\": \"v\",\n \"W̌\": \"W\",\n \"w̌\": \"w\",\n \"X̌\": \"X\",\n \"x̌\": \"x\",\n \"Y̌\": \"Y\",\n \"y̌\": \"y\",\n \"A̧\": \"A\",\n \"a̧\": \"a\",\n \"B̧\": \"B\",\n \"b̧\": \"b\",\n \"Ḑ\": \"D\",\n \"ḑ\": \"d\",\n \"Ȩ\": \"E\",\n \"ȩ\": \"e\",\n \"Ɛ̧\": \"E\",\n \"ɛ̧\": \"e\",\n \"Ḩ\": \"H\",\n \"ḩ\": \"h\",\n \"I̧\": \"I\",\n \"i̧\": \"i\",\n \"Ɨ̧\": \"I\",\n \"ɨ̧\": \"i\",\n \"M̧\": \"M\",\n \"m̧\": \"m\",\n \"O̧\": \"O\",\n \"o̧\": \"o\",\n \"Q̧\": \"Q\",\n \"q̧\": \"q\",\n \"U̧\": \"U\",\n \"u̧\": \"u\",\n \"X̧\": \"X\",\n \"x̧\": \"x\",\n \"Z̧\": \"Z\",\n \"z̧\": \"z\"\n};\nvar chars = Object.keys(characterMap).join('|');\nvar allAccents = new RegExp(chars, 'g');\nvar firstAccent = new RegExp(chars, '');\n\nvar removeAccents = function removeAccents(string) {\n return string.replace(allAccents, function (match) {\n return characterMap[match];\n });\n};\n\nvar hasAccents = function hasAccents(string) {\n return !!string.match(firstAccent);\n};\n\nvar removeAccents_1 = removeAccents;\nvar has = hasAccents;\nvar remove = removeAccents;\nremoveAccents_1.has = has;\nremoveAccents_1.remove = remove;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n/**\n * @name match-sorter\n * @license MIT license.\n * @copyright (c) 2017 Kent C. Dodds\n * @author Kent C. Dodds \n */\n\n\nvar rankings = {\n CASE_SENSITIVE_EQUAL: 9,\n EQUAL: 8,\n STARTS_WITH: 7,\n WORD_STARTS_WITH: 6,\n STRING_CASE: 5,\n STRING_CASE_ACRONYM: 4,\n CONTAINS: 3,\n ACRONYM: 2,\n MATCHES: 1,\n NO_MATCH: 0\n};\nvar caseRankings = {\n CAMEL: 0.8,\n PASCAL: 0.6,\n KEBAB: 0.4,\n SNAKE: 0.2,\n NO_CASE: 0\n};\nmatchSorter.rankings = rankings;\nmatchSorter.caseRankings = caseRankings;\n/**\n * Takes an array of items and a value and returns a new array with the items that match the given value\n * @param {Array} items - the items to sort\n * @param {String} value - the value to use for ranking\n * @param {Object} options - Some options to configure the sorter\n * @return {Array} - the new sorted array\n */\n\nfunction matchSorter(items, value) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; // not performing any search/sort if value(search term) is empty\n\n if (!value) return items;\n var keys = options.keys,\n _options$threshold = options.threshold,\n threshold = _options$threshold === undefined ? rankings.MATCHES : _options$threshold;\n var matchedItems = items.reduce(function (matches, item, index) {\n var _getHighestRanking = getHighestRanking(item, keys, value, options),\n rankedItem = _getHighestRanking.rankedItem,\n rank = _getHighestRanking.rank,\n keyIndex = _getHighestRanking.keyIndex,\n _getHighestRanking$ke = _getHighestRanking.keyThreshold,\n keyThreshold = _getHighestRanking$ke === undefined ? threshold : _getHighestRanking$ke;\n\n if (rank >= keyThreshold) {\n matches.push({\n rankedItem: rankedItem,\n item: item,\n rank: rank,\n index: index,\n keyIndex: keyIndex\n });\n }\n\n return matches;\n }, []);\n return matchedItems.sort(sortRankedItems).map(function (_ref) {\n var item = _ref.item;\n return item;\n });\n}\n/**\n * Gets the highest ranking for value for the given item based on its values for the given keys\n * @param {*} item - the item to rank\n * @param {Array} keys - the keys to get values from the item for the ranking\n * @param {String} value - the value to rank against\n * @param {Object} options - options to control the ranking\n * @return {{rank: Number, keyIndex: Number, keyThreshold: Number}} - the highest ranking\n */\n\n\nfunction getHighestRanking(item, keys, value, options) {\n if (!keys) {\n return {\n // ends up being duplicate of 'item' in matches but consistent\n rankedItem: item,\n rank: getMatchRanking(item, value, options),\n keyIndex: -1,\n keyThreshold: options.threshold\n };\n }\n\n var valuesToRank = getAllValuesToRank(item, keys);\n return valuesToRank.reduce(function (_ref2, _ref3, i) {\n var rank = _ref2.rank,\n keyIndex = _ref2.keyIndex,\n keyThreshold = _ref2.keyThreshold;\n var itemValue = _ref3.itemValue,\n attributes = _ref3.attributes;\n var newRank = getMatchRanking(itemValue, value, options);\n var minRanking = attributes.minRanking,\n maxRanking = attributes.maxRanking,\n threshold = attributes.threshold;\n\n if (newRank < minRanking && newRank >= rankings.MATCHES) {\n newRank = minRanking;\n } else if (newRank > maxRanking) {\n newRank = maxRanking;\n }\n\n if (newRank > rank) {\n rank = newRank;\n keyIndex = i;\n keyThreshold = threshold;\n }\n\n return {\n rankedItem: itemValue,\n rank: rank,\n keyIndex: keyIndex,\n keyThreshold: keyThreshold\n };\n }, {\n rank: rankings.NO_MATCH,\n keyIndex: -1,\n keyThreshold: options.threshold\n });\n}\n/**\n * Gives a rankings score based on how well the two strings match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @param {Object} options - options for the match (like keepDiacritics for comparison)\n * @returns {Number} the ranking for how well stringToRank matches testString\n */\n\n\nfunction getMatchRanking(testString, stringToRank, options) {\n /* eslint complexity:[2, 12] */\n testString = prepareValueForComparison(testString, options);\n stringToRank = prepareValueForComparison(stringToRank, options); // too long\n\n if (stringToRank.length > testString.length) {\n return rankings.NO_MATCH;\n } // case sensitive equals\n\n\n if (testString === stringToRank) {\n return rankings.CASE_SENSITIVE_EQUAL;\n }\n\n var caseRank = getCaseRanking(testString);\n var isPartial = isPartialOfCase(testString, stringToRank, caseRank);\n var isCasedAcronym = isCaseAcronym(testString, stringToRank, caseRank); // Lower casing before further comparison\n\n testString = testString.toLowerCase();\n stringToRank = stringToRank.toLowerCase(); // case insensitive equals\n\n if (testString === stringToRank) {\n return rankings.EQUAL + caseRank;\n } // starts with\n\n\n if (testString.indexOf(stringToRank) === 0) {\n return rankings.STARTS_WITH + caseRank;\n } // word starts with\n\n\n if (testString.indexOf(' ' + stringToRank) !== -1) {\n return rankings.WORD_STARTS_WITH + caseRank;\n } // is a part inside a cased string\n\n\n if (isPartial) {\n return rankings.STRING_CASE + caseRank;\n } // is acronym for a cased string\n\n\n if (caseRank > 0 && isCasedAcronym) {\n return rankings.STRING_CASE_ACRONYM + caseRank;\n } // contains\n\n\n if (testString.indexOf(stringToRank) !== -1) {\n return rankings.CONTAINS + caseRank;\n } else if (stringToRank.length === 1) {\n // If the only character in the given stringToRank\n // isn't even contained in the testString, then\n // it's definitely not a match.\n return rankings.NO_MATCH;\n } // acronym\n\n\n if (getAcronym(testString).indexOf(stringToRank) !== -1) {\n return rankings.ACRONYM + caseRank;\n } // will return a number between rankings.MATCHES and\n // rankings.MATCHES + 1 depending on how close of a match it is.\n\n\n return getClosenessRanking(testString, stringToRank);\n}\n/**\n * Generates an acronym for a string.\n *\n * @param {String} string the string for which to produce the acronym\n * @returns {String} the acronym\n */\n\n\nfunction getAcronym(string) {\n var acronym = '';\n var wordsInString = string.split(' ');\n wordsInString.forEach(function (wordInString) {\n var splitByHyphenWords = wordInString.split('-');\n splitByHyphenWords.forEach(function (splitByHyphenWord) {\n acronym += splitByHyphenWord.substr(0, 1);\n });\n });\n return acronym;\n}\n/**\n * Returns a score base on the case of the testString\n * @param {String} testString - the string to test against\n * @returns {Number} the number of the ranking,\n * based on the case between 0 and 1 for how the testString matches the case\n */\n\n\nfunction getCaseRanking(testString) {\n var containsUpperCase = testString.toLowerCase() !== testString;\n var containsDash = testString.indexOf('-') >= 0;\n var containsUnderscore = testString.indexOf('_') >= 0;\n\n if (!containsUpperCase && !containsUnderscore && containsDash) {\n return caseRankings.KEBAB;\n }\n\n if (!containsUpperCase && containsUnderscore && !containsDash) {\n return caseRankings.SNAKE;\n }\n\n if (containsUpperCase && !containsDash && !containsUnderscore) {\n var startsWithUpperCase = testString[0].toUpperCase() === testString[0];\n\n if (startsWithUpperCase) {\n return caseRankings.PASCAL;\n }\n\n return caseRankings.CAMEL;\n }\n\n return caseRankings.NO_CASE;\n}\n/**\n * Returns whether the stringToRank is one of the case parts in the testString (works with any string case)\n * @example\n * // returns true\n * isPartialOfCase('helloWorld', 'world', caseRankings.CAMEL)\n * @example\n * // returns false\n * isPartialOfCase('helloWorld', 'oworl', caseRankings.CAMEL)\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @param {Number} caseRanking - the ranking score based on case of testString\n * @returns {Boolean} whether the stringToRank is one of the case parts in the testString\n */\n\n\nfunction isPartialOfCase(testString, stringToRank, caseRanking) {\n var testIndex = testString.toLowerCase().indexOf(stringToRank.toLowerCase());\n\n switch (caseRanking) {\n case caseRankings.SNAKE:\n return testString[testIndex - 1] === '_';\n\n case caseRankings.KEBAB:\n return testString[testIndex - 1] === '-';\n\n case caseRankings.PASCAL:\n case caseRankings.CAMEL:\n return testIndex !== -1 && testString[testIndex] === testString[testIndex].toUpperCase();\n\n default:\n return false;\n }\n}\n/**\n * Check if stringToRank is an acronym for a partial case\n * @example\n * // returns true\n * isCaseAcronym('super_duper_file', 'sdf', caseRankings.SNAKE)\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the acronym to test\n * @param {Number} caseRank - the ranking of the case\n * @returns {Boolean} whether the stringToRank is an acronym for the testString\n */\n\n\nfunction isCaseAcronym(testString, stringToRank, caseRank) {\n var splitValue = null;\n\n switch (caseRank) {\n case caseRankings.SNAKE:\n splitValue = '_';\n break;\n\n case caseRankings.KEBAB:\n splitValue = '-';\n break;\n\n case caseRankings.PASCAL:\n case caseRankings.CAMEL:\n splitValue = /(?=[A-Z])/;\n break;\n\n default:\n splitValue = null;\n }\n\n var splitTestString = testString.split(splitValue);\n return stringToRank.toLowerCase().split('').reduce(function (correct, char, charIndex) {\n var splitItem = splitTestString[charIndex];\n return correct && splitItem && splitItem[0].toLowerCase() === char;\n }, true);\n}\n/**\n * Returns a score based on how spread apart the\n * characters from the stringToRank are within the testString.\n * A number close to rankings.MATCHES represents a loose match. A number close\n * to rankings.MATCHES + 1 represents a tighter match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @returns {Number} the number between rankings.MATCHES and\n * rankings.MATCHES + 1 for how well stringToRank matches testString\n */\n\n\nfunction getClosenessRanking(testString, stringToRank) {\n var matchingInOrderCharCount = 0;\n var charNumber = 0;\n\n function findMatchingCharacter(matchChar, string, index) {\n for (var j = index; j < string.length; j++) {\n var stringChar = string[j];\n\n if (stringChar === matchChar) {\n matchingInOrderCharCount += 1;\n return j + 1;\n }\n }\n\n return -1;\n }\n\n function getRanking(spread) {\n var inOrderPercentage = matchingInOrderCharCount / stringToRank.length;\n var ranking = rankings.MATCHES + inOrderPercentage * (1 / spread);\n return ranking;\n }\n\n var firstIndex = findMatchingCharacter(stringToRank[0], testString, 0);\n\n if (firstIndex < 0) {\n return rankings.NO_MATCH;\n }\n\n charNumber = firstIndex;\n\n for (var i = 1; i < stringToRank.length; i++) {\n var matchChar = stringToRank[i];\n charNumber = findMatchingCharacter(matchChar, testString, charNumber);\n var found = charNumber > -1;\n\n if (!found) {\n return rankings.NO_MATCH;\n }\n }\n\n var spread = charNumber - firstIndex;\n return getRanking(spread);\n}\n/**\n * Sorts items that have a rank, index, and keyIndex\n * @param {Object} a - the first item to sort\n * @param {Object} b - the second item to sort\n * @return {Number} -1 if a should come first, 1 if b should come first\n * Note: will never return 0\n */\n\n\nfunction sortRankedItems(a, b) {\n var aFirst = -1;\n var bFirst = 1;\n var aRankedItem = a.rankedItem,\n aRank = a.rank,\n aKeyIndex = a.keyIndex;\n var bRankedItem = b.rankedItem,\n bRank = b.rank,\n bKeyIndex = b.keyIndex;\n\n if (aRank === bRank) {\n if (aKeyIndex === bKeyIndex) {\n return String(aRankedItem).localeCompare(bRankedItem);\n } else {\n return aKeyIndex < bKeyIndex ? aFirst : bFirst;\n }\n } else {\n return aRank > bRank ? aFirst : bFirst;\n }\n}\n/**\n * Prepares value for comparison by stringifying it, removing diacritics (if specified)\n * @param {String} value - the value to clean\n * @param {Object} options - {keepDiacritics: whether to remove diacritics}\n * @return {String} the prepared value\n */\n\n\nfunction prepareValueForComparison(value, _ref4) {\n var keepDiacritics = _ref4.keepDiacritics;\n value = '' + value; // toString\n\n if (!keepDiacritics) {\n value = removeAccents_1(value);\n }\n\n return value;\n}\n/**\n * Gets value for key in item at arbitrarily nested keypath\n * @param {Object} item - the item\n * @param {Object|Function} key - the potentially nested keypath or property callback\n * @return {Array} - an array containing the value(s) at the nested keypath\n */\n\n\nfunction getItemValues(item, key) {\n if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object') {\n key = key.key;\n }\n\n var value = void 0;\n\n if (typeof key === 'function') {\n value = key(item); // eslint-disable-next-line no-negated-condition\n } else if (key.indexOf('.') !== -1) {\n // handle nested keys\n value = key.split('.').reduce(function (itemObj, nestedKey) {\n return itemObj ? itemObj[nestedKey] : null;\n }, item);\n } else {\n value = item[key];\n } // concat because `value` can be a string or an array\n // eslint-disable-next-line\n\n\n return value != null ? [].concat(value) : null;\n}\n/**\n * Gets all the values for the given keys in the given item and returns an array of those values\n * @param {Object} item - the item from which the values will be retrieved\n * @param {Array} keys - the keys to use to retrieve the values\n * @return {Array} objects with {itemValue, attributes}\n */\n\n\nfunction getAllValuesToRank(item, keys) {\n return keys.reduce(function (allVals, key) {\n var values = getItemValues(item, key);\n\n if (values) {\n values.forEach(function (itemValue) {\n allVals.push({\n itemValue: itemValue,\n attributes: getKeyAttributes(key)\n });\n });\n }\n\n return allVals;\n }, []);\n}\n/**\n * Gets all the attributes for the given key\n * @param {Object|String} key - the key from which the attributes will be retrieved\n * @return {Object} object containing the key's attributes\n */\n\n\nfunction getKeyAttributes(key) {\n if (typeof key === 'string') {\n key = {\n key: key\n };\n }\n\n return _extends({\n maxRanking: Infinity,\n minRanking: -Infinity\n }, key);\n}\n\nexport default matchSorter;\nexport { rankings };","import \"core-js/modules/es.array.reduce.js\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport \"core-js/modules/es.array.reduce.js\";\nexport { Link } from 'gatsby';\n\nif (typeof Link !== 'undefined' && Link && Link === Object(Link) && Object.isExtensible(Link) && !Link.hasOwnProperty('__filemeta')) {\n Object.defineProperty(Link, '__filemeta', {\n configurable: true,\n value: {\n name: \"Link\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nimport { createContext, createElement, useContext, Fragment, Component, useMemo, useEffect, useRef, useState, memo } from 'react';\nimport _merge from 'lodash/fp/merge';\nimport equal from 'fast-deep-equal';\nimport _kebabCase from 'lodash/fp/kebabCase';\nimport _mapValues from 'lodash/fp/mapValues';\nimport _get from 'lodash/fp/get';\nimport _first from 'lodash/fp/first';\nimport _assoc from 'lodash/fp/assoc';\nimport { pascalCase } from 'pascal-case';\nimport marksy from 'marksy';\nimport sort from 'array-sort';\nimport _unionBy from 'lodash/fp/unionBy';\nimport _flattenDepth from 'lodash/fp/flattenDepth';\nimport _omit from 'lodash/fp/omit';\nimport _pipe from 'lodash/fp/pipe';\nimport { ulid } from 'ulid';\nimport match from 'match-sorter';\nimport _throttle from 'lodash/fp/throttle';\nimport { __rest } from 'tslib';\nimport capitalize from 'capitalize';\n\nvar DefNotFound = function DefNotFound() {\n return /*#__PURE__*/createElement(Fragment, null, \"Not found\");\n};\n\nvar DefLayout = function DefLayout(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/createElement(Fragment, null, children);\n};\n\nvar DefPlayground = function DefPlayground(_ref2) {\n var component = _ref2.component,\n code = _ref2.code;\n return /*#__PURE__*/createElement(\"div\", null, component, /*#__PURE__*/createElement(\"pre\", null, code));\n};\n\nvar defaultComponents = {\n layout: DefLayout,\n notFound: DefNotFound,\n playground: DefPlayground\n};\nvar ctx = /*#__PURE__*/createContext(defaultComponents);\n\nvar ComponentsProvider = function ComponentsProvider(_ref3) {\n var _ref3$components = _ref3.components,\n themeComponents = _ref3$components === void 0 ? {} : _ref3$components,\n children = _ref3.children;\n return /*#__PURE__*/createElement(ctx.Provider, {\n value: Object.assign({}, defaultComponents, themeComponents)\n }, children);\n};\n\nvar useComponents = function useComponents() {\n return useContext(ctx);\n};\n\nfunction create(initial) {\n var _a;\n\n var ctx = /*#__PURE__*/createContext(initial);\n var listeners = new Set();\n\n var dispatch = function dispatch(fn) {\n listeners.forEach(function (listener) {\n return listener(fn);\n });\n };\n\n return {\n context: ctx,\n set: function set(fn) {\n return dispatch(fn);\n },\n Provider: (_a = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Provider, _Component);\n\n function Provider() {\n var _this;\n\n _this = _Component.apply(this, arguments) || this;\n _this.state = _this.props.initial || initial || {};\n return _this;\n }\n\n Provider.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (!equal(props.initial, state)) return props.initial;\n return null;\n };\n\n var _proto = Provider.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n listeners.add(function (fn) {\n return _this2.setState(fn);\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n listeners.clear();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/createElement(ctx.Provider, {\n value: this.state\n }, this.props.children);\n };\n\n return Provider;\n }(Component), _a.displayName = 'DoczStateProvider', _a)\n };\n}\n\nvar doczState = create({});\n\nvar useConfig = function useConfig() {\n var state = useContext(doczState.context);\n var transform = state.transform,\n config = state.config,\n _state$themeConfig = state.themeConfig,\n themeConfig = _state$themeConfig === void 0 ? {} : _state$themeConfig;\n\n var newConfig = _merge(themeConfig, config ? config.themeConfig : {});\n\n var transformed = transform ? transform(newConfig) : newConfig;\n return Object.assign({}, config, {\n themeConfig: transformed\n });\n};\n\nvar useComponentProps = function useComponentProps(_ref4) {\n var componentName = _ref4.componentName,\n fileName = _ref4.fileName;\n var components = useComponents();\n\n var _useContext = useContext(doczState.context),\n stateProps = _useContext.props;\n\n var componentMatcher = function componentMatcher(componentName, item) {\n var matchingPatterns = [fileName, \"/\" + componentName + \".\", \"/\" + _kebabCase(componentName) + \".\", \"/\" + pascalCase(componentName) + \".\"];\n return !!matchingPatterns.find(function (pattern) {\n return item.key.includes(pattern);\n });\n };\n\n var found = stateProps && stateProps.length > 0 && stateProps.find(function (item) {\n return componentMatcher(componentName, item);\n });\n var value = _get('value', found) || [];\n\n var firstDefinition = _first(value);\n\n var definition = value.find(function (i) {\n return i.displayName === componentName;\n });\n var compile = useMemo(function () {\n return marksy({\n createElement: createElement,\n elements: components\n });\n }, [components]);\n var props = useMemo(function () {\n var props = _get('props', definition || firstDefinition);\n\n var parseDescs = _mapValues(function (prop) {\n var desc = _get('description', prop);\n\n return !desc ? prop : _assoc('description', compile(desc).tree, prop);\n });\n\n return parseDescs(props);\n }, [compile, definition || firstDefinition]);\n return props;\n};\n\nvar useCurrentDoc = function useCurrentDoc() {\n var state = useContext(doczState.context);\n return _get('currentEntry.value', state);\n};\n\nvar updateState = function updateState(ev) {\n var _JSON$parse = JSON.parse(ev.data),\n type = _JSON$parse.type,\n payload = _JSON$parse.payload;\n\n var prop = type.startsWith('state.') && type.split('.')[1];\n\n if (prop) {\n doczState.set(function (state) {\n var _Object$assign;\n\n return Object.assign({}, state, (_Object$assign = {}, _Object$assign[prop] = payload, _Object$assign));\n });\n }\n};\n\nvar useDataServer = function useDataServer(url) {\n useEffect(function () {\n if (!url) return;\n var socket = new WebSocket(url);\n socket.onmessage = updateState;\n return function () {\n return socket.close();\n };\n }, []);\n};\n\nfunction flatArrFromObject(arr, prop) {\n var reducer = function reducer(arr, obj) {\n var value = _get(prop)(obj);\n\n return value ? arr.concat([value]) : arr;\n };\n\n return Array.from(new Set(arr.reduce(reducer, [])));\n}\n\nfunction compare(a, b, reverse) {\n if (a < b) return reverse ? 1 : -1;\n if (a > b) return reverse ? -1 : 1;\n return 0;\n}\n\nvar useDocs = function useDocs() {\n var _useContext2 = useContext(doczState.context),\n _useContext2$entries = _useContext2.entries,\n entries = _useContext2$entries === void 0 ? [] : _useContext2$entries;\n\n var arr = entries.map(function (_ref5) {\n var value = _ref5.value;\n return value;\n });\n return sort(arr, function (a, b) {\n return compare(a.name, b.name);\n });\n};\n\nvar noMenu = function noMenu(entry) {\n return !entry.menu;\n};\n\nvar fromMenu = function fromMenu(menu) {\n return function (entry) {\n return entry.menu === menu;\n };\n};\n\nvar entriesOfMenu = function entriesOfMenu(menu, entries) {\n return entries.filter(fromMenu(menu));\n};\n\nvar parseMenu = function parseMenu(entries) {\n return function (name) {\n return {\n name: name,\n menu: entriesOfMenu(name, entries)\n };\n };\n};\n\nvar menusFromEntries = function menusFromEntries(entries) {\n var entriesWithoutMenu = entries.filter(noMenu);\n var menus = flatArrFromObject(entries, 'menu').map(parseMenu(entries));\n return _unionBy('name', menus, entriesWithoutMenu);\n};\n\nvar parseItemStr = function parseItemStr(item) {\n return typeof item === 'string' ? {\n name: item\n } : item;\n};\n\nvar normalize = function normalize(item) {\n var selected = parseItemStr(item);\n return Object.assign({}, selected, {\n id: selected.id || ulid(),\n parent: _get('parent', selected) || _get('parent', item),\n menu: Array.isArray(selected.menu) ? selected.menu.map(normalize) : selected.menu\n });\n};\n\nvar clean = function clean(item) {\n return item.href || item.route ? _omit('menu', item) : item;\n};\n\nvar normalizeAndClean = _pipe(normalize, clean);\n\nvar mergeMenus = function mergeMenus(entriesMenu, configMenu) {\n var first = entriesMenu.map(normalizeAndClean);\n var second = configMenu.map(normalizeAndClean);\n\n var merged = _unionBy('name', first, second);\n\n return merged.map(function (item) {\n if (!item.menu) return item;\n var found = second.find(function (i) {\n return i.name === item.name;\n });\n var foundMenu = found && found.menu;\n return Object.assign({}, item, {\n menu: foundMenu ? mergeMenus(item.menu, foundMenu) : item.menu || found.menu\n });\n });\n};\n\nvar UNKNOWN_POS = Infinity;\n\nvar findPos = function findPos(item, orderedList) {\n if (orderedList === void 0) {\n orderedList = [];\n }\n\n var name = typeof item !== 'string' ? _get('name', item) : item;\n var pos = orderedList.findIndex(function (item) {\n return item === name;\n });\n return pos !== -1 ? pos : UNKNOWN_POS;\n};\n\nvar compareWithMenu = function compareWithMenu(to) {\n if (to === void 0) {\n to = [];\n }\n\n return function (a, b) {\n var list = to.map(function (i) {\n return i.name || i;\n });\n return compare(findPos(a, list), findPos(b, list));\n };\n};\n\nvar sortByName = function sortByName(a, b) {\n return a.name < b.name ? -1 : a.name > b.name ? 1 : 0;\n};\n\nvar sortMenus = function sortMenus(first, second) {\n if (second === void 0) {\n second = [];\n }\n\n var sorted = sort(first, compareWithMenu(second), sortByName);\n return sorted.map(function (item) {\n if (!item.menu) return item;\n var found = second.find(function (menu) {\n return menu.name === item.name;\n });\n var foundMenu = found && found.menu;\n return Object.assign({}, item, {\n menu: foundMenu ? sortMenus(item.menu, foundMenu) : sort(item.menu, sortByName)\n });\n });\n};\n\nvar search = function search(val, menu) {\n var items = menu.map(function (item) {\n return [item].concat(item.menu || []);\n });\n\n var flattened = _flattenDepth(2, items);\n\n var flattenedDeduplicated = Array.from(new Set(flattened));\n return match(flattenedDeduplicated, val, {\n keys: ['name']\n });\n};\n\nvar filterMenus = function filterMenus(items, filter) {\n if (!filter) return items;\n return items.filter(filter).map(function (item) {\n if (!item.menu) return item;\n return Object.assign({}, item, {\n menu: item.menu.filter(filter)\n });\n });\n};\n\nvar useMenus = function useMenus(opts) {\n var _ref6 = opts || {},\n _ref6$query = _ref6.query,\n query = _ref6$query === void 0 ? '' : _ref6$query;\n\n var _useContext3 = useContext(doczState.context),\n entries = _useContext3.entries,\n config = _useContext3.config;\n\n if (!entries) return null;\n var arr = entries.map(function (_ref7) {\n var value = _ref7.value;\n return value;\n });\n var entriesMenu = menusFromEntries(arr);\n var sorted = useMemo(function () {\n var merged = mergeMenus(entriesMenu, config.menu);\n var result = sortMenus(merged, config.menu);\n return filterMenus(result, opts && opts.filter);\n }, [entries, config]);\n return query && query.length > 0 ? search(query, sorted) : sorted;\n};\n\nvar usePrevious = function usePrevious(value, defaultValue) {\n var ref = useRef(defaultValue);\n useEffect(function () {\n ref.current = value;\n });\n return ref.current;\n};\n\nvar isClient = typeof window === 'object';\n\nvar getSize = function getSize(initialWidth, initialHeight) {\n return {\n innerHeight: isClient ? window.innerHeight : initialHeight,\n innerWidth: isClient ? window.innerWidth : initialWidth,\n outerHeight: isClient ? window.outerHeight : initialHeight,\n outerWidth: isClient ? window.outerWidth : initialWidth\n };\n};\n\nvar useWindowSize = function useWindowSize(throttleMs, _initialWidth, initialHeight) {\n if (throttleMs === void 0) {\n throttleMs = 300;\n }\n\n if (_initialWidth === void 0) {\n _initialWidth = Infinity;\n }\n\n if (initialHeight === void 0) {\n initialHeight = Infinity;\n }\n\n var _useState = useState(getSize(initialHeight, initialHeight)),\n windowSize = _useState[0],\n setWindowSize = _useState[1];\n\n var tSetWindowResize = _throttle(throttleMs, function () {\n return setWindowSize(getSize(initialHeight, initialHeight));\n });\n\n useEffect(function () {\n window.addEventListener('resize', tSetWindowResize);\n return function () {\n return void window.removeEventListener('resize', tSetWindowResize);\n };\n }, []);\n return windowSize;\n};\n\nvar Playground = function Playground(_ref8) {\n var className = _ref8.className,\n children = _ref8.children,\n style = _ref8.style,\n wrapper = _ref8.wrapper,\n __scope = _ref8.__scope,\n __position = _ref8.__position,\n __code = _ref8.__code,\n language = _ref8.language,\n useScoping = _ref8.useScoping;\n var components = useComponents();\n var PlaygroundComponent = components.playground;\n if (!PlaygroundComponent) return null;\n return /*#__PURE__*/createElement(PlaygroundComponent, {\n components: components,\n component: children,\n className: className,\n style: style,\n wrapper: wrapper,\n scope: __scope,\n position: __position,\n code: __code,\n language: language,\n useScoping: useScoping\n });\n};\n\nvar RE_OBJECTOF = /(?:React\\.)?(?:PropTypes\\.)?objectOf\\((?:React\\.)?(?:PropTypes\\.)?(\\w+)\\)/;\n\nvar getTypeStr = function getTypeStr(type) {\n switch (type.name.toLowerCase()) {\n case 'instanceof':\n return \"Class(\" + type.value + \")\";\n\n case 'enum':\n if (type.computed) return type.value;\n return type.value ? type.value.map(function (v) {\n return \"\" + v.value;\n }).join(' │ ') : type.raw;\n\n case 'union':\n return type.value ? type.value.map(function (t) {\n return \"\" + getTypeStr(t);\n }).join(' │ ') : type.raw;\n\n case 'array':\n return type.raw;\n\n case 'arrayof':\n return \"Array<\" + getTypeStr(type.value) + \">\";\n\n case 'custom':\n if (type.raw.indexOf('function') !== -1 || type.raw.indexOf('=>') !== -1) return 'Custom(Function)';else if (type.raw.toLowerCase().indexOf('objectof') !== -1) {\n var m = type.raw.match(RE_OBJECTOF);\n if (m && m[1]) return \"ObjectOf(\" + capitalize(m[1]) + \")\";\n return 'ObjectOf';\n }\n return 'Custom';\n\n case 'bool':\n return 'Boolean';\n\n case 'func':\n return 'Function';\n\n case 'shape':\n var shape = type.value;\n var rst = {};\n Object.keys(shape).forEach(function (key) {\n rst[key] = getTypeStr(shape[key]);\n });\n return JSON.stringify(rst, null, 2);\n\n default:\n return type.name;\n }\n};\n\nvar humanize = function humanize(type) {\n return getTypeStr(type);\n};\n\nvar getPropType = function getPropType(prop) {\n var propName = _get('name', prop.flowType || prop.type);\n\n if (!propName) return null;\n var isEnum = propName.startsWith('\"') || propName === 'enum';\n var name = isEnum ? 'enum' : propName;\n\n var value = _get('type.value', prop);\n\n if (!name) return null;\n\n if (isEnum && typeof value === 'string' || !prop.flowType && !isEnum && !value || prop.flowType && !prop.flowType.elements) {\n return name;\n }\n\n return prop.flowType ? humanize(prop.flowType) : humanize(prop.type);\n};\n\nvar Props = function Props(_a) {\n var title = _a.title,\n isToggle = _a.isToggle,\n isRaw = _a.isRaw,\n component = _a.of,\n rest = __rest(_a, [\"title\", \"isToggle\", \"isRaw\", \"of\"]);\n\n var components = useComponents();\n var PropsComponent = components.props;\n\n var fileName = _get('__filemeta.filename', component);\n\n var filemetaName = _get('__filemeta.name', component);\n\n var componentName = filemetaName || _get('displayName', component) || _get('name', component);\n\n var props = useComponentProps({\n componentName: componentName,\n fileName: fileName\n });\n if (!PropsComponent) return null;\n return /*#__PURE__*/createElement(PropsComponent, Object.assign({\n title: title,\n isRaw: isRaw,\n isToggle: isToggle,\n props: props,\n getPropType: getPropType,\n of: component\n }, rest));\n};\n\nfunction theme(themeConfig, transform) {\n if (transform === void 0) {\n transform = function transform(c) {\n return c;\n };\n }\n\n return function (WrappedComponent) {\n var Theme = /*#__PURE__*/memo(function (props) {\n var db = props.db,\n currentEntry = props.currentEntry,\n children = props.children;\n var initial = Object.assign({}, db, {\n currentEntry: currentEntry,\n themeConfig: themeConfig,\n transform: transform\n });\n return /*#__PURE__*/createElement(doczState.Provider, {\n initial: initial\n }, /*#__PURE__*/createElement(WrappedComponent, null, children));\n });\n Theme.displayName = WrappedComponent.displayName || 'DoczTheme';\n return Theme;\n };\n}\n\nexport { ComponentsProvider, Playground, Props, doczState, theme, useComponentProps, useComponents, useConfig, useCurrentDoc, useDataServer, useDocs, useMenus, usePrevious, useWindowSize };\n\nif (typeof useWindowSize !== 'undefined' && useWindowSize && useWindowSize === Object(useWindowSize) && Object.isExtensible(useWindowSize) && !useWindowSize.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useWindowSize, '__filemeta', {\n configurable: true,\n value: {\n name: \"useWindowSize\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof usePrevious !== 'undefined' && usePrevious && usePrevious === Object(usePrevious) && Object.isExtensible(usePrevious) && !usePrevious.hasOwnProperty('__filemeta')) {\n Object.defineProperty(usePrevious, '__filemeta', {\n configurable: true,\n value: {\n name: \"usePrevious\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useMenus !== 'undefined' && useMenus && useMenus === Object(useMenus) && Object.isExtensible(useMenus) && !useMenus.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useMenus, '__filemeta', {\n configurable: true,\n value: {\n name: \"useMenus\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useDocs !== 'undefined' && useDocs && useDocs === Object(useDocs) && Object.isExtensible(useDocs) && !useDocs.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useDocs, '__filemeta', {\n configurable: true,\n value: {\n name: \"useDocs\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useDataServer !== 'undefined' && useDataServer && useDataServer === Object(useDataServer) && Object.isExtensible(useDataServer) && !useDataServer.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useDataServer, '__filemeta', {\n configurable: true,\n value: {\n name: \"useDataServer\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useCurrentDoc !== 'undefined' && useCurrentDoc && useCurrentDoc === Object(useCurrentDoc) && Object.isExtensible(useCurrentDoc) && !useCurrentDoc.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useCurrentDoc, '__filemeta', {\n configurable: true,\n value: {\n name: \"useCurrentDoc\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useConfig !== 'undefined' && useConfig && useConfig === Object(useConfig) && Object.isExtensible(useConfig) && !useConfig.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useConfig, '__filemeta', {\n configurable: true,\n value: {\n name: \"useConfig\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useComponents !== 'undefined' && useComponents && useComponents === Object(useComponents) && Object.isExtensible(useComponents) && !useComponents.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useComponents, '__filemeta', {\n configurable: true,\n value: {\n name: \"useComponents\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof useComponentProps !== 'undefined' && useComponentProps && useComponentProps === Object(useComponentProps) && Object.isExtensible(useComponentProps) && !useComponentProps.hasOwnProperty('__filemeta')) {\n Object.defineProperty(useComponentProps, '__filemeta', {\n configurable: true,\n value: {\n name: \"useComponentProps\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof theme !== 'undefined' && theme && theme === Object(theme) && Object.isExtensible(theme) && !theme.hasOwnProperty('__filemeta')) {\n Object.defineProperty(theme, '__filemeta', {\n configurable: true,\n value: {\n name: \"theme\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof doczState !== 'undefined' && doczState && doczState === Object(doczState) && Object.isExtensible(doczState) && !doczState.hasOwnProperty('__filemeta')) {\n Object.defineProperty(doczState, '__filemeta', {\n configurable: true,\n value: {\n name: \"doczState\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof Props !== 'undefined' && Props && Props === Object(Props) && Object.isExtensible(Props) && !Props.hasOwnProperty('__filemeta')) {\n Object.defineProperty(Props, '__filemeta', {\n configurable: true,\n value: {\n name: \"Props\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof Playground !== 'undefined' && Playground && Playground === Object(Playground) && Object.isExtensible(Playground) && !Playground.hasOwnProperty('__filemeta')) {\n Object.defineProperty(Playground, '__filemeta', {\n configurable: true,\n value: {\n name: \"Playground\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}\n\nif (typeof ComponentsProvider !== 'undefined' && ComponentsProvider && ComponentsProvider === Object(ComponentsProvider) && Object.isExtensible(ComponentsProvider) && !ComponentsProvider.hasOwnProperty('__filemeta')) {\n Object.defineProperty(ComponentsProvider, '__filemeta', {\n configurable: true,\n value: {\n name: \"ComponentsProvider\",\n filename: \"node_modules/docz/dist/index.esm.js\"\n }\n });\n}","import { Playground, Props } from 'docz';\nimport { DataLabel } from \"../../../../../src/components/DataLabel\";\nimport { Flex } from \"../../../../../src/components/Flex\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n DataLabel,\n Flex,\n React\n};","var apply = require('./_apply'),\n createCtor = require('./_createCtor'),\n createHybrid = require('./_createHybrid'),\n createRecurry = require('./_createRecurry'),\n getHolder = require('./_getHolder'),\n replaceHolders = require('./_replaceHolders'),\n root = require('./_root');\n\n/**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n}\n\nmodule.exports = createCurry;\n","import React, { Component } from 'react';\nimport Modal from 'react-modal';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n/**\n * Placeholder for future translate functionality\n */\n\n\nfunction translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!str) {\n return '';\n }\n\n var translated = str;\n\n if (replaceStrings) {\n Object.keys(replaceStrings).forEach(function (placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n }\n\n return translated;\n}\n\nfunction getWindowWidth() {\n return typeof global.window !== 'undefined' ? global.window.innerWidth : 0;\n}\n\nfunction getWindowHeight() {\n return typeof global.window !== 'undefined' ? global.window.innerHeight : 0;\n} // Get the highest window context that isn't cross-origin\n// (When in an iframe)\n\n\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n var referrer = self.document.referrer; // If we reached the top level, return self\n\n if (self === global.window.top || !referrer) {\n return self;\n }\n\n var getOrigin = function getOrigin(href) {\n return href.match(/(.*\\/\\/.*?)(\\/|$)/)[1];\n }; // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n\n\n if (getOrigin(self.location.href) === getOrigin(referrer)) {\n return getHighestSafeWindowContext(self.parent);\n } // If a different origin, we consider the current level\n // as the top reachable one\n\n\n return self;\n} // Min image zoom level\n\n\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\n\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\n\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\n\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\n\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\n\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\n\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\n\nvar MIN_SWIPE_DISTANCE = 200;\n\nvar ReactImageLightbox = /*#__PURE__*/function (_Component) {\n _inherits(ReactImageLightbox, _Component);\n\n _createClass(ReactImageLightbox, null, [{\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n }, {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: 'mouse',\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n }, {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n }, {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n\n }, {\n key: \"getTransform\",\n value: function getTransform(_ref) {\n var _ref$x = _ref.x,\n x = _ref$x === void 0 ? 0 : _ref$x,\n _ref$y = _ref.y,\n y = _ref$y === void 0 ? 0 : _ref$y,\n _ref$zoom = _ref.zoom,\n zoom = _ref$zoom === void 0 ? 1 : _ref$zoom,\n width = _ref.width,\n targetWidth = _ref.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n\n if (width > windowWidth) {\n nextX += (windowWidth - width) / 2;\n }\n\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }]);\n\n function ReactImageLightbox(props) {\n var _this;\n\n _classCallCheck(this, ReactImageLightbox);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(ReactImageLightbox).call(this, props));\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n\n _this.outerEl = React.createRef();\n _this.zoomInBtn = React.createRef();\n _this.zoomOutBtn = React.createRef();\n _this.caption = React.createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(ReactImageLightbox, [{\n key: \"componentWillMount\",\n value: function componentWillMount() {\n // Timeouts - always clear it before umount\n this.timeouts = []; // Current action\n\n this.currentAction = ACTION_NONE; // Events source\n\n this.eventsSource = SOURCE_ANY; // Empty pointers list\n\n this.pointerList = []; // Prevent inner close\n\n this.preventInnerClose = false;\n this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n\n this.keyPressed = false; // Used to store load state / dimensions of images\n\n this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n\n this.lastKeyDownTime = 0; // Used for debouncing window resize event\n\n this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n\n this.wheelActionTimeout = null;\n this.resetScrollTimeout = null;\n this.scrollX = 0;\n this.scrollY = 0; // Used in panning zoomed images\n\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Used to swipe\n\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0; // Used to pinch\n\n this.pinchTouchList = null;\n this.pinchDistance = 0; // Used to differentiate between images with identical src\n\n this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n\n this.moveRequested = false;\n\n if (!this.props.animationDisabled) {\n // Make opening animation play\n this.setState({\n isClosing: false\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this; // Prevents cross-origin errors when using a cross-origin iframe\n\n\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function (type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this; // Iterate through the source types for prevProps and nextProps to\n // determine if any of the sources changed\n\n\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function (srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[_this3.props[srcType.name]] = true;\n nextSrcDict[nextProps[srcType.name]] = true;\n }\n });\n\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function (prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this3.imageCache) {\n _this3.imageCache[prevSrc].loaded = false;\n }\n });\n this.moveRequested = false; // Load any new images\n\n this.loadAllImages(nextProps);\n }\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate() {\n // Wait for move...\n return !this.moveRequested;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this4 = this;\n\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function (type) {\n _this4.windowContext.removeEventListener(type, _this4.listeners[type]);\n });\n this.timeouts.forEach(function (tid) {\n return clearTimeout(tid);\n });\n }\n }, {\n key: \"setTimeout\",\n value: function (_setTimeout) {\n function setTimeout(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function (func, time) {\n var _this5 = this;\n\n var id = setTimeout(function () {\n _this5.timeouts = _this5.timeouts.filter(function (tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n }, {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this6 = this;\n\n if (this.preventInnerCloseTimeout) {\n this.clearTimeout(this.preventInnerCloseTimeout);\n }\n\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function () {\n _this6.preventInnerClose = false;\n _this6.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n\n }, {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n\n if (this.isImageLoaded(imageSrc)) {\n // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n } else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else {\n return null;\n }\n\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n\n }, {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n\n if (maxRatio > srcRatio) {\n // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n }\n\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n }, {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType('mainSrc');\n\n if (currentImageInfo === null) {\n return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n }\n\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) {\n // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n } else {\n maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n }\n\n var maxY = 0;\n\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) {\n // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n } else {\n maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n }\n\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n\n }, {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [{\n name: 'mainSrc',\n keyEnding: \"i\".concat(this.keyCounter)\n }, {\n name: 'mainSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter)\n }, {\n name: 'nextSrc',\n keyEnding: \"i\".concat(this.keyCounter + 1)\n }, {\n name: 'nextSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter + 1)\n }, {\n name: 'prevSrc',\n keyEnding: \"i\".concat(this.keyCounter - 1)\n }, {\n name: 'prevSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }];\n }\n /**\n * Get sizing when the image is scaled\n */\n\n }, {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n /**\n * Get the size of the lightbox in pixels\n */\n\n }, {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) {\n return this.outerEl.current.getBoundingClientRect();\n }\n\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n }, {\n key: \"clearTimeout\",\n value: function (_clearTimeout) {\n function clearTimeout(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n\n clearTimeout.toString = function () {\n return _clearTimeout.toString();\n };\n\n return clearTimeout;\n }(function (id) {\n this.timeouts = this.timeouts.filter(function (tid) {\n return tid !== id;\n });\n clearTimeout(id);\n }) // Change zoom level\n\n }, {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) {\n return;\n } // Constrain zoom level to the set bounds\n\n\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n\n if (nextZoomLevel === this.state.zoomLevel) {\n return;\n }\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n\n var imageBaseSize = this.getBestImageForType('mainSrc');\n\n if (imageBaseSize === null) {\n return;\n }\n\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== 'undefined' ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== 'undefined' ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n }, {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) {\n this.requestClose(event);\n }\n }\n /**\n * Handle user keyboard actions\n */\n\n }, {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n\n if (this.isAnimating()) {\n return;\n } // Allow slightly faster navigation through the images when user presses keys repeatedly\n\n\n if (event.type === 'keyup') {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n\n var currentTime = new Date();\n\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return;\n }\n\n this.lastKeyDownTime = currentTime.getTime();\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n /**\n * Handle a mouse wheel event over the lightbox container\n */\n\n }, {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this7 = this; // Prevent scrolling of the background\n\n\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function () {\n _this7.scrollX = 0;\n _this7.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n\n\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(function () {\n _this7.wheelActionTimeout = null;\n }, actionDelay);\n }\n }\n }, {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n\n if (Math.abs(event.deltaY) < yThreshold) {\n return;\n }\n\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n /**\n * Handle a double click on the current image\n */\n\n }, {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) {\n // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n } else {\n // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n }\n }, {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) {\n return true;\n }\n\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n\n switch (source) {\n case SOURCE_MOUSE:\n return false;\n\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n\n return false;\n\n default:\n return false;\n }\n }\n }, {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n }, {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function (_ref2) {\n var id = _ref2.id;\n return id !== pointer.id;\n });\n }\n }, {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this8 = this;\n\n this.pointerList = this.pointerList.filter(function (_ref3) {\n var source = _ref3.source;\n return source === _this8.eventsSource;\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.multiPointerMove(event, [ReactImageLightbox.parseMouseEvent(event)]);\n }\n }\n }, {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) {\n switch (event.type) {\n case 'pointerdown':\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n\n break;\n\n case 'pointermove':\n this.multiPointerMove(event, [ReactImageLightbox.parsePointerEvent(event)]);\n break;\n\n case 'pointerup':\n case 'pointercancel':\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n }\n }, {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this9 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function (eventTouch) {\n return _this9.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n this.multiPointerMove(event, [].map.call(event.changedTouches, function (eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n }\n }, {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this10 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function (touch) {\n return _this10.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) {\n this.handleSwipeStart(pointer);\n } else {\n this.handleMoveStart(pointer);\n }\n }\n }, {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n\n switch (this.pointerList.length) {\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n {\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n }\n\n case ACTION_SWIPE:\n {\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n }\n\n case ACTION_PINCH:\n {\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n\n switch (this.pointerList.length) {\n case 0:\n {\n this.eventsSource = SOURCE_ANY;\n break;\n }\n\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n // This happens:\n // - On a mouseDown event\n // - On a touchstart event\n\n }, {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref4) {\n var clientX = _ref4.x,\n clientY = _ref4.y;\n\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n // This happens:\n // - After a mouseDown and before a mouseUp event\n // - After a touchstart and before a touchend event\n\n }, {\n key: \"handleMove\",\n value: function handleMove(_ref5) {\n var clientX = _ref5.x,\n clientY = _ref5.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) {\n this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n }\n }, {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this11 = this;\n\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function () {\n _this11.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n }, {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref6) {\n var clientX = _ref6.x,\n clientY = _ref6.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref7) {\n var clientX = _ref7.x,\n clientY = _ref7.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) {\n return;\n }\n\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n\n if (xDiffAbs < boxRect.width / 4) {\n return;\n }\n }\n\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n }, {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref9 = _slicedToArray(_ref8, 2),\n a = _ref9[0],\n b = _ref9[1];\n\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n }, {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref11 = _slicedToArray(_ref10, 2),\n a = _ref11[0],\n b = _ref11[1];\n\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n }, {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function (_ref12) {\n var id = _ref12.id,\n x = _ref12.x,\n y = _ref12.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n }, {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function (oldPointer) {\n for (var i = 0; i < pointerList.length; i += 1) {\n if (pointerList[i].id === oldPointer.id) {\n return pointerList[i];\n }\n }\n\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList),\n clientX = _this$calculatePinchC.x,\n clientY = _this$calculatePinchC.y;\n\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n }, {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n\n }, {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n }, {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MAX_ZOOM_LEVEL) {\n this.zoomOutBtn.current.focus();\n }\n }\n }, {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n this.zoomInBtn.current.focus();\n }\n }\n }, {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n\n if (!this.caption.current) {\n return;\n }\n\n var _this$caption$current = this.caption.current.getBoundingClientRect(),\n height = _this$caption$current.height;\n\n var _this$caption$current2 = this.caption.current,\n scrollHeight = _this$caption$current2.scrollHeight,\n scrollTop = _this$caption$current2.scrollTop;\n\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) {\n event.preventDefault();\n }\n } // Detach key and mouse input events\n\n }, {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n\n }, {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n\n }, {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this12 = this; // Return the image info if it is already cached\n\n\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function () {\n done();\n }, 1);\n return;\n }\n\n var inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = function (errorEvent) {\n _this12.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n\n\n _this12.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread({}, prevState.loadErrorStatus, _defineProperty({}, srcType, true))\n };\n });\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = function () {\n _this12.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n _this12.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n\n }, {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this13 = this;\n\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function (err) {\n // Give up showing image on error\n if (err) {\n return;\n } // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n\n\n if (_this13.props[srcType] !== imageSrc || _this13.didUnmount) {\n return;\n } // Force rerender with the new image\n\n\n _this13.forceUpdate();\n };\n }; // Load the images\n\n\n this.getSrcTypes().forEach(function (srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n\n if (props[type] && _this13.state.loadErrorStatus[type]) {\n _this13.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread({}, prevState.loadErrorStatus, _defineProperty({}, type, false))\n };\n });\n } // Load unloaded images\n\n\n if (props[type] && !_this13.isImageLoaded(props[type])) {\n _this13.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n }\n });\n } // Request that the lightbox be closed\n\n }, {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this14 = this; // Call the parent close request\n\n\n var closeLightbox = function closeLightbox() {\n return _this14.props.onCloseRequest(event);\n };\n\n if (this.props.animationDisabled || event.type === 'keydown' && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n\n\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n }, {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this15 = this; // Reset the zoom level on image move\n\n\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function () {\n return _this15.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n\n this.keyPressed = false;\n this.moveRequested = true;\n\n if (direction === 'prev') {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n\n }, {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove('next', event);\n } // Request to transition to the previous image\n\n }, {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove('prev', event);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this16 = this;\n\n var _this$props = this.props,\n animationDisabled = _this$props.animationDisabled,\n animationDuration = _this$props.animationDuration,\n clickOutsideToClose = _this$props.clickOutsideToClose,\n discourageDownloads = _this$props.discourageDownloads,\n enableZoom = _this$props.enableZoom,\n imageTitle = _this$props.imageTitle,\n nextSrc = _this$props.nextSrc,\n prevSrc = _this$props.prevSrc,\n toolbarButtons = _this$props.toolbarButtons,\n reactModalStyle = _this$props.reactModalStyle,\n _onAfterOpen = _this$props.onAfterOpen,\n imageCrossOrigin = _this$props.imageCrossOrigin,\n reactModalProps = _this$props.reactModalProps;\n var _this$state = this.state,\n zoomLevel = _this$state.zoomLevel,\n offsetX = _this$state.offsetX,\n offsetY = _this$state.offsetY,\n isClosing = _this$state.isClosing,\n loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n\n if (!animationDisabled && this.isAnimating()) {\n transitionStyle = _objectSpread({}, transitionStyle, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n } // Key endings to differentiate between images with the same src\n\n\n var keyEndings = {};\n this.getSrcTypes().forEach(function (_ref13) {\n var name = _ref13.name,\n keyEnding = _ref13.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n\n var images = [];\n\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this16.props[srcType]) {\n return;\n }\n\n var bestImageInfo = _this16.getBestImageForType(srcType);\n\n var imageStyle = _objectSpread({}, transitionStyle, ReactImageLightbox.getTransform(_objectSpread({}, transforms, bestImageInfo)));\n\n if (zoomLevel > MIN_ZOOM_LEVEL) {\n imageStyle.cursor = 'move';\n } // support IE 9 and 11\n\n\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function (key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n\n\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this16.props[srcType] + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this16.props.imageLoadErrorMessage)));\n return;\n }\n\n if (bestImageInfo === null) {\n var loadingIcon = React.createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function (_, index) {\n return React.createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this16.props[srcType] + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n\n var imageSrc = bestImageInfo.src;\n\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this16.handleImageDoubleClick,\n onWheel: _this16.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else {\n images.push(React.createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this16.handleImageDoubleClick,\n onWheel: _this16.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === 'string' ? imageTitle : translate('Image'),\n draggable: false\n })));\n }\n };\n\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n\n addImage('nextSrc', 'ril-image-next ril__imageNext', {\n x: boxSize.width\n }); // Main Image\n\n addImage('mainSrc', 'ril-image-current', {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n\n addImage('prevSrc', 'ril-image-prev ril__imagePrev', {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread({\n zIndex: 1000,\n backgroundColor: 'transparent'\n }, reactModalStyle.overlay),\n content: _objectSpread({\n backgroundColor: 'transparent',\n overflow: 'hidden',\n // Needed, otherwise keyboard shortcuts scroll the page\n border: 'none',\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return React.createElement(Modal, _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this16.outerEl.current) {\n _this16.outerEl.current.focus();\n }\n\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate('Lightbox'),\n appElement: typeof global.window !== 'undefined' ? global.window.document.body : undefined\n }, reactModalProps), React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? 'ril-closing ril__outerClosing' : ''),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? 'normal' : 'reverse'\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && React.createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n\n }), nextSrc && React.createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n\n }), React.createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, React.createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), React.createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function (button, i) {\n return React.createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n className: ['ril-zoom-in', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomInButton'].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n className: ['ril-zoom-out', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomOutButton'].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n\n })))), this.props.imageCaption && // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, React.createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }]);\n\n return ReactImageLightbox;\n}(Component);\n\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: 'Close lightbox',\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: 'Next image',\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: 'Previous image',\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: '',\n zoomInLabel: 'Zoom in',\n zoomOutLabel: 'Zoom out',\n imageLoadErrorMessage: 'This image failed to load'\n};\nexport default ReactImageLightbox;","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","import invariant from \"invariant\";\n\n////////////////////////////////////////////////////////////////////////////////\n// startsWith(string, search) - Check if `string` starts with `search`\nvar startsWith = function startsWith(string, search) {\n return string.substr(0, search.length) === search;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// pick(routes, uri)\n//\n// Ranks and picks the best route to match. Each segment gets the highest\n// amount of points, then the type of segment gets an additional amount of\n// points where\n//\n// static > dynamic > splat > root\n//\n// This way we don't have to worry about the order of our routes, let the\n// computers do it.\n//\n// A route looks like this\n//\n// { path, default, value }\n//\n// And a returned match looks like:\n//\n// { route, params, uri }\n//\n// I know, I should use TypeScript not comments for these types.\nvar pick = function pick(routes, uri) {\n var match = void 0;\n var default_ = void 0;\n\n var _uri$split = uri.split(\"?\"),\n uriPathname = _uri$split[0];\n\n var uriSegments = segmentize(uriPathname);\n var isRootUri = uriSegments[0] === \"\";\n var ranked = rankRoutes(routes);\n\n for (var i = 0, l = ranked.length; i < l; i++) {\n var missed = false;\n var route = ranked[i].route;\n\n if (route.default) {\n default_ = {\n route: route,\n params: {},\n uri: uri\n };\n continue;\n }\n\n var routeSegments = segmentize(route.path);\n var params = {};\n var max = Math.max(uriSegments.length, routeSegments.length);\n var index = 0;\n\n for (; index < max; index++) {\n var routeSegment = routeSegments[index];\n var uriSegment = uriSegments[index];\n\n if (isSplat(routeSegment)) {\n // Hit a splat, just grab the rest, and return a match\n // uri: /files/documents/work\n // route: /files/*\n var param = routeSegment.slice(1) || \"*\";\n params[param] = uriSegments.slice(index).map(decodeURIComponent).join(\"/\");\n break;\n }\n\n if (uriSegment === undefined) {\n // URI is shorter than the route, no match\n // uri: /users\n // route: /users/:userId\n missed = true;\n break;\n }\n\n var dynamicMatch = paramRe.exec(routeSegment);\n\n if (dynamicMatch && !isRootUri) {\n var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;\n !matchIsNotReserved ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" dynamic segment \\\"\" + dynamicMatch[1] + \"\\\" is a reserved name. Please use a different name in path \\\"\" + route.path + \"\\\".\") : invariant(false) : void 0;\n var value = decodeURIComponent(uriSegment);\n params[dynamicMatch[1]] = value;\n } else if (routeSegment !== uriSegment) {\n // Current segments don't match, not dynamic, not splat, so no match\n // uri: /users/123/settings\n // route: /users/:id/profile\n missed = true;\n break;\n }\n }\n\n if (!missed) {\n match = {\n route: route,\n params: params,\n uri: \"/\" + uriSegments.slice(0, index).join(\"/\")\n };\n break;\n }\n }\n\n return match || default_ || null;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// match(path, uri) - Matches just one path to a uri, also lol\nvar match = function match(path, uri) {\n return pick([{ path: path }], uri);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// resolve(to, basepath)\n//\n// Resolves URIs as though every path is a directory, no files. Relative URIs\n// in the browser can feel awkward because not only can you be \"in a directory\"\n// you can be \"at a file\", too. For example\n//\n// browserSpecResolve('foo', '/bar/') => /bar/foo\n// browserSpecResolve('foo', '/bar') => /foo\n//\n// But on the command line of a file system, it's not as complicated, you can't\n// `cd` from a file, only directories. This way, links have to know less about\n// their current path. To go deeper you can do this:\n//\n// \n// // instead of\n// \n//\n// Just like `cd`, if you want to go deeper from the command line, you do this:\n//\n// cd deeper\n// # not\n// cd $(pwd)/deeper\n//\n// By treating every path as a directory, linking to relative paths should\n// require less contextual information and (fingers crossed) be more intuitive.\nvar resolve = function resolve(to, base) {\n // /foo/bar, /baz/qux => /foo/bar\n if (startsWith(to, \"/\")) {\n return to;\n }\n\n var _to$split = to.split(\"?\"),\n toPathname = _to$split[0],\n toQuery = _to$split[1];\n\n var _base$split = base.split(\"?\"),\n basePathname = _base$split[0];\n\n var toSegments = segmentize(toPathname);\n var baseSegments = segmentize(basePathname);\n\n // ?a=b, /users?b=c => /users?a=b\n if (toSegments[0] === \"\") {\n return addQuery(basePathname, toQuery);\n }\n\n // profile, /users/789 => /users/789/profile\n if (!startsWith(toSegments[0], \".\")) {\n var pathname = baseSegments.concat(toSegments).join(\"/\");\n return addQuery((basePathname === \"/\" ? \"\" : \"/\") + pathname, toQuery);\n }\n\n // ./ /users/123 => /users/123\n // ../ /users/123 => /users\n // ../.. /users/123 => /\n // ../../one /a/b/c/d => /a/b/one\n // .././one /a/b/c/d => /a/b/c/one\n var allSegments = baseSegments.concat(toSegments);\n var segments = [];\n for (var i = 0, l = allSegments.length; i < l; i++) {\n var segment = allSegments[i];\n if (segment === \"..\") segments.pop();else if (segment !== \".\") segments.push(segment);\n }\n\n return addQuery(\"/\" + segments.join(\"/\"), toQuery);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// insertParams(path, params)\n\nvar insertParams = function insertParams(path, params) {\n var _path$split = path.split(\"?\"),\n pathBase = _path$split[0],\n _path$split$ = _path$split[1],\n query = _path$split$ === undefined ? \"\" : _path$split$;\n\n var segments = segmentize(pathBase);\n var constructedPath = \"/\" + segments.map(function (segment) {\n var match = paramRe.exec(segment);\n return match ? params[match[1]] : segment;\n }).join(\"/\");\n var _params$location = params.location;\n _params$location = _params$location === undefined ? {} : _params$location;\n var _params$location$sear = _params$location.search,\n search = _params$location$sear === undefined ? \"\" : _params$location$sear;\n\n var searchSplit = search.split(\"?\")[1] || \"\";\n constructedPath = addQuery(constructedPath, query, searchSplit);\n return constructedPath;\n};\n\nvar validateRedirect = function validateRedirect(from, to) {\n var filter = function filter(segment) {\n return isDynamic(segment);\n };\n var fromString = segmentize(from).filter(filter).sort().join(\"/\");\n var toString = segmentize(to).filter(filter).sort().join(\"/\");\n return fromString === toString;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Junk\nvar paramRe = /^:(.+)/;\n\nvar SEGMENT_POINTS = 4;\nvar STATIC_POINTS = 3;\nvar DYNAMIC_POINTS = 2;\nvar SPLAT_PENALTY = 1;\nvar ROOT_POINTS = 1;\n\nvar isRootSegment = function isRootSegment(segment) {\n return segment === \"\";\n};\nvar isDynamic = function isDynamic(segment) {\n return paramRe.test(segment);\n};\nvar isSplat = function isSplat(segment) {\n return segment && segment[0] === \"*\";\n};\n\nvar rankRoute = function rankRoute(route, index) {\n var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) {\n score += SEGMENT_POINTS;\n if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS;\n return score;\n }, 0);\n return { route: route, score: score, index: index };\n};\n\nvar rankRoutes = function rankRoutes(routes) {\n return routes.map(rankRoute).sort(function (a, b) {\n return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;\n });\n};\n\nvar segmentize = function segmentize(uri) {\n return uri\n // strip starting/ending slashes\n .replace(/(^\\/+|\\/+$)/g, \"\").split(\"/\");\n};\n\nvar addQuery = function addQuery(pathname) {\n for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n query[_key - 1] = arguments[_key];\n }\n\n query = query.filter(function (q) {\n return q && q.length > 0;\n });\n return pathname + (query && query.length > 0 ? \"?\" + query.join(\"&\") : \"\");\n};\n\nvar reservedNames = [\"uri\", \"path\"];\n\n/**\n * Shallow compares two objects.\n * @param {Object} obj1 The first object to compare.\n * @param {Object} obj2 The second object to compare.\n */\nvar shallowCompare = function shallowCompare(obj1, obj2) {\n var obj1Keys = Object.keys(obj1);\n return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) {\n return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];\n });\n};\n\n////////////////////////////////////////////////////////////////////////////////\nexport { startsWith, pick, match, resolve, insertParams, validateRedirect, shallowCompare };","'use strict';\n\nvar utils = require('../utils');\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\n\n\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = ['baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);\n var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n utils.forEach(otherKeys, mergeDeepProperties);\n return config;\n};","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\nmodule.exports = unicodeWords;\n","import React, { useMemo } from 'react';\nimport { EnrichedActivity } from 'getstream';\nimport { Thumbnail } from 'react-file-utils';\n\nimport { userOrDefault } from '../utils';\nimport { DefaultUT, DefaultAT } from '../context/StreamApp';\n\nexport type AttachedActivityProps = {\n activity: EnrichedActivity;\n};\n\nexport function AttachedActivity({\n activity: { object, verb, attachments, actor },\n}: AttachedActivityProps) {\n const images = attachments?.images ?? [];\n const user = useMemo(() => userOrDefault(actor), [actor]);\n\n if (verb !== 'repost' && verb !== 'post' && verb !== 'comment') return null;\n\n return (\n
    \n {images.length ? (\n
    \n {images.slice(0, 5).map((image, i) => (\n \n ))}\n
    \n ) : (\n \n

    \n {user.data.name}\n

    \n

    {object as string}

    \n
    \n )}\n
    \n );\n}\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n// $FlowFixMe\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n // $FlowFixMe\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n // $FlowFixMe\n return document.styleSheets[i];\n }\n }\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n function StyleSheet(options) {\n this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n var _tag = createStyleElement(this);\n\n var before;\n\n if (this.tags.length === 0) {\n before = this.before;\n } else {\n before = this.tags[this.tags.length - 1].nextSibling;\n }\n\n this.container.insertBefore(_tag, before);\n this.tags.push(_tag);\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is a really hot path\n // we check the second character first because having \"i\"\n // as the second character will happen less often than\n // having \"@\" as the first character\n var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n\n sheet.insertRule(rule, // we need to insert @import rules before anything else\n // otherwise there will be an error\n // technically this means that the @import rules will\n // _usually_(not always since there could be multiple style tags)\n // be the first ones in prod and generally later in dev\n // this shouldn't really matter in the real world though\n // @import is generally only used for font faces from google fonts and etc.\n // so while this could be technically correct then it would be slower and larger\n // for a tiny bit of correctness that won't matter in the real world\n isImportRule ? 0 : sheet.cssRules.length);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"There was a problem inserting the following rule: \\\"\" + rule + \"\\\"\", e);\n }\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n // $FlowFixMe\n this.tags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };","function stylis_min(W) {\n function M(d, c, e, h, a) {\n for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {\n g = e.charCodeAt(l);\n l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);\n\n if (0 === b + n + v + m) {\n if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {\n switch (g) {\n case 32:\n case 9:\n case 59:\n case 13:\n case 10:\n break;\n\n default:\n f += e.charAt(l);\n }\n\n g = 59;\n }\n\n switch (g) {\n case 123:\n f = f.trim();\n q = f.charCodeAt(0);\n k = 1;\n\n for (t = ++l; l < B;) {\n switch (g = e.charCodeAt(l)) {\n case 123:\n k++;\n break;\n\n case 125:\n k--;\n break;\n\n case 47:\n switch (g = e.charCodeAt(l + 1)) {\n case 42:\n case 47:\n a: {\n for (u = l + 1; u < J; ++u) {\n switch (e.charCodeAt(u)) {\n case 47:\n if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {\n l = u + 1;\n break a;\n }\n\n break;\n\n case 10:\n if (47 === g) {\n l = u + 1;\n break a;\n }\n\n }\n }\n\n l = u;\n }\n\n }\n\n break;\n\n case 91:\n g++;\n\n case 40:\n g++;\n\n case 34:\n case 39:\n for (; l++ < J && e.charCodeAt(l) !== g;) {}\n\n }\n\n if (0 === k) break;\n l++;\n }\n\n k = e.substring(t, l);\n 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));\n\n switch (q) {\n case 64:\n 0 < r && (f = f.replace(N, ''));\n g = f.charCodeAt(1);\n\n switch (g) {\n case 100:\n case 109:\n case 115:\n case 45:\n r = c;\n break;\n\n default:\n r = O;\n }\n\n k = M(c, r, k, g, a + 1);\n t = k.length;\n 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));\n if (0 < t) switch (g) {\n case 115:\n f = f.replace(da, ea);\n\n case 100:\n case 109:\n case 45:\n k = f + '{' + k + '}';\n break;\n\n case 107:\n f = f.replace(fa, '$1 $2');\n k = f + '{' + k + '}';\n k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;\n break;\n\n default:\n k = f + k, 112 === h && (k = (p += k, ''));\n } else k = '';\n break;\n\n default:\n k = M(c, X(c, f, I), k, h, a + 1);\n }\n\n F += k;\n k = I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n break;\n\n case 125:\n case 59:\n f = (0 < r ? f.replace(N, '') : f).trim();\n if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\\x00\\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {\n case 0:\n break;\n\n case 64:\n if (105 === g || 99 === g) {\n G += f + e.charAt(l);\n break;\n }\n\n default:\n 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));\n }\n I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n }\n }\n\n switch (g) {\n case 13:\n case 10:\n 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\\x00');\n 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);\n z = 1;\n D++;\n break;\n\n case 59:\n case 125:\n if (0 === b + n + v + m) {\n z++;\n break;\n }\n\n default:\n z++;\n y = e.charAt(l);\n\n switch (g) {\n case 9:\n case 32:\n if (0 === n + m + b) switch (x) {\n case 44:\n case 58:\n case 9:\n case 32:\n y = '';\n break;\n\n default:\n 32 !== g && (y = ' ');\n }\n break;\n\n case 0:\n y = '\\\\0';\n break;\n\n case 12:\n y = '\\\\f';\n break;\n\n case 11:\n y = '\\\\v';\n break;\n\n case 38:\n 0 === n + b + m && (r = I = 1, y = '\\f' + y);\n break;\n\n case 108:\n if (0 === n + b + m + E && 0 < u) switch (l - u) {\n case 2:\n 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);\n\n case 8:\n 111 === K && (E = K);\n }\n break;\n\n case 58:\n 0 === n + b + m && (u = l);\n break;\n\n case 44:\n 0 === b + v + n + m && (r = 1, y += '\\r');\n break;\n\n case 34:\n case 39:\n 0 === b && (n = n === g ? 0 : 0 === n ? g : n);\n break;\n\n case 91:\n 0 === n + b + v && m++;\n break;\n\n case 93:\n 0 === n + b + v && m--;\n break;\n\n case 41:\n 0 === n + b + m && v--;\n break;\n\n case 40:\n if (0 === n + b + m) {\n if (0 === q) switch (2 * x + 3 * K) {\n case 533:\n break;\n\n default:\n q = 1;\n }\n v++;\n }\n\n break;\n\n case 64:\n 0 === b + v + n + m + u + k && (k = 1);\n break;\n\n case 42:\n case 47:\n if (!(0 < n + m + v)) switch (b) {\n case 0:\n switch (2 * g + 3 * e.charCodeAt(l + 1)) {\n case 235:\n b = 47;\n break;\n\n case 220:\n t = l, b = 42;\n }\n\n break;\n\n case 42:\n 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);\n }\n }\n\n 0 === b && (f += y);\n }\n\n K = x;\n x = g;\n l++;\n }\n\n t = p.length;\n\n if (0 < t) {\n r = c;\n if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;\n p = r.join(',') + '{' + p + '}';\n\n if (0 !== w * E) {\n 2 !== w || L(p, 2) || (E = 0);\n\n switch (E) {\n case 111:\n p = p.replace(ha, ':-moz-$1') + p;\n break;\n\n case 112:\n p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;\n }\n\n E = 0;\n }\n }\n\n return G + p + F;\n }\n\n function X(d, c, e) {\n var h = c.trim().split(ia);\n c = h;\n var a = h.length,\n m = d.length;\n\n switch (m) {\n case 0:\n case 1:\n var b = 0;\n\n for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {\n c[b] = Z(d, c[b], e).trim();\n }\n\n break;\n\n default:\n var v = b = 0;\n\n for (c = []; b < a; ++b) {\n for (var n = 0; n < m; ++n) {\n c[v++] = Z(d[n] + ' ', h[b], e).trim();\n }\n }\n\n }\n\n return c;\n }\n\n function Z(d, c, e) {\n var h = c.charCodeAt(0);\n 33 > h && (h = (c = c.trim()).charCodeAt(0));\n\n switch (h) {\n case 38:\n return c.replace(F, '$1' + d.trim());\n\n case 58:\n return d.trim() + c.replace(F, '$1' + d.trim());\n\n default:\n if (0 < 1 * e && 0 < c.indexOf('\\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());\n }\n\n return d + c;\n }\n\n function P(d, c, e, h) {\n var a = d + ';',\n m = 2 * c + 3 * e + 4 * h;\n\n if (944 === m) {\n d = a.indexOf(':', 9) + 1;\n var b = a.substring(d, a.length - 1).trim();\n b = a.substring(0, d).trim() + b + ';';\n return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;\n }\n\n if (0 === w || 2 === w && !L(a, 1)) return a;\n\n switch (m) {\n case 1015:\n return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;\n\n case 951:\n return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;\n\n case 963:\n return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;\n\n case 1009:\n if (100 !== a.charCodeAt(4)) break;\n\n case 969:\n case 942:\n return '-webkit-' + a + a;\n\n case 978:\n return '-webkit-' + a + '-moz-' + a + a;\n\n case 1019:\n case 983:\n return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;\n\n case 883:\n if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;\n if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;\n break;\n\n case 932:\n if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {\n case 103:\n return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;\n\n case 115:\n return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;\n\n case 98:\n return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;\n }\n return '-webkit-' + a + '-ms-' + a + a;\n\n case 964:\n return '-webkit-' + a + '-ms-flex-' + a + a;\n\n case 1023:\n if (99 !== a.charCodeAt(8)) break;\n b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');\n return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;\n\n case 1005:\n return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;\n\n case 1e3:\n b = a.substring(13).trim();\n c = b.indexOf('-') + 1;\n\n switch (b.charCodeAt(0) + b.charCodeAt(c)) {\n case 226:\n b = a.replace(G, 'tb');\n break;\n\n case 232:\n b = a.replace(G, 'tb-rl');\n break;\n\n case 220:\n b = a.replace(G, 'lr');\n break;\n\n default:\n return a;\n }\n\n return '-webkit-' + a + '-ms-' + b + a;\n\n case 1017:\n if (-1 === a.indexOf('sticky', 9)) break;\n\n case 975:\n c = (a = d).length - 10;\n b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();\n\n switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {\n case 203:\n if (111 > b.charCodeAt(8)) break;\n\n case 115:\n a = a.replace(b, '-webkit-' + b) + ';' + a;\n break;\n\n case 207:\n case 102:\n a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;\n }\n\n return a + ';';\n\n case 938:\n if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {\n case 105:\n return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;\n\n case 115:\n return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;\n\n default:\n return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;\n }\n break;\n\n case 973:\n case 989:\n if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;\n\n case 931:\n case 953:\n if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;\n break;\n\n case 962:\n if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;\n }\n\n return a;\n }\n\n function L(d, c) {\n var e = d.indexOf(1 === c ? ':' : '{'),\n h = d.substring(0, 3 !== c ? e : 10);\n e = d.substring(e + 1, d.length - 1);\n return R(2 !== c ? h : h.replace(na, '$1'), e, c);\n }\n\n function ea(d, c) {\n var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));\n return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';\n }\n\n function H(d, c, e, h, a, m, b, v, n, q) {\n for (var g = 0, x = c, w; g < A; ++g) {\n switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {\n case void 0:\n case !1:\n case !0:\n case null:\n break;\n\n default:\n x = w;\n }\n }\n\n if (x !== c) return x;\n }\n\n function T(d) {\n switch (d) {\n case void 0:\n case null:\n A = S.length = 0;\n break;\n\n default:\n if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {\n T(d[c]);\n } else Y = !!d | 0;\n }\n\n return T;\n }\n\n function U(d) {\n d = d.prefix;\n void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);\n return U;\n }\n\n function B(d, c) {\n var e = d;\n 33 > e.charCodeAt(0) && (e = e.trim());\n V = e;\n e = [V];\n\n if (0 < A) {\n var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);\n void 0 !== h && 'string' === typeof h && (c = h);\n }\n\n var a = M(O, e, c, 0, 0);\n 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));\n V = '';\n E = 0;\n z = D = 1;\n return a;\n }\n\n var ca = /^\\0+/g,\n N = /[\\0\\r\\f]/g,\n aa = /: */g,\n ka = /zoo|gra/,\n ma = /([,: ])(transform)/g,\n ia = /,\\r+?/g,\n F = /([\\t\\r\\n ])*\\f?&/g,\n fa = /@(k\\w+)\\s*(\\S*)\\s*/,\n Q = /::(place)/g,\n ha = /:(read-only)/g,\n G = /[svh]\\w+-[tblr]{2}/,\n da = /\\(\\s*(.*)\\s*\\)/g,\n oa = /([\\s\\S]*?);/g,\n ba = /-self|flex-/g,\n na = /[^]*?(:[rp][el]a[\\w-]+)[^]*/,\n la = /stretch|:\\s*\\w+\\-(?:conte|avail)/,\n ja = /([^-])(image-set\\()/,\n z = 1,\n D = 1,\n E = 0,\n w = 1,\n O = [],\n S = [],\n A = 0,\n R = null,\n Y = 0,\n V = '';\n B.use = T;\n B.set = U;\n void 0 !== W && U(W);\n return B;\n}\n\nexport default stylis_min;","import { StyleSheet } from '@emotion/sheet';\nimport Stylis from '@emotion/stylis';\nimport '@emotion/weak-memoize'; // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet\n// inlined to avoid umd wrapper and peerDep warnings/installing stylis\n// since we use stylis after closure compiler\n\nvar delimiter = '/*|*/';\nvar needle = delimiter + '}';\n\nfunction toSheet(block) {\n if (block) {\n Sheet.current.insert(block + '}');\n }\n}\n\nvar Sheet = {\n current: null\n};\n\nvar ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {\n switch (context) {\n // property\n case 1:\n {\n switch (content.charCodeAt(0)) {\n case 64:\n {\n // @import\n Sheet.current.insert(content + ';');\n return '';\n }\n // charcode for l\n\n case 108:\n {\n // charcode for b\n // this ignores label\n if (content.charCodeAt(2) === 98) {\n return '';\n }\n }\n }\n\n break;\n }\n // selector\n\n case 2:\n {\n if (ns === 0) return content + delimiter;\n break;\n }\n // at-rule\n\n case 3:\n {\n switch (ns) {\n // @font-face, @page\n case 102:\n case 112:\n {\n Sheet.current.insert(selectors[0] + content);\n return '';\n }\n\n default:\n {\n return content + (at === 0 ? delimiter : '');\n }\n }\n }\n\n case -2:\n {\n content.split(needle).forEach(toSheet);\n }\n }\n};\n\nvar createCache = function createCache(options) {\n if (options === undefined) options = {};\n var key = options.key || 'css';\n var stylisOptions;\n\n if (options.prefix !== undefined) {\n stylisOptions = {\n prefix: options.prefix\n };\n }\n\n var stylis = new Stylis(stylisOptions);\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var inserted = {}; // $FlowFixMe\n\n var container;\n {\n container = options.container || document.head;\n var nodes = document.querySelectorAll(\"style[data-emotion-\" + key + \"]\");\n Array.prototype.forEach.call(nodes, function (node) {\n var attrib = node.getAttribute(\"data-emotion-\" + key); // $FlowFixMe\n\n attrib.split(' ').forEach(function (id) {\n inserted[id] = true;\n });\n\n if (node.parentNode !== container) {\n container.appendChild(node);\n }\n });\n }\n\n var _insert;\n\n {\n stylis.use(options.stylisPlugins)(ruleSheet);\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n var name = serialized.name;\n Sheet.current = sheet;\n\n if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {\n var map = serialized.map;\n Sheet.current = {\n insert: function insert(rule) {\n sheet.insert(rule + map);\n }\n };\n }\n\n stylis(selector, serialized.styles);\n\n if (shouldCache) {\n cache.inserted[name] = true;\n }\n };\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a\n var commentStart = /\\/\\*/g;\n var commentEnd = /\\*\\//g;\n stylis.use(function (context, content) {\n switch (context) {\n case -1:\n {\n while (commentStart.test(content)) {\n commentEnd.lastIndex = commentStart.lastIndex;\n\n if (commentEnd.test(content)) {\n commentStart.lastIndex = commentEnd.lastIndex;\n continue;\n }\n\n throw new Error('Your styles have an unterminated comment (\"/*\" without corresponding \"*/\").');\n }\n\n commentStart.lastIndex = 0;\n break;\n }\n }\n });\n stylis.use(function (context, content, selectors) {\n switch (context) {\n case -1:\n {\n var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';\n var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);\n\n if (unsafePseudoClasses && cache.compat !== true) {\n unsafePseudoClasses.forEach(function (unsafePseudoClass) {\n var ignoreRegExp = new RegExp(unsafePseudoClass + \".*\\\\/\\\\* \" + flag + \" \\\\*\\\\/\");\n var ignore = ignoreRegExp.test(content);\n\n if (unsafePseudoClass && !ignore) {\n console.error(\"The pseudo class \\\"\" + unsafePseudoClass + \"\\\" is potentially unsafe when doing server-side rendering. Try changing it to \\\"\" + unsafePseudoClass.split('-child')[0] + \"-of-type\\\".\");\n }\n });\n }\n\n break;\n }\n }\n });\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n return cache;\n};\n\nexport default createCache;","var isBrowser = \"object\" !== 'undefined';\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className]);\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\n\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n var maybeStyles = cache.insert(\".\" + className, current, cache.sheet, true);\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles };","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport default murmur2;","var unitlessKeys = {\n animationIterationCount: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\nexport default unitlessKeys;","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\nvar UNDEFINED_AS_OBJECT_KEY_ERROR = \"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\";\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nif (process.env.NODE_ENV !== 'production') {\n var contentValuePattern = /(attr|calc|counters?|url)\\(/;\n var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n var msPattern = /^-ms-/;\n var hyphenPattern = /-(.)/g;\n var hyphenatedCache = {};\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n console.error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n var processed = oldProcessStyleValue(key, value);\n\n if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {\n hyphenatedCache[key] = true;\n console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \" + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {\n return _char.toUpperCase();\n }) + \"?\");\n }\n\n return processed;\n };\n}\n\nvar shouldWarnAboutInterpolatingClassNameFromCss = true;\n\nfunction handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {\n if (interpolation == null) {\n return '';\n }\n\n if (interpolation.__emotion_styles !== undefined) {\n if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n return interpolation;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n if (interpolation.anim === 1) {\n cursor = {\n name: interpolation.name,\n styles: interpolation.styles,\n next: cursor\n };\n return interpolation.name;\n }\n\n if (interpolation.styles !== undefined) {\n var next = interpolation.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = interpolation.styles + \";\";\n\n if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {\n styles += interpolation.map;\n }\n\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Functions that are interpolated in css calls will be stringified.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n break;\n }\n\n case 'string':\n if (process.env.NODE_ENV !== 'production') {\n var matched = [];\n var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {\n var fakeVarName = \"animation\" + matched.length;\n matched.push(\"const \" + fakeVarName + \" = keyframes`\" + p2.replace(/^@keyframes animation-\\w+/, '') + \"`\");\n return \"${\" + fakeVarName + \"}\";\n });\n\n if (matched.length) {\n console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\n' + 'Instead of doing this:\\n\\n' + [].concat(matched, [\"`\" + replaced + \"`\"]).join('\\n') + '\\n\\nYou should wrap it with `css` like this:\\n\\n' + (\"css`\" + replaced + \"`\"));\n }\n }\n\n break;\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n if (registered == null) {\n return interpolation;\n }\n\n var cached = registered[interpolation];\n\n if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {\n console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');\n shouldWarnAboutInterpolatingClassNameFromCss = false;\n }\n\n return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i], false);\n }\n } else {\n for (var _key in obj) {\n var value = obj[_key];\n\n if (typeof value !== 'object') {\n if (registered != null && registered[value] !== undefined) {\n string += _key + \"{\" + registered[value] + \"}\";\n } else if (isProcessableValue(value)) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value) + \";\";\n }\n } else {\n if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value, false);\n\n switch (_key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(_key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {\n console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);\n }\n\n string += _key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*;/g;\nvar sourceMapPattern;\n\nif (process.env.NODE_ENV !== 'production') {\n sourceMapPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//;\n} // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\n\nvar cursor;\n\nvar serializeStyles = function serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings, false);\n } else {\n if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);\n\n if (stringMode) {\n if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[i];\n }\n }\n\n var sourceMap;\n\n if (process.env.NODE_ENV !== 'production') {\n styles = styles.replace(sourceMapPattern, function (match) {\n sourceMap = match;\n return '';\n });\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + // $FlowFixMe we know it's not null\n match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)\n return {\n name: name,\n styles: styles,\n map: sourceMap,\n next: cursor,\n toString: function toString() {\n return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";\n }\n };\n }\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n};\n\nexport { serializeStyles };","import '@babel/runtime/helpers/inheritsLoose';\nimport { createContext, forwardRef, createElement } from 'react';\nimport createCache from '@emotion/cache';\nimport { getRegisteredStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar EmotionCacheContext = /*#__PURE__*/createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? createCache() : null);\nvar ThemeContext = /*#__PURE__*/createContext({});\nvar CacheProvider = EmotionCacheContext.Provider;\n\nvar withEmotionCache = function withEmotionCache(func) {\n var render = function render(props, ref) {\n return /*#__PURE__*/createElement(EmotionCacheContext.Consumer, null, function (cache) {\n return func(props, cache, ref);\n });\n }; // $FlowFixMe\n\n\n return /*#__PURE__*/forwardRef(render);\n}; // thus we only need to replace what is a valid character for JS, but not for CSS\n\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n return identifier.replace(/\\$/g, '-');\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\n\nvar createEmotionProps = function createEmotionProps(type, props) {\n if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration\n props.css.indexOf(':') !== -1) {\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`\" + props.css + \"`\");\n }\n\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key)) {\n newProps[key] = props[key];\n }\n }\n\n newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions\n\n if (process.env.NODE_ENV !== 'production') {\n var error = new Error();\n\n if (error.stack) {\n // chrome\n var match = error.stack.match(/at (?:Object\\.|Module\\.|)(?:jsx|createEmotionProps).*\\n\\s+at (?:Object\\.|)([A-Z][A-Za-z$]+) /);\n\n if (!match) {\n // safari and firefox\n match = error.stack.match(/.*\\n([A-Z][A-Za-z$]+)@/);\n }\n\n if (match) {\n newProps[labelPropName] = sanitizeIdentifier(match[1]);\n }\n }\n }\n\n return newProps;\n};\n\nvar render = function render(cache, props, theme, ref) {\n var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var type = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles);\n\n if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {\n var labelFromStack = props[labelPropName];\n\n if (labelFromStack) {\n serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n }\n }\n\n var rules = insertStyles(cache, serialized, typeof type === 'string');\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {\n newProps[key] = props[key];\n }\n }\n\n newProps.ref = ref;\n newProps.className = className;\n var ele = /*#__PURE__*/createElement(type, newProps);\n return ele;\n}; // eslint-disable-next-line no-undef\n\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n if (typeof props.css === 'function') {\n return /*#__PURE__*/createElement(ThemeContext.Consumer, null, function (theme) {\n return render(cache, props, theme, ref);\n });\n }\n\n return render(cache, props, null, ref);\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nexport { CacheProvider as C, Emotion as E, ThemeContext as T, createEmotionProps as c, hasOwnProperty as h, withEmotionCache as w };","import { serializeStyles } from '@emotion/serialize';\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nexport default css;","import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { createElement, Component } from 'react';\nimport '@emotion/cache';\nimport { h as hasOwnProperty, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext } from './emotion-element-57a3a7a3.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, w as withEmotionCache } from './emotion-element-57a3a7a3.browser.esm.js';\nimport { insertStyles, getRegisteredStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { StyleSheet } from '@emotion/sheet';\nimport css from '@emotion/css';\nexport { default as css } from '@emotion/css';\n\nvar jsx = function jsx(type, props) {\n var args = arguments;\n\n if (props == null || !hasOwnProperty.call(props, 'css')) {\n // $FlowFixMe\n return createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n } // $FlowFixMe\n\n\n return createElement.apply(null, createElementArgArray);\n};\n\nvar warnedAboutCssPropForGlobal = false;\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // $FlowFixMe I don't really want to add it to the type since it shouldn't be used\n props.className || props.css)) {\n console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n warnedAboutCssPropForGlobal = true;\n }\n\n var styles = props.styles;\n\n if (typeof styles === 'function') {\n return /*#__PURE__*/createElement(ThemeContext.Consumer, null, function (theme) {\n var serialized = serializeStyles([styles(theme)]);\n return /*#__PURE__*/createElement(InnerGlobal, {\n serialized: serialized,\n cache: cache\n });\n });\n }\n\n var serialized = serializeStyles([styles]);\n return /*#__PURE__*/createElement(InnerGlobal, {\n serialized: serialized,\n cache: cache\n });\n}); // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar InnerGlobal = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(InnerGlobal, _React$Component);\n\n function InnerGlobal(props, context, updater) {\n return _React$Component.call(this, props, context, updater) || this;\n }\n\n var _proto = InnerGlobal.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.sheet = new StyleSheet({\n key: this.props.cache.key + \"-global\",\n nonce: this.props.cache.sheet.nonce,\n container: this.props.cache.sheet.container\n }); // $FlowFixMe\n\n var node = document.querySelector(\"style[data-emotion-\" + this.props.cache.key + \"=\\\"\" + this.props.serialized.name + \"\\\"]\");\n\n if (node !== null) {\n this.sheet.tags.push(node);\n }\n\n if (this.props.cache.sheet.tags.length) {\n this.sheet.before = this.props.cache.sheet.tags[0];\n }\n\n this.insertStyles();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (prevProps.serialized.name !== this.props.serialized.name) {\n this.insertStyles();\n }\n };\n\n _proto.insertStyles = function insertStyles$1() {\n if (this.props.serialized.next !== undefined) {\n // insert keyframes\n insertStyles(this.props.cache, this.props.serialized.next, true);\n }\n\n if (this.sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;\n this.sheet.before = element;\n this.sheet.flush();\n }\n\n this.props.cache.insert(\"\", this.props.serialized, this.sheet, false);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.sheet.flush();\n };\n\n _proto.render = function render() {\n return null;\n };\n\n return InnerGlobal;\n}(Component);\n\nvar keyframes = function keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name; // $FlowFixMe\n\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n};\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar ClassNames = withEmotionCache(function (props, context) {\n return /*#__PURE__*/createElement(ThemeContext.Consumer, null, function (theme) {\n var hasRendered = false;\n\n var css = function css() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, context.registered);\n {\n insertStyles(context, serialized, false);\n }\n return context.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(context.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: theme\n };\n var ele = props.children(content);\n hasRendered = true;\n return ele;\n });\n});\nexport { ClassNames, Global, jsx as createElement, jsx, keyframes };","'use strict';\n\nvar createError = require('./createError');\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\n\n\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));\n }\n};","import { Playground, Props } from 'docz';\nimport { CommentItem } from \"../../../../../src/components/CommentItem\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n CommentItem,\n React\n};","import React, { useEffect } from 'react';\nimport { EnrichedReaction, UR, Reaction, EnrichedActivity } from 'getstream';\n\nimport { DefaultAT, DefaultUT } from '../context/StreamApp';\nimport { ReactionToggleIcon } from './ReactionToggleIcon';\nimport { ThumbsUpIcon, Color } from './Icons';\nimport { useFeedContext } from '../context';\n\nexport type LikeButtonProps<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n> = {\n /** The activity received from stream that should be liked when pressing the LikeButton. */\n activity?: EnrichedActivity;\n /** The reaction received from stream that should be liked when pressing the LikeButton. */\n reaction?: EnrichedReaction;\n /** onAddReaction supports targetFeeds that you can use to send a notification to the post owner like [\"notification:USER_ID\"] */\n targetFeeds?: string[];\n};\n\nexport const LikeButton = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>({\n activity,\n reaction,\n targetFeeds,\n}: LikeButtonProps) => {\n const feed = useFeedContext();\n\n useEffect(() => {\n if (!reaction && !activity) console.warn('LikeButton requires an activity or reaction to work properly');\n if (reaction && activity) console.warn('LikeButton requires only one of the activity or reaction to work properly');\n }, []);\n\n return (\n {\n if (reaction) return feed.onToggleChildReaction('like', reaction as Reaction, {} as CRT, { targetFeeds });\n if (activity) return feed.onToggleReaction('like', activity, {} as RT, { targetFeeds });\n return Promise.resolve();\n }}\n activeIcon={}\n inactiveIcon={}\n labelSingle=\"like\"\n labelPlural=\"likes\"\n />\n );\n};\n","'use strict';\n\nmodule.exports = {\n isURI: function isURI(uri) {\n return uri && uri.protocol && uri.host && uri.path;\n },\n isSameOrigin: function isSameOrigin(uri) {\n return uri.protocol === location.protocol && uri.hostname === location.hostname && uri.port === location.port;\n },\n parse: function parse(url) {\n if (typeof url !== 'string') return url;\n var uri = {},\n parts,\n query,\n pairs,\n i,\n n,\n data;\n\n var consume = function consume(name, pattern) {\n url = url.replace(pattern, function (match) {\n uri[name] = match;\n return '';\n });\n uri[name] = uri[name] || '';\n };\n\n consume('protocol', /^[a-z]+\\:/i);\n consume('host', /^\\/\\/[^\\/\\?#]+/);\n if (!/^\\//.test(url) && !uri.host) url = location.pathname.replace(/[^\\/]*$/, '') + url;\n consume('pathname', /^[^\\?#]*/);\n consume('search', /^\\?[^#]*/);\n consume('hash', /^#.*/);\n uri.protocol = uri.protocol || location.protocol;\n\n if (uri.host) {\n uri.host = uri.host.substr(2);\n\n if (/@/.test(uri.host)) {\n uri.auth = uri.host.split('@')[0];\n uri.host = uri.host.split('@')[1];\n }\n\n parts = uri.host.match(/^\\[([^\\]]+)\\]|^[^:]+/);\n uri.hostname = parts[1] || parts[0];\n uri.port = (uri.host.match(/:(\\d+)$/) || [])[1] || '';\n } else {\n uri.host = location.host;\n uri.hostname = location.hostname;\n uri.port = location.port;\n }\n\n uri.pathname = uri.pathname || '/';\n uri.path = uri.pathname + uri.search;\n query = uri.search.replace(/^\\?/, '');\n pairs = query ? query.split('&') : [];\n data = {};\n\n for (i = 0, n = pairs.length; i < n; i++) {\n parts = pairs[i].split('=');\n data[decodeURIComponent(parts[0] || '')] = decodeURIComponent(parts[1] || '');\n }\n\n uri.query = data;\n uri.href = this.stringify(uri);\n return uri;\n },\n stringify: function stringify(uri) {\n var auth = uri.auth ? uri.auth + '@' : '',\n string = uri.protocol + '//' + auth + uri.host;\n string += uri.pathname + this.queryString(uri.query) + (uri.hash || '');\n return string;\n },\n queryString: function queryString(query) {\n var pairs = [];\n\n for (var key in query) {\n if (!query.hasOwnProperty(key)) continue;\n pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(query[key]));\n }\n\n if (pairs.length === 0) return '';\n return '?' + pairs.join('&');\n }\n};","import { Playground, Props } from 'docz';\nimport { RepostButton } from \"../../../../../src/components/RepostButton\";\nimport { Activity } from \"../../../../../src/components/Activity\";\nimport { FlatFeed } from \"../../../../../src/components/FlatFeed\";\nimport { WithExampleStreamApp } from \"../../../../../src/components/docz\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n RepostButton,\n Activity,\n FlatFeed,\n WithExampleStreamApp,\n React\n};","/*\n * JavaScript Load Image IPTC Map\n * https://github.com/blueimp/JavaScript-Load-Image\n *\n * Copyright 2013, Sebastian Tschan\n * Copyright 2018, Dave Bevan\n *\n * IPTC tags mapping based on\n * https://iptc.org/standards/photo-metadata\n * https://exiftool.org/TagNames/IPTC.html\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n */\n\n/* global define, module, require */\n;\n\n(function (factory) {\n 'use strict';\n\n if (typeof define === 'function' && define.amd) {\n // Register as an anonymous AMD module:\n define(['./load-image', './load-image-iptc'], factory);\n } else if (typeof module === 'object' && module.exports) {\n factory(require('./load-image'), require('./load-image-iptc'));\n } else {\n // Browser globals:\n factory(window.loadImage);\n }\n})(function (loadImage) {\n 'use strict';\n\n var IptcMapProto = loadImage.IptcMap.prototype;\n IptcMapProto.tags = {\n 0: 'ApplicationRecordVersion',\n 3: 'ObjectTypeReference',\n 4: 'ObjectAttributeReference',\n 5: 'ObjectName',\n 7: 'EditStatus',\n 8: 'EditorialUpdate',\n 10: 'Urgency',\n 12: 'SubjectReference',\n 15: 'Category',\n 20: 'SupplementalCategories',\n 22: 'FixtureIdentifier',\n 25: 'Keywords',\n 26: 'ContentLocationCode',\n 27: 'ContentLocationName',\n 30: 'ReleaseDate',\n 35: 'ReleaseTime',\n 37: 'ExpirationDate',\n 38: 'ExpirationTime',\n 40: 'SpecialInstructions',\n 42: 'ActionAdvised',\n 45: 'ReferenceService',\n 47: 'ReferenceDate',\n 50: 'ReferenceNumber',\n 55: 'DateCreated',\n 60: 'TimeCreated',\n 62: 'DigitalCreationDate',\n 63: 'DigitalCreationTime',\n 65: 'OriginatingProgram',\n 70: 'ProgramVersion',\n 75: 'ObjectCycle',\n 80: 'Byline',\n 85: 'BylineTitle',\n 90: 'City',\n 92: 'Sublocation',\n 95: 'State',\n 100: 'CountryCode',\n 101: 'Country',\n 103: 'OriginalTransmissionReference',\n 105: 'Headline',\n 110: 'Credit',\n 115: 'Source',\n 116: 'CopyrightNotice',\n 118: 'Contact',\n 120: 'Caption',\n 121: 'LocalCaption',\n 122: 'Writer',\n 125: 'RasterizedCaption',\n 130: 'ImageType',\n 131: 'ImageOrientation',\n 135: 'LanguageIdentifier',\n 150: 'AudioType',\n 151: 'AudioSamplingRate',\n 152: 'AudioSamplingResolution',\n 153: 'AudioDuration',\n 154: 'AudioOutcue',\n 184: 'JobID',\n 185: 'MasterDocumentID',\n 186: 'ShortDocumentID',\n 187: 'UniqueDocumentID',\n 188: 'OwnerID',\n 200: 'ObjectPreviewFileFormat',\n 201: 'ObjectPreviewFileVersion',\n 202: 'ObjectPreviewData',\n 221: 'Prefs',\n 225: 'ClassifyState',\n 228: 'SimilarityIndex',\n 230: 'DocumentNotes',\n 231: 'DocumentHistory',\n 232: 'ExifCameraInfo',\n 255: 'CatalogSets'\n };\n IptcMapProto.stringValues = {\n 10: {\n 0: '0 (reserved)',\n 1: '1 (most urgent)',\n 2: '2',\n 3: '3',\n 4: '4',\n 5: '5 (normal urgency)',\n 6: '6',\n 7: '7',\n 8: '8 (least urgent)',\n 9: '9 (user-defined priority)'\n },\n 75: {\n a: 'Morning',\n b: 'Both Morning and Evening',\n p: 'Evening'\n },\n 131: {\n L: 'Landscape',\n P: 'Portrait',\n S: 'Square'\n }\n };\n\n IptcMapProto.getText = function (id) {\n var value = this.get(id);\n var tagCode = this.map[id];\n var stringValue = this.stringValues[tagCode];\n if (stringValue) return stringValue[value];\n return String(value);\n };\n\n IptcMapProto.getAll = function () {\n var map = {};\n var prop;\n var name;\n\n for (prop in this) {\n if (Object.prototype.hasOwnProperty.call(this, prop)) {\n name = this.tags[prop];\n if (name) map[name] = this.getText(name);\n }\n }\n\n return map;\n };\n\n IptcMapProto.getName = function (tagCode) {\n return this.tags[tagCode];\n } // Extend the map of tag names to tag codes:\n ;\n\n (function () {\n var tags = IptcMapProto.tags;\n var map = IptcMapProto.map || {};\n var prop; // Map the tag names to tags:\n\n for (prop in tags) {\n if (Object.prototype.hasOwnProperty.call(tags, prop)) {\n map[tags[prop]] = Number(prop);\n }\n }\n })();\n});","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","import { Playground } from 'docz';\nimport { AvatarIcon, EmojiIcon, CommentIcon, ThumbsUpIcon, RepostIcon, Color } from \"../../../../../src/components/Icons\";\nimport * as React from 'react';\nexport default {\n Playground,\n AvatarIcon,\n EmojiIcon,\n CommentIcon,\n ThumbsUpIcon,\n RepostIcon,\n Color,\n React\n};","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","'use strict';\n\nvar utils = require('./utils');\n\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {\n return data;\n }\n\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) {\n /* Ignore */\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n maxBodyLength: -1,\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\nmodule.exports = defaults;","import React, { useRef, useState, useEffect, SyntheticEvent } from 'react';\nimport { IconButton } from 'react-file-utils';\n\nexport const Dropdown = ({ children }: { children?: React.ReactNode }) => {\n const [isOpen, setIsOpen] = useState(false);\n const dropdownBoxReference = useRef(null);\n\n const changeMenuVisibility = ({ target }: Event | SyntheticEvent) => {\n if (dropdownBoxReference.current?.contains(target as Element)) return;\n setIsOpen((pv) => !pv);\n };\n\n useEffect(() => {\n if (!isOpen) return;\n\n document.addEventListener('click', changeMenuVisibility);\n\n return () => document.removeEventListener('click', changeMenuVisibility);\n }, [isOpen]);\n\n return (\n
    \n \n \n \n \n \n\n {isOpen && (\n
    \n {children}\n
    \n )}\n
    \n );\n};\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\n/* global Reflect, Promise */\nvar _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nvar _assign = function __assign() {\n _assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return _assign.apply(this, arguments);\n};\n\nexport { _assign as __assign };\nexport function __rest(s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nexport function __param(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nexport function __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nexport var __createBinding = Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function get() {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nexport function __exportStar(m, o) {\n for (var p in m) {\n if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n }\n}\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n}\n/** @deprecated */\n\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n}\n/** @deprecated */\n\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) {\n s += arguments[i].length;\n }\n\n for (var r = Array(s), k = 0, i = 0; i < il; i++) {\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {\n r[k] = a[j];\n }\n }\n\n return r;\n}\nexport function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {\n to[j] = from[i];\n }\n\n return to;\n}\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []),\n i,\n q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i;\n\n function verb(n) {\n if (g[n]) i[n] = function (v) {\n return new Promise(function (a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n }\n\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n\n function fulfill(value) {\n resume(\"next\", value);\n }\n\n function reject(value) {\n resume(\"throw\", value);\n }\n\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function () {\n return this;\n }, i;\n\n function verb(n, f) {\n i[n] = o[n] ? function (v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: n === \"return\"\n } : f ? f(v) : v;\n } : f;\n }\n}\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator],\n i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i);\n\n function verb(n) {\n i[n] = o[n] && function (v) {\n return new Promise(function (resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function (v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n\n return cooked;\n}\n;\n\nvar __setModuleDefault = Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n }\n\n __setModuleDefault(result, mod);\n\n return result;\n}\nexport function __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","import React, { SyntheticEvent } from 'react';\nimport { EnrichedActivity, EnrichedUser, NotificationActivityEnriched, UR } from 'getstream';\nimport { TFunction } from 'i18next';\n\nimport { Avatar } from './Avatar';\nimport { AvatarGroup } from './AvatarGroup';\nimport { AttachedActivity } from './AttachedActivity';\nimport { Dropdown } from './Dropdown';\nimport { Link } from './Link';\nimport { humanizeTimestamp, useOnClickUser, userOrDefault, OnClickUserHandler } from '../utils';\nimport { DefaultUT, DefaultAT, useTranslationContext, FeedManager } from '../context';\n\nexport type NotificationProps<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n> = {\n /** The activity group to display in this notification */\n activityGroup: NotificationActivityEnriched;\n /** Callback to call when clicking on a notification */\n onClickNotification?: (activityGroup: NotificationActivityEnriched) => void;\n /** Callback to call when clicking on a user in the notification */\n onClickUser?: OnClickUserHandler;\n /** Callback to mark a notification as read, if not supplied the dropdown used to mark as read will not be shown */\n onMarkAsRead?: FeedManager['onMarkAsRead'];\n};\n\nconst getUsers = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n>(\n activities: Array>,\n) => activities.map((item) => userOrDefault(item.actor));\n\nconst getHeaderText = (t: TFunction, activitiesLen: number, verb: string, actorName: string, activityVerb: string) => {\n if (activitiesLen === 1) {\n switch (verb) {\n case 'like':\n return t('{{ actorName }} liked your {{ activityVerb }}', { actorName, activityVerb });\n case 'repost':\n return t('{{ actorName }} reposted your {{ activityVerb }}', { actorName, activityVerb });\n case 'follow':\n return t('{{ actorName }} followed you', { actorName });\n case 'comment':\n return t('{{ actorName }} commented on your {{ activityVerb }}', { actorName, activityVerb });\n default:\n console.warn('No notification styling found for your verb, please create your own custom Notification group.');\n return '';\n }\n }\n\n if (activitiesLen > 1 && activitiesLen < 3) {\n switch (verb) {\n case 'like':\n return t('{{ actorName }} and 1 other liked your {{ activityVerb }}', { actorName, activityVerb });\n case 'repost':\n return t('{{ actorName }} and 1 other reposted your {{ activityVerb }}', { actorName, activityVerb });\n case 'follow':\n return t('{{ actorName }} and 1 other followed you', { actorName });\n case 'comment':\n return t('{{ actorName }} and 1 other commented on your {{ activityVerb }}', { actorName, activityVerb });\n default:\n console.warn('No notification styling found for your verb, please create your own custom Notification group.');\n return '';\n }\n }\n\n const countOtherActors = activitiesLen - 1;\n switch (verb) {\n case 'like':\n return t('{{ actorName }} and {{ countOtherActors }} others liked your {{ activityVerb }}', {\n actorName,\n activityVerb,\n countOtherActors,\n });\n case 'repost':\n return t('{{ actorName }} and {{ countOtherActors }} others reposted your {{ activityVerb }}', {\n actorName,\n activityVerb,\n countOtherActors,\n });\n case 'follow':\n return t('{{ actorName }} and {{ countOtherActors }} others followed you', {\n actorName,\n countOtherActors,\n });\n case 'comment':\n return t('{{ actorName }} and {{ countOtherActors }} others commented on your {{ activityVerb }}', {\n actorName,\n activityVerb,\n countOtherActors,\n });\n default:\n console.warn('No notification styling found for your verb, please create your own custom Notification group.');\n return '';\n }\n};\n\nexport const Notification = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n>({\n activityGroup,\n onMarkAsRead,\n onClickUser,\n onClickNotification,\n}: NotificationProps) => {\n const { t, tDateTimeParser } = useTranslationContext();\n const { activities } = activityGroup;\n const [latestActivity, ...restOfActivities] = activities;\n\n if (typeof latestActivity.object === 'string') return null;\n\n const lastObject = latestActivity.object as EnrichedActivity;\n const lastActor = userOrDefault(latestActivity.actor);\n const headerText = getHeaderText(t, activities.length, latestActivity.verb, lastActor.data.name, lastObject.verb);\n const handleUserClick = useOnClickUser(onClickUser);\n const handleNotificationClick = onClickNotification\n ? (e: SyntheticEvent) => {\n e.stopPropagation();\n onClickNotification(activityGroup);\n }\n : undefined;\n\n return (\n \n )}\n image={lastActor.data.profileImage}\n circle\n size={30}\n />\n\n
    \n
    \n {headerText}\n {!activityGroup.is_read && onMarkAsRead && (\n \n
    \n {\n e.stopPropagation();\n onMarkAsRead(activityGroup);\n }}\n >\n Mark as read\n \n
    \n
    \n )}\n
    \n
    \n {humanizeTimestamp(latestActivity.time, tDateTimeParser)}\n
    \n {latestActivity.verb !== 'follow' && (\n } />\n )}\n
    \n\n
    \n {activities.length > 1 && latestActivity.verb === 'follow' && (\n (restOfActivities) as Array>}\n />\n )}\n
    \n \n );\n};\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","var getWrapDetails = require('./_getWrapDetails'),\n insertWrapDetails = require('./_insertWrapDetails'),\n setToString = require('./_setToString'),\n updateWrapDetails = require('./_updateWrapDetails');\n\n/**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\nfunction setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n}\n\nmodule.exports = setWrapToString;\n","import React from 'react';\nimport { GetFeedOptions, UR } from 'getstream';\n\nimport { DefaultAT, DefaultUT } from '../context';\nimport { FlatFeed, FlatFeedProps } from './FlatFeed';\n\nexport type SinglePostProps<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n> = FlatFeedProps & { activityId: string };\n\n/**\n * Shows the detail of a single activity\n */\nexport function SinglePost<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>({ options, activityId, doFeedRequest, ...props }: SinglePostProps) {\n return (\n \n {...props}\n options={{ withRecentReactions: true, ...options }}\n doFeedRequest={(client, feedGroup, userId, opts) => {\n if (doFeedRequest) {\n return doFeedRequest(client, feedGroup, userId, {\n ...opts,\n id_lte: activityId,\n id_gte: activityId,\n limit: 1,\n });\n }\n\n return client.feed(feedGroup, userId).getActivityDetail(activityId, opts as GetFeedOptions);\n }}\n />\n );\n}\n","import { Playground, Props } from 'docz';\nimport { Card } from \"../../../../../src/components/Card\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n Card,\n React\n};","!function (r, t) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define(t) : r.dayjs_plugin_relativeTime = t();\n}(this, function () {\n \"use strict\";\n\n return function (r, t, e) {\n r = r || {};\n var n = t.prototype,\n o = {\n future: \"in %s\",\n past: \"%s ago\",\n s: \"a few seconds\",\n m: \"a minute\",\n mm: \"%d minutes\",\n h: \"an hour\",\n hh: \"%d hours\",\n d: \"a day\",\n dd: \"%d days\",\n M: \"a month\",\n MM: \"%d months\",\n y: \"a year\",\n yy: \"%d years\"\n };\n\n function i(r, t, e, o) {\n return n.fromToBase(r, t, e, o);\n }\n\n e.en.relativeTime = o, n.fromToBase = function (t, n, i, d, u) {\n for (var a, f, s, l = i.$locale().relativeTime || o, h = r.thresholds || [{\n l: \"s\",\n r: 44,\n d: \"second\"\n }, {\n l: \"m\",\n r: 89\n }, {\n l: \"mm\",\n r: 44,\n d: \"minute\"\n }, {\n l: \"h\",\n r: 89\n }, {\n l: \"hh\",\n r: 21,\n d: \"hour\"\n }, {\n l: \"d\",\n r: 35\n }, {\n l: \"dd\",\n r: 25,\n d: \"day\"\n }, {\n l: \"M\",\n r: 45\n }, {\n l: \"MM\",\n r: 10,\n d: \"month\"\n }, {\n l: \"y\",\n r: 17\n }, {\n l: \"yy\",\n d: \"year\"\n }], m = h.length, c = 0; c < m; c += 1) {\n var y = h[c];\n y.d && (a = d ? e(t).diff(i, y.d, !0) : i.diff(t, y.d, !0));\n var p = (r.rounding || Math.round)(Math.abs(a));\n\n if (s = a > 0, p <= y.r || !y.r) {\n p <= 1 && c > 0 && (y = h[c - 1]);\n var v = l[y.l];\n u && (p = u(\"\" + p)), f = \"string\" == typeof v ? v.replace(\"%d\", p) : v(p, n, y.l, s);\n break;\n }\n }\n\n if (n) return f;\n var M = s ? l.future : l.past;\n return \"function\" == typeof M ? M(f) : M.replace(\"%s\", f);\n }, n.to = function (r, t) {\n return i(r, t, this, !0);\n }, n.from = function (r, t) {\n return i(r, t, this);\n };\n\n var d = function d(r) {\n return r.$u ? e.utc() : e();\n };\n\n n.toNow = function (r) {\n return this.to(d(this), r);\n }, n.fromNow = function (r) {\n return this.from(d(this), r);\n };\n };\n});","import { Playground, Props } from 'docz';\nimport { ReactionIcon } from \"../../../../../src/components/ReactionIcon\";\nimport { ThumbsUpIcon } from \"../../../../../src/components/Icons\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n ReactionIcon,\n ThumbsUpIcon,\n React\n};","import { Playground, Props } from 'docz';\nimport { AttachedActivity } from \"../../../../../src/components/AttachedActivity\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n AttachedActivity,\n React\n};","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\nfunction standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n\n return function isURLSameOrigin(requestURL) {\n var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;\n return parsed.protocol === originURL.protocol && parsed.host === originURL.host;\n };\n}() : // Non standard browser envs (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n}();","/**\n * Remove a prefix from a string. Return the input string if the given prefix\n * isn't found.\n */\n\nexport default function stripPrefix(str, prefix = ``) {\n if (!prefix) {\n return str\n }\n\n if (str === prefix) {\n return `/`\n }\n\n if (str.startsWith(`${prefix}/`)) {\n return str.slice(prefix.length)\n }\n\n return str\n}\n","'use strict';\n\nvar Event = {\n _registry: [],\n on: function on(element, eventName, callback, context) {\n var wrapped = function wrapped() {\n callback.call(context);\n };\n\n if (element.addEventListener) element.addEventListener(eventName, wrapped, false);else element.attachEvent('on' + eventName, wrapped);\n\n this._registry.push({\n _element: element,\n _type: eventName,\n _callback: callback,\n _context: context,\n _handler: wrapped\n });\n },\n detach: function detach(element, eventName, callback, context) {\n var i = this._registry.length,\n register;\n\n while (i--) {\n register = this._registry[i];\n if (element && element !== register._element || eventName && eventName !== register._type || callback && callback !== register._callback || context && context !== register._context) continue;\n if (register._element.removeEventListener) register._element.removeEventListener(register._type, register._handler, false);else register._element.detachEvent('on' + register._type, register._handler);\n\n this._registry.splice(i, 1);\n\n register = null;\n }\n }\n};\nif (global.onunload !== undefined) Event.on(global, 'unload', Event.detach, Event);\nmodule.exports = {\n Event: Event\n};","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","import { Playground, Props } from 'docz';\nimport { WithExampleStreamApp } from \"../../../../../src/components/docz\";\nimport { NotificationDropdown } from \"../../../../../src/components/NotificationDropdown\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n WithExampleStreamApp,\n NotificationDropdown,\n React\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.search = exports.categories = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar categories = {\n activity: function activity() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113\"\n }));\n },\n custom: function custom() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"g\", {\n transform: \"translate(2.000000, 1.000000)\"\n }, _react[\"default\"].createElement(\"rect\", {\n id: \"Rectangle\",\n x: \"8\",\n y: \"0\",\n width: \"3\",\n height: \"21\",\n rx: \"1.5\"\n }), _react[\"default\"].createElement(\"rect\", {\n id: \"Rectangle\",\n transform: \"translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) \",\n x: \"8.343\",\n y: \"0.049\",\n width: \"3\",\n height: \"21\",\n rx: \"1.5\"\n }), _react[\"default\"].createElement(\"rect\", {\n id: \"Rectangle\",\n transform: \"translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) \",\n x: \"8.343\",\n y: \"0.049\",\n width: \"3\",\n height: \"21\",\n rx: \"1.5\"\n })));\n },\n flags: function flags() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z\"\n }));\n },\n foods: function foods() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9\"\n }));\n },\n nature: function nature() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8\"\n }), _react[\"default\"].createElement(\"path\", {\n d: \"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235\"\n }));\n },\n objects: function objects() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z\"\n }), _react[\"default\"].createElement(\"path\", {\n d: \"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789\"\n }));\n },\n people: function people() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10\"\n }), _react[\"default\"].createElement(\"path\", {\n d: \"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0\"\n }));\n },\n places: function places() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5\"\n }), _react[\"default\"].createElement(\"path\", {\n d: \"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z\"\n }));\n },\n recent: function recent() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z\"\n }), _react[\"default\"].createElement(\"path\", {\n d: \"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10\"\n }));\n },\n symbols: function symbols() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n height: \"24\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76\"\n }));\n }\n};\nexports.categories = categories;\nvar search = {\n search: function search() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"13\",\n height: \"13\",\n viewBox: \"0 0 20 20\",\n opacity: \"0.5\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z\"\n }));\n },\n \"delete\": function _delete() {\n return _react[\"default\"].createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"13\",\n height: \"13\",\n viewBox: \"0 0 20 20\",\n opacity: \"0.5\"\n }, _react[\"default\"].createElement(\"path\", {\n d: \"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z\"\n }));\n }\n};\nexports.search = search;","import React, { PropsWithChildren, useContext, useEffect, useMemo, useState } from 'react';\nimport {\n Activity,\n GetFeedOptions,\n ReactionAPIResponse,\n StreamClient,\n ReactionAddOptions,\n UR,\n Reaction,\n FeedAPIResponse,\n ReactionAddChildOptions,\n ReactionFilterAPIResponse,\n ReactionFilterConditions,\n} from 'getstream';\n\nimport { FeedManager } from './FeedManager';\nimport { DefaultAT, DefaultUT, useStreamContext } from './StreamApp';\n\nexport type FeedContextValue<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n> = {\n feedGroup: string;\n feedManager: FeedManager;\n hasDoneRequest: boolean;\n hasNextPage: boolean;\n hasReverseNextPage: boolean;\n userId?: string;\n} & Pick<\n FeedManager,\n | 'loadNextPage'\n | 'loadNextReactions'\n | 'loadReverseNextPage'\n | 'onAddChildReaction'\n | 'onAddReaction'\n | 'onMarkAsRead'\n | 'onMarkAsSeen'\n | 'onRemoveActivity'\n | 'onRemoveChildReaction'\n | 'onRemoveReaction'\n | 'onToggleChildReaction'\n | 'onToggleReaction'\n | 'getActivityPath'\n | 'refresh'\n | 'refreshUnreadUnseen'\n> &\n Pick<\n FeedManager['state'],\n 'activities' | 'activityOrder' | 'realtimeAdds' | 'realtimeDeletes' | 'refreshing' | 'unread' | 'unseen'\n >;\n\ntype DeleteRequestFn = (id: string) => Promise;\n\nexport type FeedProps<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n> = {\n /** The feed group part of the feed */\n feedGroup: string;\n /** The location that should be used for analytics when liking in the feed,\n * this is only useful when you have analytics enabled for your app. */\n analyticsLocation?: string;\n /** Override activity delete request */\n /* Components to display in the feed */\n children?: React.ReactNode;\n doActivityDeleteRequest?: DeleteRequestFn;\n /** Override child reaction add request */\n doChildReactionAddRequest?: (\n kind: string,\n reaction: Reaction,\n data?: CRT,\n options?: ReactionAddChildOptions,\n ) => Promise>;\n /** Override child reaction delete request */\n doChildReactionDeleteRequest?: DeleteRequestFn;\n /** The feed read handler (change only for advanced/complex use-cases) */\n doFeedRequest?: (\n client: StreamClient,\n feedGroup: string,\n userId?: string,\n options?: GetFeedOptions,\n ) => Promise>;\n /** Override reaction add request */\n doReactionAddRequest?: (\n kind: string,\n activity: Activity,\n data?: RT,\n options?: ReactionAddOptions,\n ) => ReactionAPIResponse;\n /** Override reaction delete request */\n doReactionDeleteRequest?: DeleteRequestFn;\n /** Override reactions filter request */\n doReactionsFilterRequest?: (options: ReactionFilterConditions) => Promise>;\n /** If true, feed shows the Notifier component when new activities are added */\n notify?: boolean;\n /** Read options for the API client (eg. limit, ranking, ...) */\n options?: GetFeedOptions;\n /** The user_id part of the feed */\n userId?: string;\n};\n\nexport const FeedContext = React.createContext({});\n\nexport const FeedProvider = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: FeedContextValue;\n}>) => {children};\n\nexport const useFeedContext = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>() => useContext(FeedContext) as FeedContextValue;\n\nexport function Feed<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>(props: FeedProps) {\n const { analyticsClient, client, user, errorHandler, sharedFeedManagers } = useStreamContext<\n UT,\n AT,\n CT,\n RT,\n CRT,\n PT\n >();\n const { feedGroup, userId, children } = props;\n const [, setForceUpdateState] = useState(0);\n\n const manager = useMemo(() => {\n if (!client) return null;\n // const clientDifferent = this.props.client !== prevProps.client;\n // const notifyDifferent = this.props.notify !== prevProps.notify;\n // const feedDifferent = this.props.userId !== prevProps.userId || this.props.feedGroup !== prevProps.feedGroup;\n // const optionsDifferent = !_isEqual(this.props.options, prevProps.options);\n // if (clientDifferent || feedDifferent || optionsDifferent || notifyDifferent)\n // TODO: Implement\n const feedId = client.feed(feedGroup, userId).id;\n return (\n sharedFeedManagers[feedId] ||\n new FeedManager({ ...props, analyticsClient, client, user, errorHandler })\n );\n }, [feedGroup]);\n\n useEffect(() => {\n const forceUpdate = () => setForceUpdateState((prevState) => prevState + 1);\n manager?.register(forceUpdate);\n return () => manager?.unregister(forceUpdate);\n }, [manager]);\n\n if (!manager) return null;\n\n const ctx = {\n feedGroup,\n userId,\n feedManager: manager,\n getActivityPath: manager.getActivityPath,\n onToggleReaction: manager.onToggleReaction,\n onAddReaction: manager.onAddReaction,\n onRemoveReaction: manager.onRemoveReaction,\n onToggleChildReaction: manager.onToggleChildReaction,\n onAddChildReaction: manager.onAddChildReaction,\n onRemoveChildReaction: manager.onRemoveChildReaction,\n onRemoveActivity: manager.onRemoveActivity,\n onMarkAsRead: manager.onMarkAsRead,\n onMarkAsSeen: manager.onMarkAsSeen,\n refresh: manager.refresh,\n refreshUnreadUnseen: manager.refreshUnreadUnseen,\n loadNextReactions: manager.loadNextReactions,\n loadNextPage: manager.loadNextPage,\n hasNextPage: manager.hasNextPage(),\n loadReverseNextPage: manager.loadReverseNextPage,\n hasReverseNextPage: manager.hasReverseNextPage(),\n activityOrder: manager.state.activityOrder,\n activities: manager.state.activities,\n realtimeAdds: manager.state.realtimeAdds,\n realtimeDeletes: manager.state.realtimeDeletes,\n refreshing: manager.state.refreshing,\n unread: manager.state.unread,\n unseen: manager.state.unseen,\n hasDoneRequest: manager.state.lastResponse != null,\n };\n\n return {children};\n}\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var IS_NODE = require('../internals/engine-is-node');\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // eslint-disable-next-line es/no-symbol -- required for testing\n return !Symbol.sham &&\n // Chrome 38 Symbol has incorrect toString conversion\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n (IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41);\n});\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","/** Used as the internal argument placeholder. */\nvar PLACEHOLDER = '__lodash_placeholder__';\n\n/**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\nfunction replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n}\n\nmodule.exports = replaceHolders;\n","module.exports = require('./lib/axios');","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.ScrollHandler = exports.ScrollContext = void 0;\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _sessionStorage = require(\"./session-storage\");\n\nvar ScrollContext = /*#__PURE__*/React.createContext(new _sessionStorage.SessionStorage());\nexports.ScrollContext = ScrollContext;\nScrollContext.displayName = \"GatsbyScrollContext\";\n\nvar ScrollHandler = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(ScrollHandler, _React$Component);\n\n function ScrollHandler() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this._stateStorage = new _sessionStorage.SessionStorage();\n\n _this.scrollListener = function () {\n var key = _this.props.location.key;\n\n if (key) {\n _this._stateStorage.save(_this.props.location, key, window.scrollY);\n }\n };\n\n _this.windowScroll = function (position, prevProps) {\n if (_this.shouldUpdateScroll(prevProps, _this.props)) {\n window.scrollTo(0, position);\n }\n };\n\n _this.scrollToHash = function (hash, prevProps) {\n var node = document.getElementById(hash.substring(1));\n\n if (node && _this.shouldUpdateScroll(prevProps, _this.props)) {\n node.scrollIntoView();\n }\n };\n\n _this.shouldUpdateScroll = function (prevRouterProps, routerProps) {\n var shouldUpdateScroll = _this.props.shouldUpdateScroll;\n\n if (!shouldUpdateScroll) {\n return true;\n } // Hack to allow accessing this._stateStorage.\n\n\n return shouldUpdateScroll.call((0, _assertThisInitialized2.default)(_this), prevRouterProps, routerProps);\n };\n\n return _this;\n }\n\n var _proto = ScrollHandler.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n window.addEventListener(\"scroll\", this.scrollListener);\n var scrollPosition;\n var _this$props$location = this.props.location,\n key = _this$props$location.key,\n hash = _this$props$location.hash;\n\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n if (scrollPosition) {\n this.windowScroll(scrollPosition, undefined);\n } else if (hash) {\n this.scrollToHash(decodeURI(hash), undefined);\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n window.removeEventListener(\"scroll\", this.scrollListener);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props$location2 = this.props.location,\n hash = _this$props$location2.hash,\n key = _this$props$location2.key;\n var scrollPosition;\n\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n /** There are two pieces of state: the browser url and\n * history state which keeps track of scroll position\n * Native behaviour prescribes that we ought to restore scroll position\n * when a user navigates back in their browser (this is the `POP` action)\n * Currently, reach router has a bug that prevents this at https://github.com/reach/router/issues/228\n * So we _always_ stick to the url as a source of truth — if the url\n * contains a hash, we scroll to it\n */\n\n\n if (hash) {\n this.scrollToHash(decodeURI(hash), prevProps);\n } else {\n this.windowScroll(scrollPosition, prevProps);\n }\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(ScrollContext.Provider, {\n value: this._stateStorage\n }, this.props.children);\n };\n\n return ScrollHandler;\n}(React.Component);\n\nexports.ScrollHandler = ScrollHandler;\nScrollHandler.propTypes = {\n shouldUpdateScroll: _propTypes.default.func,\n children: _propTypes.default.element.isRequired,\n location: _propTypes.default.object.isRequired\n};","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","'use strict';\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar defaults = {\n defaultProtocol: 'http',\n events: null,\n format: noop,\n formatHref: noop,\n nl2br: false,\n tagName: 'a',\n target: typeToTarget,\n validate: true,\n ignoreTags: [],\n attributes: null,\n className: 'linkified' // Deprecated value - no default class will be provided in the future\n\n};\nexports.defaults = defaults;\nexports.Options = Options;\nexports.contains = contains;\n\nfunction Options(opts) {\n opts = opts || {};\n this.defaultProtocol = opts.hasOwnProperty('defaultProtocol') ? opts.defaultProtocol : defaults.defaultProtocol;\n this.events = opts.hasOwnProperty('events') ? opts.events : defaults.events;\n this.format = opts.hasOwnProperty('format') ? opts.format : defaults.format;\n this.formatHref = opts.hasOwnProperty('formatHref') ? opts.formatHref : defaults.formatHref;\n this.nl2br = opts.hasOwnProperty('nl2br') ? opts.nl2br : defaults.nl2br;\n this.tagName = opts.hasOwnProperty('tagName') ? opts.tagName : defaults.tagName;\n this.target = opts.hasOwnProperty('target') ? opts.target : defaults.target;\n this.validate = opts.hasOwnProperty('validate') ? opts.validate : defaults.validate;\n this.ignoreTags = []; // linkAttributes and linkClass is deprecated\n\n this.attributes = opts.attributes || opts.linkAttributes || defaults.attributes;\n this.className = opts.hasOwnProperty('className') ? opts.className : opts.linkClass || defaults.className; // Make all tags names upper case\n\n var ignoredTags = opts.hasOwnProperty('ignoreTags') ? opts.ignoreTags : defaults.ignoreTags;\n\n for (var i = 0; i < ignoredTags.length; i++) {\n this.ignoreTags.push(ignoredTags[i].toUpperCase());\n }\n}\n\nOptions.prototype = {\n /**\n * Given the token, return all options for how it should be displayed\n */\n resolve: function resolve(token) {\n var href = token.toHref(this.defaultProtocol);\n return {\n formatted: this.get('format', token.toString(), token),\n formattedHref: this.get('formatHref', href, token),\n tagName: this.get('tagName', href, token),\n className: this.get('className', href, token),\n target: this.get('target', href, token),\n events: this.getObject('events', href, token),\n attributes: this.getObject('attributes', href, token)\n };\n },\n\n /**\n * Returns true or false based on whether a token should be displayed as a\n * link based on the user options. By default,\n */\n check: function check(token) {\n return this.get('validate', token.toString(), token);\n },\n // Private methods\n\n /**\n * Resolve an option's value based on the value of the option and the given\n * params.\n * @param {String} key Name of option to use\n * @param operator will be passed to the target option if it's method\n * @param {MultiToken} token The token from linkify.tokenize\n */\n get: function get(key, operator, token) {\n var optionValue = void 0,\n option = this[key];\n\n if (!option) {\n return option;\n }\n\n switch (typeof option === 'undefined' ? 'undefined' : _typeof(option)) {\n case 'function':\n return option(operator, token.type);\n\n case 'object':\n optionValue = option.hasOwnProperty(token.type) ? option[token.type] : defaults[key];\n return typeof optionValue === 'function' ? optionValue(operator, token.type) : optionValue;\n }\n\n return option;\n },\n getObject: function getObject(key, operator, token) {\n var option = this[key];\n return typeof option === 'function' ? option(operator, token.type) : option;\n }\n};\n/**\n * Quick indexOf replacement for checking the ignoreTags option\n */\n\nfunction contains(arr, value) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] === value) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction noop(val) {\n return val;\n}\n\nfunction typeToTarget(href, type) {\n return type === 'url' ? '_blank' : null;\n}","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","'use strict';\n\nvar Class = require('../util/class'),\n assign = require('../util/assign'),\n Publisher = require('../mixins/publisher'),\n Grammar = require('./grammar');\n\nvar Channel = Class({\n initialize: function initialize(name) {\n this.id = this.name = name;\n },\n push: function push(message) {\n this.trigger('message', message);\n },\n isUnused: function isUnused() {\n return this.countListeners('message') === 0;\n }\n});\nassign(Channel.prototype, Publisher);\nassign(Channel, {\n HANDSHAKE: '/meta/handshake',\n CONNECT: '/meta/connect',\n SUBSCRIBE: '/meta/subscribe',\n UNSUBSCRIBE: '/meta/unsubscribe',\n DISCONNECT: '/meta/disconnect',\n META: 'meta',\n SERVICE: 'service',\n expand: function expand(name) {\n var segments = this.parse(name),\n channels = ['/**', name];\n var copy = segments.slice();\n copy[copy.length - 1] = '*';\n channels.push(this.unparse(copy));\n\n for (var i = 1, n = segments.length; i < n; i++) {\n copy = segments.slice(0, i);\n copy.push('**');\n channels.push(this.unparse(copy));\n }\n\n return channels;\n },\n isValid: function isValid(name) {\n return Grammar.CHANNEL_NAME.test(name) || Grammar.CHANNEL_PATTERN.test(name);\n },\n parse: function parse(name) {\n if (!this.isValid(name)) return null;\n return name.split('/').slice(1);\n },\n unparse: function unparse(segments) {\n return '/' + segments.join('/');\n },\n isMeta: function isMeta(name) {\n var segments = this.parse(name);\n return segments ? segments[0] === this.META : null;\n },\n isService: function isService(name) {\n var segments = this.parse(name);\n return segments ? segments[0] === this.SERVICE : null;\n },\n isSubscribable: function isSubscribable(name) {\n if (!this.isValid(name)) return null;\n return !this.isMeta(name) && !this.isService(name);\n },\n Set: Class({\n initialize: function initialize() {\n this._channels = {};\n },\n getKeys: function getKeys() {\n var keys = [];\n\n for (var key in this._channels) {\n keys.push(key);\n }\n\n return keys;\n },\n remove: function remove(name) {\n delete this._channels[name];\n },\n hasSubscription: function hasSubscription(name) {\n return this._channels.hasOwnProperty(name);\n },\n subscribe: function subscribe(names, subscription) {\n var name;\n\n for (var i = 0, n = names.length; i < n; i++) {\n name = names[i];\n var channel = this._channels[name] = this._channels[name] || new Channel(name);\n channel.bind('message', subscription);\n }\n },\n unsubscribe: function unsubscribe(name, subscription) {\n var channel = this._channels[name];\n if (!channel) return false;\n channel.unbind('message', subscription);\n\n if (channel.isUnused()) {\n this.remove(name);\n return true;\n } else {\n return false;\n }\n },\n distributeMessage: function distributeMessage(message) {\n var channels = Channel.expand(message.channel);\n\n for (var i = 0, n = channels.length; i < n; i++) {\n var channel = this._channels[channels[i]];\n if (channel) channel.trigger('message', message);\n }\n }\n })\n});\nmodule.exports = Channel;","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.uncompress = exports.compress = exports.buildSearch = void 0;\nvar mapping = {\n name: 'a',\n unified: 'b',\n non_qualified: 'c',\n has_img_apple: 'd',\n has_img_google: 'e',\n has_img_twitter: 'f',\n has_img_facebook: 'h',\n keywords: 'j',\n sheet: 'k',\n emoticons: 'l',\n text: 'm',\n short_names: 'n',\n added_in: 'o'\n};\n\nvar buildSearch = function buildSearch(emoji) {\n var search = [];\n\n var addToSearch = function addToSearch(strings, split) {\n if (!strings) {\n return;\n }\n\n ;\n (Array.isArray(strings) ? strings : [strings]).forEach(function (string) {\n ;\n (split ? string.split(/[-|_|\\s]+/) : [string]).forEach(function (s) {\n s = s.toLowerCase();\n\n if (search.indexOf(s) == -1) {\n search.push(s);\n }\n });\n });\n };\n\n addToSearch(emoji.short_names, true);\n addToSearch(emoji.name, true);\n addToSearch(emoji.keywords, false);\n addToSearch(emoji.emoticons, false);\n return search.join(',');\n};\n\nexports.buildSearch = buildSearch;\n\nvar compress = function compress(emoji) {\n emoji.short_names = emoji.short_names.filter(function (short_name) {\n return short_name !== emoji.short_name;\n });\n delete emoji.short_name;\n emoji.sheet = [emoji.sheet_x, emoji.sheet_y];\n delete emoji.sheet_x;\n delete emoji.sheet_y;\n emoji.added_in = parseInt(emoji.added_in);\n\n if (emoji.added_in === 6) {\n delete emoji.added_in;\n }\n\n for (var key in mapping) {\n emoji[mapping[key]] = emoji[key];\n delete emoji[key];\n }\n\n for (var _key in emoji) {\n var value = emoji[_key];\n\n if (Array.isArray(value) && !value.length) {\n delete emoji[_key];\n } else if (typeof value === 'string' && !value.length) {\n delete emoji[_key];\n } else if (value === null) {\n delete emoji[_key];\n }\n }\n};\n\nexports.compress = compress;\n\nvar uncompress = function uncompress(data) {\n data.compressed = false;\n\n for (var id in data.emojis) {\n var emoji = data.emojis[id];\n\n for (var key in mapping) {\n emoji[key] = emoji[mapping[key]];\n delete emoji[mapping[key]];\n }\n\n if (!emoji.short_names) emoji.short_names = [];\n emoji.short_names.unshift(id);\n emoji.sheet_x = emoji.sheet[0];\n emoji.sheet_y = emoji.sheet[1];\n delete emoji.sheet;\n if (!emoji.text) emoji.text = '';\n if (!emoji.added_in) emoji.added_in = 6;\n emoji.added_in = emoji.added_in.toFixed(1);\n emoji.search = buildSearch(emoji);\n }\n};\n\nexports.uncompress = uncompress;","module.exports = require('./head');\n","import { StreamApiError, UR } from 'getstream';\n\nexport type NetworkRequestTypes =\n | 'get-user-info'\n | 'get-feed'\n | 'get-feed-next-page'\n | 'get-reactions-next-page'\n | 'get-notification-counts'\n | 'upload-image'\n | 'upload-file'\n | 'get-og'\n | 'add-activity'\n | 'delete-activity'\n | 'add-reaction'\n | 'delete-reaction'\n | 'add-child-reaction'\n | 'delete-child-reaction';\n\ntype ErrorDetail = UR & {\n activity?: UR;\n activity_id?: string;\n activityId?: string;\n feedGroup?: string;\n kind?: string;\n options?: UR;\n reaction?: UR;\n userId?: string;\n};\n\nexport type ErrorHandler = (error: Error | StreamApiError, type: NetworkRequestTypes, details: ErrorDetail) => void;\n\nexport const handleError: ErrorHandler = (error, type, detail) => {\n console.warn(error, type, detail);\n};\n\nexport const getErrorMessage: ErrorHandler = (error, type, detail) => {\n console.warn(error);\n\n if (!(error instanceof StreamApiError)) {\n return fallbackErrorMessage(error, type, detail);\n }\n\n const response = error.response;\n\n if (!response.status || !response.data || !response.data.detail) {\n return fallbackErrorMessage(error, type, detail);\n }\n const status = response.status;\n const text = response.data.detail;\n\n if (status >= 400 && status < 600) {\n return text;\n }\n\n return fallbackErrorMessage(error, type, detail);\n};\n\nexport const fallbackErrorMessage: ErrorHandler = (_error, type, detail) => {\n let text = 'Something went wrong';\n let suffix = '';\n switch (type) {\n case 'get-user-info':\n text += ' when loading user info';\n break;\n case 'get-feed':\n text += ' when loading the feed';\n break;\n case 'get-feed-next-page':\n text += ' when loading the next page of the feed';\n break;\n case 'get-notification-counts':\n text += ' when loading your unread notification counts';\n break;\n case 'upload-image':\n text += ' when uploading your image';\n suffix = ' If it is, the image is probably too big';\n break;\n case 'add-activity':\n text += ' when submitting your post';\n break;\n case 'add-reaction':\n case 'add-child-reaction':\n text += ' when submitting your ' + detail.kind;\n break;\n case 'delete-reaction':\n case 'delete-child-reaction':\n text += ' when removing your ' + detail.kind;\n break;\n default:\n }\n\n return `${text}. Is your internet working?${suffix}`;\n};\n","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","import defineProperty from \"./defineProperty.js\";\nexport default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? Object(arguments[i]) : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","import _typeof from \"@babel/runtime/helpers/typeof\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","import \"core-js/modules/es.array.reduce.js\";\nimport _typeof from '@babel/runtime/helpers/esm/typeof';\nimport _objectSpread from '@babel/runtime/helpers/esm/objectSpread';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';\nimport _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nvar consoleLogger = {\n type: 'logger',\n log: function log(args) {\n this.output('log', args);\n },\n warn: function warn(args) {\n this.output('warn', args);\n },\n error: function error(args) {\n this.output('error', args);\n },\n output: function output(type, args) {\n if (console && console[type]) console[type].apply(console, args);\n }\n};\n\nvar Logger = function () {\n function Logger(concreteLogger) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Logger);\n\n this.init(concreteLogger, options);\n }\n\n _createClass(Logger, [{\n key: \"init\",\n value: function init(concreteLogger) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this.prefix = options.prefix || 'i18next:';\n this.logger = concreteLogger || consoleLogger;\n this.options = options;\n this.debug = options.debug;\n }\n }, {\n key: \"setDebug\",\n value: function setDebug(bool) {\n this.debug = bool;\n }\n }, {\n key: \"log\",\n value: function log() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.forward(args, 'log', '', true);\n }\n }, {\n key: \"warn\",\n value: function warn() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return this.forward(args, 'warn', '', true);\n }\n }, {\n key: \"error\",\n value: function error() {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return this.forward(args, 'error', '');\n }\n }, {\n key: \"deprecate\",\n value: function deprecate() {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n }\n }, {\n key: \"forward\",\n value: function forward(args, lvl, prefix, debugOnly) {\n if (debugOnly && !this.debug) return null;\n if (typeof args[0] === 'string') args[0] = \"\".concat(prefix).concat(this.prefix, \" \").concat(args[0]);\n return this.logger[lvl](args);\n }\n }, {\n key: \"create\",\n value: function create(moduleName) {\n return new Logger(this.logger, _objectSpread({}, {\n prefix: \"\".concat(this.prefix, \":\").concat(moduleName, \":\")\n }, this.options));\n }\n }]);\n\n return Logger;\n}();\n\nvar baseLogger = new Logger();\n\nvar EventEmitter = function () {\n function EventEmitter() {\n _classCallCheck(this, EventEmitter);\n\n this.observers = {};\n }\n\n _createClass(EventEmitter, [{\n key: \"on\",\n value: function on(events, listener) {\n var _this = this;\n\n events.split(' ').forEach(function (event) {\n _this.observers[event] = _this.observers[event] || [];\n\n _this.observers[event].push(listener);\n });\n return this;\n }\n }, {\n key: \"off\",\n value: function off(event, listener) {\n if (!this.observers[event]) return;\n\n if (!listener) {\n delete this.observers[event];\n return;\n }\n\n this.observers[event] = this.observers[event].filter(function (l) {\n return l !== listener;\n });\n }\n }, {\n key: \"emit\",\n value: function emit(event) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (this.observers[event]) {\n var cloned = [].concat(this.observers[event]);\n cloned.forEach(function (observer) {\n observer.apply(void 0, args);\n });\n }\n\n if (this.observers['*']) {\n var _cloned = [].concat(this.observers['*']);\n\n _cloned.forEach(function (observer) {\n observer.apply(observer, [event].concat(args));\n });\n }\n }\n }]);\n\n return EventEmitter;\n}();\n\nfunction defer() {\n var res;\n var rej;\n var promise = new Promise(function (resolve, reject) {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n}\n\nfunction makeString(object) {\n if (object == null) return '';\n return '' + object;\n}\n\nfunction copy(a, s, t) {\n a.forEach(function (m) {\n if (s[m]) t[m] = s[m];\n });\n}\n\nfunction getLastOfPath(object, path, Empty) {\n function cleanKey(key) {\n return key && key.indexOf('###') > -1 ? key.replace(/###/g, '.') : key;\n }\n\n function canNotTraverseDeeper() {\n return !object || typeof object === 'string';\n }\n\n var stack = typeof path !== 'string' ? [].concat(path) : path.split('.');\n\n while (stack.length > 1) {\n if (canNotTraverseDeeper()) return {};\n var key = cleanKey(stack.shift());\n if (!object[key] && Empty) object[key] = new Empty();\n\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n }\n\n if (canNotTraverseDeeper()) return {};\n return {\n obj: object,\n k: cleanKey(stack.shift())\n };\n}\n\nfunction setPath(object, path, newValue) {\n var _getLastOfPath = getLastOfPath(object, path, Object),\n obj = _getLastOfPath.obj,\n k = _getLastOfPath.k;\n\n obj[k] = newValue;\n}\n\nfunction pushPath(object, path, newValue, concat) {\n var _getLastOfPath2 = getLastOfPath(object, path, Object),\n obj = _getLastOfPath2.obj,\n k = _getLastOfPath2.k;\n\n obj[k] = obj[k] || [];\n if (concat) obj[k] = obj[k].concat(newValue);\n if (!concat) obj[k].push(newValue);\n}\n\nfunction getPath(object, path) {\n var _getLastOfPath3 = getLastOfPath(object, path),\n obj = _getLastOfPath3.obj,\n k = _getLastOfPath3.k;\n\n if (!obj) return undefined;\n return obj[k];\n}\n\nfunction getPathWithDefaults(data, defaultData, key) {\n var value = getPath(data, key);\n\n if (value !== undefined) {\n return value;\n }\n\n return getPath(defaultData, key);\n}\n\nfunction deepExtend(target, source, overwrite) {\n for (var prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (prop in target) {\n if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n\n return target;\n}\n\nfunction regexEscape(str) {\n return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n}\n\nvar _entityMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '/': '/'\n};\n\nfunction escape(data) {\n if (typeof data === 'string') {\n return data.replace(/[&<>\"'\\/]/g, function (s) {\n return _entityMap[s];\n });\n }\n\n return data;\n}\n\nvar isIE10 = typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;\n\nfunction deepFind(obj, path) {\n var keySeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';\n if (!obj) return undefined;\n if (obj[path]) return obj[path];\n var paths = path.split(keySeparator);\n var current = obj;\n\n for (var i = 0; i < paths.length; ++i) {\n if (typeof current[paths[i]] === 'string' && i + 1 < paths.length) {\n return undefined;\n }\n\n if (current[paths[i]] === undefined) {\n var j = 2;\n var p = paths.slice(i, i + j).join(keySeparator);\n var mix = current[p];\n\n while (mix === undefined && paths.length > i + j) {\n j++;\n p = paths.slice(i, i + j).join(keySeparator);\n mix = current[p];\n }\n\n if (mix === undefined) return undefined;\n if (typeof mix === 'string') return mix;\n if (p && typeof mix[p] === 'string') return mix[p];\n var joinedPath = paths.slice(i + j).join(keySeparator);\n if (joinedPath) return deepFind(mix, joinedPath, keySeparator);\n return undefined;\n }\n\n current = current[paths[i]];\n }\n\n return current;\n}\n\nvar ResourceStore = function (_EventEmitter) {\n _inherits(ResourceStore, _EventEmitter);\n\n function ResourceStore(data) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n ns: ['translation'],\n defaultNS: 'translation'\n };\n\n _classCallCheck(this, ResourceStore);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(ResourceStore).call(this));\n\n if (isIE10) {\n EventEmitter.call(_assertThisInitialized(_this));\n }\n\n _this.data = data || {};\n _this.options = options;\n\n if (_this.options.keySeparator === undefined) {\n _this.options.keySeparator = '.';\n }\n\n if (_this.options.ignoreJSONStructure === undefined) {\n _this.options.ignoreJSONStructure = true;\n }\n\n return _this;\n }\n\n _createClass(ResourceStore, [{\n key: \"addNamespaces\",\n value: function addNamespaces(ns) {\n if (this.options.ns.indexOf(ns) < 0) {\n this.options.ns.push(ns);\n }\n }\n }, {\n key: \"removeNamespaces\",\n value: function removeNamespaces(ns) {\n var index = this.options.ns.indexOf(ns);\n\n if (index > -1) {\n this.options.ns.splice(index, 1);\n }\n }\n }, {\n key: \"getResource\",\n value: function getResource(lng, ns, key) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n var ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n var path = [lng, ns];\n if (key && typeof key !== 'string') path = path.concat(key);\n if (key && typeof key === 'string') path = path.concat(keySeparator ? key.split(keySeparator) : key);\n\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n }\n\n var result = getPath(this.data, path);\n if (result || !ignoreJSONStructure || typeof key !== 'string') return result;\n return deepFind(this.data && this.data[lng] && this.data[lng][ns], key, keySeparator);\n }\n }, {\n key: \"addResource\",\n value: function addResource(lng, ns, key, value) {\n var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n silent: false\n };\n var keySeparator = this.options.keySeparator;\n if (keySeparator === undefined) keySeparator = '.';\n var path = [lng, ns];\n if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n value = ns;\n ns = path[1];\n }\n\n this.addNamespaces(ns);\n setPath(this.data, path, value);\n if (!options.silent) this.emit('added', lng, ns, key, value);\n }\n }, {\n key: \"addResources\",\n value: function addResources(lng, ns, resources) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n silent: false\n };\n\n for (var m in resources) {\n if (typeof resources[m] === 'string' || Object.prototype.toString.apply(resources[m]) === '[object Array]') this.addResource(lng, ns, m, resources[m], {\n silent: true\n });\n }\n\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n }, {\n key: \"addResourceBundle\",\n value: function addResourceBundle(lng, ns, resources, deep, overwrite) {\n var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {\n silent: false\n };\n var path = [lng, ns];\n\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n deep = resources;\n resources = ns;\n ns = path[1];\n }\n\n this.addNamespaces(ns);\n var pack = getPath(this.data, path) || {};\n\n if (deep) {\n deepExtend(pack, resources, overwrite);\n } else {\n pack = _objectSpread({}, pack, resources);\n }\n\n setPath(this.data, path, pack);\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n }, {\n key: \"removeResourceBundle\",\n value: function removeResourceBundle(lng, ns) {\n if (this.hasResourceBundle(lng, ns)) {\n delete this.data[lng][ns];\n }\n\n this.removeNamespaces(ns);\n this.emit('removed', lng, ns);\n }\n }, {\n key: \"hasResourceBundle\",\n value: function hasResourceBundle(lng, ns) {\n return this.getResource(lng, ns) !== undefined;\n }\n }, {\n key: \"getResourceBundle\",\n value: function getResourceBundle(lng, ns) {\n if (!ns) ns = this.options.defaultNS;\n if (this.options.compatibilityAPI === 'v1') return _objectSpread({}, {}, this.getResource(lng, ns));\n return this.getResource(lng, ns);\n }\n }, {\n key: \"getDataByLanguage\",\n value: function getDataByLanguage(lng) {\n return this.data[lng];\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.data;\n }\n }]);\n\n return ResourceStore;\n}(EventEmitter);\n\nvar postProcessor = {\n processors: {},\n addPostProcessor: function addPostProcessor(module) {\n this.processors[module.name] = module;\n },\n handle: function handle(processors, value, key, options, translator) {\n var _this = this;\n\n processors.forEach(function (processor) {\n if (_this.processors[processor]) value = _this.processors[processor].process(value, key, options, translator);\n });\n return value;\n }\n};\nvar checkedLoadedFor = {};\n\nvar Translator = function (_EventEmitter) {\n _inherits(Translator, _EventEmitter);\n\n function Translator(services) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Translator);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Translator).call(this));\n\n if (isIE10) {\n EventEmitter.call(_assertThisInitialized(_this));\n }\n\n copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized(_this));\n _this.options = options;\n\n if (_this.options.keySeparator === undefined) {\n _this.options.keySeparator = '.';\n }\n\n _this.logger = baseLogger.create('translator');\n return _this;\n }\n\n _createClass(Translator, [{\n key: \"changeLanguage\",\n value: function changeLanguage(lng) {\n if (lng) this.language = lng;\n }\n }, {\n key: \"exists\",\n value: function exists(key) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n interpolation: {}\n };\n var resolved = this.resolve(key, options);\n return resolved && resolved.res !== undefined;\n }\n }, {\n key: \"extractFromKey\",\n value: function extractFromKey(key, options) {\n var nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n var namespaces = options.ns || this.options.defaultNS;\n\n if (nsSeparator && key.indexOf(nsSeparator) > -1) {\n var m = key.match(this.interpolator.nestingRegexp);\n\n if (m && m.length > 0) {\n return {\n key: key,\n namespaces: namespaces\n };\n }\n\n var parts = key.split(nsSeparator);\n if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();\n key = parts.join(keySeparator);\n }\n\n if (typeof namespaces === 'string') namespaces = [namespaces];\n return {\n key: key,\n namespaces: namespaces\n };\n }\n }, {\n key: \"translate\",\n value: function translate(keys, options, lastKey) {\n var _this2 = this;\n\n if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {\n options = this.options.overloadTranslationOptionHandler(arguments);\n }\n\n if (!options) options = {};\n if (keys === undefined || keys === null) return '';\n if (!Array.isArray(keys)) keys = [String(keys)];\n var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n\n var _this$extractFromKey = this.extractFromKey(keys[keys.length - 1], options),\n key = _this$extractFromKey.key,\n namespaces = _this$extractFromKey.namespaces;\n\n var namespace = namespaces[namespaces.length - 1];\n var lng = options.lng || this.language;\n var appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n\n if (lng && lng.toLowerCase() === 'cimode') {\n if (appendNamespaceToCIMode) {\n var nsSeparator = options.nsSeparator || this.options.nsSeparator;\n return namespace + nsSeparator + key;\n }\n\n return key;\n }\n\n var resolved = this.resolve(keys, options);\n var res = resolved && resolved.res;\n var resUsedKey = resolved && resolved.usedKey || key;\n var resExactUsedKey = resolved && resolved.exactUsedKey || key;\n var resType = Object.prototype.toString.apply(res);\n var noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;\n var handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n var handleAsObject = typeof res !== 'string' && typeof res !== 'boolean' && typeof res !== 'number';\n\n if (handleAsObjectInI18nFormat && res && handleAsObject && noObject.indexOf(resType) < 0 && !(typeof joinArrays === 'string' && resType === '[object Array]')) {\n if (!options.returnObjects && !this.options.returnObjects) {\n this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n return this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, res, options) : \"key '\".concat(key, \" (\").concat(this.language, \")' returned an object instead of string.\");\n }\n\n if (keySeparator) {\n var resTypeIsArray = resType === '[object Array]';\n var copy = resTypeIsArray ? [] : {};\n var newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n\n for (var m in res) {\n if (Object.prototype.hasOwnProperty.call(res, m)) {\n var deepKey = \"\".concat(newKeyToUse).concat(keySeparator).concat(m);\n copy[m] = this.translate(deepKey, _objectSpread({}, options, {\n joinArrays: false,\n ns: namespaces\n }));\n if (copy[m] === deepKey) copy[m] = res[m];\n }\n }\n\n res = copy;\n }\n } else if (handleAsObjectInI18nFormat && typeof joinArrays === 'string' && resType === '[object Array]') {\n res = res.join(joinArrays);\n if (res) res = this.extendTranslation(res, keys, options, lastKey);\n } else {\n var usedDefault = false;\n var usedKey = false;\n var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';\n var hasDefaultValue = Translator.hasDefaultValue(options);\n var defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count) : '';\n var defaultValue = options[\"defaultValue\".concat(defaultValueSuffix)] || options.defaultValue;\n\n if (!this.isValidLookup(res) && hasDefaultValue) {\n usedDefault = true;\n res = defaultValue;\n }\n\n if (!this.isValidLookup(res)) {\n usedKey = true;\n res = key;\n }\n\n var updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n\n if (usedKey || usedDefault || updateMissing) {\n this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n\n if (keySeparator) {\n var fk = this.resolve(key, _objectSpread({}, options, {\n keySeparator: false\n }));\n if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n }\n\n var lngs = [];\n var fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);\n\n if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n for (var i = 0; i < fallbackLngs.length; i++) {\n lngs.push(fallbackLngs[i]);\n }\n } else if (this.options.saveMissingTo === 'all') {\n lngs = this.languageUtils.toResolveHierarchy(options.lng || this.language);\n } else {\n lngs.push(options.lng || this.language);\n }\n\n var send = function send(l, k, fallbackValue) {\n if (_this2.options.missingKeyHandler) {\n _this2.options.missingKeyHandler(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);\n } else if (_this2.backendConnector && _this2.backendConnector.saveMissing) {\n _this2.backendConnector.saveMissing(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);\n }\n\n _this2.emit('missingKey', l, namespace, k, res);\n };\n\n if (this.options.saveMissing) {\n if (this.options.saveMissingPlurals && needsPluralHandling) {\n lngs.forEach(function (language) {\n _this2.pluralResolver.getSuffixes(language).forEach(function (suffix) {\n send([language], key + suffix, options[\"defaultValue\".concat(suffix)] || defaultValue);\n });\n });\n } else {\n send(lngs, key, defaultValue);\n }\n }\n }\n\n res = this.extendTranslation(res, keys, options, resolved, lastKey);\n if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = \"\".concat(namespace, \":\").concat(key);\n if (usedKey && this.options.parseMissingKeyHandler) res = this.options.parseMissingKeyHandler(res);\n }\n\n return res;\n }\n }, {\n key: \"extendTranslation\",\n value: function extendTranslation(res, key, options, resolved, lastKey) {\n var _this3 = this;\n\n if (this.i18nFormat && this.i18nFormat.parse) {\n res = this.i18nFormat.parse(res, options, resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n resolved: resolved\n });\n } else if (!options.skipInterpolation) {\n if (options.interpolation) this.interpolator.init(_objectSpread({}, options, {\n interpolation: _objectSpread({}, this.options.interpolation, options.interpolation)\n }));\n var skipOnVariables = options.interpolation && options.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;\n var nestBef;\n\n if (skipOnVariables) {\n var nb = res.match(this.interpolator.nestingRegexp);\n nestBef = nb && nb.length;\n }\n\n var data = options.replace && typeof options.replace !== 'string' ? options.replace : options;\n if (this.options.interpolation.defaultVariables) data = _objectSpread({}, this.options.interpolation.defaultVariables, data);\n res = this.interpolator.interpolate(res, data, options.lng || this.language, options);\n\n if (skipOnVariables) {\n var na = res.match(this.interpolator.nestingRegexp);\n var nestAft = na && na.length;\n if (nestBef < nestAft) options.nest = false;\n }\n\n if (options.nest !== false) res = this.interpolator.nest(res, function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (lastKey && lastKey[0] === args[0] && !options.context) {\n _this3.logger.warn(\"It seems you are nesting recursively key: \".concat(args[0], \" in key: \").concat(key[0]));\n\n return null;\n }\n\n return _this3.translate.apply(_this3, args.concat([key]));\n }, options);\n if (options.interpolation) this.interpolator.reset();\n }\n\n var postProcess = options.postProcess || this.options.postProcess;\n var postProcessorNames = typeof postProcess === 'string' ? [postProcess] : postProcess;\n\n if (res !== undefined && res !== null && postProcessorNames && postProcessorNames.length && options.applyPostProcessor !== false) {\n res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? _objectSpread({\n i18nResolved: resolved\n }, options) : options, this);\n }\n\n return res;\n }\n }, {\n key: \"resolve\",\n value: function resolve(keys) {\n var _this4 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var found;\n var usedKey;\n var exactUsedKey;\n var usedLng;\n var usedNS;\n if (typeof keys === 'string') keys = [keys];\n keys.forEach(function (k) {\n if (_this4.isValidLookup(found)) return;\n\n var extracted = _this4.extractFromKey(k, options);\n\n var key = extracted.key;\n usedKey = key;\n var namespaces = extracted.namespaces;\n if (_this4.options.fallbackNS) namespaces = namespaces.concat(_this4.options.fallbackNS);\n var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';\n var needsContextHandling = options.context !== undefined && typeof options.context === 'string' && options.context !== '';\n var codes = options.lngs ? options.lngs : _this4.languageUtils.toResolveHierarchy(options.lng || _this4.language, options.fallbackLng);\n namespaces.forEach(function (ns) {\n if (_this4.isValidLookup(found)) return;\n usedNS = ns;\n\n if (!checkedLoadedFor[\"\".concat(codes[0], \"-\").concat(ns)] && _this4.utils && _this4.utils.hasLoadedNamespace && !_this4.utils.hasLoadedNamespace(usedNS)) {\n checkedLoadedFor[\"\".concat(codes[0], \"-\").concat(ns)] = true;\n\n _this4.logger.warn(\"key \\\"\".concat(usedKey, \"\\\" for languages \\\"\").concat(codes.join(', '), \"\\\" won't get resolved as namespace \\\"\").concat(usedNS, \"\\\" was not yet loaded\"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n }\n\n codes.forEach(function (code) {\n if (_this4.isValidLookup(found)) return;\n usedLng = code;\n var finalKey = key;\n var finalKeys = [finalKey];\n\n if (_this4.i18nFormat && _this4.i18nFormat.addLookupKeys) {\n _this4.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options);\n } else {\n var pluralSuffix;\n if (needsPluralHandling) pluralSuffix = _this4.pluralResolver.getSuffix(code, options.count);\n if (needsPluralHandling && needsContextHandling) finalKeys.push(finalKey + pluralSuffix);\n if (needsContextHandling) finalKeys.push(finalKey += \"\".concat(_this4.options.contextSeparator).concat(options.context));\n if (needsPluralHandling) finalKeys.push(finalKey += pluralSuffix);\n }\n\n var possibleKey;\n\n while (possibleKey = finalKeys.pop()) {\n if (!_this4.isValidLookup(found)) {\n exactUsedKey = possibleKey;\n found = _this4.getResource(code, ns, possibleKey, options);\n }\n }\n });\n });\n });\n return {\n res: found,\n usedKey: usedKey,\n exactUsedKey: exactUsedKey,\n usedLng: usedLng,\n usedNS: usedNS\n };\n }\n }, {\n key: \"isValidLookup\",\n value: function isValidLookup(res) {\n return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n }\n }, {\n key: \"getResource\",\n value: function getResource(code, ns, key) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n if (this.i18nFormat && this.i18nFormat.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n return this.resourceStore.getResource(code, ns, key, options);\n }\n }], [{\n key: \"hasDefaultValue\",\n value: function hasDefaultValue(options) {\n var prefix = 'defaultValue';\n\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option) && prefix === option.substring(0, prefix.length) && undefined !== options[option]) {\n return true;\n }\n }\n\n return false;\n }\n }]);\n\n return Translator;\n}(EventEmitter);\n\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar LanguageUtil = function () {\n function LanguageUtil(options) {\n _classCallCheck(this, LanguageUtil);\n\n this.options = options;\n this.whitelist = this.options.supportedLngs || false;\n this.supportedLngs = this.options.supportedLngs || false;\n this.logger = baseLogger.create('languageUtils');\n }\n\n _createClass(LanguageUtil, [{\n key: \"getScriptPartFromCode\",\n value: function getScriptPartFromCode(code) {\n if (!code || code.indexOf('-') < 0) return null;\n var p = code.split('-');\n if (p.length === 2) return null;\n p.pop();\n if (p[p.length - 1].toLowerCase() === 'x') return null;\n return this.formatLanguageCode(p.join('-'));\n }\n }, {\n key: \"getLanguagePartFromCode\",\n value: function getLanguagePartFromCode(code) {\n if (!code || code.indexOf('-') < 0) return code;\n var p = code.split('-');\n return this.formatLanguageCode(p[0]);\n }\n }, {\n key: \"formatLanguageCode\",\n value: function formatLanguageCode(code) {\n if (typeof code === 'string' && code.indexOf('-') > -1) {\n var specialCases = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab'];\n var p = code.split('-');\n\n if (this.options.lowerCaseLng) {\n p = p.map(function (part) {\n return part.toLowerCase();\n });\n } else if (p.length === 2) {\n p[0] = p[0].toLowerCase();\n p[1] = p[1].toUpperCase();\n if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());\n } else if (p.length === 3) {\n p[0] = p[0].toLowerCase();\n if (p[1].length === 2) p[1] = p[1].toUpperCase();\n if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase();\n if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());\n if (specialCases.indexOf(p[2].toLowerCase()) > -1) p[2] = capitalize(p[2].toLowerCase());\n }\n\n return p.join('-');\n }\n\n return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n }\n }, {\n key: \"isWhitelisted\",\n value: function isWhitelisted(code) {\n this.logger.deprecate('languageUtils.isWhitelisted', 'function \"isWhitelisted\" will be renamed to \"isSupportedCode\" in the next major - please make sure to rename it\\'s usage asap.');\n return this.isSupportedCode(code);\n }\n }, {\n key: \"isSupportedCode\",\n value: function isSupportedCode(code) {\n if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n code = this.getLanguagePartFromCode(code);\n }\n\n return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1;\n }\n }, {\n key: \"getBestMatchFromCodes\",\n value: function getBestMatchFromCodes(codes) {\n var _this = this;\n\n if (!codes) return null;\n var found;\n codes.forEach(function (code) {\n if (found) return;\n\n var cleanedLng = _this.formatLanguageCode(code);\n\n if (!_this.options.supportedLngs || _this.isSupportedCode(cleanedLng)) found = cleanedLng;\n });\n\n if (!found && this.options.supportedLngs) {\n codes.forEach(function (code) {\n if (found) return;\n\n var lngOnly = _this.getLanguagePartFromCode(code);\n\n if (_this.isSupportedCode(lngOnly)) return found = lngOnly;\n found = _this.options.supportedLngs.find(function (supportedLng) {\n if (supportedLng.indexOf(lngOnly) === 0) return supportedLng;\n });\n });\n }\n\n if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n return found;\n }\n }, {\n key: \"getFallbackCodes\",\n value: function getFallbackCodes(fallbacks, code) {\n if (!fallbacks) return [];\n if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n if (typeof fallbacks === 'string') fallbacks = [fallbacks];\n if (Object.prototype.toString.apply(fallbacks) === '[object Array]') return fallbacks;\n if (!code) return fallbacks[\"default\"] || [];\n var found = fallbacks[code];\n if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n if (!found) found = fallbacks[this.formatLanguageCode(code)];\n if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n if (!found) found = fallbacks[\"default\"];\n return found || [];\n }\n }, {\n key: \"toResolveHierarchy\",\n value: function toResolveHierarchy(code, fallbackCode) {\n var _this2 = this;\n\n var fallbackCodes = this.getFallbackCodes(fallbackCode || this.options.fallbackLng || [], code);\n var codes = [];\n\n var addCode = function addCode(c) {\n if (!c) return;\n\n if (_this2.isSupportedCode(c)) {\n codes.push(c);\n } else {\n _this2.logger.warn(\"rejecting language code not found in supportedLngs: \".concat(c));\n }\n };\n\n if (typeof code === 'string' && code.indexOf('-') > -1) {\n if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n } else if (typeof code === 'string') {\n addCode(this.formatLanguageCode(code));\n }\n\n fallbackCodes.forEach(function (fc) {\n if (codes.indexOf(fc) < 0) addCode(_this2.formatLanguageCode(fc));\n });\n return codes;\n }\n }]);\n\n return LanguageUtil;\n}();\n\nvar sets = [{\n lngs: ['ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'tl', 'ti', 'tr', 'uz', 'wa'],\n nr: [1, 2],\n fc: 1\n}, {\n lngs: ['af', 'an', 'ast', 'az', 'bg', 'bn', 'ca', 'da', 'de', 'dev', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fi', 'fo', 'fur', 'fy', 'gl', 'gu', 'ha', 'hi', 'hu', 'hy', 'ia', 'it', 'kk', 'kn', 'ku', 'lb', 'mai', 'ml', 'mn', 'mr', 'nah', 'nap', 'nb', 'ne', 'nl', 'nn', 'no', 'nso', 'pa', 'pap', 'pms', 'ps', 'pt-PT', 'rm', 'sco', 'se', 'si', 'so', 'son', 'sq', 'sv', 'sw', 'ta', 'te', 'tk', 'ur', 'yo'],\n nr: [1, 2],\n fc: 2\n}, {\n lngs: ['ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],\n nr: [1],\n fc: 3\n}, {\n lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'],\n nr: [1, 2, 5],\n fc: 4\n}, {\n lngs: ['ar'],\n nr: [0, 1, 2, 3, 11, 100],\n fc: 5\n}, {\n lngs: ['cs', 'sk'],\n nr: [1, 2, 5],\n fc: 6\n}, {\n lngs: ['csb', 'pl'],\n nr: [1, 2, 5],\n fc: 7\n}, {\n lngs: ['cy'],\n nr: [1, 2, 3, 8],\n fc: 8\n}, {\n lngs: ['fr'],\n nr: [1, 2],\n fc: 9\n}, {\n lngs: ['ga'],\n nr: [1, 2, 3, 7, 11],\n fc: 10\n}, {\n lngs: ['gd'],\n nr: [1, 2, 3, 20],\n fc: 11\n}, {\n lngs: ['is'],\n nr: [1, 2],\n fc: 12\n}, {\n lngs: ['jv'],\n nr: [0, 1],\n fc: 13\n}, {\n lngs: ['kw'],\n nr: [1, 2, 3, 4],\n fc: 14\n}, {\n lngs: ['lt'],\n nr: [1, 2, 10],\n fc: 15\n}, {\n lngs: ['lv'],\n nr: [1, 2, 0],\n fc: 16\n}, {\n lngs: ['mk'],\n nr: [1, 2],\n fc: 17\n}, {\n lngs: ['mnk'],\n nr: [0, 1, 2],\n fc: 18\n}, {\n lngs: ['mt'],\n nr: [1, 2, 11, 20],\n fc: 19\n}, {\n lngs: ['or'],\n nr: [2, 1],\n fc: 2\n}, {\n lngs: ['ro'],\n nr: [1, 2, 20],\n fc: 20\n}, {\n lngs: ['sl'],\n nr: [5, 1, 2, 3],\n fc: 21\n}, {\n lngs: ['he', 'iw'],\n nr: [1, 2, 20, 21],\n fc: 22\n}];\nvar _rulesPluralsTypes = {\n 1: function _(n) {\n return Number(n > 1);\n },\n 2: function _(n) {\n return Number(n != 1);\n },\n 3: function _(n) {\n return 0;\n },\n 4: function _(n) {\n return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n },\n 5: function _(n) {\n return Number(n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);\n },\n 6: function _(n) {\n return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);\n },\n 7: function _(n) {\n return Number(n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n },\n 8: function _(n) {\n return Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3);\n },\n 9: function _(n) {\n return Number(n >= 2);\n },\n 10: function _(n) {\n return Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4);\n },\n 11: function _(n) {\n return Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3);\n },\n 12: function _(n) {\n return Number(n % 10 != 1 || n % 100 == 11);\n },\n 13: function _(n) {\n return Number(n !== 0);\n },\n 14: function _(n) {\n return Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3);\n },\n 15: function _(n) {\n return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n },\n 16: function _(n) {\n return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);\n },\n 17: function _(n) {\n return Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1);\n },\n 18: function _(n) {\n return Number(n == 0 ? 0 : n == 1 ? 1 : 2);\n },\n 19: function _(n) {\n return Number(n == 1 ? 0 : n == 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3);\n },\n 20: function _(n) {\n return Number(n == 1 ? 0 : n == 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2);\n },\n 21: function _(n) {\n return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);\n },\n 22: function _(n) {\n return Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);\n }\n};\n\nfunction createRules() {\n var rules = {};\n sets.forEach(function (set) {\n set.lngs.forEach(function (l) {\n rules[l] = {\n numbers: set.nr,\n plurals: _rulesPluralsTypes[set.fc]\n };\n });\n });\n return rules;\n}\n\nvar PluralResolver = function () {\n function PluralResolver(languageUtils) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, PluralResolver);\n\n this.languageUtils = languageUtils;\n this.options = options;\n this.logger = baseLogger.create('pluralResolver');\n this.rules = createRules();\n }\n\n _createClass(PluralResolver, [{\n key: \"addRule\",\n value: function addRule(lng, obj) {\n this.rules[lng] = obj;\n }\n }, {\n key: \"getRule\",\n value: function getRule(code) {\n return this.rules[code] || this.rules[this.languageUtils.getLanguagePartFromCode(code)];\n }\n }, {\n key: \"needsPlural\",\n value: function needsPlural(code) {\n var rule = this.getRule(code);\n return rule && rule.numbers.length > 1;\n }\n }, {\n key: \"getPluralFormsOfKey\",\n value: function getPluralFormsOfKey(code, key) {\n return this.getSuffixes(code).map(function (suffix) {\n return key + suffix;\n });\n }\n }, {\n key: \"getSuffixes\",\n value: function getSuffixes(code) {\n var _this = this;\n\n var rule = this.getRule(code);\n\n if (!rule) {\n return [];\n }\n\n return rule.numbers.map(function (number) {\n return _this.getSuffix(code, number);\n });\n }\n }, {\n key: \"getSuffix\",\n value: function getSuffix(code, count) {\n var _this2 = this;\n\n var rule = this.getRule(code);\n\n if (rule) {\n var idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count));\n var suffix = rule.numbers[idx];\n\n if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {\n if (suffix === 2) {\n suffix = 'plural';\n } else if (suffix === 1) {\n suffix = '';\n }\n }\n\n var returnSuffix = function returnSuffix() {\n return _this2.options.prepend && suffix.toString() ? _this2.options.prepend + suffix.toString() : suffix.toString();\n };\n\n if (this.options.compatibilityJSON === 'v1') {\n if (suffix === 1) return '';\n if (typeof suffix === 'number') return \"_plural_\".concat(suffix.toString());\n return returnSuffix();\n } else if (this.options.compatibilityJSON === 'v2') {\n return returnSuffix();\n } else if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {\n return returnSuffix();\n }\n\n return this.options.prepend && idx.toString() ? this.options.prepend + idx.toString() : idx.toString();\n }\n\n this.logger.warn(\"no plural rule found for: \".concat(code));\n return '';\n }\n }]);\n\n return PluralResolver;\n}();\n\nvar Interpolator = function () {\n function Interpolator() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Interpolator);\n\n this.logger = baseLogger.create('interpolator');\n this.options = options;\n\n this.format = options.interpolation && options.interpolation.format || function (value) {\n return value;\n };\n\n this.init(options);\n }\n\n _createClass(Interpolator, [{\n key: \"init\",\n value: function init() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options.interpolation) options.interpolation = {\n escapeValue: true\n };\n var iOpts = options.interpolation;\n this.escape = iOpts.escape !== undefined ? iOpts.escape : escape;\n this.escapeValue = iOpts.escapeValue !== undefined ? iOpts.escapeValue : true;\n this.useRawValueToEscape = iOpts.useRawValueToEscape !== undefined ? iOpts.useRawValueToEscape : false;\n this.prefix = iOpts.prefix ? regexEscape(iOpts.prefix) : iOpts.prefixEscaped || '{{';\n this.suffix = iOpts.suffix ? regexEscape(iOpts.suffix) : iOpts.suffixEscaped || '}}';\n this.formatSeparator = iOpts.formatSeparator ? iOpts.formatSeparator : iOpts.formatSeparator || ',';\n this.unescapePrefix = iOpts.unescapeSuffix ? '' : iOpts.unescapePrefix || '-';\n this.unescapeSuffix = this.unescapePrefix ? '' : iOpts.unescapeSuffix || '';\n this.nestingPrefix = iOpts.nestingPrefix ? regexEscape(iOpts.nestingPrefix) : iOpts.nestingPrefixEscaped || regexEscape('$t(');\n this.nestingSuffix = iOpts.nestingSuffix ? regexEscape(iOpts.nestingSuffix) : iOpts.nestingSuffixEscaped || regexEscape(')');\n this.nestingOptionsSeparator = iOpts.nestingOptionsSeparator ? iOpts.nestingOptionsSeparator : iOpts.nestingOptionsSeparator || ',';\n this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000;\n this.alwaysFormat = iOpts.alwaysFormat !== undefined ? iOpts.alwaysFormat : false;\n this.resetRegExp();\n }\n }, {\n key: \"reset\",\n value: function reset() {\n if (this.options) this.init(this.options);\n }\n }, {\n key: \"resetRegExp\",\n value: function resetRegExp() {\n var regexpStr = \"\".concat(this.prefix, \"(.+?)\").concat(this.suffix);\n this.regexp = new RegExp(regexpStr, 'g');\n var regexpUnescapeStr = \"\".concat(this.prefix).concat(this.unescapePrefix, \"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);\n this.regexpUnescape = new RegExp(regexpUnescapeStr, 'g');\n var nestingRegexpStr = \"\".concat(this.nestingPrefix, \"(.+?)\").concat(this.nestingSuffix);\n this.nestingRegexp = new RegExp(nestingRegexpStr, 'g');\n }\n }, {\n key: \"interpolate\",\n value: function interpolate(str, data, lng, options) {\n var _this = this;\n\n var match;\n var value;\n var replaces;\n var defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n\n function regexSafe(val) {\n return val.replace(/\\$/g, '$$$$');\n }\n\n var handleFormat = function handleFormat(key) {\n if (key.indexOf(_this.formatSeparator) < 0) {\n var path = getPathWithDefaults(data, defaultData, key);\n return _this.alwaysFormat ? _this.format(path, undefined, lng, _objectSpread({}, options, data, {\n interpolationkey: key\n })) : path;\n }\n\n var p = key.split(_this.formatSeparator);\n var k = p.shift().trim();\n var f = p.join(_this.formatSeparator).trim();\n return _this.format(getPathWithDefaults(data, defaultData, k), f, lng, _objectSpread({}, options, data, {\n interpolationkey: k\n }));\n };\n\n this.resetRegExp();\n var missingInterpolationHandler = options && options.missingInterpolationHandler || this.options.missingInterpolationHandler;\n var skipOnVariables = options && options.interpolation && options.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;\n var todos = [{\n regex: this.regexpUnescape,\n safeValue: function safeValue(val) {\n return regexSafe(val);\n }\n }, {\n regex: this.regexp,\n safeValue: function safeValue(val) {\n return _this.escapeValue ? regexSafe(_this.escape(val)) : regexSafe(val);\n }\n }];\n todos.forEach(function (todo) {\n replaces = 0;\n\n while (match = todo.regex.exec(str)) {\n value = handleFormat(match[1].trim());\n\n if (value === undefined) {\n if (typeof missingInterpolationHandler === 'function') {\n var temp = missingInterpolationHandler(str, match, options);\n value = typeof temp === 'string' ? temp : '';\n } else if (skipOnVariables) {\n value = match[0];\n continue;\n } else {\n _this.logger.warn(\"missed to pass in variable \".concat(match[1], \" for interpolating \").concat(str));\n\n value = '';\n }\n } else if (typeof value !== 'string' && !_this.useRawValueToEscape) {\n value = makeString(value);\n }\n\n var safeValue = todo.safeValue(value);\n str = str.replace(match[0], safeValue);\n\n if (skipOnVariables) {\n todo.regex.lastIndex += safeValue.length;\n todo.regex.lastIndex -= match[0].length;\n } else {\n todo.regex.lastIndex = 0;\n }\n\n replaces++;\n\n if (replaces >= _this.maxReplaces) {\n break;\n }\n }\n });\n return str;\n }\n }, {\n key: \"nest\",\n value: function nest(str, fc) {\n var _this2 = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var match;\n var value;\n\n var clonedOptions = _objectSpread({}, options);\n\n clonedOptions.applyPostProcessor = false;\n delete clonedOptions.defaultValue;\n\n function handleHasOptions(key, inheritedOptions) {\n var sep = this.nestingOptionsSeparator;\n if (key.indexOf(sep) < 0) return key;\n var c = key.split(new RegExp(\"\".concat(sep, \"[ ]*{\")));\n var optionsString = \"{\".concat(c[1]);\n key = c[0];\n optionsString = this.interpolate(optionsString, clonedOptions);\n optionsString = optionsString.replace(/'/g, '\"');\n\n try {\n clonedOptions = JSON.parse(optionsString);\n if (inheritedOptions) clonedOptions = _objectSpread({}, inheritedOptions, clonedOptions);\n } catch (e) {\n this.logger.warn(\"failed parsing options string in nesting for key \".concat(key), e);\n return \"\".concat(key).concat(sep).concat(optionsString);\n }\n\n delete clonedOptions.defaultValue;\n return key;\n }\n\n while (match = this.nestingRegexp.exec(str)) {\n var formatters = [];\n var doReduce = false;\n\n if (match[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match[1])) {\n var r = match[1].split(this.formatSeparator).map(function (elem) {\n return elem.trim();\n });\n match[1] = r.shift();\n formatters = r;\n doReduce = true;\n }\n\n value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n if (value && match[0] === str && typeof value !== 'string') return value;\n if (typeof value !== 'string') value = makeString(value);\n\n if (!value) {\n this.logger.warn(\"missed to resolve \".concat(match[1], \" for nesting \").concat(str));\n value = '';\n }\n\n if (doReduce) {\n value = formatters.reduce(function (v, f) {\n return _this2.format(v, f, options.lng, _objectSpread({}, options, {\n interpolationkey: match[1].trim()\n }));\n }, value.trim());\n }\n\n str = str.replace(match[0], value);\n this.regexp.lastIndex = 0;\n }\n\n return str;\n }\n }]);\n\n return Interpolator;\n}();\n\nfunction remove(arr, what) {\n var found = arr.indexOf(what);\n\n while (found !== -1) {\n arr.splice(found, 1);\n found = arr.indexOf(what);\n }\n}\n\nvar Connector = function (_EventEmitter) {\n _inherits(Connector, _EventEmitter);\n\n function Connector(backend, store, services) {\n var _this;\n\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _classCallCheck(this, Connector);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this));\n\n if (isIE10) {\n EventEmitter.call(_assertThisInitialized(_this));\n }\n\n _this.backend = backend;\n _this.store = store;\n _this.services = services;\n _this.languageUtils = services.languageUtils;\n _this.options = options;\n _this.logger = baseLogger.create('backendConnector');\n _this.state = {};\n _this.queue = [];\n\n if (_this.backend && _this.backend.init) {\n _this.backend.init(services, options.backend, options);\n }\n\n return _this;\n }\n\n _createClass(Connector, [{\n key: \"queueLoad\",\n value: function queueLoad(languages, namespaces, options, callback) {\n var _this2 = this;\n\n var toLoad = [];\n var pending = [];\n var toLoadLanguages = [];\n var toLoadNamespaces = [];\n languages.forEach(function (lng) {\n var hasAllNamespaces = true;\n namespaces.forEach(function (ns) {\n var name = \"\".concat(lng, \"|\").concat(ns);\n\n if (!options.reload && _this2.store.hasResourceBundle(lng, ns)) {\n _this2.state[name] = 2;\n } else if (_this2.state[name] < 0) ;else if (_this2.state[name] === 1) {\n if (pending.indexOf(name) < 0) pending.push(name);\n } else {\n _this2.state[name] = 1;\n hasAllNamespaces = false;\n if (pending.indexOf(name) < 0) pending.push(name);\n if (toLoad.indexOf(name) < 0) toLoad.push(name);\n if (toLoadNamespaces.indexOf(ns) < 0) toLoadNamespaces.push(ns);\n }\n });\n if (!hasAllNamespaces) toLoadLanguages.push(lng);\n });\n\n if (toLoad.length || pending.length) {\n this.queue.push({\n pending: pending,\n loaded: {},\n errors: [],\n callback: callback\n });\n }\n\n return {\n toLoad: toLoad,\n pending: pending,\n toLoadLanguages: toLoadLanguages,\n toLoadNamespaces: toLoadNamespaces\n };\n }\n }, {\n key: \"loaded\",\n value: function loaded(name, err, data) {\n var s = name.split('|');\n var lng = s[0];\n var ns = s[1];\n if (err) this.emit('failedLoading', lng, ns, err);\n\n if (data) {\n this.store.addResourceBundle(lng, ns, data);\n }\n\n this.state[name] = err ? -1 : 2;\n var loaded = {};\n this.queue.forEach(function (q) {\n pushPath(q.loaded, [lng], ns);\n remove(q.pending, name);\n if (err) q.errors.push(err);\n\n if (q.pending.length === 0 && !q.done) {\n Object.keys(q.loaded).forEach(function (l) {\n if (!loaded[l]) loaded[l] = [];\n\n if (q.loaded[l].length) {\n q.loaded[l].forEach(function (ns) {\n if (loaded[l].indexOf(ns) < 0) loaded[l].push(ns);\n });\n }\n });\n q.done = true;\n\n if (q.errors.length) {\n q.callback(q.errors);\n } else {\n q.callback();\n }\n }\n });\n this.emit('loaded', loaded);\n this.queue = this.queue.filter(function (q) {\n return !q.done;\n });\n }\n }, {\n key: \"read\",\n value: function read(lng, ns, fcName) {\n var _this3 = this;\n\n var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 350;\n var callback = arguments.length > 5 ? arguments[5] : undefined;\n if (!lng.length) return callback(null, {});\n return this.backend[fcName](lng, ns, function (err, data) {\n if (err && data && tried < 5) {\n setTimeout(function () {\n _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);\n }, wait);\n return;\n }\n\n callback(err, data);\n });\n }\n }, {\n key: \"prepareLoading\",\n value: function prepareLoading(languages, namespaces) {\n var _this4 = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var callback = arguments.length > 3 ? arguments[3] : undefined;\n\n if (!this.backend) {\n this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n return callback && callback();\n }\n\n if (typeof languages === 'string') languages = this.languageUtils.toResolveHierarchy(languages);\n if (typeof namespaces === 'string') namespaces = [namespaces];\n var toLoad = this.queueLoad(languages, namespaces, options, callback);\n\n if (!toLoad.toLoad.length) {\n if (!toLoad.pending.length) callback();\n return null;\n }\n\n toLoad.toLoad.forEach(function (name) {\n _this4.loadOne(name);\n });\n }\n }, {\n key: \"load\",\n value: function load(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {}, callback);\n }\n }, {\n key: \"reload\",\n value: function reload(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {\n reload: true\n }, callback);\n }\n }, {\n key: \"loadOne\",\n value: function loadOne(name) {\n var _this5 = this;\n\n var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var s = name.split('|');\n var lng = s[0];\n var ns = s[1];\n this.read(lng, ns, 'read', undefined, undefined, function (err, data) {\n if (err) _this5.logger.warn(\"\".concat(prefix, \"loading namespace \").concat(ns, \" for language \").concat(lng, \" failed\"), err);\n if (!err && data) _this5.logger.log(\"\".concat(prefix, \"loaded namespace \").concat(ns, \" for language \").concat(lng), data);\n\n _this5.loaded(name, err, data);\n });\n }\n }, {\n key: \"saveMissing\",\n value: function saveMissing(languages, namespace, key, fallbackValue, isUpdate) {\n var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};\n\n if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(namespace)) {\n this.logger.warn(\"did not save key \\\"\".concat(key, \"\\\" as the namespace \\\"\").concat(namespace, \"\\\" was not yet loaded\"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n return;\n }\n\n if (key === undefined || key === null || key === '') return;\n\n if (this.backend && this.backend.create) {\n this.backend.create(languages, namespace, key, fallbackValue, null, _objectSpread({}, options, {\n isUpdate: isUpdate\n }));\n }\n\n if (!languages || !languages[0]) return;\n this.store.addResource(languages[0], namespace, key, fallbackValue);\n }\n }]);\n\n return Connector;\n}(EventEmitter);\n\nfunction get() {\n return {\n debug: false,\n initImmediate: true,\n ns: ['translation'],\n defaultNS: ['translation'],\n fallbackLng: ['dev'],\n fallbackNS: false,\n whitelist: false,\n nonExplicitWhitelist: false,\n supportedLngs: false,\n nonExplicitSupportedLngs: false,\n load: 'all',\n preload: false,\n simplifyPluralSuffix: true,\n keySeparator: '.',\n nsSeparator: ':',\n pluralSeparator: '_',\n contextSeparator: '_',\n partialBundledLanguages: false,\n saveMissing: false,\n updateMissing: false,\n saveMissingTo: 'fallback',\n saveMissingPlurals: true,\n missingKeyHandler: false,\n missingInterpolationHandler: false,\n postProcess: false,\n postProcessPassResolved: false,\n returnNull: true,\n returnEmptyString: true,\n returnObjects: false,\n joinArrays: false,\n returnedObjectHandler: false,\n parseMissingKeyHandler: false,\n appendNamespaceToMissingKey: false,\n appendNamespaceToCIMode: false,\n overloadTranslationOptionHandler: function handle(args) {\n var ret = {};\n if (_typeof(args[1]) === 'object') ret = args[1];\n if (typeof args[1] === 'string') ret.defaultValue = args[1];\n if (typeof args[2] === 'string') ret.tDescription = args[2];\n\n if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {\n var options = args[3] || args[2];\n Object.keys(options).forEach(function (key) {\n ret[key] = options[key];\n });\n }\n\n return ret;\n },\n interpolation: {\n escapeValue: true,\n format: function format(value, _format, lng, options) {\n return value;\n },\n prefix: '{{',\n suffix: '}}',\n formatSeparator: ',',\n unescapePrefix: '-',\n nestingPrefix: '$t(',\n nestingSuffix: ')',\n nestingOptionsSeparator: ',',\n maxReplaces: 1000,\n skipOnVariables: false\n }\n };\n}\n\nfunction transformOptions(options) {\n if (typeof options.ns === 'string') options.ns = [options.ns];\n if (typeof options.fallbackLng === 'string') options.fallbackLng = [options.fallbackLng];\n if (typeof options.fallbackNS === 'string') options.fallbackNS = [options.fallbackNS];\n\n if (options.whitelist) {\n if (options.whitelist && options.whitelist.indexOf('cimode') < 0) {\n options.whitelist = options.whitelist.concat(['cimode']);\n }\n\n options.supportedLngs = options.whitelist;\n }\n\n if (options.nonExplicitWhitelist) {\n options.nonExplicitSupportedLngs = options.nonExplicitWhitelist;\n }\n\n if (options.supportedLngs && options.supportedLngs.indexOf('cimode') < 0) {\n options.supportedLngs = options.supportedLngs.concat(['cimode']);\n }\n\n return options;\n}\n\nfunction noop() {}\n\nvar I18n = function (_EventEmitter) {\n _inherits(I18n, _EventEmitter);\n\n function I18n() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var callback = arguments.length > 1 ? arguments[1] : undefined;\n\n _classCallCheck(this, I18n);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(I18n).call(this));\n\n if (isIE10) {\n EventEmitter.call(_assertThisInitialized(_this));\n }\n\n _this.options = transformOptions(options);\n _this.services = {};\n _this.logger = baseLogger;\n _this.modules = {\n external: []\n };\n\n if (callback && !_this.isInitialized && !options.isClone) {\n if (!_this.options.initImmediate) {\n _this.init(options, callback);\n\n return _possibleConstructorReturn(_this, _assertThisInitialized(_this));\n }\n\n setTimeout(function () {\n _this.init(options, callback);\n }, 0);\n }\n\n return _this;\n }\n\n _createClass(I18n, [{\n key: \"init\",\n value: function init() {\n var _this2 = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var callback = arguments.length > 1 ? arguments[1] : undefined;\n\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n if (options.whitelist && !options.supportedLngs) {\n this.logger.deprecate('whitelist', 'option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap.');\n }\n\n if (options.nonExplicitWhitelist && !options.nonExplicitSupportedLngs) {\n this.logger.deprecate('whitelist', 'options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap.');\n }\n\n this.options = _objectSpread({}, get(), this.options, transformOptions(options));\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n\n function createClassOnDemand(ClassOrObject) {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n }\n\n if (!this.options.isClone) {\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n\n var lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n var s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator,\n compatibilityJSON: this.options.compatibilityJSON,\n simplifyPluralSuffix: this.options.simplifyPluralSuffix\n });\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.on('*', function (event) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n _this2.emit.apply(_this2, [event].concat(args));\n });\n\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n s.languageDetector.init(s, this.options.detection, this.options);\n }\n\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', function (event) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n _this2.emit.apply(_this2, [event].concat(args));\n });\n this.modules.external.forEach(function (m) {\n if (m.init) m.init(_this2);\n });\n }\n\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n\n var storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(function (fcName) {\n _this2[fcName] = function () {\n var _this2$store;\n\n return (_this2$store = _this2.store)[fcName].apply(_this2$store, arguments);\n };\n });\n var storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(function (fcName) {\n _this2[fcName] = function () {\n var _this2$store2;\n\n (_this2$store2 = _this2.store)[fcName].apply(_this2$store2, arguments);\n\n return _this2;\n };\n });\n var deferred = defer();\n\n var load = function load() {\n var finish = function finish(err, t) {\n if (_this2.isInitialized) _this2.logger.warn('init: i18next is already initialized. You should call init just once!');\n _this2.isInitialized = true;\n if (!_this2.options.isClone) _this2.logger.log('initialized', _this2.options);\n\n _this2.emit('initialized', _this2.options);\n\n deferred.resolve(t);\n callback(err, t);\n };\n\n if (_this2.languages && _this2.options.compatibilityAPI !== 'v1' && !_this2.isInitialized) return finish(null, _this2.t.bind(_this2));\n\n _this2.changeLanguage(_this2.options.lng, finish);\n };\n\n if (this.options.resources || !this.options.initImmediate) {\n load();\n } else {\n setTimeout(load, 0);\n }\n\n return deferred;\n }\n }, {\n key: \"loadResources\",\n value: function loadResources(language) {\n var _this3 = this;\n\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n var usedCallback = callback;\n var usedLng = typeof language === 'string' ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng && usedLng.toLowerCase() === 'cimode') return usedCallback();\n var toLoad = [];\n\n var append = function append(lng) {\n if (!lng) return;\n\n var lngs = _this3.services.languageUtils.toResolveHierarchy(lng);\n\n lngs.forEach(function (l) {\n if (toLoad.indexOf(l) < 0) toLoad.push(l);\n });\n };\n\n if (!usedLng) {\n var fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(function (l) {\n return append(l);\n });\n } else {\n append(usedLng);\n }\n\n if (this.options.preload) {\n this.options.preload.forEach(function (l) {\n return append(l);\n });\n }\n\n this.services.backendConnector.load(toLoad, this.options.ns, usedCallback);\n } else {\n usedCallback(null);\n }\n }\n }, {\n key: \"reloadResources\",\n value: function reloadResources(lngs, ns, callback) {\n var deferred = defer();\n if (!lngs) lngs = this.languages;\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, function (err) {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n }, {\n key: \"use\",\n value: function use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n\n if (module.type === 'backend') {\n this.modules.backend = module;\n }\n\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n\n if (module.type === 'languageDetector') {\n this.modules.languageDetector = module;\n }\n\n if (module.type === 'i18nFormat') {\n this.modules.i18nFormat = module;\n }\n\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n }\n\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n\n return this;\n }\n }, {\n key: \"changeLanguage\",\n value: function changeLanguage(lng, callback) {\n var _this4 = this;\n\n this.isLanguageChangingTo = lng;\n var deferred = defer();\n this.emit('languageChanging', lng);\n\n var done = function done(err, l) {\n if (l) {\n _this4.language = l;\n _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);\n\n _this4.translator.changeLanguage(l);\n\n _this4.isLanguageChangingTo = undefined;\n\n _this4.emit('languageChanged', l);\n\n _this4.logger.log('languageChanged', l);\n } else {\n _this4.isLanguageChangingTo = undefined;\n }\n\n deferred.resolve(function () {\n return _this4.t.apply(_this4, arguments);\n });\n if (callback) callback(err, function () {\n return _this4.t.apply(_this4, arguments);\n });\n };\n\n var setLng = function setLng(lngs) {\n var l = typeof lngs === 'string' ? lngs : _this4.services.languageUtils.getBestMatchFromCodes(lngs);\n\n if (l) {\n if (!_this4.language) {\n _this4.language = l;\n _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);\n }\n\n if (!_this4.translator.language) _this4.translator.changeLanguage(l);\n if (_this4.services.languageDetector) _this4.services.languageDetector.cacheUserLanguage(l);\n }\n\n _this4.loadResources(l, function (err) {\n done(err, l);\n });\n };\n\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n this.services.languageDetector.detect(setLng);\n } else {\n setLng(lng);\n }\n\n return deferred;\n }\n }, {\n key: \"getFixedT\",\n value: function getFixedT(lng, ns) {\n var _this5 = this;\n\n var fixedT = function fixedT(key, opts) {\n var options;\n\n if (_typeof(opts) !== 'object') {\n for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {\n rest[_key3 - 2] = arguments[_key3];\n }\n\n options = _this5.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n options = _objectSpread({}, opts);\n }\n\n options.lng = options.lng || fixedT.lng;\n options.lngs = options.lngs || fixedT.lngs;\n options.ns = options.ns || fixedT.ns;\n return _this5.t(key, options);\n };\n\n if (typeof lng === 'string') {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n\n fixedT.ns = ns;\n return fixedT;\n }\n }, {\n key: \"t\",\n value: function t() {\n var _this$translator;\n\n return this.translator && (_this$translator = this.translator).translate.apply(_this$translator, arguments);\n }\n }, {\n key: \"exists\",\n value: function exists() {\n var _this$translator2;\n\n return this.translator && (_this$translator2 = this.translator).exists.apply(_this$translator2, arguments);\n }\n }, {\n key: \"setDefaultNamespace\",\n value: function setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n }, {\n key: \"hasLoadedNamespace\",\n value: function hasLoadedNamespace(ns) {\n var _this6 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n\n var lng = this.languages[0];\n var fallbackLng = this.options ? this.options.fallbackLng : false;\n var lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n\n var loadNotPending = function loadNotPending(l, n) {\n var loadState = _this6.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n\n return loadState === -1 || loadState === 2;\n };\n\n if (options.precheck) {\n var preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n }, {\n key: \"loadNamespaces\",\n value: function loadNamespaces(ns, callback) {\n var _this7 = this;\n\n var deferred = defer();\n\n if (!this.options.ns) {\n callback && callback();\n return Promise.resolve();\n }\n\n if (typeof ns === 'string') ns = [ns];\n ns.forEach(function (n) {\n if (_this7.options.ns.indexOf(n) < 0) _this7.options.ns.push(n);\n });\n this.loadResources(function (err) {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n }, {\n key: \"loadLanguages\",\n value: function loadLanguages(lngs, callback) {\n var deferred = defer();\n if (typeof lngs === 'string') lngs = [lngs];\n var preloaded = this.options.preload || [];\n var newLngs = lngs.filter(function (lng) {\n return preloaded.indexOf(lng) < 0;\n });\n\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(function (err) {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n }, {\n key: \"dir\",\n value: function dir(lng) {\n if (!lng) lng = this.languages && this.languages.length > 0 ? this.languages[0] : this.language;\n if (!lng) return 'rtl';\n var rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam'];\n return rtlLngs.indexOf(this.services.languageUtils.getLanguagePartFromCode(lng)) >= 0 ? 'rtl' : 'ltr';\n }\n }, {\n key: \"createInstance\",\n value: function createInstance() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var callback = arguments.length > 1 ? arguments[1] : undefined;\n return new I18n(options, callback);\n }\n }, {\n key: \"cloneInstance\",\n value: function cloneInstance() {\n var _this8 = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n\n var mergedOptions = _objectSpread({}, this.options, options, {\n isClone: true\n });\n\n var clone = new I18n(mergedOptions);\n var membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(function (m) {\n clone[m] = _this8[m];\n });\n clone.services = _objectSpread({}, this.services);\n clone.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n clone.translator = new Translator(clone.services, clone.options);\n clone.translator.on('*', function (event) {\n for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n args[_key4 - 1] = arguments[_key4];\n }\n\n clone.emit.apply(clone, [event].concat(args));\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = clone.options;\n clone.translator.backendConnector.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n return clone;\n }\n }]);\n\n return I18n;\n}(EventEmitter);\n\nvar i18next = new I18n();\nexport default i18next;","import i18n, { TFunction } from 'i18next';\nimport moment from 'moment';\nimport Dayjs from 'dayjs';\nimport calendar from 'dayjs/plugin/calendar';\nimport updateLocale from 'dayjs/plugin/updateLocale';\nimport LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport localeData from 'dayjs/plugin/localeData';\nimport relativeTime from 'dayjs/plugin/relativeTime';\n\nimport {\n enTranslations,\n nlTranslations,\n ruTranslations,\n trTranslations,\n frTranslations,\n hiTranslations,\n itTranslations,\n} from './locales';\n\nconst defaultNS = 'translation';\nconst defaultLng = 'en';\n\nimport 'dayjs/locale/nl';\nimport 'dayjs/locale/ru';\nimport 'dayjs/locale/tr';\nimport 'dayjs/locale/fr';\nimport 'dayjs/locale/hi';\nimport 'dayjs/locale/it';\n// These locale imports also set these locale globally.\n// So As a last step I am going to import english locale\n// to make sure I don't mess up language at other places in app.\nimport 'dayjs/locale/en';\nimport { UR } from 'getstream';\n\nDayjs.extend(updateLocale);\n\nDayjs.updateLocale('nl', {\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n});\nDayjs.updateLocale('it', {\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: '[lo scorso] dddd [alle] LT',\n sameElse: 'L',\n },\n});\nDayjs.updateLocale('hi', {\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L',\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour(hour: number, meridiem: string) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n return hour;\n },\n meridiem(hour: number) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n});\nDayjs.updateLocale('fr', {\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n});\nDayjs.updateLocale('tr', {\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L',\n },\n});\nDayjs.updateLocale('ru', {\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n },\n});\n\nconst en_locale = {\n formats: {},\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n relativeTime: {},\n weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n};\n\ntype Options = {\n DateTimeParser?: typeof Dayjs;\n dayjsLocaleConfigForLanguage?: Partial;\n debug?: boolean;\n disableDateTimeTranslations?: boolean;\n language?: string;\n logger?: (msg?: string) => void;\n translationsForLanguage?: typeof enTranslations;\n};\n\nconst defaultStreami18nOptions = {\n language: 'en',\n disableDateTimeTranslations: false,\n debug: false,\n logger: (msg: string) => console.warn(msg),\n dayjsLocaleConfigForLanguage: null,\n DateTimeParser: Dayjs,\n};\n\n// Type guards to check DayJs\nconst isDayJs = (dateTimeParser: typeof Dayjs | typeof moment): dateTimeParser is typeof Dayjs =>\n (dateTimeParser as typeof Dayjs).extend !== undefined;\n\nexport type TDateTimeParser = (input?: string | number | Date) => Dayjs.Dayjs | moment.Moment;\n\nexport type LanguageCallbackFn = (t: TFunction) => void;\n\nexport class Streami18n {\n i18nInstance = i18n.createInstance();\n Dayjs = null;\n setLanguageCallback: LanguageCallbackFn = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function\n initialized = false;\n\n t: TFunction = (key: string) => key;\n tDateTimeParser: TDateTimeParser;\n\n translations: Record> = {\n en: { [defaultNS]: enTranslations },\n nl: { [defaultNS]: nlTranslations },\n ru: { [defaultNS]: ruTranslations },\n tr: { [defaultNS]: trTranslations },\n fr: { [defaultNS]: frTranslations },\n hi: { [defaultNS]: hiTranslations },\n it: { [defaultNS]: itTranslations },\n };\n /**\n * dayjs.updateLocale('nl') also changes the global locale. We don't want to do that\n * when user calls registerTranslation() function. So intead we will store the locale configs\n * given to registerTranslation() function in `dayjsLocales` object, and register the required locale\n * with moment, when setLanguage is called.\n * */\n dayjsLocales: Record> = {};\n\n /**\n * Initialize properties used in constructor\n */\n logger: (msg: string) => void;\n currentLanguage: string;\n DateTimeParser: typeof Dayjs;\n isCustomDateTimeParser: boolean;\n i18nextConfig: {\n debug: boolean;\n fallbackLng: false;\n interpolation: { escapeValue: boolean };\n keySeparator: false;\n lng: string;\n nsSeparator: false;\n parseMissingKeyHandler: (key: string) => string;\n };\n\n /**\n * Contructor accepts following options:\n * - language (String) default: 'en'\n * Language code e.g., en, tr\n *\n * - translationsForLanguage (object)\n * Translations object. Please check src/i18n/en.json for example.\n *\n * - disableDateTimeTranslations (boolean) default: false\n * Disable translations for datetimes\n *\n * - debug (boolean) default: false\n * Enable debug mode in internal i18n class\n *\n * - logger (function) default: () => {}\n * Logger function to log warnings/errors from this class\n *\n * - dayjsLocaleConfigForLanguage (object) default: 'enConfig'\n * [Config object](https://momentjs.com/docs/#/i18n/changing-locale/) for internal moment object,\n * corresponding to language (param)\n *\n * - DateTimeParser (function) Moment or Dayjs instance/function.\n * Make sure to load all the required locales in this Moment or Dayjs instance that you will be provide to Streami18n\n *\n * @param {*} options\n */\n constructor(options: Options = {}) {\n const finalOptions = {\n ...defaultStreami18nOptions,\n ...options,\n };\n // Prepare the i18next configuration.\n this.logger = finalOptions.logger;\n\n this.currentLanguage = finalOptions.language;\n this.DateTimeParser = finalOptions.DateTimeParser;\n\n try {\n // This is a shallow check to see if given parser is instance of Dayjs.\n // For some reason Dayjs.isDayjs(this.DateTimeParser()) doesn't work.\n if (this.DateTimeParser && isDayJs(this.DateTimeParser)) {\n this.DateTimeParser.extend(LocalizedFormat);\n this.DateTimeParser.extend(calendar);\n this.DateTimeParser.extend(localeData);\n this.DateTimeParser.extend(relativeTime);\n }\n } catch (error) {\n throw Error(\n `Streami18n: Looks like you wanted to provide Dayjs instance, but something went wrong while adding plugins ${error}`,\n );\n }\n\n this.isCustomDateTimeParser = !!options.DateTimeParser;\n const translationsForLanguage = finalOptions.translationsForLanguage;\n\n if (translationsForLanguage) {\n this.translations[this.currentLanguage] = {\n [defaultNS]: translationsForLanguage,\n };\n }\n\n // If translations don't exist for given language, then set it as empty object.\n if (!this.translations[this.currentLanguage]) {\n this.translations[this.currentLanguage] = {\n [defaultNS]: {},\n };\n }\n\n this.i18nextConfig = {\n nsSeparator: false,\n keySeparator: false,\n fallbackLng: false,\n debug: finalOptions.debug,\n lng: this.currentLanguage,\n interpolation: { escapeValue: false },\n\n parseMissingKeyHandler: (key) => {\n this.logger(`Streami18n: Missing translation for key: ${key}`);\n\n return key;\n },\n };\n\n this.validateCurrentLanguage();\n\n const dayjsLocaleConfigForLanguage = finalOptions.dayjsLocaleConfigForLanguage;\n\n if (dayjsLocaleConfigForLanguage) {\n this.addOrUpdateLocale(this.currentLanguage, {\n ...dayjsLocaleConfigForLanguage,\n });\n } else if (!this.localeExists(this.currentLanguage)) {\n this.logger(\n `Streami18n: Streami18n(...) - Locale config for ${this.currentLanguage} does not exist in momentjs.` +\n `Please import the locale file using \"import 'moment/locale/${this.currentLanguage}';\" in your app or ` +\n `register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)`,\n );\n }\n\n this.tDateTimeParser = (timestamp) => {\n if (finalOptions.disableDateTimeTranslations || !this.localeExists(this.currentLanguage)) {\n return this.DateTimeParser(timestamp).locale(defaultLng);\n }\n return this.DateTimeParser(timestamp).locale(this.currentLanguage);\n };\n }\n\n /**\n * Initializes the i18next instance with configuration (which enables natural language as default keys)\n */\n async init() {\n this.validateCurrentLanguage();\n\n try {\n this.t = await this.i18nInstance.init({\n ...this.i18nextConfig,\n resources: this.translations,\n lng: this.currentLanguage,\n });\n this.initialized = true;\n } catch (error) {\n this.logger(`Something went wrong with init: ${error}`);\n }\n\n return {\n t: this.t,\n tDateTimeParser: this.tDateTimeParser,\n };\n }\n\n localeExists = (language: string) => {\n if (this.isCustomDateTimeParser) return true;\n\n return Object.keys(Dayjs.Ls).indexOf(language) > -1;\n };\n\n validateCurrentLanguage = () => {\n const availableLanguages = Object.keys(this.translations);\n if (availableLanguages.indexOf(this.currentLanguage) === -1) {\n this.logger(\n `Streami18n: '${this.currentLanguage}' language is not registered.` +\n ` Please make sure to call streami18n.registerTranslation('${this.currentLanguage}', {...}) or ` +\n `use one the built-in supported languages - ${this.getAvailableLanguages()}`,\n );\n\n this.currentLanguage = defaultLng;\n }\n };\n\n /** Returns an instance of i18next used within this class instance */\n geti18Instance = () => this.i18nInstance;\n\n /** Returns list of available languages. */\n getAvailableLanguages = () => Object.keys(this.translations);\n\n /** Returns all the translation dictionary for all inbuilt-languages */\n getTranslations = () => this.translations;\n\n /**\n * Returns current version translator function.\n */\n async getTranslators() {\n if (!this.initialized) {\n if (this.dayjsLocales[this.currentLanguage]) {\n this.addOrUpdateLocale(this.currentLanguage, this.dayjsLocales[this.currentLanguage]);\n }\n return await this.init();\n } else {\n return {\n t: this.t,\n tDateTimeParser: this.tDateTimeParser,\n };\n }\n }\n\n /**\n * Register translation\n */\n registerTranslation(language: string, translation: typeof enTranslations, customDayjsLocale?: Partial) {\n if (!translation) {\n this.logger(\n `Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation`,\n );\n return;\n }\n\n if (!this.translations[language]) {\n this.translations[language] = { [defaultNS]: translation };\n } else {\n this.translations[language][defaultNS] = translation;\n }\n\n if (customDayjsLocale) {\n this.dayjsLocales[language] = { ...customDayjsLocale };\n } else if (!this.localeExists(language)) {\n this.logger(\n `Streami18n: registerTranslation(language, translation, customDayjsLocale) - ` +\n `Locale config for ${language} does not exist in Dayjs.` +\n `Please import the locale file using \"import 'dayjs/locale/${language}';\" in your app or ` +\n `register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)`,\n );\n }\n\n if (this.initialized) {\n this.i18nInstance.addResources(language, defaultNS, translation);\n }\n }\n\n addOrUpdateLocale(key: string, config: Partial) {\n if (this.localeExists(key)) {\n Dayjs.updateLocale(key, { ...config });\n } else {\n // Merging the custom locale config with en config, so missing keys can default to english.\n Dayjs.locale({ name: key, ...en_locale, ...config }, undefined, true);\n }\n }\n\n /**\n * Changes the language.\n */\n async setLanguage(language: string) {\n this.currentLanguage = language;\n\n if (!this.initialized) return;\n\n try {\n const t = await this.i18nInstance.changeLanguage(language);\n if (this.dayjsLocales[language]) {\n this.addOrUpdateLocale(this.currentLanguage, this.dayjsLocales[this.currentLanguage]);\n }\n\n this.setLanguageCallback(t);\n return t;\n } catch (e) {\n this.logger(`Failed to set language: ${e}`);\n return this.t;\n }\n }\n\n registerSetLanguageCallback(callback: LanguageCallbackFn) {\n this.setLanguageCallback = callback;\n }\n}\n","import React, { ReactNode, PropsWithChildren, useContext, useEffect, useState } from 'react';\nimport StreamAnalytics from 'stream-analytics';\nimport { connect, UR, StreamClient, StreamUser, ClientOptions, OGAPIResponse, GetFeedOptions } from 'getstream';\n\nimport { FeedManager } from './FeedManager';\nimport { ErrorHandler, handleError } from '../utils/errors';\nimport { Streami18n } from '../i18n/Streami18n';\nimport { TranslationContextValue, TranslationProvider } from './TranslationContext';\n\nexport type SharedFeedManagers<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n> = Record>;\n\ntype Attachments = {\n files?: Array<{ mimeType: string; name: string; url: string }>;\n images?: string[];\n og?: OGAPIResponse;\n};\n\nexport type DefaultUT = UR & { name: string; id?: string; profileImage?: string };\n\nexport type DefaultAT = UR & { attachments?: Attachments; text?: string };\n\nexport type SharedFeed = { feedGroup: string; notify: boolean; options: GetFeedOptions };\n\nexport type StreamAppProps = {\n apiKey: string;\n appId: string;\n token: string;\n analyticsToken?: string;\n children?: ReactNode;\n defaultUserData?: UT;\n errorHandler?: ErrorHandler;\n i18nInstance?: Streami18n;\n options?: ClientOptions;\n sharedFeeds?: Array;\n};\n\nexport type StreamContextValue<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n> = {\n analyticsClient: null | StreamAnalytics;\n client: null | StreamClient;\n errorHandler: ErrorHandler;\n sharedFeedManagers: SharedFeedManagers;\n user?: StreamUser;\n userData?: UT;\n};\n\nexport const StreamContext = React.createContext({\n analyticsClient: null,\n client: null,\n errorHandler: handleError,\n sharedFeedManagers: {},\n});\n\nexport const StreamAppProvider = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: StreamContextValue;\n}>) => {children};\n\nexport const useStreamContext = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>() => useContext(StreamContext) as StreamContextValue;\n\n/**\n * Manages the connection with Stream. Any components that should talk to\n * Stream should be a child of this component.\n */\nexport function StreamApp<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR,\n PT extends UR = UR\n>({\n apiKey,\n appId,\n errorHandler = handleError,\n i18nInstance,\n token,\n analyticsToken,\n children,\n defaultUserData,\n options,\n sharedFeeds = [{ feedGroup: 'notification', notify: true, options: { mark_seen: true } }],\n}: StreamAppProps) {\n const [client, setClient] = useState | null>(null);\n const [user, setUser] = useState>();\n const [analyticsClient, setAnalyticsClient] = useState | null>(null);\n const [userData, setUserDate] = useState();\n const [translator, setTranslator] = useState();\n const [sharedFeedManagers, setSharedFeedManagers] = useState>({});\n\n useEffect(() => {\n const streami18n =\n i18nInstance && i18nInstance instanceof Streami18n ? i18nInstance : new Streami18n({ language: 'en' });\n\n streami18n.getTranslators().then(setTranslator);\n streami18n.registerSetLanguageCallback((t) =>\n setTranslator((prevState) => ({ ...(prevState as TranslationContextValue), t })),\n );\n }, [i18nInstance]);\n\n const getUserInfo = async (user: StreamUser) => {\n try {\n const { data } = await user.getOrCreate((defaultUserData || { name: 'Unknown' }) as UT);\n setUserDate(data);\n } catch (e) {\n errorHandler(e, 'get-user-info', { userId: user.id });\n }\n };\n\n useEffect(() => {\n const client = connect(apiKey, token, appId, options || {});\n\n let analyticsClient: StreamAnalytics | null = null;\n if (analyticsToken) {\n analyticsClient = new StreamAnalytics({ apiKey, token: analyticsToken });\n analyticsClient.setUser(client.userId as string);\n }\n\n const feeds: Record> = {};\n for (const feedProps of sharedFeeds) {\n const manager = new FeedManager({\n ...feedProps,\n client,\n analyticsClient,\n errorHandler,\n user,\n });\n\n feeds[manager.feed().id] = manager;\n }\n\n setClient(client);\n setUser(client.currentUser as StreamUser);\n setAnalyticsClient(analyticsClient);\n setSharedFeedManagers(feeds);\n\n getUserInfo(client.currentUser as StreamUser);\n\n return () => client.fayeClient?.disconnect();\n }, [apiKey, token, appId, analyticsClient]);\n\n if (!translator?.t) return null;\n\n return (\n \n \n <>{children || 'You are connected to Stream, Throw some components in here!'}\n \n \n );\n}\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","var toString = Object.prototype.toString;\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n var type = typeof val; // primitivies\n\n if (type === 'undefined') {\n return 'undefined';\n }\n\n if (val === null) {\n return 'null';\n }\n\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n\n if (type === 'string' || val instanceof String) {\n return 'string';\n }\n\n if (type === 'number' || val instanceof Number) {\n return 'number';\n } // functions\n\n\n if (type === 'function' || val instanceof Function) {\n if (typeof val.constructor.name !== 'undefined' && val.constructor.name.slice(0, 9) === 'Generator') {\n return 'generatorfunction';\n }\n\n return 'function';\n } // array\n\n\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n } // check for instances of RegExp and Date before calling `toString`\n\n\n if (val instanceof RegExp) {\n return 'regexp';\n }\n\n if (val instanceof Date) {\n return 'date';\n } // other objects\n\n\n type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n\n if (type === '[object Date]') {\n return 'date';\n }\n\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n\n if (type === '[object Error]') {\n return 'error';\n }\n\n if (type === '[object Promise]') {\n return 'promise';\n } // buffer\n\n\n if (isBuffer(val)) {\n return 'buffer';\n } // es6: Map, WeakMap, Set, WeakSet\n\n\n if (type === '[object Set]') {\n return 'set';\n }\n\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n\n if (type === '[object Map]') {\n return 'map';\n }\n\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n\n if (type === '[object Map Iterator]') {\n return 'mapiterator';\n }\n\n if (type === '[object Set Iterator]') {\n return 'setiterator';\n }\n\n if (type === '[object String Iterator]') {\n return 'stringiterator';\n }\n\n if (type === '[object Array Iterator]') {\n return 'arrayiterator';\n } // typed arrays\n\n\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n\n if (type === '[object Float64Array]') {\n return 'float64array';\n } // must be a plain object\n\n\n return 'object';\n};\n/**\n * If you need to support Safari 5-7 (8-10 yr-old browser),\n * take a look at https://github.com/feross/is-buffer\n */\n\n\nfunction isBuffer(val) {\n return val.constructor && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","\"use strict\";\n\nmodule.exports = Object.assign;","'use strict';\n\nvar Promise = require('../util/promise');\n\nmodule.exports = {\n then: function then(callback, errback) {\n var self = this;\n if (!this._promise) this._promise = new Promise(function (resolve, reject) {\n self._resolve = resolve;\n self._reject = reject;\n });\n if (arguments.length === 0) return this._promise;else return this._promise.then(callback, errback);\n },\n callback: function callback(_callback, context) {\n return this.then(function (value) {\n _callback.call(context, value);\n });\n },\n errback: function errback(callback, context) {\n return this.then(null, function (reason) {\n callback.call(context, reason);\n });\n },\n timeout: function timeout(seconds, message) {\n this.then();\n var self = this;\n this._timer = global.setTimeout(function () {\n self._reject(message);\n }, seconds * 1000);\n },\n setDeferredStatus: function setDeferredStatus(status, value) {\n if (this._timer) global.clearTimeout(this._timer);\n this.then();\n if (status === 'succeeded') this._resolve(value);else if (status === 'failed') this._reject(value);else delete this._promise;\n }\n};","var identity = require('./identity'),\n metaMap = require('./_metaMap');\n\n/**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\nvar baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n};\n\nmodule.exports = baseSetData;\n","import { Playground, Props } from 'docz';\nimport { Gallery } from \"../../../../../src/components/Gallery\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n Gallery,\n React\n};","import { Playground, Props } from 'docz';\nimport { Button } from \"../../../../../src/components/Button\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n Button,\n React\n};","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","import React, { CSSProperties, ReactNode } from 'react';\n\nexport type FlexProps = {\n children: ReactNode;\n a?: CSSProperties['alignItems'];\n d?: CSSProperties['flexDirection'];\n j?: CSSProperties['justifyContent'];\n js?: CSSProperties['justifySelf'];\n style?: CSSProperties;\n w?: CSSProperties['flexWrap'];\n};\n\nexport const Flex = ({ j, a, js, d = 'row', w = 'nowrap', style, children }: FlexProps) => (\n \n {children}\n \n);\n","module.exports = require('./flow');\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.validateImpression = exports.validateEngagement = void 0;\n\nfunction isForeginIdType(content) {\n return typeof content === 'object';\n}\n\nvar validateFeatures = function validateFeatures(features) {\n if (!features) return '';\n if (!Array.isArray(features)) return 'features should be array';\n\n for (var i = 0; i < features.length; i += 1) {\n if (!features[i].group || typeof features[i].group !== 'string') return 'feature.group should be string';\n if (!features[i].value || typeof features[i].value !== 'string') return 'feature.value should be string';\n }\n\n return '';\n};\n\nexports.validateEngagement = function (engagement) {\n if (!engagement) return ['engagement should be an object'];\n var errors = [];\n if (!engagement.label && typeof engagement.label !== 'string') errors.push('label should be string');\n if (!engagement.content || typeof engagement.content !== 'string' && typeof engagement.content !== 'object') errors.push('content should be string or object');\n if (isForeginIdType(engagement.content) && !engagement.content.foreign_id) errors.push('content.foreign_id should be string');\n if (engagement.position !== undefined && typeof engagement.position !== 'number') errors.push('position should be number');\n if (engagement.score !== undefined && typeof engagement.score !== 'number') errors.push('score should be number');\n if (engagement.boost !== undefined && typeof engagement.boost !== 'number') errors.push('boost should be number');\n if (engagement.feed_id !== undefined && typeof engagement.feed_id !== 'string') errors.push('feed_id should be string)');\n if (engagement.location !== undefined && typeof engagement.location !== 'string') errors.push('location should be string');\n var featureErr = validateFeatures(engagement.features);\n if (featureErr) errors.push(featureErr);\n return errors.length ? errors : false;\n};\n\nexports.validateImpression = function (impression) {\n if (!impression) return ['impression should be an object'];\n var errors = [];\n if (!Array.isArray(impression.content_list) || !impression.content_list.length) errors.push('content should be array of strings or objects');\n if (Array.isArray(impression.content_list)) impression.content_list.forEach(function (content, i) {\n if (isForeginIdType(content) && !content.foreign_id) errors.push(\"content_list[\" + i + \"].foreign_id should be string\");\n });\n if (impression.feed_id !== undefined && typeof impression.feed_id !== 'string') errors.push('feed_id should be string');\n if (impression.location !== undefined && typeof impression.location !== 'string') errors.push('location should be string');\n var featureErr = validateFeatures(impression.features);\n if (featureErr) errors.push(featureErr);\n return errors.length ? errors : false;\n};","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.InvalidInputData = exports.APIError = exports.MisconfiguredClient = exports.MissingUserId = void 0;\nvar canCapture = typeof Error.captureStackTrace === 'function';\nvar canStack = !!new Error().stack; // workaround for ES5 compilation to preserve the Error class\n\nvar ErrorAbstract = function ErrorAbstract(message) {\n Error.call(this, message);\n this.message = message;\n this.name = this.constructor.name;\n if (canCapture) Error.captureStackTrace(this);else if (canStack) this.stack = new Error().stack;else this.stack = '';\n};\n\nErrorAbstract.prototype = Object.create(Error.prototype);\n\nvar MissingUserId =\n/** @class */\nfunction (_super) {\n __extends(MissingUserId, _super);\n\n function MissingUserId() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return MissingUserId;\n}(ErrorAbstract);\n\nexports.MissingUserId = MissingUserId;\n\nvar MisconfiguredClient =\n/** @class */\nfunction (_super) {\n __extends(MisconfiguredClient, _super);\n\n function MisconfiguredClient() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return MisconfiguredClient;\n}(ErrorAbstract);\n\nexports.MisconfiguredClient = MisconfiguredClient;\n\nvar APIError =\n/** @class */\nfunction (_super) {\n __extends(APIError, _super);\n\n function APIError(msg, response) {\n var _this = _super.call(this, msg) || this;\n\n _this.response = response;\n return _this;\n }\n\n return APIError;\n}(ErrorAbstract);\n\nexports.APIError = APIError;\n\nvar InvalidInputData =\n/** @class */\nfunction (_super) {\n __extends(InvalidInputData, _super);\n\n function InvalidInputData(msg, errorInfo) {\n return _super.call(this, msg + \": \\n\\t\" + errorInfo.join('\\n\\t')) || this;\n }\n\n return InvalidInputData;\n}(ErrorAbstract);\n\nexports.InvalidInputData = InvalidInputData;","import React from 'react';\nimport { EnrichedReaction, UR } from 'getstream';\n\nimport { Flex } from './Flex';\nimport { Avatar } from './Avatar';\nimport { humanizeTimestamp, textRenderer, OnClickUserHandler, useOnClickUser } from '../utils';\nimport { useTranslationContext } from '../context';\nimport { DefaultUT } from '../context/StreamApp';\n\nexport type CommentItemProps = {\n comment: EnrichedReaction;\n onClickUser?: OnClickUserHandler;\n} & Partial void>>;\n\nexport const CommentItem = ({\n comment: { user, created_at, data },\n onClickHashtag,\n onClickMention,\n onClickUser,\n}: CommentItemProps) => {\n const { tDateTimeParser } = useTranslationContext();\n\n const handleUserClick = useOnClickUser(onClickUser);\n\n return (\n
    \n \n {user?.data.profileImage && (\n \n )}\n \n \n
    \n \n

    \n \n {user?.data.name}\n {' '}\n {textRenderer(data.text as string, 'raf-comment-item', onClickMention, onClickHashtag)}\n

    \n
    \n
    \n
    \n );\n};\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","const support = function (feature) {\n if (typeof document === `undefined`) {\n return false\n }\n const fakeLink = document.createElement(`link`)\n try {\n if (fakeLink.relList && typeof fakeLink.relList.supports === `function`) {\n return fakeLink.relList.supports(feature)\n }\n } catch (err) {\n return false\n }\n return false\n}\n\nconst linkPrefetchStrategy = function (url, options) {\n return new Promise((resolve, reject) => {\n if (typeof document === `undefined`) {\n reject()\n return\n }\n\n const link = document.createElement(`link`)\n link.setAttribute(`rel`, `prefetch`)\n link.setAttribute(`href`, url)\n\n Object.keys(options).forEach(key => {\n link.setAttribute(key, options[key])\n })\n\n link.onload = resolve\n link.onerror = reject\n\n const parentElement =\n document.getElementsByTagName(`head`)[0] ||\n document.getElementsByName(`script`)[0].parentNode\n parentElement.appendChild(link)\n })\n}\n\nconst xhrPrefetchStrategy = function (url) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest()\n req.open(`GET`, url, true)\n\n req.onload = () => {\n if (req.status === 200) {\n resolve()\n } else {\n reject()\n }\n }\n\n req.send(null)\n })\n}\n\nconst supportedPrefetchStrategy = support(`prefetch`)\n ? linkPrefetchStrategy\n : xhrPrefetchStrategy\n\nconst preFetched = {}\n\nconst prefetch = function (url, options) {\n return new Promise(resolve => {\n if (preFetched[url]) {\n resolve()\n return\n }\n\n supportedPrefetchStrategy(url, options)\n .then(() => {\n resolve()\n preFetched[url] = true\n })\n .catch(() => {}) // 404s are logged to the console anyway\n })\n}\n\nexport default prefetch\n","import prefetchHelper from \"./prefetch\"\nimport emitter from \"./emitter\"\nimport { setMatchPaths, findPath, findMatchPath } from \"./find-path\"\n\n/**\n * Available resource loading statuses\n */\nexport const PageResourceStatus = {\n /**\n * At least one of critical resources failed to load\n */\n Error: `error`,\n /**\n * Resources loaded successfully\n */\n Success: `success`,\n}\n\nconst preferDefault = m => (m && m.default) || m\n\nconst stripSurroundingSlashes = s => {\n s = s[0] === `/` ? s.slice(1) : s\n s = s.endsWith(`/`) ? s.slice(0, -1) : s\n return s\n}\n\nconst createPageDataUrl = path => {\n const fixedPath = path === `/` ? `index` : stripSurroundingSlashes(path)\n return `${__PATH_PREFIX__}/page-data/${fixedPath}/page-data.json`\n}\n\nfunction doFetch(url, method = `GET`) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest()\n req.open(method, url, true)\n req.onreadystatechange = () => {\n if (req.readyState == 4) {\n resolve(req)\n }\n }\n req.send(null)\n })\n}\n\nconst doesConnectionSupportPrefetch = () => {\n if (\n `connection` in navigator &&\n typeof navigator.connection !== `undefined`\n ) {\n if ((navigator.connection.effectiveType || ``).includes(`2g`)) {\n return false\n }\n if (navigator.connection.saveData) {\n return false\n }\n }\n return true\n}\n\nconst toPageResources = (pageData, component = null) => {\n const page = {\n componentChunkName: pageData.componentChunkName,\n path: pageData.path,\n webpackCompilationHash: pageData.webpackCompilationHash,\n matchPath: pageData.matchPath,\n staticQueryHashes: pageData.staticQueryHashes,\n }\n\n return {\n component,\n json: pageData.result,\n page,\n }\n}\n\nexport class BaseLoader {\n constructor(loadComponent, matchPaths) {\n // Map of pagePath -> Page. Where Page is an object with: {\n // status: PageResourceStatus.Success || PageResourceStatus.Error,\n // payload: PageResources, // undefined if PageResourceStatus.Error\n // }\n // PageResources is {\n // component,\n // json: pageData.result,\n // page: {\n // componentChunkName,\n // path,\n // webpackCompilationHash,\n // staticQueryHashes\n // },\n // staticQueryResults\n // }\n this.pageDb = new Map()\n this.inFlightDb = new Map()\n this.staticQueryDb = {}\n this.pageDataDb = new Map()\n this.prefetchTriggered = new Set()\n this.prefetchCompleted = new Set()\n this.loadComponent = loadComponent\n setMatchPaths(matchPaths)\n }\n\n inFlightNetworkRequests = new Map()\n\n memoizedGet(url) {\n let inFlightPromise = this.inFlightNetworkRequests.get(url)\n\n if (!inFlightPromise) {\n inFlightPromise = doFetch(url, `GET`)\n this.inFlightNetworkRequests.set(url, inFlightPromise)\n }\n\n // Prefer duplication with then + catch over .finally to prevent problems in ie11 + firefox\n return inFlightPromise\n .then(response => {\n this.inFlightNetworkRequests.delete(url)\n return response\n })\n .catch(err => {\n this.inFlightNetworkRequests.delete(url)\n throw err\n })\n }\n\n setApiRunner(apiRunner) {\n this.apiRunner = apiRunner\n this.prefetchDisabled = apiRunner(`disableCorePrefetching`).some(a => a)\n }\n\n fetchPageDataJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.path === undefined) {\n throw new Error(`not a valid pageData response`)\n }\n\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: jsonPayload,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404 page and it doesn't exist, we're done\n if (pagePath === `/404.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPageDataJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n loadPageDataJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDataDb.has(pagePath)) {\n const pageData = this.pageDataDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPageDataJson({ pagePath }).then(pageData => {\n this.pageDataDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n findMatchPath(rawPath) {\n return findMatchPath(rawPath)\n }\n\n // TODO check all uses of this and whether they use undefined for page resources not exist\n loadPage(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const page = this.pageDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !page.payload.stale) {\n return Promise.resolve(page.payload)\n }\n }\n\n if (this.inFlightDb.has(pagePath)) {\n return this.inFlightDb.get(pagePath)\n }\n\n const inFlightPromise = Promise.all([\n this.loadAppData(),\n this.loadPageDataJson(pagePath),\n ]).then(allData => {\n const result = allData[1]\n if (result.status === PageResourceStatus.Error) {\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n let pageData = result.payload\n const { componentChunkName, staticQueryHashes = [] } = pageData\n\n const finalResult = {}\n\n const componentChunkPromise = this.loadComponent(componentChunkName).then(\n component => {\n finalResult.createdAt = new Date()\n let pageResources\n if (!component) {\n finalResult.status = PageResourceStatus.Error\n } else {\n finalResult.status = PageResourceStatus.Success\n if (result.notFound === true) {\n finalResult.notFound = true\n }\n pageData = Object.assign(pageData, {\n webpackCompilationHash: allData[0]\n ? allData[0].webpackCompilationHash\n : ``,\n })\n pageResources = toPageResources(pageData, component)\n }\n // undefined if final result is an error\n return pageResources\n }\n )\n\n const staticQueryBatchPromise = Promise.all(\n staticQueryHashes.map(staticQueryHash => {\n // Check for cache in case this static query result has already been loaded\n if (this.staticQueryDb[staticQueryHash]) {\n const jsonPayload = this.staticQueryDb[staticQueryHash]\n return { staticQueryHash, jsonPayload }\n }\n\n return this.memoizedGet(\n `${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json`\n ).then(req => {\n const jsonPayload = JSON.parse(req.responseText)\n return { staticQueryHash, jsonPayload }\n })\n })\n ).then(staticQueryResults => {\n const staticQueryResultsMap = {}\n\n staticQueryResults.forEach(({ staticQueryHash, jsonPayload }) => {\n staticQueryResultsMap[staticQueryHash] = jsonPayload\n this.staticQueryDb[staticQueryHash] = jsonPayload\n })\n\n return staticQueryResultsMap\n })\n\n return Promise.all([componentChunkPromise, staticQueryBatchPromise]).then(\n ([pageResources, staticQueryResults]) => {\n let payload\n if (pageResources) {\n payload = { ...pageResources, staticQueryResults }\n finalResult.payload = payload\n emitter.emit(`onPostLoadPageResources`, {\n page: payload,\n pageResources: payload,\n })\n }\n\n this.pageDb.set(pagePath, finalResult)\n\n return payload\n }\n )\n })\n\n inFlightPromise\n .then(response => {\n this.inFlightDb.delete(pagePath)\n })\n .catch(error => {\n this.inFlightDb.delete(pagePath)\n throw error\n })\n\n this.inFlightDb.set(pagePath, inFlightPromise)\n\n return inFlightPromise\n }\n\n // returns undefined if loading page ran into errors\n loadPageSync(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const pageData = this.pageDb.get(pagePath).payload\n return pageData\n }\n return undefined\n }\n\n shouldPrefetch(pagePath) {\n // Skip prefetching if we know user is on slow or constrained connection\n if (!doesConnectionSupportPrefetch()) {\n return false\n }\n\n // Check if the page exists.\n if (this.pageDb.has(pagePath)) {\n return false\n }\n\n return true\n }\n\n prefetch(pagePath) {\n if (!this.shouldPrefetch(pagePath)) {\n return false\n }\n\n // Tell plugins with custom prefetching logic that they should start\n // prefetching this path.\n if (!this.prefetchTriggered.has(pagePath)) {\n this.apiRunner(`onPrefetchPathname`, { pathname: pagePath })\n this.prefetchTriggered.add(pagePath)\n }\n\n // If a plugin has disabled core prefetching, stop now.\n if (this.prefetchDisabled) {\n return false\n }\n\n const realPath = findPath(pagePath)\n // Todo make doPrefetch logic cacheable\n // eslint-disable-next-line consistent-return\n this.doPrefetch(realPath).then(() => {\n if (!this.prefetchCompleted.has(pagePath)) {\n this.apiRunner(`onPostPrefetchPathname`, { pathname: pagePath })\n this.prefetchCompleted.add(pagePath)\n }\n })\n\n return true\n }\n\n doPrefetch(pagePath) {\n const pageDataUrl = createPageDataUrl(pagePath)\n return prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n )\n }\n\n hovering(rawPath) {\n this.loadPage(rawPath)\n }\n\n getResourceURLsForPathname(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDataDb.get(pagePath)\n if (page) {\n const pageResources = toPageResources(page.payload)\n\n return [\n ...createComponentUrls(pageResources.page.componentChunkName),\n createPageDataUrl(pagePath),\n ]\n } else {\n return null\n }\n }\n\n isPageNotFound(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDb.get(pagePath)\n return !page || page.notFound\n }\n\n loadAppData(retries = 0) {\n return this.memoizedGet(`${__PATH_PREFIX__}/page-data/app-data.json`).then(\n req => {\n const { status, responseText } = req\n\n let appData\n\n if (status !== 200 && retries < 3) {\n // Retry 3 times incase of non-200 responses\n return this.loadAppData(retries + 1)\n }\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.webpackCompilationHash === undefined) {\n throw new Error(`not a valid app-data response`)\n }\n\n appData = jsonPayload\n } catch (err) {\n // continue regardless of error\n }\n }\n\n return appData\n }\n )\n }\n}\n\nconst createComponentUrls = componentChunkName =>\n (window.___chunkMapping[componentChunkName] || []).map(\n chunk => __PATH_PREFIX__ + chunk\n )\n\nexport class ProdLoader extends BaseLoader {\n constructor(asyncRequires, matchPaths) {\n const loadComponent = chunkName =>\n asyncRequires.components[chunkName]\n ? asyncRequires.components[chunkName]()\n .then(preferDefault)\n // loader will handle the case when component is null\n .catch(() => null)\n : Promise.resolve()\n\n super(loadComponent, matchPaths)\n }\n\n doPrefetch(pagePath) {\n return super.doPrefetch(pagePath).then(result => {\n if (result.status !== PageResourceStatus.Success) {\n return Promise.resolve()\n }\n const pageData = result.payload\n const chunkName = pageData.componentChunkName\n const componentUrls = createComponentUrls(chunkName)\n return Promise.all(componentUrls.map(prefetchHelper)).then(() => pageData)\n })\n }\n\n loadPageDataJson(rawPath) {\n return super.loadPageDataJson(rawPath).then(data => {\n if (data.notFound) {\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n}\n\nlet instance\n\nexport const setLoader = _loader => {\n instance = _loader\n}\n\nexport const publicLoader = {\n // Deprecated methods. As far as we're aware, these are only used by\n // core gatsby and the offline plugin, however there's a very small\n // chance they're called by others.\n getResourcesForPathname: rawPath => {\n console.warn(\n `Warning: getResourcesForPathname is deprecated. Use loadPage instead`\n )\n return instance.i.loadPage(rawPath)\n },\n getResourcesForPathnameSync: rawPath => {\n console.warn(\n `Warning: getResourcesForPathnameSync is deprecated. Use loadPageSync instead`\n )\n return instance.i.loadPageSync(rawPath)\n },\n enqueue: rawPath => instance.prefetch(rawPath),\n\n // Real methods\n getResourceURLsForPathname: rawPath =>\n instance.getResourceURLsForPathname(rawPath),\n loadPage: rawPath => instance.loadPage(rawPath),\n loadPageSync: rawPath => instance.loadPageSync(rawPath),\n prefetch: rawPath => instance.prefetch(rawPath),\n isPageNotFound: rawPath => instance.isPageNotFound(rawPath),\n hovering: rawPath => instance.hovering(rawPath),\n loadAppData: () => instance.loadAppData(),\n}\n\nexport default publicLoader\n\nexport function getStaticQueryResults() {\n if (instance) {\n return instance.staticQueryDb\n } else {\n return {}\n }\n}\n","var convert = require('./convert'),\n func = convert('set', require('../set'));\n\nfunc.placeholder = require('./placeholder');\nmodule.exports = func;\n","var convert = require('./convert'),\n func = convert('flow', require('../flow'));\n\nfunc.placeholder = require('./placeholder');\nmodule.exports = func;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bodyOpenClassName = exports.portalClassName = undefined;\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ModalPortal = require(\"./ModalPortal\");\n\nvar _ModalPortal2 = _interopRequireDefault(_ModalPortal);\n\nvar _ariaAppHider = require(\"../helpers/ariaAppHider\");\n\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\n\nvar _safeHTMLElement = require(\"../helpers/safeHTMLElement\");\n\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar portalClassName = exports.portalClassName = \"ReactModalPortal\";\nvar bodyOpenClassName = exports.bodyOpenClassName = \"ReactModal__Body--open\";\nvar isReact16 = _safeHTMLElement.canUseDOM && _reactDom2.default.createPortal !== undefined;\n\nvar getCreatePortal = function getCreatePortal() {\n return isReact16 ? _reactDom2.default.createPortal : _reactDom2.default.unstable_renderSubtreeIntoContainer;\n};\n\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\n\nvar Modal = function (_Component) {\n _inherits(Modal, _Component);\n\n function Modal() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Modal);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply(_ref, [this].concat(args))), _this), _this.removePortal = function () {\n !isReact16 && _reactDom2.default.unmountComponentAtNode(_this.node);\n var parent = getParentElement(_this.props.parentSelector);\n\n if (parent && parent.contains(_this.node)) {\n parent.removeChild(_this.node);\n } else {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"parentSelector\" prop did not returned any DOM ' + \"element. Make sure that the parent element is unmounted to \" + \"avoid any memory leaks.\");\n }\n }, _this.portalRef = function (ref) {\n _this.portal = ref;\n }, _this.renderPortal = function (props) {\n var createPortal = getCreatePortal();\n var portal = createPortal(_this, _react2.default.createElement(_ModalPortal2.default, _extends({\n defaultStyles: Modal.defaultStyles\n }, props)), _this.node);\n\n _this.portalRef(portal);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Modal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!_safeHTMLElement.canUseDOM) return;\n\n if (!isReact16) {\n this.node = document.createElement(\"div\");\n }\n\n this.node.className = this.props.portalClassName;\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n !isReact16 && this.renderPortal(this.props);\n }\n }, {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate(prevProps) {\n var prevParent = getParentElement(prevProps.parentSelector);\n var nextParent = getParentElement(this.props.parentSelector);\n return {\n prevParent: prevParent,\n nextParent: nextParent\n };\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, _, snapshot) {\n if (!_safeHTMLElement.canUseDOM) return;\n var _props = this.props,\n isOpen = _props.isOpen,\n portalClassName = _props.portalClassName;\n\n if (prevProps.portalClassName !== portalClassName) {\n this.node.className = portalClassName;\n }\n\n var prevParent = snapshot.prevParent,\n nextParent = snapshot.nextParent;\n\n if (nextParent !== prevParent) {\n prevParent.removeChild(this.node);\n nextParent.appendChild(this.node);\n } // Stop unnecessary renders if modal is remaining closed\n\n\n if (!prevProps.isOpen && !isOpen) return;\n !isReact16 && this.renderPortal(this.props);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (!_safeHTMLElement.canUseDOM || !this.node || !this.portal) return;\n var state = this.portal.state;\n var now = Date.now();\n var closesAt = state.isOpen && this.props.closeTimeoutMS && (state.closesAt || now + this.props.closeTimeoutMS);\n\n if (closesAt) {\n if (!state.beforeClose) {\n this.portal.closeWithTimeout();\n }\n\n setTimeout(this.removePortal, closesAt - now);\n } else {\n this.removePortal();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!_safeHTMLElement.canUseDOM || !isReact16) {\n return null;\n }\n\n if (!this.node && isReact16) {\n this.node = document.createElement(\"div\");\n }\n\n var createPortal = getCreatePortal();\n return createPortal(_react2.default.createElement(_ModalPortal2.default, _extends({\n ref: this.portalRef,\n defaultStyles: Modal.defaultStyles\n }, this.props)), this.node);\n }\n }], [{\n key: \"setAppElement\",\n value: function setAppElement(element) {\n ariaAppHider.setElement(element);\n }\n /* eslint-disable react/no-unused-prop-types */\n\n /* eslint-enable react/no-unused-prop-types */\n\n }]);\n\n return Modal;\n}(_react.Component);\n\nModal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n portalClassName: _propTypes2.default.string,\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })]),\n overlayClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })]),\n appElement: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default), _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection), _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList), _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),\n onAfterOpen: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n ariaHideApp: _propTypes2.default.bool,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n parentSelector: _propTypes2.default.func,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func\n};\nModal.defaultProps = {\n isOpen: false,\n portalClassName: portalClassName,\n bodyOpenClassName: bodyOpenClassName,\n role: \"dialog\",\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldFocusAfterRender: true,\n shouldCloseOnEsc: true,\n shouldCloseOnOverlayClick: true,\n shouldReturnFocusAfterClose: true,\n preventScroll: false,\n parentSelector: function parentSelector() {\n return document.body;\n },\n overlayElement: function overlayElement(props, contentEl) {\n return _react2.default.createElement(\"div\", props, contentEl);\n },\n contentElement: function contentElement(props, children) {\n return _react2.default.createElement(\"div\", props, children);\n }\n};\nModal.defaultStyles = {\n overlay: {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.75)\"\n },\n content: {\n position: \"absolute\",\n top: \"40px\",\n left: \"40px\",\n right: \"40px\",\n bottom: \"40px\",\n border: \"1px solid #ccc\",\n background: \"#fff\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n borderRadius: \"4px\",\n outline: \"none\",\n padding: \"20px\"\n }\n};\n(0, _reactLifecyclesCompat.polyfill)(Modal);\nexports.default = Modal;","/** Used to match wrap detail comments. */\nvar reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n/**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\nfunction getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n}\n\nmodule.exports = getWrapDetails;\n","var isPlainObject = require('./isPlainObject');\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n}\n\nmodule.exports = customOmitClone;\n","var LazyWrapper = require('./_LazyWrapper'),\n LodashWrapper = require('./_LodashWrapper'),\n baseLodash = require('./_baseLodash'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike'),\n wrapperClone = require('./_wrapperClone');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\nfunction lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n}\n\n// Ensure wrappers are instances of `baseLodash`.\nlodash.prototype = baseLodash.prototype;\nlodash.prototype.constructor = lodash;\n\nmodule.exports = lodash;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n}\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\n\n\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.11.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 Denis Pushkarev (zloirock.ru)'\n});\n","'use strict';\n\nvar Transport = require('./transport');\n\nTransport.register('websocket', require('./web_socket'));\nTransport.register('eventsource', require('./event_source'));\nTransport.register('long-polling', require('./xhr'));\nTransport.register('cross-origin-long-polling', require('./cors'));\nTransport.register('callback-polling', require('./jsonp'));\nmodule.exports = Transport;","import { Playground, Props } from 'docz';\nimport { AvatarGroup } from \"../../../../../src/components/AvatarGroup\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n AvatarGroup,\n React\n};","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var asciiToArray = require('./_asciiToArray'),\n hasUnicode = require('./_hasUnicode'),\n unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n","\"use strict\";\n\nvar _portalOpenInstances = require(\"./portalOpenInstances\");\n\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n} // Body focus trap see Issue #742\n\n\nvar before = void 0,\n after = void 0,\n instances = [];\n\nfunction focusContent() {\n if (instances.length === 0) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Open instances > 0 expected\");\n }\n\n return;\n }\n\n instances[instances.length - 1].focusContent();\n}\n\nfunction bodyTrap(eventType, openInstances) {\n if (!before || !after) {\n before = document.createElement(\"div\");\n before.setAttribute(\"data-react-modal-body-trap\", \"\");\n before.style.position = \"absolute\";\n before.style.opacity = \"0\";\n before.setAttribute(\"tabindex\", \"0\");\n before.addEventListener(\"focus\", focusContent);\n after = before.cloneNode();\n after.addEventListener(\"focus\", focusContent);\n }\n\n instances = openInstances;\n\n if (instances.length > 0) {\n // Add focus trap\n if (document.body.firstChild !== before) {\n document.body.insertBefore(before, document.body.firstChild);\n }\n\n if (document.body.lastChild !== after) {\n document.body.appendChild(after);\n }\n } else {\n // Remove focus trap\n if (before.parentElement) {\n before.parentElement.removeChild(before);\n }\n\n if (after.parentElement) {\n after.parentElement.removeChild(after);\n }\n }\n}\n\n_portalOpenInstances2.default.subscribe(bodyTrap);","'use strict';\n\nmodule.exports = {\n CHANNEL_NAME: /^\\/(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)))+(\\/(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)))+)*$/,\n CHANNEL_PATTERN: /^(\\/(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)))+)*\\/\\*{1,2}$/,\n ERROR: /^([0-9][0-9][0-9]:(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)| |\\/|\\*|\\.))*(,(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)| |\\/|\\*|\\.))*)*:(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)| |\\/|\\*|\\.))*|[0-9][0-9][0-9]::(((([a-z]|[A-Z])|[0-9])|(\\-|\\_|\\!|\\~|\\(|\\)|\\$|\\@)| |\\/|\\*|\\.))*)$/,\n VERSION: /^([0-9])+(\\.(([a-z]|[A-Z])|[0-9])(((([a-z]|[A-Z])|[0-9])|\\-|\\_))*)*$/\n};","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nvar transformData = require('./transformData');\n\nvar isCancel = require('../cancel/isCancel');\n\nvar defaults = require('../defaults');\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\n\n\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\n\n\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config); // Ensure headers exist\n\n config.headers = config.headers || {}; // Transform request data\n\n config.data = transformData(config.data, config.headers, config.transformRequest); // Flatten headers\n\n config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);\n utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {\n delete config.headers[method];\n });\n var adapter = config.adapter || defaults.adapter;\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config); // Transform response data\n\n response.data = transformData(response.data, response.headers, config.transformResponse);\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config); // Transform response data\n\n if (reason && reason.response) {\n reason.response.data = transformData(reason.response.data, reason.response.headers, config.transformResponse);\n }\n }\n\n return Promise.reject(reason);\n });\n};","import React from 'react';\nimport { UR } from 'getstream';\n\nimport { LikeButton } from './LikeButton';\nimport { RepostButton } from './RepostButton';\nimport { Flex } from './Flex';\nimport { DefaultAT, DefaultUT } from '../context/StreamApp';\nimport { ActivityProps } from './Activity';\n\nexport type ActivityFooterProps<\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n> = Pick, 'activity' | 'feedGroup' | 'userId'> & { targetFeeds?: string[] };\n\nexport const ActivityFooter = <\n UT extends DefaultUT = DefaultUT,\n AT extends DefaultAT = DefaultAT,\n CT extends UR = UR,\n RT extends UR = UR,\n CRT extends UR = UR\n>(\n props: ActivityFooterProps,\n) => (\n
    \n
    \n
    \n \n {...props} />\n {...props} />\n \n
    \n
    \n);\n\nActivityFooter.defaultProps = {\n feedGroup: 'user',\n};\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\n\nvar combineURLs = require('../helpers/combineURLs');\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\n\n\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n\n return requestedURL;\n};","import React, { SyntheticEvent, useMemo } from 'react';\nimport { IconButton } from 'react-file-utils';\nimport { OGAPIResponse } from 'getstream';\n\nimport { sanitizeURL, trimURL } from '../utils';\nimport { AvatarIcon, CloseIcon } from './Icons';\n\nexport type CardProps = {\n alt?: string;\n handleClose?: (e: SyntheticEvent) => void;\n image?: string | null;\n nolink?: boolean;\n} & Pick;\n\nexport const Card = ({\n alt,\n images = [],\n image: imageURL,\n handleClose,\n description,\n nolink,\n url,\n title,\n}: CardProps) => {\n const sanitizedURL = useMemo(() => sanitizeURL(url), [url]);\n const trimmedURL = useMemo(() => trimURL(sanitizedURL), [sanitizedURL]);\n\n const [{ image }] = !imageURL && images.length ? images : [{ image: imageURL }];\n\n return (\n \n {handleClose && image ? (\n \n \n \n ) : null}\n {image !== undefined && (\n
    \n {image === null ? (\n \n ) : (\n {alt\n )}\n
    \n )}\n
    \n
    \n

    {title}

    \n

    {trimmedURL}

    \n

    {description}

    \n
    \n {handleClose && image === undefined && (\n
    \n \n \n \n
    \n )}\n
    \n
    \n );\n};\n","/*\n * JavaScript Load Image Scaling\n * https://github.com/blueimp/JavaScript-Load-Image\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n */\n\n/* global define, module, require */\n;\n\n(function (factory) {\n 'use strict';\n\n if (typeof define === 'function' && define.amd) {\n // Register as an anonymous AMD module:\n define(['./load-image'], factory);\n } else if (typeof module === 'object' && module.exports) {\n factory(require('./load-image'));\n } else {\n // Browser globals:\n factory(window.loadImage);\n }\n})(function (loadImage) {\n 'use strict';\n\n var originalTransform = loadImage.transform;\n\n loadImage.createCanvas = function (width, height, offscreen) {\n if (offscreen && loadImage.global.OffscreenCanvas) {\n return new OffscreenCanvas(width, height);\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = width;\n canvas.height = height;\n return canvas;\n };\n\n loadImage.transform = function (img, options, callback, file, data) {\n originalTransform.call(loadImage, loadImage.scale(img, options, data), options, callback, file, data);\n }; // Transform image coordinates, allows to override e.g.\n // the canvas orientation based on the orientation option,\n // gets canvas, options and data passed as arguments:\n\n\n loadImage.transformCoordinates = function () {}; // Returns transformed options, allows to override e.g.\n // maxWidth, maxHeight and crop options based on the aspectRatio.\n // gets img, options, data passed as arguments:\n\n\n loadImage.getTransformedOptions = function (img, options) {\n var aspectRatio = options.aspectRatio;\n var newOptions;\n var i;\n var width;\n var height;\n\n if (!aspectRatio) {\n return options;\n }\n\n newOptions = {};\n\n for (i in options) {\n if (Object.prototype.hasOwnProperty.call(options, i)) {\n newOptions[i] = options[i];\n }\n }\n\n newOptions.crop = true;\n width = img.naturalWidth || img.width;\n height = img.naturalHeight || img.height;\n\n if (width / height > aspectRatio) {\n newOptions.maxWidth = height * aspectRatio;\n newOptions.maxHeight = height;\n } else {\n newOptions.maxWidth = width;\n newOptions.maxHeight = width / aspectRatio;\n }\n\n return newOptions;\n }; // Canvas render method, allows to implement a different rendering algorithm:\n\n\n loadImage.drawImage = function (img, canvas, sourceX, sourceY, sourceWidth, sourceHeight, destWidth, destHeight, options) {\n var ctx = canvas.getContext('2d');\n\n if (options.imageSmoothingEnabled === false) {\n ctx.msImageSmoothingEnabled = false;\n ctx.imageSmoothingEnabled = false;\n } else if (options.imageSmoothingQuality) {\n ctx.imageSmoothingQuality = options.imageSmoothingQuality;\n }\n\n ctx.drawImage(img, sourceX, sourceY, sourceWidth, sourceHeight, 0, 0, destWidth, destHeight);\n return ctx;\n }; // Determines if the target image should be a canvas element:\n\n\n loadImage.requiresCanvas = function (options) {\n return options.canvas || options.crop || !!options.aspectRatio;\n }; // Scales and/or crops the given image (img or canvas HTML element)\n // using the given options:\n\n\n loadImage.scale = function (img, options, data) {\n // eslint-disable-next-line no-param-reassign\n options = options || {}; // eslint-disable-next-line no-param-reassign\n\n data = data || {};\n var useCanvas = img.getContext || loadImage.requiresCanvas(options) && !!loadImage.global.HTMLCanvasElement;\n var width = img.naturalWidth || img.width;\n var height = img.naturalHeight || img.height;\n var destWidth = width;\n var destHeight = height;\n var maxWidth;\n var maxHeight;\n var minWidth;\n var minHeight;\n var sourceWidth;\n var sourceHeight;\n var sourceX;\n var sourceY;\n var pixelRatio;\n var downsamplingRatio;\n var tmp;\n var canvas;\n /**\n * Scales up image dimensions\n */\n\n function scaleUp() {\n var scale = Math.max((minWidth || destWidth) / destWidth, (minHeight || destHeight) / destHeight);\n\n if (scale > 1) {\n destWidth *= scale;\n destHeight *= scale;\n }\n }\n /**\n * Scales down image dimensions\n */\n\n\n function scaleDown() {\n var scale = Math.min((maxWidth || destWidth) / destWidth, (maxHeight || destHeight) / destHeight);\n\n if (scale < 1) {\n destWidth *= scale;\n destHeight *= scale;\n }\n }\n\n if (useCanvas) {\n // eslint-disable-next-line no-param-reassign\n options = loadImage.getTransformedOptions(img, options, data);\n sourceX = options.left || 0;\n sourceY = options.top || 0;\n\n if (options.sourceWidth) {\n sourceWidth = options.sourceWidth;\n\n if (options.right !== undefined && options.left === undefined) {\n sourceX = width - sourceWidth - options.right;\n }\n } else {\n sourceWidth = width - sourceX - (options.right || 0);\n }\n\n if (options.sourceHeight) {\n sourceHeight = options.sourceHeight;\n\n if (options.bottom !== undefined && options.top === undefined) {\n sourceY = height - sourceHeight - options.bottom;\n }\n } else {\n sourceHeight = height - sourceY - (options.bottom || 0);\n }\n\n destWidth = sourceWidth;\n destHeight = sourceHeight;\n }\n\n maxWidth = options.maxWidth;\n maxHeight = options.maxHeight;\n minWidth = options.minWidth;\n minHeight = options.minHeight;\n\n if (useCanvas && maxWidth && maxHeight && options.crop) {\n destWidth = maxWidth;\n destHeight = maxHeight;\n tmp = sourceWidth / sourceHeight - maxWidth / maxHeight;\n\n if (tmp < 0) {\n sourceHeight = maxHeight * sourceWidth / maxWidth;\n\n if (options.top === undefined && options.bottom === undefined) {\n sourceY = (height - sourceHeight) / 2;\n }\n } else if (tmp > 0) {\n sourceWidth = maxWidth * sourceHeight / maxHeight;\n\n if (options.left === undefined && options.right === undefined) {\n sourceX = (width - sourceWidth) / 2;\n }\n }\n } else {\n if (options.contain || options.cover) {\n minWidth = maxWidth = maxWidth || minWidth;\n minHeight = maxHeight = maxHeight || minHeight;\n }\n\n if (options.cover) {\n scaleDown();\n scaleUp();\n } else {\n scaleUp();\n scaleDown();\n }\n }\n\n if (useCanvas) {\n pixelRatio = options.pixelRatio;\n\n if (pixelRatio > 1 && // Check if the image has not yet had the device pixel ratio applied:\n !(img.style.width && Math.floor(parseFloat(img.style.width, 10)) === Math.floor(width / pixelRatio))) {\n destWidth *= pixelRatio;\n destHeight *= pixelRatio;\n } // Check if workaround for Chromium orientation crop bug is required:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1074354\n\n\n if (loadImage.orientationCropBug && !img.getContext && (sourceX || sourceY || sourceWidth !== width || sourceHeight !== height)) {\n // Write the complete source image to an intermediate canvas first:\n tmp = img; // eslint-disable-next-line no-param-reassign\n\n img = loadImage.createCanvas(width, height, true);\n loadImage.drawImage(tmp, img, 0, 0, width, height, width, height, options);\n }\n\n downsamplingRatio = options.downsamplingRatio;\n\n if (downsamplingRatio > 0 && downsamplingRatio < 1 && destWidth < sourceWidth && destHeight < sourceHeight) {\n while (sourceWidth * downsamplingRatio > destWidth) {\n canvas = loadImage.createCanvas(sourceWidth * downsamplingRatio, sourceHeight * downsamplingRatio, true);\n loadImage.drawImage(img, canvas, sourceX, sourceY, sourceWidth, sourceHeight, canvas.width, canvas.height, options);\n sourceX = 0;\n sourceY = 0;\n sourceWidth = canvas.width;\n sourceHeight = canvas.height; // eslint-disable-next-line no-param-reassign\n\n img = canvas;\n }\n }\n\n canvas = loadImage.createCanvas(destWidth, destHeight);\n loadImage.transformCoordinates(canvas, options, data);\n\n if (pixelRatio > 1) {\n canvas.style.width = canvas.width / pixelRatio + 'px';\n }\n\n loadImage.drawImage(img, canvas, sourceX, sourceY, sourceWidth, sourceHeight, destWidth, destHeight, options).setTransform(1, 0, 0, 1, 0, 0); // reset to the identity matrix\n\n return canvas;\n }\n\n img.width = destWidth;\n img.height = destHeight;\n return img;\n };\n});","'use strict';\n\nvar Class = require('./class');\n\nmodule.exports = Class({\n initialize: function initialize() {\n this._index = {};\n },\n add: function add(item) {\n var key = item.id !== undefined ? item.id : item;\n if (this._index.hasOwnProperty(key)) return false;\n this._index[key] = item;\n return true;\n },\n forEach: function forEach(block, context) {\n for (var key in this._index) {\n if (this._index.hasOwnProperty(key)) block.call(context, this._index[key]);\n }\n },\n isEmpty: function isEmpty() {\n for (var key in this._index) {\n if (this._index.hasOwnProperty(key)) return false;\n }\n\n return true;\n },\n member: function member(item) {\n for (var key in this._index) {\n if (this._index[key] === item) return true;\n }\n\n return false;\n },\n remove: function remove(item) {\n var key = item.id !== undefined ? item.id : item;\n var removed = this._index[key];\n delete this._index[key];\n return removed;\n },\n toArray: function toArray() {\n var array = [];\n this.forEach(function (item) {\n array.push(item);\n });\n return array;\n }\n});","import { Playground, Props } from 'docz';\nimport { ReactionToggleIcon } from \"../../../../../src/components/ReactionToggleIcon\";\nimport { ThumbsUpIcon, Color } from \"../../../../../src/components/Icons\";\nimport * as React from 'react';\nexport default {\n Playground,\n Props,\n ReactionToggleIcon,\n ThumbsUpIcon,\n Color,\n React\n};","module.exports = {\n plugins: []\n};","'use strict';\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\n\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '') : baseURL;\n};","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n } // Copy function arguments\n\n\n var args = new Array(arguments.length - 1);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n } // Store and register the task\n\n\n var task = {\n callback: callback,\n args: args\n };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n\n switch (args.length) {\n case 0:\n callback();\n break;\n\n case 1:\n callback(args[0]);\n break;\n\n case 2:\n callback(args[0], args[1]);\n break;\n\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n\n if (task) {\n currentlyRunningATask = true;\n\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function registerImmediate(handle) {\n process.nextTick(function () {\n runIfPresent(handle);\n });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n\n global.onmessage = function () {\n postMessageIsAsynchronous = false;\n };\n\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n var onGlobalMessage = function onGlobalMessage(event) {\n if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function registerImmediate(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n\n channel.port1.onmessage = function (event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function registerImmediate(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n\n registerImmediate = function registerImmediate(handle) {\n // Create a \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/attached-activity/index.html b/docs/components/attached-activity/index.html index 8dcc20a0..e8cbecf6 100644 --- a/docs/components/attached-activity/index.html +++ b/docs/components/attached-activity/index.html @@ -1,4 +1,4 @@ -Attached activity | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityPropertiesBasic usageWithout imagesAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    AttachedActivity

    Properties

    activity
    Record<string, unknown> & { attachments?: Attachments | undefined; text?: string | undefined; } & { actor: string; object: unknown; verb: string; target?: string | undefined; to?: string[] | undefined; } & { ...; } & { ...; }
    required

    Basic usage

    Avatar | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarPropertiesWithout Image sourceWith Image sourceCircleAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Avatar

    Properties

    alt
    string | undefined
    circle
    boolean | undefined
    image
    string | undefined
    onClick
    ((event: MouseEvent<T, MouseEvent>) => void) | undefined
    rounded
    boolean | undefined
    size
    number | undefined

    Without Image source

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/button/index.html b/docs/components/button/index.html index d2686332..e9d61e55 100644 --- a/docs/components/button/index.html +++ b/docs/components/button/index.html @@ -1,4 +1,4 @@ -Button | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonPropertiesBasic usageDisabled stateLoading stateComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Button

    Properties

    buttonStyle
    "info" | "primary" | "faded" | undefined
    info
    disabled
    boolean | undefined
    loading
    boolean | undefined
    onClick
    ((event: MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined
    onKeyPress
    ((event: KeyboardEvent<HTMLButtonElement>) => void) | undefined
    type
    "button" | "submit" | "reset" | undefined
    button

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/card/index.html b/docs/components/card/index.html index fb3f9110..e2dae31e 100644 --- a/docs/components/card/index.html +++ b/docs/components/card/index.html @@ -1,4 +1,4 @@ -Card | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardPropertiesBasic usageComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgeIconsInfinite scrollLinkPanelReaction listTime header
    Readme

    Card

    Properties

    alt
    string | undefined
    handleClose
    ((e: SyntheticEvent<Element, Event>) => void) | undefined
    image
    string | null | undefined
    nolink
    boolean | undefined
    title
    string | undefined
    images
    OGImage[] | undefined
    []
    description
    string | undefined
    url
    string | undefined

    Basic usage

    Emoji picker | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerPropertiesBasic usageGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    EmojiPicker

    Properties

    emojiData
    Data | undefined
    onSelect
    ((emoji: EmojiData) => void) | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/flat-feed/index.html b/docs/components/flat-feed/index.html index 777c5bfe..c35038d5 100644 --- a/docs/components/flat-feed/index.html +++ b/docs/components/flat-feed/index.html @@ -1,4 +1,4 @@ -Flat feed | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    ActivityFlat feedPropertiesBasic usageWith custom ActivityFooterNotificationNotification dropdownNotification feedSingle postStatus update form
    UI Components
    Layout Components
    Streami18n
    Composition Components
    Readme

    FlatFeed

    This component should be a child of <StreamApp/> component.

    Properties

    Activity
    string | number | boolean | ReactElement<ActivityProps<UT, AT, CT, RT, CRT>, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    Activity (Component)
    LoadingIndicator
    string | number | boolean | ReactElement<LoadingIndicatorProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    Notifier
    string | number | boolean | ReactElement<NewActivitiesNotificationProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    Notifier (NewActivitiesNotification Component)
    Paginator
    string | number | boolean | ReactElement<LoadMorePaginatorProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    LoadMorePaginator (Component)
    Placeholder
    string | number | boolean | ReactElement<FeedPlaceholderProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    FeedPlaceholder (Component)
    options
    GetFeedOptions | undefined
    feedGroup
    string
    timeline
    userId
    string | undefined
    analyticsLocation
    string | undefined
    doActivityDeleteRequest
    DeleteRequestFn | undefined
    doChildReactionAddRequest
    ((kind: string, reaction: Reaction<RT>, data?: CRT | undefined, options?: ReactionAddChildOptions | undefined) => Promise<ReactionAPIResponse<CRT>>) | undefined
    doChildReactionDeleteRequest
    DeleteRequestFn | undefined
    doFeedRequest
    ((client: StreamClient<UT, AT, CT, RT, CRT, PT>, feedGroup: string, userId?: string | undefined, options?: GetFeedOptions | undefined) => Promise<FeedAPIResponse<UT, AT, CT, RT, CRT>>) | undefined
    doReactionAddRequest
    ((kind: string, activity: Activity<AT>, data?: RT | undefined, options?: ReactionAddOptions | undefined) => ReactionAPIResponse<RT>) | undefined
    doReactionDeleteRequest
    DeleteRequestFn | undefined
    doReactionsFilterRequest
    ((options: ReactionFilterConditions) => Promise<ReactionFilterAPIResponse<RT, CRT, AT, UT>>) | undefined
    notify
    boolean | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/flex/index.html b/docs/components/flex/index.html index 8532670c..e0d20d90 100644 --- a/docs/components/flex/index.html +++ b/docs/components/flex/index.html @@ -1,4 +1,4 @@ -Flex | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexPropertiesBasic usageWith custom propertiesFollow buttonIcon badgeIconsInfinite scrollLinkPanelReaction listTime header
    Readme

    Flex

    Properties

    a
    "end" | "start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "stretch" | "center" | "flex-end" | "flex-start" | "normal" | "self-end" | "self-start" | "baseline" | undefined
    d
    "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | undefined
    row
    j
    "right" | "end" | "left" | "start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "space-around" | "space-between" | "space-evenly" | "stretch" | ... 4 more ... | undefined
    js
    "right" | "end" | "left" | "start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "stretch" | "center" | "flex-end" | "flex-start" | "normal" | ... 4 more ... | undefined
    style
    CSSProperties | undefined
    w
    "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | undefined
    nowrap

    Basic usage

    statusSent
    opens1
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/follow-button/index.html b/docs/components/follow-button/index.html index 18b38b2d..ef8a0302 100644 --- a/docs/components/follow-button/index.html +++ b/docs/components/follow-button/index.html @@ -1,4 +1,4 @@ -Follow button | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonPropertiesBasic usageProperty followed set to trueIcon badgeIconsInfinite scrollLinkPanelReaction listTime header
    Readme

    FollowButton

    Properties

    followed
    boolean | undefined
    onClick
    ((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined

    Basic usage

    Follow
    Follow button | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonPropertiesBasic usageProperty followed set to trueIcon badgeIconsInfinite scrollLinkPanelReaction listTime header
    Readme

    FollowButton

    Properties

    followed
    boolean | undefined
    onClick
    ((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined

    Basic usage

    Follow
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/gallery/index.html b/docs/components/gallery/index.html index bec43659..36cca0ae 100644 --- a/docs/components/gallery/index.html +++ b/docs/components/gallery/index.html @@ -1,4 +1,4 @@ -Gallery | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryPropertiesBasic usageWith single imageWith two imagesLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Gallery

    Properties

    images
    string[] | undefined
    []

    Basic usage

    Icon badge | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgePropertiesBasic usageWith UnseenWith NumbersCustom IconHiddenIconsInfinite scrollLinkPanelReaction listTime header
    Readme

    IconBadge

    IconBadge is technically a wrapper that displays a badge with or without numbers on it's children.

    Properties

    hidden
    boolean | undefined
    onClick
    ((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined
    showNumber
    boolean | undefined
    unseen
    number | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/icons/index.html b/docs/components/icons/index.html index 8ce3447a..d4b4fb46 100644 --- a/docs/components/icons/index.html +++ b/docs/components/icons/index.html @@ -1,4 +1,4 @@ -Icons | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgeIconsAvatarIconEmojiIconRepostIcon ActiveRepostIcon InactiveCommentIcon ActiveCommentIcon InactiveThumbsUpIcon ActiveThumbsUpIcon InactiveInfinite scrollLinkPanelReaction listTime header
    Readme

    Icons

    AvatarIcon

    Icons | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgeIconsAvatarIconEmojiIconRepostIcon ActiveRepostIcon InactiveCommentIcon ActiveCommentIcon InactiveThumbsUpIcon ActiveThumbsUpIcon InactiveInfinite scrollLinkPanelReaction listTime header
    Readme

    Icons

    AvatarIcon

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/infinite-scroll/index.html b/docs/components/infinite-scroll/index.html index df06ce73..21844c9d 100644 --- a/docs/components/infinite-scroll/index.html +++ b/docs/components/infinite-scroll/index.html @@ -1,4 +1,4 @@ -Infinite scroll | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgeIconsInfinite scrollPropertiesBasic usageLinkPanelReaction listTime header
    Readme

    InfiniteScroll

    Properties

    className
    string | undefined
    element
    "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | ... 158 more ... | undefined
    hasMore
    boolean | undefined
    initialLoad
    boolean | undefined
    isLoading
    boolean | undefined
    isReverse
    boolean | undefined
    listenToScroll
    ((offset: number, reverseOffset: number, threshold: number) => void) | undefined
    loader
    ReactNode
    loadMore
    (() => void) | undefined
    pageStart
    number | undefined
    threshold
    number | undefined
    useCapture
    boolean | undefined
    useWindow
    boolean | undefined

    Basic usage

    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/load-more-button/index.html b/docs/components/load-more-button/index.html index 462a0df4..59734864 100644 --- a/docs/components/load-more-button/index.html +++ b/docs/components/load-more-button/index.html @@ -1,4 +1,4 @@ -Load more button | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonPropertiesBasic usageWith custom textRefreshing stateLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    LoadMoreButton

    Properties

    onClick
    ((event?: MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined
    refreshing
    boolean | undefined

    Basic usage

    Load more button | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonPropertiesBasic usageWith custom textRefreshing stateLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    LoadMoreButton

    Properties

    onClick
    ((event?: MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined
    refreshing
    boolean | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/load-more-paginator/index.html b/docs/components/load-more-paginator/index.html index 145074ff..2431a5d1 100644 --- a/docs/components/load-more-paginator/index.html +++ b/docs/components/load-more-paginator/index.html @@ -1,4 +1,4 @@ -Load more paginator | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorPropertiesBasic usageReverseRefreshing stateLast pageNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    LoadMorePaginator

    Properties

    children
    ReactNode
    required
    hasNextPage
    boolean
    required
    loadNextPage
    ((event?: MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined
    required
    LoadMoreButton
    string | number | boolean | ReactElement<LoadMoreButtonProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    LoadMoreButton (Component)
    refreshing
    boolean | undefined
    reverse
    boolean | undefined

    Basic usage

    Children items
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/new-activities-notification/index.html b/docs/components/new-activities-notification/index.html index 94cd727f..0a3adeef 100644 --- a/docs/components/new-activities-notification/index.html +++ b/docs/components/new-activities-notification/index.html @@ -1,4 +1,4 @@ -New activities notification | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationPropertiesBasic usageCustom label functionReaction iconReaction toggle iconRepost buttonTextareaTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    NewActivitiesNotification

    Properties

    adds
    any
    []
    deletes
    string[] | undefined
    []
    labelFunction
    LabelFunction | undefined
    labelPlural
    string | undefined
    labelSingle
    string | undefined
    onClick
    ((event: MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/notification-feed/index.html b/docs/components/notification-feed/index.html index e94d166c..c662571d 100644 --- a/docs/components/notification-feed/index.html +++ b/docs/components/notification-feed/index.html @@ -1,4 +1,4 @@ -Notification feed | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    ActivityFlat feedNotificationNotification dropdownNotification feedPropertiesBasic usageCustomized Notification UISingle postStatus update form
    UI Components
    Layout Components
    Streami18n
    Composition Components
    Readme

    NotificationFeed

    This component should be a child of <StreamApp/> component.

    Properties

    Group
    string | number | boolean | ReactElement<NotificationProps<UT, AT, CT, RT, CRT>, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    Notification (Component)
    LoadingIndicator
    string | number | boolean | ReactElement<LoadingIndicatorProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    Notifier
    string | number | boolean | ReactElement<NewActivitiesNotificationProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    NewActivitiesNotification (Component)
    Paginator
    string | number | boolean | ReactElement<LoadMorePaginatorProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    LoadMorePaginator (Component)
    Placeholder
    string | number | boolean | ReactElement<FeedPlaceholderProps, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<...> | FunctionComponent<...> | null | undefined
    FeedPlaceholder (Component)
    options
    GetFeedOptions | undefined
    feedGroup
    string | undefined
    notification
    userId
    string | undefined
    analyticsLocation
    string | undefined
    doActivityDeleteRequest
    DeleteRequestFn | undefined
    doChildReactionAddRequest
    ((kind: string, reaction: Reaction<RT>, data?: CRT | undefined, options?: ReactionAddChildOptions | undefined) => Promise<ReactionAPIResponse<CRT>>) | undefined
    doChildReactionDeleteRequest
    DeleteRequestFn | undefined
    doFeedRequest
    ((client: StreamClient<UT, AT, CT, RT, CRT, PT>, feedGroup: string, userId?: string | undefined, options?: GetFeedOptions | undefined) => Promise<FeedAPIResponse<UT, AT, CT, RT, CRT>>) | undefined
    doReactionAddRequest
    ((kind: string, activity: Activity<AT>, data?: RT | undefined, options?: ReactionAddOptions | undefined) => ReactionAPIResponse<RT>) | undefined
    doReactionDeleteRequest
    DeleteRequestFn | undefined
    doReactionsFilterRequest
    ((options: ReactionFilterConditions) => Promise<ReactionFilterAPIResponse<RT, CRT, AT, UT>>) | undefined
    notify
    boolean | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/notification/index.html b/docs/components/notification/index.html index b859926d..5368b552 100644 --- a/docs/components/notification/index.html +++ b/docs/components/notification/index.html @@ -1,4 +1,4 @@ -Notification | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    ActivityFlat feedNotificationPropertiesBasic usageNotification dropdownNotification feedSingle postStatus update form
    UI Components
    Layout Components
    Streami18n
    Composition Components
    Readme

    Notification

    This component renders each grouped activity inside the <NotificationFeed /> component.

    It supports the following activity verbs by default: follow, like, repost, comment.

    Properties

    activityGroup
    NotificationActivityEnriched<UT, AT, CT, RT, CRT>
    required
    onClickNotification
    ((activityGroup: NotificationActivityEnriched<UT, AT, CT, RT, CRT>) => void) | undefined
    onClickUser
    OnClickUserHandler<UT> | undefined
    onMarkAsRead
    ((group: MarkAsGroup) => Promise<void>) | undefined

    Basic usage

    Textarea | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaPropertiesBasic usageCustomizedTitleUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Textarea

    Properties

    emojiData
    Data | undefined
    innerRef
    MutableRefObject<HTMLTextAreaElement | undefined> | ((el: HTMLTextAreaElement) => void) | undefined
    maxLength
    number | undefined
    onChange
    ((event: SyntheticEvent<HTMLTextAreaElement, Event>) => void) | undefined
    onPaste
    ((event: ClipboardEvent<HTMLTextAreaElement>) => void) | undefined
    placeholder
    string | undefined
    Share your opinion
    rows
    number | undefined
    3
    trigger
    TriggerType<Record<string, unknown>> | undefined
    {}
    value
    string | undefined

    Basic usage

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/time-header/index.html b/docs/components/time-header/index.html index 8ea19e05..15577fa3 100644 --- a/docs/components/time-header/index.html +++ b/docs/components/time-header/index.html @@ -1,4 +1,4 @@ -Time header | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Layout Components
    Streami18n
    Composition Components
    CardComment fieldComment listData labelDropdownDropdown panelFlexFollow buttonIcon badgeIconsInfinite scrollLinkPanelReaction listTime headerBasic usage
    Readme

    TimeHeader

    Basic usage

    June 2021
    August 2021
    September 2021
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/title/index.html b/docs/components/title/index.html index 733ba575..f309623b 100644 --- a/docs/components/title/index.html +++ b/docs/components/title/index.html @@ -1,4 +1,4 @@ -Title | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitlePropertiesBasic usageUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Title

    Properties

    size
    number | undefined
    18

    Basic usage

    An interesting title
    Title | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitlePropertiesBasic usageUser barVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    Title

    Properties

    size
    number | undefined
    18

    Basic usage

    An interesting title
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/components/user-bar/index.html b/docs/components/user-bar/index.html index 78b8623a..9b4b09ec 100644 --- a/docs/components/user-bar/index.html +++ b/docs/components/user-bar/index.html @@ -1,4 +1,4 @@ -User bar | React Activity Feed
    React Activity Feed
    Edit page
    Introduction
    Top Level Components
    UI Components
    Attached activityAudioAvatarAvatar groupButtonComment itemEmoji pickerGalleryLike buttonLoad more buttonLoad more paginatorNew activities notificationReaction iconReaction toggle iconRepost buttonTextareaTitleUser barPropertiesBasic usageVideo
    Layout Components
    Streami18n
    Composition Components
    Readme

    UserBar

    Properties

    username
    string
    required
    AfterUsername
    ReactNode
    avatar
    string | undefined
    follow
    boolean | undefined
    icon
    string | undefined
    onClickUser
    ((event: MouseEvent<Element, MouseEvent>) => void) | undefined
    Right
    string | number | boolean | ReactElement<Record<string, unknown>, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)> | ComponentClass<Record<...>, any> | FunctionComponent<...> | null | undefined
    subtitle
    string | undefined
    time
    string | undefined
    timestamp
    string | number | Date | undefined

    Basic usage

    Batman