1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/database-D_1Mbg_g.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/immutable.es-tL0E-S7u.js","/packs/locale-D-1rLaCQ.js","/packs/utils-B19lL5A9.js","/packs/_rolldown_dynamic_import_helper-CIAwlR2T.js","/packs/preload-helper-HclGiUj8.js","/packs/intl-localematcher-DRXXZd2Y.js","/packs/fast-memoize-tJqGINKI.js"])))=>i.map(i=>d[i]); 2import{t as e}from"./preload-helper-HclGiUj8.js";import{g as t,h as n}from"./locale-D-1rLaCQ.js";import{a as r,n as i,o as a,r as o,s,t as c}from"./utils-B19lL5A9.js";import{l,s as u}from"./database-D_1Mbg_g.js";var d=i(`render`);function f(e){if(!e.trim())return[e];let r=[],i=0;for(let a of e.matchAll(c())){a.index>i&&r.push(e.slice(i,a.index));let o=a[0];o.startsWith(`:`)&&o.endsWith(`:`)?r.push({code:o,type:n}):r.push({code:o,type:t}),i=a.index+o.length}return i<e.length&&r.push(e.slice(i)),r}function p(e,i={}){if(a(e))return{code:o(e),type:t};if(r(e)){let t=e.slice(1,-1);if(i[t])return{type:n,code:t,data:i[t]}}return null}async function m({assetHost:e,darkTheme:t,element:n,mode:r,locale:i}){if(r===`native`)return;let a=f(n.innerHTML),o=[];for(let n of a){if(typeof n==`string`){o.push(n);continue}let a=await h(n,i);if(!a||a.type===`custom`){o.push(n.code);continue}if(!_(a,r)){o.push(a.data.unicode);continue}let s=document.createElement(`img`);s.src=l({assetHost:e,darkTheme:t,unicodeHex:a.data.hexcode}),s.alt=a.data.unicode,s.title=a.data.label,s.classList.add(`emojione`);let c=u(a.data.unicode);c&&s.classList.add(c),o.push(s)}n.innerHTML=o.reduce((e,t)=>typeof t==`string`?e+t:e+t.outerHTML,``)}async function h(n,r,i=!1){if(g(n))return n;if(n.type===`custom`)return null;let{loadLegacyShortcodesByShortcode:s,loadEmojiByHexcode:c,LocaleNotLoadedError:l}=await e(async()=>{let{loadLegacyShortcodesByShortcode:e,loadEmojiByHexcode:t,LocaleNotLoadedError:n}=await import(`./database-D_1Mbg_g.js`).then(e=>e.t);return{loadLegacyShortcodesByShortcode:e,loadEmojiByHexcode:t,LocaleNotLoadedError:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),u=a(n.code)?o(n.code):n.code;try{let e=await s(u),i=await c(e?.hexcode??u,r);return i?{...n,code:u,type:t,data:i,shortcode:e?.shortcodes.at(0)}:(d(`Could not find emoji %s for locale %s`,u,r),null)}catch(t){if(!i&&t instanceof l){d(`Error loading emoji %s for locale %s, loading locale and retrying.`,u,r);let{importEmojiData:t}=await e(async()=>{let{importEmojiData:e}=await import(`./database-D_1Mbg_g.js`).then(e=>e.u);return{importEmojiData:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return await t(r),h(n,r,!0)}return console.warn(`Error loading emoji data, not retrying:`,n,r,t),null}}function g(e){return!!e.data}function _(e,t){return!(e.type===`unicode`&&(t===`native`||t===`native-flags`&&!s(e.code)))}export{f as a,p as i,h as n,m as o,_ as r,g as t}; 3//# sourceMappingURL=render-DgEIfTde.js.map
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.