"use strict";(self.webpackChunkdragblock=self.webpackChunkdragblock||[]).push([[6376],{6376:function(t,e,s){s.r(e),s.d(e,{CPAL:function(){return i}});var r=s(2592),a=s(7047);class i extends r.x{constructor(t,e){const{p:s}=super(t,e);this.version=s.uint16,this.numPaletteEntries=s.uint16;const r=this.numPalettes=s.uint16;this.numColorRecords=s.uint16,this.offsetFirstColorRecord=s.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map((t=>s.uint16)),(0,a.Z)(this,"colorRecords",(()=>(s.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map((t=>new n(s)))))),1===this.version&&(this.offsetPaletteTypeArray=s.Offset32,this.offsetPaletteLabelArray=s.Offset32,this.offsetPaletteEntryLabelArray=s.Offset32,(0,a.Z)(this,"paletteTypeArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new o(s,r)))),(0,a.Z)(this,"paletteLabelArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new l(s,r)))),(0,a.Z)(this,"paletteEntryLabelArray",(()=>(s.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new c(s,r)))))}}class n{constructor(t){this.blue=t.uint8,this.green=t.uint8,this.red=t.uint8,this.alpha=t.uint8}}class o{constructor(t,e){this.paletteTypes=[...new Array(e)].map((e=>t.uint32))}}class l{constructor(t,e){this.paletteLabels=[...new Array(e)].map((e=>t.uint16))}}class c{constructor(t,e){this.paletteEntryLabels=[...new Array(e)].map((e=>t.uint16))}}}}]);