SheetJS
ab962d782e
- no pollution of the Array prototype - alignment with js-xls CFB code - removed main code in CFB (use cfb bin instead) - more tests - added dist - correect for incorrect tree level pointers
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"file":"dist/cfb.min.js","sources":["cfb.js"],"names":["Base64","map","decode","input","utf8","o","c1","c2","c3","e1","e2","e3","e4","replace","i","length","indexOf","charAt","String","fromCharCode","s2a","s","Buffer","w","split","x","charCodeAt","__toBuffer","prototype","hexlify","this","toString","utf16le","e","bufs","concat","__readUInt8","b","idx","readUInt8","__readUInt16LE","readUInt16LE","__readInt16LE","u","__readUInt32LE","readUInt32LE","__readInt32LE","readInt32LE","__hexlify","join","__utf16le","ss","push","__utf8","bconcat","apply","ReadShift","size","t","oo","vv","l","CheckField","hexstr","fld","slice","m","prep_blob","blob","pos","read_shift","bind","chk","read","CFB","version","parse","file","mver","ssz","mssz","nds","nfs","nmfs","ndfs","dir_start","minifat_start","difat_start","ms_cutoff_size","minifat_store","minifat_size","fat_addrs","j","q","HEADER_SIGNATURE","HEADER_CLSID","header","MAXREGSECT","nsectors","Math","ceil","sectors","sleuth_fat","cnt","ENDOFCHAIN","FREESECT","sector","get_buffer","byte_addr","bytes","addr","floor","get_buffer_u32","get_next_sector","chkd","Array","sector_list","get_sector","k","buf","nodes","data","name","files","Paths","FileIndex","FullPaths","FullPathDir","read_directory","namelen","type","EntryTypes","color","left","NOSTREAM","right","child","clsid","state","ctime","mtime","start","storage","content","ct","pow","Date","mt","m2","build_full_paths","Dir","pathobj","paths","patharr","dad","shift","root_name","root","find_path","path","UCNames","toUpperCase","UCPath","rval","raw","find","readFileSync","filename","fs","require","readSync","options","DIFSECT","FATSECT","HEADER_MINOR_VERSION","MAXREGSID","CFB_utils","exports","utils"],"mappings":";AAIA,GAAIA,QAAS,WACZ,GAAIC,KAAM,mEACV,QAkBCC,OAAQ,SAASC,MAAOC,MACvB,GAAIC,GAAI,EACR,IAAIC,IAAIC,GAAIC,EACZ,IAAIC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