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

1 line
13 KiB
JavaScript
Raw Normal View History

var twemoji=function(){"use strict";var m={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 c(d);return c(55296+((d-=65536)>>10),56320+(1023&d))},toCodePoint:t},onerror:function(){this.parentNode&&this.parentNode.replaceChild(C(this.alt),this)},parse:function(d,u){u&&"function"!=typeof u||(u={callback:u});return("string"==typeof d?function(d,b){return a(d,function(d,u,c){var e,f,a,t=d;if("\ufe0e"!==c&&(a=b.callback(A(u,c),b,c))){for(f in t="<img ".concat('class="',b.className,'" ','draggable="false" ','alt="',d,'"',' src="',a,'"'),e=b.attributes(u,c))e.hasOwnProperty(f)&&0!==f.indexOf("on")&&-1===t.indexOf(" "+f+"=")&&(t=t.concat(" ",f,'="',e[f].replace(n,r),'"'));t=t.concat(">")}return t})}:function(d,u){var c,e,f,a,t,b,n,r,o,i,s,l,p,h=function d(u,c){var e,f,a=u.childNodes,t=a.length;for(;t--;)e=a[t],3===(f=e.nodeType)?c.push(e):1!==f||N.test(e.nodeName)||d(e,c);return c}(d,[]),g=h.length;for(;g--;){for(f=!1,a=document.createDocumentFragment(),t=h[g],b=t.nodeValue,n=0;l=x.exec(b);){if(r=l.index,r!==n&&a.appendChild(C(b.slice(n,r))),i=l[0],s=l[1],l=l[2],n=r+i.length,"\ufe0e"!==l&&(p=u.callback(A(s,l),u,l))){for(e in(o=new Image).onerror=m.onerror,o.setAttribute("draggable","false"),c=u.attributes(s,l))c.hasOwnProperty(e)&&0!==e.indexOf("on")&&!o.hasAttribute(e)&&o.setAttribute(e,c[e]);o.className=u.className,o.alt=i,o.src=p,f=!0,a.appendChild(o)}o||a.appendChild(C(i)),o=null}f&&(n<b.length&&a.appendChild(C(b.slice(n))),t.parentNode.replaceChild(a,t))}return d})(d,{callback:u.callback||e,attributes:"function"==typeof u.attributes?u.attributes:f,base:("string"==typeof u.base?u:m).base,ext:u.ext||m.ext,size:u.folder||function(d){return"number"==typeof d?d+"x"+d:d}(u.size||m.size),className:u.className||m.className})},replace:a,test:function(d){x.lastIndex=0;d=x.test(d);return x.lastIndex=0,d}},u={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},x=/((?:\ud83c\udde8\ud83c\uddf3|\ud83c\uddfa\ud83c\uddf8|\ud83c\uddf7\ud83c\uddfa|\ud83c\uddf0\ud83c\uddf7|\ud83c\uddef\ud83c\uddf5|\ud83c\uddee\ud83c\uddf9|\ud83c\uddec\ud83c\udde7|\ud83c\uddeb\ud83c\uddf7|\ud83c\uddea\ud83c\uddf8|\ud83c\udde9\ud83c\uddea|\u0039\ufe0f?\u20e3|\u0038\ufe0f?\u20e3|\u0037\ufe0f?\u20e3|\u0036\ufe0f?\u20e3|\u0035\ufe0f?\u20e3|\u0034\ufe0f?\u20e3|\u0033\ufe0f?\u20e3|\u0032\ufe0f?\u20e3|\u0031\ufe0f?\u20e3|\u0030\ufe0f?\u20e3|\u0023\ufe0f?\u20e3|\ud83d\udeb3|\ud83d\udeb1|\ud83d\udeb0|\ud83d\udeaf|\ud83d\udeae|\ud83d\udea6|\ud83d\udea3|\ud83d\udea1|\ud83d\udea0|\ud83d\ude9f|\ud83d\ude9e|\ud83d\ude9d|\ud83d\ude9c|\ud83d\ude9b|\ud83d\ude98|\ud83d\ude96|\ud83d\ude94|\ud83d\ude90|\ud83d\ude8e|\ud83d\ude8d|\ud83d\ude8b|\ud83d\ude8a|\ud83d\ude88|\ud83d\ude86|\ud83d\ude82|\ud83d\ude81|\ud83d\ude36|\ud83d\ude34|\ud83d\ude2f|\ud83d\ude2e|\ud83d\ude2c|\ud83d\ude27|\ud83d\ude26|\ud83d\ude1f|\ud83d\ude1b|\ud83d\ude19|\ud83d\ude17|\ud83d\ude15|\ud83d\ude11|\ud83d\ude10|\ud83d\ude0e|\ud83d\ude08|\ud83d\ude07|\ud83d\ude00|\ud83d\udd67|\ud83d\udd66|\ud83d\udd65|\ud83d\udd64|\ud83d\udd63|\ud83d\udd62|\ud83d\udd61|\ud83d\udd60|\ud83d\udd5f|\ud83d\udd5e|\ud83d\udd5d|\ud83d\udd5c|\ud83d\udd2d|\ud83d\udd2c|\ud83d\udd15|\ud83d\udd09|\ud83d\udd08|\ud83d\udd07|\ud83d\udd06|\ud83d\udd05|\ud83d\udd04|\ud83d\udd02|\ud83d\udd01|\ud83d\udd00|\ud83d\udcf5|\ud83d\udcef|\ud83d\udced|\ud83d\udcec|\ud83d\udcb7|\ud83d\udcb6|\ud83d\udcad|\ud83d\udc6d|\ud83d\udc6c|\ud83d\udc65|\ud83d\udc2a|\ud83d\udc16|\ud83d\udc15|\ud83d\udc13|\ud83d\udc10|\ud83d\udc0f|\ud83d\udc0b|\ud83d\udc0a|\ud83d\udc09|\ud83d\udc08|\ud83d\udc07|\ud83d\udc06|\ud83d\udc05|\ud83d\udc04|\ud83d\udc03|\ud83d\udc02|\ud83d\udc01|\ud83d\udc00|\ud83c\udfe4|\ud83c\udfc9|\ud83c\udfc7|\ud83c\udf7c|\ud83c\udf50|\ud83c\udf4b|\ud83c\udf33|\ud83c\udf32|\ud83c\udf1e|\ud83c\udf1d|\ud83c\udf1c|\ud83c\udf1a|\ud83c\udf18|\ud83c\udccf|\ud83c\udd70|\ud83c\udd71|\ud83c\udd7e|\ud83c\udd8e|\ud83c\udd91|\ud83c\udd92|\ud83c\udd93|\ud83c\udd94|\ud83c\udd95|\ud83c\udd96|\ud83c\udd9