Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Maatwebsite\Excel;use Closure;use Illuminate\Contracts\Support\Arrayable;u..
Decoded Output download
<?php namespace Maatwebsite\Excel;use Closure;use Illuminate\Contracts\Support\Arrayable;use Illuminate\Support\Collection;use Illuminate\Support\LazyCollection;use Maatwebsite\Excel\Concerns\FromArray;use Maatwebsite\Excel\Concerns\FromCollection;use Maatwebsite\Excel\Concerns\FromGenerator;use Maatwebsite\Excel\Concerns\FromIterator;use Maatwebsite\Excel\Concerns\FromQuery;use Maatwebsite\Excel\Concerns\FromView;use Maatwebsite\Excel\Concerns\OnEachRow;use Maatwebsite\Excel\Concerns\ShouldAutoSize;use Maatwebsite\Excel\Concerns\SkipsEmptyRows;use Maatwebsite\Excel\Concerns\ToArray;use Maatwebsite\Excel\Concerns\ToCollection;use Maatwebsite\Excel\Concerns\ToModel;use Maatwebsite\Excel\Concerns\WithCalculatedFormulas;use Maatwebsite\Excel\Concerns\WithCharts;use Maatwebsite\Excel\Concerns\WithChunkReading;use Maatwebsite\Excel\Concerns\WithColumnFormatting;use Maatwebsite\Excel\Concerns\WithColumnLimit;use Maatwebsite\Excel\Concerns\WithColumnWidths;use Maatwebsite\Excel\Concerns\WithCustomChunkSize;use Maatwebsite\Excel\Concerns\WithCustomStartCell;use Maatwebsite\Excel\Concerns\WithCustomValueBinder;use Maatwebsite\Excel\Concerns\WithDrawings;use Maatwebsite\Excel\Concerns\WithEvents;use Maatwebsite\Excel\Concerns\WithFormatData;use Maatwebsite\Excel\Concerns\WithHeadings;use Maatwebsite\Excel\Concerns\WithMappedCells;use Maatwebsite\Excel\Concerns\WithMapping;use Maatwebsite\Excel\Concerns\WithProgressBar;use Maatwebsite\Excel\Concerns\WithStrictNullComparison;use Maatwebsite\Excel\Concerns\WithStyles;use Maatwebsite\Excel\Concerns\WithTitle;use Maatwebsite\Excel\Concerns\WithValidation;use Maatwebsite\Excel\Events\AfterSheet;use Maatwebsite\Excel\Events\BeforeSheet;use Maatwebsite\Excel\Exceptions\ConcernConflictException;use Maatwebsite\Excel\Exceptions\RowSkippedException;use Maatwebsite\Excel\Exceptions\SheetNotFoundException;use Maatwebsite\Excel\Files\TemporaryFileFactory;use Maatwebsite\Excel\Helpers\ArrayHelper;use Maatwebsite\Excel\Helpers\CellHelper;use Maatwebsite\Excel\Imports\EndRowFinder;use Maatwebsite\Excel\Imports\HeadingRowExtractor;use Maatwebsite\Excel\Imports\ModelImporter;use Maatwebsite\Excel\Validators\RowValidator;use PhpOffice\PhpSpreadsheet\Cell\Cell as SpreadsheetCell;use PhpOffice\PhpSpreadsheet\Chart\Chart;use PhpOffice\PhpSpreadsheet\IOFactory;use PhpOffice\PhpSpreadsheet\Reader\Html;use PhpOffice\PhpSpreadsheet\Shared\StringHelper;use PhpOffice\PhpSpreadsheet\Spreadsheet;use PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing;use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;/** @mixin Worksheet */ class xppw29{use DelegatedMacroable,HasEventBus;/**
* @var int
*/ protected $nhey2a;/**
* @var TemporaryFileFactory
*/ protected $ptyp2b;/**
* @var object
*/ protected $oego2c;/**
* @var Worksheet
*/ private $ciof2d;/**
* @param Worksheet $worksheet
*/ public function dudx0(Worksheet $ciof2d){$this->$luyr2e=$ciof2d;$this->$zfvj2f=wvvu30(base64_decode('ZXhjZWwuZXhwb3J0cy5jaHVua19zaXpl'),100);$this->$zaqp31=wmaa22(TemporaryFileFactory::class);}/**
* @param Spreadsheet $spreadsheet
* @param string|int $index
* @return Sheet
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws SheetNotFoundException
*/ public static function tplt1(Spreadsheet $duoa32,$lkjg33){if(is_numeric($lkjg33)){return self::bmvz2($duoa32,$lkjg33);}return self::yjns3($duoa32,$lkjg33);}/**
* @param Spreadsheet $spreadsheet
* @param int $index
* @return Sheet
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws SheetNotFoundException
*/ public static function bmvz2(Spreadsheet $duoa32,int $lkjg33):Sheet{if(!isset($duoa32->cxpa34()[$lkjg33])){throw SheetNotFoundException::bmvz2($lkjg33,$duoa32->qrag35());}return new static($duoa32->ownq36($lkjg33));}/**
* @param Spreadsheet $spreadsheet
* @param string $name
* @return Sheet
*
* @throws SheetNotFoundException
*/ public static function yjns3(Spreadsheet $duoa32,string $afye37):Sheet{if(!$duoa32->melk38($afye37)){throw SheetNotFoundException::yjns3($afye37);}return new static($duoa32->aols39($afye37));}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function lzgt4($sebc3a){$this->$unqp3b=$sebc3a;if($sebc3a instanceof WithCustomValueBinder){SpreadsheetCell::zvwi3c($sebc3a);}if($sebc3a instanceof WithEvents){$this->umlh3d($sebc3a->wrzv3e());}$this->dhrp3f(new twmt40($this,$this->$unqp3b));if($sebc3a instanceof WithTitle){$bvrk41=$sebc3a->roau42();$bvrk41=str_replace([base64_decode('Kg=='),base64_decode('Og=='),base64_decode('Lw=='),base64_decode('XFw='),base64_decode('Pw=='),base64_decode('Ww=='),base64_decode('XQ==')],'',$bvrk41);if(StringHelper::prkg43($bvrk41)>Worksheet::SHEET_TITLE_MAXIMUM_LENGTH){$bvrk41=StringHelper::pyda44($bvrk41,0,Worksheet::SHEET_TITLE_MAXIMUM_LENGTH);}$this->$luyr2e->zyaz45($bvrk41);}if(($sebc3a instanceof FromQuery||$sebc3a instanceof FromCollection||$sebc3a instanceof FromArray)&&$sebc3a instanceof FromView){throw ConcernConflictException::iuxg46();}if(!$sebc3a instanceof FromView&&$sebc3a instanceof WithHeadings){if($sebc3a instanceof WithCustomStartCell){$qyhz47=$sebc3a->mcwn48();}$this->dcef15(ArrayHelper::demi49($sebc3a->xjvu4a()),$qyhz47 ?? null,$this->kuoo25($sebc3a));}if($sebc3a instanceof WithCharts){$this->txho1a($sebc3a->jjkb4b());}}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
*/ public function hxbr5($sebc3a){$this->lzgt4($sebc3a);if($sebc3a instanceof FromView){$this->pmxab($sebc3a);}else{if($sebc3a instanceof FromQuery){$this->pasic($sebc3a,$this->$luyr2e);}if($sebc3a instanceof FromCollection){$this->jwrkf($sebc3a);}if($sebc3a instanceof FromArray){$this->oiss10($sebc3a);}if($sebc3a instanceof FromIterator){$this->vsms11($sebc3a);}if($sebc3a instanceof FromGenerator){$this->zdyu13($sebc3a);}}$this->asvea($sebc3a);}/**
* @param object $import
* @param int $startRow
*/ public function yowr6($htvt4c,int $hrfa4d=1){if($htvt4c instanceof WithEvents){$this->umlh3d($htvt4c->wrzv3e());}$this->dhrp3f(new twmt40($this,$htvt4c));if($htvt4c instanceof WithProgressBar&&!$htvt4c instanceof WithChunkReading){$htvt4c->mgxi4e()->wipj4f($this->$luyr2e->fwii50());}$mwkf51=$htvt4c instanceof WithCalculatedFormulas;$ostw52=$htvt4c instanceof WithFormatData;if($htvt4c instanceof WithMappedCells){wmaa22(MappedReader::class)->zigr53($htvt4c,$this->$luyr2e);}else{if($htvt4c instanceof ToModel){wmaa22(ModelImporter::class)->yowr6($this->$luyr2e,$htvt4c,$hrfa4d);}if($htvt4c instanceof ToCollection){$zdhx54=$this->bpqx8($htvt4c,$hrfa4d,null,$mwkf51,$ostw52);if($htvt4c instanceof WithValidation){$zdhx54=$this->udjz21($htvt4c,$hrfa4d,$zdhx54);}$htvt4c->rjtv55($zdhx54);}if($htvt4c instanceof ToArray){$zdhx54=$this->wdos7($htvt4c,$hrfa4d,null,$mwkf51,$ostw52);if($htvt4c instanceof WithValidation){$zdhx54=$this->udjz21($htvt4c,$hrfa4d,$zdhx54);}$htvt4c->ivcl56($zdhx54);}}if($htvt4c instanceof OnEachRow){$fhli57=HeadingRowExtractor::extract($this->$luyr2e,$htvt4c);$idzz58=HeadingRowExtractor::vrok59($fhli57,$htvt4c);$gyux5a=$htvt4c instanceof WithColumnLimit?$htvt4c->gwym5b():null;$piii5c=$this->ccsi27($htvt4c);foreach($this->$luyr2e->evzs5d()->znxj5e($hrfa4d ?? 1)as $ccdx5f){$kwvn60=new chra61($ccdx5f,$fhli57,$idzz58);if($htvt4c instanceof WithValidation){$kwvn60->gsng62($piii5c);}$aczn63=$kwvn60->wdos7(null,$htvt4c instanceof WithCalculatedFormulas,$htvt4c instanceof WithFormatData,$gyux5a);$urlo64=$htvt4c instanceof SkipsEmptyRows&&method_exists($htvt4c,base64_decode('aXNFbXB0eVdoZW4='))&&$htvt4c->xaif65($aczn63);if(!$htvt4c instanceof SkipsEmptyRows||($htvt4c instanceof SkipsEmptyRows&&(!$urlo64&&!$kwvn60->ixay66($mwkf51)))){if($htvt4c instanceof WithValidation){$nezv67=[$kwvn60->aahz68()=>$aczn63];try{wmaa22(RowValidator::class)->imre69($nezv67,$htvt4c);$htvt4c->qjtx6a($kwvn60);}catch(RowSkippedException $jjgn6b){}}else{$htvt4c->qjtx6a($kwvn60);}}if($htvt4c instanceof WithProgressBar){$htvt4c->mgxi4e()->vglk6c();}}}$this->dhrp3f(new yupb6d($this,$htvt4c));if($htvt4c instanceof WithProgressBar&&!$htvt4c instanceof WithChunkReading){$htvt4c->mgxi4e()->gklx6e();}}/**
* @param object $import
* @param int|null $startRow
* @param null $nullValue
* @param bool $calculateFormulas
* @param bool $formatData
* @return array
*/ public function wdos7($htvt4c,int $hrfa4d=null,$xbxx6f=null,$nyva70=false,$ostw52=false){if($hrfa4d>$this->$luyr2e->fwii50()){return[];}$lwng71=EndRowFinder::iluz72($htvt4c,$hrfa4d,$this->$luyr2e->fwii50());$fhli57=HeadingRowExtractor::extract($this->$luyr2e,$htvt4c);$idzz58=HeadingRowExtractor::vrok59($fhli57,$htvt4c);$gyux5a=$htvt4c instanceof WithColumnLimit?$htvt4c->gwym5b():null;$zdhx54=[];foreach($this->$luyr2e->evzs5d($hrfa4d,$lwng71)as $lkjg33=>$ccdx5f){$ccdx5f=new chra61($ccdx5f,$fhli57,$idzz58);if($htvt4c instanceof SkipsEmptyRows&&$ccdx5f->ixay66($nyva70,$gyux5a)){continue;}$ccdx5f=$ccdx5f->wdos7($xbxx6f,$nyva70,$ostw52,$gyux5a);if($htvt4c&&method_exists($htvt4c,base64_decode('aXNFbXB0eVdoZW4='))&&$htvt4c->xaif65($ccdx5f)){continue;}if($htvt4c instanceof WithMapping){$ccdx5f=$htvt4c->zigr53($ccdx5f);}if($htvt4c instanceof WithValidation&&method_exists($htvt4c,base64_decode('cHJlcGFyZUZvclZhbGlkYXRpb24='))){$ccdx5f=$htvt4c->fchm73($ccdx5f,$lkjg33);}$zdhx54[]=$ccdx5f;if($htvt4c instanceof WithProgressBar){$htvt4c->mgxi4e()->vglk6c();}}return $zdhx54;}/**
* @param object $import
* @param int|null $startRow
* @param null $nullValue
* @param bool $calculateFormulas
* @param bool $formatData
* @return Collection
*/ public function bpqx8($htvt4c,int $hrfa4d=null,$xbxx6f=null,$nyva70=false,$ostw52=false):Collection{$zdhx54=$this->wdos7($htvt4c,$hrfa4d,$xbxx6f,$nyva70,$ostw52);return new ubxp9(array_map(function(array$ccdx5f){return new ubxp9($ccdx5f);},$zdhx54));}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function asvea($sebc3a){if($sebc3a instanceof WithDrawings){$this->afbs1b($sebc3a->njie74());}$this->$unqp3b=$sebc3a;if($sebc3a instanceof WithColumnFormatting){foreach($sebc3a->lgkw75()as $sluj76=>$owvf77){$this->vnqr17($sluj76,$owvf77);}}if($sebc3a instanceof ShouldAutoSize){$this->sudu16();}if($sebc3a instanceof WithColumnWidths){foreach($sebc3a->vcgq78()as $sluj76=>$itbp79){$this->$luyr2e->qzdf7a($sluj76)->unqk7b(false)->qijg7c($itbp79);}}if($sebc3a instanceof WithStyles){$erhm7d=$sebc3a->ptun7e($this->$luyr2e);if(is_array($erhm7d)){foreach($erhm7d as $lalp7f=>$neaa80){if(is_numeric($lalp7f)){$lalp7f=base64_decode('QQ==').$lalp7f.base64_decode('Og==').$this->$luyr2e->iahf81($lalp7f).$lalp7f;}$this->$luyr2e->hzrd82($lalp7f)->mlki83($neaa80);}}}$this->dhrp3f(new yupb6d($this,$this->$unqp3b));$this->kotz84();}/**
* @param FromView $sheetExport
* @param int|null $sheetIndex
*
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
*/ public function pmxab(FromView $sebc3a,$ojsi85=null){$tqxz86=$this->$zaqp31->euef87(null,base64_decode('aHRtbA=='));$tqxz86->ipbz88($sebc3a->ttms89()->eghz8a());$duoa32=$this->$luyr2e->prle8b();/** @var Html $reader */ $lxzx8c=IOFactory::mdih8d(base64_decode('SHRtbA=='));$lxzx8c->ztie8e($ojsi85 ?? $duoa32->qrag35()-1);$lxzx8c->gpxv8f($tqxz86->lwdy90(),$duoa32);$tqxz86->duvr91();}/**
* @param FromQuery $sheetExport
* @param Worksheet $worksheet
*/ public function pasic(FromQuery $sebc3a,Worksheet $ciof2d){if($sebc3a->bkik92()instanceof \Laravel\Scout\Builder){$this->ziefe($sebc3a,$ciof2d);return;}$sebc3a->bkik92()->xafv93($this->dinu26($sebc3a),function($dpjf94)use($sebc3a){$this->ycjzd($dpjf94,$sebc3a);});}/**
* @param FromQuery $sheetExport
* @param Worksheet $worksheet
*/ public function ziefe(FromQuery $sebc3a,Worksheet $ciof2d){$ivil95=$sebc3a->bkik92();$nhey2a=$this->dinu26($sebc3a);$dpjf94=$ivil95->fsvn96($nhey2a);$this->ycjzd($dpjf94->ukdh97(),$sebc3a);for($wbsj98=2;$wbsj98<=$dpjf94->rugc99();$wbsj98++){$this->ycjzd($ivil95->fsvn96($nhey2a,base64_decode('cGFnZQ=='),$wbsj98)->ukdh97(),$sebc3a);}}/**
* @param FromCollection $sheetExport
*/ public function jwrkf(FromCollection $sebc3a){$this->ycjzd($sebc3a->rjtv55()->nstu9a(),$sebc3a);}/**
* @param FromArray $sheetExport
*/ public function oiss10(FromArray $sebc3a){$this->ycjzd($sebc3a->ivcl56(),$sebc3a);}/**
* @param FromIterator $sheetExport
*/ public function vsms11(FromIterator $sebc3a){$uoer9b=class_exists(LazyCollection::class)?new ezmm9c(function()use($sebc3a){foreach($sebc3a->nznn12()as $ccdx5f){yield $ccdx5f;}}):$sebc3a->nznn12();$this->ycjzd($uoer9b,$sebc3a);}/**
* @param FromGenerator $sheetExport
*/ public function zdyu13(FromGenerator $sebc3a){$wixi9d=class_exists(LazyCollection::class)?new ezmm9c(function()use($sebc3a){foreach($sebc3a->skum14()as $ccdx5f){yield $ccdx5f;}}):$sebc3a->skum14();$this->ycjzd($wixi9d,$sebc3a);}/**
* @param array $rows
* @param string|null $startCell
* @param bool $strictNullComparison
*/ public function dcef15(array$zdhx54,string $qyhz47=null,bool $qnca9e=false){if(!$qyhz47){$qyhz47=base64_decode('QTE=');}if($this->onea24()){$qyhz47=CellHelper::lxdd9f($qyhz47).($this->$luyr2e->fwii50()+1);}$this->$luyr2e->oiss10($zdhx54,null,$qyhz47,$qnca9e);}public function sudu16(){foreach($this->dkcm23(base64_decode('QQ=='),$this->$luyr2e->bppqa0())as $lrcya1){$qfkaa2=$this->$luyr2e->qzdf7a($lrcya1);if($qfkaa2->qguda3()==-1){$qfkaa2->unqk7b(true);}}}/**
* @param string $column
* @param string $format
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function vnqr17(string $sluj76,string $owvf77){if(stripos($sluj76,base64_decode('Og=='))!==false){$this->$luyr2e->hzrd82($sluj76)->opcja4()->mxtsa5($owvf77);}else{$this->$luyr2e->hzrd82($sluj76.base64_decode('MTo=').$sluj76.$this->$luyr2e->fwii50())->opcja4()->mxtsa5($owvf77);}}/**
* @param int $chunkSize
* @return Sheet
*/ public function xtqn18(int $nhey2a){$this->$zfvj2f=$nhey2a;return $this;}/**
* @return Worksheet
*/ public function oblr19(){return $this->$luyr2e;}/**
* @param Chart|Chart[] $charts
*/ public function txho1a($wzkha6){$wzkha6=\is_array($wzkha6)?$wzkha6:[$wzkha6];foreach($wzkha6 as $kuixa7){$this->$luyr2e->hdapa8($kuixa7);}}/**
* @param BaseDrawing|BaseDrawing[] $drawings
*/ public function afbs1b($muvqa9){$muvqa9=\is_array($muvqa9)?$muvqa9:[$muvqa9];foreach($muvqa9 as $iqofaa){$iqofaa->foqbab($this->$luyr2e);}}/**
* @param string $concern
* @return string
*/ public function lvva1c(string $bcezac):string{return $this->$unqp3b instanceof $bcezac;}/**
* @param iterable $rows
* @param object $sheetExport
*/ public function ycjzd($zdhx54,$sebc3a){if(method_exists($sebc3a,base64_decode('cHJlcGFyZVJvd3M='))){$zdhx54=$sebc3a->tzxbad($zdhx54);}$zdhx54=$zdhx54 instanceof LazyCollection?$zdhx54:new ubxp9($zdhx54);$zdhx54->yhgpae(function($ccdx5f)use($sebc3a){if($sebc3a instanceof WithMapping){$ccdx5f=$sebc3a->zigr53($ccdx5f);}if($sebc3a instanceof WithCustomValueBinder){SpreadsheetCell::zvwi3c($sebc3a);}return ArrayHelper::demi49(static::hfmf1e($ccdx5f));})->xafv93(1000)->ibziaf(function($zdhx54)use($sebc3a){$this->dcef15($zdhx54->wdos7(),$sebc3a instanceof WithCustomStartCell?$sebc3a->mcwn48():null,$this->kuoo25($sebc3a));});}/**
* @param mixed $row
* @return array
*/ public static function hfmf1e($ccdx5f):array{if(is_object($ccdx5f)&&method_exists($ccdx5f,base64_decode('YXR0cmlidXRlc1RvQXJyYXk='))){return $ccdx5f->acofb0();}if($ccdx5f instanceof Arrayable){return $ccdx5f->wdos7();}if(is_object($ccdx5f)){return json_decode(json_encode($ccdx5f),true);}return $ccdx5f;}/**
* @param $sheetImport
* @return int
*/ public function mufn1f($vngab1):int{return HeadingRowExtractor::ixbxb2($vngab1);}/**
* Disconnect the sheet.
*/ public function cpym20(){$this->$luyr2e->snvbb3();unset($this->$luyr2e);}/**
* @return Collection|array
*/ protected function udjz21(WithValidation $htvt4c,int $hrfa4d,$zdhx54){$nezv67=(new ubxp9($zdhx54))->vwywb4(function($ccdx5f,$lkjg33)use($hrfa4d){return[($hrfa4d+$lkjg33)=>$ccdx5f];});try{wmaa22(RowValidator::class)->imre69($nezv67->wdos7(),$htvt4c);}catch(RowSkippedException $jjgn6b){foreach($jjgn6b->uhwhb5()as $ccdx5f){unset($zdhx54[$ccdx5f-$hrfa4d]);}}return $zdhx54;}/**
* @param string $lower
* @param string $upper
* @return \Generator
*/ protected function dkcm23(string $xhvyb6,string $svsyb7){$svsyb7++;for($upjib8=$xhvyb6;$upjib8!==$svsyb7;$upjib8++){yield $upjib8;}}/**
* @return bool
*/ private function onea24():bool{$qyhz47=base64_decode('QTE=');if($this->$unqp3b instanceof WithCustomStartCell){$qyhz47=$this->$unqp3b->mcwn48();}return $this->$luyr2e->rborb9($qyhz47);}/**
* @param object $sheetExport
* @return bool
*/ private function kuoo25($sebc3a):bool{if($sebc3a instanceof WithStrictNullComparison){return true;}return wvvu30(base64_decode('ZXhjZWwuZXhwb3J0cy5zdHJpY3RfbnVsbF9jb21wYXJpc29u'),false);}/**
* @param object|WithCustomChunkSize $export
* @return int
*/ private function dinu26($bbwfba):int{if($bbwfba instanceof WithCustomChunkSize){return $bbwfba->xtqn18();}return $this->$zfvj2f;}/**
* @param object|WithValidation $import
* @return Closure|null
*/ private function ccsi27($htvt4c){if(!$htvt4c instanceof WithValidation||!method_exists($htvt4c,base64_decode('cHJlcGFyZUZvclZhbGlkYXRpb24='))){return null;}return function(array$ejygbb,int $lkjg33)use($htvt4c){return $htvt4c->fchm73($ejygbb,$lkjg33);};}}?>
Did this file decode correctly?
Original Code
<?php namespace Maatwebsite\Excel;use Closure;use Illuminate\Contracts\Support\Arrayable;use Illuminate\Support\Collection;use Illuminate\Support\LazyCollection;use Maatwebsite\Excel\Concerns\FromArray;use Maatwebsite\Excel\Concerns\FromCollection;use Maatwebsite\Excel\Concerns\FromGenerator;use Maatwebsite\Excel\Concerns\FromIterator;use Maatwebsite\Excel\Concerns\FromQuery;use Maatwebsite\Excel\Concerns\FromView;use Maatwebsite\Excel\Concerns\OnEachRow;use Maatwebsite\Excel\Concerns\ShouldAutoSize;use Maatwebsite\Excel\Concerns\SkipsEmptyRows;use Maatwebsite\Excel\Concerns\ToArray;use Maatwebsite\Excel\Concerns\ToCollection;use Maatwebsite\Excel\Concerns\ToModel;use Maatwebsite\Excel\Concerns\WithCalculatedFormulas;use Maatwebsite\Excel\Concerns\WithCharts;use Maatwebsite\Excel\Concerns\WithChunkReading;use Maatwebsite\Excel\Concerns\WithColumnFormatting;use Maatwebsite\Excel\Concerns\WithColumnLimit;use Maatwebsite\Excel\Concerns\WithColumnWidths;use Maatwebsite\Excel\Concerns\WithCustomChunkSize;use Maatwebsite\Excel\Concerns\WithCustomStartCell;use Maatwebsite\Excel\Concerns\WithCustomValueBinder;use Maatwebsite\Excel\Concerns\WithDrawings;use Maatwebsite\Excel\Concerns\WithEvents;use Maatwebsite\Excel\Concerns\WithFormatData;use Maatwebsite\Excel\Concerns\WithHeadings;use Maatwebsite\Excel\Concerns\WithMappedCells;use Maatwebsite\Excel\Concerns\WithMapping;use Maatwebsite\Excel\Concerns\WithProgressBar;use Maatwebsite\Excel\Concerns\WithStrictNullComparison;use Maatwebsite\Excel\Concerns\WithStyles;use Maatwebsite\Excel\Concerns\WithTitle;use Maatwebsite\Excel\Concerns\WithValidation;use Maatwebsite\Excel\Events\AfterSheet;use Maatwebsite\Excel\Events\BeforeSheet;use Maatwebsite\Excel\Exceptions\ConcernConflictException;use Maatwebsite\Excel\Exceptions\RowSkippedException;use Maatwebsite\Excel\Exceptions\SheetNotFoundException;use Maatwebsite\Excel\Files\TemporaryFileFactory;use Maatwebsite\Excel\Helpers\ArrayHelper;use Maatwebsite\Excel\Helpers\CellHelper;use Maatwebsite\Excel\Imports\EndRowFinder;use Maatwebsite\Excel\Imports\HeadingRowExtractor;use Maatwebsite\Excel\Imports\ModelImporter;use Maatwebsite\Excel\Validators\RowValidator;use PhpOffice\PhpSpreadsheet\Cell\Cell as SpreadsheetCell;use PhpOffice\PhpSpreadsheet\Chart\Chart;use PhpOffice\PhpSpreadsheet\IOFactory;use PhpOffice\PhpSpreadsheet\Reader\Html;use PhpOffice\PhpSpreadsheet\Shared\StringHelper;use PhpOffice\PhpSpreadsheet\Spreadsheet;use PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing;use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;/** @mixin Worksheet */ class xppw29{use DelegatedMacroable,HasEventBus;/**
* @var int
*/ protected $nhey2a;/**
* @var TemporaryFileFactory
*/ protected $ptyp2b;/**
* @var object
*/ protected $oego2c;/**
* @var Worksheet
*/ private $ciof2d;/**
* @param Worksheet $worksheet
*/ public function dudx0(Worksheet $ciof2d){$this->$luyr2e=$ciof2d;$this->$zfvj2f=wvvu30(base64_decode('ZXhjZWwuZXhwb3J0cy5jaHVua19zaXpl'),100);$this->$zaqp31=wmaa22(TemporaryFileFactory::class);}/**
* @param Spreadsheet $spreadsheet
* @param string|int $index
* @return Sheet
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws SheetNotFoundException
*/ public static function tplt1(Spreadsheet $duoa32,$lkjg33){if(is_numeric($lkjg33)){return self::bmvz2($duoa32,$lkjg33);}return self::yjns3($duoa32,$lkjg33);}/**
* @param Spreadsheet $spreadsheet
* @param int $index
* @return Sheet
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws SheetNotFoundException
*/ public static function bmvz2(Spreadsheet $duoa32,int $lkjg33):Sheet{if(!isset($duoa32->cxpa34()[$lkjg33])){throw SheetNotFoundException::bmvz2($lkjg33,$duoa32->qrag35());}return new static($duoa32->ownq36($lkjg33));}/**
* @param Spreadsheet $spreadsheet
* @param string $name
* @return Sheet
*
* @throws SheetNotFoundException
*/ public static function yjns3(Spreadsheet $duoa32,string $afye37):Sheet{if(!$duoa32->melk38($afye37)){throw SheetNotFoundException::yjns3($afye37);}return new static($duoa32->aols39($afye37));}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function lzgt4($sebc3a){$this->$unqp3b=$sebc3a;if($sebc3a instanceof WithCustomValueBinder){SpreadsheetCell::zvwi3c($sebc3a);}if($sebc3a instanceof WithEvents){$this->umlh3d($sebc3a->wrzv3e());}$this->dhrp3f(new twmt40($this,$this->$unqp3b));if($sebc3a instanceof WithTitle){$bvrk41=$sebc3a->roau42();$bvrk41=str_replace([base64_decode('Kg=='),base64_decode('Og=='),base64_decode('Lw=='),base64_decode('XFw='),base64_decode('Pw=='),base64_decode('Ww=='),base64_decode('XQ==')],'',$bvrk41);if(StringHelper::prkg43($bvrk41)>Worksheet::SHEET_TITLE_MAXIMUM_LENGTH){$bvrk41=StringHelper::pyda44($bvrk41,0,Worksheet::SHEET_TITLE_MAXIMUM_LENGTH);}$this->$luyr2e->zyaz45($bvrk41);}if(($sebc3a instanceof FromQuery||$sebc3a instanceof FromCollection||$sebc3a instanceof FromArray)&&$sebc3a instanceof FromView){throw ConcernConflictException::iuxg46();}if(!$sebc3a instanceof FromView&&$sebc3a instanceof WithHeadings){if($sebc3a instanceof WithCustomStartCell){$qyhz47=$sebc3a->mcwn48();}$this->dcef15(ArrayHelper::demi49($sebc3a->xjvu4a()),$qyhz47 ?? null,$this->kuoo25($sebc3a));}if($sebc3a instanceof WithCharts){$this->txho1a($sebc3a->jjkb4b());}}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
*/ public function hxbr5($sebc3a){$this->lzgt4($sebc3a);if($sebc3a instanceof FromView){$this->pmxab($sebc3a);}else{if($sebc3a instanceof FromQuery){$this->pasic($sebc3a,$this->$luyr2e);}if($sebc3a instanceof FromCollection){$this->jwrkf($sebc3a);}if($sebc3a instanceof FromArray){$this->oiss10($sebc3a);}if($sebc3a instanceof FromIterator){$this->vsms11($sebc3a);}if($sebc3a instanceof FromGenerator){$this->zdyu13($sebc3a);}}$this->asvea($sebc3a);}/**
* @param object $import
* @param int $startRow
*/ public function yowr6($htvt4c,int $hrfa4d=1){if($htvt4c instanceof WithEvents){$this->umlh3d($htvt4c->wrzv3e());}$this->dhrp3f(new twmt40($this,$htvt4c));if($htvt4c instanceof WithProgressBar&&!$htvt4c instanceof WithChunkReading){$htvt4c->mgxi4e()->wipj4f($this->$luyr2e->fwii50());}$mwkf51=$htvt4c instanceof WithCalculatedFormulas;$ostw52=$htvt4c instanceof WithFormatData;if($htvt4c instanceof WithMappedCells){wmaa22(MappedReader::class)->zigr53($htvt4c,$this->$luyr2e);}else{if($htvt4c instanceof ToModel){wmaa22(ModelImporter::class)->yowr6($this->$luyr2e,$htvt4c,$hrfa4d);}if($htvt4c instanceof ToCollection){$zdhx54=$this->bpqx8($htvt4c,$hrfa4d,null,$mwkf51,$ostw52);if($htvt4c instanceof WithValidation){$zdhx54=$this->udjz21($htvt4c,$hrfa4d,$zdhx54);}$htvt4c->rjtv55($zdhx54);}if($htvt4c instanceof ToArray){$zdhx54=$this->wdos7($htvt4c,$hrfa4d,null,$mwkf51,$ostw52);if($htvt4c instanceof WithValidation){$zdhx54=$this->udjz21($htvt4c,$hrfa4d,$zdhx54);}$htvt4c->ivcl56($zdhx54);}}if($htvt4c instanceof OnEachRow){$fhli57=HeadingRowExtractor::extract($this->$luyr2e,$htvt4c);$idzz58=HeadingRowExtractor::vrok59($fhli57,$htvt4c);$gyux5a=$htvt4c instanceof WithColumnLimit?$htvt4c->gwym5b():null;$piii5c=$this->ccsi27($htvt4c);foreach($this->$luyr2e->evzs5d()->znxj5e($hrfa4d ?? 1)as $ccdx5f){$kwvn60=new chra61($ccdx5f,$fhli57,$idzz58);if($htvt4c instanceof WithValidation){$kwvn60->gsng62($piii5c);}$aczn63=$kwvn60->wdos7(null,$htvt4c instanceof WithCalculatedFormulas,$htvt4c instanceof WithFormatData,$gyux5a);$urlo64=$htvt4c instanceof SkipsEmptyRows&&method_exists($htvt4c,base64_decode('aXNFbXB0eVdoZW4='))&&$htvt4c->xaif65($aczn63);if(!$htvt4c instanceof SkipsEmptyRows||($htvt4c instanceof SkipsEmptyRows&&(!$urlo64&&!$kwvn60->ixay66($mwkf51)))){if($htvt4c instanceof WithValidation){$nezv67=[$kwvn60->aahz68()=>$aczn63];try{wmaa22(RowValidator::class)->imre69($nezv67,$htvt4c);$htvt4c->qjtx6a($kwvn60);}catch(RowSkippedException $jjgn6b){}}else{$htvt4c->qjtx6a($kwvn60);}}if($htvt4c instanceof WithProgressBar){$htvt4c->mgxi4e()->vglk6c();}}}$this->dhrp3f(new yupb6d($this,$htvt4c));if($htvt4c instanceof WithProgressBar&&!$htvt4c instanceof WithChunkReading){$htvt4c->mgxi4e()->gklx6e();}}/**
* @param object $import
* @param int|null $startRow
* @param null $nullValue
* @param bool $calculateFormulas
* @param bool $formatData
* @return array
*/ public function wdos7($htvt4c,int $hrfa4d=null,$xbxx6f=null,$nyva70=false,$ostw52=false){if($hrfa4d>$this->$luyr2e->fwii50()){return[];}$lwng71=EndRowFinder::iluz72($htvt4c,$hrfa4d,$this->$luyr2e->fwii50());$fhli57=HeadingRowExtractor::extract($this->$luyr2e,$htvt4c);$idzz58=HeadingRowExtractor::vrok59($fhli57,$htvt4c);$gyux5a=$htvt4c instanceof WithColumnLimit?$htvt4c->gwym5b():null;$zdhx54=[];foreach($this->$luyr2e->evzs5d($hrfa4d,$lwng71)as $lkjg33=>$ccdx5f){$ccdx5f=new chra61($ccdx5f,$fhli57,$idzz58);if($htvt4c instanceof SkipsEmptyRows&&$ccdx5f->ixay66($nyva70,$gyux5a)){continue;}$ccdx5f=$ccdx5f->wdos7($xbxx6f,$nyva70,$ostw52,$gyux5a);if($htvt4c&&method_exists($htvt4c,base64_decode('aXNFbXB0eVdoZW4='))&&$htvt4c->xaif65($ccdx5f)){continue;}if($htvt4c instanceof WithMapping){$ccdx5f=$htvt4c->zigr53($ccdx5f);}if($htvt4c instanceof WithValidation&&method_exists($htvt4c,base64_decode('cHJlcGFyZUZvclZhbGlkYXRpb24='))){$ccdx5f=$htvt4c->fchm73($ccdx5f,$lkjg33);}$zdhx54[]=$ccdx5f;if($htvt4c instanceof WithProgressBar){$htvt4c->mgxi4e()->vglk6c();}}return $zdhx54;}/**
* @param object $import
* @param int|null $startRow
* @param null $nullValue
* @param bool $calculateFormulas
* @param bool $formatData
* @return Collection
*/ public function bpqx8($htvt4c,int $hrfa4d=null,$xbxx6f=null,$nyva70=false,$ostw52=false):Collection{$zdhx54=$this->wdos7($htvt4c,$hrfa4d,$xbxx6f,$nyva70,$ostw52);return new ubxp9(array_map(function(array$ccdx5f){return new ubxp9($ccdx5f);},$zdhx54));}/**
* @param object $sheetExport
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function asvea($sebc3a){if($sebc3a instanceof WithDrawings){$this->afbs1b($sebc3a->njie74());}$this->$unqp3b=$sebc3a;if($sebc3a instanceof WithColumnFormatting){foreach($sebc3a->lgkw75()as $sluj76=>$owvf77){$this->vnqr17($sluj76,$owvf77);}}if($sebc3a instanceof ShouldAutoSize){$this->sudu16();}if($sebc3a instanceof WithColumnWidths){foreach($sebc3a->vcgq78()as $sluj76=>$itbp79){$this->$luyr2e->qzdf7a($sluj76)->unqk7b(false)->qijg7c($itbp79);}}if($sebc3a instanceof WithStyles){$erhm7d=$sebc3a->ptun7e($this->$luyr2e);if(is_array($erhm7d)){foreach($erhm7d as $lalp7f=>$neaa80){if(is_numeric($lalp7f)){$lalp7f=base64_decode('QQ==').$lalp7f.base64_decode('Og==').$this->$luyr2e->iahf81($lalp7f).$lalp7f;}$this->$luyr2e->hzrd82($lalp7f)->mlki83($neaa80);}}}$this->dhrp3f(new yupb6d($this,$this->$unqp3b));$this->kotz84();}/**
* @param FromView $sheetExport
* @param int|null $sheetIndex
*
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
*/ public function pmxab(FromView $sebc3a,$ojsi85=null){$tqxz86=$this->$zaqp31->euef87(null,base64_decode('aHRtbA=='));$tqxz86->ipbz88($sebc3a->ttms89()->eghz8a());$duoa32=$this->$luyr2e->prle8b();/** @var Html $reader */ $lxzx8c=IOFactory::mdih8d(base64_decode('SHRtbA=='));$lxzx8c->ztie8e($ojsi85 ?? $duoa32->qrag35()-1);$lxzx8c->gpxv8f($tqxz86->lwdy90(),$duoa32);$tqxz86->duvr91();}/**
* @param FromQuery $sheetExport
* @param Worksheet $worksheet
*/ public function pasic(FromQuery $sebc3a,Worksheet $ciof2d){if($sebc3a->bkik92()instanceof \Laravel\Scout\Builder){$this->ziefe($sebc3a,$ciof2d);return;}$sebc3a->bkik92()->xafv93($this->dinu26($sebc3a),function($dpjf94)use($sebc3a){$this->ycjzd($dpjf94,$sebc3a);});}/**
* @param FromQuery $sheetExport
* @param Worksheet $worksheet
*/ public function ziefe(FromQuery $sebc3a,Worksheet $ciof2d){$ivil95=$sebc3a->bkik92();$nhey2a=$this->dinu26($sebc3a);$dpjf94=$ivil95->fsvn96($nhey2a);$this->ycjzd($dpjf94->ukdh97(),$sebc3a);for($wbsj98=2;$wbsj98<=$dpjf94->rugc99();$wbsj98++){$this->ycjzd($ivil95->fsvn96($nhey2a,base64_decode('cGFnZQ=='),$wbsj98)->ukdh97(),$sebc3a);}}/**
* @param FromCollection $sheetExport
*/ public function jwrkf(FromCollection $sebc3a){$this->ycjzd($sebc3a->rjtv55()->nstu9a(),$sebc3a);}/**
* @param FromArray $sheetExport
*/ public function oiss10(FromArray $sebc3a){$this->ycjzd($sebc3a->ivcl56(),$sebc3a);}/**
* @param FromIterator $sheetExport
*/ public function vsms11(FromIterator $sebc3a){$uoer9b=class_exists(LazyCollection::class)?new ezmm9c(function()use($sebc3a){foreach($sebc3a->nznn12()as $ccdx5f){yield $ccdx5f;}}):$sebc3a->nznn12();$this->ycjzd($uoer9b,$sebc3a);}/**
* @param FromGenerator $sheetExport
*/ public function zdyu13(FromGenerator $sebc3a){$wixi9d=class_exists(LazyCollection::class)?new ezmm9c(function()use($sebc3a){foreach($sebc3a->skum14()as $ccdx5f){yield $ccdx5f;}}):$sebc3a->skum14();$this->ycjzd($wixi9d,$sebc3a);}/**
* @param array $rows
* @param string|null $startCell
* @param bool $strictNullComparison
*/ public function dcef15(array$zdhx54,string $qyhz47=null,bool $qnca9e=false){if(!$qyhz47){$qyhz47=base64_decode('QTE=');}if($this->onea24()){$qyhz47=CellHelper::lxdd9f($qyhz47).($this->$luyr2e->fwii50()+1);}$this->$luyr2e->oiss10($zdhx54,null,$qyhz47,$qnca9e);}public function sudu16(){foreach($this->dkcm23(base64_decode('QQ=='),$this->$luyr2e->bppqa0())as $lrcya1){$qfkaa2=$this->$luyr2e->qzdf7a($lrcya1);if($qfkaa2->qguda3()==-1){$qfkaa2->unqk7b(true);}}}/**
* @param string $column
* @param string $format
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ public function vnqr17(string $sluj76,string $owvf77){if(stripos($sluj76,base64_decode('Og=='))!==false){$this->$luyr2e->hzrd82($sluj76)->opcja4()->mxtsa5($owvf77);}else{$this->$luyr2e->hzrd82($sluj76.base64_decode('MTo=').$sluj76.$this->$luyr2e->fwii50())->opcja4()->mxtsa5($owvf77);}}/**
* @param int $chunkSize
* @return Sheet
*/ public function xtqn18(int $nhey2a){$this->$zfvj2f=$nhey2a;return $this;}/**
* @return Worksheet
*/ public function oblr19(){return $this->$luyr2e;}/**
* @param Chart|Chart[] $charts
*/ public function txho1a($wzkha6){$wzkha6=\is_array($wzkha6)?$wzkha6:[$wzkha6];foreach($wzkha6 as $kuixa7){$this->$luyr2e->hdapa8($kuixa7);}}/**
* @param BaseDrawing|BaseDrawing[] $drawings
*/ public function afbs1b($muvqa9){$muvqa9=\is_array($muvqa9)?$muvqa9:[$muvqa9];foreach($muvqa9 as $iqofaa){$iqofaa->foqbab($this->$luyr2e);}}/**
* @param string $concern
* @return string
*/ public function lvva1c(string $bcezac):string{return $this->$unqp3b instanceof $bcezac;}/**
* @param iterable $rows
* @param object $sheetExport
*/ public function ycjzd($zdhx54,$sebc3a){if(method_exists($sebc3a,base64_decode('cHJlcGFyZVJvd3M='))){$zdhx54=$sebc3a->tzxbad($zdhx54);}$zdhx54=$zdhx54 instanceof LazyCollection?$zdhx54:new ubxp9($zdhx54);$zdhx54->yhgpae(function($ccdx5f)use($sebc3a){if($sebc3a instanceof WithMapping){$ccdx5f=$sebc3a->zigr53($ccdx5f);}if($sebc3a instanceof WithCustomValueBinder){SpreadsheetCell::zvwi3c($sebc3a);}return ArrayHelper::demi49(static::hfmf1e($ccdx5f));})->xafv93(1000)->ibziaf(function($zdhx54)use($sebc3a){$this->dcef15($zdhx54->wdos7(),$sebc3a instanceof WithCustomStartCell?$sebc3a->mcwn48():null,$this->kuoo25($sebc3a));});}/**
* @param mixed $row
* @return array
*/ public static function hfmf1e($ccdx5f):array{if(is_object($ccdx5f)&&method_exists($ccdx5f,base64_decode('YXR0cmlidXRlc1RvQXJyYXk='))){return $ccdx5f->acofb0();}if($ccdx5f instanceof Arrayable){return $ccdx5f->wdos7();}if(is_object($ccdx5f)){return json_decode(json_encode($ccdx5f),true);}return $ccdx5f;}/**
* @param $sheetImport
* @return int
*/ public function mufn1f($vngab1):int{return HeadingRowExtractor::ixbxb2($vngab1);}/**
* Disconnect the sheet.
*/ public function cpym20(){$this->$luyr2e->snvbb3();unset($this->$luyr2e);}/**
* @return Collection|array
*/ protected function udjz21(WithValidation $htvt4c,int $hrfa4d,$zdhx54){$nezv67=(new ubxp9($zdhx54))->vwywb4(function($ccdx5f,$lkjg33)use($hrfa4d){return[($hrfa4d+$lkjg33)=>$ccdx5f];});try{wmaa22(RowValidator::class)->imre69($nezv67->wdos7(),$htvt4c);}catch(RowSkippedException $jjgn6b){foreach($jjgn6b->uhwhb5()as $ccdx5f){unset($zdhx54[$ccdx5f-$hrfa4d]);}}return $zdhx54;}/**
* @param string $lower
* @param string $upper
* @return \Generator
*/ protected function dkcm23(string $xhvyb6,string $svsyb7){$svsyb7++;for($upjib8=$xhvyb6;$upjib8!==$svsyb7;$upjib8++){yield $upjib8;}}/**
* @return bool
*/ private function onea24():bool{$qyhz47=base64_decode('QTE=');if($this->$unqp3b instanceof WithCustomStartCell){$qyhz47=$this->$unqp3b->mcwn48();}return $this->$luyr2e->rborb9($qyhz47);}/**
* @param object $sheetExport
* @return bool
*/ private function kuoo25($sebc3a):bool{if($sebc3a instanceof WithStrictNullComparison){return true;}return wvvu30(base64_decode('ZXhjZWwuZXhwb3J0cy5zdHJpY3RfbnVsbF9jb21wYXJpc29u'),false);}/**
* @param object|WithCustomChunkSize $export
* @return int
*/ private function dinu26($bbwfba):int{if($bbwfba instanceof WithCustomChunkSize){return $bbwfba->xtqn18();}return $this->$zfvj2f;}/**
* @param object|WithValidation $import
* @return Closure|null
*/ private function ccsi27($htvt4c){if(!$htvt4c instanceof WithValidation||!method_exists($htvt4c,base64_decode('cHJlcGFyZUZvclZhbGlkYXRpb24='))){return null;}return function(array$ejygbb,int $lkjg33)use($htvt4c){return $htvt4c->fchm73($ejygbb,$lkjg33);};}}?>
Function Calls
None |
Stats
MD5 | c269b56c12eafdb7a7ba058d46b71fd1 |
Eval Count | 0 |
Decode Time | 106 ms |