PageSourceSearch

https://exploremydata.com/assets/xlsxSheets-BENGaTjw.js

js exploremydata.com collected 2026-09-25 20:07:21 UTC 1,302 bytes, 1 lines download raw bytes

1import{utils as i}from"./vendor-xlsx-DCwg6k6L.js";function c(e,s){const t=e.Sheets[s];return t?i.sheet_to_csv(t,{blankrows:!1}):""}function a(e,s){const t=e.SheetNames;if(t.length===0)throw new Error("That workbook has no sheets in it.");const n=s&&t.includes(s)?s:void 0;if(n){const o=c(e,n);if(o.trim().length>0)return{name:n,csv:o}}const r=n??t[0];for(const o of t){const h=c(e,o);if(h.trim().length!==0)return{name:o,csv:h,...o===r?{}:{warning:`The sheet "${r}" is empty, so "${o}" was converted instead.`}}}throw new Error(t.length===1?`The only sheet in that workbook, "${t[0]}", is empty.`:"Every sheet in that workbook is empty, so there is nothing to convert.")}function w(e,s,t){var o,h;const n=(((o=e.sheets)==null?void 0:o.length)??0)>1,r=(((h=s.sheets)==null?void 0:h.length)??0)>1;if(!(!n&&!r))return{kind:"sheets",sheets:n?e.sheets:[],selected:n?e.sheet??e.sheets[0]:"",...n&&e.rowCounts?{rowCounts:e.rowCounts}:{},...r?{second:{sheets:s.sheets,selected:s.sheet??s.sheets[0],...s.rowCounts?{rowCounts:s.rowCounts}:{}}}:{},pickerLabels:t}}function f(e){return e.SheetNames.map(s=>{const t=e.Sheets[s],n=t==null?void 0:t["!ref"];if(!n)return 0;try{const r=i.decode_range(n);return Math.max(r.e.r-r.s.r,0)}catch{return 0}})}export{a as chooseSheet,f as sheetRowCounts,w as twoSidedSheets};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.