"use strict";(self.webpackChunkPeerTube=self.webpackChunkPeerTube||[]).push([[384],{98118:(a,d,s)=>{var o=s(27473),i=s(58167),p=s(75973);a.exports=function(u,f){var e=p(u.utils.assign({},{defs:{},shortcuts:{},enabled:[]},f||{}));u.renderer.rules.emoji=o,u.core.ruler.push("emoji",i(u,e.defs,e.shortcuts,e.scanRE,e.replaceRE))}},55704:a=>{a.exports={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]}},75973:a=>{a.exports=function(o){var p,i=o.defs;o.enabled.length&&(i=Object.keys(i).reduce(function(e,t){return o.enabled.indexOf(t)>=0&&(e[t]=i[t]),e},{})),p=Object.keys(o.shortcuts).reduce(function(e,t){return i[t]?Array.isArray(o.shortcuts[t])?(o.shortcuts[t].forEach(function(b){e[b]=t}),e):(e[o.shortcuts[t]]=t,e):e},{});var u,j=Object.keys(i);u=0===j.length?"^$":j.map(function(e){return":"+e+":"}).concat(Object.keys(p)).sort().reverse().map(function(e){return function d(s){return s.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}(e)}).join("|");var f=RegExp(u),g=RegExp(u,"g");return{defs:i,shortcuts:p,scanRE:f,replaceRE:g}}},27473:a=>{a.exports=function(s,o){return s[o].content}},58167:a=>{a.exports=function(s,o,i,p,j){var u=s.utils.arrayReplaceAt,f=s.utils.lib.ucmicro,g=new RegExp([f.Z.source,f.P.source,f.Cc.source].join("|"));function e(t,b,h){var n,m=0,c=[];return t.replace(j,function(r,l,v){var k;if(i.hasOwnProperty(r)){if(k=i[r],l>0&&!g.test(v[l-1])||l+r.length<v.length&&!g.test(v[l+r.length]))return}else k=r.slice(1,-1);l>m&&((n=new h("text","",0)).content=t.slice(m,l),c.push(n)),(n=new h("emoji","",0)).markup=k,n.content=o[k],c.push(n),m=l+r.length}),m<t.length&&((n=new h("text","",0)).content=t.slice(m),c.push(n)),c}return function(b){var h,n,m,c,r,l=b.tokens,v=0;for(n=0,m=l.length;n<m;n++)if("inline"===l[n].type)for(h=(c=l[n].children).length-1;h>=0;h--)("link_open"===(r=c[h]).type||"link_close"===r.type)&&"auto"===r.info&&(v-=r.nesting),"text"===r.type&&0===v&&p.test(r.content)&&(l[n].children=c=u(c,h,e(r.content,0,b.Token)))}}},97384:(a,d,s)=>{var o=s(96938),i=s(55704),p=s(98118);a.exports=function(u,f){var e=u.utils.assign({},{defs:o,shortcuts:i,enabled:[]},f||{});p(u,e)}}}]);
//# sourceMappingURL=384.b72bb4a099d819bb.js.map