@js-ak/excel-toolbox 1.8.3 → 1.9.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 (207) hide show
  1. package/build/cjs/lib/template/template-fs.js +2 -1
  2. package/build/cjs/lib/template/template-memory.js +2 -1
  3. package/build/cjs/lib/template/utils/column-letter-to-index.js +15 -0
  4. package/build/cjs/lib/template/utils/index.js +1 -1
  5. package/build/cjs/lib/template/utils/prepare-row-to-cells.js +2 -2
  6. package/build/cjs/lib/template/utils/validate-worksheet-xml.js +19 -9
  7. package/build/cjs/lib/utils/index.js +2 -0
  8. package/build/cjs/lib/utils/trim-and-join-multiline.js +32 -0
  9. package/build/cjs/lib/workbook-builder/default/border.js +18 -0
  10. package/build/cjs/lib/workbook-builder/default/cell-xf.js +15 -0
  11. package/build/cjs/lib/workbook-builder/default/fill.js +18 -0
  12. package/build/cjs/lib/workbook-builder/default/font.js +19 -0
  13. package/build/cjs/lib/workbook-builder/default/index.js +21 -0
  14. package/build/cjs/lib/workbook-builder/default/sheet-name.js +10 -0
  15. package/build/cjs/lib/workbook-builder/index.js +18 -0
  16. package/build/cjs/lib/workbook-builder/merge-cells/add.js +72 -0
  17. package/build/cjs/lib/workbook-builder/merge-cells/helpers/index.js +18 -0
  18. package/build/cjs/lib/workbook-builder/merge-cells/helpers/ranges-equal.js +17 -0
  19. package/build/cjs/lib/workbook-builder/merge-cells/helpers/ranges-intersect.js +17 -0
  20. package/build/cjs/lib/workbook-builder/merge-cells/index.js +18 -0
  21. package/build/cjs/lib/workbook-builder/merge-cells/remove.js +60 -0
  22. package/build/cjs/lib/workbook-builder/shared-string-ref/add.js +24 -0
  23. package/build/cjs/lib/workbook-builder/shared-string-ref/index.js +19 -0
  24. package/build/cjs/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.js +66 -0
  25. package/build/cjs/lib/workbook-builder/shared-string-ref/remove.js +66 -0
  26. package/build/cjs/lib/workbook-builder/style-ref/add-or-get.js +94 -0
  27. package/build/cjs/lib/workbook-builder/style-ref/helpers/add-num-fmt.js +25 -0
  28. package/build/cjs/lib/workbook-builder/style-ref/helpers/border-to-xml.js +49 -0
  29. package/build/cjs/lib/workbook-builder/style-ref/helpers/fill-to-xml.js +51 -0
  30. package/build/cjs/lib/workbook-builder/style-ref/helpers/font-to-xml.js +112 -0
  31. package/build/cjs/lib/workbook-builder/style-ref/helpers/index.js +21 -0
  32. package/build/cjs/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.js +30 -0
  33. package/build/cjs/lib/workbook-builder/style-ref/index.js +19 -0
  34. package/build/cjs/lib/workbook-builder/style-ref/remove-all-from-sheet.js +26 -0
  35. package/build/cjs/lib/workbook-builder/style-ref/remove.js +52 -0
  36. package/build/cjs/lib/workbook-builder/types/app-xml-options.js +2 -0
  37. package/build/cjs/lib/workbook-builder/types/border-style.js +2 -0
  38. package/build/cjs/lib/workbook-builder/types/cell-data.js +2 -0
  39. package/build/cjs/lib/workbook-builder/types/cell-style.js +2 -0
  40. package/build/cjs/lib/workbook-builder/types/cell-type.js +2 -0
  41. package/build/cjs/lib/workbook-builder/types/cell-value.js +2 -0
  42. package/build/cjs/lib/workbook-builder/types/cell-xf.js +2 -0
  43. package/build/cjs/lib/workbook-builder/types/index.js +27 -0
  44. package/build/cjs/lib/workbook-builder/types/merge-cell.js +2 -0
  45. package/build/cjs/lib/workbook-builder/types/row-data.js +2 -0
  46. package/build/cjs/lib/workbook-builder/types/sheet-data.js +2 -0
  47. package/build/cjs/lib/workbook-builder/types/xml-node.js +2 -0
  48. package/build/cjs/lib/workbook-builder/utils/build-app-xml.js +51 -0
  49. package/build/cjs/lib/workbook-builder/utils/build-cell-children.js +59 -0
  50. package/build/cjs/lib/workbook-builder/utils/build-content-types-xml.js +42 -0
  51. package/build/cjs/lib/workbook-builder/utils/build-core-xml.js +27 -0
  52. package/build/cjs/lib/workbook-builder/utils/build-rels-xml.js +19 -0
  53. package/build/cjs/lib/workbook-builder/utils/build-shared-strings-xml.js +39 -0
  54. package/build/cjs/lib/workbook-builder/utils/build-styles-xml.js +178 -0
  55. package/build/cjs/lib/workbook-builder/utils/build-theme-xml.js +609 -0
  56. package/build/cjs/lib/workbook-builder/utils/build-workbook-rels-xml.js +58 -0
  57. package/build/cjs/lib/workbook-builder/utils/build-workbook-xml.js +26 -0
  58. package/build/cjs/lib/workbook-builder/utils/build-worksheet-xml.js +66 -0
  59. package/build/cjs/lib/workbook-builder/utils/build-xml.js +72 -0
  60. package/build/cjs/lib/workbook-builder/utils/constants.js +55 -0
  61. package/build/cjs/lib/workbook-builder/utils/date-to-excel-serial.js +16 -0
  62. package/build/cjs/lib/workbook-builder/utils/index.js +34 -0
  63. package/build/cjs/lib/workbook-builder/utils/initialize-files.js +40 -0
  64. package/build/cjs/lib/workbook-builder/utils/sheet.js +144 -0
  65. package/build/cjs/lib/workbook-builder/utils/write-shared-strings-xml.js +49 -0
  66. package/build/cjs/lib/workbook-builder/utils/write-styles-xml.js +196 -0
  67. package/build/cjs/lib/workbook-builder/utils/write-worksheet-xml.js +209 -0
  68. package/build/cjs/lib/workbook-builder/utils/write-xml.js +37 -0
  69. package/build/cjs/lib/workbook-builder/workbook-builder.js +414 -0
  70. package/build/esm/lib/template/template-fs.js +2 -1
  71. package/build/esm/lib/template/template-memory.js +2 -1
  72. package/build/esm/lib/template/utils/column-letter-to-index.js +12 -0
  73. package/build/esm/lib/template/utils/index.js +1 -1
  74. package/build/esm/lib/template/utils/prepare-row-to-cells.js +1 -1
  75. package/build/esm/lib/template/utils/validate-worksheet-xml.js +19 -9
  76. package/build/esm/lib/utils/index.js +2 -0
  77. package/build/esm/lib/utils/trim-and-join-multiline.js +29 -0
  78. package/build/esm/lib/workbook-builder/default/border.js +14 -0
  79. package/build/esm/lib/workbook-builder/default/cell-xf.js +11 -0
  80. package/build/esm/lib/workbook-builder/default/fill.js +14 -0
  81. package/build/esm/lib/workbook-builder/default/font.js +15 -0
  82. package/build/esm/lib/workbook-builder/default/index.js +5 -0
  83. package/build/esm/lib/workbook-builder/default/sheet-name.js +6 -0
  84. package/build/esm/lib/workbook-builder/index.js +2 -0
  85. package/build/esm/lib/workbook-builder/merge-cells/add.js +36 -0
  86. package/build/esm/lib/workbook-builder/merge-cells/helpers/index.js +2 -0
  87. package/build/esm/lib/workbook-builder/merge-cells/helpers/ranges-equal.js +14 -0
  88. package/build/esm/lib/workbook-builder/merge-cells/helpers/ranges-intersect.js +14 -0
  89. package/build/esm/lib/workbook-builder/merge-cells/index.js +2 -0
  90. package/build/esm/lib/workbook-builder/merge-cells/remove.js +24 -0
  91. package/build/esm/lib/workbook-builder/shared-string-ref/add.js +21 -0
  92. package/build/esm/lib/workbook-builder/shared-string-ref/index.js +3 -0
  93. package/build/esm/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.js +63 -0
  94. package/build/esm/lib/workbook-builder/shared-string-ref/remove.js +63 -0
  95. package/build/esm/lib/workbook-builder/style-ref/add-or-get.js +58 -0
  96. package/build/esm/lib/workbook-builder/style-ref/helpers/add-num-fmt.js +21 -0
  97. package/build/esm/lib/workbook-builder/style-ref/helpers/border-to-xml.js +45 -0
  98. package/build/esm/lib/workbook-builder/style-ref/helpers/fill-to-xml.js +47 -0
  99. package/build/esm/lib/workbook-builder/style-ref/helpers/font-to-xml.js +75 -0
  100. package/build/esm/lib/workbook-builder/style-ref/helpers/index.js +5 -0
  101. package/build/esm/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.js +26 -0
  102. package/build/esm/lib/workbook-builder/style-ref/index.js +3 -0
  103. package/build/esm/lib/workbook-builder/style-ref/remove-all-from-sheet.js +23 -0
  104. package/build/esm/lib/workbook-builder/style-ref/remove.js +49 -0
  105. package/build/esm/lib/workbook-builder/types/app-xml-options.js +1 -0
  106. package/build/esm/lib/workbook-builder/types/border-style.js +1 -0
  107. package/build/esm/lib/workbook-builder/types/cell-data.js +1 -0
  108. package/build/esm/lib/workbook-builder/types/cell-style.js +1 -0
  109. package/build/esm/lib/workbook-builder/types/cell-type.js +1 -0
  110. package/build/esm/lib/workbook-builder/types/cell-value.js +1 -0
  111. package/build/esm/lib/workbook-builder/types/cell-xf.js +1 -0
  112. package/build/esm/lib/workbook-builder/types/index.js +11 -0
  113. package/build/esm/lib/workbook-builder/types/merge-cell.js +1 -0
  114. package/build/esm/lib/workbook-builder/types/row-data.js +1 -0
  115. package/build/esm/lib/workbook-builder/types/sheet-data.js +1 -0
  116. package/build/esm/lib/workbook-builder/types/xml-node.js +1 -0
  117. package/build/esm/lib/workbook-builder/utils/build-app-xml.js +48 -0
  118. package/build/esm/lib/workbook-builder/utils/build-cell-children.js +56 -0
  119. package/build/esm/lib/workbook-builder/utils/build-content-types-xml.js +39 -0
  120. package/build/esm/lib/workbook-builder/utils/build-core-xml.js +24 -0
  121. package/build/esm/lib/workbook-builder/utils/build-rels-xml.js +16 -0
  122. package/build/esm/lib/workbook-builder/utils/build-shared-strings-xml.js +36 -0
  123. package/build/esm/lib/workbook-builder/utils/build-styles-xml.js +142 -0
  124. package/build/esm/lib/workbook-builder/utils/build-theme-xml.js +606 -0
  125. package/build/esm/lib/workbook-builder/utils/build-workbook-rels-xml.js +55 -0
  126. package/build/esm/lib/workbook-builder/utils/build-workbook-xml.js +23 -0
  127. package/build/esm/lib/workbook-builder/utils/build-worksheet-xml.js +63 -0
  128. package/build/esm/lib/workbook-builder/utils/build-xml.js +69 -0
  129. package/build/esm/lib/workbook-builder/utils/constants.js +52 -0
  130. package/build/esm/lib/workbook-builder/utils/date-to-excel-serial.js +13 -0
  131. package/build/esm/lib/workbook-builder/utils/index.js +18 -0
  132. package/build/esm/lib/workbook-builder/utils/initialize-files.js +36 -0
  133. package/build/esm/lib/workbook-builder/utils/sheet.js +141 -0
  134. package/build/esm/lib/workbook-builder/utils/write-shared-strings-xml.js +43 -0
  135. package/build/esm/lib/workbook-builder/utils/write-styles-xml.js +157 -0
  136. package/build/esm/lib/workbook-builder/utils/write-worksheet-xml.js +203 -0
  137. package/build/esm/lib/workbook-builder/utils/write-xml.js +34 -0
  138. package/build/esm/lib/workbook-builder/workbook-builder.js +374 -0
  139. package/build/types/lib/template/utils/column-letter-to-index.d.ts +1 -0
  140. package/build/types/lib/template/utils/index.d.ts +1 -1
  141. package/build/types/lib/utils/index.d.ts +2 -0
  142. package/build/types/lib/utils/trim-and-join-multiline.d.ts +23 -0
  143. package/build/types/lib/workbook-builder/default/border.d.ts +7 -0
  144. package/build/types/lib/workbook-builder/default/cell-xf.d.ts +7 -0
  145. package/build/types/lib/workbook-builder/default/fill.d.ts +7 -0
  146. package/build/types/lib/workbook-builder/default/font.d.ts +21 -0
  147. package/build/types/lib/workbook-builder/default/index.d.ts +5 -0
  148. package/build/types/lib/workbook-builder/default/sheet-name.d.ts +6 -0
  149. package/build/types/lib/workbook-builder/index.d.ts +2 -0
  150. package/build/types/lib/workbook-builder/merge-cells/add.d.ts +15 -0
  151. package/build/types/lib/workbook-builder/merge-cells/helpers/index.d.ts +2 -0
  152. package/build/types/lib/workbook-builder/merge-cells/helpers/ranges-equal.d.ts +10 -0
  153. package/build/types/lib/workbook-builder/merge-cells/helpers/ranges-intersect.d.ts +10 -0
  154. package/build/types/lib/workbook-builder/merge-cells/index.d.ts +2 -0
  155. package/build/types/lib/workbook-builder/merge-cells/remove.d.ts +15 -0
  156. package/build/types/lib/workbook-builder/shared-string-ref/add.d.ts +13 -0
  157. package/build/types/lib/workbook-builder/shared-string-ref/index.d.ts +3 -0
  158. package/build/types/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.d.ts +10 -0
  159. package/build/types/lib/workbook-builder/shared-string-ref/remove.d.ts +13 -0
  160. package/build/types/lib/workbook-builder/style-ref/add-or-get.d.ts +16 -0
  161. package/build/types/lib/workbook-builder/style-ref/helpers/add-num-fmt.d.ts +17 -0
  162. package/build/types/lib/workbook-builder/style-ref/helpers/border-to-xml.d.ts +16 -0
  163. package/build/types/lib/workbook-builder/style-ref/helpers/fill-to-xml.d.ts +17 -0
  164. package/build/types/lib/workbook-builder/style-ref/helpers/font-to-xml.d.ts +18 -0
  165. package/build/types/lib/workbook-builder/style-ref/helpers/index.d.ts +5 -0
  166. package/build/types/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.d.ts +15 -0
  167. package/build/types/lib/workbook-builder/style-ref/index.d.ts +3 -0
  168. package/build/types/lib/workbook-builder/style-ref/remove-all-from-sheet.d.ts +4 -0
  169. package/build/types/lib/workbook-builder/style-ref/remove.d.ts +18 -0
  170. package/build/types/lib/workbook-builder/types/app-xml-options.d.ts +9 -0
  171. package/build/types/lib/workbook-builder/types/border-style.d.ts +5 -0
  172. package/build/types/lib/workbook-builder/types/cell-data.d.ts +10 -0
  173. package/build/types/lib/workbook-builder/types/cell-style.d.ts +32 -0
  174. package/build/types/lib/workbook-builder/types/cell-type.d.ts +11 -0
  175. package/build/types/lib/workbook-builder/types/cell-value.d.ts +2 -0
  176. package/build/types/lib/workbook-builder/types/cell-xf.d.ts +13 -0
  177. package/build/types/lib/workbook-builder/types/index.d.ts +11 -0
  178. package/build/types/lib/workbook-builder/types/merge-cell.d.ts +6 -0
  179. package/build/types/lib/workbook-builder/types/row-data.d.ts +5 -0
  180. package/build/types/lib/workbook-builder/types/sheet-data.d.ts +13 -0
  181. package/build/types/lib/workbook-builder/types/xml-node.d.ts +11 -0
  182. package/build/types/lib/workbook-builder/utils/build-app-xml.d.ts +2 -0
  183. package/build/types/lib/workbook-builder/utils/build-cell-children.d.ts +9 -0
  184. package/build/types/lib/workbook-builder/utils/build-content-types-xml.d.ts +1 -0
  185. package/build/types/lib/workbook-builder/utils/build-core-xml.d.ts +1 -0
  186. package/build/types/lib/workbook-builder/utils/build-rels-xml.d.ts +1 -0
  187. package/build/types/lib/workbook-builder/utils/build-shared-strings-xml.d.ts +10 -0
  188. package/build/types/lib/workbook-builder/utils/build-styles-xml.d.ts +23 -0
  189. package/build/types/lib/workbook-builder/utils/build-theme-xml.d.ts +1 -0
  190. package/build/types/lib/workbook-builder/utils/build-workbook-rels-xml.d.ts +9 -0
  191. package/build/types/lib/workbook-builder/utils/build-workbook-xml.d.ts +3 -0
  192. package/build/types/lib/workbook-builder/utils/build-worksheet-xml.d.ts +2 -0
  193. package/build/types/lib/workbook-builder/utils/build-xml.d.ts +50 -0
  194. package/build/types/lib/workbook-builder/utils/constants.d.ts +47 -0
  195. package/build/types/lib/workbook-builder/utils/date-to-excel-serial.d.ts +9 -0
  196. package/build/types/lib/workbook-builder/utils/index.d.ts +18 -0
  197. package/build/types/lib/workbook-builder/utils/initialize-files.d.ts +13 -0
  198. package/build/types/lib/workbook-builder/utils/sheet.d.ts +21 -0
  199. package/build/types/lib/workbook-builder/utils/write-shared-strings-xml.d.ts +11 -0
  200. package/build/types/lib/workbook-builder/utils/write-styles-xml.d.ts +24 -0
  201. package/build/types/lib/workbook-builder/utils/write-worksheet-xml.d.ts +14 -0
  202. package/build/types/lib/workbook-builder/utils/write-xml.d.ts +3 -0
  203. package/build/types/lib/workbook-builder/workbook-builder.d.ts +110 -0
  204. package/package.json +1 -1
  205. /package/build/cjs/lib/{template/utils → utils}/escape-xml.js +0 -0
  206. /package/build/esm/lib/{template/utils → utils}/escape-xml.js +0 -0
  207. /package/build/types/lib/{template/utils → utils}/escape-xml.d.ts +0 -0
@@ -0,0 +1,609 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildThemeXml = buildThemeXml;
4
+ const constants_js_1 = require("./constants.js");
5
+ const build_xml_js_1 = require("./build-xml.js");
6
+ function buildThemeXml() {
7
+ const theme = {
8
+ attrs: {
9
+ name: "Office Theme",
10
+ "xmlns:a": constants_js_1.XML_NAMESPACES.DRAWINGML,
11
+ },
12
+ children: [
13
+ {
14
+ children: [
15
+ {
16
+ attrs: { name: "Office" },
17
+ children: [
18
+ {
19
+ children: [{ attrs: { lastClr: "000000", val: "windowText" }, tag: "a:sysClr" }],
20
+ tag: "a:dk1",
21
+ },
22
+ {
23
+ children: [{ attrs: { lastClr: "FFFFFF", val: "window" }, tag: "a:sysClr" }],
24
+ tag: "a:lt1",
25
+ },
26
+ {
27
+ children: [{ attrs: { val: "1F497D" }, tag: "a:srgbClr" }],
28
+ tag: "a:dk2",
29
+ },
30
+ {
31
+ children: [{ attrs: { val: "EEECE1" }, tag: "a:srgbClr" }],
32
+ tag: "a:lt2",
33
+ },
34
+ {
35
+ children: [{ attrs: { val: "4F81BD" }, tag: "a:srgbClr" }],
36
+ tag: "a:accent1",
37
+ },
38
+ {
39
+ children: [{ attrs: { val: "C0504D" }, tag: "a:srgbClr" }],
40
+ tag: "a:accent2",
41
+ },
42
+ {
43
+ children: [{ attrs: { val: "9BBB59" }, tag: "a:srgbClr" }],
44
+ tag: "a:accent3",
45
+ },
46
+ {
47
+ children: [{ attrs: { val: "8064A2" }, tag: "a:srgbClr" }],
48
+ tag: "a:accent4",
49
+ },
50
+ {
51
+ children: [{ attrs: { val: "4BACC6" }, tag: "a:srgbClr" }],
52
+ tag: "a:accent5",
53
+ },
54
+ {
55
+ children: [{ attrs: { val: "F79646" }, tag: "a:srgbClr" }],
56
+ tag: "a:accent6",
57
+ },
58
+ {
59
+ children: [{ attrs: { val: "0000FF" }, tag: "a:srgbClr" }],
60
+ tag: "a:hlink",
61
+ },
62
+ {
63
+ children: [{ attrs: { val: "800080" }, tag: "a:srgbClr" }],
64
+ tag: "a:folHlink",
65
+ },
66
+ ],
67
+ tag: "a:clrScheme",
68
+ },
69
+ {
70
+ attrs: { name: "Office" },
71
+ children: [
72
+ {
73
+ children: [
74
+ { attrs: { typeface: "Calibri Light" }, tag: "a:latin" },
75
+ { attrs: { typeface: "" }, tag: "a:ea" },
76
+ { attrs: { typeface: "" }, tag: "a:cs" },
77
+ { attrs: { script: "Jpan", typeface: "游ゴシック Light" }, tag: "a:font" },
78
+ { attrs: { script: "Hang", typeface: "맑은 고딕" }, tag: "a:font" },
79
+ { attrs: { script: "Hans", typeface: "等线 Light" }, tag: "a:font" },
80
+ { attrs: { script: "Hant", typeface: "新細明體" }, tag: "a:font" },
81
+ { attrs: { script: "Arab", typeface: "Times New Roman" }, tag: "a:font" },
82
+ { attrs: { script: "Hebr", typeface: "Times New Roman" }, tag: "a:font" },
83
+ { attrs: { script: "Thai", typeface: "Tahoma" }, tag: "a:font" },
84
+ { attrs: { script: "Ethi", typeface: "Nyala" }, tag: "a:font" },
85
+ { attrs: { script: "Beng", typeface: "Vrinda" }, tag: "a:font" },
86
+ { attrs: { script: "Gujr", typeface: "Shruti" }, tag: "a:font" },
87
+ { attrs: { script: "Khmr", typeface: "MoolBoran" }, tag: "a:font" },
88
+ { attrs: { script: "Knda", typeface: "Tunga" }, tag: "a:font" },
89
+ { attrs: { script: "Guru", typeface: "Raavi" }, tag: "a:font" },
90
+ { attrs: { script: "Cans", typeface: "Euphemia" }, tag: "a:font" },
91
+ { attrs: { script: "Cher", typeface: "Plantagenet Cherokee" }, tag: "a:font" },
92
+ { attrs: { script: "Yiii", typeface: "Microsoft Yi Baiti" }, tag: "a:font" },
93
+ { attrs: { script: "Tibt", typeface: "Microsoft Himalaya" }, tag: "a:font" },
94
+ { attrs: { script: "Thaa", typeface: "MV Boli" }, tag: "a:font" },
95
+ { attrs: { script: "Deva", typeface: "Mangal" }, tag: "a:font" },
96
+ { attrs: { script: "Telu", typeface: "Gautami" }, tag: "a:font" },
97
+ { attrs: { script: "Taml", typeface: "Latha" }, tag: "a:font" },
98
+ { attrs: { script: "Syrc", typeface: "Estrangelo Edessa" }, tag: "a:font" },
99
+ { attrs: { script: "Orya", typeface: "Kalinga" }, tag: "a:font" },
100
+ { attrs: { script: "Mlym", typeface: "Kartika" }, tag: "a:font" },
101
+ { attrs: { script: "Laoo", typeface: "DokChampa" }, tag: "a:font" },
102
+ { attrs: { script: "Sinh", typeface: "Iskoola Pota" }, tag: "a:font" },
103
+ { attrs: { script: "Mong", typeface: "Mongolian Baiti" }, tag: "a:font" },
104
+ { attrs: { script: "Viet", typeface: "Times New Roman" }, tag: "a:font" },
105
+ { attrs: { script: "Uigh", typeface: "Microsoft Uighur" }, tag: "a:font" },
106
+ { attrs: { script: "Geor", typeface: "Sylfaen" }, tag: "a:font" },
107
+ ],
108
+ tag: "a:majorFont",
109
+ },
110
+ {
111
+ children: [
112
+ { attrs: { typeface: "Calibri" }, tag: "a:latin" },
113
+ { attrs: { typeface: "" }, tag: "a:ea" },
114
+ { attrs: { typeface: "" }, tag: "a:cs" },
115
+ { attrs: { script: "Jpan", typeface: "游ゴシック" }, tag: "a:font" },
116
+ { attrs: { script: "Hang", typeface: "맑은 고딕" }, tag: "a:font" },
117
+ { attrs: { script: "Hans", typeface: "等线" }, tag: "a:font" },
118
+ { attrs: { script: "Hant", typeface: "新細明體" }, tag: "a:font" },
119
+ { attrs: { script: "Arab", typeface: "Arial" }, tag: "a:font" },
120
+ { attrs: { script: "Hebr", typeface: "Arial" }, tag: "a:font" },
121
+ { attrs: { script: "Thai", typeface: "Tahoma" }, tag: "a:font" },
122
+ { attrs: { script: "Ethi", typeface: "Nyala" }, tag: "a:font" },
123
+ { attrs: { script: "Beng", typeface: "Vrinda" }, tag: "a:font" },
124
+ { attrs: { script: "Gujr", typeface: "Shruti" }, tag: "a:font" },
125
+ { attrs: { script: "Khmr", typeface: "DaunPenh" }, tag: "a:font" },
126
+ { attrs: { script: "Knda", typeface: "Tunga" }, tag: "a:font" },
127
+ { attrs: { script: "Guru", typeface: "Raavi" }, tag: "a:font" },
128
+ { attrs: { script: "Cans", typeface: "Euphemia" }, tag: "a:font" },
129
+ { attrs: { script: "Cher", typeface: "Plantagenet Cherokee" }, tag: "a:font" },
130
+ { attrs: { script: "Yiii", typeface: "Microsoft Yi Baiti" }, tag: "a:font" },
131
+ { attrs: { script: "Tibt", typeface: "Microsoft Himalaya" }, tag: "a:font" },
132
+ { attrs: { script: "Thaa", typeface: "MV Boli" }, tag: "a:font" },
133
+ { attrs: { script: "Deva", typeface: "Mangal" }, tag: "a:font" },
134
+ { attrs: { script: "Telu", typeface: "Gautami" }, tag: "a:font" },
135
+ { attrs: { script: "Taml", typeface: "Latha" }, tag: "a:font" },
136
+ { attrs: { script: "Syrc", typeface: "Estrangelo Edessa" }, tag: "a:font" },
137
+ { attrs: { script: "Orya", typeface: "Kalinga" }, tag: "a:font" },
138
+ { attrs: { script: "Mlym", typeface: "Kartika" }, tag: "a:font" },
139
+ { attrs: { script: "Laoo", typeface: "DokChampa" }, tag: "a:font" },
140
+ { attrs: { script: "Sinh", typeface: "Iskoola Pota" }, tag: "a:font" },
141
+ { attrs: { script: "Mong", typeface: "Mongolian Baiti" }, tag: "a:font" },
142
+ { attrs: { script: "Viet", typeface: "Arial" }, tag: "a:font" },
143
+ { attrs: { script: "Uigh", typeface: "Microsoft Uighur" }, tag: "a:font" },
144
+ { attrs: { script: "Geor", typeface: "Sylfaen" }, tag: "a:font" },
145
+ ],
146
+ tag: "a:minorFont",
147
+ },
148
+ ],
149
+ tag: "a:fontScheme",
150
+ },
151
+ {
152
+ attrs: { name: "Office" },
153
+ children: [
154
+ {
155
+ children: [
156
+ {
157
+ children: [{ attrs: { val: "phClr" }, tag: "a:schemeClr" }],
158
+ tag: "a:solidFill",
159
+ },
160
+ {
161
+ attrs: { rotWithShape: "1" },
162
+ children: [
163
+ {
164
+ children: [
165
+ {
166
+ attrs: { pos: "0" },
167
+ children: [
168
+ {
169
+ attrs: { val: "phClr" },
170
+ children: [
171
+ {
172
+ attrs: { val: "50000" },
173
+ tag: "a:tint",
174
+ },
175
+ {
176
+ attrs: { val: "300000" },
177
+ tag: "a:satMod",
178
+ },
179
+ ],
180
+ tag: "a:schemeClr",
181
+ },
182
+ ],
183
+ tag: "a:gs",
184
+ },
185
+ {
186
+ attrs: { pos: "35000" },
187
+ children: [
188
+ {
189
+ attrs: { val: "phClr" },
190
+ children: [
191
+ {
192
+ attrs: { val: "37000" },
193
+ tag: "a:tint",
194
+ },
195
+ {
196
+ attrs: { val: "300000" },
197
+ tag: "a:satMod",
198
+ },
199
+ ],
200
+ tag: "a:schemeClr",
201
+ },
202
+ ],
203
+ tag: "a:gs",
204
+ },
205
+ {
206
+ attrs: { pos: "100000" },
207
+ children: [
208
+ {
209
+ attrs: { val: "phClr" },
210
+ children: [
211
+ {
212
+ attrs: { val: "15000" },
213
+ tag: "a:tint",
214
+ },
215
+ {
216
+ attrs: { val: "350000" },
217
+ tag: "a:satMod",
218
+ },
219
+ ],
220
+ tag: "a:schemeClr",
221
+ },
222
+ ],
223
+ tag: "a:gs",
224
+ },
225
+ ],
226
+ tag: "a:gsLst",
227
+ },
228
+ {
229
+ attrs: { ang: "16200000", scaled: "1" },
230
+ tag: "a:lin",
231
+ },
232
+ ],
233
+ tag: "a:gradFill",
234
+ },
235
+ {
236
+ attrs: { rotWithShape: "1" },
237
+ children: [
238
+ {
239
+ children: [
240
+ {
241
+ attrs: { pos: "0" },
242
+ children: [
243
+ {
244
+ attrs: { val: "phClr" },
245
+ children: [
246
+ {
247
+ attrs: { val: "51000" },
248
+ tag: "a:shade",
249
+ },
250
+ {
251
+ attrs: { val: "130000" },
252
+ tag: "a:satMod",
253
+ },
254
+ ],
255
+ tag: "a:schemeClr",
256
+ },
257
+ ],
258
+ tag: "a:gs",
259
+ },
260
+ {
261
+ attrs: { pos: "80000" },
262
+ children: [
263
+ {
264
+ attrs: { val: "phClr" },
265
+ children: [
266
+ {
267
+ attrs: { val: "93000" },
268
+ tag: "a:shade",
269
+ },
270
+ {
271
+ attrs: { val: "130000" },
272
+ tag: "a:satMod",
273
+ },
274
+ ],
275
+ tag: "a:schemeClr",
276
+ },
277
+ ],
278
+ tag: "a:gs",
279
+ },
280
+ {
281
+ attrs: { pos: "100000" },
282
+ children: [
283
+ {
284
+ attrs: { val: "phClr" },
285
+ children: [
286
+ {
287
+ attrs: { val: "94000" },
288
+ tag: "a:shade",
289
+ },
290
+ {
291
+ attrs: { val: "135000" },
292
+ tag: "a:satMod",
293
+ },
294
+ ],
295
+ tag: "a:schemeClr",
296
+ },
297
+ ],
298
+ tag: "a:gs",
299
+ },
300
+ ],
301
+ tag: "a:gsLst",
302
+ },
303
+ {
304
+ attrs: { ang: "16200000", scaled: "0" },
305
+ tag: "a:lin",
306
+ },
307
+ ],
308
+ tag: "a:gradFill",
309
+ },
310
+ ],
311
+ tag: "a:fillStyleLst",
312
+ },
313
+ {
314
+ children: [
315
+ {
316
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "9525" },
317
+ children: [
318
+ {
319
+ children: [
320
+ {
321
+ attrs: { val: "phClr" },
322
+ children: [
323
+ { attrs: { val: "95000" }, tag: "a:shade" },
324
+ { attrs: { val: "105000" }, tag: "a:satMod" },
325
+ ],
326
+ tag: "a:schemeClr",
327
+ },
328
+ ],
329
+ tag: "a:solidFill",
330
+ },
331
+ {
332
+ attrs: { val: "solid" },
333
+ tag: "a:prstDash",
334
+ },
335
+ ],
336
+ tag: "a:ln",
337
+ },
338
+ {
339
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "25400" },
340
+ children: [
341
+ {
342
+ children: [
343
+ {
344
+ attrs: { val: "phClr" },
345
+ tag: "a:schemeClr",
346
+ },
347
+ ],
348
+ tag: "a:solidFill",
349
+ },
350
+ {
351
+ attrs: { val: "solid" },
352
+ tag: "a:prstDash",
353
+ },
354
+ ],
355
+ tag: "a:ln",
356
+ },
357
+ {
358
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "38100" },
359
+ children: [
360
+ {
361
+ children: [
362
+ {
363
+ attrs: { val: "phClr" },
364
+ tag: "a:schemeClr",
365
+ },
366
+ ],
367
+ tag: "a:solidFill",
368
+ },
369
+ {
370
+ attrs: { val: "solid" },
371
+ tag: "a:prstDash",
372
+ },
373
+ ],
374
+ tag: "a:ln",
375
+ },
376
+ ],
377
+ tag: "a:lnStyleLst",
378
+ },
379
+ {
380
+ children: [
381
+ {
382
+ children: [
383
+ {
384
+ children: [
385
+ {
386
+ attrs: { blurRad: "40000", dir: "5400000", dist: "20000", rotWithShape: "0" },
387
+ children: [
388
+ {
389
+ attrs: { val: "000000" },
390
+ children: [{ attrs: { val: "38000" }, tag: "a:alpha" }],
391
+ tag: "a:srgbClr",
392
+ },
393
+ ],
394
+ tag: "a:outerShdw",
395
+ },
396
+ ],
397
+ tag: "a:effectLst",
398
+ },
399
+ ],
400
+ tag: "a:effectStyle",
401
+ },
402
+ {
403
+ children: [
404
+ {
405
+ children: [
406
+ {
407
+ attrs: { blurRad: "40000", dir: "5400000", dist: "23000", rotWithShape: "0" },
408
+ children: [
409
+ {
410
+ attrs: { val: "000000" },
411
+ children: [{ attrs: { val: "35000" }, tag: "a:alpha" }],
412
+ tag: "a:srgbClr",
413
+ },
414
+ ],
415
+ tag: "a:outerShdw",
416
+ },
417
+ ],
418
+ tag: "a:effectLst",
419
+ },
420
+ ],
421
+ tag: "a:effectStyle",
422
+ },
423
+ {
424
+ children: [
425
+ {
426
+ children: [
427
+ {
428
+ attrs: { blurRad: "40000", dir: "5400000", dist: "23000", rotWithShape: "0" },
429
+ children: [
430
+ {
431
+ attrs: { val: "000000" },
432
+ children: [{ attrs: { val: "35000" }, tag: "a:alpha" }],
433
+ tag: "a:srgbClr",
434
+ },
435
+ ],
436
+ tag: "a:outerShdw",
437
+ },
438
+ ],
439
+ tag: "a:effectLst",
440
+ },
441
+ {
442
+ children: [
443
+ {
444
+ attrs: { prst: "orthographicFront" },
445
+ children: [{ attrs: { lat: "0", lon: "0", rev: "0" }, tag: "a:rot" }],
446
+ tag: "a:camera",
447
+ },
448
+ {
449
+ attrs: { dir: "t", rig: "threePt" },
450
+ children: [{ attrs: { lat: "0", lon: "0", rev: "0" }, tag: "a:rot" }],
451
+ tag: "a:lightRig",
452
+ },
453
+ ],
454
+ tag: "a:scene3d",
455
+ },
456
+ {
457
+ children: [{ attrs: { h: "25400", w: "63500" }, tag: "a:bevelT" }],
458
+ tag: "a:sp3d",
459
+ },
460
+ ],
461
+ tag: "a:effectStyle",
462
+ },
463
+ ],
464
+ tag: "a:effectStyleLst",
465
+ },
466
+ {
467
+ children: [
468
+ {
469
+ children: [{ attrs: { val: "phClr" }, tag: "a:schemeClr" }],
470
+ tag: "a:solidFill",
471
+ },
472
+ {
473
+ attrs: { rotWithShape: "1" },
474
+ children: [
475
+ {
476
+ children: [
477
+ {
478
+ attrs: { pos: "0" },
479
+ children: [
480
+ {
481
+ attrs: { val: "phClr" },
482
+ children: [
483
+ { attrs: { val: "40000" }, tag: "a:tint" },
484
+ { attrs: { val: "350000" }, tag: "a:satMod" },
485
+ ],
486
+ tag: "a:schemeClr",
487
+ },
488
+ ],
489
+ tag: "a:gs",
490
+ },
491
+ {
492
+ attrs: { pos: "40000" },
493
+ children: [
494
+ {
495
+ attrs: { val: "phClr" },
496
+ children: [
497
+ { attrs: { val: "45000" }, tag: "a:tint" },
498
+ { attrs: { val: "99000" }, tag: "a:shade" },
499
+ { attrs: { val: "350000" }, tag: "a:satMod" },
500
+ ],
501
+ tag: "a:schemeClr",
502
+ },
503
+ ],
504
+ tag: "a:gs",
505
+ },
506
+ {
507
+ attrs: { pos: "100000" },
508
+ children: [
509
+ {
510
+ attrs: { val: "phClr" },
511
+ children: [
512
+ { attrs: { val: "20000" }, tag: "a:shade" },
513
+ { attrs: { val: "255000" }, tag: "a:satMod" },
514
+ ],
515
+ tag: "a:schemeClr",
516
+ },
517
+ ],
518
+ tag: "a:gs",
519
+ },
520
+ ],
521
+ tag: "a:gsLst",
522
+ },
523
+ {
524
+ attrs: { path: "circle" },
525
+ children: [
526
+ {
527
+ attrs: { b: "180000", l: "50000", r: "50000", t: "-80000" },
528
+ tag: "a:fillToRect",
529
+ },
530
+ ],
531
+ tag: "a:path",
532
+ },
533
+ ],
534
+ tag: "a:gradFill",
535
+ },
536
+ {
537
+ attrs: { rotWithShape: "1" },
538
+ children: [
539
+ {
540
+ children: [
541
+ {
542
+ attrs: { pos: "0" },
543
+ children: [
544
+ {
545
+ attrs: { val: "phClr" },
546
+ children: [
547
+ { attrs: { val: "80000" }, tag: "a:tint" },
548
+ { attrs: { val: "300000" }, tag: "a:satMod" },
549
+ ],
550
+ tag: "a:schemeClr",
551
+ },
552
+ ],
553
+ tag: "a:gs",
554
+ },
555
+ {
556
+ attrs: { pos: "100000" },
557
+ children: [
558
+ {
559
+ attrs: { val: "phClr" },
560
+ children: [
561
+ { attrs: { val: "30000" }, tag: "a:shade" },
562
+ { attrs: { val: "200000" }, tag: "a:satMod" },
563
+ ],
564
+ tag: "a:schemeClr",
565
+ },
566
+ ],
567
+ tag: "a:gs",
568
+ },
569
+ ],
570
+ tag: "a:gsLst",
571
+ },
572
+ {
573
+ attrs: { path: "circle" },
574
+ children: [
575
+ {
576
+ attrs: { b: "50000", l: "50000", r: "50000", t: "50000" },
577
+ tag: "a:fillToRect",
578
+ },
579
+ ],
580
+ tag: "a:path",
581
+ },
582
+ ],
583
+ tag: "a:gradFill",
584
+ },
585
+ ],
586
+ tag: "a:bgFillStyleLst",
587
+ },
588
+ ],
589
+ tag: "a:fmtScheme",
590
+ },
591
+ ],
592
+ tag: "a:themeElements",
593
+ },
594
+ {
595
+ children: [],
596
+ tag: "a:objectDefaults",
597
+ },
598
+ {
599
+ children: [],
600
+ tag: "a:extraClrSchemeLst",
601
+ },
602
+ ],
603
+ tag: "a:theme",
604
+ };
605
+ return [
606
+ constants_js_1.XML_DECLARATION,
607
+ (0, build_xml_js_1.buildXml)(theme),
608
+ ].join("\n");
609
+ }