WordPress/wp-includes/js/twemoji.min.js

1 line
30 KiB
JavaScript
Raw Normal View History

var twemoji=function(){"use strict";var c={base:("https:"===location.protocol?"https:":"http:")+"//twemoji.maxcdn.com/",ext:".png",size:"36x36",className:"emoji",convert:{fromCodePoint:function(d){d="string"==typeof d?parseInt(d,16):d;if(d<65536)return f(d);return f(55296+((d-=65536)>>10),56320+(1023&d))},toCodePoint:t},onerror:function(){this.parentNode&&this.parentNode.replaceChild(N(this.alt),this)},parse:function(d,u){u&&"function"!=typeof u||(u={callback:u});return("string"==typeof d?function(d,t){return b(d,function(d,u,c){var f,e,a,b=d;if("\ufe0e"!==c&&(a=t.callback(C(u,c),t,c))){for(e in b="<img ".concat('class="',t.className,'" ','draggable="false" ','alt="',d,'"',' src="',a,'"'),f=t.attributes(u,c))f.hasOwnProperty(e)&&0!==e.indexOf("on")&&-1===b.indexOf(" "+e+"=")&&(b=b.concat(" ",e,'="',f[e].replace(n,r),'"'));b=b.concat(">")}return b})}:function(d,u){var c,f,e,a,b,t,n,r,o,i,s,l,p,h=function d(u,c){var f,e,a=u.childNodes,b=a.length;for(;b--;)f=a[b],3===(e=f.nodeType)?c.push(f):1!==e||x.test(f.nodeName)||d(f,c);return c}(d,[]),g=h.length;for(;g--;){for(e=!1,a=document.createDocumentFragment(),b=h[g],t=b.nodeValue,n=0;l=m.exec(t);){if(r=l.index,r!==n&&a.appendChild(N(t.slice(n,r))),i=l[0],s=l[1],l=l[2],n=r+i.length,"\ufe0e"!==l&&(p=u.callback(C(s,l),u,l))){for(f in(o=new Image).onerror=u.onerror,o.setAttribute("draggable","false"),c=u.attributes(s,l))c.hasOwnProperty(f)&&0!==f.indexOf("on")&&!o.hasAttribute(f)&&o.setAttribute(f,c[f]);o.className=u.className,o.alt=i,o.src=p,e=!0,a.appendChild(o)}o||a.appendChild(N(i)),o=null}e&&(n<t.length&&a.appendChild(N(t.slice(n))),b.parentNode.replaceChild(a,b))}return d})(d,{callback:u.callback||e,attributes:"function"==typeof u.attributes?u.attributes:a,base:("string"==typeof u.base?u:c).base,ext:u.ext||c.ext,size:u.folder||function(d){return"number"==typeof d?d+"x"+d:d}(u.size||c.size),className:u.className||c.className,onerror:u.onerror||c.onerror})},replace:b,test:function(d){m.lastIndex=0;d=m.test(d);return m.lastIndex=0,d}},u={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},m=/((?:\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67|\ud83c\uddf7\ud83c\uddf8|\ud83d\udd95\ud83c\udffd|\ud83d\udd95\ud83c\udffc|\ud83d\udd95\ud83c\udffb|\ud83d\udd90\ud83c\udfff|\ud83d\udd90\ud83c\udffe|\ud83d\udd90\ud83c\udffd|\ud83d\udd90\ud83c\udffc|\ud83d\udd90\ud83c\udffb|\ud83d\udcaa\ud83c\udfff|\ud83d\udcaa\ud83c\udffe|\ud83d\udcaa\ud83c\udffd|\ud83d\udcaa\ud83c\udffc|\ud83d\udcaa\ud83c\udffb|\ud83d\udc87\ud83c\udfff|\ud83d\udc87\ud83c\udffe|\ud83d\udc87\ud83c\udffd|\ud83d\udc87\ud83c\udffc|\ud83d\udc87\ud83c\udffb|\ud83d\udc86\ud83c\udfff|\ud83d\udc86\ud83c\udffe|\ud83d\udc86\ud83c\udffd|\ud83e\udd18\ud83c\udfff|\ud83e\udd18\ud83c\udffe|\ud83e\udd18\ud83c\udffd|\ud83e\udd18\ud83c\udffc|\ud83e\udd18\ud83c\udffb|\ud83d\udec0\ud83c\udfff|\ud83d\udec0\ud83c\udffe|\ud83d\udec0\ud83c\udffd|\ud83d\udec0\ud83c\udffc|\ud83d\udec0\ud83c\udffb|\ud83d\udeb6\ud83c\udfff|\ud83d\udeb6\ud83c\udffe|\ud83d\udeb6\ud83c\udffd|\ud83d\udeb6\ud83c\udffc|\ud83d\udeb6\ud83c\udffb|\ud83d\