"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(target,value)=>__defProp(target,"name",{value:value,configurable:!0}),__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),__async=(__this,__arguments,generator)=>new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}},rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}},step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var getMeta=__name(function(_0){return __async(this,arguments,function*({link:link,providerContext:providerContext}){try{const url=link,data=(yield providerContext.axios.get(url,{headers:providerContext.commonHeaders})).data,$=providerContext.cheerio.load(data),type=url.includes("tvshows")?"series":"movie",imdbId="",title=url.split("/")[4].replace(/-/g," "),image=$(".g-item").find("a").attr("href")||"",synopsis=$(".wp-content").text().trim(),tags=$(".sgeneros").children().map((i,element)=>$(element).text()).get().slice(3),rating=Number($("#repimdb").find("strong").text()).toFixed(1).toString(),links=[];return $(".custom-links").find(".ep-button-container").map((i,element)=>{var _a;const title2=$(element).text().replace("⬇Download","").replace("⬇ Download","").trim(),link2=$(element).find("a").attr("href");title2&&link2&&links.push({title:title2,episodesLink:link2,quality:(null==(_a=null==title2?void 0:title2.match(/\d+P\b/))?void 0:_a[0].replace("P","p"))||""})}),0===links.length&&$(".ep-button-container:not(:has(a:contains('Click Here To Visit')))").map((i,element)=>{var _a;let title2=$(element).find("a").text().replace("⬇Download","").replace("⬇ Download","").trim();title2.includes("Download Now")&&(title2=$(element).parent().find("h3").text().trim().replace("⬇Download","").replace("⬇ Download",""));const link2=$(element).find("a").attr("href");title2&&link2&&links.push({title:title2,episodesLink:link2,quality:(null==(_a=null==title2?void 0:title2.match(/\d+P\b/))?void 0:_a[0].replace("P","p"))||""})}),{title:title,tags:tags,rating:rating,synopsis:synopsis,image:image,imdbId:imdbId,type:type,linkList:links}}catch(err){return console.error(err),{title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}}})},"getMeta");exports.getMeta=getMeta;