import{t as e}from"./query-string-RcCSSKcJ.js";import"./logger-m2skRwRe.js";import{n as t}from"./axios-fetch-adapter-m8Kx6J-y.js";import{l as n}from"./cache-hsasTrVL.js";import"./init-DqRNJlH2.js";import{n as r}from"./api-C8igxqc9.js";import"./fetch-CbbvgSqV.js";import"./getter-DqUftN13.js";import"./get-DkgjvOxb.js";var i=async(i,a,o=10,s=0,c=0,l=0)=>{try{let u={itemid:i,shopid:a,limit:o,offset:s*o,filter:c,filter_size:0,flag:1,exclude_filter:1,fold_filter:0,relevant_reviews:!1,request_source:2,type:l,tag_filter:``,variation_filters:``},d=new n(Object.values(u).join(`-`)),f=await d.get();if(f)return f;let p=await r(e.stringifyUrl({url:`${t}/api/v2/item/get_ratings`,query:u}));return p&&p.data?(await d.set(p.data),p.data):null}catch{return null}};export{i as t};