const e=`ocr-difficulty`,t=[{id:`easy`,index:0,label:`OCR Easy`,backgroundColor:`#047857`,textColor:`#ffffff`},{id:`medium`,index:1,label:`OCR Medium`,backgroundColor:`#b45309`,textColor:`#ffffff`},{id:`difficult`,index:2,label:`OCR Difficult`,backgroundColor:`#991b1b`,textColor:`#ffffff`}];function n(e){if(!e.length)throw Error(`OCR classifier returned no scores.`);let n=0,r=Number(e[0]??0);for(let t=1;t<e.length;t+=1){let i=Number(e[t]);i>r&&(n=t,r=i)}return{...t[n]??t[2],score:r}}function r(t){return{type:e,id:t.id,label:t.label,backgroundColor:t.backgroundColor,textColor:t.textColor}}function i(e){return`${Math.round(e*1e3)/10}%`}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});