!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"5a2b8a89bc6fcf6a554e50a7db4ebfb1ba662913"};var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e7ef7a8b-2ac4-4dca-995e-966b88537a1d",e._sentryDebugIdIdentifier="sentry-dbid-e7ef7a8b-2ac4-4dca-995e-966b88537a1d")}catch(e){}}(),self.onmessage=function(e){const{collection:a,sortBy:n}=e.data,t={"alpha-asc":(e,a)=>String(e.label).localeCompare(String(a.label),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"alpha-desc":(e,a)=>String(a.label).localeCompare(String(e.label),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"num-asc":(e,a)=>String(e.pill_raw||e.pill||e.actualCount||e.count||0).localeCompare(String(a.pill_raw||a.pill||a.actualCount||a.count||0),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"num-desc":(e,a)=>String(a.pill_raw||a.pill||a.actualCount||a.count||0).localeCompare(String(e.pill_raw||e.pill||e.actualCount||e.count||0),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0})},i=t[n]||t["alpha-asc"],l=a.slice().sort(i);self.postMessage(l)};