@8sheets/data-grid 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/LICENSE.md +36 -0
  2. package/README.md +52 -2
  3. package/a11y/cell-alt-text.js +1 -0
  4. package/api/overlay.js +1 -0
  5. package/api/serialize.js +1 -0
  6. package/api/skins.js +1 -0
  7. package/api/style-refs.js +1 -0
  8. package/api/watermark-xml.js +2 -0
  9. package/calc/adjust.js +1 -0
  10. package/calc/cell-set.js +1 -0
  11. package/calc/compile.js +1 -0
  12. package/calc/engine.js +1 -0
  13. package/calc/fill-shape.js +2 -0
  14. package/calc/functions/array.js +1 -0
  15. package/calc/functions/database.js +1 -0
  16. package/calc/functions/date.js +1 -0
  17. package/calc/functions/engineering.js +1 -0
  18. package/calc/functions/financial.js +1 -0
  19. package/calc/functions/helpers.js +1 -0
  20. package/calc/functions/index.js +1 -0
  21. package/calc/functions/info.js +1 -0
  22. package/calc/functions/logical.js +1 -0
  23. package/calc/functions/lookup.js +1 -0
  24. package/calc/functions/math.js +1 -0
  25. package/calc/functions/registry.js +1 -0
  26. package/calc/functions/stat.js +1 -0
  27. package/calc/functions/text.js +1 -0
  28. package/calc/parser.js +3 -0
  29. package/calc/values.js +1 -0
  30. package/calcx/ai/client.js +1 -0
  31. package/calcx/ai/functions.js +15 -0
  32. package/calcx/ai/settings.js +1 -0
  33. package/calcx/async.js +1 -0
  34. package/calcx/culture/format-locale.js +1 -0
  35. package/calcx/culture/lcid.js +1 -0
  36. package/calcx/external-read.js +1 -0
  37. package/calcx/external-write.js +3 -0
  38. package/calcx/external.js +1 -0
  39. package/calcx/functions/dynamic.js +1 -0
  40. package/calcx/functions/ets.js +1 -0
  41. package/calcx/functions/index.js +1 -0
  42. package/calcx/functions/misc.js +1 -0
  43. package/calcx/functions/text.js +1 -0
  44. package/calcx/functions/xml.js +1 -0
  45. package/calcx/refresh.js +1 -0
  46. package/cells/auto-merge.js +1 -0
  47. package/cells/axis-limits.js +1 -0
  48. package/cells/axis-ops.js +1 -0
  49. package/cells/background-xml.js +1 -0
  50. package/cells/background.js +1 -0
  51. package/cells/book-css.js +206 -0
  52. package/cells/book-read.js +1 -0
  53. package/cells/book-view.js +1 -0
  54. package/cells/cell-defaults.js +1 -0
  55. package/cells/cell-extras.js +1 -0
  56. package/cells/cell-options-ui.js +1 -0
  57. package/cells/cell-styles-xml.js +1 -0
  58. package/cells/cf-engine.js +1 -0
  59. package/cells/cf-file.js +1 -0
  60. package/cells/cf-paint.js +1 -0
  61. package/cells/consolidate-links.js +1 -0
  62. package/cells/docprops-xml.js +2 -0
  63. package/cells/filter-file.js +1 -0
  64. package/cells/find-engine.js +2 -0
  65. package/cells/find.js +1 -0
  66. package/cells/format-code.js +1 -0
  67. package/cells/format-panes.js +3 -0
  68. package/cells/format-tabs.js +102 -0
  69. package/cells/goto.js +1 -0
  70. package/cells/header-colors.js +1 -0
  71. package/cells/mask.js +1 -0
  72. package/cells/menu-extras.js +1 -0
  73. package/cells/name-box.js +1 -0
  74. package/cells/note-xml.js +1 -0
  75. package/cells/options.js +1 -0
  76. package/cells/outline-column.js +1 -0
  77. package/cells/paint.js +1 -0
  78. package/cells/panes.js +1 -0
  79. package/cells/rich-data-xml.js +2 -0
  80. package/cells/rich-data.js +1 -0
  81. package/cells/rich-runs.js +2 -0
  82. package/cells/rich-values.js +1 -0
  83. package/cells/rich-xml.js +1 -0
  84. package/cells/rounded.js +1 -0
  85. package/cells/sections.js +2 -0
  86. package/cells/selection-modes.js +1 -0
  87. package/cells/style-xml.js +1 -0
  88. package/cells/text-layout.js +8 -0
  89. package/cells/undo-group.js +1 -0
  90. package/cells/validation-alert.js +2 -0
  91. package/cells/view-options.js +1 -0
  92. package/cells/view-xml.js +1 -0
  93. package/celltypes/barcode-tables.js +31 -0
  94. package/celltypes/barcode.js +2 -0
  95. package/celltypes/base.js +1 -0
  96. package/celltypes/cell-buttons.js +1 -0
  97. package/celltypes/cell-types.js +2 -0
  98. package/celltypes/data-object.js +1 -0
  99. package/celltypes/diagonal.js +1 -0
  100. package/celltypes/dropdowns-more.js +13 -0
  101. package/celltypes/dropdowns.js +42 -0
  102. package/celltypes/file-cell.js +2 -0
  103. package/celltypes/glyphs.js +1 -0
  104. package/celltypes/persist.js +2 -0
  105. package/celltypes/range-template.js +2 -0
  106. package/charts/chartex.js +3 -0
  107. package/charts/geo/geo-xml.js +1 -0
  108. package/charts/geo/map-state.js +1 -0
  109. package/charts/patterns.js +1 -0
  110. package/core/address.js +1 -0
  111. package/core/axis.js +1 -0
  112. package/core/base64.js +1 -0
  113. package/core/changes.js +1 -0
  114. package/core/color.js +1 -0
  115. package/core/cond-format.js +1 -0
  116. package/core/custom-views.js +1 -0
  117. package/core/default-names.js +1 -0
  118. package/core/formula-refs.js +1 -0
  119. package/core/formula-store.js +1 -0
  120. package/core/input.js +1 -0
  121. package/core/math.js +1 -0
  122. package/core/numfmt.js +1 -0
  123. package/core/online.js +1 -0
  124. package/core/protection.js +1 -0
  125. package/core/regexp.js +1 -0
  126. package/core/sheet.js +1 -0
  127. package/core/sparklines.js +1 -0
  128. package/core/sparse.js +1 -0
  129. package/core/strings.js +1 -0
  130. package/core/styles.js +1 -0
  131. package/core/table-presets.js +7 -0
  132. package/core/tables.js +2 -0
  133. package/core/tsv.js +4 -0
  134. package/core/whatif.js +1 -0
  135. package/core/workbook.js +1 -0
  136. package/datasheets/bind.js +1 -0
  137. package/datasheets/calendar.js +1 -0
  138. package/datasheets/cross.js +1 -0
  139. package/datasheets/data-core.js +1 -0
  140. package/datasheets/data.js +1 -0
  141. package/datasheets/formula.js +1 -0
  142. package/datasheets/gantt-paint.js +1 -0
  143. package/datasheets/gantt-resources.js +1 -0
  144. package/datasheets/gantt-shapes.js +1 -0
  145. package/datasheets/gantt.js +1 -0
  146. package/datasheets/manager.js +1 -0
  147. package/datasheets/path-binding.js +2 -0
  148. package/datasheets/persist-writer.js +2 -0
  149. package/datasheets/persist.js +1 -0
  150. package/datasheets/query-function.js +1 -0
  151. package/datasheets/remote.js +3 -0
  152. package/datasheets/report-entry.js +1 -0
  153. package/datasheets/report.js +1 -0
  154. package/datasheets/rules.js +1 -0
  155. package/datasheets/sort.js +1 -0
  156. package/datasheets/table-sheet.js +1 -0
  157. package/datasheets/view.js +3 -0
  158. package/datasheets/virtual-sheet.js +1 -0
  159. package/datasheets/window.js +1 -0
  160. package/extras/getdata/persist.js +2 -0
  161. package/extras/getdata/rows.js +1 -0
  162. package/extras/getdata/steps.js +1 -0
  163. package/i18n/dom.js +1 -0
  164. package/i18n/en/a11y.js +1 -0
  165. package/i18n/en/cells.js +1 -0
  166. package/i18n/en/charts.js +1 -0
  167. package/i18n/en/common.js +1 -0
  168. package/i18n/en/datasheets.js +1 -0
  169. package/i18n/en/format.js +1 -0
  170. package/i18n/en/misc.js +1 -0
  171. package/i18n/en/pivot.js +1 -0
  172. package/i18n/en/proofing.js +1 -0
  173. package/i18n/en/ribbon.js +1 -0
  174. package/i18n/en/shapes.js +1 -0
  175. package/i18n/en/shell.js +1 -0
  176. package/i18n/en/touch.js +1 -0
  177. package/i18n/en.js +1 -0
  178. package/i18n/index.js +1 -0
  179. package/i18n/key-text.js +1 -0
  180. package/i18n/languages.js +1 -0
  181. package/i18n/pl/a11y.js +1 -0
  182. package/i18n/pl/cells.js +1 -0
  183. package/i18n/pl/charts.js +1 -0
  184. package/i18n/pl/common.js +1 -0
  185. package/i18n/pl/datasheets.js +1 -0
  186. package/i18n/pl/format.js +1 -0
  187. package/i18n/pl/misc.js +1 -0
  188. package/i18n/pl/pivot.js +1 -0
  189. package/i18n/pl/proofing.js +1 -0
  190. package/i18n/pl/ribbon.js +1 -0
  191. package/i18n/pl/shapes.js +1 -0
  192. package/i18n/pl/shell.js +1 -0
  193. package/i18n/pl/touch.js +1 -0
  194. package/i18n/pl.js +1 -0
  195. package/io/client.js +1 -0
  196. package/io/crc32.js +1 -0
  197. package/io/crypto/aes.js +1 -0
  198. package/io/crypto/agile.js +2 -0
  199. package/io/crypto/cfb-read.js +1 -0
  200. package/io/crypto/cfb-write.js +1 -0
  201. package/io/crypto/dataspaces.js +1 -0
  202. package/io/crypto/errors.js +1 -0
  203. package/io/crypto/hash.js +1 -0
  204. package/io/crypto/index.js +1 -0
  205. package/io/crypto/package-read.js +1 -0
  206. package/io/crypto/package-write.js +1 -0
  207. package/io/crypto/spool.js +1 -0
  208. package/io/crypto/standard.js +1 -0
  209. package/io/csv.js +5 -0
  210. package/io/export-blocks.js +1 -0
  211. package/io/foreign-parts.js +1 -0
  212. package/io/foreign-sheets.js +2 -0
  213. package/io/io.worker.js +1 -0
  214. package/io/package-paths.js +1 -0
  215. package/io/plan.js +1 -0
  216. package/io/xlsx-read.js +1 -0
  217. package/io/xlsx-styles.js +2 -0
  218. package/io/xlsx-tail.js +1 -0
  219. package/io/xlsx-write.js +2 -0
  220. package/io/xml-escape.js +1 -0
  221. package/io/xml-scan.js +1 -0
  222. package/io/zip-reader.js +1 -0
  223. package/io/zip-writer.js +1 -0
  224. package/objects/chart-model.js +1 -0
  225. package/objects/dml.js +5 -0
  226. package/objects/drawing-xml.js +1 -0
  227. package/objects/picture-url.js +1 -0
  228. package/package.json +57 -4
  229. package/pivot/engine.js +1 -0
  230. package/pivot/xml.js +2 -0
  231. package/print/page-setup.js +1 -0
  232. package/print/paginate.js +1 -0
  233. package/print/pdf.js +35 -0
  234. package/print/render-page.js +3 -0
  235. package/render/patterns.js +1 -0
  236. package/shapes/form-xml.js +1 -0
  237. package/shapes/watermark.js +1 -0
  238. package/slicers/custom-styles.js +1 -0
  239. package/slicers/date-filters.js +1 -0
  240. package/slicers/format.js +2 -0
  241. package/slicers/pivot-file.js +1 -0
  242. package/slicers/structured.js +1 -0
  243. package/slicers/table-file.js +1 -0
  244. package/slicers/write.js +1 -0
  245. package/sparklines/colors.js +1 -0
  246. package/sparklines/data.js +1 -0
  247. package/sparklines/descriptor.js +1 -0
  248. package/sparklines/excel-paint.js +1 -0
  249. package/sparklines/functions.js +1 -0
  250. package/sparklines/paint-core.js +1 -0
  251. package/sparklines/paint-measure.js +1 -0
  252. package/sparklines/paint-other.js +2 -0
  253. package/sparklines/paint-series.js +1 -0
  254. package/sparklines/paint.js +1 -0
  255. package/sparklines/print.js +1 -0
  256. package/sparklines/rule.js +1 -0
  257. package/table-view/api.js +1 -0
  258. package/table-view/cell-editor.js +1 -0
  259. package/table-view/cell-format.js +1 -0
  260. package/table-view/chrome.js +1 -0
  261. package/table-view/client.js +1 -0
  262. package/table-view/column-drag.js +1 -0
  263. package/table-view/column-input.js +1 -0
  264. package/table-view/column-window.js +1 -0
  265. package/table-view/events.js +1 -0
  266. package/table-view/files.js +1 -0
  267. package/table-view/grid-keys.js +2 -0
  268. package/table-view/index.d.ts +4 -0
  269. package/table-view/index.js +1 -0
  270. package/table-view/labels.js +1 -0
  271. package/table-view/model.js +1 -0
  272. package/table-view/mount.js +1 -0
  273. package/table-view/panel.js +1 -0
  274. package/table-view/pivot.js +1 -0
  275. package/table-view/public.d.ts +841 -0
  276. package/table-view/quick-filter.js +1 -0
  277. package/table-view/reader.worker.js +1 -0
  278. package/table-view/remote.js +1 -0
  279. package/table-view/row-cache.js +1 -0
  280. package/table-view/row-selection.js +1 -0
  281. package/table-view/table-css.js +1207 -0
  282. package/table-view/totals.js +1 -0
  283. package/table-view/version.js +1 -0
  284. package/table-view/worksheet-table.js +1 -0
  285. package/ui/dialogs.js +3 -0
  286. package/ui/dom.js +1 -0
  287. package/ui/icons.js +1 -0
  288. package/ui/menu-base.js +1 -0
  289. package/ui/protection-ui.js +1 -0
  290. package/ui/ui-scale.js +1 -0
@@ -0,0 +1,2 @@
1
+ import{escapeRegExp as h}from"../core/regexp.js";import{resolveTarget as d}from"../io/package-paths.js";const f="urn:8sheets:celltypes:1",T="urn:8sheets:cells:1",$="http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",x="application/xml",i="customXml/",g=64*1024*1024,y=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`;function w(e,o,s="cellTypes8c"){const t=`${s}${e+1}.xml`,r=`rId8c${s}${e+1}`;return{path:`${i}${t}`,xml:o,override:{partName:`/${i}${t}`,contentType:x},relationship:{id:r,type:$,target:`/${i}${t}`}}}const R=e=>`<Override PartName="${e.partName}" ContentType="${e.contentType}"/>`,v=e=>`<Relationship Id="${e.id}" Type="${e.type}" Target="${e.target}"/>`;function C(e,o,s,t="xl/workbook.xml"){if(!s||s.length===0)return{types:e,rels:o};const r=s.filter(n=>n.override&&!e.includes(`PartName="${n.override.partName}"`)),a=new Set([...o.matchAll(/\bTarget="([^"]+)"/g)].map(n=>d(t,n[1]))),l=s.filter(n=>n.relationship&&!a.has(d(t,n.relationship.target))&&!o.includes(`Id="${n.relationship.id}"`));return{types:e.replace("</Types>",`${r.map(n=>R(n.override)).join("")}</Types>`),rels:o.replace("</Relationships>",`${l.map(n=>v(n.relationship)).join("")}</Relationships>`)}}function E(e,o=g){const s=[];for(const[t,r]of e.entries)!t.startsWith(i)||!t.endsWith(".xml")||t.slice(i.length).includes("/")||/itemProps/i.test(t)||(r.size??0)<=o&&s.push(t);return s}async function N(e){const o=[];for(const s of E(e)){const t=await e.text(s);(t.includes(f)||t.includes(T)||t.includes("urn:8sheets:pivotviews:1"))&&o.push({name:s,text:t})}return o}async function S(e,o,s,t){let r=o,a=s;const l=n=>{r=r.replace(new RegExp(`<Override\\b[^>]*PartName="/${h(n)}"[^>]*/>`,"g"),"")};for(const{name:n}of await N(e)){t.add(n),l(n);const m=n.slice(i.length);a=a.replace(new RegExp(`<Relationship\\b[^>]*Target="[^"]*${h(i+m)}"[^>]*/>`,"g"),"");const c=`${i}_rels/${m}.rels`;if(e.has(c)){t.add(c);for(const u of(await e.text(c)).matchAll(/Target="([^"]+)"/g)){const p=`${i}${u[1].split("/").pop()}`;e.has(p)&&(t.add(p),l(p))}}}return{types:r,rels:a}}const L=()=>`${y}</Relationships>`;export{T as CELLS_NS,f as CELLTYPES_NS,x as CUSTOM_XML_CONTENT_TYPE,$ as CUSTOM_XML_REL,C as addCellTypeEntries,w as cellTypePart,E as customXmlNames,S as dropCellTypeParts,L as emptyRelationships,N as readCellTypeParts};
@@ -0,0 +1,2 @@
1
+ import{BOOL as Z,DIRTY as U,EMPTY as L,ERR as Y,FORMULA as z,KIND_MASK as E,NUM as P,Sheet as q,STR as G}from"../core/sheet.js";import{cellRef as Q,MAX_COLS as v,MAX_ROWS as ee,parseRangeRef as ne,sheetReferencePattern as te}from"../core/address.js";import{sparklineIndex as se}from"../core/sparklines.js";import{paintSparkline as oe}from"../sparklines/excel-paint.js";import{toFileFormula as le}from"../calc/parser.js";import{cssFont as ie}from"../core/styles.js";import{readCellValue as W}from"./dropdowns.js";import{CellType as re,defineCellType as ce,formatted as fe,frame as F,labelOf as ue,oneOf as ae,paintPlain as de,parseJsonCached as pe,safeText as he}from"./base.js";import{pathValue as me}from"./data-object.js";const j=60,ge=2e4,ye=500,be=/^R(?:\[(-?\d{1,7})\])?C(?:\[(-?\d{1,5})\])?$/,ke=/\{([^{}]+)\}/g,Ae={hair:1,thin:1,dotted:1,dashed:1,dashDot:1,dashDotDot:1,medium:2,mediumDashed:2,mediumDashDot:2,mediumDashDotDot:2,slantDashDot:2,double:1,thick:3};function Ce(n,e){const o=e.lastIndexOf("!"),s=o>=0?e.slice(0,o).replace(/^'|'$/g,"").replace(/''/g,"'"):null,t=s===null?n.sheet:n.sheets.find(l=>l.name.toLowerCase()===s.toLowerCase()),i=ne(o>=0?e.slice(o+1):e);return t&&i?{sheet:t,range:i}:null}function H(n,e){const o=te(e);return n.split(/("(?:[^"]|"")*")/).map((s,t)=>t%2===1?s:s.replace(o,"")).join("")}function V(n,e,o,s){const t=e.kind(o,s);(t&E)!==L&&n.setCell(o,s,t&E,e.value(o,s))}function X(n,e,o,s,t,i){for(const l of o.refs??[]){if(l.sheet)continue;const r=l.rAbs0?l.r0:s+(l.r0??0),y=l.rAbs1?l.r1:s+(l.r1??0),c=l.cAbs0?l.c0:t+(l.c0??0),a=l.cAbs1?l.c1:t+(l.c1??0),p=Math.min(Number.isFinite(y)?y:ee-1,e.maxRow),S=Math.min(Number.isFinite(a)?a:v-1,e.maxCol);for(let C=Math.max(0,r);C<=p;C++)for(let h=Math.max(0,c);h<=S;h++){if(i.left--<=0)return;(n.kind(C,h)&E)===L&&V(n,e,C,h)}}}function Me(n,e,o,s){const{engine:t}=n;if(!t)return null;const i=new q(e.name),l={left:ge};for(const c of o)V(i,e,c.r,c.c);const r=[];for(const c of o){if(!c.isFormula)continue;const a=H(n.editText(e,c.r,c.c).slice(1),e.name),p=le(a);i.setFormula(c.r,c.c,{f:p,typed:!0}),r.push(c),X(i,e,t.template(p,c.r,c.c),c.r,c.c,l)}const y=[];for(const c of s){const a=H(c.spark.source,e.name);y.push({...c,source:a}),X(i,e,t.template(a,c.r,c.c),c.r,c.c,l)}return{sheet:i,formulas:r,lines:y}}function Re(n,e,o,s,t){t==null||t===""?n.setCell(o,s,L,0):typeof t=="number"?n.setCell(o,s,P,t):typeof t=="boolean"?n.setCell(o,s,Z,t?1:0):n.setCell(o,s,G,e.strings.add(String(t)))}function De(n,e){const{engine:o}=e,{sheet:s,formulas:t}=n.copy;for(const i of t)s.setCell(i.r,i.c,z|U|P,0);for(const i of t)try{o.read(s,i.r,i.c)}catch{s.setCell(i.r,i.c,P,0)}}function Se(n,e,o){const s=Ce(n,e);if(!s)return null;const{sheet:t,range:i}=s,l=i.c0,r=i.r0,y=Math.min(i.c1,l+j-1),c=Math.min(i.r1,r+j-1),a=[0],p=[0];for(let u=l;u<=y;u++)a.push(a[a.length-1]+t.cols.sizeOf(u));for(let u=r;u<=c;u++)p.push(p[p.length-1]+t.rows.sizeOf(u));const S=a[a.length-1],C=p[p.length-1];if(S<=0||C<=0)return null;const h=[],O=t.sparklines&&t.sparklines.length>0?se(t):null,T=[];for(let u=r;u<=c;u++)for(let d=l;d<=y;d++){const f=t.mergeAt(u,d);if(f&&(f.r0!==u||f.c0!==d)&&!(u===r&&f.r0<r)&&!(d===l&&f.c0<l))continue;const m=f?Math.min(f.c1,y):d,g=f?Math.min(f.r1,c):u,b=n.styles.list[t.style(u,d)]??n.styles.list[0],A=t.kind(u,d)&E,M=o?.[Q(u,d)],R=t.cellTypes?.get?.(u*16384+d),k=O?.get(u*16384+d);if(A===L&&!b.fill&&!b.borders&&M===void 0&&R===void 0&&k===void 0)continue;const w=W(n,t,u,d);let D=null;M!==void 0?D=`{${M}}`:typeof w=="string"&&A!==Y&&(t.kind(u,d)&z)===0&&w.includes("{")&&(D=w),D!==null&&!D.includes("{")&&(D=null);const K=D===null&&(t.kind(u,d)&z)!==0;k!==void 0&&T.push({r:u,c:d,spark:k}),h.push({r:u,c:d,isFormula:K,spark:k!==void 0,x0:a[d-l],y0:p[u-r],x1:a[m-l+1],y1:p[g-r+1],st:b,value:w,tokens:D,type:R!==void 0&&R.type!=="range"?R:null})}const $=h.some(u=>u.isFormula)||T.length>0?Me(n,t,h,T):null;return{W:S,H:C,cells:h,sheet:t,copy:$}}const _=new Map;function B(n,e){const o=e.source;let s=_.get(o);return(s===void 0||s.id!==F.id||s.book!==n)&&(_.size>=64&&_.clear(),s={id:F.id,book:n,tpl:Se(n,o,e.bindings)},_.set(o,s)),s.tpl}function x(n,e,o,s,t,i){const l=be.exec(n);if(l){const r=t+Number(l[1]??0),y=i+Number(l[2]??0);return r>=0&&y>=0?W(o,s,r,y):null}return e===null?void 0:me(e,n)}function Te(n){return n==null?"":typeof n=="object"?JSON.stringify(n):String(ue(n))}function J(n,e,o,s,t,i){if(n.tokens===null)return n.value;const l=/^\{([^{}]+)\}$/.exec(n.tokens);if(l){const r=x(l[1].trim(),e,o,s,t,i);return r===void 0?"":typeof r=="object"&&r!==null?JSON.stringify(r):r}return n.tokens.replace(ke,(r,y)=>Te(x(y.trim(),e,o,s,t,i)))}function I(n,e,o,s,t,i,l){if(!e)return;const r=Math.max(1,Math.round(l));n.strokeStyle=e.color??"#000000",n.lineWidth=(Ae[e.style]??1)*r,n.setLineDash(e.style==="dotted"||e.style==="hair"?[r,r]:/dash/i.test(e.style)?[3*r,2*r]:[]),n.beginPath(),n.moveTo(o,s),n.lineTo(t,i),n.stroke(),n.setLineDash([])}function Oe(n,e,o){const s=[];for(const t of e.split(`
2
+ `)){let i="";for(const l of t.split(/\s+/)){const r=i===""?l:`${i} ${l}`;i!==""&&n.measureText(r).width>o?(s.push(i),i=l):i=r}s.push(i)}return s}function we(n,e,o,s,t,i,l,r,y){const c=s.fontSize*y;if(c<2.5||e==="")return;const a=2*y;n.font=ie(s,c),n.fillStyle=s.color??F.theme.cellInk;const p=s.hAlign??(typeof o=="number"?"right":typeof o=="boolean"?"center":"left");n.textAlign=p==="right"?"right":p==="center"||p==="centerContinuous"?"center":"left";const S=n.textAlign==="right"?t+l-a:n.textAlign==="center"?t+l/2:t+a,C=s.wrap?Oe(n,e,l-a*2):[e],h=c*1.22,O=s.vAlign??"bottom",T=C.length*h;let N=O==="top"?i+c*1.05:O==="center"?i+(r-T)/2+c*.95:i+r-T+c*.95-2*y;for(const $ of C)n.fillText($,S,N),N+=h;n.textAlign="left"}const Fe=/^(?:(?:'(?:[^']|'')+'|[^'!]+)!)?\$?[A-Za-z]{1,3}\$?\d{1,7}(?::\$?[A-Za-z]{1,3}\$?\d{1,7})?$/;function Ne(n){if(n===null||typeof n!="object"||Array.isArray(n))return;const e={};let o=0;for(const[s,t]of Object.entries(n)){if(o++>=ye)break;/^[A-Z]{1,3}\d{1,7}$/.test(s)&&typeof t=="string"&&t.length<=200&&!/[{}]/.test(t)&&(e[s]=t)}return o>0?Object.freeze(e):void 0}class $e extends re{static typeName="range";static sanitize(e){return{source:typeof e.source=="string"&&e.source.length<=300&&Fe.test(e.source)?e.source:"",fit:ae(e.fit,["stretch"]),bindings:Ne(e.bindings),title:he(e.title,200)}}paint(e,o,s,t,i,l){const r=l?.book??F.book,y=l?.sheet??F.sheet,c=r&&this.options.source?B(r,this.options):null;if(c===null){de(e,o,s,t,i);return}let a=o.w/c.W,p=o.h/c.H;this.options.fit!=="stretch"&&(a=Math.min(a,p),p=a);const S=o.x+(o.w-c.W*a)/2,C=o.y+(o.h-c.H*p)/2,h=Math.min(a,p),O=typeof s=="string"?pe(s):void 0,T=O!==null&&typeof O=="object"?O:null,{row:N,col:$}=F,u=(f,m,g)=>Math.round(m+f*g),{copy:d}=c;if(d!==null){for(const f of c.cells)f.tokens!==null&&Re(d.sheet,r,f.r,f.c,J(f,T,r,y,N,$));d.formulas.length>0&&De(c,r)}for(const f of c.cells){const m=u(f.x0,S,a),g=u(f.y0,C,p),b=u(f.x1,S,a)-m,A=u(f.y1,C,p)-g;if(b<=0||A<=0)continue;const{st:M}=f;M.fill&&(e.fillStyle=M.fill,e.fillRect(m,g,b,A));const R=f.isFormula&&d!==null?W(r,d.sheet,f.r,f.c):J(f,T,r,y,N,$);if(e.save(),e.beginPath(),e.rect(m,g,b,A),e.clip(),f.spark&&d!==null&&r.engine){const w=d.lines.find(D=>D.r===f.r&&D.c===f.c);w&&oe(e,r.engine,d.sheet,{group:w.spark.group,source:w.source},f.r,f.c,m,g,b,A,h)}f.type?f.type.paint(e,{x:m,y:g,w:b,h:A},R,M,h,l):R!==null&&R!==""&&we(e,String(fe(R,M)),R,M,m,g,b,A,h),e.restore();const k=M.borders;k&&(I(e,k.t,m,g,m+b,g,h),I(e,k.b,m,g+A,m+b,g+A,h),I(e,k.l,m,g,m,g+A,h),I(e,k.r,m+b,g,m+b,g+A,h),k.d&&k.down&&I(e,k.d,m,g,m+b,g+A,h),k.d&&k.up&&I(e,k.d,m,g+A,m+b,g,h))}}fitWidth(){const e=F.book&&this.options.source?B(F.book,this.options):null;return e===null?0:e.W}}ce($e);export{$e as RangeTemplateCell,B as template};
@@ -0,0 +1,3 @@
1
+ import{child as n,children as C}from"../io/xml-scan.js";import{NS as k,XML_HEAD as F,parseSpPr as G,parseXml as V,toBool as y,writeSpPr as z}from"../objects/dml.js";import{escapeMarkup as $,xmlLiteralText as W}from"../io/xml-escape.js";import{mapShapesOf as Y}from"./geo/map-state.js";import{GEO_PROVIDER as K}from"./geo/geo-xml.js";const Q={treemap:"treemap",sunburst:"sunburst",histogram:"clusteredColumn",pareto:"clusteredColumn",boxWhisker:"boxWhisker",waterfall:"waterfall",funnel:"funnel",map:"regionMap"},he=t=>t==="funnel"?"cx2":t==="map"?"cx4":"cx1",Z={treemap:{pos:"inEnd",seriesName:0,categoryName:1,value:0},sunburst:{pos:"ctr",seriesName:0,categoryName:1,value:0},waterfall:{pos:"outEnd",seriesName:0,categoryName:0,value:1},funnel:{seriesName:0,categoryName:0,value:1}};function ee(t){const e=n(t,"geoCache");return e?n(e,"binary")?.t?.trim()?!0:!!n(e,"clear")?.c?.length:!1}const _=t=>t?`<cx:dataLabels${t.pos?` pos="${$(t.pos)}"`:""}><cx:visibility seriesName="${t.seriesName?1:0}" categoryName="${t.categoryName?1:0}" value="${t.value?1:0}"/></cx:dataLabels>`:"";function te(t){switch(t){case"treemap":return'<cx:layoutPr><cx:parentLabelLayout val="overlapping"/></cx:layoutPr>';case"histogram":return'<cx:layoutPr><cx:binning intervalClosed="r"/></cx:layoutPr>';case"pareto":return"<cx:layoutPr><cx:aggregation/></cx:layoutPr>";case"waterfall":return"<cx:layoutPr><cx:subtotals/></cx:layoutPr>";case"boxWhisker":return'<cx:layoutPr><cx:visibility meanLine="0" meanMarker="1" nonoutliers="0" outliers="1"/><cx:statistics quartileMethod="exclusive"/></cx:layoutPr>';case"map":return'<cx:layoutPr><cx:geography cultureLanguage="en-US" cultureRegion="US" attribution="Powered by Bing"/></cx:layoutPr>';default:return""}}function ae(t){const e=(s,x=0)=>`<cx:axis id="${x}"><cx:catScaling gapWidth="${s}"/><cx:tickLabels/></cx:axis>`,a=(s=1)=>`<cx:axis id="${s}"><cx:valScaling/><cx:majorGridlines/><cx:tickLabels/></cx:axis>`;switch(t){case"histogram":return e(0)+a();case"pareto":return`${e(0)}${a()}<cx:axis id="2"><cx:valScaling max="1" min="0"/><cx:units unit="percentage"/><cx:tickLabels/></cx:axis>`;case"boxWhisker":return e(1)+a();case"waterfall":return e(.5)+a();case"funnel":return e("0.0599999987",1);default:return""}}const se=t=>t==="treemap"||t==="waterfall"||t==="map";function re(t,e){const{type:a}=t,s=t.series[0]??{levels:[],values:[]},x=s.catRef?`<cx:strDim type="cat"><cx:f>${$(e(s.catRef))}</cx:f>${ne(s.levels)}</cx:strDim>`:"",l=`<cx:numDim type="${a==="treemap"||a==="sunburst"?"size":a==="map"?"colorVal":"val"}"><cx:f>${$(e(s.valRef??""))}</cx:f>${a==="map"&&s.nameRef?`<cx:nf>${$(e(s.nameRef))}</cx:nf>`:""}${ie(s)}</cx:numDim>`,d=s.nameRef||s.name?`<cx:tx><cx:txData>${s.nameRef?`<cx:f>${$(e(s.nameRef))}</cx:f>`:""}<cx:v>${W(s.name??"")}</cx:v></cx:txData></cx:tx>`:"",r=S=>`{0000000${S}-0000-4000-8000-00000000000${S}}`,u=a==="pareto"?'<cx:axisId val="1"/>':"",g=a==="pareto"?`<cx:series layoutId="paretoLine" ownerIdx="0" uniqueId="${r(1)}"><cx:axisId val="2"/></cx:series>`:"",I='<cx:title pos="t" align="ctr" overlay="0"/>',T=a==="map"?'<cx:legend pos="r" align="min" overlay="0"/>':se(a)?'<cx:legend pos="t" align="ctr" overlay="0"/>':"";return`${F}<cx:chartSpace xmlns:a="${k.a}" xmlns:r="${k.r}" xmlns:cx="${k.cx}"><cx:chartData><cx:data id="0">${x}${l}</cx:data></cx:chartData><cx:chart>${I}<cx:plotArea><cx:plotAreaRegion><cx:series layoutId="${Q[a]}" uniqueId="${r(0)}">${d}${_(Z[a])}<cx:dataId val="0"/>${te(a)}${u}</cx:series>${g}</cx:plotAreaRegion>${ae(a)}</cx:plotArea>${T}</cx:chart></cx:chartSpace>`}const ne=t=>(t??[]).map(e=>`<cx:lvl ptCount="${e.length}">${e.map((a,s)=>a==null?"":`<cx:pt idx="${s}">${W(a)}</cx:pt>`).join("")}</cx:lvl>`).join(""),ie=t=>`<cx:lvl ptCount="${t.values.length}" formatCode="${$(t.formatCode??"General")}">${t.values.map((e,a)=>e==null?"":`<cx:pt idx="${a}">${e}</cx:pt>`).join("")}</cx:lvl>`,D=["title","plotArea","legend","extLst"],ce=["chartData","chart","spPr","txPr","clrMapOvr","fmtOvrs","printSettings","extLst"],A=["tx","spPr","valueColors","valueColorPositions","dataPt","dataLabels","dataId","layoutPr","axisId","extLst"],le=["tx","spPr","txPr","extLst"];class oe{constructor(e,a){this.doc=e,this.bytes=a,this.edits=[]}replace(e,a,s){this.edits.push({s:e,e:a,text:s})}setChild(e,a,s,x){const c=e.c.filter(u=>u.n===a);if(c.length){this.replace(c[0].s,c[c.length-1].e,s);return}if(!s)return;const l=x.indexOf(a),d=e.c.find(u=>x.indexOf(u.n)>l);if(d){this.replace(d.s,d.s,s);return}if(e.o===e.e){const u=this.doc.raw(e),g=/^<([^\s/>]+)/.exec(u)[1];this.replace(e.s,e.e,`${u.replace(/\s*\/>$/,">")}${s}</${g}>`);return}const r=xe(this.bytes,e.e);this.replace(r,r,s)}setAttr(e,a,s){const x=this.doc.openTag(e),c=new RegExp(`\\s${a}="[^"]*"`),l=s==null?"":` ${a}="${$(s)}"`,d=c.test(x)?x.replace(c,l):x.replace(/\s*(\/?)>$/,`${l}$1>`);this.replace(e.s,e.o,d)}result(){const e=new TextEncoder,a=[];let s=0;for(const l of this.edits.sort((d,r)=>d.s-r.s))l.s<s||(a.push(this.bytes.subarray(s,l.s),e.encode(l.text)),s=l.e);a.push(this.bytes.subarray(s));const x=new Uint8Array(a.reduce((l,d)=>l+d.length,0));let c=0;for(const l of a)x.set(l,c),c+=l.length;return new TextDecoder().decode(x)}}function xe(t,e){let a=e-1;for(;a>=0&&t[a]!==60;)a--;return a}const ue=t=>{const e=n(n(t,"tx"),"rich");return e?C(e,"p").map(a=>a.c.filter(s=>s.n==="r").map(s=>n(s,"t")?.t??"").join("")).join(`
2
+ `):n(n(n(t,"tx"),"txData"),"v")?.t};function J(t){return`<cx:tx><cx:rich><a:bodyPr anchor="ctr" anchorCtr="1"/><a:lstStyle/>${String(t).split(`
3
+ `).map(a=>`<a:p><a:pPr algn="ctr" rtl="0"><a:defRPr/></a:pPr><a:r><a:rPr lang="en-US"/><a:t>${W(a)}</a:t></a:r></a:p>`).join("")}</cx:rich></cx:tx>`}function M(t,e,a){const s=e?G(e,a):void 0;return JSON.stringify(O(s))===JSON.stringify(O(t))}const O=t=>{if(!t)return null;const{raw:e,...a}=t;return Object.fromEntries(Object.entries(a).filter(([,s])=>s!==void 0))},X=t=>t?z(t.raw?t:{...t},"cx:spPr"):"";function q(t,e){const a=new TextEncoder().encode(t),s=V(a),x=s.root,c=n(x,"chart"),l=n(c,"plotArea"),d=n(l,"plotAreaRegion"),r=new oe(s,a),u=n(c,"title");e.title===void 0||e.title===null?u&&r.setChild(c,"title","",D):u?(e.title.text!==void 0&&e.title.text!==ue(u)&&r.setChild(u,"tx",J(e.title.text),le),y(u.a.overlay,!1)!==!!e.title.overlay&&r.setAttr(u,"overlay",e.title.overlay?1:0),e.title.pos&&e.title.pos!==u.a.pos&&r.setAttr(u,"pos",e.title.pos)):r.setChild(c,"title",`<cx:title pos="t" align="ctr" overlay="0">${e.title.text!==void 0?J(e.title.text):""}</cx:title>`,D);const g=n(c,"legend");e.legend?g?((g.a.pos??"t")!==(e.legend.pos??"t")&&r.setAttr(g,"pos",e.legend.pos??"t"),y(g.a.overlay,!1)!==!!e.legend.overlay&&r.setAttr(g,"overlay",e.legend.overlay?1:0)):r.setChild(c,"legend",`<cx:legend pos="${$(e.legend.pos??"t")}" align="ctr" overlay="${e.legend.overlay?1:0}"/>`,D):g&&r.setChild(c,"legend","",D);const I=n(x,"spPr");M(e.spPr,I,s)||r.setChild(x,"spPr",X(e.spPr),ce);const T=!e.source,S=C(n(x,"chartData"),"data");return C(d,"series").forEach((o,E)=>{const i=e.series[E];if(!i)return;const L=S.find(p=>p.a.id===n(o,"dataId")?.a.val);for(const p of L?.c??[]){const f=n(p,"f"),h=p.n==="strDim"?i.catRef:p.n==="numDim"?i.valRef:void 0;f&&h&&f.t!==h&&r.replace(f.s,f.e,`<cx:f>${$(h)}</cx:f>`)}const m=n(n(n(o,"tx"),"txData"),"f");m&&i.nameRef&&m.t!==i.nameRef&&r.replace(m.s,m.e,`<cx:f>${$(i.nameRef)}</cx:f>`);const b=n(o,"spPr");M(i.spPr,b,s)||r.setChild(o,"spPr",X(i.spPr),A);const j=C(o,"dataPt").map(p=>({idx:Number(p.a.idx),spPr:O(G(n(p,"spPr"),s))})),U=(i.dataPts??[]).map(p=>({idx:p.idx,spPr:O(p.spPr)}));if(JSON.stringify(j)!==JSON.stringify(U)){const p=[...i.dataPts??[]].sort((f,h)=>f.idx-h.idx).map(f=>`<cx:dataPt idx="${f.idx}">${X(f.spPr)}</cx:dataPt>`).join("");r.setChild(o,"dataPt",p,A)}const w=n(n(o,"layoutPr"),"geography"),B=e.type==="map"&&E===0?Y(e)?.binary:null;if(w&&B&&!ee(w)){const p=s.openTag(w),f=/^<([^\s/>]+)/.exec(p)[1],h=f.includes(":")?f.slice(0,f.indexOf(":")+1):"";r.replace(w.s,w.e,`${p.replace(/\s*\/?>$/,">")}<${h}geoCache provider="${K}"><${h}binary>${B}</${h}binary></${h}geoCache></${f}>`)}const N=n(o,"dataLabels"),R=n(N,"visibility"),H=N?{pos:N.a.pos,seriesName:y(R?.a.seriesName,!1),categoryName:y(R?.a.categoryName,!1),value:y(R?.a.value,!1)}:null,v=i.dataLabels?{pos:i.dataLabels.pos,seriesName:y(i.dataLabels.visibility?.seriesName,!1),categoryName:y(i.dataLabels.visibility?.categoryName,!1),value:y(i.dataLabels.visibility?.value,!1)}:null;!T&&JSON.stringify(H)!==JSON.stringify(v)&&(v?N&&R?(r.replace(R.s,R.e,`<cx:visibility seriesName="${v.seriesName?1:0}" categoryName="${v.categoryName?1:0}" value="${v.value?1:0}"/>`),N.a.pos!==v.pos&&r.setAttr(N,"pos",v.pos)):r.setChild(o,"dataLabels",_(v),A):r.setChild(o,"dataLabels","",A))}),C(l,"axis").forEach((o,E)=>{const i=e.axes?.[E];if(!i)return;y(o.a.hidden,!1)!==!!i.hidden&&r.setAttr(o,"hidden",i.hidden?1:void 0);const L=n(o,"catScaling");L&&i.gapWidth!==void 0&&L.a.gapWidth!==String(i.gapWidth)&&r.setAttr(L,"gapWidth",i.gapWidth);const m=n(o,"valScaling");if(m){const P=m.a.min===void 0?void 0:Number(m.a.min),j=m.a.max===void 0?void 0:Number(m.a.max);(P!==i.min||j!==i.max)&&r.replace(m.s,m.e,`<cx:valScaling${i.max!==void 0?` max="${i.max}"`:""}${i.min!==void 0?` min="${i.min}"`:""}/>`)}const b=n(o,"majorGridlines");if(!!b!=!!i.majorGridlines)if(b)r.replace(b.s,b.e,"");else{const P=n(o,"tickLabels")??n(o,"numFmt")??n(o,"spPr");P&&r.replace(P.s,P.s,"<cx:majorGridlines/>")}}),r.result()}function $e(t,e=a=>a){return t.source&&!t.dirty?t.source:t.source?q(t.source,t):q(re(t,e),t)}export{Q as CHARTEX_LAYOUT,he as chartExRequires,$e as writeChartExPart};
@@ -0,0 +1 @@
1
+ import{bytesToBase64 as h}from"../../core/base64.js";import{escapeMarkup as o}from"../../io/xml-escape.js";const $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-",P="{E9337A44-BEBE-4D9F-B70C-5C5E7DAFC167}",E="http://schemas.microsoft.com/office/drawing/2014/chartex",m=t=>t<0?-2*t-1:2*t;function Q(t){let e="",i=0,c=0,n=0;const r=t.length/2,g=t[0]===t[t.length-2]&&t[1]===t[t.length-1];for(let a=0;a<=(g?r-1:r);a++){const u=a===r?0:a,x=Math.round(t[u*2]*1e5),y=Math.round(t[u*2+1]*1e5);if(a>0&&a<r&&x===i&&y===c)continue;const l=m(x-i),d=m(y-c);let p=(l+d)*(l+d+1)/2+d;for(;p>=32;)e+=$[32|p%32],p=Math.floor(p/32);e+=$[p],i=x,c=y,n++}return{text:e,count:n}}const s=t=>String(Math.round(t*1e6)/1e6);function R(t){const e=t.polygons.map((g,a)=>{const u=g.map(Q);return`<cx:geoPolygon numPoints="${u.reduce((y,l)=>y+l.count,0)}" polygonId="${o(t.id)}${String(a).padStart(4,"0")}" pcaRings="${u.length},${u.map(y=>y.text).join(",")}"/>`}).join(""),[i,c,n,r]=t.box;return`<cx:geoDataEntityQueryResult><cx:geoDataEntityQuery entityType="${t.type}" entityId="${o(t.id)}"/><cx:geoData entityName="${o(t.name)}" entityId="${o(t.id)}" east="${s(n>180?n-360:n)}" west="${s(i)}" north="${s(r)}" south="${s(c)}"><cx:geoPolygons>${e}</cx:geoPolygons><cx:copyrights><cx:copyright>Natural Earth</cx:copyright></cx:copyrights></cx:geoData></cx:geoDataEntityQueryResult>`}function C(t){const e=Object.entries(t.query).map(([c,n])=>` ${c}="${o(n)}"`).join(""),i=Object.entries(t.address).map(([c,n])=>` ${c}="${o(n)}"`).join("");return`<cx:geoLocationQueryResult><cx:geoLocationQuery${e} entityType="${t.type}"/><cx:geoLocations><cx:geoLocation latitude="${s(t.lat)}" longitude="${s(t.lon)}" entityName="${o(t.name)}" entityType="${t.type}"><cx:address${i}/></cx:geoLocation></cx:geoLocations></cx:geoLocationQueryResult>`}const D=t=>`<cx:geoDataPointToEntityQueryResult><cx:geoDataPointQuery entityType="${t.type}" latitude="${s(t.lat)}" longitude="${s(t.lon)}"/><cx:geoDataPointToEntityQuery entityType="${t.type}" entityId="${o(t.entityId)}"/></cx:geoDataPointToEntityQueryResult>`,T=t=>`<cx:geoChildEntitiesQueryResult><cx:geoChildEntitiesQuery entityId="${o(t.parentId)}"><cx:geoChildTypes>${t.types.map(e=>`<cx:entityType>${e}</cx:entityType>`).join("")}</cx:geoChildTypes></cx:geoChildEntitiesQuery><cx:geoChildEntities>${t.entities.map(e=>`<cx:geoHierarchyEntity entityName="${o(e.name)}" entityId="${o(e.id)}" entityType="${e.type}"/>`).join("")}</cx:geoChildEntities></cx:geoChildEntitiesQueryResult>`;function w({locations:t=[],entities:e=[],children:i=[]}){return`<cx:clear xmlns:cx="${E}"><cx:geoLocationQueryResults>${t.map(C).join("")}</cx:geoLocationQueryResults><cx:geoDataEntityQueryResults>${e.map(R).join("")}</cx:geoDataEntityQueryResults><cx:geoDataPointToEntityQueryResults>${t.map(D).join("")}</cx:geoDataPointToEntityQueryResults><cx:geoChildEntitiesQueryResults>${i.map(T).join("")}</cx:geoChildEntitiesQueryResults></cx:clear>`}async function I(t){const e=new Blob([t]).stream().pipeThrough(new CompressionStream("deflate-raw"));return h(new Uint8Array(await new Response(e).arrayBuffer()))}export{P as GEO_PROVIDER,Q as encodeRing,w as geoCacheXml,I as packGeoCache};
@@ -0,0 +1 @@
1
+ const t=new WeakMap,p=e=>e.series?.[0]??e,s=e=>t.get(p(e));export{p as keyOf,s as mapShapesOf,t as mapStates};
@@ -0,0 +1 @@
1
+ const s={pct5:"8000000008000000",pct10:"8800000088000000",pct20:"8800220088002200",pct25:"8822882288228822",pct30:"AA44AA11AA44AA11",pct40:"AA44AA44AA44AA44",pct50:"AA55AA55AA55AA55",pct60:"EE55BB55EE55BB55",pct70:"EEBBEEBBEEBBEEBB",pct75:"DDFF77FFDDFF77FF",pct80:"FF77FFDDFF77FFDD",pct90:"FF7FFFF7FF7FFFF7",horz:"FF000000FF000000",vert:"8888888888888888",ltHorz:"FF00000000000000",ltVert:"8080808080808080",dkHorz:"FFFF0000FFFF0000",dkVert:"CCCCCCCCCCCCCCCC",narHorz:"FF00FF00FF00FF00",narVert:"AAAAAAAAAAAAAAAA",dashHorz:"F00000000F000000",dashVert:"8080808008080808",cross:"FF888888FF888888",dnDiag:"8040201008040201",upDiag:"0102040810204080",ltDnDiag:"8844221188442211",ltUpDiag:"1122448811224488",dkDnDiag:"CC663399CC663399",dkUpDiag:"3366CC993366CC99",wdDnDiag:"C1E070381C0E0783",wdUpDiag:"83070E1C3870E0C1",dashDnDiag:"8040000008040000",dashUpDiag:"0102000010200000",diagCross:"8142241818244281",smCheck:"CC33CC3333CC33CC",lgCheck:"F0F0F0F00F0F0F0F",smGrid:"FF888888FF888888",lgGrid:"FF80808080808080",dotGrid:"AA00800080008000",smConfetti:"8004402001100208",lgConfetti:"C0C81C0C30B03303",horzBrick:"FF808080FF080808",diagBrick:"8040201018244281",solidDmnd:"10387CFE7C381000",openDmnd:"8142241818244281",dotDmnd:"8000200008000200",plaid:"AA55AA55F0F0F0F0",sphere:"38447EFEFE7E4438",weave:"8850220508442241",divot:"0020100810200000",shingle:"0102841848201008",wave:"0018244281000000",trellis:"FF99FF66FF99FF66",zigZag:"8142241881422418"},p=Object.keys(s),i=new Map,d=(e,n)=>{if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,n);if(typeof document>"u")return null;const F=document.createElement("canvas");return F.width=e,F.height=n,F};function D(e,n,F,a){const c=s[n];if(!c||!e.createPattern)return F;const o=`${n}|${F}|${a}`;let t=i.get(o);if(!t){if(t=d(8,8),!t)return F;const r=t.getContext("2d");a&&(r.fillStyle=a,r.fillRect(0,0,8,8)),r.fillStyle=F;for(let C=0;C<8;C++){const l=parseInt(c.slice(C*2,C*2+2),16);for(let A=0;A<8;A++)l&128>>A&&r.fillRect(A,C,1,1)}i.size>256&&i.clear(),i.set(o,t)}return e.createPattern(t,"repeat")}export{p as PATTERN_NAMES,D as patternStyle};
@@ -0,0 +1 @@
1
+ const E=1048576,W=16384,S=[];function p(n){let e=S[n];if(e!==void 0)return e;e="";for(let t=n+1;t>0;t=Math.floor((t-1)/26))e=String.fromCharCode(65+(t-1)%26)+e;return S[n]=e,e}function a(n){let e=0;for(let t=0;t<n.length;t++){const r=n.charCodeAt(t)&223;if(r<65||r>90)return-1;e=e*26+(r-64)}return e-1}function A(n,e){return p(e)+(n+1)}const M=/^\$?([A-Za-z]{1,3})\$?([1-9][0-9]{0,6})$/;function h(n){const e=M.exec(n.trim());if(!e)return null;const t=a(e[1]),r=Number(e[2])-1;return t<0||t>=16384||r>=1048576?null:{row:r,col:t}}function z(n){const e=n.trim().split(":");if(e.length>2||!e[0])return null;const t=(o,c)=>{const l=/^\$?[A-Za-z]{1,3}$/.test(o)?a(o.replace("$","")):-1,s=/^\$?[A-Za-z]{1,3}$/.test(c)?a(c.replace("$","")):-1;if(l>=0&&s>=0&&l<16384&&s<16384)return{r0:0,c0:Math.min(l,s),r1:1048575,c1:Math.max(l,s)};const i=/^\$?[0-9]+$/.test(o)?Number(o.replace("$",""))-1:-1,f=/^\$?[0-9]+$/.test(c)?Number(c.replace("$",""))-1:-1;return i>=0&&f>=0&&i<1048576&&f<1048576?{r0:Math.min(i,f),c0:0,r1:Math.max(i,f),c1:16383}:null},r=h(e[0]);if(e.length===1)return r?{r0:r.row,c0:r.col,r1:r.row,c1:r.col}:null;const u=h(e[1]);return r&&u?{r0:Math.min(r.row,u.row),c0:Math.min(r.col,u.col),r1:Math.max(r.row,u.row),c1:Math.max(r.col,u.col)}:t(e[0],e[1])}function Z({r0:n,c0:e,r1:t,c1:r}){if(n===0&&t===1048575)return`${p(e)}:${p(r)}`;if(e===0&&r===16383)return`${n+1}:${t+1}`;const u=A(n,e);return n===t&&e===r?u:`${u}:${A(t,r)}`}const C=/[\x00-\x2d\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\x7f]/,d=/[\s\p{C}]/u,R=/^[\p{Nd}.]/u,_=/^([A-Za-z]{1,3})(\p{Nd}+)$/u,g=/^([A-Za-z]{1,3}\p{Nd}+)\.+([A-Za-z]{1,3}\p{Nd}+)$/u,L=/^R(\p{Nd}+)/iu,N=/^R?C(\p{Nd}+)/iu,O=/^[0-9]+$/,x=(n,e)=>!O.test(n)||Number(n)>=1&&Number(n)<=e;function $(n){const e=_.exec(n);return e!==null&&a(e[1])<16384&&x(e[2],1048576)}function m(n,e=!1){const t=String(n??"");if(t===""||C.test(t)||d.test(t)||R.test(t))return!0;const r=t.toUpperCase();if(r==="TRUE"||r==="FALSE"||r==="R"||r==="C"||r==="RC")return!0;if(!e){if($(t))return!0;const c=g.exec(t);if(c&&$(c[1])&&$(c[2]))return!0}const u=L.exec(t);if(u&&x(u[1],1048576))return e||t[u[0].length]!==".";const o=N.exec(t);return o&&x(o[1],16384)?e||t[o[0].length]!==".":!1}function X(n,{book:e=null,last:t=null,r1c1:r=!1,always:u=!1}={}){const o=String(n??""),c=`${e!=null?`[${e}]`:""}${o}${t!=null?`:${t}`:""}`;return u||(o!==""||e===null||e===void 0)&&m(o,r)||t!=null&&m(t,r)||e!=null&&(C.test(e)||d.test(e))?`'${c.replace(/'/g,"''")}'`:c}const F=String.raw`[A-Za-z_\u0080-￿][\w.\u0080-￿]*`,I=(n,e)=>`${X(n,e)}!`;function w(n){const e=String(n).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/'/g,"''");return new RegExp(`(?:'${e}'|(?<![\\p{L}\\p{N}_.'\\]\\u0080-\\u{10FFFF}])${e})!`,"giu")}function q(n,e,t){const r=I(t);return String(n).replace(w(e),()=>r)}function P(n){const e=String(n??"");return e.length>1&&e[0]==="'"&&e[e.length-1]==="'"?e.slice(1,-1).replace(/''/g,"'"):e}export{W as MAX_COLS,E as MAX_ROWS,F as PLAIN_SHEET,A as cellRef,a as colIndex,p as colName,h as parseCellRef,z as parseRangeRef,X as quoteSheetName,Z as rangeRef,q as renameSheetInFormula,m as sheetNeedsQuotes,I as sheetPrefix,w as sheetReferencePattern,P as unquoteSheetName};
package/core/axis.js ADDED
@@ -0,0 +1 @@
1
+ const o=65535;class u{constructor(t,i){this.count=t,this.defaultSize=i,this.sizes=null,this.tree=null,this.hiddenSizes=null,this.autoFlags=null,this.topBit=1<<31-Math.clz32(t),this.delta=0,this.watcher=null,this.version=0}setDefaultSize(t){if(this.tree)throw new Error("Default size must be set before custom sizes");this.defaultSize=t,this.version++}changeDefaultSize(t){if(t!==this.defaultSize){if(this.defaultSize=t,this.version++,this.sizes!==null){this.tree.fill(0);let i=0;for(let s=0;s<this.count;s++){const n=this.sizes[s];n!==65535&&(i+=n-t,this.tree[s+1]+=n-t)}for(let s=1;s<=this.count;s++){const n=s+(s&-s);n<=this.count&&(this.tree[n]+=this.tree[s])}this.delta=i}this.watcher?.axisResized()}}get total(){return this.count*this.defaultSize+this.delta}sizeOf(t){if(this.sizes===null)return this.defaultSize;const i=this.sizes[t];return i===65535||i===void 0?this.defaultSize:i}isCustom(t){return this.sizes!==null&&t<this.count&&this.sizes[t]!==65535}isHidden(t){return this.hiddenSizes!==null&&this.hiddenSizes.has(t)}isAuto(t){return this.autoFlags!==null&&this.autoFlags[t]===1}setSize(t,i,s=!1){s&&this.autoFlags===null&&(this.autoFlags=new Uint8Array(this.count)),this.autoFlags!==null&&(this.autoFlags[t]=s?1:0),i=Math.max(0,Math.min(65534,Math.round(i))),this.sizes===null&&(this.sizes=new Uint16Array(this.count).fill(65535),this.tree=new Int32Array(this.count+1));const n=this.sizeOf(t);this.sizes[t]=i;const h=i-n;if(h!==0){this.version++,this.delta+=h;for(let e=t+1;e<=this.count;e+=e&-e)this.tree[e]+=h;this.watcher?.axisResized()}}setHidden(t,i){if(i){if(this.isHidden(t))return;this.hiddenSizes===null&&(this.hiddenSizes=new Map),this.hiddenSizes.set(t,this.isCustom(t)?this.sizeOf(t):-1),this.setSize(t,0),this.watcher?.axisHiddenChanged()}else if(this.isHidden(t)){const s=this.hiddenSizes.get(t);this.hiddenSizes.delete(t),this.setSize(t,s<=0?this.defaultSize:s),this.watcher?.axisHiddenChanged()}}offsetOf(t){let i=t*this.defaultSize;if(this.tree!==null)for(let s=Math.min(t,this.count);s>0;s-=s&-s)i+=this.tree[s];return i}indexAt(t){if(t<=0&&this.tree===null)return 0;if(this.tree===null){const h=Math.floor(t/this.defaultSize);return h>=this.count?this.count-1:h}let i=0,s=t;const n=this.defaultSize;for(let h=this.topBit;h>0;h>>=1){const e=i+h;if(e<=this.count){const l=h*n+this.tree[e];l<=s&&(i=e,s-=l)}}return i>=this.count?this.count-1:i}reshaped(t=this.count,i=this.defaultSize){const s=new u(t,i);if(this.sizes!==null){const n=Math.min(t,this.count);for(let h=0;h<n;h++)this.sizes[h]!==65535&&s.setSize(h,this.sizes[h],this.isAuto(h))}if(this.hiddenSizes!==null)for(const[n,h]of this.hiddenSizes)n<t&&(s.hiddenSizes??=new Map,s.hiddenSizes.set(n,h));return s}shifted(t,i){const s=new u(this.count,this.defaultSize);if(this.sizes===null)return s;const n=new Uint16Array(this.count).fill(65535);i>0?(n.set(this.sizes.subarray(0,t)),n.set(this.sizes.subarray(t,this.count-i),t+i)):(n.set(this.sizes.subarray(0,t)),n.set(this.sizes.subarray(t-i),t)),s.sizes=n,s.tree=new Int32Array(this.count+1);let h=0;for(let e=0;e<this.count;e++){const l=n[e];if(l===65535)continue;const r=l-this.defaultSize;h+=r,s.tree[e+1]+=r}for(let e=1;e<=this.count;e++){const l=e+(e&-e);l<=this.count&&(s.tree[l]+=s.tree[e])}if(s.delta=h,this.hiddenSizes!==null){s.hiddenSizes=new Map;for(const[e,l]of this.hiddenSizes)e<t?s.hiddenSizes.set(e,l):(i>0||e>=t-i)&&s.hiddenSizes.set(e+i,l)}if(this.autoFlags!==null){const e=new Uint8Array(this.count);i>0?(e.set(this.autoFlags.subarray(0,t)),e.set(this.autoFlags.subarray(t,this.count-i),t+i)):(e.set(this.autoFlags.subarray(0,t)),e.set(this.autoFlags.subarray(t-i),t)),s.autoFlags=e}return s}*customEntries(){if(this.sizes!==null)for(let t=0;t<this.count;t++)this.sizes[t]!==65535&&(yield t)}}export{u as Axis};
package/core/base64.js ADDED
@@ -0,0 +1 @@
1
+ const o=32768;function a(r){const e=ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);let n="";for(let t=0;t<e.length;t+=32768)n+=String.fromCharCode.apply(null,e.subarray(t,t+32768));return btoa(n)}function f(r){const e=atob(r),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}export{f as base64ToBytes,a as bytesToBase64};
@@ -0,0 +1 @@
1
+ import{FORMULA as x,KIND_MASK as M,STR as y}from"./sheet.js";const i=16384;class m{constructor(){this.cells=new Map,this.rows={inserted:[],deleted:[]},this.cols={inserted:[],deleted:[]}}}const v=(s,t)=>(s?.f??s?.sf??null)===(t?.f??t?.sf??null);function T(s,t,n){const{cells:e}=t.changes;for(let c=0;c<n.count;c++){const a=n.rows[c],o=n.cols[c],r=a*i+o;let l=e.get(r);l===void 0&&(l={kind:n.kinds[c],value:n.values[c],formula:n.kinds[c]&x?n.formulas?.get(c):void 0},e.set(r,l));const u=t.kind(a,o)&-97;u===l.kind&&t.value(a,o)===l.value&&(!(u&x)||v(t.formula(a,o),l.formula))&&e.delete(r)}}function A(s){return s.changes===null&&(s.changes=new m),s.changes}function I(s){s.changes=null}function C(s,t){const n=[];for(const e of s){const c=e.at+e.count;if(t.n>0)e.at>=t.at?n.push({at:e.at+t.n,count:e.count}):c>t.at?n.push({at:e.at,count:e.count+t.n}):n.push(e);else{const a=t.at-t.n;if(c<=t.at)n.push(e);else if(e.at>=a)n.push({at:e.at+t.n,count:e.count});else{const o=Math.max(0,t.at-e.at)+Math.max(0,c-a);o>0&&n.push({at:Math.min(e.at,t.at),count:o})}}}return n}function K(s,t,n){const e=s.changes;if(e===null)return!1;for(const c of(t==="row"?e.rows:e.cols).inserted)if(n>=c.at&&n<c.at+c.count)return!0;return!1}function R(s,t){const n=s.changes;if(n===null)return null;const e={cells:n.cells,rows:n.rows,cols:n.cols},c=u=>()=>{const k={cells:n.cells,rows:n.rows,cols:n.cols};return Object.assign(n,u),c(k)},a=t.axis==="row"?"rows":"cols",o=n[a],r=C(o.inserted,t);n[a]=t.n>0?{inserted:[...r,{at:t.at,count:t.n}],deleted:o.deleted}:{inserted:r,deleted:[...o.deleted,{at:t.at,count:-t.n}]};const l=new Map;for(const[u,k]of n.cells){let d=Math.floor(u/i),h=u-d*i;const f=t.axis==="row"?d:h;let w=f;if(t.n>0)f>=t.at&&(w=f+t.n);else if(f>=t.at-t.n)w=f+t.n;else if(f>=t.at)continue;t.axis==="row"?d=w:h=w,l.set(d*i+h,k)}return n.cells=l,c(e)}const g=(s,t,n)=>!s||t>=s.r0&&t<=s.r1&&n>=s.c0&&n<=s.c1;function S(s,t,n=null){const e=t.changes;if(e===null)return[];const c=(o,r)=>{const l=o&M;return l===0?null:l===y?s.strings.get(r):l===3?r!==0:r},a=[];for(const[o,r]of e.cells){const l=Math.floor(o/i),u=o-l*i;g(n,l,u)&&a.push({row:l,col:u,oldValue:c(r.kind,r.value),newValue:c(t.kind(l,u),t.value(l,u))})}return a.sort((o,r)=>o.row-r.row||o.col-r.col)}const E=(s,t,n)=>s.changes!==null&&s.changes.cells.has(t*i+n);function F(s,t=null){const n=s.changes;if(n!==null){if(t===null){s.changes=new m;return}for(const e of[...n.cells.keys()]){const c=Math.floor(e/i);g(t,c,e-c*i)&&n.cells.delete(e)}}}export{m as ChangeTracker,F as clearDirty,S as getDirtyCells,E as isDirtyCell,K as isInsertedAxis,T as noteChanges,R as noteStructure,A as startTracking,I as stopTracking};
package/core/color.js ADDED
@@ -0,0 +1 @@
1
+ const d=s=>{const n=parseInt(String(s).replace("#",""),16);return[n>>16,n>>8&255,n&255]},f=s=>`#${s.map(n=>n.toString(16).padStart(2,"0")).join("").toUpperCase()}`;function g(s,n){const o=r=>Math.round(n>=0?r+(255-r)*n:r*(1+n));return f(d(s).map(o))}function M(s,n){let[o,r,a]=d(s).map(t=>t/255);const i=Math.max(o,r,a),c=Math.min(o,r,a);let m=0,h=0,e=(i+c)/2;if(i!==c){const t=i-c;h=e>.5?t/(2-i-c):t/(i+c),m=i===o?(r-a)/t+(r<a?6:0):i===r?(a-o)/t+2:(o-r)/t+4,m/=6}e=n<0?e*(1+n):e+(1-e)*n;const x=(t,u,p)=>{const l=p<0?p+1:p>1?p-1:p;return l<1/6?t+(u-t)*6*l:l<1/2?u:l<2/3?t+(u-t)*(2/3-l)*6:t};if(h===0)o=r=a=e;else{const t=e<.5?e*(1+h):e+h-e*h,u=2*e-t;o=x(u,t,m+1/3),r=x(u,t,m),a=x(u,t,m-1/3)}return f([o,r,a].map(t=>Math.round(t*255)))}export{M as shade,g as tint};
@@ -0,0 +1 @@
1
+ import{parseRangeRef as S}from"./address.js";import{BOOL as x,ERRORS as A,KIND_MASK as C,NUM as h,STR as R}from"./sheet.js";import{formatGeneral as O,getFormatter as T}from"./numfmt.js";function q(l){return l.split(/\s+/).map(S).filter(Boolean)}import{CondFormats as U,cfEffectAt as W,evaluatorOf as b,iconAt as D}from"../cells/cf-engine.js";function M(l,n,e){const a=l.validations;if(!a)return null;for(const t of a)if(t._ranges===void 0&&(t._ranges=q(t.sqref)),t._ranges.some(s=>n>=s.r0&&n<=s.r1&&e>=s.c0&&e<=s.c1))return t;return null}function E(l,n,e,a,t){const s=e.formula1.trim();if(s.startsWith('"'))return s.slice(1,-1).split(",").map(o=>o.trim());const p=l.engine;let u=p.template(s,a,t).fn(a,t,n);return u&&u.sheet&&(u=p.toArr(u)),u&&u.data?u.data.filter(o=>o!==null):[]}function _(l,n,e,a,t){return L(l,n,e,a,t).map(s=>s.text)}function L(l,n,e,a,t){const s=e.formula1.trim(),p=()=>E(l,n,e,a,t).map(r=>({text:String(r),value:r}));if(s.startsWith('"'))return p();const m=l.engine.template(s,a,t).fn(a,t,n);if(!m||!m.sheet)return p();const u=[],o=m.sheet;for(let r=m.r0;r<=Math.min(m.r1,o.maxRow);r++)for(let f=m.c0;f<=Math.min(m.c1,o.maxCol);f++){const g=o.kind(r,f)&C;if(g===0)continue;const i=o.value(r,f),c=l.styles.get(o.style(r,f)).numFmt;g===h?u.push({text:c==="General"?O(i):T(c).number(i).replace(/\u0001.?\u0001/g," ").trim(),value:i}):g===R?u.push({text:l.strings.get(i),value:l.strings.get(i)}):g===x?u.push({text:i?"TRUE":"FALSE",value:i!==0}):u.push({text:A[i]??"#N/A",value:null})}return u}function I(l,n,e,a,t,s,p,m){if(e.type==="none"||e.type===void 0)return!0;if(s===0)return e.allowBlank;const u=l.engine,o=i=>{if(!i)return null;const c=u.template(i,a,t),y=u.legacy;u.legacy=!0;try{const d=c.fn(a,t,n);return d&&d.sheet?u.refAuto(d,a,t):d}finally{u.legacy=y}};if(e.type==="list"){const i=E(l,n,e,a,t);return s===h&&i.some(c=>(typeof c=="number"?c:Number(c))===p)?!0:i.map(c=>String(c).toLowerCase()).includes(String(m).toLowerCase())}if(e.type==="custom"){const i=[n.kind(a,t),n.value(a,t),n.maxRow,n.maxCol],c=s===R?l.strings.add(String(m)):s===x?p?1:0:p;n.setCell(a,t,s,c);try{const y=o(e.formula1);return y===!0||typeof y=="number"&&y!==0}finally{n.setCell(a,t,i[0],i[1]),n.maxRow=i[2],n.maxCol=i[3]}}let r;if(e.type==="textLength")r=String(m).length;else if(s!==h||(r=p,e.type==="whole"&&!Number.isInteger(r)))return!1;const f=o(e.formula1),g=o(e.formula2);switch(e.operator){case"notBetween":return r<f||r>g;case"equal":return r===f;case"notEqual":return r!==f;case"greaterThan":return r>f;case"lessThan":return r<f;case"greaterThanOrEqual":return r>=f;case"lessThanOrEqual":return r<=f;default:return r>=f&&r<=g}}export{x as BOOL,U as CondFormats,R as STR,W as cfEffectAt,b as evaluatorOf,D as iconAt,L as listEntries,_ as listItems,E as listValues,q as rangesOf,I as validateEntry,M as validationAt};
@@ -0,0 +1 @@
1
+ import{colName as h,parseRangeRef as m,quoteSheetName as v,rangeRef as w}from"./address.js";import{escapeMarkup as $,xmlAttr as V,xmlText as b}from"../io/xml-escape.js";import{unescapeOoxml as N,unescapeXml as A,unescapeXstring as H}from"../io/xml-scan.js";function y(){const t=globalThis.crypto?.getRandomValues?crypto.getRandomValues(new Uint8Array(16)):Uint8Array.from({length:16},()=>Math.floor(Math.random()*256));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const i=[...t].map(n=>n.toString(16).padStart(2,"0").toUpperCase()).join("");return`{${i.slice(0,8)}-${i.slice(8,12)}-${i.slice(12,16)}-${i.slice(16,20)}-${i.slice(20)}}`}const p=t=>t.hiddenSizes?[...t.hiddenSizes.keys()].sort((i,n)=>i-n):[];function I(t,{print:i,rowCol:n},e){const r=t.filteredRows??new Set;return{sheet:t,hiddenRows:n?p(t.rows).filter(o=>!r.has(o)):null,hiddenCols:n?p(t.cols):null,filter:n&&t.autoFilter?{...t.autoFilter,columns:new Map(t.autoFilter.columns),filtered:[...r]}:null,zoom:t.zoom||1,showGridlines:t.showGridlines!==!1,frozen:{rows:t.frozenRows||0,cols:t.frozenCols||0},selection:e?{row:e.row,col:e.col,sqref:e.ranges.map(w).join(" ")}:t.viewSelection??null,pageSetup:i&&t.pageSetup?structuredClone(t.pageSetup):null}}function G(t,i,{print:n=!0,rowCol:e=!0}={},r=null){return{name:i,guid:y(),print:n,rowCol:e,activeSheet:t.activeSheet,sheets:t.sheets.filter(o=>!o.isChartSheet).map(o=>I(o,{print:n,rowCol:e},o===t.sheet?r:null))}}function P(t,i){for(const n of i.sheets){const{sheet:e}=n;if(t.sheets.includes(e)){if(i.rowCol&&n.hiddenRows){const r=new Set(n.hiddenRows),o=e.filteredRows??new Set;for(const s of p(e.rows))!r.has(s)&&!o.has(s)&&e.rows.setHidden(s,!1);for(const s of r)e.rows.setHidden(s,!0);const l=new Set(n.hiddenCols??[]);for(const s of p(e.cols))l.has(s)||e.cols.setHidden(s,!1);for(const s of l)e.cols.setHidden(s,!0);if(e.colsChanged=!0,n.filter){for(const s of o)e.rows.setHidden(s,!1);e.autoFilter={...n.filter,columns:new Map(n.filter.columns)},delete e.autoFilter.filtered,e.filteredRows=new Set(n.filter.filtered);for(const s of e.filteredRows)e.rows.setHidden(s,!0);e.filterChanged=!0}}e.zoom=n.zoom,e.showGridlines=n.showGridlines,e.frozenRows=n.frozen.rows,e.frozenCols=n.frozen.cols,e.viewChanged=!0,i.print&&n.pageSetup&&(e.pageSetup=structuredClone(n.pageSetup),e.pageSetupChanged=!0),n.selection&&(e.viewSelection=n.selection),e.revision++}}return i.activeSheet>=0&&i.activeSheet<t.sheets.length&&(t.activeSheet=i.activeSheet),t.dirty=!0,t.sheet.viewSelection??null}const f=t=>`Z_${t.replace(/[{}]/g,"").replace(/-/g,"_")}_`;function C(t,i){const n=[];for(let e=0;e<t.length;e++){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(i?[`$${h(t[e])}`,`$${h(t[r])}`]:[`$${t[e]+1}`,`$${t[r]+1}`]),e=r}return n}function M(t){const i=[];for(const n of t.customViews??[])for(const e of n.sheets){const r=t.sheets.indexOf(e.sheet);if(r<0)continue;const o=v(e.sheet.name);e.hiddenRows?.length&&i.push({name:`${f(n.guid)}.wvu.Rows`,localSheetId:r,text:C(e.hiddenRows,!1).map(([l,s])=>`${o}!${l}:${s}`).join(",")}),e.hiddenCols?.length&&i.push({name:`${f(n.guid)}.wvu.Cols`,localSheetId:r,text:C(e.hiddenCols,!0).map(([l,s])=>`${o}!${l}:${s}`).join(",")}),n.print&&e.pageSetup?.printAreas?.length&&i.push({name:`${f(n.guid)}.wvu.PrintArea`,localSheetId:r,text:e.pageSetup.printAreas.map(l=>`${o}!${w(l).replace(/([A-Z]+)(\d+)/g,"$$$1$$$2")}`).join(",")}),e.filter&&i.push({name:`${f(n.guid)}.wvu.FilterData`,localSheetId:r,text:`${o}!${w(e.filter).replace(/([A-Z]+)(\d+)/g,"$$$1$$$2")}`})}return i}function q(t){const i=t.customViews??[];return i.length===0?"":`<customWorkbookViews>${i.map(e=>`<customWorkbookView name="${V(e.name)}" guid="${e.guid}"${e.print?"":' includePrintSettings="0"'}${e.rowCol?"":' includeHiddenRowCol="0"'} windowWidth="${e.windowWidth??1440}" windowHeight="${e.windowHeight??900}" activeSheetId="${$(t.sheets[e.activeSheet]?.name??"")}"/>`).join("")}</customWorkbookViews>`}function k(t){if(!t)return"";const i=t.margins??{},n=(l,s)=>Number.isFinite(l)?l/72:s,e=`<pageMargins left="${n(i.left,.7)}" right="${n(i.right,.7)}" top="${n(i.top,.75)}" bottom="${n(i.bottom,.75)}" header="${n(i.header,.3)}" footer="${n(i.footer,.3)}"/>`,r=`<pageSetup${t.paperSize?` paperSize="${t.paperSize}"`:""}${t.scale&&t.scale!==100?` scale="${t.scale}"`:""}${t.orientation?` orientation="${t.orientation}"`:""}/>`,o=t.header?.odd||t.footer?.odd?`<headerFooter>${t.header?.odd?`<oddHeader>${b(t.header.odd)}</oddHeader>`:""}${t.footer?.odd?`<oddFooter>${b(t.footer.odd)}</oddFooter>`:""}</headerFooter>`:"";return e+r+o}function L(t,i,n=()=>""){const e=[];for(const r of t.customViews??[]){const o=r.sheets.find(a=>a.sheet===i);if(!o)continue;const l=o.frozen.rows||o.frozen.cols?`<pane${o.frozen.cols?` xSplit="${o.frozen.cols}"`:""}${o.frozen.rows?` ySplit="${o.frozen.rows}"`:""} topLeftCell="${h(o.frozen.cols)}${o.frozen.rows+1}" activePane="${o.frozen.rows&&o.frozen.cols?"bottomRight":o.frozen.rows?"bottomLeft":"topRight"}" state="frozen"/>`:"",s=o.selection?`<selection${l?` pane="${o.frozen.rows&&o.frozen.cols?"bottomRight":o.frozen.rows?"bottomLeft":"topRight"}"`:""} activeCell="${h(o.selection.col)}${o.selection.row+1}" sqref="${$(o.selection.sqref)}"/>`:"",d=`guid="${r.guid}"${o.zoom!==1?` scale="${Math.round(o.zoom*100)}"`:""}${o.showGridlines?"":' showGridLines="0"'}${r.print&&o.pageSetup?.printAreas?.length?' printArea="1"':""}${o.filter?' filter="1" showAutoFilter="1"':""}${o.hiddenRows?.length?' hiddenRows="1"':""}${o.hiddenCols?.length?' hiddenColumns="1"':""}`;e.push(`<customSheetView ${d}>${l}${s}${r.print?k(o.pageSetup):""}${o.filter?n(o.filter):""}</customSheetView>`)}return e.length?`<customSheetViews>${e.join("")}</customSheetViews>`:""}function Z(t,i,n){let e=t.replace(/<customWorkbookViews\b[\s\S]*?<\/customWorkbookViews>|<customWorkbookViews\b[^>]*\/>/,"");if(e=e.replace(/<definedName\b[^>]*name="Z_[^"]*\.wvu\.[A-Za-z]+"[^>]*>[\s\S]*?<\/definedName>/g,""),e=e.replace(/<definedNames>\s*<\/definedNames>/,""),i){i=i.replace(/\u0001([^\u0001]*)\u0001/g,(o,l)=>{const s=A(l),d=[...e.matchAll(/<sheet\b[^>]*>/g)].map(a=>a[0]).find(a=>{const c=/\bname="([^"]*)"/.exec(a)?.[1];return c!==void 0&&H(c)===s});return/\bsheetId="(\d+)"/.exec(d??"")?.[1]??"1"});const r=/<(?:pivotCaches|smartTagPr|smartTagTypes|webPublishing|fileRecoveryPr|webPublishObjects|extLst)\b|<\/workbook>/.exec(e);e=e.slice(0,r.index)+i+e.slice(r.index)}if(n.length){const r=n.map(o=>`<definedName name="${o.name}" hidden="1" localSheetId="${o.localSheetId}">${$(o.text)}</definedName>`).join("");if(/<definedNames>/.test(e))e=e.replace("<definedNames>",`<definedNames>${r}`);else{const o=/<calcPr\b|<oleSize\b|<customWorkbookViews\b|<pivotCaches\b|<extLst\b|<\/workbook>/.exec(e);e=`${e.slice(0,o.index)}<definedNames>${r}</definedNames>${e.slice(o.index)}`}}return e}function R(t){const i=[],n=[];for(const e of String(t).split(",")){const r=e.slice(e.lastIndexOf("!")+1).replace(/\$/g,"");let o=/^(\d+):(\d+)$/.exec(r);if(o)for(let l=Number(o[1])-1;l<=Number(o[2])-1;l++)i.push(l);if(o=/^([A-Z]+):([A-Z]+)$/.exec(r),o){const l=m(`${o[1]}1`).c0,s=m(`${o[2]}1`).c0;for(let d=l;d<=s;d++)n.push(d)}}return{rows:i,cols:n}}function O(t,i,n,e=[]){i?.length&&(t.customViews=i.map(r=>{const o=f(r.guid),l=Math.max(0,e.findIndex(d=>String(d.sheetId)===String(r.activeSheetId))),s=[];return t.sheets.forEach((d,a)=>{const c=(d.fileSheetViews??[]).find(u=>u.guid===r.guid);if(!c)return;const g=u=>(n??[]).find(z=>z.localSheetId===a&&z.name===`${o}.wvu.${u}`),S=g("Rows"),x=g("Cols");s.push({sheet:d,hiddenRows:S?R(S.text).rows:[],hiddenCols:x?R(x.text).cols:[],filter:null,zoom:c.scale?Number(c.scale)/100:1,showGridlines:c.showGridLines!=="0",frozen:{rows:c.ySplit?Number(c.ySplit):0,cols:c.xSplit?Number(c.xSplit):0},selection:c.activeCell?(()=>{const u=m(c.activeCell);return u?{row:u.r0,col:u.c0,sqref:c.sqref??c.activeCell}:null})():null,pageSetup:null})}),{name:N(r.name),guid:r.guid,print:r.includePrintSettings!=="0",rowCol:r.includeHiddenRowCol!=="0",activeSheet:l,sheets:s,windowWidth:r.windowWidth,windowHeight:r.windowHeight}}))}export{O as adoptCustomViews,P as applyView,G as captureView,L as customSheetViewsXml,q as customWorkbookViewsXml,y as newGuid,Z as patchCustomViews,M as viewNameEntries};
@@ -0,0 +1 @@
1
+ import{t}from"../i18n/index.js";const r=()=>t("name|Book"),l=()=>`${r()}1`,p=()=>t("name|Sheet"),x=()=>t("name|Table"),s=()=>t("name|Column"),S=()=>t("name|Total"),$=()=>t("name|PivotTable"),b=()=>t("name|Chart");function h(o,m,a=1,n=""){let e=a;for(;m(`${o}${n}${e}`);)e++;return`${o}${n}${e}`}export{r as bookStem,b as chartStem,s as columnStem,l as newBookName,h as nextName,$ as pivotTableStem,p as sheetStem,x as tableStem,S as totalLabel};
@@ -0,0 +1 @@
1
+ import{colIndex as F,colName as z,MAX_COLS as v,MAX_ROWS as O}from"./address.js";const U=/"(?:[^"]|"")*"|'(?:[^']|'')*'|(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})(?![A-Za-z0-9_(.])|(\$?)(\d{1,7}):(\$?)(\d{1,7})(?![A-Za-z0-9_(.])|(\$?)([A-Za-z]{1,3}):(\$?)([A-Za-z]{1,3})(?![A-Za-z0-9_(.])/g;function Z($,e,u){if(e)return null;const n=F($)+u;return n<0||n>=v?-1:n}function l($,e,u){if(e)return null;const n=$-1+u;return n<0||n>=O?-1:n}function M($,e,u){return e===0&&u===0?$:$.replace(U,(n,m,o,_,p,N,f,a,C,R,A,d,E,i,c)=>{if(o!==void 0){const s=i>0?c[i-1]:"";if(/[A-Za-z0-9_.]/.test(s)||F(o)>=v||Number(p)>O||Number(p)===0)return n;const r=Z(o,m==="$",u),t=l(Number(p),_==="$",e);return r===-1||t===-1?"#REF!":`${m}${r===null?o.toUpperCase():z(r)}${_}${t===null?p:t+1}`}if(f!==void 0){const s=i>0?c[i-1]:"";if(/[A-Za-z0-9_.]/.test(s))return n;const r=l(Number(f),N==="$",e),t=l(Number(C),a==="$",e);return r===-1||t===-1?"#REF!":`${N}${r===null?f:r+1}:${a}${t===null?C:t+1}`}if(A!==void 0){const s=i>0?c[i-1]:"";if(/[A-Za-z0-9_.]/.test(s))return n;const r=Z(A,R==="$",u),t=Z(E,d==="$",u);return r===-1||t===-1?"#REF!":`${R}${r===null?A.toUpperCase():z(r)}:${d}${t===null?E.toUpperCase():z(t)}`}return n})}export{M as translateFormula};
@@ -0,0 +1 @@
1
+ import{MAX_COLS as d}from"./address.js";import{CHUNK_BITS as c,CHUNK_MASK as a,CHUNK_SIZE as m}from"./sheet.js";class p{constructor(){this.ids=new Int32Array(m),this.n=0}}class I{constructor(){this.columns=[],this.infos=[void 0],this.uses=new Int32Array(64),this.free=[],this.size=0,this.lastInfo=void 0,this.lastId=0}static from(s){const t=new I;if(s)for(const[e,n]of s)t.set(e,n);return t}at(s,t){const e=this.columns[t];if(e===void 0)return;const n=e[s>>>c];if(n===void 0)return;const i=n.ids[s&a];return i===0?void 0:this.infos[i]}put(s,t,e){if(e==null){this.remove(s,t);return}let n=this.columns[t];n===void 0&&(n=[],this.columns[t]=n);const i=s>>>c;let f=n[i];f===void 0&&(f=new p,n[i]=f);const o=s&a,{ids:r}=f,{infos:h}=this,u=r[o];if(u!==0&&h[u]===e)return;let l;e===this.lastInfo&&h[this.lastId]===e?l=this.lastId:o>0&&r[o-1]!==0&&h[r[o-1]]===e?l=r[o-1]:l=this._add(e),this.lastInfo=e,this.lastId=l,r[o]=l,this.uses[l]++,u===0?(f.n++,this.size++):this._release(u)}remove(s,t){const e=this.columns[t];if(e===void 0)return!1;const n=s>>>c,i=e[n];if(i===void 0)return!1;const f=s&a,o=i.ids[f];return o===0?!1:(i.ids[f]=0,this._release(o),this.size--,--i.n===0&&(e[n]=void 0),!0)}_add(s){const t=this.free.length>0?this.free.pop():this.infos.length;if(this.infos[t]=s,t>=this.uses.length){const e=new Int32Array(this.uses.length*2);e.set(this.uses),this.uses=e}return this.uses[t]=0,t}_release(s){--this.uses[s]===0&&(this.infos[s]=void 0,this.free.push(s),this.lastId===s&&(this.lastInfo=void 0,this.lastId=0))}forEachCell(s){const{columns:t}=this;for(let e=0;e<t.length;e++){const n=t[e];if(n!==void 0)for(let i=0;i<n.length;i++){const f=n[i];if(f===void 0)continue;const{ids:o}=f,r=i<<c;for(let h=0;h<m;h++){const u=o[h];u!==0&&s(r+h,e,this.infos[u])}}}}*descriptors(){const{infos:s}=this;for(let t=1;t<s.length;t++)s[t]!==void 0&&(yield s[t])}copy(){const s=new I;return s.columns=this.columns.map(t=>t.map(e=>{if(e===void 0)return;const n=new p;return n.ids.set(e.ids),n.n=e.n,n})),s.infos=this.infos.slice(),s.uses=this.uses.slice(),s.free=this.free.slice(),s.size=this.size,s}get(s){const t=Math.floor(s/d);return this.at(t,s-t*d)}has(s){return this.get(s)!==void 0}set(s,t){const e=Math.floor(s/d);return this.put(e,s-e*d,t),this}delete(s){const t=Math.floor(s/d);return this.remove(t,s-t*d)}clear(){this.columns=[],this.infos=[void 0],this.uses=new Int32Array(64),this.free=[],this.size=0,this.lastInfo=void 0,this.lastId=0}*entries(){const{columns:s}=this;for(let t=0;t<s.length;t++){const e=s[t];if(e!==void 0)for(let n=0;n<e.length;n++){const i=e[n];if(i===void 0)continue;const f=n<<c;for(let o=0;o<m;o++){const r=i.ids[o];r!==0&&(yield[(f+o)*d+t,this.infos[r]])}}}}*keys(){for(const[s]of this.entries())yield s}*values(){for(const[,s]of this.entries())yield s}forEach(s,t){for(const[e,n]of this.entries())s.call(t,n,e,this)}[Symbol.iterator](){return this.entries()}}export{I as FormulaStore};
package/core/input.js ADDED
@@ -0,0 +1 @@
1
+ import{BOOL as g,EMPTY as x,FORMULA as w,NUM as s,STR as k}from"./sheet.js";import{partsToSerial as d}from"./numfmt.js";const A=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],C=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/,O=/^[+-]?\d{1,3}(?:,\d{3})+(?:\.\d*)?$/,P=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)[eE][+-]?\d+$/,U=/^[+-]?(?:\d{1,3}(?:,\d{3})+|\d+)?(?:\.\d*)?%$/,y="(?:\\d{1,3}(?:,\\d{3})+|\\d+)(?:\\.\\d*)?|\\.\\d+",D=/^([+-]?)[€£¥]\s?([+-]?(?:\d{1,3}(?:,\d{3})+|\d+)(?:\.\d*)?)$/;let $={symbol:"$",symbolFirst:!0};function z(r){$={symbol:r.symbol,symbolFirst:r.symbolFirst}}const I=r=>`"${r.replace(/"/g,"")}"`;function L(r){const e=r?"#,##0.00":"#,##0",n=I($.symbol);return $.symbolFirst?`${n}${e}_);[Red]\\(${n}${e}\\)`:`${e} ${n}`}function S(r,e){return e===2?r%4===0&&(r%100!==0||r%400===0||r===1900)?29:28:[4,6,9,11].includes(e)?30:31}const i=r=>r.length<=2?(Number(r)<30?2e3:1900)+Number(r):Number(r),o=(r,e,n)=>r>=1900&&r<=9999&&e>=1&&e<=12&&n>=1&&n<=S(r,e),E=r=>{const e=r.toLowerCase().replace(/\.$/,"");if(e.length<3)return 0;const n=A.indexOf(e.slice(0,3));return n<0?0:new Intl.DateTimeFormat("en-US",{month:"long",timeZone:"UTC"}).format(new Date(Date.UTC(2024,n,15))).toLowerCase().startsWith(e)?n+1:0},b=()=>new Date().getFullYear(),p=(r,e,n)=>r===1900&&e===2&&n===29?60:d(r,e,n);function M(r){let e;if(e=/^(\d{1,2})([/-])(\d{1,2})\2(\d{1,4})$/.exec(r)){const[n,t,u]=[Number(e[1]),Number(e[3]),i(e[4])];return o(u,n,t)?{value:p(u,n,t),format:"m/d/yyyy"}:null}if(e=/^(\d{4})([/-])(\d{1,2})\2(\d{1,2})$/.exec(r)){const[n,t,u]=[Number(e[1]),Number(e[3]),Number(e[4])];return o(n,t,u)?{value:p(n,t,u),format:"m/d/yyyy"}:null}if(e=/^(\d{1,2})[/-](\d{1,2})$/.exec(r)){const[n,t,u]=[Number(e[1]),Number(e[2]),b()];if(o(u,n,t))return{value:p(u,n,t),format:"d-mmm"};const m=i(e[2]);return e[2].length!==1&&o(m,n,1)?{value:d(m,n,1),format:"mmm-yy"}:null}if(e=/^(\d{1,2})[-\s]+([A-Za-z]+\.?)(?:[-\s,]+(\d{2}|\d{4}))?$/.exec(r)){const n=E(e[2]),t=Number(e[1]),u=e[3]?i(e[3]):b();return n&&o(u,n,t)?{value:p(u,n,t),format:e[3]?"d-mmm-yy":"d-mmm"}:null}if(e=/^([A-Za-z]+\.?)[-\s]+(\d{1,4})(?:,?\s*(\d{2}|\d{4}))?$/.exec(r)){const n=E(e[1]);if(!n)return null;const t=Number(e[2]);if(e[3]){const m=i(e[3]);return o(m,n,t)&&e[2].length<=2?{value:d(m,n,t),format:"d-mmm-yy"}:null}if(e[2].length<=2&&o(b(),n,t))return{value:d(b(),n,t),format:"d-mmm"};const u=i(e[2]);return o(u,n,1)&&e[2].length!==3?{value:d(u,n,1),format:"mmm-yy"}:null}return null}function F(r){let e=/^(\d{1,4}):(\d{1,2})(?::(\d{1,2}))?\s*([AaPp][Mm]?)?$/.exec(r),n,t=0,u=0,m;if(e)[n,t,u]=[Number(e[1]),Number(e[2]),Number(e[3]??0)],m=e[4];else if(e=/^(\d{1,2})\s*([AaPp][Mm]?)$/.exec(r))n=Number(e[1]),m=e[2];else return null;if(t>59||u>59)return null;if(m){if(n<1||n>12)return null;const a=m[0].toLowerCase()==="p";n=n%12+(a?12:0)}const l=(n*3600+t*60+u)/86400;return m?{value:l,format:e[3]!==void 0?"h:mm:ss AM/PM":"h:mm AM/PM"}:n>=24?{value:l,format:"[h]:mm:ss"}:{value:l,format:e[3]!==void 0?"h:mm:ss":"h:mm"}}function Y(r){const e=/^(.+?)\s+(\d{1,2}(?::\d{1,2}(?::\d{1,2})?)?\s*(?:[AaPp][Mm]?)?)$/.exec(r);if(!e||!/:|[AaPp]/.test(e[2]))return null;const n=M(e[1]),t=F(e[2]);return!n||!t||t.value>=1?null:{value:n.value+t.value,format:"m/d/yyyy h:mm"}}function j(r){const e=/^([+-]?)(\d+) (\d+)\/(\d+)$/.exec(r);if(!e)return null;const n=Number(e[4]);if(n===0)return null;const t=(Number(e[2])+Number(e[3])/n)*(e[1]==="-"?-1:1),u="?".repeat(Math.min(3,e[4].length));return{value:t,format:`# ${u}/${u}`}}const c=r=>Number(r.replace(/,/g,""));function B(r){if(r==="")return{kind:x};if(r[0]==="="&&r.length>1)return{kind:w,formula:r.slice(1)};if(r[0]==="'")return{kind:k,text:r.slice(1)};const e=r.trim(),n=e.toUpperCase();if(n==="TRUE")return{kind:g,value:1};if(n==="FALSE")return{kind:g,value:0};let t;if(C.test(e))return{kind:s,value:Number(e)};if(O.test(e))return{kind:s,value:c(e),format:e.includes(".")?"#,##0.00":"#,##0"};if(P.test(e))return{kind:s,value:Number(e),format:"0.00E+00"};if(U.test(e)&&/\d/.test(e)){const f=e.slice(0,-1);return{kind:s,value:c(f)/100,format:/\.\d/.test(f)?"0.00%":"0%"}}if(t=/^\((\d{1,3}(?:,\d{3})+(?:\.\d*)?|\d+(?:\.\d*)?|\.\d+)\)$/.exec(e))return{kind:s,value:-c(t[1]),...t[1].includes(",")?{format:t[1].includes(".")?"#,##0.00":"#,##0"}:{}};const u=$.symbol.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),m=(f,h,R)=>{const T=c(h)*(f==="-"||R?-1:1);return{kind:s,value:T,format:L(/\.\d/.test(h))}};if(t=new RegExp(`^([+-]?)${u}\\s?([+-]?)(${y})$`).exec(e))return m(t[1]||t[2],t[3]);if(t=new RegExp(`^([+-]?)(${y})\\s?${u}$`).exec(e))return m(t[1],t[2]);if((t=new RegExp(`^\\(${u}\\s?(${y})\\)$`).exec(e))||(t=new RegExp(`^\\((${y})\\s?${u}\\)$`).exec(e)))return m("",t[1],!0);if(t=D.exec(e))return{kind:s,value:c(t[2])*(t[1]==="-"?-1:1)};const l=j(e);if(l)return{kind:s,...l};const a=M(e);if(a)return{kind:s,...a};const N=F(e);if(N)return{kind:s,...N};const v=Y(e);return v?{kind:s,...v}:{kind:k,text:r}}export{B as parseInput,z as setEntryCurrency};
package/core/math.js ADDED
@@ -0,0 +1 @@
1
+ const c=(a,t,m)=>Math.max(t,Math.min(m,a));export{c as clamp};
package/core/numfmt.js ADDED
@@ -0,0 +1 @@
1
+ import{calendarParts as Y,dbnumDigits as Z,dbnumPlaces as H,eraAt as R,erasOf as P,hijriLocale as K,localeData as Q,mapDigits as V,numeralDigits as v,parseLocaleBracket as ee}from"../calcx/culture/format-locale.js";const y={decimal:".",group:",",months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonths:null,shortDays:null,shortDate:"m/d/yyyy",longDate:"dddd, mmmm d, yyyy",longTime:"h:mm:ss AM/PM",amDesignator:"AM",pmDesignator:"PM",tag:null,eras:null,numerals:null};function pe(e){Object.assign(y,e),G.clear()}const D="",ge={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yyyy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yyyy h:mm",37:"#,##0_);(#,##0)",38:"#,##0_);[Red](#,##0)",39:"#,##0.00_);(#,##0.00)",40:"#,##0.00_);[Red](#,##0.00)",41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_($* #,##0_);_($* \\(#,##0\\);_($* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_($* #,##0.00_);_($* \\(#,##0.00\\);_($* "-"??_);_(@_)',45:"mm:ss",46:"[h]:mm:ss",47:"mm:ss.0",48:"##0.0E+0",49:"@"},B={black:"#000000",blue:"#0000FF",cyan:"#00FFFF",green:"#00FF00",magenta:"#FF00FF",red:"#FF0000",white:"#FFFFFF",yellow:"#FFFF00"},te=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"];function q(e){const s=[[]];let n=s[0];const o=t=>{const i=n[n.length-1];i&&i.k==="lit"?i.s+=t:n.push({k:"lit",s:t})};for(let t=0;t<e.length;t++){const i=e[t];if((i==="G"||i==="g")&&e.slice(t,t+7).toLowerCase()==="general"){o("General"),t+=6;continue}switch(i){case";":n=[],s.push(n);break;case'"':{const a=e.indexOf('"',t+1);o(a<0?e.slice(t+1):e.slice(t+1,a)),t=a<0?e.length:a;break}case"\\":t+1<e.length&&o(e[++t]);break;case"_":t++,o(" ");break;case"*":n.push({k:"fill",c:e[++t]??" "});break;case"[":{const a=e.indexOf("]",t);if(a<0){o(i);break}const l=e.slice(t+1,a);t=a;const f=l.toLowerCase();if(/^dbnum[1-4]$/.test(f)){n.push({k:"dbnum",n:Number(f[5])});break}if(/^h+$/.test(f)||/^m+$/.test(f)||/^s+$/.test(f))n.push({k:"elapsed",c:f[0],n:f.length});else if(B[f])n.push({k:"color",v:B[f]});else if(/^color\s*\d+$/.test(f)){const k=te[Number(f.replace(/\D/g,""))-1];k&&n.push({k:"color",v:`#${k}`})}else if(/^(<=|>=|<>|<|>|=)\s*-?[\d.]+/.test(l)){const k=/^(<=|>=|<>|<|>|=)\s*(-?[\d.]+(?:[eE][+-]?\d+)?)/.exec(l);n.push({k:"cond",op:k[1],v:Number(k[2])})}else if(l[0]==="$"){const k=ee(l);k?.currency&&o(k.currency),k&&(k.tag||k.calendar||k.numerals||k.system||k.gannen)&&n.push({k:"loc",info:k})}break}case"@":n.push({k:"text"});break;case"#":case"0":case"?":n.push({k:"d",c:i});break;case".":n.push({k:"point"});break;case",":n.push({k:"comma"});break;case"%":n.push({k:"pct"});break;case"/":n.push({k:"slash"});break;case"E":case"e":{const a=e[t+1];if((a==="+"||a==="-")&&/[0#?]/.test(e[t+2]??""))n.push({k:"exp",plus:a==="+",upper:i==="E"}),t++;else if(i==="e"){let l=1;for(;e[t+l]==="e";)l++;n.push({k:"date",c:"e",n:l}),t+=l-1}else o(i);break}case"y":case"Y":case"m":case"M":case"d":case"D":case"h":case"H":case"s":case"S":{const a=i.toLowerCase();let l=1;for(;e[t+l]?.toLowerCase()===a;)l++;n.push({k:"date",c:a,n:l}),t+=l-1;break}case"g":case"G":case"b":case"B":{const a=i.toLowerCase();if(a==="b"&&e[t+1]==="2"){n.push({k:"hijri"}),t++;break}let l=1;for(;e[t+l]?.toLowerCase()===a;)l++;n.push({k:"date",c:a,n:l}),t+=l-1;break}case"A":case"a":{const a=e.slice(t,t+5).toUpperCase();if(/^AAA/.test(a)){let l=3;for(;e[t+l]?.toLowerCase()==="a";)l++;n.push({k:"date",c:"a",n:l}),t+=l-1}else a==="AM/PM"?(n.push({k:"ampm",long:!0}),t+=4):a.startsWith("A/P")?(n.push({k:"ampm",long:!1,lower:i==="a"}),t+=2):o(i);break}default:o(i)}}return s}function se(e){const s={tokens:e,color:null,cond:null,isDate:!1,isText:!1,isNum:!1,isGeneral:!1},n=[];for(const t of e)t.k==="color"?s.color=t.v:t.k==="cond"?s.cond=t:t.k==="loc"?s.loc=t.info:t.k==="dbnum"?s.dbnum=t.n:t.k==="hijri"?s.hijri=!0:n.push(t);if(s.loc?.system){n.length=0;for(const t of q(s.loc.system==="date"?y.longDate:y.longTime)[0])n.push(t)}s.tokens=n;const o=n.filter(t=>t.k==="lit").map(t=>t.s).join("");if(s.isDate=n.some(t=>t.k==="date"||t.k==="elapsed"||t.k==="ampm"),s.isText=n.some(t=>t.k==="text"),s.isNum=!s.isDate&&n.some(t=>t.k==="d"),/general/i.test(o)){s.isGeneral=!0;for(const t of n)t.k==="lit"&&(t.s=t.s.replace(/general/i,""))}return s.isDate?oe(s):s.isNum&&le(s),s.digits=ie(s),s}const ne=e=>e.op==="<"&&e.v<=0||e.op==="<="&&e.v<0||e.op==="="&&e.v<0;function J(e,s){const n=I(s);return e.dbnum?H(n,e.dbnum,e.loc?.tag??y.tag)??n:n}function ie(e){if(e.dbnum){const s=Z(e.dbnum,e.loc?.tag??y.tag);if(s)return s}return e.loc?.numerals>1?v(e.loc.numerals):y.numerals??null}function oe(e){if(e.tokens.some(t=>t.k==="date"&&t.c==="g")&&P(e.loc,y)){let t=!1;for(const i of e.tokens)i.k==="date"&&i.c==="g"?t=!0:t&&i.k==="date"&&i.c==="y"&&(i.c="e",i.n=2)}const s=e.tokens;let n=null;for(let t=0;t<s.length;t++){const i=s[t];if(i.k==="date"&&i.c==="m"&&i.n<=2){let a=null;for(let l=t+1;l<s.length;l++)if(s[l].k!=="lit"){a=s[l];break}(n==="h"||a&&a.k==="date"&&a.c==="s"||a&&a.k==="elapsed"&&a.c==="s")&&(i.c="n"),n=null}else i.k==="date"&&i.c==="h"||i.k==="elapsed"&&i.c==="h"?n="h":(i.k==="date"||i.k==="elapsed")&&(n=null)}e.hour12=s.some(t=>t.k==="ampm"),e.subDigits=0;const o=[];for(let t=0;t<s.length;t++){const i=s[t];if(i.k==="point"&&s[t+1]?.k==="d"){let a=0;for(;s[t+1+a]?.k==="d";)a++;o.push({k:"sub",n:a}),e.subDigits=Math.max(e.subDigits,a),t+=a}else i.k==="point"?o.push({k:"lit",s:"."}):i.k==="slash"?o.push({k:"lit",s:"/"}):i.k==="comma"?o.push({k:"lit",s:","}):i.k==="d"?o.push({k:"lit",s:i.c}):i.k==="pct"?o.push({k:"lit",s:"%"}):o.push(i)}e.tokens=o}function le(e){const s=e.tokens;let n=-1,o=-1,t=-1,i=-1,a=-1;s.forEach((c,d)=>{c.k==="d"?(o<0&&(o=d),n=d):c.k==="point"&&t<0?t=d:c.k==="exp"&&i<0?i=d:c.k==="slash"&&a<0&&o>=0&&(a=d)});let l=0,f=0,k=!1;const b=[];for(let c=0;c<s.length;c++){const d=s[c];if(d.k==="pct")l++,b.push({k:"lit",s:"%"});else if(d.k==="comma"){let m=!1;for(let h=c+1;h<s.length;h++){if(s[h].k==="d"){m=!0;break}if(s[h].k!=="comma")break}m&&c>o&&(t<0||c<t)?k=!0:c>o&&c<=n+8&&!m?f++:b.push({k:"lit",s:","})}else d.k==="slash"&&c!==a?b.push({k:"lit",s:"/"}):d.k==="point"&&c!==t?b.push({k:"lit",s:"."}):b.push(d)}e.tokens=b,e.pct=l,e.scale=f,e.grouping=k,e.fraction=a>=0,e.scientific=i>=0;let u="int";const p={int:0,dec:0,exp:0,num:0,den:0};let g="";for(const c of b)c.k==="point"?u="dec":c.k==="exp"?u="exp":c.k==="slash"?u="den":c.k==="d"?(c.part=u,p[u]++,u==="den"&&(g+=c.c)):c.k==="lit"&&u==="den"&&/^\d+$/.test(c.s)&&(g+=c.s);if(e.fraction){let d=b.findIndex(h=>h.k==="slash")-1,m=!1;for(;d>=0;){const h=b[d];if(h.k==="d")h.part="num",p.num++,p.int--,m=!0;else if(m)break;d--}e.fixedDen=/^\d+$/.test(g)?Number(g):0,e.denDigits=p.den}e.counts=p}function j(e,s){if(Number.isInteger(e)&&e<1e15)return{int:e===0?"":String(e),dec:"0".repeat(s)};const n=e.toExponential(14),o=n.indexOf("e"),t=n[0]+n.slice(2,o),a=Number(n.slice(o+1))+1+s;let l,f=!1;if(a<0?l="":a>=t.length?l=t+"0".repeat(a-t.length):(f=t.charCodeAt(a)>=53,l=t.slice(0,a)),f){let g=l.length-1;const c=l.split("");for(;g>=0;)if(c[g]==="9")c[g]="0",g--;else{c[g]=String.fromCharCode(c[g].charCodeAt(0)+1);break}l=c.join(""),g<0&&(l="1"+l)}const b=l.length-s;let u,p;return b<=0?(u="",p="0".repeat(-b)+l):(u=l.slice(0,b),p=l.slice(b)),u=u.replace(/^0+/,""),{int:u,dec:p}}function ae(e){if(e.length<=3)return e;let s="",n=e.length%3;for(n>0&&(s=e.slice(0,n));n<e.length;n+=3)s+=(s?y.group:"")+e.slice(n,n+3);return s}function re(e,s){if(s.fixedDen>0)return[Math.round(e*s.fixedDen),s.fixedDen];const n=10**s.denDigits-1;let[o,t,i,a]=[0,1,1,0],l=e;for(let f=0;f<32;f++){const k=Math.floor(l),b=k*i+o,u=k*a+t;if(u>n)break;[o,t,i,a]=[i,a,b,u];const p=l-k;if(p<1e-10)break;l=1/p}return[i,a||1]}function ce(e,s){let n=s;e.pct&&(n*=100**e.pct),e.scale&&(n/=1e3**e.scale);const{counts:o}=e;let t="",i="",a="",l=!1,f="",k="";if(e.fraction){const r=o.int>0?Math.floor(n):0,[F,M]=re(n-r,e);let S=r,w=F;w===M&&o.int>0&&(S+=1,w=0),t=S===0?w===0&&o.int>0?"0":"":String(S),f=w===0&&o.int>0?"":String(w),k=w===0&&o.int>0?"":String(M)}else if(e.scientific){let r=n===0?0:Math.floor(Math.log10(n));const F=Math.max(o.int,1);F>1&&(r=Math.floor(r/F)*F);let M=j(n/10**r,o.dec);M.int.length>F&&(r+=F>1?F:1,M=j(n/10**r,o.dec)),t=n===0&&F>1?"0".repeat(F):M.int,i=M.dec,l=r<0,a=String(Math.abs(r))}else{const r=j(n,o.dec);t=r.int,i=r.dec}let b=i.length,u="";const p=e.tokens,g=[];for(const r of p)r.k==="d"&&r.part==="int"&&g.push(r);const c=new Map;let d=t.length-1;for(let r=g.length-1;r>=0;r--){const F=g[r];if(d>=0){let M=t[d--];r===0&&d>=0&&(M=t.slice(0,d+1)+M,d=-1),c.set(F,M)}else c.set(F,F.c==="0"?"0":F.c==="?"?" ":"")}if(e.grouping&&g.length){let r="";for(const S of g)r+=c.get(S);const F=/^ */.exec(r)[0],M=ae(r.slice(F.length));c.forEach((S,w)=>c.set(w,"")),c.set(g[0],F+M)}const m=[];for(const r of p)r.k==="d"&&r.part==="dec"&&m.push(r);for(let r=m.length-1;r>=0&&!(m[r].c==="0"||i[r]!=="0");r--)b=r;let h=0,C=0;const x=p.filter(r=>r.k==="d"&&r.part==="exp").length,$=a.padStart(x,"0");let L=0;const O=p.filter(r=>r.k==="d"&&r.part==="num").length,T=f.padStart(O," ");let A=0;const N=p.filter(r=>r.k==="d"&&r.part==="den").length,E=k.padEnd(N," "),X=e.fraction&&f==="";for(const r of p)switch(r.k){case"lit":u+=r.s===""?"":r.s;break;case"fill":u+=D+r.c+D;break;case"point":g.length===0&&!e.fraction&&!e.scientific&&t!=="0"&&!u.includes(y.decimal)&&(u+=t),u+=y.decimal;break;case"exp":u+=(r.upper?"E":"e")+(l?"-":r.plus?"+":"");break;case"slash":u+=X?" ":"/";break;case"d":switch(r.part){case"int":u+=c.get(r);break;case"dec":{const F=h++;F<b?u+=i[F]:r.c==="?"?u+=" ":r.c==="0"&&(u+="0");break}case"exp":C===0&&(u+=$),C++;break;case"num":{L===0?u+=T.slice(0,T.length-O+1):u+=T[T.length-O+L],L++;break}case"den":{A<N&&(u+=E[A]),A++,A===N&&E.length>N&&(u+=E.slice(N));break}default:}break;default:}return u}function fe(e){let s=Math.floor(e),n=e-s,o=Math.round(n*864e5);o>=864e5&&(s+=1,o-=864e5);let t,i,a;if(s===0)t=1900,i=1,a=0;else if(s===60)t=1900,i=2,a=29;else{const f=(s<60?s+1:s)-25569+719468,k=Math.floor(f/146097),b=f-k*146097,u=Math.floor((b-Math.floor(b/1460)+Math.floor(b/36524)-Math.floor(b/146096))/365),p=b-(365*u+Math.floor(u/4)-Math.floor(u/100)),g=Math.floor((5*p+2)/153);a=p-Math.floor((153*g+2)/5)+1,i=g<10?g+3:g-9,t=u+k*400+(i<=2?1:0)}const l=s===0?6:(s-1)%7;return{year:t,month:i,day:a,weekday:l,ms:o,serial:e}}function be(e,s,n){const o=s<=2?e-1:e,t=s<=2?s+9:s-3,i=Math.floor(o/400),a=o-i*400,l=Math.floor((153*t+2)/5)+n-1,f=a*365+Math.floor(a/4)-Math.floor(a/100)+l,k=i*146097+f-719468+25569;return k<61?k-1:k}const _=e=>e<10?"0"+e:String(e);function z(e,s){const n=86400*10**(e.subDigits??0);s=Math.round(s*n)/n;const o=fe(s),t=o.ms;let i=Math.floor(t/1e3);const a=t-i*1e3;let l="";e.subDigits>0?(l=(a/1e3).toFixed(e.subDigits).slice(2),l.length===0&&(l="")):a>=500&&(i+=1);let f=Math.floor(i/3600);const k=Math.floor(i%3600/60),b=i%60;f>=24&&(f=23);const u=e.hour12?f%12===0?12:f%12:f,{loc:p}=e,g=e.hijri&&!p?.tag,c=p?.tag?Q(p.tag):g?K():y,d=p?.calendar||g?Y(g?"hijri":p.calendar,s,o,p?.tag??null)??o:o;let m="";for(const h of e.tokens)switch(h.k){case"lit":m+=h.s;break;case"fill":m+=D+h.c+D;break;case"date":switch(h.c){case"y":m+=h.n<=2?_(d.year%100):String(d.year);break;case"e":{const C=P(p,y);if(C===null){m+=String(d.year);break}const x=o.year-R(C,s).firstYear+1;x===1&&p?.gannen?m+="元":m+=h.n===1?x:_(x);break}case"g":{const C=P(p,y);if(C===null)break;const x=R(C,s);m+=h.n===1?x.symbol:h.n===2?x.abbreviation:x.name;break}case"b":{const C=p?.tag?o.year:o.year+543;m+=h.n<=2?_(C%100):String(C);break}case"a":m+=h.n===3?c.shortDays?.[o.weekday]??c.days[o.weekday].slice(0,3):c.days[o.weekday];break;case"m":h.n===1?m+=d.month:h.n===2?m+=_(d.month):d.monthName?m+=h.n===5?d.monthName[0]:d.monthName:h.n===3?m+=c.shortMonths?.[d.month-1]??c.months[d.month-1].slice(0,3):h.n===5?m+=c.months[d.month-1][0]:m+=c.months[d.month-1];break;case"d":h.n===1?m+=d.day:h.n===2?m+=_(d.day):h.n===3?m+=c.shortDays?.[o.weekday]??c.days[o.weekday].slice(0,3):m+=c.days[o.weekday];break;case"h":m+=h.n===1?u:_(u);break;case"n":m+=h.n===1?k:_(k);break;case"s":m+=h.n===1?b:_(b);break;default:}break;case"elapsed":{const x=Math.floor(s)*86400+i,$=h.c==="h"?Math.floor(x/3600):h.c==="m"?Math.floor(x/60):x;m+=String($).padStart(h.n,"0");break}case"ampm":h.long?m+=f<12?p?.tag?c.am:y.amDesignator:p?.tag?c.pm:y.pmDesignator:m+=h.lower?f<12?"a":"p":f<12?"A":"P";break;case"sub":m+=y.decimal+l.slice(0,h.n);break;default:}return m}function I(e,s=11){if(e===0)return"0";const n=Math.abs(e);let o;if(Number.isInteger(e)&&n<1e11)o=String(e);else if(n>=1e11||n<1e-9){const t=e.toExponential(Math.max(s-6,0)),i=t.indexOf("e");let a=t.slice(0,i);a.includes(".")&&(a=a.replace(/\.?0+$/,""));const l=Number(t.slice(i+1)),f=Math.abs(l);o=`${a}E${l<0?"-":"+"}${f<10?"0":""}${f}`}else{const t=n>=1?Math.floor(Math.log10(n))+1:1,i=Math.max(s-t-(n<1?1:0),0),a=n<1?-Math.floor(Math.log10(n))-1:0;o=Number(e.toPrecision(15)).toFixed(Math.min(Math.max(i,0),20)),a>=i&&i>=0&&Number(o)===0&&(o=e.toExponential(s-6)),o.includes(".")&&(o=o.replace(/\.?0+$/,""))}return y.decimal==="."?o:o.replace(".",y.decimal)}class ue{constructor(s){this.code=s;const n=q(s);this.sections=n.slice(0,4).map(se);const o=this.sections[0];if(this.general=this.sections.length===1&&o.isGeneral&&!o.dbnum&&o.tokens.every(t=>t.k==="lit"&&t.s===""),this.isDate=this.sections.some(t=>t.isDate),this.isText=this.sections.length===1&&o.isText,this.sections.some(t=>t.digits)){const t=this.number;this.number=i=>{const a=this.sections[this._pick(i)],l=t.call(this,i);return a.digits?V(l,a.digits):l}}}_pick(s){const n=this.sections;if(n[0].cond!==null||n[1]&&n[1].cond!==null){for(let i=0;i<Math.min(n.length,3);i++){const a=n[i].cond;if(a===null){if(i===n.length-1||i===2||n[i].isText&&i===3)return i;continue}if(ke(a,s))return i}return Math.min(n.length-1,2)}const t=n.length>1&&n.length<4&&n[n.length-1].isText?n.length-1:n.length;return t===1?0:t===2?s<0?1:0:s>0?0:s<0?1:2}number(s){if(this.general)return I(s);const n=this._pick(s),o=this.sections[n],t=this.sections[0].cond!==null||this.sections[1]&&this.sections[1].cond!==null,i=s<0&&(o.cond!==null?!ne(o.cond):n===0||t);if(o.isDate){const l=s<0&&n>0?-s:s;return U(o,l)?"#".repeat(8):l<0?`-${z(o,-l)}`:z(o,l)}if(o.isNum){const l=ce(o,Math.abs(s));return i&&me(l)?"-"+l:l}if(o.isGeneral){let l="";for(const f of o.tokens)f.k==="lit"?l+=f.s===""?J(o,Math.abs(s)):f.s.replace("",J(o,Math.abs(s))):f.k==="fill"&&(l+=D+f.c+D);return s<0&&n===0?"-"+l:l}let a=i?"-":"";for(const l of o.tokens)l.k==="lit"?a+=l.s:l.k==="fill"?a+=D+l.c+D:l.k==="pct"?a+="%":l.k==="text"&&(a+=I(Math.abs(s)));return a}dateOverflow(s){if(this.general)return!1;const n=this._pick(s),o=this.sections[n];return!!o.isDate&&U(o,s<0&&n>0?-s:s)}text(s){const n=this.sections,o=n.length===4?n[3]:n.length===1&&n[0].isText?n[0]:null;if(o===null)return s;let t="";for(const i of o.tokens)i.k==="lit"?t+=i.s:i.k==="text"?t+=s:i.k==="fill"&&(t+=D+i.c+D);return t}color(s){return this.sections[this._pick(s)].color}}const he=2958466;function U(e,s){return e.tokens.some(o=>o.k==="date"||o.k==="ampm")?s<0||s>=he:!1}function me(e){for(let s=0;s<e.length;s++){const n=e.charCodeAt(s);if(n>=49&&n<=57)return!0}return!1}function ke(e,s){switch(e.op){case"<":return s<e.v;case"<=":return s<=e.v;case">":return s>e.v;case">=":return s>=e.v;case"=":return s===e.v;default:return s!==e.v}}const G=new Map;function W(e){let s=G.get(e);return s===void 0&&(s=new ue(e==="m/d/yyyy"?y.shortDate:e==="m/d/yyyy h:mm"?`${y.shortDate} h:mm`:e),G.set(e,s)),s}function Fe(e,s){return W(e).number(s)}function ye(e){return W("#,##0").number(e)}export{ge as BUILTIN_FORMATS,D as FILL_MARK,ye as formatCount,I as formatGeneral,Fe as formatNumber,W as getFormatter,be as partsToSerial,fe as serialToParts,pe as setNumberLocale};
package/core/online.js ADDED
@@ -0,0 +1 @@
1
+ let r=!0;const l=()=>r;function s(t){r=t!==!1}function c(t){if(r)return!0;const e=globalThis.location?.origin;if(!e||e==="null")return!1;try{const o=new URL(t,e);return`${{"ws:":"http:","wss:":"https:"}[o.protocol]??o.protocol}//${o.host}`===e}catch{return!1}}const a="Features that reach other sites are turned off here.";export{a as OFFLINE_MESSAGE,c as mayReach,l as onlineAllowed,s as setOnlineAllowed};
@@ -0,0 +1 @@
1
+ import{MAX_COLS as d0,MAX_ROWS as i0}from"./address.js";import{base64ToBytes as u0,bytesToBase64 as J}from"./base64.js";const c0=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]),d=new Int32Array(160);function o0(a){const e=a.length,c=e+17+127>>7<<7,t=new Uint8Array(c);t.set(a),t[e]=128;const n=e*8;t[c-4]=n>>>24,t[c-3]=n>>>16,t[c-2]=n>>>8,t[c-1]=n;let r=1779033703,s=4089235720,o=3144134277,m=2227873595,p=1013904242,R=4271175723,T=2773480762,E=1595750129,O=1359893119,V=2917565137,v=2600822924,I=725511199,P=528734635,_=4215389547,$=1541459225,j=327033209;for(let C=0;C<c;C+=128){for(let l=0;l<32;l++){const f=C+l*4;d[l]=t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]}for(let l=32;l<160;l+=2){const f=d[l-30],A=d[l-29],X=(f>>>1|A<<31)^(f>>>8|A<<24)^f>>>7,G=(A>>>1|f<<31)^(A>>>8|f<<24)^(A>>>7|f<<25),w=d[l-4],y=d[l-3],Y=(w>>>19|y<<13)^(y>>>29|w<<3)^w>>>6,q=(y>>>19|w<<13)^(w>>>29|y<<3)^(y>>>6|w<<26),L=(d[l-31]>>>0)+(G>>>0)+(d[l-13]>>>0)+(q>>>0);d[l+1]=L|0,d[l]=d[l-32]+X+d[l-14]+Y+Math.floor(L/4294967296)|0}let b=r,i=s,g=o,H=m,M=p,U=R,D=T,K=E,u=O,h=V,k=v,B=I,F=P,N=_,W=$,z=j;for(let l=0;l<160;l+=2){const f=(u>>>14|h<<18)^(u>>>18|h<<14)^(h>>>9|u<<23),A=(h>>>14|u<<18)^(h>>>18|u<<14)^(u>>>9|h<<23),X=u&k^~u&F,G=h&B^~h&N,w=(z>>>0)+(A>>>0)+(G>>>0)+(c0[l+1]>>>0)+(d[l+1]>>>0),y=W+f+X+c0[l]+d[l]+Math.floor(w/4294967296)|0,Y=(b>>>28|i<<4)^(i>>>2|b<<30)^(i>>>7|b<<25),q=(i>>>28|b<<4)^(b>>>2|i<<30)^(b>>>7|i<<25),L=b&g^b&M^g&M,f0=i&H^i&U^H&U,e0=(q>>>0)+(f0>>>0),b0=Y+L+Math.floor(e0/4294967296)|0;W=F,z=N,F=k,N=B,k=u,B=h;const t0=(K>>>0)+(w>>>0);u=D+y+Math.floor(t0/4294967296)|0,h=t0|0,D=M,K=U,M=g,U=H,g=b,H=i;const a0=(w>>>0)+(e0>>>0);b=y+b0+Math.floor(a0/4294967296)|0,i=a0|0}const S=(l,f)=>(l>>>0)+(f>>>0);let x=S(s,i);s=x|0,r=r+b+Math.floor(x/4294967296)|0,x=S(m,H),m=x|0,o=o+g+Math.floor(x/4294967296)|0,x=S(R,U),R=x|0,p=p+M+Math.floor(x/4294967296)|0,x=S(E,K),E=x|0,T=T+D+Math.floor(x/4294967296)|0,x=S(V,h),V=x|0,O=O+u+Math.floor(x/4294967296)|0,x=S(I,B),I=x|0,v=v+k+Math.floor(x/4294967296)|0,x=S(_,N),_=x|0,P=P+F+Math.floor(x/4294967296)|0,x=S(j,z),j=x|0,$=$+W+Math.floor(x/4294967296)|0}const Z=new Uint8Array(64),r0=new DataView(Z.buffer);return[r,s,o,m,p,R,T,E,O,V,v,I,P,_,$,j].forEach((C,b)=>r0.setInt32(b*4,C)),Z}function h0(a){const e=new Uint8Array(a.length*2);for(let c=0;c<a.length;c++){const t=a.charCodeAt(c);e[c*2]=t&255,e[c*2+1]=t>>8}return e}const Q=(a,e)=>{const c=new Uint8Array(a.length+e.length);return c.set(a),c.set(e,a.length),c},s0={"SHA-1":"SHA-1","SHA-256":"SHA-256","SHA-384":"SHA-384"};async function l0(a,e,c,t){const n=a==="SHA-512"?async o=>o0(o):async o=>new Uint8Array(await crypto.subtle.digest(s0[a],o));let r=await n(Q(e,h0(c)));const s=new Uint8Array(4);if(a==="SHA-512"){for(let o=0;o<t;o++)o>0&&o%8192===0&&await new Promise(m=>{setTimeout(m)}),s[0]=o,s[1]=o>>>8,s[2]=o>>>16,s[3]=o>>>24,r=o0(Q(r,s));return r}for(let o=0;o<t;o++)s[0]=o,s[1]=o>>>8,s[2]=o>>>16,s[3]=o>>>24,r=await n(Q(r,s));return r}function m0(a){let e=0;for(let c=a.length-1;c>=0;c--)e=e>>14&1|e<<1&32767,e^=a.charCodeAt(c)&255;return e=e>>14&1|e<<1&32767,e^=a.length,e^=52811,e.toString(16).toUpperCase().padStart(4,"0")}const x0=1e5;async function C0(a,e=""){const c=crypto.getRandomValues(new Uint8Array(16)),t=await l0("SHA-512",c,a,x0),n=r=>e?`${e}${r[0].toUpperCase()}${r.slice(1)}`:r;return{[n("algorithmName")]:"SHA-512",[n("hashValue")]:J(t),[n("saltValue")]:J(c),[n("spinCount")]:String(x0)}}const w0=["algorithmName","hashValue","saltValue","spinCount","password"];function g0(a,e=""){return a?!!(e?a[`${e}HashValue`]??a[`${e}Password`]:a.hashValue??a.password):!1}async function H0(a,e,c=""){const t=s=>c?a[`${c}${s[0].toUpperCase()}${s.slice(1)}`]:a[s],n=t("hashValue");if(n){const s=t("algorithmName")??"SHA-512";if(s!=="SHA-512"&&!s0[s])return!1;const o=await l0(s,u0(t("saltValue")??""),e,Number(t("spinCount")??0));return J(o)===n}const r=t("password");return r?r.toUpperCase()===m0(e):!0}const M0=a=>Object.fromEntries(Object.entries(a).filter(([e])=>!w0.includes(e))),p0=[["selectLockedCells","Select locked cells",!0],["selectUnlockedCells","Select unlocked cells",!0],["formatCells","Format cells",!1],["formatColumns","Format columns",!1],["formatRows","Format rows",!1],["insertColumns","Insert columns",!1],["insertRows","Insert rows",!1],["insertHyperlinks","Insert hyperlinks",!1],["deleteColumns","Delete columns",!1],["deleteRows","Delete rows",!1],["sort","Sort",!1],["autoFilter","Use AutoFilter",!1],["pivotTables","Use PivotTable reports",!1],["objects","Edit objects",!1],["scenarios","Edit scenarios",!1]],S0=new Set(["formatCells","formatColumns","formatRows","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"]);function U0(a){const e={},c=new Set(p0.map(([t])=>t));for(const[t,n]of Object.entries(a??{}))e[t]=c.has(t)&&typeof n=="boolean"?n?"0":"1":n;return e}function R0(a,e){const c=a.protection;if(!c)return!0;const t=c[e];return t===void 0?!S0.has(e):t==="0"||t==="false"}const n0=(a,e)=>a.styles.get(e).unlocked===!0;function T0(a,e,c){if(!e.protection)return!0;for(const t of c){const n=t.r1>e.maxRow,r=t.c1>e.maxCol;if((n||r)&&t.r0===0&&t.r1===i0-1&&!e.colStyles?.size||(n||r)&&t.c0===0&&t.c1===d0-1&&!e.rowStyles?.size)return!1;const s=Math.min(t.r1,Math.max(e.maxRow,t.r0)),o=Math.min(t.c1,Math.max(e.maxCol,t.c0));for(let m=t.r0;m<=s;m++)for(let p=t.c0;p<=o;p++)if(!n0(a,e.style(m,p)))return!1;if((t.r1>s||t.c1>o)&&!n0(a,e.style(t.r1,t.c1)))return!1}return!0}const E0=a=>{const e=a.protection?.lockStructure;return e==="1"||e==="true"};export{p0 as SHEET_OPTIONS,x0 as SPIN_COUNT,R0 as allows,g0 as hasPassword,C0 as hashPassword,m0 as legacyHash,U0 as protectionOptions,T0 as rangesEditable,o0 as sha512,E0 as structureLocked,H0 as verifyPassword,M0 as withoutPassword};
package/core/regexp.js ADDED
@@ -0,0 +1 @@
1
+ const p=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");export{p as escapeRegExp};
package/core/sheet.js ADDED
@@ -0,0 +1 @@
1
+ import{Axis as A}from"./axis.js";import{MAX_COLS as v,MAX_ROWS as R}from"./address.js";import{FormulaStore as S}from"./formula-store.js";const u=10,M=1<<u,m=M-1,G=0,U=1,P=2,H=3,V=4,Y=8,j=16,W=32,X=64,L=7,Z=15,b=["#NULL!","#DIV/0!","#VALUE!","#REF!","#NAME?","#NUM!","#N/A","#GETTING_DATA","#SPILL!","#CALC!","#BUSY!","#CONNECT!","#BLOCKED!","#FIELD!","#UNKNOWN!"];class O{constructor(){this.kinds=new Uint8Array(M),this.values=new Float64Array(M),this.styles=null}}let K=1;class q{constructor(t){this.uid=K++,this.name=t,this.rowExtras=null,this.colExtras=null,this.valueMeta=null,this.columns=[],this.maxRow=-1,this.maxCol=-1,this.rows=new A(R,16),this.cols=new A(v,65),this._formulas=new S,this.spills=null,this.rowStyles=null,this.colStyles=null,this.merges=[],this.cellTypes=null,this.sparkRules=null,this.cellDropdowns=null,this.cellTags=null,this.cellPicOpts=null,this.cellButtons=null,this.cellStates=null,this.changes=null,this.autoMerges=null,this.background=null,this.outlineColumn=null,this.split=null,this.frozenTrailingRows=0,this.frozenTrailingCols=0,this.axisSizing=null,this.hideZeros=!1,this.mergeIndex=null,this.frozenRows=0,this.frozenCols=0,this.showGridlines=!0,this.zoom=1,this.sourceId=null,this.revision=0}_chunk(t,s){const e=this.columns[s];return e===void 0?void 0:e[t>>>u]}_ensure(t,s){let e=this.columns[s];e===void 0&&(e=[],this.columns[s]=e);const n=t>>>u;let i=e[n];return i===void 0&&(i=new O,e[n]=i),i}kind(t,s){const e=this._chunk(t,s);return e===void 0?0:e.kinds[t&m]}value(t,s){const e=this._chunk(t,s);return e===void 0?0:e.values[t&m]}style(t,s){const e=this._chunk(t,s);if(e!==void 0&&e.styles!==null){const n=e.styles[t&m];if(n!==0)return n}if(this.rowStyles!==null){const n=this.rowStyles.get(t);if(n!==void 0)return n}if(this.colStyles!==null){const n=this.colStyles.get(s);if(n!==void 0)return n}return 0}cellStyle(t,s){const e=this._chunk(t,s);return e===void 0||e.styles===null?0:e.styles[t&m]}get formulas(){return this._formulas}set formulas(t){this._formulas=t instanceof S?t:S.from(t)}formula(t,s){return this._formulas.at(t,s)}setCell(t,s,e,n){const i=this._ensure(t,s),l=t&m;i.kinds[l]=e,i.values[l]=n,t>this.maxRow&&(this.maxRow=t),s>this.maxCol&&(this.maxCol=s)}setStyle(t,s,e){const n=this._ensure(t,s);if(n.styles===null){if(e===0)return;n.styles=new Uint16Array(M)}n.styles[t&m]=e,t>this.maxRow&&(this.maxRow=t),s>this.maxCol&&(this.maxCol=s)}setFormula(t,s,e){e?this._formulas.put(t,s,e):this._formulas.remove(t,s)}applyBatch(t){const{rows:s,cols:e,kinds:n,values:i,styles:l,count:o}=t;let h=-1,f=-1,d=null,k=this.maxRow,g=this.maxCol;for(let r=0;r<o;r++){const a=s[r],c=e[r],y=a>>>u;(c!==h||y!==f)&&(d=this._ensure(a,c),h=c,f=y);const p=a&m;d.kinds[p]=n[r],d.values[p]=i[r];const _=l[r];_!==0&&(d.styles===null&&(d.styles=new Uint16Array(M)),d.styles[p]=_),c>g&&(g=c)}if(o>0&&s[o-1]>k&&(k=s[o-1]),this.maxRow=k,this.maxCol=g,t.formulas){const r=this._formulas;for(const[a,c]of t.formulas)r.set(a,c)}if(t.valueMeta){this.valueMeta===null&&(this.valueMeta=new Map);for(const[r,a]of t.valueMeta)this.valueMeta.set(r,a)}this.revision++}addMerge(t){this.merges.push(t),this.mergeIndex=null}removeMergesIn(t){const s=this.merges.length;this.merges=this.merges.filter(e=>!D(e,t)),this.merges.length!==s&&(this.mergeIndex=null)}_buildMergeIndex(){const t=new Map;for(const s of this.merges)for(let e=s.r0>>>u;e<=s.r1>>>u;e++){const n=t.get(e);n?n.push(s):t.set(e,[s])}this.mergeIndex=t}mergeAt(t,s){if(this.merges.length===0)return null;this.mergeIndex===null&&this._buildMergeIndex();const e=this.mergeIndex.get(t>>>u);if(e===void 0)return null;for(let n=0;n<e.length;n++){const i=e[n];if(t>=i.r0&&t<=i.r1&&s>=i.c0&&s<=i.c1)return i}return null}mergesInRows(t,s){if(this.merges.length===0)return[];this.mergeIndex===null&&this._buildMergeIndex();const e=new Set;for(let n=t>>>u;n<=s>>>u;n++){const i=this.mergeIndex.get(n);if(i)for(const l of i)l.r1>=t&&l.r0<=s&&e.add(l)}return[...e]}jumpRow(t,s,e){const n=this.columns[s],i=e>0?R-1:0;if(t===i)return t;const l=h=>{const f=n===void 0?void 0:n[h>>>u];return f!==void 0&&(f.kinds[h&m]&15)!==0};let o=t+e;if(l(t)&&l(o)){for(;o!==i&&l(o+e);)o+=e;return o}for(;o>=0&&o<R;){const h=n===void 0?void 0:n[o>>>u];if(h===void 0){const f=e>0?(o>>>u)+1<<u:(o>>>u<<u)-1;if(f<0||f>=R)return i;o=f;continue}if((h.kinds[o&m]&15)!==0)return o;o+=e}return i}jumpCol(t,s,e){const n=e>0?v-1:0;if(s===n)return s;const i=h=>(this.kind(t,h)&15)!==0;let l=s+e;if(i(s)&&i(l)){for(;l!==n&&i(l+e);)l+=e;return l}const o=e>0?this.maxCol:0;for(;l!==n;){if(i(l))return l;if(e>0&&l>o)return n;l+=e}return n}aggregate(t){let s=0,e=0,n=0,i=1/0,l=-1/0;for(const{r0:o,c0:h,r1:f,c1:d}of t){const k=Math.min(d,this.maxCol),g=Math.min(f,this.maxRow);for(let r=h;r<=k;r++){const a=this.columns[r];if(a!==void 0)for(let c=o>>>u;c<=g>>>u;c++){const y=a[c];if(y===void 0)continue;const p=c<<u,_=Math.max(o-p,0),N=Math.min(g-p,m),{kinds:T,values:E}=y;for(let I=_;I<=N;I++){const w=T[I]&L;if(w!==0&&(n++,w===U)){const C=E[I];s+=C,e++,C<i&&(i=C),C>l&&(l=C)}}}}}return{sum:s,numeric:e,filled:n,min:i,max:l}}}function D(x,t){return x.r0<=t.r1&&x.r1>=t.r0&&x.c0<=t.c1&&x.c1>=t.c0}export{H as BOOL,u as CHUNK_BITS,m as CHUNK_MASK,M as CHUNK_SIZE,Z as CONTENT_MASK,W as DIRTY,G as EMPTY,V as ERR,b as ERRORS,X as EVALUATING,Y as FORMULA,L as KIND_MASK,U as NUM,j as SPILL,P as STR,q as Sheet,D as rangesTouch};
@@ -0,0 +1 @@
1
+ import{cellRef as C,parseCellRef as E,parseRangeRef as G,sheetPrefix as O}from"./address.js";import{child as y,children as T,parseTree as R}from"../io/xml-scan.js";import{escapeMarkup as d}from"../io/xml-escape.js";const b=new TextEncoder,u=e=>e==="1"||e==="true";function _(e,i){const r=e.indexOf("sparklineGroups");if(r<0)return[];const o=e.lastIndexOf("<",r),l=e.indexOf("sparklineGroups>",r+16);if(o<0||l<0)return[];const s=e.slice(o,l+16);let t;try{t=R(b.encode(`<r xmlns:x14="x" xmlns:xm="m">${s}</r>`))}catch{return[]}const h=y(t,"sparklineGroups");return T(h,"sparklineGroup").map(a=>{const n=a.a,p={},c=(f,L)=>{const A=y(a,f),w=i(A)??L;return A&&w&&(p[f]={hex:w,attrs:Object.entries(A.a??{}).map(([M,v])=>`${M}="${d(v)}"`).join(" ")}),w},m=f=>f===void 0||f===""||!Number.isFinite(Number(f))?void 0:Number(f),k=c("colorSeries","#376092"),$=c("colorNegative","#D00000"),x=c("colorMarkers","#D00000");return{type:n.type??"line",markers:u(n.markers),high:u(n.high),low:u(n.low),first:u(n.first),last:u(n.last),negative:u(n.negative),lineWeight:Number(n.lineWeight??.75),seriesColor:k,negativeColor:$,markerColor:x,axisColor:c("colorAxis","#000000"),firstColor:c("colorFirst",x),lastColor:c("colorLast",x),highColor:c("colorHigh",x),lowColor:c("colorLow",x),displayXAxis:u(n.displayXAxis),displayHidden:u(n.displayHidden),rightToLeft:u(n.rightToLeft),displayEmptyCellsAs:n.displayEmptyCellsAs??"zero",dateAxis:u(n.dateAxis),dateRange:y(a,"f")?.t??null,minAxisType:n.minAxisType??"individual",maxAxisType:n.maxAxisType??"individual",manualMin:m(n.manualMin),manualMax:m(n.manualMax),rawColors:p,items:T(y(a,"sparklines"),"sparkline").map(f=>({source:y(f,"f")?.t??"",cell:y(f,"sqref")?.t??""}))}})}const F=[["colorSeries","seriesColor"],["colorNegative","negativeColor"],["colorAxis","axisColor"],["colorMarkers","markerColor"],["colorFirst","firstColor"],["colorLast","lastColor"],["colorHigh","highColor"],["colorLow","lowColor"]],I=e=>`FF${String(e).slice(1,7).toUpperCase()}`;function S(e){const i=[];e.manualMax!==void 0&&e.maxAxisType==="custom"&&i.push(`manualMax="${e.manualMax}"`),e.manualMin!==void 0&&e.minAxisType==="custom"&&i.push(`manualMin="${e.manualMin}"`),e.lineWeight!==void 0&&e.lineWeight!==.75&&i.push(`lineWeight="${e.lineWeight}"`),e.type!=="line"&&i.push(`type="${d(e.type)}"`),e.dateAxis&&e.dateRange&&i.push('dateAxis="1"'),i.push(`displayEmptyCellsAs="${d(e.displayEmptyCellsAs??"gap")}"`);for(const s of["markers","high","low","first","last","negative","displayXAxis","displayHidden"])e[s]&&i.push(`${s}="1"`);e.minAxisType&&e.minAxisType!=="individual"&&i.push(`minAxisType="${d(e.minAxisType)}"`),e.maxAxisType&&e.maxAxisType!=="individual"&&i.push(`maxAxisType="${d(e.maxAxisType)}"`),e.rightToLeft&&i.push('rightToLeft="1"');const r=F.map(([s,t])=>{const h=e[t]??(t==="axisColor"?"#000000":e.markerColor),a=e.rawColors?.[s];return`<x14:${s} ${a&&a.hex===h&&a.attrs?a.attrs:`rgb="${I(h)}"`}/>`}).join(""),o=e.dateAxis&&e.dateRange?`<xm:f>${d(e.dateRange)}</xm:f>`:"",l=e.items.map(s=>`<x14:sparkline><xm:f>${d(s.source)}</xm:f><xm:sqref>${d(s.cell)}</xm:sqref></x14:sparkline>`).join("");return`<x14:sparklineGroup ${i.join(" ")}>${r}${o}<x14:sparklines>${l}</x14:sparklines></x14:sparklineGroup>`}function N(e){return e.length===0?"":`<ext xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" uri="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}"><x14:sparklineGroups xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">${e.map(S).join("")}</x14:sparklineGroups></ext>`}function H(e,i){const r=e.replace(/<ext\b[^>]*>\s*<x14:sparklineGroups[\s\S]*?<\/x14:sparklineGroups>\s*<\/ext>/,""),o=N(i),l=/<\/extLst>\s*(?:<\/worksheet>\s*)?$/.exec(r);if(!o)return l?r.replace(/<extLst>\s*<\/extLst>(\s*(?:<\/worksheet>\s*)?)$/,"$1"):r;if(l)return`${r.slice(0,l.index)}${o}${r.slice(l.index)}`;const s=r.lastIndexOf("</worksheet>"),t=`<extLst>${o}</extLst>`;return s>=0?r.slice(0,s)+t+r.slice(s):r+t}function X(e){if(e._sparkIndex&&e._sparkIndexOf===e.sparklines)return e._sparkIndex;const i=new Map;for(const r of e.sparklines??[])for(const o of r.items){const l=E(o.cell);l&&i.set(l.row*16384+l.col,{group:r,source:o.source})}return e._sparkIndex=i,e._sparkIndexOf=e.sparklines,i}function q(e,i,r,o){const l=[],s=G(r.replace(/^.*!/,"").replace(/\$/g,""));if(s===null)return!1;const t=s.r1-s.r0+1,h=s.c1-s.c0+1,a=r.includes("!")?r.slice(0,r.lastIndexOf("!")+1):O(e.name);if(o.r0!==o.r1&&o.c0!==o.c1)return!1;const n=[];for(let m=o.r0;m<=o.r1;m++)for(let k=o.c0;k<=o.c1;k++)n.push([m,k]);const p=n.length,c=p===1||(o.r1>o.r0?t===p:h!==p);return p>1&&t!==p&&h!==p?!1:(n.forEach(([m,k],$)=>{let x;p===1?x=`${C(s.r0,s.c0)}:${C(s.r1,s.c1)}`:c?x=`${C(s.r0+$,s.c0)}:${C(s.r0+$,s.c1)}`:x=`${C(s.r0,s.c0+$)}:${C(s.r1,s.c0+$)}`,l.push({source:`${a}${x}`,cell:C(m,k)})}),e.sparklines=[...e.sparklines??[],{type:i,markers:!1,high:!1,low:!1,first:!1,last:!1,negative:i==="stacked",lineWeight:.75,seriesColor:"#156082",negativeColor:"#C00000",markerColor:"#C00000",axisColor:"#000000",firstColor:"#C00000",lastColor:"#C00000",highColor:"#C00000",lowColor:"#C00000",displayEmptyCellsAs:"gap",minAxisType:"individual",maxAxisType:"individual",items:l}],e.sparklinesChanged=!0,!0)}export{q as addSparkline,_ as parseSparklines,H as patchSparklines,X as sparklineIndex,N as sparklinesXml};
package/core/sparse.js ADDED
@@ -0,0 +1 @@
1
+ const H=16384,y=["cellTypes","cellDropdowns","cellTags","cellButtons"],k=new Set,U=(n,o)=>n*16384+o,b=[];function L(n,{moved:o=!0}={}){y.includes(n)||y.push(n),o||k.add(n)}const v=n=>{for(const o of y)if(n[o])return!0;return!1};function M(n){const o={};for(const t of y)o[t]=n[t]??null;return o}const C=n=>o=>{const t=C(M(o));for(const c of y)o[c]=n[c];return o.cellTypesChanged=!0,t},m=()=>m,N=n=>C(M(n)),O=n=>M(n);function V(n,o,t,c,p=2e6){const i=C(M(n)),r=new Map(n[o]??[]);let a=0;for(const{r0:l,c0:e,r1:s,c1:d}of t){const x=Math.min(s,Math.max(n.maxRow,l)),f=Math.min(d,Math.max(n.maxCol,e));for(let u=l;u<=x&&a<p;u++)for(let w=e;w<=f&&a<p;w++,a++)c===void 0?r.delete(u*16384+w):r.set(u*16384+w,c)}return n[o]=r.size>0?r:null,n.cellTypesChanged=!0,i}function B(n,o,t){return t>0?n>=o?n+t:n:n>=o-t?n+t:n>=o?-1:n}function W(n,o){if(!v(n))return m;const t=C(M(n)),c=o.axis==="row";for(const p of y){if(k.has(p))continue;const i=n[p];if(!i)continue;const r=new Map;for(const[a,l]of i){const e=Math.floor(a/16384),s=a-e*16384,d=c?s:e;if(o.span&&(d<o.span[0]||d>o.span[1])){r.set(a,l);continue}const x=B(c?e:s,o.at,o.n);x<0||r.set(c?x*16384+s:e*16384+x,l)}n[p]=r.size>0?r:null}return n.cellTypesChanged=!0,t}function X(n,o,t,c,p,i,r="row"){if(!v(n))return m;const a=C(M(n));for(const l of y){if(k.has(l))continue;const e=n[l];if(!e)continue;const s=new Map;for(const[d,x]of e){const f=Math.floor(d/16384),u=d-f*16384;f>=o&&f<=t&&u>=c&&u<=p?s.set(r==="row"?(o+i[f-o])*16384+u:f*16384+c+i[u-c],x):s.set(d,x)}n[l]=s}return n.cellTypesChanged=!0,a}function j(n,o,t,c,{cut:p=!1,transpose:i=!1}={}){if(!v(n)&&!v(o))return m;const r=C(M(o)),a=n===o?null:C(M(n)),l=t.r1-t.r0+1,e=t.c1-t.c0+1,s=c.r1-c.r0+1,d=c.c1-c.c0+1;for(const f of y){const u=n[f],w=o[f];if(!u&&!w)continue;const T=[];if(u)for(const[E,K]of u){const Y=Math.floor(E/16384),S=E-Y*16384;Y>=t.r0&&Y<=t.r1&&S>=t.c0&&S<=t.c1&&T.push([Y-t.r0,S-t.c0,K])}const h=new Map(w??[]);if(p&&n===o)for(const[E,K]of T)h.delete((t.r0+E)*16384+t.c0+K);for(let E=c.r0;E<=c.r1;E++)for(let K=c.c0;K<=c.c1;K++)h.delete(E*16384+K);if(T.length>0){const E=i?e:l,K=i?l:e;for(let Y=0;Y+E<=s||Y===0;Y+=E)for(let S=0;S+K<=d||S===0;S+=K)for(const[z,R,D]of T){const _=c.r0+Y+(i?R:z),A=c.c0+S+(i?z:R);h.set(_*16384+A,D)}}if(o[f]=h.size>0?h:null,p&&n!==o&&u){const E=new Map(u);for(const[K,Y]of T)E.delete((t.r0+K)*16384+t.c0+Y);n[f]=E.size>0?E:null}}if(o.cellTypesChanged=!0,n.cellTypesChanged=!0,a===null)return r;const x=(f,u)=>w=>x(f(o),u(n))??w;return x(r,a)}function q(n,o,t){if(!v(n))return m;const c=C(M(n)),p=o.r1-o.r0+1,i=o.c1-o.c0+1;for(const r of y){const a=n[r];if(!a)continue;const l=new Map(a);for(let e=t.r0;e<=t.r1;e++)for(let s=t.c0;s<=t.c1;s++){if(e>=o.r0&&e<=o.r1&&s>=o.c0&&s<=o.c1)continue;const d=o.r0+((e-o.r0)%p+p)%p,x=o.c0+((s-o.c0)%i+i)%i,f=a.get(d*16384+x);f===void 0?l.delete(e*16384+s):l.set(e*16384+s,f)}n[r]=l.size>0?l:null}return n.cellTypesChanged=!0,c}export{j as copySparseBlock,q as fillSparse,m as noUndo,X as permuteSparse,L as registerSparseMap,V as setSparse,b as sheetRenameHooks,W as shiftSparse,U as sparseKey,O as sparseState,N as sparseUndo};
@@ -0,0 +1 @@
1
+ const o=new TextDecoder,n=16384,l=n-1;class c{constructor(){this.pages=[],this.importedCount=0,this.rich=null,this.extras=[],this.extraIndex=null,this.cacheKeys=new Int32Array(n).fill(-1),this.cacheValues=new Array(n),this.lastPage=null}get size(){return this.importedCount+this.extras.length}addPage(e,t){const s=t.length-1;this.pages.push({start:this.importedCount,count:s,bytes:e,offsets:t}),this.importedCount+=s}_pageOf(e){const t=this.lastPage;if(t!==null&&e>=t.start&&e<t.start+t.count)return t;const s=this.pages;let i=0,r=s.length-1;for(;i<r;){const a=i+r+1>>>1;s[a].start<=e?i=a:r=a-1}return this.lastPage=s[i],s[i]}get(e){if(e>=this.importedCount)return this.extras[e-this.importedCount]??"";const t=e&l;if(this.cacheKeys[t]===e)return this.cacheValues[t];const s=this._pageOf(e),i=e-s.start,r=u(s.bytes,s.offsets[i],s.offsets[i+1]);return this.cacheKeys[t]=e,this.cacheValues[t]=r,r}add(e){this.extraIndex===null&&(this.extraIndex=new Map);let t=this.extraIndex.get(e);return t===void 0&&(t=this.extras.length,this.extras.push(e),this.extraIndex.set(e,t)),this.importedCount+t}addRich(e,t){if(!t||t.length===0)return this.add(e);this.extraIndex===null&&(this.extraIndex=new Map);const s=`\0rich${JSON.stringify(t)}\0${e}`;let i=this.extraIndex.get(s);return i===void 0&&(i=this.extras.length,this.extras.push(e),this.extraIndex.set(s,i),this.rich??=new Map,this.rich.set(this.importedCount+i,t)),this.importedCount+i}}function u(h,e,t){const s=t-e;if(s===0)return"";if(s<=48){let i=!0;for(let r=e;r<t;r++)if(h[r]>=128){i=!1;break}if(i)return String.fromCharCode.apply(null,h.subarray(e,t))}return o.decode(h.subarray(e,t))}export{c as StringTable,u as decodeBytes};
package/core/styles.js ADDED
@@ -0,0 +1 @@
1
+ const u='"Aptos Narrow","Calibri","Carlito","Arial Narrow","Helvetica Neue",Arial,sans-serif',h="Aptos Narrow",g=12;function d(){return{fontName:h,fontSize:12,bold:!1,italic:!1,underline:0,strike:!1,color:null,fill:null,borders:null,numFmt:"General",hAlign:null,vAlign:null,wrap:!1,indent:0,rotation:0,shrink:!1}}const x=["pattern","gradient","quotePrefix","vertAlign","namedStyle","unlocked","hiddenFormula","readingOrder","justifyLastLine"];function c(r){return JSON.stringify(r,(e,i)=>e[0]==="_"?void 0:i)}class A{constructor(){this.list=[d()],this.index=null,this.sourceCount=0,this.deriveCache=new Map,this.hasButtons=!1,this.hasExt=!1}get(e){return this.list[e]??this.list[0]}load(e){this.list=e.length?e:[d()],this.sourceCount=e.length,this.index=null,this.hasExt=!1,this.hasButtons=!1,this.deriveCache.clear()}intern(e){if(this.index===null){this.index=new Map;for(let n=this.list.length-1;n>=0;n--)this.index.set(c(this.list[n]),n)}const i=c(e);let l=this.index.get(i);if(l===void 0){if(l=this.list.length,l>=65535)throw new Error("Too many cell formats");this.list.push(e),this.index.set(i,l)}return l}derive(e,i,l=JSON.stringify(i)){let n=this.deriveCache.get(l);n===void 0&&(n=new Map,this.deriveCache.set(l,n));let o=n.get(e);if(o===void 0){const f=this.get(e),s={...f,...i};for(const t of Object.keys(s))t[0]==="_"&&delete s[t];if(i.ext!==void 0){const t={...f.ext??{},...i.ext??{}};for(const a of Object.keys(t))t[a]===null&&delete t[a];Object.keys(t).length>0?(s.ext=t,t.buttons!==void 0&&(this.hasButtons=!0),this.hasExt=!0):delete s.ext}for(const t of x)(s[t]===null||s[t]===void 0||s[t]===!1)&&delete s[t];o=this.intern(s),n.set(e,o)}return o}}function b(r,e){const i=r.fontName===h?u:`"${r.fontName}",${u}`;return`${r.italic?"italic ":""}${r.bold?"bold ":""}${e}px ${i}`}export{h as DEFAULT_FONT,g as DEFAULT_SIZE,u as FONT_FALLBACK,A as StyleTable,b as cssFont,d as defaultStyle};
@@ -0,0 +1,7 @@
1
+ // Generated by tools/gen-table-styles.mjs from ECMA-376 Part 1, presetTableStyles.xml. Don't edit.
2
+ // Definitions (c) Ecma International, from ECMA-376 Part 1, 5th edition. Used to implement the standard, as Ecma's text copyright policy allows: https://www.ecma-international.org/policies/by-ipr/ecma-text-copyright-policy
3
+ //
4
+ // PRESET_DXFS: differential formats: bold, italic, c font color, f fill, and borders l r t b with
5
+ // v and h for the lines inside an element, each [style, color]. A color is [theme index, tint] or hex.
6
+ // PRESET_STYLES: each built-in style's elements as [type, format, stripe size when not 1].
7
+ const t=[{c:[1],f:[9,.79998],l:["thin",[9,.39998]],r:["thin",[9,.39998]],t:["thin",[9,.39998]],b:["thin",[9,.39998]],v:["thin",[9,.39998]],h:["thin",[9,.39998]]},{bold:1,c:[1]},{bold:1,c:[1],t:["medium",[9]]},{f:[9,.59999]},{c:[1],f:[8,.79998],l:["thin",[8,.39998]],r:["thin",[8,.39998]],t:["thin",[8,.39998]],b:["thin",[8,.39998]],v:["thin",[8,.39998]],h:["thin",[8,.39998]]},{bold:1,c:[1],t:["medium",[8]]},{f:[8,.59999]},{c:[1],f:[7,.79998],l:["thin",[7,.39998]],r:["thin",[7,.39998]],t:["thin",[7,.39998]],b:["thin",[7,.39998]],v:["thin",[7,.39998]],h:["thin",[7,.39998]]},{bold:1,c:[1],t:["medium",[7]]},{f:[7,.59999]},{c:[1],f:[6,.79998],l:["thin",[6,.39998]],r:["thin",[6,.39998]],t:["thin",[6,.39998]],b:["thin",[6,.39998]],v:["thin",[6,.39998]],h:["thin",[6,.39998]]},{bold:1,c:[1],t:["medium",[6]]},{f:[6,.59999]},{c:[1],f:[5,.79998],l:["thin",[5,.39998]],r:["thin",[5,.39998]],t:["thin",[5,.39998]],b:["thin",[5,.39998]],v:["thin",[5,.39998]],h:["thin",[5,.39998]]},{bold:1,c:[1],t:["medium",[5]]},{f:[5,.59999]},{c:[1],f:[4,.79998],l:["thin",[4,.39998]],r:["thin",[4,.39998]],t:["thin",[4,.39998]],b:["thin",[4,.39998]],v:["thin",[4,.39998]],h:["thin",[4,.39998]]},{bold:1,c:[1],t:["medium",[4]]},{f:[4,.59999]},{c:[1],f:[0,-.15],l:["thin",[1]],r:["thin",[1]],t:["thin",[1]],b:["thin",[1]],v:["thin",[1]],h:["thin",[1]]},{bold:1,c:[1],t:["medium",[1]]},{f:[0,-.34999]},{c:[1],t:["medium",[1]],b:["medium",[1]]},{bold:1,c:[0],f:[9],b:["medium",[1]]},{t:["double",[1]]},{bold:1,c:[0],f:[9]},{f:[0,-.15]},{bold:1,c:[0],f:[8],b:["medium",[1]]},{bold:1,c:[0],f:[8]},{bold:1,c:[0],f:[7],b:["medium",[1]]},{bold:1,c:[0],f:[7]},{bold:1,c:[0],f:[6],b:["medium",[1]]},{bold:1,c:[0],f:[6]},{bold:1,c:[0],f:[5],b:["medium",[1]]},{bold:1,c:[0],f:[5]},{bold:1,c:[0],f:[4],b:["medium",[1]]},{bold:1,c:[0],f:[4]},{c:[1],l:["thin",[1]],r:["thin",[1]],t:["medium",[1]],b:["medium",[1]],v:["thin",[1]],h:["thin",[1]]},{bold:1,c:[0],f:[1],b:["medium",[1]]},{bold:1,c:[0],f:[1]},{c:[1],f:[9,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[9],b:["thick",[0]]},{bold:1,c:[0],f:[9],t:["thick",[0]]},{c:[1],f:[8,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[8],b:["thick",[0]]},{bold:1,c:[0],f:[8],t:["thick",[0]]},{c:[1],f:[7,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[7],b:["thick",[0]]},{bold:1,c:[0],f:[7],t:["thick",[0]]},{c:[1],f:[6,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[6],b:["thick",[0]]},{bold:1,c:[0],f:[6],t:["thick",[0]]},{c:[1],f:[5,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[5],b:["thick",[0]]},{bold:1,c:[0],f:[5],t:["thick",[0]]},{c:[1],f:[4,.79998],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[4],b:["thick",[0]]},{bold:1,c:[0],f:[4],t:["thick",[0]]},{c:[1],f:[0,-.15],v:["thin",[0]],h:["thin",[0]]},{bold:1,c:[0],f:[1],b:["thick",[0]]},{bold:1,c:[0],f:[1],t:["thick",[0]]},{c:[1],l:["thin",[9,.39998]],r:["thin",[9,.39998]],t:["thin",[9,.39998]],b:["thin",[9,.39998]],h:["thin",[9,.39998]]},{bold:1,c:[1],t:["double",[9]]},{f:[9,.79998]},{c:[1],l:["thin",[8,.39998]],r:["thin",[8,.39998]],t:["thin",[8,.39998]],b:["thin",[8,.39998]],h:["thin",[8,.39998]]},{bold:1,c:[1],t:["double",[8]]},{f:[8,.79998]},{c:[1],l:["thin",[7,.39998]],r:["thin",[7,.39998]],t:["thin",[7,.39998]],b:["thin",[7,.39998]],h:["thin",[7,.39998]]},{bold:1,c:[1],t:["double",[7]]},{f:[7,.79998]},{c:[1],l:["thin",[6,.39998]],r:["thin",[6,.39998]],t:["thin",[6,.39998]],b:["thin",[6,.39998]],h:["thin",[6,.39998]]},{bold:1,c:[1],t:["double",[6]]},{f:[6,.79998]},{c:[1],l:["thin",[5,.39998]],r:["thin",[5,.39998]],t:["thin",[5,.39998]],b:["thin",[5,.39998]],h:["thin",[5,.39998]]},{bold:1,c:[1],t:["double",[5]]},{f:[5,.79998]},{c:[1],l:["thin",[4,.39998]],r:["thin",[4,.39998]],t:["thin",[4,.39998]],b:["thin",[4,.39998]],h:["thin",[4,.39998]]},{bold:1,c:[1],t:["double",[4]]},{f:[4,.79998]},{c:[1],l:["thin",[1]],r:["thin",[1]],t:["thin",[1]],b:["thin",[1]],h:["thin",[1]]},{bold:1,c:[1],t:["double",[1]]},{c:[1],l:["thin",[9]],r:["thin",[9]],t:["thin",[9]],b:["thin",[9]],v:["thin",[9]],h:["thin",[9]]},{bold:1,c:[1],b:["medium",[9]]},{c:[1],l:["thin",[8]],r:["thin",[8]],t:["thin",[8]],b:["thin",[8]],v:["thin",[8]],h:["thin",[8]]},{bold:1,c:[1],b:["medium",[8]]},{c:[1],l:["thin",[7]],r:["thin",[7]],t:["thin",[7]],b:["thin",[7]],v:["thin",[7]],h:["thin",[7]]},{bold:1,c:[1],b:["medium",[7]]},{c:[1],l:["thin",[6]],r:["thin",[6]],t:["thin",[6]],b:["thin",[6]],v:["thin",[6]],h:["thin",[6]]},{bold:1,c:[1],b:["medium",[6]]},{c:[1],l:["thin",[5]],r:["thin",[5]],t:["thin",[5]],b:["thin",[5]],v:["thin",[5]],h:["thin",[5]]},{bold:1,c:[1],b:["medium",[5]]},{c:[1],l:["thin",[4]],r:["thin",[4]],t:["thin",[4]],b:["thin",[4]],v:["thin",[4]],h:["thin",[4]]},{bold:1,c:[1],b:["medium",[4]]},{c:[1],l:["thin",[1]],r:["thin",[1]],t:["thin",[1]],b:["thin",[1]],v:["thin",[1]],h:["thin",[1]]},{bold:1,c:[1],b:["medium",[1]]},{c:[1],l:["thin",[9]],r:["thin",[9]],t:["thin",[9]],b:["thin",[9]]},{t:["thin",[9]]},{l:["thin",[9]]},{c:[1],l:["thin",[8]],r:["thin",[8]],t:["thin",[8]],b:["thin",[8]]},{t:["thin",[8]]},{l:["thin",[8]]},{c:[1],l:["thin",[7]],r:["thin",[7]],t:["thin",[7]],b:["thin",[7]]},{t:["thin",[7]]},{l:["thin",[7]]},{c:[1],l:["thin",[6]],r:["thin",[6]],t:["thin",[6]],b:["thin",[6]]},{t:["thin",[6]]},{l:["thin",[6]]},{c:[1],l:["thin",[5]],r:["thin",[5]],t:["thin",[5]],b:["thin",[5]]},{t:["thin",[5]]},{l:["thin",[5]]},{c:[1],l:["thin",[4]],r:["thin",[4]],t:["thin",[4]],b:["thin",[4]]},{t:["thin",[4]]},{l:["thin",[4]]},{c:[1],l:["thin",[1]],r:["thin",[1]],t:["thin",[1]],b:["thin",[1]]},{t:["thin",[1]]},{l:["thin",[1]]},{c:[9,-.24998],t:["thin",[9]],b:["thin",[9]]},{bold:1,c:[9,-.24998],b:["thin",[9]]},{bold:1,c:[9,-.24998],t:["thin",[9]]},{bold:1,c:[9,-.24998]},{c:[8,-.24998],t:["thin",[8]],b:["thin",[8]]},{bold:1,c:[8,-.24998],b:["thin",[8]]},{bold:1,c:[8,-.24998],t:["thin",[8]]},{bold:1,c:[8,-.24998]},{c:[7,-.24998],t:["thin",[7]],b:["thin",[7]]},{bold:1,c:[7,-.24998],b:["thin",[7]]},{bold:1,c:[7,-.24998],t:["thin",[7]]},{bold:1,c:[7,-.24998]},{c:[6,-.24998],t:["thin",[6]],b:["thin",[6]]},{bold:1,c:[6,-.24998],b:["thin",[6]]},{bold:1,c:[6,-.24998],t:["thin",[6]]},{bold:1,c:[6,-.24998]},{c:[5,-.24998],t:["thin",[5]],b:["thin",[5]]},{bold:1,c:[5,-.24998],b:["thin",[5]]},{bold:1,c:[5,-.24998],t:["thin",[5]]},{bold:1,c:[5,-.24998]},{c:[4,-.24998],t:["thin",[4]],b:["thin",[4]]},{bold:1,c:[4,-.24998],b:["thin",[4]]},{bold:1,c:[4,-.24998],t:["thin",[4]]},{bold:1,c:[4,-.24998]},{c:[1],t:["thin",[1]],b:["thin",[1]]},{bold:1,c:[1],b:["thin",[1]]},{bold:1,c:[1],t:["thin",[1]]},{c:[0],f:[9]},{c:[0],f:[7]},{c:[0],f:[5]},{c:[0],f:[1]},{bold:1,c:[0],f:[1],b:["medium",[0]]},{bold:1,c:[0],f:[9,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[9,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[9,-.24998],l:["medium",[0]]},{f:[9,-.24998]},{c:[0],f:[8]},{bold:1,c:[0],f:[8,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[8,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[8,-.24998],l:["medium",[0]]},{f:[8,-.24998]},{bold:1,c:[0],f:[7,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[7,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[7,-.24998],l:["medium",[0]]},{f:[7,-.24998]},{c:[0],f:[6]},{bold:1,c:[0],f:[6,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[6,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[6,-.24998],l:["medium",[0]]},{f:[6,-.24998]},{bold:1,c:[0],f:[5,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[5,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[5,-.24998],l:["medium",[0]]},{f:[5,-.24998]},{c:[0],f:[4]},{bold:1,c:[0],f:[4,-.49998],t:["medium",[0]]},{bold:1,c:[0],f:[4,-.24998],r:["medium",[0]]},{bold:1,c:[0],f:[4,-.24998],l:["medium",[0]]},{f:[4,-.24998]},{c:[0],f:[1,.45]},{bold:1,c:[0],f:[1,.15],t:["medium",[0]]},{bold:1,c:[0],f:[1,.24998],r:["medium",[0]]},{bold:1,c:[0],f:[1,.24998],l:["medium",[0]]},{f:[1,.24998]},{c:[9,-.24998],f:[9,.79998],v:["thin",[0]]},{bold:1,c:[9,-.24998],b:["thin",[0]]},{bold:1,c:[9,-.24998],f:[9,.59999]},{c:[8,-.24998],f:[8,.79998],v:["thin",[0]]},{bold:1,c:[8,-.24998],b:["thin",[0]]},{bold:1,c:[8,-.24998],f:[8,.59999]},{c:[7,-.24998],f:[7,.79998],v:["thin",[0]]},{bold:1,c:[7,-.24998],b:["thin",[0]]},{bold:1,c:[7,-.24998],f:[7,.59999]},{c:[6,-.24998],f:[6,.79998],v:["thin",[0]]},{bold:1,c:[6,-.24998],b:["thin",[0]]},{bold:1,c:[6,-.24998],f:[6,.59999]},{c:[5,-.24998],f:[5,.79998],v:["thin",[0]]},{bold:1,c:[5,-.24998],b:["thin",[0]]},{bold:1,c:[5,-.24998],f:[5,.59999]},{c:[4,-.24998],f:[4,.79998],v:["thin",[0]]},{bold:1,c:[4,-.24998],b:["thin",[0]]},{bold:1,c:[4,-.24998],f:[4,.59999]},{c:[1,.49998],f:[0,-.15],v:["thin",[0]]},{bold:1,c:[1,.49998],b:["thin",[0]]},{bold:1,c:[1,.49998]},{bold:1,c:[1,.49998],f:[0,-.24998]},{f:[0,-.24998]},{c:[1],f:[9,.79998],l:["thin",[9,.59999]],r:["thin",[9,.59999]],v:["thin",[9,.59999]]},{f:[9,.79998],t:["thin",[9,.59999]],b:["thin",[9,.59999]]},{f:[9,.79998],l:["thin",[9,.59999]],r:["thin",[9,.59999]]},{c:[1],f:[9,.59999],l:["thin",[9,.39998]],r:["thin",[9,.39998]],t:["thin",[9,.39998]]},{bold:1,c:[1],b:["thin",[9,.59999]]},{t:["thin",[1]],b:["thin",[1]]},{c:[1],f:[8,.79998],l:["thin",[8,.59999]],r:["thin",[8,.59999]],v:["thin",[8,.59999]]},{f:[8,.79998],t:["thin",[8,.59999]],b:["thin",[8,.59999]]},{f:[8,.79998],l:["thin",[8,.59999]],r:["thin",[8,.59999]]},{c:[1],f:[8,.59999],l:["thin",[8,.39998]],r:["thin",[8,.39998]],t:["thin",[8,.39998]]},{bold:1,c:[1],b:["thin",[8,.59999]]},{c:[1],f:[7,.79998],l:["thin",[7,.59999]],r:["thin",[7,.59999]],v:["thin",[7,.59999]]},{f:[7,.79998],t:["thin",[7,.59999]],b:["thin",[7,.59999]]},{f:[7,.79998],l:["thin",[7,.59999]],r:["thin",[7,.59999]]},{c:[1],f:[7,.59999],l:["thin",[7,.39998]],r:["thin",[7,.39998]],t:["thin",[7,.39998]]},{bold:1,c:[1],b:["thin",[7,.59999]]},{c:[1],f:[6,.79998],l:["thin",[6,.59999]],r:["thin",[6,.59999]],v:["thin",[6,.59999]]},{f:[6,.79998],t:["thin",[6,.59999]],b:["thin",[6,.59999]]},{f:[6,.79998],l:["thin",[6,.59999]],r:["thin",[6,.59999]]},{c:[1],f:[6,.59999],l:["thin",[6,.39998]],r:["thin",[6,.39998]],t:["thin",[6,.39998]]},{bold:1,c:[1],b:["thin",[6,.59999]]},{c:[1],f:[5,.79998],l:["thin",[5,.59999]],r:["thin",[5,.59999]],v:["thin",[5,.59999]]},{f:[5,.79998],t:["thin",[5,.59999]],b:["thin",[5,.59999]]},{f:[5,.79998],l:["thin",[5,.59999]],r:["thin",[5,.59999]]},{c:[1],f:[5,.59999],l:["thin",[5,.39998]],r:["thin",[5,.39998]],t:["thin",[5,.39998]]},{bold:1,c:[1],b:["thin",[5,.59999]]},{c:[1],f:[4,.79998],l:["thin",[4,.59999]],r:["thin",[4,.59999]],v:["thin",[4,.59999]]},{f:[4,.79998],t:["thin",[4,.59999]],b:["thin",[4,.59999]]},{f:[4,.79998],l:["thin",[4,.59999]],r:["thin",[4,.59999]]},{c:[1],f:[4,.59999],l:["thin",[4,.39998]],r:["thin",[4,.39998]],t:["thin",[4,.39998]]},{bold:1,c:[1],b:["thin",[4,.59999]]},{c:[1],f:[0,-.04999],l:["thin",[0,-.15]],r:["thin",[0,-.15]],v:["thin",[0,-.15]]},{f:[0,-.15],t:["thin",[0,-.24998]],b:["thin",[0,-.24998]]},{f:[0,-.15],l:["thin",[0,-.24998]],r:["thin",[0,-.24998]]},{c:[1],f:[0,-.24998],l:["thin",[0,-.34999]],r:["thin",[0,-.34999]],t:["thin",[0,-.34999]]},{bold:1,c:[1],b:["thin",[0,-.24998]]},{c:[1]},{bold:1,c:[0],f:[9],t:["medium",[9,-.24998]]},{bold:1,c:[1],t:["thin",[9,-.24998]],b:["medium",[9,-.24998]]},{t:["thin",[9,.39998]],b:["thin",[9,.39998]],h:["thin",[9,.39998]]},{l:["thin",[9,.39998]],r:["thin",[9,.39998]]},{bold:1,c:[1],l:["medium",[9,.59999]],r:["medium",[9,.59999]],t:["medium",[9,.59999]],b:["medium",[9,.59999]]},{bold:1,c:[1],f:[9,.59999]},{bold:1,c:[1],f:[9,.79998]},{bold:1,c:[0],f:[8],t:["medium",[8,-.24998]]},{bold:1,c:[1],t:["thin",[8,-.24998]],b:["medium",[8,-.24998]]},{t:["thin",[8,.39998]],b:["thin",[8,.39998]],h:["thin",[8,.39998]]},{l:["thin",[8,.39998]],r:["thin",[8,.39998]]},{bold:1,c:[1],l:["medium",[8,.59999]],r:["medium",[8,.59999]],t:["medium",[8,.59999]],b:["medium",[8,.59999]]},{bold:1,c:[1],f:[8,.59999]},{bold:1,c:[1],f:[8,.79998]},{bold:1,c:[0],f:[7],t:["medium",[7,-.24998]]},{bold:1,c:[1],t:["thin",[7,-.24998]],b:["medium",[7,-.24998]]},{t:["thin",[7,.39998]],b:["thin",[7,.39998]],h:["thin",[7,.39998]]},{l:["thin",[7,.39998]],r:["thin",[7,.39998]]},{bold:1,c:[1],l:["medium",[7,.59999]],r:["medium",[7,.59999]],t:["medium",[7,.59999]],b:["medium",[7,.59999]]},{bold:1,c:[1],f:[7,.59999]},{bold:1,c:[1],f:[7,.79998]},{bold:1,c:[0],f:[6],t:["medium",[6,-.24998]]},{bold:1,c:[1],t:["thin",[6,-.24998]],b:["medium",[6,-.24998]]},{t:["thin",[6,.39998]],b:["thin",[6,.39998]],h:["thin",[6,.39998]]},{l:["thin",[6,.39998]],r:["thin",[6,.39998]]},{bold:1,c:[1],l:["medium",[6,.59999]],r:["medium",[6,.59999]],t:["medium",[6,.59999]],b:["medium",[6,.59999]]},{bold:1,c:[1],f:[6,.59999]},{bold:1,c:[1],f:[6,.79998]},{bold:1,c:[0],f:[5],t:["medium",[5,-.24998]]},{bold:1,c:[1],t:["thin",[5,-.24998]],b:["medium",[5,-.24998]]},{t:["thin",[5,.39998]],b:["thin",[5,.39998]],h:["thin",[5,.39998]]},{l:["thin",[5,.39998]],r:["thin",[5,.39998]]},{bold:1,c:[1],l:["medium",[5,.59999]],r:["medium",[5,.59999]],t:["medium",[5,.59999]],b:["medium",[5,.59999]]},{bold:1,c:[1],f:[5,.59999]},{bold:1,c:[1],f:[5,.79998]},{bold:1,c:[0],f:[4],t:["medium",[4,-.24998]]},{bold:1,c:[1],t:["thin",[4,-.24998]],b:["medium",[4,-.24998]]},{t:["thin",[4,.39998]],b:["thin",[4,.39998]],h:["thin",[4,.39998]]},{l:["thin",[4,.39998]],r:["thin",[4,.39998]]},{bold:1,c:[1],l:["medium",[4,.59999]],r:["medium",[4,.59999]],t:["medium",[4,.59999]],b:["medium",[4,.59999]]},{bold:1,c:[1],f:[4,.59999]},{bold:1,c:[1],f:[4,.79998]},{bold:1,c:[0],f:[1,.49998],t:["medium",[1,.49998]]},{bold:1,c:[1],t:["thin",[1]],b:["medium",[1,.49998]]},{t:["thin",[0,-.24998]],b:["thin",[0,-.24998]],h:["thin",[0,-.24998]]},{l:["medium",[0,-.15]],r:["medium",[0,-.15]]},{bold:1,c:[1],l:["medium",[0,-.24998]],r:["medium",[0,-.24998]],t:["medium",[0,-.24998]],b:["medium",[0,-.24998]]},{bold:1,c:[1],f:[0,-.24998]},{bold:1,c:[1],f:[0,-.15]},{c:[1],h:["thin",[9,.79998]]},{c:[0],f:[9,-.24998],h:["thin",[9,-.24998]]},{bold:1,c:[1],t:["double",[9,-.24998]]},{t:["thin",[9,-.24998]],b:["thin",[9,-.24998]],h:["thin",[9,-.24998]]},{l:["thin",[9,-.24998]],r:["thin",[9,-.24998]]},{bold:1,c:[0]},{bold:1,c:[0],f:[9,.39998]},{b:["thin",[9,.59999]]},{c:[0],f:[9,.39998],b:["thin",[9,.79998]],h:["thin",[9,.39998]]},{f:[9,.79998],b:["thin",[9]]},{t:["thin",[9,.79998]],b:["thin",[9,.79998]]},{c:[1],h:["thin",[8,.79998]]},{c:[0],f:[8,-.24998],h:["thin",[8,-.24998]]},{bold:1,c:[1],t:["double",[8,-.24998]]},{t:["thin",[8,-.24998]],b:["thin",[8,-.24998]],h:["thin",[8,-.24998]]},{l:["thin",[8,-.24998]],r:["thin",[8,-.24998]]},{bold:1,c:[0],f:[8,.39998]},{b:["thin",[8,.59999]]},{c:[0],f:[8,.39998],b:["thin",[8,.79998]],h:["thin",[8,.39998]]},{f:[8,.79998],b:["thin",[8]]},{t:["thin",[8,.79998]],b:["thin",[8,.79998]]},{c:[1],h:["thin",[7,.79998]]},{c:[0],f:[7,-.24998],h:["thin",[7,-.24998]]},{bold:1,c:[1],t:["double",[7,-.24998]]},{t:["thin",[7,-.24998]],b:["thin",[7,-.24998]],h:["thin",[7,-.24998]]},{l:["thin",[7,-.24998]],r:["thin",[7,-.24998]]},{bold:1,c:[0],f:[7,.39998]},{b:["thin",[7,.59999]]},{c:[0],f:[7,.39998],b:["thin",[7,.79998]],h:["thin",[7,.39998]]},{f:[7,.79998],b:["thin",[7]]},{t:["thin",[7,.79998]],b:["thin",[7,.79998]]},{c:[1],h:["thin",[6,.79998]]},{c:[0],f:[6,-.24998],h:["thin",[6,-.24998]]},{bold:1,c:[1],t:["double",[6,-.24998]]},{t:["thin",[6,-.24998]],b:["thin",[6,-.24998]],h:["thin",[6,-.24998]]},{l:["thin",[6,-.24998]],r:["thin",[6,-.24998]]},{bold:1,c:[0],f:[6,.39998]},{b:["thin",[6,.59999]]},{c:[0],f:[6,.39998],b:["thin",[6,.79998]],h:["thin",[6,.39998]]},{f:[6,.79998],b:["thin",[6]]},{t:["thin",[6,.79998]],b:["thin",[6,.79998]]},{c:[1],h:["thin",[5,.79998]]},{c:[0],f:[5,-.24998],h:["thin",[5,-.24998]]},{bold:1,c:[1],t:["double",[5,-.24998]]},{t:["thin",[5,-.24998]],b:["thin",[5,-.24998]],h:["thin",[5,-.24998]]},{l:["thin",[5,-.24998]],r:["thin",[5,-.24998]]},{bold:1,c:[0],f:[5,.39998]},{b:["thin",[5,.59999]]},{c:[0],f:[5,.39998],b:["thin",[5,.79998]],h:["thin",[5,.39998]]},{f:[5,.79998],b:["thin",[5]]},{t:["thin",[5,.79998]],b:["thin",[5,.79998]]},{c:[1],h:["thin",[4,.79998]]},{c:[0],f:[4,-.24998],h:["thin",[4,-.24998]]},{bold:1,c:[1],t:["double",[4,-.24998]]},{t:["thin",[4,-.24998]],b:["thin",[4,-.24998]],h:["thin",[4,-.24998]]},{l:["thin",[4,-.24998]],r:["thin",[4,-.24998]]},{bold:1,c:[0],f:[4,.39998]},{b:["thin",[4,.59999]]},{c:[0],f:[4,.39998],b:["thin",[4,.79998]],h:["thin",[4,.39998]]},{f:[4,.79998],b:["thin",[4]]},{t:["thin",[4,.79998]],b:["thin",[4,.79998]]},{c:[1],h:["thin",[0,-.15]]},{c:[0],f:[1,.49998],h:["thin",[1,.49998]]},{bold:1,c:[1],t:["double",[1,.49998]]},{t:["thin",[1,.49998]],b:["thin",[1,.49998]],h:["thin",[1,.49998]]},{l:["thin",[1,.49998]],r:["thin",[1,.49998]]},{bold:1,c:[0],f:[0,-.34999]},{b:["thin",[0,-.15]]},{c:[0],f:[0,-.34999],b:["thin",[0,-.15]],h:["thin",[0,-.15]]},{f:[0,-.15],b:["thin",[0,-.15]]},{t:["thin",[0,-.15]],b:["thin",[0,-.15]]},{c:[9,-.24998],l:["thin",[9]],r:["thin",[9]],t:["thin",[9]],b:["thin",[9]],v:["thin",[9]]},{c:[9,-.24998],b:["thin",[9]]},{c:[9,-.24998],t:["thin",[9]]},{c:[9,-.24998]},{f:[9,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[8,-.24998],l:["thin",[8]],r:["thin",[8]],t:["thin",[8]],b:["thin",[8]],v:["thin",[8]]},{c:[8,-.24998],b:["thin",[8]]},{c:[8,-.24998],t:["thin",[8]]},{c:[8,-.24998]},{f:[8,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[7,-.24998],l:["thin",[7]],r:["thin",[7]],t:["thin",[7]],b:["thin",[7]],v:["thin",[7]]},{c:[7,-.24998],b:["thin",[7]]},{c:[7,-.24998],t:["thin",[7]]},{c:[7,-.24998]},{f:[7,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[6,-.24998],l:["thin",[6]],r:["thin",[6]],t:["thin",[6]],b:["thin",[6]],v:["thin",[6]]},{c:[6,-.24998],b:["thin",[6]]},{c:[6,-.24998],t:["thin",[6]]},{c:[6,-.24998]},{f:[6,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[5,-.24998],l:["thin",[5]],r:["thin",[5]],t:["thin",[5]],b:["thin",[5]],v:["thin",[5]]},{c:[5,-.24998],b:["thin",[5]]},{c:[5,-.24998],t:["thin",[5]]},{c:[5,-.24998]},{f:[5,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[4,-.24998],l:["thin",[4]],r:["thin",[4]],t:["thin",[4]],b:["thin",[4]],v:["thin",[4]]},{c:[4,-.24998],b:["thin",[4]]},{c:[4,-.24998],t:["thin",[4]]},{c:[4,-.24998]},{f:[4,.79998],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[1],l:["thin",[1,.49998]],r:["thin",[1,.49998]],t:["thin",[1,.49998]],b:["thin",[1,.49998]],v:["thin",[1,.49998]]},{bold:1,c:[1],b:["thin",[1,.49998]]},{bold:1,c:[1],t:["thin",[1,.49998]]},{f:[0,-.15],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{bold:1,c:[1],l:["thin",[0,-.34999]],r:["thin",[0,-.34999]]},{bold:1,c:[1],f:[9,.79998],b:["thin",[9,.39998]]},{bold:1,c:[1],f:[9,.79998],t:["thin",[9,.39998]]},{bold:1,c:[1],t:["thin",[9]],b:["thin",[9]]},{bold:1,c:[1],b:["thin",[9,.39998]]},{f:[9,.79998],b:["thin",[9,.39998]]},{bold:1,c:[1],f:[8,.79998],b:["thin",[8,.39998]]},{bold:1,c:[1],f:[8,.79998],t:["thin",[8,.39998]]},{bold:1,c:[1],t:["thin",[8]],b:["thin",[8]]},{bold:1,c:[1],b:["thin",[8,.39998]]},{f:[8,.79998],b:["thin",[8,.39998]]},{bold:1,c:[1],f:[7,.79998],b:["thin",[7,.39998]]},{bold:1,c:[1],f:[7,.79998],t:["thin",[7,.39998]]},{bold:1,c:[1],t:["thin",[7]],b:["thin",[7]]},{bold:1,c:[1],b:["thin",[7,.39998]]},{f:[7,.79998],b:["thin",[7,.39998]]},{bold:1,c:[1],f:[6,.79998],b:["thin",[6,.39998]]},{bold:1,c:[1],f:[6,.79998],t:["thin",[6,.39998]]},{bold:1,c:[1],t:["thin",[6]],b:["thin",[6]]},{bold:1,c:[1],b:["thin",[6,.39998]]},{f:[6,.79998],b:["thin",[6,.39998]]},{bold:1,c:[1],f:[5,.79998],b:["thin",[5,.39998]]},{bold:1,c:[1],f:[5,.79998],t:["thin",[5,.39998]]},{bold:1,c:[1],t:["thin",[5]],b:["thin",[5]]},{bold:1,c:[1],b:["thin",[5,.39998]]},{f:[5,.79998],b:["thin",[5,.39998]]},{bold:1,c:[1],f:[4,.79998],b:["thin",[4,.39998]]},{bold:1,c:[1],f:[4,.79998],t:["thin",[4,.39998]]},{bold:1,c:[1],t:["thin",[4]],b:["thin",[4]]},{bold:1,c:[1],b:["thin",[4,.39998]]},{f:[4,.79998],b:["thin",[4,.39998]]},{bold:1,c:[1],f:[0,-.15],b:["thin",[0,-.34999]]},{bold:1,c:[1],f:[0,-.15],t:["thin",[0,-.34999]]},{bold:1,c:[1],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{bold:1,c:[1],b:["thin",[0,-.34999]]},{f:[0,-.15],b:["thin",[0,-.34999]]},{c:[9,-.24998],h:["thin",[9,.79998]]},{bold:1,c:[1],l:["medium",[9]],r:["medium",[9]],t:["medium",[9]],b:["medium",[9]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[9]],r:["medium",[9]],t:["medium",[9]],b:["medium",[9]]},{r:["thin",[9]]},{l:["thin",[9,.59999]],r:["thin",[9,.59999]],t:["thin",[9,.59999]],b:["thin",[9,.59999]]},{l:["thin",[9]],r:["thin",[9]],t:["thin",[9]],b:["thin",[9]]},{bold:1,c:[1],f:[9,.79998],t:["thin",[9,.59999]],b:["thin",[9,.59999]]},{t:["thin",[9,.79998]]},{bold:1,c:[1],f:[9,.79998],b:["thin",[0]]},{c:[8,-.24998],h:["thin",[8,.79998]]},{bold:1,c:[1],l:["medium",[8]],r:["medium",[8]],t:["medium",[8]],b:["medium",[8]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[8]],r:["medium",[8]],t:["medium",[8]],b:["medium",[8]]},{r:["thin",[8]]},{l:["thin",[8,.59999]],r:["thin",[8,.59999]],t:["thin",[8,.59999]],b:["thin",[8,.59999]]},{l:["thin",[8]],r:["thin",[8]],t:["thin",[8]],b:["thin",[8]]},{bold:1,c:[1],f:[8,.79998],t:["thin",[8,.59999]],b:["thin",[8,.59999]]},{t:["thin",[8,.79998]]},{bold:1,c:[1],f:[8,.79998],b:["thin",[0]]},{c:[7,-.24998],h:["thin",[7,.79998]]},{bold:1,c:[1],l:["medium",[7]],r:["medium",[7]],t:["medium",[7]],b:["medium",[7]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[7]],r:["medium",[7]],t:["medium",[7]],b:["medium",[7]]},{r:["thin",[7]]},{l:["thin",[7,.59999]],r:["thin",[7,.59999]],t:["thin",[7,.59999]],b:["thin",[7,.59999]]},{l:["thin",[7]],r:["thin",[7]],t:["thin",[7]],b:["thin",[7]]},{bold:1,c:[1],f:[7,.79998],t:["thin",[7,.59999]],b:["thin",[7,.59999]]},{t:["thin",[7,.79998]]},{bold:1,c:[1],f:[7,.79998],b:["thin",[0]]},{c:[6,-.24998],h:["thin",[6,.79998]]},{bold:1,c:[1],l:["medium",[6]],r:["medium",[6]],t:["medium",[6]],b:["medium",[6]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[6]],r:["medium",[6]],t:["medium",[6]],b:["medium",[6]]},{r:["thin",[6]]},{l:["thin",[6,.59999]],r:["thin",[6,.59999]],t:["thin",[6,.59999]],b:["thin",[6,.59999]]},{l:["thin",[6]],r:["thin",[6]],t:["thin",[6]],b:["thin",[6]]},{bold:1,c:[1],f:[6,.79998],t:["thin",[6,.59999]],b:["thin",[6,.59999]]},{t:["thin",[6,.79998]]},{bold:1,c:[1],f:[6,.79998],b:["thin",[0]]},{c:[5,-.24998],h:["thin",[5,.79998]]},{bold:1,c:[1],l:["medium",[5]],r:["medium",[5]],t:["medium",[5]],b:["medium",[5]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[5]],r:["medium",[5]],t:["medium",[5]],b:["medium",[5]]},{r:["thin",[5]]},{l:["thin",[5,.59999]],r:["thin",[5,.59999]],t:["thin",[5,.59999]],b:["thin",[5,.59999]]},{l:["thin",[5]],r:["thin",[5]],t:["thin",[5]],b:["thin",[5]]},{bold:1,c:[1],f:[5,.79998],t:["thin",[5,.59999]],b:["thin",[5,.59999]]},{t:["thin",[5,.79998]]},{bold:1,c:[1],f:[5,.79998],b:["thin",[0]]},{c:[4,-.24998],h:["thin",[4,.79998]]},{bold:1,c:[1],l:["medium",[4]],r:["medium",[4]],t:["medium",[4]],b:["medium",[4]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[4]],r:["medium",[4]],t:["medium",[4]],b:["medium",[4]]},{r:["thin",[4]]},{l:["thin",[4,.59999]],r:["thin",[4,.59999]],t:["thin",[4,.59999]],b:["thin",[4,.59999]]},{l:["thin",[4]],r:["thin",[4]],t:["thin",[4]],b:["thin",[4]]},{bold:1,c:[1],f:[4,.79998],t:["thin",[4,.59999]],b:["thin",[4,.59999]]},{t:["thin",[4,.79998]]},{bold:1,c:[1],f:[4,.79998],b:["thin",[0]]},{bold:1,c:[1],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]],h:["thin",[0]]},{bold:1,c:[1],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{r:["thin",[1,.49998]]},{l:["thin",[0,-.34999]],r:["thin",[0,-.34999]],t:["thin",[0,-.34999]],b:["thin",[0,-.34999]]},{l:["thin",[0,-.45]],r:["thin",[0,-.45]],t:["thin",[0,-.45]],b:["thin",[0,-.45]]},{bold:1,c:[1],f:[0,-.15],t:["thin",[0,-.34999]],b:["thin",[0,-.34999]]},{t:["thin",[0,-.34999]]},{bold:1,c:[1],f:[0,-.15],b:["thin",[0]]},{bold:1,c:[1],f:[0],t:["thin",[9]],b:["thin",[9]]},{f:[9,.79998],l:["thin",[9,.59999]],r:["thin",[9,.59999]],t:["thin",[9,.59999]],b:["thin",[9,.59999]],v:["thin",[9,.59999]],h:["thin",[9,.59999]]},{bold:1,c:[9]},{t:["thin",[9]],b:["thin",[9]]},{bold:1,c:[1],f:[0],t:["thin",[8]],b:["thin",[8]]},{f:[8,.79998],l:["thin",[8,.59999]],r:["thin",[8,.59999]],t:["thin",[8,.59999]],b:["thin",[8,.59999]],v:["thin",[8,.59999]],h:["thin",[8,.59999]]},{bold:1,c:[8]},{t:["thin",[8]],b:["thin",[8]]},{bold:1,c:[1],f:[0],t:["thin",[7]],b:["thin",[7]]},{f:[7,.79998],l:["thin",[7,.59999]],r:["thin",[7,.59999]],t:["thin",[7,.59999]],b:["thin",[7,.59999]],v:["thin",[7,.59999]],h:["thin",[7,.59999]]},{bold:1,c:[7]},{t:["thin",[7]],b:["thin",[7]]},{bold:1,c:[1],f:[0],t:["thin",[6]],b:["thin",[6]]},{f:[6,.79998],l:["thin",[6,.59999]],r:["thin",[6,.59999]],t:["thin",[6,.59999]],b:["thin",[6,.59999]],v:["thin",[6,.59999]],h:["thin",[6,.59999]]},{bold:1,c:[6]},{t:["thin",[6]],b:["thin",[6]]},{bold:1,c:[1],f:[0],t:["thin",[5]],b:["thin",[5]]},{f:[5,.79998],l:["thin",[5,.59999]],r:["thin",[5,.59999]],t:["thin",[5,.59999]],b:["thin",[5,.59999]],v:["thin",[5,.59999]],h:["thin",[5,.59999]]},{bold:1,c:[5]},{t:["thin",[5]],b:["thin",[5]]},{bold:1,c:[1],f:[0],t:["thin",[4]],b:["thin",[4]]},{f:[4,.79998],l:["thin",[4,.59999]],r:["thin",[4,.59999]],t:["thin",[4,.59999]],b:["thin",[4,.59999]],v:["thin",[4,.59999]],h:["thin",[4,.59999]]},{c:[4]},{t:["thin",[4]],b:["thin",[4]]},{bold:1,c:[1],f:[0],t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{f:[0,-.15],t:["thin",[0,-.34999]],b:["thin",[0,-.34999]]},{f:[0,-.15],l:["thin",[0,-.34999]],r:["thin",[0,-.34999]],t:["thin",[0,-.34999]],b:["thin",[0,-.34999]],v:["thin",[0,-.34999]],h:["thin",[0,-.34999]]},{t:["thin",[1,.49998]],b:["thin",[1,.49998]]},{c:[9,.79998],f:[9],v:["thin",[0]]},{f:[9,-.24998],b:["medium",[0]]},{bold:1,c:[0],t:["medium",[0]]},{f:[9,.39998]},{c:[9,.79998]},{c:[8,.79998],f:[8],v:["thin",[0]]},{f:[8,-.24998],b:["medium",[0]]},{f:[8,.39998]},{c:[8,.79998]},{c:[7,.79998],f:[7],v:["thin",[0]]},{f:[7,-.24998],b:["medium",[0]]},{f:[7,.39998]},{c:[7,.79998]},{c:[6,.79998],f:[6],v:["thin",[0]]},{f:[6,-.24998],b:["medium",[0]]},{f:[6,.39998]},{c:[6,.79998]},{c:[5,.79998],f:[5],v:["thin",[0]]},{f:[5,-.24998],b:["medium",[0]]},{f:[5,.39998]},{c:[5,.79998]},{c:[4,.79998],f:[4],v:["thin",[0]]},{f:[4,-.24998],b:["medium",[0]]},{f:[4,.39998]},{c:[4,.79998]},{c:[0,-.15],f:[0,-.49998],v:["thin",[0]]},{f:[1,.49998],b:["medium",[0]]},{f:[1,.49998]},{f:[0,-.45]},{bold:1,c:[0,-.15]},{c:[9,.79998],f:[9]},{t:["thin",[9,.39998]],b:["thin",[9,.39998]]},{f:[9,-.24998],l:["thin",[9,.39998]],r:["thin",[9,.39998]],t:["thin",[9,.39998]],b:["thin",[9,.39998]]},{b:["thin",[9,.39998]]},{bold:1,c:[0],f:[9,-.24998]},{c:[8,.79998],f:[8]},{t:["thin",[8,.39998]],b:["thin",[8,.39998]]},{f:[8,-.24998],l:["thin",[8,.39998]],r:["thin",[8,.39998]],t:["thin",[8,.39998]],b:["thin",[8,.39998]]},{b:["thin",[8,.39998]]},{bold:1,c:[0],f:[8,-.24998]},{c:[7,.79998],f:[7]},{t:["thin",[7,.39998]],b:["thin",[7,.39998]]},{f:[7,-.24998],l:["thin",[7,.39998]],r:["thin",[7,.39998]],t:["thin",[7,.39998]],b:["thin",[7,.39998]]},{b:["thin",[7,.39998]]},{bold:1,c:[0],f:[7,-.24998]},{c:[6,.79998],f:[6]},{t:["thin",[6,.39998]],b:["thin",[6,.39998]]},{f:[6,-.24998],l:["thin",[6,.39998]],r:["thin",[6,.39998]],t:["thin",[6,.39998]],b:["thin",[6,.39998]]},{b:["thin",[6,.39998]]},{bold:1,c:[0],f:[6,-.24998]},{c:[5,.79998],f:[5]},{t:["thin",[5,.39998]],b:["thin",[5,.39998]]},{f:[5,-.24998],l:["thin",[5,.39998]],r:["thin",[5,.39998]],t:["thin",[5,.39998]],b:["thin",[5,.39998]]},{b:["thin",[5,.39998]]},{bold:1,c:[0],f:[5,-.24998]},{c:[4,.79998],f:[4]},{t:["thin",[4,.39998]],b:["thin",[4,.39998]]},{f:[4,-.24998],l:["thin",[4,.39998]],r:["thin",[4,.39998]],t:["thin",[4,.39998]],b:["thin",[4,.39998]]},{b:["thin",[4,.39998]]},{bold:1,c:[0],f:[4,-.24998]},{c:[0,-.15],f:[0,-.45]},{t:["thin",[0,-.34999]],b:["thin",[0,-.34999]]},{l:["thin",[0,-.24998]],r:["thin",[0,-.24998]]},{f:[1,.49998],l:["thin",[0,-.34999]],r:["thin",[0,-.34999]],t:["thin",[0,-.34999]],b:["thin",[0,-.34999]]},{b:["thin",[0,-.34999]]},{bold:1,c:[0],f:[1,.49998],b:["thin",[4,.79998]]},{c:[1],f:[9,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{bold:1,c:[0],f:[1,.24998]},{t:["thin",[9,.59999]],b:["thin",[9,.59999]]},{t:["medium",[9,.79998]]},{bold:1,c:[1],f:[9,.59999],b:["medium",[9,.79998]]},{l:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{c:[1],f:[8,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[8,.59999]],b:["thin",[8,.59999]]},{t:["medium",[8,.79998]]},{bold:1,c:[1],f:[8,.59999],b:["medium",[8,.79998]]},{c:[1],f:[7,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[7,.59999]],b:["thin",[7,.59999]]},{t:["medium",[7,.79998]]},{bold:1,c:[1],f:[7,.59999],b:["medium",[7,.79998]]},{c:[1],f:[6,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[6,.59999]],b:["thin",[6,.59999]]},{t:["medium",[6,.79998]]},{bold:1,c:[1],f:[6,.59999],b:["medium",[6,.79998]]},{c:[1],f:[5,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[5,.59999]],b:["thin",[5,.59999]]},{t:["medium",[5,.79998]]},{bold:1,c:[1],f:[5,.59999],b:["medium",[5,.79998]]},{c:[1],f:[4,.79998],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[4,.59999]],b:["thin",[4,.59999]]},{t:["medium",[4,.79998]]},{bold:1,c:[1],f:[4,.59999],b:["medium",[4,.79998]]},{c:[1],f:[0,-.15],l:["medium",[1,.49998]],r:["medium",[1,.49998]],t:["medium",[1,.49998]],b:["medium",[1,.49998]]},{t:["thin",[0,-.24998]],b:["thin",[0,-.24998]]},{l:["thin",[0,-.45]],r:["thin",[0,-.45]]},{t:["medium",[0,-.24998]]},{bold:1,c:[1],f:[0,-.24998],b:["medium",[0,-.15]]},{c:[1],f:[9,.59999],h:["thin",[9,.79998]]},{bold:1,c:[0],f:[9,-.49998],b:["thin",[9]],h:["thin",[9,-.49998]]},{bold:1,c:[0],f:[9,-.49998]},{l:["thin",[9,.79998]],r:["thin",[9,.79998]]},{bold:1,c:[1],b:["thin",[9,.79998]]},{bold:1,c:[1],f:[9,.79998],t:["thin",[9,.39998]],b:["thin",[9,.39998]]},{bold:1,c:[0],f:[9,-.49998],h:["thin",[9,-.49998]]},{c:[0],f:[9,-.49998],h:["thin",[9,-.49998]]},{c:[1],f:[8,.59999],h:["thin",[8,.79998]]},{bold:1,c:[0],f:[8,-.49998],b:["thin",[8]],h:["thin",[8,-.49998]]},{bold:1,c:[0],f:[8,-.49998]},{l:["thin",[8,.79998]],r:["thin",[8,.79998]]},{bold:1,c:[1],b:["thin",[8,.79998]]},{bold:1,c:[1],f:[8,.79998],t:["thin",[8,.39998]],b:["thin",[8,.39998]]},{bold:1,c:[0],f:[8,-.49998],h:["thin",[8,-.49998]]},{c:[0],f:[8,-.49998],h:["thin",[8,-.49998]]},{c:[1],f:[7,.59999],h:["thin",[7,.79998]]},{bold:1,c:[0],f:[7,-.49998],b:["thin",[7]],h:["thin",[7,-.49998]]},{bold:1,c:[0],f:[7,-.49998]},{l:["thin",[7,.79998]],r:["thin",[7,.79998]]},{bold:1,c:[1],b:["thin",[7,.79998]]},{bold:1,c:[1],f:[7,.79998],t:["thin",[7,.39998]],b:["thin",[7,.39998]]},{bold:1,c:[0],f:[7,-.49998],h:["thin",[7,-.49998]]},{c:[0],f:[7,-.49998],h:["thin",[7,-.49998]]},{c:[1],f:[6,.59999],h:["thin",[6,.79998]]},{bold:1,c:[0],f:[6,-.49998],b:["thin",[6]],h:["thin",[6,-.49998]]},{bold:1,c:[0],f:[6,-.49998]},{l:["thin",[6,.79998]],r:["thin",[6,.79998]]},{bold:1,c:[1],b:["thin",[6,.79998]]},{bold:1,c:[1],f:[6,.79998],t:["thin",[6,.39998]],b:["thin",[6,.39998]]},{bold:1,c:[0],f:[6,-.49998],h:["thin",[6,-.49998]]},{c:[0],f:[6,-.49998],h:["thin",[6,-.49998]]},{c:[1],f:[5,.59999],h:["thin",[5,.79998]]},{bold:1,c:[0],f:[5,-.49998],b:["thin",[5]],h:["thin",[5,-.49998]]},{bold:1,c:[0],f:[5,-.49998]},{l:["thin",[5,.79998]],r:["thin",[5,.79998]]},{bold:1,c:[1],b:["thin",[5,.79998]]},{bold:1,c:[1],f:[5,.79998],t:["thin",[5,.39998]],b:["thin",[5,.39998]]},{bold:1,c:[0],f:[5,-.49998],h:["thin",[5,-.49998]]},{c:[0],f:[5,-.49998],h:["thin",[5,-.49998]]},{c:[1],f:[4,.59999],h:["thin",[4,.79998]]},{bold:1,c:[0],f:[4,-.49998],b:["thin",[4]],h:["thin",[4,-.49998]]},{bold:1,c:[0],f:[4,-.49998]},{l:["thin",[4,.79998]],r:["thin",[4,.79998]]},{bold:1,c:[1],b:["thin",[4,.79998]]},{bold:1,c:[1],f:[4,.79998],t:["thin",[4,.39998]],b:["thin",[4,.39998]]},{bold:1,c:[0],f:[4,-.49998],h:["thin",[4,-.49998]]},{c:[0],f:[4,-.49998],h:["thin",[4,-.49998]]},{c:[1],f:[0,-.24998],h:["thin",[0,-.15]]},{bold:1,c:[0],f:[1,.49998],b:["thin",[0]],h:["thin",[1,.49998]]},{bold:1,c:[0],f:[1,.49998]},{l:["thin",[0,-.15]],r:["thin",[0,-.15]]},{bold:1,c:[0],f:[1,.49998],h:["thin",[1,.49998]]}],i={PivotStyleLight1:[["wholeTable",350],["headerRow",427],["totalRow",516],["firstRowStripe",517],["firstColumnStripe",518],["firstSubtotalRow",1],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["pageFieldLabels",519],["pageFieldValues",519]],PivotStyleLight2:[["wholeTable",340],["headerRow",422],["totalRow",512],["firstRowStripe",230],["firstColumnStripe",513],["firstSubtotalRow",1],["secondSubtotalRow",514],["firstRowSubheading",1],["secondRowSubheading",514],["pageFieldLabels",515],["pageFieldValues",515]],PivotStyleLight3:[["wholeTable",330],["headerRow",417],["totalRow",508],["firstRowStripe",225],["firstColumnStripe",509],["firstSubtotalRow",1],["secondSubtotalRow",510],["firstRowSubheading",1],["secondRowSubheading",510],["pageFieldLabels",511],["pageFieldValues",511]],PivotStyleLight4:[["wholeTable",320],["headerRow",412],["totalRow",504],["firstRowStripe",220],["firstColumnStripe",505],["firstSubtotalRow",1],["secondSubtotalRow",506],["firstRowSubheading",1],["secondRowSubheading",506],["pageFieldLabels",507],["pageFieldValues",507]],PivotStyleLight5:[["wholeTable",310],["headerRow",407],["totalRow",500],["firstRowStripe",215],["firstColumnStripe",501],["firstSubtotalRow",1],["secondSubtotalRow",502],["firstRowSubheading",1],["secondRowSubheading",502],["pageFieldLabels",503],["pageFieldValues",503]],PivotStyleLight6:[["wholeTable",300],["headerRow",402],["totalRow",496],["firstRowStripe",210],["firstColumnStripe",497],["firstSubtotalRow",1],["secondSubtotalRow",498],["firstRowSubheading",1],["secondRowSubheading",498],["pageFieldLabels",499],["pageFieldValues",499]],PivotStyleLight7:[["wholeTable",289],["headerRow",397],["totalRow",492],["firstRowStripe",204],["firstColumnStripe",493],["firstSubtotalRow",1],["secondSubtotalRow",494],["firstRowSubheading",1],["secondRowSubheading",494],["pageFieldLabels",495],["pageFieldValues",495]],PivotStyleLight8:[["wholeTable",350],["headerRow",484],["totalRow",485],["firstColumn",486],["firstRowStripe",487],["firstColumnStripe",488],["firstSubtotalRow",489],["secondSubtotalRow",1],["secondColumnSubheading",490],["firstRowSubheading",491],["secondRowSubheading",1]],PivotStyleLight9:[["wholeTable",475],["headerRow",476],["totalRow",477],["firstColumn",478],["firstRowStripe",479],["firstColumnStripe",480],["firstSubtotalRow",481],["secondSubtotalRow",1],["secondColumnSubheading",482],["thirdColumnSubheading",482],["firstRowSubheading",483],["secondRowSubheading",1]],PivotStyleLight10:[["wholeTable",466],["headerRow",467],["totalRow",468],["firstColumn",469],["firstRowStripe",470],["firstColumnStripe",471],["firstSubtotalRow",472],["secondSubtotalRow",1],["secondColumnSubheading",473],["thirdColumnSubheading",473],["firstRowSubheading",474],["secondRowSubheading",1]],PivotStyleLight11:[["wholeTable",457],["headerRow",458],["totalRow",459],["firstColumn",460],["firstRowStripe",461],["firstColumnStripe",462],["firstSubtotalRow",463],["secondSubtotalRow",1],["secondColumnSubheading",464],["thirdColumnSubheading",464],["firstRowSubheading",465],["secondRowSubheading",1]],PivotStyleLight12:[["wholeTable",448],["headerRow",449],["totalRow",450],["firstColumn",451],["firstRowStripe",452],["firstColumnStripe",453],["firstSubtotalRow",454],["secondSubtotalRow",1],["secondColumnSubheading",455],["thirdColumnSubheading",455],["firstRowSubheading",456],["secondRowSubheading",1]],PivotStyleLight13:[["wholeTable",439],["headerRow",440],["totalRow",441],["firstColumn",442],["firstRowStripe",443],["firstColumnStripe",444],["firstSubtotalRow",445],["secondSubtotalRow",1],["secondColumnSubheading",446],["thirdColumnSubheading",446],["firstRowSubheading",447],["secondRowSubheading",1]],PivotStyleLight14:[["wholeTable",430],["headerRow",431],["totalRow",432],["firstColumn",433],["firstRowStripe",434],["firstColumnStripe",435],["firstSubtotalRow",436],["secondSubtotalRow",1],["secondColumnSubheading",437],["thirdColumnSubheading",437],["firstRowSubheading",438],["secondRowSubheading",1]],PivotStyleLight15:[["headerRow",425],["totalRow",426],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",427],["secondSubtotalRow",1],["firstRowSubheading",428],["secondRowSubheading",1],["pageFieldLabels",429],["pageFieldValues",429]],PivotStyleLight16:[["headerRow",420],["totalRow",421],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",422],["secondSubtotalRow",1],["firstRowSubheading",423],["secondRowSubheading",1],["pageFieldLabels",424],["pageFieldValues",424]],PivotStyleLight17:[["headerRow",415],["totalRow",416],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",417],["secondSubtotalRow",1],["firstRowSubheading",418],["secondRowSubheading",1],["pageFieldLabels",419],["pageFieldValues",419]],PivotStyleLight18:[["headerRow",410],["totalRow",411],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",412],["secondSubtotalRow",1],["firstRowSubheading",413],["secondRowSubheading",1],["pageFieldLabels",414],["pageFieldValues",414]],PivotStyleLight19:[["headerRow",405],["totalRow",406],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",407],["secondSubtotalRow",1],["firstRowSubheading",408],["secondRowSubheading",1],["pageFieldLabels",409],["pageFieldValues",409]],PivotStyleLight20:[["headerRow",400],["totalRow",401],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",402],["secondSubtotalRow",1],["firstRowSubheading",403],["secondRowSubheading",1],["pageFieldLabels",404],["pageFieldValues",404]],PivotStyleLight21:[["headerRow",395],["totalRow",396],["firstRowStripe",26],["firstColumnStripe",236],["firstSubtotalColumn",26],["firstSubtotalRow",397],["secondSubtotalRow",1],["firstRowSubheading",398],["secondRowSubheading",1],["pageFieldLabels",399],["pageFieldValues",399]],PivotStyleLight22:[["wholeTable",390],["headerRow",391],["totalRow",392],["firstColumn",1],["firstRowStripe",393],["firstColumnStripe",26],["firstSubtotalColumn",394],["firstSubtotalRow",1],["secondSubtotalRow",1],["pageFieldLabels",1]],PivotStyleLight23:[["wholeTable",385],["headerRow",386],["totalRow",387],["firstColumn",388],["firstRowStripe",389],["firstColumnStripe",78],["firstSubtotalColumn",388],["firstSubtotalRow",388],["secondSubtotalRow",388],["pageFieldLabels",388]],PivotStyleLight24:[["wholeTable",380],["headerRow",381],["totalRow",382],["firstColumn",383],["firstRowStripe",384],["firstColumnStripe",75],["firstSubtotalColumn",383],["firstSubtotalRow",383],["secondSubtotalRow",383],["pageFieldLabels",383]],PivotStyleLight25:[["wholeTable",375],["headerRow",376],["totalRow",377],["firstColumn",378],["firstRowStripe",379],["firstColumnStripe",72],["firstSubtotalColumn",378],["firstSubtotalRow",378],["secondSubtotalRow",378],["pageFieldLabels",378]],PivotStyleLight26:[["wholeTable",370],["headerRow",371],["totalRow",372],["firstColumn",373],["firstRowStripe",374],["firstColumnStripe",69],["firstSubtotalColumn",373],["firstSubtotalRow",373],["secondSubtotalRow",373],["pageFieldLabels",373]],PivotStyleLight27:[["wholeTable",365],["headerRow",366],["totalRow",367],["firstColumn",368],["firstRowStripe",369],["firstColumnStripe",66],["firstSubtotalColumn",368],["firstSubtotalRow",368],["secondSubtotalRow",368],["pageFieldLabels",368]],PivotStyleLight28:[["wholeTable",360],["headerRow",361],["totalRow",362],["firstColumn",363],["firstRowStripe",364],["firstColumnStripe",63],["firstSubtotalColumn",363],["firstSubtotalRow",363],["secondSubtotalRow",363],["pageFieldLabels",363]],PivotStyleMedium1:[["wholeTable",350],["headerRow",351],["totalRow",352],["firstRowStripe",353],["firstColumnStripe",354],["firstHeaderCell",294],["firstSubtotalRow",355],["secondSubtotalRow",288],["firstColumnSubheading",356],["firstRowSubheading",357],["secondRowSubheading",358],["pageFieldLabels",359],["pageFieldValues",359]],PivotStyleMedium2:[["wholeTable",340],["headerRow",341],["totalRow",342],["firstRowStripe",343],["firstColumnStripe",344],["firstHeaderCell",294],["firstSubtotalRow",345],["secondSubtotalRow",288],["firstColumnSubheading",346],["firstRowSubheading",347],["secondRowSubheading",348],["pageFieldLabels",349],["pageFieldValues",349]],PivotStyleMedium3:[["wholeTable",330],["headerRow",331],["totalRow",332],["firstRowStripe",333],["firstColumnStripe",334],["firstHeaderCell",294],["firstSubtotalRow",335],["secondSubtotalRow",288],["firstColumnSubheading",336],["firstRowSubheading",337],["secondRowSubheading",338],["pageFieldLabels",339],["pageFieldValues",339]],PivotStyleMedium4:[["wholeTable",320],["headerRow",321],["totalRow",322],["firstRowStripe",323],["firstColumnStripe",324],["firstHeaderCell",294],["firstSubtotalRow",325],["secondSubtotalRow",288],["firstColumnSubheading",326],["firstRowSubheading",327],["secondRowSubheading",328],["pageFieldLabels",329],["pageFieldValues",329]],PivotStyleMedium5:[["wholeTable",310],["headerRow",311],["totalRow",312],["firstRowStripe",313],["firstColumnStripe",314],["firstHeaderCell",294],["firstSubtotalRow",315],["secondSubtotalRow",288],["firstColumnSubheading",316],["firstRowSubheading",317],["secondRowSubheading",318],["pageFieldLabels",319],["pageFieldValues",319]],PivotStyleMedium6:[["wholeTable",300],["headerRow",301],["totalRow",302],["firstRowStripe",303],["firstColumnStripe",304],["firstHeaderCell",294],["firstSubtotalRow",305],["secondSubtotalRow",288],["firstColumnSubheading",306],["firstRowSubheading",307],["secondRowSubheading",308],["pageFieldLabels",309],["pageFieldValues",309]],PivotStyleMedium7:[["wholeTable",289],["headerRow",290],["totalRow",291],["firstRowStripe",292],["firstColumnStripe",293],["firstHeaderCell",294],["firstSubtotalRow",295],["secondSubtotalRow",288],["firstColumnSubheading",296],["firstRowSubheading",297],["secondRowSubheading",298],["pageFieldLabels",299],["pageFieldValues",299]],PivotStyleMedium8:[["wholeTable",239],["headerRow",282],["totalRow",283],["firstRowStripe",284],["firstColumnStripe",285],["firstSubtotalColumn",286],["firstSubtotalRow",287],["secondSubtotalRow",1],["firstRowSubheading",288],["secondRowSubheading",1],["pageFieldLabels",26],["pageFieldValues",26]],PivotStyleMedium9:[["wholeTable",239],["headerRow",275],["totalRow",276],["firstRowStripe",277],["firstColumnStripe",278],["firstSubtotalColumn",279],["firstSubtotalRow",280],["secondSubtotalRow",1],["firstRowSubheading",281],["secondRowSubheading",1],["pageFieldLabels",78],["pageFieldValues",78]],PivotStyleMedium10:[["wholeTable",239],["headerRow",268],["totalRow",269],["firstRowStripe",270],["firstColumnStripe",271],["firstSubtotalColumn",272],["firstSubtotalRow",273],["secondSubtotalRow",1],["firstRowSubheading",274],["secondRowSubheading",1],["pageFieldLabels",75],["pageFieldValues",75]],PivotStyleMedium11:[["wholeTable",239],["headerRow",261],["totalRow",262],["firstRowStripe",263],["firstColumnStripe",264],["firstSubtotalColumn",265],["firstSubtotalRow",266],["secondSubtotalRow",1],["firstRowSubheading",267],["secondRowSubheading",1],["pageFieldLabels",72],["pageFieldValues",72]],PivotStyleMedium12:[["wholeTable",239],["headerRow",254],["totalRow",255],["firstRowStripe",256],["firstColumnStripe",257],["firstSubtotalColumn",258],["firstSubtotalRow",259],["secondSubtotalRow",1],["firstRowSubheading",260],["secondRowSubheading",1],["pageFieldLabels",69],["pageFieldValues",69]],PivotStyleMedium13:[["wholeTable",239],["headerRow",247],["totalRow",248],["firstRowStripe",249],["firstColumnStripe",250],["firstSubtotalColumn",251],["firstSubtotalRow",252],["secondSubtotalRow",1],["firstRowSubheading",253],["secondRowSubheading",1],["pageFieldLabels",66],["pageFieldValues",66]],PivotStyleMedium14:[["wholeTable",239],["headerRow",240],["totalRow",241],["firstRowStripe",242],["firstColumnStripe",243],["firstSubtotalColumn",244],["firstSubtotalRow",245],["secondSubtotalRow",1],["firstRowSubheading",246],["secondRowSubheading",1],["pageFieldLabels",63],["pageFieldValues",63]],PivotStyleMedium15:[["wholeTable",234],["headerRow",146],["totalRow",146],["firstRowStripe",235],["firstColumnStripe",236],["firstSubtotalColumn",237],["firstSubtotalRow",238],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium16:[["wholeTable",229],["headerRow",146],["totalRow",146],["firstRowStripe",230],["firstColumnStripe",231],["firstSubtotalColumn",232],["firstSubtotalRow",233],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium17:[["wholeTable",224],["headerRow",146],["totalRow",146],["firstRowStripe",225],["firstColumnStripe",226],["firstSubtotalColumn",227],["firstSubtotalRow",228],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium18:[["wholeTable",219],["headerRow",146],["totalRow",146],["firstRowStripe",220],["firstColumnStripe",221],["firstSubtotalColumn",222],["firstSubtotalRow",223],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium19:[["wholeTable",214],["headerRow",146],["totalRow",146],["firstRowStripe",215],["firstColumnStripe",216],["firstSubtotalColumn",217],["firstSubtotalRow",218],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium20:[["wholeTable",209],["headerRow",146],["totalRow",146],["firstRowStripe",210],["firstColumnStripe",211],["firstSubtotalColumn",212],["firstSubtotalRow",213],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium21:[["wholeTable",203],["headerRow",146],["totalRow",146],["firstRowStripe",204],["firstColumnStripe",205],["firstSubtotalColumn",206],["firstSubtotalRow",207],["secondSubtotalRow",200],["firstRowSubheading",1],["secondRowSubheading",200],["thirdRowSubheading",1],["pageFieldLabels",208],["pageFieldValues",208]],PivotStyleMedium22:[["wholeTable",198],["headerRow",199],["totalRow",200],["firstColumn",201],["secondRowStripe",202],["secondColumnStripe",202],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",201]],PivotStyleMedium23:[["wholeTable",195],["headerRow",196],["totalRow",139],["firstColumn",197],["secondRowStripe",18],["secondColumnStripe",18],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",197]],PivotStyleMedium24:[["wholeTable",192],["headerRow",193],["totalRow",135],["firstColumn",194],["secondRowStripe",15],["secondColumnStripe",15],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",194]],PivotStyleMedium25:[["wholeTable",189],["headerRow",190],["totalRow",131],["firstColumn",191],["secondRowStripe",12],["secondColumnStripe",12],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",191]],PivotStyleMedium26:[["wholeTable",186],["headerRow",187],["totalRow",127],["firstColumn",188],["secondRowStripe",9],["secondColumnStripe",9],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",188]],PivotStyleMedium27:[["wholeTable",183],["headerRow",184],["totalRow",123],["firstColumn",185],["secondRowStripe",6],["secondColumnStripe",6],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",185]],PivotStyleMedium28:[["wholeTable",180],["headerRow",181],["totalRow",119],["firstColumn",182],["secondRowStripe",3],["secondColumnStripe",3],["firstSubtotalRow",1],["secondSubtotalRow",1],["firstRowSubheading",1],["pageFieldLabels",182]],PivotStyleDark1:[["wholeTable",666],["headerRow",667],["totalRow",668],["secondRowStripe",21],["secondColumnStripe",669],["firstSubtotalRow",428],["firstRowSubheading",489],["secondRowSubheading",1],["pageFieldLabels",670],["pageFieldValues",351]],PivotStyleDark2:[["wholeTable",658],["headerRow",659],["totalRow",660],["secondRowStripe",543],["secondColumnStripe",661],["firstSubtotalRow",662],["firstRowSubheading",663],["secondRowSubheading",1],["pageFieldLabels",664],["pageFieldValues",665]],PivotStyleDark3:[["wholeTable",650],["headerRow",651],["totalRow",652],["secondRowStripe",539],["secondColumnStripe",653],["firstSubtotalRow",654],["firstRowSubheading",655],["secondRowSubheading",1],["pageFieldLabels",656],["pageFieldValues",657]],PivotStyleDark4:[["wholeTable",642],["headerRow",643],["totalRow",644],["secondRowStripe",535],["secondColumnStripe",645],["firstSubtotalRow",646],["firstRowSubheading",647],["secondRowSubheading",1],["pageFieldLabels",648],["pageFieldValues",649]],PivotStyleDark5:[["wholeTable",634],["headerRow",635],["totalRow",636],["secondRowStripe",531],["secondColumnStripe",637],["firstSubtotalRow",638],["firstRowSubheading",639],["secondRowSubheading",1],["pageFieldLabels",640],["pageFieldValues",641]],PivotStyleDark6:[["wholeTable",626],["headerRow",627],["totalRow",628],["secondRowStripe",527],["secondColumnStripe",629],["firstSubtotalRow",630],["firstRowSubheading",631],["secondRowSubheading",1],["pageFieldLabels",632],["pageFieldValues",633]],PivotStyleDark7:[["wholeTable",618],["headerRow",619],["totalRow",620],["secondRowStripe",523],["secondColumnStripe",621],["firstSubtotalRow",622],["firstRowSubheading",623],["secondRowSubheading",1],["pageFieldLabels",624],["pageFieldValues",625]],PivotStyleDark8:[["wholeTable",613],["headerRow",587],["totalRow",587],["secondRowStripe",614],["firstColumnStripe",615],["secondColumnStripe",615],["firstSubtotalRow",287],["secondColumnSubheading",616],["thirdColumnSubheading",616],["firstRowSubheading",617],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark9:[["wholeTable",609],["headerRow",587],["totalRow",587],["secondRowStripe",610],["firstColumnStripe",278],["secondColumnStripe",278],["firstSubtotalRow",280],["secondColumnSubheading",611],["thirdColumnSubheading",611],["firstRowSubheading",612],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark10:[["wholeTable",605],["headerRow",587],["totalRow",587],["secondRowStripe",606],["firstColumnStripe",271],["secondColumnStripe",271],["firstSubtotalRow",273],["secondColumnSubheading",607],["thirdColumnSubheading",607],["firstRowSubheading",608],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark11:[["wholeTable",601],["headerRow",587],["totalRow",587],["secondRowStripe",602],["firstColumnStripe",264],["secondColumnStripe",264],["firstSubtotalRow",266],["secondColumnSubheading",603],["thirdColumnSubheading",603],["firstRowSubheading",604],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark12:[["wholeTable",597],["headerRow",587],["totalRow",587],["secondRowStripe",598],["firstColumnStripe",257],["secondColumnStripe",257],["firstSubtotalRow",259],["secondColumnSubheading",599],["thirdColumnSubheading",599],["firstRowSubheading",600],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark13:[["wholeTable",593],["headerRow",587],["totalRow",587],["secondRowStripe",594],["firstColumnStripe",250],["secondColumnStripe",250],["firstSubtotalRow",252],["secondColumnSubheading",595],["thirdColumnSubheading",595],["firstRowSubheading",596],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark14:[["wholeTable",586],["headerRow",587],["totalRow",587],["secondRowStripe",588],["firstColumnStripe",243],["secondColumnStripe",243],["firstSubtotalRow",245],["secondColumnSubheading",589],["thirdColumnSubheading",589],["firstRowSubheading",590],["secondRowSubheading",1],["pageFieldLabels",591],["pageFieldValues",592]],PivotStyleDark15:[["wholeTable",580],["headerRow",39],["totalRow",39],["firstRowStripe",581],["firstColumnStripe",582],["firstSubtotalColumn",583],["firstSubtotalRow",294],["firstColumnSubheading",584],["firstRowSubheading",585],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark16:[["wholeTable",575],["headerRow",39],["totalRow",39],["firstRowStripe",576],["firstColumnStripe",278],["firstSubtotalColumn",577],["firstSubtotalRow",294],["firstColumnSubheading",578],["firstRowSubheading",579],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark17:[["wholeTable",570],["headerRow",39],["totalRow",39],["firstRowStripe",571],["firstColumnStripe",271],["firstSubtotalColumn",572],["firstSubtotalRow",294],["firstColumnSubheading",573],["firstRowSubheading",574],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark18:[["wholeTable",565],["headerRow",39],["totalRow",39],["firstRowStripe",566],["firstColumnStripe",264],["firstSubtotalColumn",567],["firstSubtotalRow",294],["firstColumnSubheading",568],["firstRowSubheading",569],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark19:[["wholeTable",560],["headerRow",39],["totalRow",39],["firstRowStripe",561],["firstColumnStripe",257],["firstSubtotalColumn",562],["firstSubtotalRow",294],["firstColumnSubheading",563],["firstRowSubheading",564],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark20:[["wholeTable",555],["headerRow",39],["totalRow",39],["firstRowStripe",556],["firstColumnStripe",250],["firstSubtotalColumn",557],["firstSubtotalRow",294],["firstColumnSubheading",558],["firstRowSubheading",559],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark21:[["wholeTable",550],["headerRow",39],["totalRow",39],["firstRowStripe",551],["firstColumnStripe",243],["firstSubtotalColumn",552],["firstSubtotalRow",294],["firstColumnSubheading",553],["firstRowSubheading",554],["secondRowSubheading",294],["pageFieldLabels",294]],PivotStyleDark22:[["wholeTable",545],["headerRow",546],["totalRow",522],["firstColumn",547],["secondRowStripe",548],["secondColumnStripe",548],["firstHeaderCell",294],["firstSubtotalRow",549],["secondSubtotalRow",1],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",547]],PivotStyleDark23:[["wholeTable",541],["headerRow",542],["totalRow",522],["firstColumn",174],["secondRowStripe",543],["secondColumnStripe",543],["firstHeaderCell",294],["firstSubtotalRow",544],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",174]],PivotStyleDark24:[["wholeTable",537],["headerRow",538],["totalRow",522],["firstColumn",169],["secondRowStripe",539],["secondColumnStripe",539],["firstHeaderCell",294],["firstSubtotalRow",540],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",169]],PivotStyleDark25:[["wholeTable",533],["headerRow",534],["totalRow",522],["firstColumn",165],["secondRowStripe",535],["secondColumnStripe",535],["firstHeaderCell",294],["firstSubtotalRow",536],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",165]],PivotStyleDark26:[["wholeTable",529],["headerRow",530],["totalRow",522],["firstColumn",160],["secondRowStripe",531],["secondColumnStripe",531],["firstHeaderCell",294],["firstSubtotalRow",532],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",160]],PivotStyleDark27:[["wholeTable",525],["headerRow",526],["totalRow",522],["firstColumn",156],["secondRowStripe",527],["secondColumnStripe",527],["firstHeaderCell",294],["firstSubtotalRow",528],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",156]],PivotStyleDark28:[["wholeTable",520],["headerRow",521],["totalRow",522],["firstColumn",151],["secondRowStripe",523],["secondColumnStripe",523],["firstHeaderCell",294],["firstSubtotalRow",524],["secondSubtotalRow",294],["firstRowSubheading",294],["secondRowSubheading",294],["pageFieldLabels",151]],TableStyleLight1:[["wholeTable",140],["headerRow",141],["totalRow",142],["firstColumn",1],["lastColumn",1],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleLight2:[["wholeTable",136],["headerRow",137],["totalRow",138],["firstColumn",139],["lastColumn",139],["firstRowStripe",78],["firstColumnStripe",78]],TableStyleLight3:[["wholeTable",132],["headerRow",133],["totalRow",134],["firstColumn",135],["lastColumn",135],["firstRowStripe",75],["firstColumnStripe",75]],TableStyleLight4:[["wholeTable",128],["headerRow",129],["totalRow",130],["firstColumn",131],["lastColumn",131],["firstRowStripe",72],["firstColumnStripe",72]],TableStyleLight5:[["wholeTable",124],["headerRow",125],["totalRow",126],["firstColumn",127],["lastColumn",127],["firstRowStripe",69],["firstColumnStripe",69]],TableStyleLight6:[["wholeTable",120],["headerRow",121],["totalRow",122],["firstColumn",123],["lastColumn",123],["firstRowStripe",66],["firstColumnStripe",66]],TableStyleLight7:[["wholeTable",116],["headerRow",117],["totalRow",118],["firstColumn",119],["lastColumn",119],["firstRowStripe",63],["firstColumnStripe",63]],TableStyleLight8:[["wholeTable",113],["headerRow",39],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",114],["secondRowStripe",114],["firstColumnStripe",115],["secondColumnStripe",115]],TableStyleLight9:[["wholeTable",110],["headerRow",36],["totalRow",77],["firstColumn",1],["lastColumn",1],["firstRowStripe",111],["secondRowStripe",111],["firstColumnStripe",112],["secondColumnStripe",112]],TableStyleLight10:[["wholeTable",107],["headerRow",34],["totalRow",74],["firstColumn",1],["lastColumn",1],["firstRowStripe",108],["secondRowStripe",108],["firstColumnStripe",109],["secondColumnStripe",109]],TableStyleLight11:[["wholeTable",104],["headerRow",32],["totalRow",71],["firstColumn",1],["lastColumn",1],["firstRowStripe",105],["secondRowStripe",105],["firstColumnStripe",106],["secondColumnStripe",106]],TableStyleLight12:[["wholeTable",101],["headerRow",30],["totalRow",68],["firstColumn",1],["lastColumn",1],["firstRowStripe",102],["secondRowStripe",102],["firstColumnStripe",103],["secondColumnStripe",103]],TableStyleLight13:[["wholeTable",98],["headerRow",28],["totalRow",65],["firstColumn",1],["lastColumn",1],["firstRowStripe",99],["secondRowStripe",99],["firstColumnStripe",100],["secondColumnStripe",100]],TableStyleLight14:[["wholeTable",95],["headerRow",25],["totalRow",62],["firstColumn",1],["lastColumn",1],["firstRowStripe",96],["secondRowStripe",96],["firstColumnStripe",97],["secondColumnStripe",97]],TableStyleLight15:[["wholeTable",93],["headerRow",94],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleLight16:[["wholeTable",91],["headerRow",92],["totalRow",77],["firstColumn",1],["lastColumn",1],["firstRowStripe",78],["firstColumnStripe",78]],TableStyleLight17:[["wholeTable",89],["headerRow",90],["totalRow",74],["firstColumn",1],["lastColumn",1],["firstRowStripe",75],["firstColumnStripe",75]],TableStyleLight18:[["wholeTable",87],["headerRow",88],["totalRow",71],["firstColumn",1],["lastColumn",1],["firstRowStripe",72],["firstColumnStripe",72]],TableStyleLight19:[["wholeTable",85],["headerRow",86],["totalRow",68],["firstColumn",1],["lastColumn",1],["firstRowStripe",69],["firstColumnStripe",69]],TableStyleLight20:[["wholeTable",83],["headerRow",84],["totalRow",65],["firstColumn",1],["lastColumn",1],["firstRowStripe",66],["firstColumnStripe",66]],TableStyleLight21:[["wholeTable",81],["headerRow",82],["totalRow",62],["firstColumn",1],["lastColumn",1],["firstRowStripe",63],["firstColumnStripe",63]],TableStyleMedium1:[["wholeTable",79],["headerRow",39],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium2:[["wholeTable",76],["headerRow",36],["totalRow",77],["firstColumn",1],["lastColumn",1],["firstRowStripe",78],["firstColumnStripe",78]],TableStyleMedium3:[["wholeTable",73],["headerRow",34],["totalRow",74],["firstColumn",1],["lastColumn",1],["firstRowStripe",75],["firstColumnStripe",75]],TableStyleMedium4:[["wholeTable",70],["headerRow",32],["totalRow",71],["firstColumn",1],["lastColumn",1],["firstRowStripe",72],["firstColumnStripe",72]],TableStyleMedium5:[["wholeTable",67],["headerRow",30],["totalRow",68],["firstColumn",1],["lastColumn",1],["firstRowStripe",69],["firstColumnStripe",69]],TableStyleMedium6:[["wholeTable",64],["headerRow",28],["totalRow",65],["firstColumn",1],["lastColumn",1],["firstRowStripe",66],["firstColumnStripe",66]],TableStyleMedium7:[["wholeTable",61],["headerRow",25],["totalRow",62],["firstColumn",1],["lastColumn",1],["firstRowStripe",63],["firstColumnStripe",63]],TableStyleMedium8:[["wholeTable",58],["headerRow",59],["totalRow",60],["firstColumn",39],["lastColumn",39],["firstRowStripe",21],["firstColumnStripe",21]],TableStyleMedium9:[["wholeTable",55],["headerRow",56],["totalRow",57],["firstColumn",36],["lastColumn",36],["firstRowStripe",18],["firstColumnStripe",18]],TableStyleMedium10:[["wholeTable",52],["headerRow",53],["totalRow",54],["firstColumn",34],["lastColumn",34],["firstRowStripe",15],["firstColumnStripe",15]],TableStyleMedium11:[["wholeTable",49],["headerRow",50],["totalRow",51],["firstColumn",32],["lastColumn",32],["firstRowStripe",12],["firstColumnStripe",12]],TableStyleMedium12:[["wholeTable",46],["headerRow",47],["totalRow",48],["firstColumn",30],["lastColumn",30],["firstRowStripe",9],["firstColumnStripe",9]],TableStyleMedium13:[["wholeTable",43],["headerRow",44],["totalRow",45],["firstColumn",28],["lastColumn",28],["firstRowStripe",6],["firstColumnStripe",6]],TableStyleMedium14:[["wholeTable",40],["headerRow",41],["totalRow",42],["firstColumn",25],["lastColumn",25],["firstRowStripe",3],["firstColumnStripe",3]],TableStyleMedium15:[["wholeTable",37],["headerRow",38],["totalRow",24],["firstColumn",39],["lastColumn",39],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium16:[["wholeTable",22],["headerRow",35],["totalRow",24],["firstColumn",36],["lastColumn",36],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium17:[["wholeTable",22],["headerRow",33],["totalRow",24],["firstColumn",34],["lastColumn",34],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium18:[["wholeTable",22],["headerRow",31],["totalRow",24],["firstColumn",32],["lastColumn",32],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium19:[["wholeTable",22],["headerRow",29],["totalRow",24],["firstColumn",30],["lastColumn",30],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium20:[["wholeTable",22],["headerRow",27],["totalRow",24],["firstColumn",28],["lastColumn",28],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium21:[["wholeTable",22],["headerRow",23],["totalRow",24],["firstColumn",25],["lastColumn",25],["firstRowStripe",26],["firstColumnStripe",26]],TableStyleMedium22:[["wholeTable",19],["headerRow",1],["totalRow",20],["firstColumn",1],["lastColumn",1],["firstRowStripe",21],["firstColumnStripe",21]],TableStyleMedium23:[["wholeTable",16],["headerRow",1],["totalRow",17],["firstColumn",1],["lastColumn",1],["firstRowStripe",18],["firstColumnStripe",18]],TableStyleMedium24:[["wholeTable",13],["headerRow",1],["totalRow",14],["firstColumn",1],["lastColumn",1],["firstRowStripe",15],["firstColumnStripe",15]],TableStyleMedium25:[["wholeTable",10],["headerRow",1],["totalRow",11],["firstColumn",1],["lastColumn",1],["firstRowStripe",12],["firstColumnStripe",12]],TableStyleMedium26:[["wholeTable",7],["headerRow",1],["totalRow",8],["firstColumn",1],["lastColumn",1],["firstRowStripe",9],["firstColumnStripe",9]],TableStyleMedium27:[["wholeTable",4],["headerRow",1],["totalRow",5],["firstColumn",1],["lastColumn",1],["firstRowStripe",6],["firstColumnStripe",6]],TableStyleMedium28:[["wholeTable",0],["headerRow",1],["totalRow",2],["firstColumn",1],["lastColumn",1],["firstRowStripe",3],["firstColumnStripe",3]],TableStyleDark1:[["wholeTable",175],["headerRow",147],["totalRow",176],["firstColumn",177],["lastColumn",178],["firstRowStripe",179],["firstColumnStripe",179]],TableStyleDark2:[["wholeTable",170],["headerRow",147],["totalRow",171],["firstColumn",172],["lastColumn",173],["firstRowStripe",174],["firstColumnStripe",174]],TableStyleDark3:[["wholeTable",145],["headerRow",147],["totalRow",166],["firstColumn",167],["lastColumn",168],["firstRowStripe",169],["firstColumnStripe",169]],TableStyleDark4:[["wholeTable",161],["headerRow",147],["totalRow",162],["firstColumn",163],["lastColumn",164],["firstRowStripe",165],["firstColumnStripe",165]],TableStyleDark5:[["wholeTable",144],["headerRow",147],["totalRow",157],["firstColumn",158],["lastColumn",159],["firstRowStripe",160],["firstColumnStripe",160]],TableStyleDark6:[["wholeTable",152],["headerRow",147],["totalRow",153],["firstColumn",154],["lastColumn",155],["firstRowStripe",156],["firstColumnStripe",156]],TableStyleDark7:[["wholeTable",143],["headerRow",147],["totalRow",148],["firstColumn",149],["lastColumn",150],["firstRowStripe",151],["firstColumnStripe",151]],TableStyleDark8:[["wholeTable",26],["headerRow",146],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",21],["firstColumnStripe",21]],TableStyleDark9:[["wholeTable",78],["headerRow",145],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",18],["firstColumnStripe",18]],TableStyleDark10:[["wholeTable",72],["headerRow",144],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",12],["firstColumnStripe",12]],TableStyleDark11:[["wholeTable",66],["headerRow",143],["totalRow",80],["firstColumn",1],["lastColumn",1],["firstRowStripe",6],["firstColumnStripe",6]]};export{t as PRESET_DXFS,i as PRESET_STYLES};