import{t as e}from"./query-string-RcCSSKcJ.js";import"./logger-BTOOQRog.js";import{n as t}from"./axios-fetch-adapter-C745mZql.js";import{l as n}from"./cache-BCH2kRNz.js";import{n as r}from"./api-hgs6YYEz.js";import"./fetch-Cx5zvSbz.js";import"./getter-CXpjFlcD.js";import"./get-ZYlZLxc3.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};