<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:05:38
 namespace App\Http\Resources; use App\Helpers\Helper; use Illuminate\Http\Resources\Json\JsonResource; use ImageCross; class CommentResource extends JsonResource { public function toArray($request) { return ["\x69\x64" => $this->id, "\x69\x64\170" => $this->idx, "\x69\155\141\147\145" => $this->image, "\154\x69\153\x65" => $this->like, "\x64\151\x73\x6c\151\x6b\145" => $this->dislike, "\x61\165\164\x68\157\162" => $this->author, "\x69\163\x5f\141\x6e\x6f\156\171\x6d\x6f\165\163" => $this->is_anonymous, "\151\163\137\163\x68\x6f\167\x5f\x69\x64" => $this->is_show_id, "\x69\x73\x5f\141\154\x6c\x6f\x77\137\x63\x6f\155\x6d\145\156\164" => $this->is_allow_comment, "\143\x6f\155\155\x65\x6e\x74\x43\157\x75\156\164" => $this->commentCount, "\x67\141\x74\x65" => $this->gate, "\160\x6c\165\163" => $this->plus, "\155\151\x6e\165\x73" => $this->minus, "\x6c\157\141\x64\x69\156\x67\x50\x6c\165\163" => $this->loadingPlus, "\x6c\x6f\141\x64\x69\156\x67\115\151\156\165\x73" => $this->loadingMinus, "\x64\x65\164\141\151\154" => array_map(function ($Qd9dI) { return ["\x63\x6f\155\x6d\145\156\x74\x5f\151\144" => $Qd9dI["\143\x6f\x6d\x6d\145\156\x74\137\151\144"], "\143\x6f\x6e\164\x65\156\x74" => Helper::filterAll($Qd9dI["\x63\x6f\x6e\x74\x65\156\164"]), "\164\x69\164\154\x65" => $Qd9dI["\x74\151\164\154\x65"], "\x64\x6f\155\141\151\156" => $Qd9dI["\x64\x6f\155\141\151\156"], "\144\x65\x73\143\x72\151\160\x74\x69\157\156" => $Qd9dI["\144\145\163\143\x72\x69\x70\x74\151\x6f\156"], "\x74\150\x75\155\142\156\x61\151\x6c" => $Qd9dI["\164\150\x75\x6d\142\156\x61\151\154"], "\151\x73\x5f\x75\162\154" => $Qd9dI["\x69\x73\137\x75\x72\154"]]; }, $this->detail->toArray()), "\161\165\157\x74\145" => array_map(function ($vsmqG) { return ["\x69\144" => $vsmqG["\151\144"], "\x70\x61\162\145\x6e\164\137\151\x64" => $vsmqG["\160\x61\x72\145\x6e\x74\137\x69\144"], "\143\157\x6d\x6d\x65\x6e\x74\x5f\151\144" => $vsmqG["\x63\x6f\x6d\x6d\145\x6e\x74\x5f\x69\144"], "\x63\x6f\x6e\x74\145\156\164" => $vsmqG["\x63\157\156\x74\145\156\164"]]; }, $this->quote->toArray()), "\x63\162\145\141\x74\145\144\x5f\141\164" => date("\131\x2d\x6d\x2d\144\x20\110\x3a\x69\x3a\x73", strtotime($this->created_at))]; } public static function saveImage($gBLws) { try { $LLy00 = public_path("\x75\x70\154\x6f\x61\144\x73\x2f\151\x6d\141\x67\x65\57\x74\157\x70\x69\143"); $qOBVw = md5(date("\131\x6d\144\x48\151\163") . rand(1, 9999)) . "\x2e\x6a\160\147"; ImageCross::make($gBLws)->orientate()->save($LLy00 . "\57" . $qOBVw); return $qOBVw; } catch (\Exception $oLoQS) { return ''; } } public static function createThumb($gBLws, $k8WeD = 60, $jgdST = 60) { try { $LLy00 = public_path("\x75\160\154\x6f\x61\x64\x73\57\x69\155\x61\147\x65\57\x74\157\x70\x69\x63"); $qOBVw = md5(date("\x59\155\x64\110\151\x73") . rand(1, 9999)) . "\x2e\152\x70\147"; $U5Bdl = ImageCross::make($gBLws)->orientate()->save($LLy00 . "\x2f" . $qOBVw); $U5Bdl->resize(60, 60, function ($Leg4l) { $Leg4l->aspectRatio(); $Leg4l->upsize(); })->save($LLy00 . "\57\x74\x68\165\x6d\x62\x6e\141\x69\x6c\137\66\60\x78\66\x30\x2f" . $qOBVw); return $qOBVw; } catch (\Exception $oLoQS) { return ''; } } public static function getMetaInfo($p_5Qp = '') { goto L7EiX; bKENa: if (!(count($PHlQ0) == count($y0mxA) && count($y0mxA) == count($GZBwg))) { goto JQZpk; } $fzyCG = 0; $NR2yG = count($y0mxA); goto jRFaj; QWktU: $GZBwg = $NWvLM[2]; if (!(count($PHlQ0) == count($y0mxA) && count($y0mxA) == count($GZBwg))) { goto gdKBl; } $fzyCG = 0; goto YEHKP; L7EiX: $iAcdH = null; $PQG6o = null; $uZzdu = []; goto Im8DL; ZbcHU: $PQG6o = strip_tags($NWvLM[1]); c4DcL: preg_match_all("\57\x3c\x5b\x5c\x73\x5d\52\x6d\145\x74\x61\133\134\163\135\x2a\156\141\155\x65\x3d\42\77" . "\x28\x5b\x5e\76\x22\x5d\x2a\x29\42\77\x5b\134\163\135\x2a" . "\x63\x6f\x6e\x74\x65\x6e\x74\x3d\x22\77\x28\133\136\x3e\42\x5d\x2a\51\x22\x3f\x5b\134\x73\135\52\x5b\134\x2f\x5d\x3f\x5b\134\x73\x5d\x2a\x3e\x2f\x73\x69", $RTZbq, $NWvLM); goto aHt4H; tOilp: $KBvTI = new \DOMDocument(); @$KBvTI->loadHTML($RTZbq); $NTEnO = $KBvTI->getElementsByTagName("\x69\x6d\x67"); goto Q5MIB; irAwE: I84ww: JQZpk: hhAyk: goto SCV1T; tyiKS: $RTZbq = self::getUrlContents($p_5Qp); $hFcb4 = "\150\x74\x74\x70\x3a\x2f\x2f"; if (!(strpos($p_5Qp, "\x68\164\164\x70\x73\72\x2f\57") !== false)) { goto fJJTA; } goto Hkft7; uoWdP: return ["\144\157\x6d\x61\x69\x6e" => $iAcdH, "\x74\151\164\x6c\145" => $PQG6o, "\x6d\x65\164\141\124\x61\147\x73" => $uZzdu, "\x69\x6d\141\147\x65\163" => $q3JDt]; goto MoOYa; P2pFl: if (!in_array($y0mxA[$fzyCG], $OutXB)) { goto Iy4rP; } $CH_Ec = str_replace("\72", "\137", $y0mxA[$fzyCG]); $uZzdu[$CH_Ec] = $GZBwg[$fzyCG]; goto pDbA1; aHt4H: if (!(isset($NWvLM) && is_array($NWvLM) && count($NWvLM) == 3)) { goto lOr5F; } $PHlQ0 = $NWvLM[0]; $y0mxA = $NWvLM[1]; goto QWktU; W19U1: lOr5F: preg_match_all("\57\x3c\x5b\134\x73\x5d\x2a\x6d\x65\164\x61\x5b\134\163\x5d\x2a\160\x72\157\x70\145\x72\x74\x79\75\x22\x3f" . "\x28\133\x5e\76\x22\135\x2a\x29\42\77\133\134\x73\135\x2a" . "\143\157\156\x74\x65\156\x74\x3d\x22\77\x28\133\136\76\x22\x5d\x2a\x29\x22\77\x5b\134\163\135\x2a\x5b\134\57\x5d\x3f\133\x5c\x73\x5d\52\x3e\x2f\163\151", $RTZbq, $NWvLM); if (!(isset($NWvLM) && is_array($NWvLM) && count($NWvLM) == 3)) { goto hhAyk; } goto xHt7r; aq4bZ: unset($KBvTI); pznhz: Hqe3G: goto uoWdP; Hkft7: $hFcb4 = "\x68\164\164\x70\163\x3a\57\x2f"; fJJTA: $iAcdH = str_replace("\150\164\x74\160\x73\x3a\57\57", '', $p_5Qp); goto u0MAt; YEHKP: $NR2yG = count($y0mxA); lBECG: if (!($fzyCG < $NR2yG)) { goto gumOB; } goto P2pFl; SCV1T: if (!(isset($uZzdu["\x6f\147\x5f\x69\x6d\x61\x67\145"]) && $uZzdu["\157\x67\x5f\151\x6d\x61\147\x65"] != '')) { goto p9RvD; } $q3JDt[] = ["\144\x61\x74\x61\x5f\163\x72\x63" => $uZzdu["\x6f\x67\137\151\155\x61\x67\145"], "\x73\162\143\x5f\163\x65\164" => '', "\163\162\143" => '']; p9RvD: goto tOilp; jRFaj: eXxYP: if (!($fzyCG < $NR2yG)) { goto I84ww; } if (!in_array($y0mxA[$fzyCG], $OutXB)) { goto afzaq; } goto YiIXo; Im8DL: $q3JDt = []; $OutXB = ["\x6f\147\x3a\151\x6d\141\147\x65", "\x6f\x67\x3a\x69\x6d\x61\147\x65\72\x73\145\143\165\x72\x65\x5f\165\162\x6c", "\164\167\x69\x74\164\x65\162\x3a\x75\x72\154", "\164\167\151\x74\164\145\162\72\164\151\164\x6c\x65", "\164\x77\x69\x74\164\145\162\72\x69\155\141\147\145", "\164\167\x69\164\164\145\162\x3a\144\x65\163\143\162\x69\x70\164\x69\157\x6e", "\144\145\163\143\x72\x69\x70\x74\x69\157\x6e"]; if (!($p_5Qp != '')) { goto Hqe3G; } goto tyiKS; u0MAt: $iAcdH = str_replace("\x68\164\x74\160\x3a\57\57", '', $iAcdH); $rKLdG = str_replace("\167\x77\x77\56", '', $iAcdH); if (!(strpos($rKLdG, "\x2f") !== false)) { goto wCjma; } goto LQzDi; YiIXo: $CH_Ec = str_replace("\72", "\137", $y0mxA[$fzyCG]); $uZzdu[$CH_Ec] = $GZBwg[$fzyCG]; afzaq: goto HGQ6w; Q5MIB: foreach ($NTEnO as $AePBy) { goto k54lW; k54lW: $ZjS5H = $AePBy->getAttribute("\x64\x61\x74\x61\55\x73\162\x63"); $ZjS5H = strpos($ZjS5H, "\57") !== false && strpos($ZjS5H, "\57") == 0 ? $hFcb4 . $iAcdH . $ZjS5H : $ZjS5H; $ZjS5H = trim($ZjS5H); goto yTOEj; vq0Ix: LogoW: goto X8GBb; bd6sv: $IVCMi = $AePBy->getAttribute("\x73\162\143"); $IVCMi = strpos($ZjS5H, "\x2f") !== false && strpos($IVCMi, "\57") == 0 ? $hFcb4 . $iAcdH . $IVCMi : $IVCMi; $IVCMi = trim($IVCMi); goto qYG3a; yTOEj: $AapOC = $AePBy->getAttribute("\163\162\x63\163\x65\164"); $AapOC = strpos($ZjS5H, "\57") !== false && strpos($AapOC, "\57") == 0 ? $hFcb4 . $iAcdH . $AapOC : $AapOC; $AapOC = trim($AapOC); goto bd6sv; qYG3a: if (!(!empty($ZjS5H) && strpos($ZjS5H, "\150\164\164\x70") !== false || !empty($AapOC) && strpos($AapOC, "\x68\x74\164\160") !== false || !empty($IVCMi) && strpos($IVCMi, "\x68\x74\164\160") !== false)) { goto WOXZZ; } $q3JDt[] = array("\144\141\x74\141\x5f\163\x72\x63" => $ZjS5H, "\x73\x72\x63\x5f\x73\x65\164" => $AapOC, "\163\x72\x63" => $IVCMi); WOXZZ: goto vq0Ix; X8GBb: } D7Qs1: unset($NTEnO); goto aq4bZ; HGQ6w: htJp3: $fzyCG++; goto eXxYP; goto irAwE; Xwgn4: goto lBECG; gumOB: gdKBl: goto W19U1; eeLqM: if (!(isset($RTZbq) && is_string($RTZbq))) { goto pznhz; } preg_match("\x2f\74\x74\x69\x74\x6c\145\76\50\x5b\136\76\x5d\52\51\74\x5c\57\x74\151\x74\154\145\76\57\163\151", $RTZbq, $NWvLM); if (!(isset($NWvLM) && is_array($NWvLM) && count($NWvLM) > 0)) { goto c4DcL; } goto ZbcHU; pDbA1: Iy4rP: e3as9: $fzyCG++; goto Xwgn4; xHt7r: $PHlQ0 = $NWvLM[0]; $y0mxA = $NWvLM[1]; $GZBwg = $NWvLM[2]; goto bKENa; LQzDi: $iAcdH = explode("\57", $rKLdG); $iAcdH = count($iAcdH) > 0 ? $iAcdH[0] : $rKLdG; wCjma: goto eeLqM; MoOYa: } public static function getUrlContents($p_5Qp, $cnM9P = null, $XOEbR = 0) { goto OadOP; dWwMq: preg_match_all("\x2f\x3c\x5b\x5c\163\135\x2a\155\145\x74\141\133\x5c\163\135\52\x68\x74\x74\160\55\x65\161\x75\151\166\x3d\x22\x3f\x52\x45\x46\122\x45\123\x48\x22\x3f" . "\133\x5c\163\135\x2a\x63\157\156\x74\x65\156\164\75\x22\77\x5b\x30\55\x39\x5d\52\x3b\x5b\134\x73\135\x2a\125\x52\114\x5b\134\x73\x5d\x2a\x3d\133\x5c\x73\x5d\52\50\133\136\76\x22\135\x2a\51\42\77" . "\133\x5c\163\x5d\52\x5b\134\x2f\x5d\77\x5b\x5c\x73\135\52\x3e\x2f\163\x69", $RTZbq, $NWvLM); if (isset($NWvLM) && is_array($NWvLM) && count($NWvLM) == 2 && count($NWvLM[1]) == 1) { goto ZD2wM; } $Qh3Cr = $RTZbq; goto uJUzn; OadOP: $Qh3Cr = false; $RTZbq = @file_get_contents($p_5Qp); if (!(isset($RTZbq) && is_string($RTZbq))) { goto T95QN; } goto dWwMq; uJUzn: goto PZl5u; ZD2wM: if (!(!isset($cnM9P) || $XOEbR < $cnM9P)) { goto xhswL; } goto mYk8S; mYk8S: return self::getUrlContents($NWvLM[1][0], $cnM9P, ++$XOEbR); xhswL: $Qh3Cr = false; goto ykbQk; ykbQk: PZl5u: T95QN: return $RTZbq; goto CdCCE; CdCCE: } }