Build 589089stable
Module 532879
428 characters · in 514.d733764d42c2ab66.jsDependencies
Source Raw
function(e,t,n){let r=n(4144),i=n(481558);e.exports=(e,t,n)=>{let a=[],o=null,s=null,l=e.sort((e,t)=>i(e,t,n));for(let e of l)r(e,t,n)?(s=e,o||(o=e)):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let u=[];for(let[e,t]of a)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length<d.length?c:t}}