PageSourceSearch

https://pika.page/assets/is-emoji-supported-004c21ab31a07ab6a03480…3896ff6a2a4f44446ccb452a4ae930d94166e5fd.js

js pika.page collected 2026-10-03 21:42:13 UTC 1,525 bytes, 21 lines download raw bytes

1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/dist/umd/is-emoji-supported.js
2
3var e={};(function(t,a){a(e)})(e,(function(e){var t=new Map;
4/**
5   * Check if emoji is supported with cache
6   *
7   * @params {string} unicode
8   * @returns {boolean}
9   */function isEmojiSupported(e){if(t.has(e))return t.get(e);var r=a(e);t.set(e,r);return r}
10/**
11   * Request to handle cache directly
12   *
13   * @params {Map} store
14   */function setCacheHandler(e){t=e}
15/**
16   * Check if the two pixels parts are perfectly the sames
17   *
18   * @params {string} unicode
19   * @returns {boolean}
20   */var a=function(){var e=null;try{e=document.createElement("canvas").getContext("2d")}catch(e){}if(!e)return function(){return false};var t=25;var a=20;var r=Math.floor(t/2);e.font=r+"px Arial, Sans-Serif";e.textBaseline="top";e.canvas.width=2*a;e.canvas.height=t;return function(r){e.clearRect(0,0,2*a,t);e.fillStyle="#FF0000";e.fillText(r,0,22);e.fillStyle="#0000FF";e.fillText(r,a,22);var n=e.getImageData(0,0,a,t).data;var o=n.length;var i=0;for(;i<o&&!n[i+3];i+=4);if(i>=o)return false;var l=a+i/4%a;var u=Math.floor(i/4/a);var f=e.getImageData(l,u,1,1).data;return n[i]===f[0]&&n[i+2]===f[2]&&!(e.measureText(r).width>=a)}}();e.isEmojiSupported=isEmojiSupported;e.setCacheHandler=setCacheHandler;Object.defineProperty(e,"__esModule",{value:true})}));const t=e.isEmojiSupported,a=e.setCacheHandler,r=e.__esModule;export default e;
20export{r as __esModule,t as isEmojiSupported,a as setCacheHandler};
21

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.